background image

 

 

 
 
 

 

 

 

MR650 Programming Manual 

 
 
 
 
 
 
 
 

 

 

 

 

 

 
 

                                                                                                                                             
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

V 1.12 1/16/2008

 

Содержание MR650

Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...

Страница 2: ...et scan data 12 2 8 Get length of scanned data 13 2 9 Get Symbology name 13 2 10 Clear scan data system buffer 14 2 11 Good read indicator 14 2 12 Wait for acknowledgement of the last sent command 14 2 13 Save setting to profiles 14 2 14 Save scanner setting into specified file 14 2 15 Change scanner setting from specified setting profile 15 2 16 Automatically enable scanner beam with pressing tri...

Страница 3: ...dows explorer 25 4 9 Enable toolbar on windows explorer 25 5 SYSIOAPI DLL FOR HARDWARE RELATED IO CONTROL API 26 5 1 IO Device Control Method 27 5 1 1 Create IO Device 27 5 1 2 Close Device 27 5 2 Access Relays 28 5 2 1 Check Relay Status 28 5 2 2 Set Relay 29 5 3 Access Optical Isolated Input 30 5 3 1 Get Optical Isolated Input Status 30 5 3 2 Event for Optical Input Change 31 5 4 Get Back Cover ...

Страница 4: ... 41 6 10 Video playback function 42 6 10 1 Initiate playback 42 6 10 2 Release playback 42 6 10 3 Start playback 42 6 10 4 Stop playback 42 6 10 5 Pause playback 42 6 10 6 Continue playback 42 6 10 7 Check if playback 43 6 11 Convert raw MPEG to standard MPEG 43 7 FINGER PRINT CONTROL BIOIDDLL DLL 44 7 1 Start Finger print function 44 7 2 Stop Finger print function 44 7 3 Connect to Finger print m...

Страница 5: ...globe threshold from FP module 50 7 21 Enroll FP template into FP module 50 7 22 Get last time error condition 50 7 23 Verify FP template 51 7 24 Check if there is finger print above sensor 51 7 25 Get Max template number 51 8 USEFUL FUNCTION CALL WITHOUT INCLUDE SYSIOAPI DLL 52 8 1 Warm boot Cold boot and power off 52 9 MIFARE READER LIBRARY 53 9 1 Connect to Mifare Reader 53 9 2 Disconnect with ...

Страница 6: ...Code 58 10 GET DEVICE ID 59 11 FLASH CONFIGURATION MANAGER FLASHCONFIGMANAGER DLL 60 11 1 Open Camera 60 11 2 Updating a Configuration Setting 60 11 3 Adding a Customer Configuration Setting 60 11 4 Deleting A Configuration Entry 61 11 5 Verifying an Entry s Value 61 11 6 Handling Errors 61 12 RS485 COMMUNICATION 62 12 1 Why RS485 62 12 2 Windows APIs Used 62 12 3 Sample code 62 12 3 1 Opening the...

Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...

Страница 8: ...ion parameter is fixed on 38400 N 8 1 Normally the Decoder Chip is in sleep mode when COM2 is not activated When COM2 is activated the Decoder Chip will start working and it will decode the barcode signal from the laser engine when the trigger key is pressed After decoding barcode data and its symbology type will be sent directly to MR650 Many programmers find it difficult to control the Decoder C...

Страница 9: ... useful sample program for VC C and VB NET from below URL http w3 tw ute com pub cs software sample_program mr650 MR650_Sample_source zip It includes below functions sample program 1 Finger print 2 Camera 3 RS485 4 Audio Wave record and play ...

Страница 10: ... a system error which is caused by a call to the system function Param contains the error code from GetLastEror SM_ERROR Indicates an error Param contains the cause of error which can be on of followings SERR_INVALID_HWND Invalid window handle SERR_INVALID_MSGID msgID cannot be 0 SERR_OPEN_SCANNER Open or initial scanner port failed SERR_CHECKSUM Checksum error in received packet SERR_DATALOST New...

Страница 11: ...he scanner to the working mode and reset the communication control Function call BOOL USI_Reset Return code Always TRUE 2 5 Get error code Function Description Returns the error code SERR_ Function call DWORD USI_GetError Return code Return the error code SERR_ which has been described in USI_Register function 2 6 Return the system error code Function Description Return the system error code which...

Страница 12: ...h is defined on USI H Please refer to below list BCT_CODE_39 Code 39 BCT_CODABAR CodaBar BCT_CODE_128 Code 128 BCT_INTERLEAVED_2OF5 Interleaves 2 of 5 BCT_CODE_93 Code 93 BCT_UPC_A UPC A BCT_UPC_A_2SUPPS UPC A with 2 Supps BCT_UPC_A_5SUPPS UPC A with 5 Supps BCT_UPC_E0 UPC E BCT_UPC_E0_2SUPPS UPC E with 2 Supps BCT_UPC_E0_5SUPPS UPC E with 5 Supps BCT_EAN_8 EAN 8 BCT_EAN_8_2SUPPS EAN 8 with 2 Supp...

Страница 13: ...A BCT_UPC_A_2SUPPS UPC A with 2 Supps BCT_UPC_A_5SUPPS UPC A with 5 Supps BCT_UPC_E0 UPC E BCT_UPC_E0_2SUPPS UPC E with 2 Supps BCT_UPC_E0_5SUPPS UPC E with 5 Supps BCT_EAN_8 EAN 8 BCT_EAN_8_2SUPPS EAN 8 with 2 Supps BCT_EAN_8_5SUPPS EAN 8 with 5 Supps BCT_EAN_13 EAN 13 BCT_EAN_13_2SUPPS EAN 13 with 2 Supps BCT_EAN_13_5SUPPS EAN 13 with 5 Supps BCT_MSI_PLESSEY MSI Plessey BCT_EAN_128 EAN 128 BCT_T...

Страница 14: ... fon is FALSE 2 12 Wait for acknowledgement of the last sent command Function Description Wait for acknowledgement of the last sent command until timeout It is useful when a serial of commands needs to be sent at a time Before call USI_SendCommand call USI_WaitForSendEchoTO to make sure that the previous command is done Function call BOOL USI_WaitForSendEchoTO DWORD timeout Parameter input timeout...

Страница 15: ... not defined or the function is not found then auto scanning is not available HKEY_LOCAL_MACHINE SOFTWARE Unitech America Inc Scanner Settings DLLSCANNERCONTROL UPI300 DLL The function prototype of SetScannerOn is VOID WINAPI SetScannerOn BOOL fon Start when fon is TRUE and stop when fon is FALSE 2 17 Stop auto scanning function Function Description Stop auto scanning Function call void USI_StopAu...

Страница 16: ... it is for internal use send messages ...

Страница 17: ... call BOOL S2K_Enable BOOL enable DWORD timeout Parameter input enable BOOL TRUE Enable scanned data to keyboard buffer FALSE Disable scanned data to keyboard timeout DWORD when enable or disable Scan2Key it will wait until Scan2Key has been removed from memory or timeout specified by this parameter Return code TRUE success FALSE fail 2 23 Send scanner command to decoding chip Function Description...

Страница 18: ... queue to output 2 25 Send command to decoding chip Function Description Send command to decoder chip This is a variation of command HAM_SendCommand It will read a number of parameters and packet them as in following format and send it to decoder chip Esc parameter1 parameter2 BCC The total number of parameters is specified by first parameter num Function call BOOL HAM_SendCommand2 BYTE num BYTE p...

Страница 19: ...his command do not need send message back Hamster reply the ACK NAK Esc 80H NAK 15H It is from Hamster to Host Hamster require the Host to re send command again normally when received a wrong BCC it can send the NAK The Hamster sends back NAK whenever it receives a no sense command COMMAND FROM HOST TO HMASTER Command format Esc Lh Ll n m S1 Si BCC Here Esc is Escape code H 1B Lh Ll is command s l...

Страница 20: ...can_pre_data Esc 0 L 1b m S1 Si BCC Si can be 1 to 8 CHARACTERS Scan_post_data Esc 0 L 1c m S1 Si BCC Si can be 1 to 8 CHARACTERS Define_code39f Esc 0 4 1d m S1 BCC define Code 39 full ASCII ID Here S1 is 1 CHARACTER Define_code39s Esc 0 4 1e m S1 BCC define Code 39 standard ID Here S1 is 1 CHARACTER Define_EAN13 Esc 0 4 1f m S1 BCC define EAN13 ID Here S1 is 1 CHARACTER Define_UPCA Esc 0 4 20 m S...

Страница 21: ...1 BCC S1 is 0 first digit suppressed 1 last digit suppressed 2_not supressed I25_min Esc 0 4 45 m S1 BCC S1 is 2 64 10 min data len I25_max Esc 0 4 46 m S1 BCC S1 is 2 64 64 data len max S2of5_set Esc 0 4 47 m S1 BCC S1 is S1 b0 is for S2of5_enable S1 b1 is for S2of5_fixlength S1 b3b2 is for S2of5_cd S2of5_enable Esc 0 4 48 m S1 BCC S1 is 0_disable 1 enable S2of5_fixlength Esc 0 4 49 m S1 BCC S1 i...

Страница 22: ... 71 m S1 BCC S1 is S1 b0 is for Label_c_enable S1 b1 is for Label_code_cd Label_c_enable Esc 0 4 72 m S1 BCC S1 is 0_disable 1 enable Label_code_cd Esc 0 4 73 m S1 BCC S1 is 0 check digit send 1 not send Upc_a_set Esc 0 4 74 m S1 BCC S1 is S1 b0 is for Upc_a_enable S1 b1 is for Upc_a_ld S1 b2 is for Upc_a_cd Upc_a_enable Esc 0 4 75 m S1 BCC S1 is 0 disable 1_enable Upc_a_ld Esc 0 4 76 m S1 BCC S1 ...

Страница 23: ...is 0 0 5s 1_1s 2 1 5s 3 2s Exchange data Esc Lh Ll a3 S1 S2 Sn BCC Expect Acknowledge Esc 80H ACK 06H Exchange the data between the host and the ICC Expected return after issuing Execute Enquiry command are Esc Lh Ll 0xa3 AH data BCC Here AH 0 Success 1 Timeout 2 No card present data Response data and status word Note Hamster save these commands to buffer and do not execute until it receives an Ex...

Страница 24: ...e task bar keyboard and etc You can get demo program from MR650 technical binder zip files from programming UnitechAPI 4 1 Disable ActiveSync Function Description After called this function MR650 will not automatically execute ActiveSync program repllog exe when user plug RS232 cable into MR650 Function call BOOL RS232EventEnable VOID Return code TRUE OK FALSE Fail 4 2 Enable ActiveSync Function D...

Страница 25: ...OK FALSE Fail 4 7 Enable Desktop Function Description This function will show all icons which had already showed on desktop before executed DisableDesktop Function call BOOL EnsableDesktop VOID Return code TRUE OK FALSE Fail 4 8 Disable toolbar on windows explorer Function Description This function will hide windows explorer s toolbar Function call BOOL DisableExploreToolbar VOID Return code TRUE ...

Страница 26: ...ntrol device and use DeviceIoControl function to access IO With DLL method a DLL named SysIOAPI DLL is embedded in system and corresponding library and include files are provided in SDK for linking with application Either method should work fine but IO device method is more generic Those functions are IO device control method BOOL IOC_GetRelayStatus DWORD BOOL IOC_SetRelay1 BOOL BOOL IOC_SetRelay2...

Страница 27: ...IO device not found function not supported error process CloseHandle gIOControlDriverHandle After IO device opened IO functions can be accessed through DeviceIoControl If the device handle has the same name as gIOControlDriverHandle then help macros defined in ioc_ioctl h are ready to use In following examples we assume IO device has been successfully opened already with handle name gIOControlDriv...

Страница 28: ...relay Example include ioc_ioctl h DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_GetRelayStatus dwStatus if dwStatus RELAY1_BITS relay 1 close else relay 1 open if dwStat...

Страница 29: ...e FALSE for relay open Return code TRUE Success FALSE Unsupported Example include ioc_ioctl h HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_SetRelay1 TRUE close relay 1 IOC_SetRelay4 F...

Страница 30: ...1_BITS OPTICAL4_BITS define which bit of pStatus corresponds to which input Example include ioc_ioctl h DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_GetOpticalInput dwS...

Страница 31: ...DriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process gOpticalIOInputEvent CreateEvent NULL FALSE FALSE IOC_OPTICAL_INPUT_EVENT if gOpticalIOInputEvent NULL not supported error process while 1 WaitForSingleObject gOpticalIOInputEvent IN...

Страница 32: ...ions can use a thread to catch this event for necessary tasks An example thread as below void WINAPI IOCoverSwitchMonitor HANDLE gCoverSwitchEvent NULL DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not...

Страница 33: ... Be aware to release handles when program ends ...

Страница 34: ...Status DWORD Optical status Return code TRUE Success FALSE Unsupported Example DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_Module1PowerStatus dwStatus if dwStatus MODU...

Страница 35: ...ptical status Return code TRUE Success FALSE Unsupported Example include ioc_ioctl h HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_PowerModule1 TRUE power on module 1 IOC_PowerModule1 ...

Страница 36: ...enable disable status Return code TRUE Success FALSE Unsupported Example include ioc_ioctl h DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process GetPCMCIA0Status dwStatus if dwSta...

Страница 37: ...l h DWORD dwStatus HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process GetPCMCIA0Status dwStatus if dwStatus 0 IOC_EnablePCMCIA0 TRUE if CF disabled enable it else IOC_EnablePCMCIA0 FALSE if CF ...

Страница 38: ...tion call BOOL IOC_Camera_Reset Return code TRUE Success FALSE Unsupported Example include ioc_ioctl h HANDLE gIOControlDriverHandle gIOControlDriverHandle CreateFile L IOC1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 0 If gIOControlDriverHandle INVALID_HANDLE_VALUE IO device not found function not supported error process IOC_Camera_PowerOn IOC_Camera_Reset IOC...

Страница 39: ...og timeout value Function call void StartWatchdog 5 8 3 Pause the watchdog Function Description Pause the watchdog Actually hardware watchdog cannot be stopped This function allows the user application to stop calling SetWatchdogTimeout Instead a thread in the IOC driver will be calling SetWatchdogTimeout continuously to avoid watchdog reboot Once paused the watchdog can be restarted by calling St...

Страница 40: ...n coordinates Actual displaying area can be a little smaller than the rectangle for hardware reasons Function call void StartPreview UINT left UINT top UINT width UINT height Parameters Input left UINT horizontal starting pixels point from left top corner top UINT vertical starting pixels point from left top corner width UINT horizontal pixel width height UINT vertical pixel width 6 4 Stop Preview...

Страница 41: ...r value green UINT8 Green color value blue UINT8 Blue color value 6 8 Start video capture Function Description Start video capture must be called within StartPreview and StopPreview Function call BOOL StartVideoCapture LPCTSTR filename UINT width UINT height UINT fps Parameters Input filename LPCTSTR File name with path to store video raw MPEG4 width UINT horizontal pixel width height UINT vertica...

Страница 42: ...orner top UINT vertical starting pixels point from left top corner width UINT horizontal pixel width height UINT vertical pixel width Return code TRUE Success FALSE Fail 6 10 2 Release playback Function Description Called after the playback to release the decoder Function call void UnInitializeDecoder 6 10 3 Start playback Function Description Start the playback playback will be displayed in the s...

Страница 43: ...11 Convert raw MPEG to standard MPEG Function Description Convert m4v raw format to mp4 standard mpeg4 container which is playable on quicktime divx xvid players Function call BOOL ConvertM4vToMP4 char MP4File LPCTSTR M4vFile Parameters Input MP4File char Standard MPEG 4 M4vFile LPCTSTR Raw MPEG 4 file to be play Return code TRUE Success FALSE Fail ...

Страница 44: ...R LPCOMMDATA 7 2 Stop Finger print function Function Description Stop MR650 finger print function include deallocate COM port data Function call void BioID_Destroy LPCOMMDATA CommData Parameters Input CommData LPCOMMDATA refer to BioID_Create 7 3 Connect to Finger print module Function Description Connect to FP s COM port using the parameters given by lpCommData Function call WORD BioID_Connect LP...

Страница 45: ... code WORD Always TRUE 7 6 Get module s communication type Function Description Get FP module s communication port type 1 for RS232 2 for RS485 and save in lpConfig Type Function call WORD BioID_GetType LPCOMMDATA CommData LPCONFIG lpConfig Parameters Input CommData LPCOMMDATA refer to BioID_Create Parameters Output lpConfig LPCONFIG Below is definition for LPCONFIG typedef struct _tagCONFIG WORD ...

Страница 46: ... 7 8 Get FP module s baudrate Function Description Get FP module s baudrate and save into lpConfig Baud Function call WORD BioID_GetBaud LPCOMMDATA CommData LPCONFIG lpConfig Parameters Input CommData LPCOMMDATA refer to BioID_Create Parameters Output lpConfig LPCONFIG refer to BioID_GetType Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occurred during receiving data 6 CmdYES Success 7 9 S...

Страница 47: ...er to BioID_GetType Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occurred during receiving data 6 CmdYES Success 7 12 Set FP module s Aux Port baudrate Function Description Set FP module s Aux port baudrate Function call WORD BioID_SetBaud LPCOMMDATA CommData LPCONFIG lpConfig Parameters Input CommData LPCOMMDATA refer to BioID_Create lpConfig LPCONFIG refer to BioID_GetType Return code W...

Страница 48: ...WORD ID number 1 if invalid Index WORD index number 1 if invalid Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occurred during receiving data 6 CmdYES Success 7 16 Get template from FP module Function Description Get finger print template from module s memory Function call WORD BioID_UpLoad LPCOMMDATA CommData DWORD Id WORD Index LPDWORD lpdwSize LPBYTE lpTemplate Parameters Input CommData...

Страница 49: ...ule s memory Function call WORD BioID_Remove LPCOMMDATA CommData DWORD Id WORD Index Parameters Input CommData LPCOMMDATA refer to BioID_Create Id DWORD ID number Index WORD index number Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occured during receiving 6 CmdYES Success 7 19 Get globe threshold from FP module Function Description The function gets the globe verification value from FP m...

Страница 50: ... Function call WORD BioID_Enroll LPCOMMDATA CommData DWORD Id LPDWORD lpdwQuality LPDWORD lpdwContent Parameters Input CommData LPCOMMDATA refer to BioID_Create Id DWORD ID number Parameters Output lpdwQuality LPDWORD 0 100 lpdwContent LPDWORD 0 100 Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occured during receiving 6 CmdYES Success 7 22 Get last time error condition Function Descriptio...

Страница 51: ...scription The function detects if a finger is present on the sensor Function call WORD BioID_IsFinger LPCOMMDATA lpCommData BOOL pbPresent Parameters Input CommData LPCOMMDATA refer to BioID_Create Parameters Output pbPresent BOOL TURE Present FALSE Not present Return code WORD 130 CmdErrTime Timeout 7 CmdNO Error occured during receiving 6 CmdYES Success 7 25 Get Max template number Function Desc...

Страница 52: ...t and power off include pkfuncs h include oemioctl h Warn boot KernelIoControl IOCTL_HAL_REBOOT NULL 0 NULL 0 NULL Cold boot KernelIoControl IOCTL_COLD_BOOT NULL 0 NULL 0 NULL Power off DWORD dwExtraInfo 0 BYTE bScan 0 keybd_event VK_OFF bScan KEYEVENTF_SILENT dwExtraInfo keybd_event VK_OFF bScan KEYEVENTF_KEYUP dwExtraInfo ...

Страница 53: ...he connection with reader Function call int Mifare_Disconnect Parameters None Return code Please refer to chapter 10 21 9 3 Check the connection with Mifare Reader Function Description To check the connection with Mifare reader Function call BOOL Mifare_IsConnect Parameters None Return code TRUE Connected FALSE Disconnected 9 4 Firmware Version Function Description To get the firmware version of t...

Страница 54: ...refer to chapter 10 21 9 7 Load Key with User Defined Function Description To load user defined key Function call int Mifare_LoadKeyWithUserDefine char szKey Parameters szKey In The key value for 12 characters Return code Please refer to chapter 10 21 9 8 Read Card s Block Data Function Description Read the data form card s block Function call int Mifare_ReadCardData char szData int nLen int nKeyM...

Страница 55: ... number to read value szKey In The key value for 12 characters Return code Please refer to chapter 10 21 9 11 Write Card s Value Function Description Write data to card s block with value type Function call int Mifare_WriteValue UINT nValue int nKeyMode int nSector int nBlock char szKey Parameters nValue In The value which be written to the card nKeyMode In The key mode 0 for Key A 1 for Key B nSe...

Страница 56: ...Sector In The sector number to read data szKey In The key value for 12 characters Return code Please refer to chapter 10 21 9 15 Read Multi Sectors Data Function Description Read multi sectors data in the card and it will return 3 blocks 48 bytes data with each sector Function call int Mifare_ReadMultiSectorData char szData int nLen int nKeyMode int nSector int nSectorNum char szKey Parameters szD...

Страница 57: ...ers None Return code Please refer to chapter 10 21 9 19 Get Card Serial Number Function Description To get card serial number after get the event EVENT_MIFARE_GET_DATA Function call int Mifare_GetData char szData int nLen Parameters szData Out Point to the buffer that receive the data nLen In The size of the parameter szData Out Return the data length of szData Return code Please refer to chapter ...

Страница 58: ...ameter is too small to get data ERR_WRITE_KEY_TO_EEPROM_FAI L 0X0006 Write key to EEPROM fail ERR_LOAD_KEY_FAIL 0X0007 Load key fail ERR_WRITE_CARD_ERROR 0X0008 Card write data error ERR_WRITE_VALUE_ERROR 0X0009 Card write value error ERR_INCREMENT_ERROR 0X000A Increase value error ERR_DECREMENT_ERROR 0X000B Decrease value error ERR_READING 0X000C The API Mifare_StartRead is working please stop it...

Страница 59: ...LL 0 outBuf sizeof outBuf bytesReturned Platform ID memcpy PBYTE platformID PBYTE pDeviceID pDeviceID dwPlatformIDOffset pDeviceID dwPlatformIDBytes Device ID memcpy PBYTE deviceID PBYTE pDeviceID pDeviceID dwPresetIDOffset pDeviceID dwPresetIDBytes The code will have platformID holds Platform ID and deviceID holds Device ID The follow is the API to get UUID in MR650 KernelIoControl IOCTL_HAL_GET_...

Страница 60: ...ion call int SetConfigValue char name void value Parameters Input name char The name of the entry you wish to set value void Void pointer to a buffer containing the string to set to For ease of file system value will be an array of bytes Value must be already allocated and written Type restricts the possible values that the array of bytes can be but does not indicate actual data type For example f...

Страница 61: ...an easy way to check an entries value against a known possible value Function call BOOL CheckConfigValue char name void value Parameters Input name char Specify the name of the configuration you wish to check against value void enter the value you are looking for Return code 0 upon success error code upon failure 11 6 Handling Errors Error Code Meaning Possible Causes Solutions 1 Unable to read cu...

Страница 62: ...o defined in Winbase h For more info see the MSDN page http msdn microsoft com library default asp url library en us devio base dcb_str asp 12 3 Sample code Please refer to RS485demo folder from sample program 12 3 1 Opening the Com Port Function Description Com port needs to be opened to grant the application access to its data stream This is done by creating a virtual file and defining the acces...

Страница 63: ...a struct instead of DCB See line 137 of the sample program for an example this will not be necessary for most applications 12 3 3 Writing Data To The Com Port Function Description Before writing the port must be set to transmit mode by raising the RTS pin When that pin is low the port is in receive mode Direct control of the pin is possible through the Windows API EscapeCommFunction With the pin h...

Страница 64: ... reached lpOverlapped LPOVERLAPPED Not Supported set to Null Parameters Output lpBuffer LPCVOID Pointer to buffer containing data to write lpNumberOfBytesRead LPDWORD pointer to a DWORD that will contain the number of bytes read A value of 0 will indicate there was no data in the stream and timeout occured 12 3 5 Get error code Function Description Read or Write functions will return Boolean false...

Страница 65: ...ry setting for function Registry for Function Key HKEY_LOCAL_MACHINE HARDWARE DEVICEMAP KEYBD FKEYS FKeyProg10 Calibration exe FKeyProg2 ctlpnl exe FKeyParam2 Scanner cpl FKeyPath2 FKeyProg3 ctlpnl exe FKeyParam3 power FKeyPath3 FKeyProg4 FUNC9 exe FKeyParam4 FKeyPath4 FKeyProg1 4 mean launch program for F1 4 key FKeyProg10 mean ESC F1 combination key FKeyParam1 4 mean parameter for each program ...

Страница 66: ...ng V1 4 Add camera finger print and wave sample source code V1 5 Add C sample program link V1 6 Add section 5 4 for Back cover status V1 7 Add chapter 12 for function key RS485 program on chapter 11 V1 8 Add sample code for get UUID V1 9 Add watch dog function V1 10 Add Mifare library description V1 11 Change logo V1 12 Modify download URL ...

Отзывы: