Content Item Page Hardware Demo software API user’s guide Source code of demo program Disk information Package list How to contact us Notice: In order to avoid misuse or any unexpected damage, please read this guide first. This device complies with Part 15 of FCC Rules. Operation is subject to the following two conditions: (1)This device may not cause harmful interference, and (2)This device must accept any interference received, including...
1. Hardware environment (1) Product introduction Sunlit’s RFID CF type reader is based on Hitachi µ-solution to develop. It was operated at microwave 2.45GHz frequency band. This is small and light, can be easily install to PDA, tablet PC. (2) Specification...
Page 4
(3) Hardware structure RFID CF reader CF interface WindowCE Platform PDA or other compatible device (4) Hardware appearance introduction Antenna inside CF interface connecter (5) System requirement Item Condition Quantity Hardware requirement PDA support CF interface Platform requirement Windows Pocket PC 2003...
Page 5
(6) How to install reader Face the side with LED up, and insert it into PDA CF slot as shown in picture. Normally always insert CF reader by put LED side up, but some PDA put CF slot at reverse side, it means user needs to insert CF reader at back side. (LED down)
2. Demo software environment (1) Demo software introduction This demo program can build a database include TAG ID、TAG information and picture. It can be use to demo ex. material manager、In/out control for people… etc. (2) Block diagram Tag ID Main Program Data base Picture Information...
Page 7
Demo software contents Item Description Development Microsoft Visual Studio 2005 Traditional Edition tool WinceDEMO.exe Main program sunlitrfidppc.dll Dynamic Link Library file File contents Database.txt ID database file after ID saved A picture file includes different pictures PIC [Folder] which correlated with each individual ID Main Program Window Function Description...
Page 8
Demo program operation (a) Copy demo program files “WinceDEMO.exe” & “sunlitrfidppc.dll” to PDA and store at same directory. ※ About the file transmissions please refer to PDA user’s manual. (b) Plug reader in CF slot of PDA...
Page 9
(c) Click file “WinceDEMO.exe” and click “Open” to open device(Reader) It mean open device successful (d) Create a ID data base Be sure the Mode is “Passive” Put the tag on front side of reader, click “Read” to scan Tag ID and checking ID number is showing on ID window.
Page 10
(e) Editing information about the ID number on “Information” window. Click “Updata” and check “Tag DataBase” window to complete the data base created procedure. It mean database created successful (f) You can follow the step (d) (e) to create some data base that you want. (g) When you created the data base, the system was created 1 folder and 1 text file: Item Description...
Page 11
When you created the data base, the system was created 1 folder and 1 text file (h) Set Mute function Follow the figure click the” Mute” function check box, the mute function will enable.
Page 12
(i) Set Operation mode Mode: Active Click the “Mode” combo box and select “Active” item to enable active function Click “Read”, if tag scanned by reader and the scan procedures will continuously. Continue Scanning Mode: Passive Click “Mode” combo box select “Passive” item to enable passive function Click “Read”...
Page 13
(j) Delete data base Click data you want to delete on Tag DataBase window Click “Delete” and select “Yes” to delete data. (k) Clear function If click “Clear” than the text message on the Message window will be clear.
Page 14
(l) Disable device(Reader) To confirm device is open. Click “Close” to disable device.
3. API user’s guide ONE:Structure of Sunlit RFID DLL for PPC TWO:Program Declaration THREE:FUNCTION Introduction FOUR:EVENTS Introduction APPENDIX:Development Environmen...
Page 16
ONE、Structure of Sunlit RFID DLL for PPC The Sunlit RFID DLL has 18 functions. They can separate into 3 groups:Comport operation、Device operation and Device information: Comport operation functions includes following 5 functions: SUNLITRFID_CFExist SUNLITRFID_Open SUNLITRFID_OpenII SUNLITRFID_IsOpen SUNLITRFID_Close. Most functions of SUNLITRFID_Open and SUNLITRFID_OpenII are the same, except using different parameters.
Page 17
SUNLITRFID_OpModeGet(BYTE *Data) SUNLITRFID_ActiveScanIntervalSet(BYTE Data) SUNLITRFID_ActiveScanIntervalGet(BYTE *Data) SUNLITRFID_ScanTag(SUNLITRFID_TAGID *TagID) Device information functions SUNLITRFID_ProductNameGet(SUNLITRFID_PRODUCT_NAME *ProductName) SUNLITRFID_ModelNameGet(SUNLITRFID_MODEL_NAME *ModelName) SUNLITRFID_HardwareVersionGet(SUNLITRFID_HARDWARE_VER *HardwareVer) SUNLITRFID_FirmwareVersionGet(SUNLITRFID_FIRMWARE_VER *FirmwareVer) Currently, there are only 3 different EVENTS in Sunlit RFID DLL: Environment.haEvent[ENVIRONMENT_EVENT_ACTIVE_READ_TAG] Environment.haEvent[ENVIRONMENT_EVENT_COMPORT_ERROR] Environment.haEvent[ENVIRONMENT_EVENT_PORT_CLOSE] For more information, Please see EVENTS Introduction.
Page 18
The following picture represents how the DLL works with your program.
Page 19
TWO、Program Declaration (1) Constant Definition The following table lists all constant definition that TYPE definition used. Definition Introduction #define PRODUCT_NAME_LENGTH Define the length of product name information. (Unit:byte) #define MODEL_NAME_LENGTH Define the length of model name information. (Unit:byte) #define HARDWARE_LENGTH Define the length of hardware version information.
Page 20
(2) TYPE Definition The following table lists all TYPE definition that function used. Definition Introduction typedef struct Type definition of tag ID unsigned char data[TAG_LENGTH]; Since Mu-ID data is represented by 128 bits } SUNLITRFID_TAGID; format, so we condense this 128 bit information by byte format.
Page 21
(3) MESSAGE Definition The following table lists all DLL function message and how to solve it. Name Value Introduction HANDLE_SUCCESS 0x00 This message will happen when the function you called was executed successfully. HANDLE_ERR_TAG_PASSIVE 0x20 This message will happen when you call “SUNLITRFID_ScanTag”...
Page 22
HANDLE_ERR_UNKNOW 0xff Undefined error. Please record how this message happened and contact with us 〈www.sunlitcorp.com〉. Others Unknow message. Please record how this message happened and contact with us 〈www.sunlitcorp.com〉.
Page 23
THREE、FUNCTION Introduction bool SUNLITRFID_CFExist ( TCHAR *CFName SUNLITRFID_ComportNumGet is used to find the CF card in your PPC. : Parameters CFName:The parameter is shown as TCHAR array format, when this function is executed successfully, the array will show each COMPORT name that inserted CF card. For example, your PPC has 2 different CF card, insert into COM 1 and COM 4, then CFName will show as “COM1\0x00COM4\0x00”.
Page 24
BYTE SUNLITRFID_Open ( HWND hWnd, LPCWSTR PortName, DWORD BaudRate, SUNLITRFID_ENVIRONMENT *Environment SUNLITRFID_Open is used to open the comport : Parameters hWnd:The program’s HANDLE as a parameter that send thru the Function. If you don’t know what’s your program’s HANDLE, use NULL.
Page 25
BYTE SUNLITRFID_OpenII( HWND hWnd, LPCWSTR PortName, DWORD BaudRate, HANDLE *haEvent, SUNLITRFID_TAGID *ActiveTagID SUNLITRFID_OpenII is used to open the comport. : Parameters hWnd:The program’s HANDLE as a parameter that send thru the Function. If you don’t know what’s your program’s HANDLE, use NULL.
Page 26
bool SUNLITRFID_IsOpen(void); SUNLITRFID_IsOpen can check the comport status that is opened or not. : Parameters No parameter needed. : Return Values The function will return a boolean value. If comport was opened,it will return true,otherwise false. : For example if(SUNLITRFID_IsOpen()) {} //Comport is open else //Comport is closed...
Page 27
BYTE SUNLITRFID_Echo(void); SUNLITRFID_Echo request device to reply message. : Parameters No parameter needed. : Return Values The function will return byte value that indicate the execution result.Please see 「MESSAGE」 definition for byte value : For example if(SUNLITRFID_Echo()==HANDLE_SUCCESS) {} //The device was reply message successfully else BYTE SUNLITRFID_SoftwareReset(void);...
Page 28
BYTE SUNLITRFID_HardwareReset(void); SUNLITRFID_HardwareReset reset device by hardware.〈Depend on device〉 : Parameters No parameter needed. : Return Values The function will return byte value that indicate the execution result.Please see 「MESSAGE」 definition for byte value : For example if(SUNLITRFID_HardwareReset()==HANDLE_SUCCESS) {} //The device was reset by hardware successfully else BYTE SUNLITRFID_Pause(void);...
Page 29
10. BYTE SUNLITRFID_OpModeSet( BYTE Data SUNLITRFID_OpModeSet is used to set dvice’s operation mode, “Active Mode” or “Passive Mode”. : Parameters Data:The value 0x00 represents passive mode,other values represent active mode : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」 definition for byte value :...
Page 30
11. BYTE SUNLITRFID_OpModeGet( BYTE *Data SUNLITRFID_OpModeGet is used to get dvice’s operation mode. : Parameters Data:After executing the function ,The value 0x00 represents that the device was in passive mode,other values represent that the device was in active mode. : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」...
Page 31
12. BYTE SUNLITRFID_ActiveScanIntervalSet( BYTE Data SUNLITRFID_ActiveScanIntervalSet is used to set the scan interval time for active mode. : Parameters Data:The value represents scan interval time,bwtween 5 ~ 255 (Uint:10mS) : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」 definition for byte value. :...
Page 32
14. BYTE SUNLITRFID_ScanTag( SUNLITRFID_TAGID *TagID SUNLITRFID_ScanTag for scan tag. When it passive mode, reader will read tag once, when it is active mode, reader will start to read tag continuously. : Parameters TagID:Please see 「TYPE」 definition. : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」 definition for byte value. :...
Page 33
15. BYTE SUNLITRFID_ProductNameGet( SUNLITRFID_PRODUCT_NAME *ProductName SUNLITRFID_ProductNameGet is used to get the product name information form the device. : Parameters ProductName:Please see 「TYPE」 definition. : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」 definition for byte value. :...
Page 34
17. BYTE SUNLITRFID_HardwareVersionGet( SUNLITRFID_HARDWARE_VER *HardwareVer SUNLITRFID_HardwareVersionGet is used to get the hardware version from the device. : Parameters HardwareVer:Please see 「TYPE」 definition. : Return Values The function will return byte value that indicate the execution result, please see 「MESSAGE」 definition for byte value. :...
Page 35
FOUR、EVENTS Introduction Environment.haEvent[ENVIRONMENT_EVENT_ACTIVE_READ_TAG] The event happened when the device read a tag in active mode. Environment.haEvent[ENVIRONMENT_EVENT_COMPORT_ERROR] The event happened when comport or hardware error that DLL can’t communicate with device. Environment.haEvent[ENVIRONMENT_EVENT_PORT_CLOSE] The event happened when comport closed. The event’s purpose is let your thread or timer to escape form the waiting function “WaitForSingleObject”...
4. Demo program source code ONE、The Main Framework of the Demo Program The following picture represents the main framework of the demo program.
Page 37
TWO、Program Code Explanation ※ There are many subroutines, following are the source code of to subroutines. The explanation is in accordance with user interface. (1) Open Comport Click “Open” button to open comport. The “Open” button executes the following code. void CWinceDEMODlg::OnBnClickedButtonOpen() // TODO: 在此加入控制項告知處理常式程式碼...
Page 39
(2) Select Operation Mode “Operation Mode:” selects “passive” or “active”. Then click “Apply” button to apply setting. “Mode:” selects “passive” or “active”, it executes the following code. void CWinceDEMODlg::OnCbnSelchangeComboOpmode() // TODO: 在此加入控制項告知處理常式程式碼 CString sTemp,sTemp2; BYTE byTemp=0; if(SUNLITRFID_IsOpen()) SUNLITRFID_Pause(); ListMsg.InsertString(0,CString("Pause Device!!!")) ; SUNLITRFID_ActiveScanIntervalSet(DEFAULT_SCAN_INTERVAL_10MS);...
Page 40
(3) Read Tag Click “Read” button to read tag. When it passive mode, reader will read tag once, when it is active mode, reader will start to read tag continuously. The “Read” button executes the following code. void CWinceDEMODlg::OnBnClickedButtonRead() // TODO: 在此加入控制項告知處理常式程式碼 CString sTemp,sTemp2;...
Page 41
break; case HANDLE_ERR_NO_RESPONSE: ListMsg.InsertString(0,CString("Device has no response???")); break; default: sTemp.Format(CString("Undefined value:%d..."),byTemp); ListMsg.InsertString(0,sTemp); break; SetEvent(hEventFlip); ButtonRead.EnableWindow(true); APPENDIX:Development Environment Hardware Environment: Product Name:RFID CF Type Reader V3.0 Model Name:SLC-10200 Firmware Version:V1.0 or later Hardware Version:V1.0 or later Software Environment: Development Environment:Microsoft Visual C++ 2005 Professional〈Chinese Traditional〉...
Quantity CF type reader Application CD How to contact us For further information or in case of difficulties please contact Sunlit System Technology Corp. www.sunlitcorp.com 8F1, NO19, LANE.120, SEC.1, Neihu Rd., Neihu Chiu Taipei Taiwan 114 R.O.C. webmaster@sunlitcorp.com TEL: 886-2-6600-6351...
Page 43
Warning: In order to avoid misuse or any unexpected damage, please read this guide first. FCC Statement Regulatory Approvals This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
Need help?
Do you have a question about the SLC-10100 and is the answer not in the manual?
Questions and answers