background image

 

-17 

The following table lists all DLL FUNCTION and FUNCTION parameter. For more information, Please see FUNCTION Introduction. 

 

Comport operation functions 

SUNLITRFID_CFExist(TCHAR *CFName) 

SUNLITRFID_Open(HWND hWnd,LPCWSTR PortName, 

DWORD BaudRate,SUNLITRFID_ENVIRONMENT *Environment) 

SUNLITRFID_OpenII(HWND hWnd,LPCWSTR PortName, 

DWORD BaudRate,HANDLE *haEvent,SUNLITRFID_TAGID *ActiveTagID) 

SUNLITRFID_IsOpen(void) 

SUNLITRFID_Close(void) 

Device operation functions 

SUNLITRFID_Echo(void) 

SUNLITRFID_SoftwareReset(void) 

SUNLITRFID_HardwareReset(void)

Depend on device

 

SUNLITRFID_Pause(void) 

SUNLITRFID_OpModeSet(BYTE Data) 

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. 

 

 

 

 

 

Содержание SLC-10100

Страница 1: ...1 RFID CF Type Reader User s Guide Model Name SLC 10100 Version 1 0 Date 2007 04 09...

Страница 2: ...ntact us 42 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...

Страница 3: ...quency band This is small and light can be easily install to PDA tablet PC 2 Specification Power Supply DC 3V from PDA or PC Operating Environment 0 C 40 C Storage Environment 0 C 60 C Power Consumpti...

Страница 4: ...le device RFID CF reader Tag WindowCE Platform 4 Hardware appearance introduction 5 System requirement Item Condition Quantity Hardware requirement PDA support CF interface 1 Platform requirement Wind...

Страница 5: ...ce 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...

Страница 6: ...can be use to demo ex material manager In out control for people etc 2 Block diagram Main Program Tag ID Data base Picture Information 3 Demo program operation System requirement Item Condition Quanti...

Страница 7: ...orrelated with each individual ID Main Program Window Function Description Function Description ID Display Tag ID when Tag be read Delete Delete registered database Information Edit information about...

Страница 8: ...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...

Страница 9: ...on ID window Mark the ID number in Tag DataBase field Click Picture Folder to open location of picture that you want to correct with Tag ID Click Type to select file type that you want than click pic...

Страница 10: ...and 1 text file Item Description SDB text file ID database file after ID saved SDB Folder A picture file storage folder about correlate with ID database after picture saved Caution Every PDA are diffe...

Страница 11: ...11 h Set Mute function Follow the figure click the Mute function check box the mute function will enable When you created the data base the system was created 1 folder and 1 text file...

Страница 12: ...t Active item to enable active function Click Read if tag scanned by reader and the scan procedures will continuously Mode Passive Click Mode combo box select Passive item to enable passive function C...

Страница 13: ...elete 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 clea...

Страница 14: ...14 l Disable device Reader To confirm device is open Click Close to disable device...

Страница 15: ...15 3 API user s guide ONE Structure of Sunlit RFID DLL for PPC TWO Program Declaration THREE FUNCTION Introduction FOUR EVENTS Introduction APPENDIX Development Environment...

Страница 16: ...UNLITRFID_Open and SUNLITRFID_OpenII are the same except using different parameters Device operation functions includes following 9 functions SUNLITRFID_Echo SUNLITRFID_SoftwareReset SUNLITRFID_Hardwa...

Страница 17: ...TRFID_Pause void SUNLITRFID_OpModeSet BYTE Data SUNLITRFID_OpModeGet BYTE Data SUNLITRFID_ActiveScanIntervalSet BYTE Data SUNLITRFID_ActiveScanIntervalGet BYTE Data SUNLITRFID_ScanTag SUNLITRFID_TAGID...

Страница 18: ...18 The following picture represents how the DLL works with your program...

Страница 19: ...the length of hardware version information Unit byte define FIRMWARE_LENGTH 8 Define the length of firmware version information Unit byte define TAG_LENGTH 16 Define the length of Tag ID data Unit byt...

Страница 20: ...or more information Please see EVENTS Introduction ActiveTagID was introduced at above definition typedef struct char data PRODUCT_NAME _LENGTH 1 SUNLITRFID_PRODUCT_NAME Type definition of product nam...

Страница 21: ...D_ScanTag in passive mode but comport failed with some error To solve this problem please check hardware power or connection 6 HANDLE_ERR_CREATE_EVENT 0x88 This message will happen when you call SUNLI...

Страница 22: ...ERR_UNKNOW 0xff Undefined error Please record how this message happened and contact with us www sunlitcorp com 12 Others Unknow message Please record how this message happened and contact with us www...

Страница 23: ...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 Return Val...

Страница 24: ...se NULL PortName The comport name you want to open BaudRate The comport baud rate that you want to open with Environment Please see TYPE definition Return Values The function will return byte value th...

Страница 25: ...e you want to open BaudRate The comport baud rate that you want to open with haEvent Please see TYPE definition ActiveTagID Please see TYPE definition Return Values The function will return byte value...

Страница 26: ...return true otherwise false For example if SUNLITRFID_IsOpen Comport is open else Comport is closed 5 bool SUNLITRFID_Close void SUNLITRFID_Close is used for close comport Parameters No parameter need...

Страница 27: ...example if SUNLITRFID_Echo HANDLE_SUCCESS The device was reply message successfully else 7 BYTE SUNLITRFID_SoftwareReset void SUNLITRFID_SoftwareReset reset device by software Parameters No parameter...

Страница 28: ...or byte value For example if SUNLITRFID_HardwareReset HANDLE_SUCCESS The device was reset by hardware successfully else 9 BYTE SUNLITRFID_Pause void SUNLITRFID_Pause pauses the device from any operati...

Страница 29: ...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...

Страница 30: ...t 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 defin...

Страница 31: ...f SUNLITRFID_ ActiveScanIntervalSet byData HANDLE_SUCCESS Set scan interval successfully else 13 BYTE SUNLITRFID_ActiveScanIntervalGet BYTE Data SUNLITRFID_ActiveScanIntervalGet is used to get the cur...

Страница 32: ...tion Return Values The function will return byte value that indicate the execution result please see MESSAGE definition for byte value For example SUNLITRFID_TAGID TagID switch SUNLITRFID_ SUNLITRFID_...

Страница 33: ...oductName if SUNLITRFID_ProductNameGet ProductName HANDLE_SUCCESS Get product name information successfully else 16 BYTE SUNLITRFID_ModelNameGet SUNLITRFID_MODEL_NAME ModelName SUNLITRFID_ModelNameGet...

Страница 34: ...er if SUNLITRFID_HardwareVersionGet HardwareVer HANDLE_SUCCESS Get hardware version successfully else 18 BYTE SUNLITRFID_FirmwareVersionGet SUNLITRFID_FIRMWARE_VER FirmwareVer SUNLITRFID_FirmwareVersi...

Страница 35: ...t or WaitForMultipleObjects You may need to use Windows API function WaitForSingleObject or WaitForMultipleObjects to wait events For more information Please see Microsoft MSDN Library If you use func...

Страница 36: ...36 4 Demo program source code ONE The Main Framework of the Demo Program The following picture represents the main framework of the demo program...

Страница 37: ...en Comport Click Open button to open comport The Open button executes the following code void CWinceDEMODlg OnBnClickedButtonOpen TODO CString sTemp TCHAR CFName 1024 ZeroMemory CFName sizeof CFName B...

Страница 38: ...MessageBeep MB_ICONASTERISK else sTemp Format CString Open Comport s Fail CFName ListMsg InsertString 0 sTemp else ListMsg InsertString 0 CString Can t Find CF Card else SUNLITRFID_Close DrawEnvironm...

Страница 39: ...CString Pause Device SUNLITRFID_ActiveScanIntervalSet DEFAULT_SCAN_INTERVAL_10MS Set Operation Mode if ComboBoxOPMode GetCurSel 0 byTemp 0 Passive Mode else byTemp 0xff Active Mode if SUNLITRFID_OpMo...

Страница 40: ...ID DrawEnvironment ClearPicture switch byTemp case HANDLE_SUCCESS Only in Active Mode ListMsg InsertString 0 CString A Read break case HANDLE_ERR_TAG_PASSIVE Read Tag in Passive Mode if SDB IsExists T...

Страница 41: ...Msg 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 Firmwar...

Страница 42: ...ain program file sunlitrfidppc dll Dynamic Link Library file CFR_SLC 10100_ User Guide_V1_ENG pdf PDF file of user guide 6 Package list Item Quantity CF type reader 1 Application CD 1 7 How to contact...

Страница 43: ...ifferent from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help To assure continued compliance any changes or modifications not expressly approv...

Отзывы: