The text of a manual · part 1 of 11
HT Series/PA Series/RH Series Programming Manual, pages 1 to 6
Pages 1 to 6 of 98
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Unitech HT660 and Unitech HT680
Page 1
unitech
HT Series/PA Series/RH Series Programming Manual
V 1.22 2011-10-14
Page 2
1
INTRODUCTION .................................................................................................................. 10
1.1
How to download data from scanner ..................................................................................................................... 10
1.2
COM definition for HT6xx/PA96x/PA982/RH Series/PA6xx/PA550 .................................................................. 11
1.3
Get SDK from unitech? .............................................................................................................................................. 14
2
USI.DLL – UNITECH SCANNER INTERFACE DLL ............................................................ 15
2.1
Register the application to the USI DLL ................................................................................................................. 15
2.2
Unregister the application from the USI.DLL ........................................................................................................ 16
2.3
Enable / Disable Scanner ........................................................................................................................................... 16
2.4
Reset Scanner .............................................................................................................................................................. 16
2.5
Get error code............................................................................................................................................................... 16
2.6
Returns the system error code................................................................................................................................. 17
2.7
Get scan data ................................................................................................................................................................ 17
2.8
Get length of scanned data ....................................................................................................................................... 18
2.9
Get Symbology name ................................................................................................................................................. 18
2.10
Clear scan data system buffer .............................................................................................................................. 20
2.11
Good read indicator ................................................................................................................................................ 20
2.12
Wait for acknowledgement of the last sent command ................................................................................... 20
2.13
Save setting to profiles .......................................................................................................................................... 20
2.14
Save scanner setting into specified file ............................................................................................................. 21
2.15
Change scanner setting from specified setting profile .................................................................................. 21
2.16
Automatically enable scanner beam with pressing trigger key ................................................................... 21
2.17
Stop auto scanning function ................................................................................................................................ 22
2.18
Check if auto scanning is enable......................................................................................................................... 22
2.19
Check if Scan2Key.exe program is running or not ......................................................................................... 22
2.20
Test if Scan2Key is enabled .................................................................................................................................. 22
2.21
Load/Unload Scan2Key.exe .................................................................................................................................. 23
2.22
Enable/Disable Scan2Key ...................................................................................................................................... 23 -2 -
Page 3
2.23
Send scanner command to decoding chip ....................................................................................................... 23
2.24
Only send single command decoding chip ...................................................................................................... 24
2.25
Send command to decoding chip........................................................................................................................ 24
2.26
Send scanner command set to decoding chip................................................................................................. 24
2.27
Get scanner command set from decoding chip............................................................................................... 24
2.28
Send scanner command set string to decoding chip .................................................................................... 25
2.29
Get scanner command set string from decoding chip .................................................................................. 25
2.30
Get scanner related version information ........................................................................................................... 26
2.31
Enable prompt warming message from USI ..................................................................................................... 26
2.32
Scanner working mode (available for 2D model)............................................................................................. 26
2.33
Get image (available for 2D model) ..................................................................................................................... 26
2.34
Resize image (available for 2D model) ............................................................................................................... 27
2.35
Save image to file (available for 2D model) ....................................................................................................... 27
2.36
Get terminator........................................................................................................................................................... 27
2.37
Set terminator ........................................................................................................................................................... 27
2.38
Get good read sound mode and sound name .................................................................................................. 27
2.39
Set good read sound mode and sound name .................................................................................................. 28
2.40
Set previewsize (only for 2D engine) .................................................................................................................. 28
2.41
Set previewsize time-out (only for 2D engine) ................................................................................................. 28
2.42
2D imager supporting for PA966/967 .................................................................................................................. 28
3
CONTROL COMMAND FOR DECODER CHIP (HAMSER: 1D ONLY) .............................. 29
4
SYSIOAPI.DLL .................................................................................................................... 33
4.1 Keypad Related Functions ........................................................................................................................................ 33 4.1.1 Disable/enable power button ................................................................................................................................ 33 4.1.2 Set keypad utility input mode................................................................................................................................ 34 4.1.3 Get keypad utility input mode ............................................................................................................................... 34 4.1.4 Check Alpha key is pressing ................................................................................................................................ 35 4.1.5 Enable/Disable Alpha Key .................................................................................................................................... 35 4.1.6 Check Alpha Key Status ....................................................................................................................................... 35 4.1.7 Check Function key status ................................................................................................................................... 35 4.1.8 Enable/Disable Function key ................................................................................................................................ 35 4.1.9 Set Function Mode ................................................................................................................................................. 36 4.1.10 Get Function Mode ................................................................................................................................................ 36 -3 -
Page 4
4.1.11 4.1.12 4.1.13 4.1.14 4.1.15 4.1.16 4.1.17 4.1.18 4.1.19
Detect Function Key Status .................................................................................................................................. 36 Check Start Key Status ......................................................................................................................................... 36 Enable/Disable Start Key ...................................................................................................................................... 36 Check Talk Key Status .......................................................................................................................................... 36 Enable/Disable Talk Key ....................................................................................................................................... 37 Check Phone End Key Status .............................................................................................................................. 37 Enable/Disable Phone End Key ........................................................................................................................... 37 Check Keypad Status ............................................................................................................................................ 37 Lock/Unlock Keypad .............................................................................................................................................. 37
4.2 Scanner Related Functions ....................................................................................................................................... 38 4.2.1 Enable/Disable Scanner trigger key .................................................................................................................... 38 4.2.2 Power on/off Scan Engine .................................................................................................................................... 38 4.2.3 Turn on/off Scan Engine ....................................................................................................................................... 38 4.2.4 Get Trigger keys Status ........................................................................................................................................ 38 4.2.5 Get Scanner Status ............................................................................................................................................... 39 4.2.6 Check Trigger key is pressing .............................................................................................................................. 39 4.3 LED related function ................................................................................................................................................... 40 4.3.1 Turn On/Off Good Read LED ............................................................................................................................... 40 4.3.2 Turn On/Off Camera LED ..................................................................................................................................... 40 4.3.3 Turn On/Off Green LED ........................................................................................................................................ 40 4.3.4 Turn On/Off Red LED ............................................................................................................................................ 40 4.4 Backlight related function ......................................................................................................................................... 41 4.4.1 Screen Backlight Control ...................................................................................................................................... 41 4.4.2 Get Screen Backlight Status ................................................................................................................................ 41 4.4.3 Keypad Backlight Control ...................................................................................................................................... 41 4.4.4 Get Keypad Backlight Status ................................................................................................................................ 41 4.4.5 Screen Backlight Brightness Control ................................................................................................................... 42 4.5 SD slot related functions ........................................................................................................................................... 42 4.5.1 Inquire SD slot status ............................................................................................................................................ 42 4.5.2 Enable/Disable SD Slot ......................................................................................................................................... 42 4.5.3 Get SD Slot Working Mode .................................................................................................................................. 42 4.5.4 Set SD Slot Working Mode ................................................................................................................................... 42 4.6
Enable/Disable Vibration ........................................................................................................................................... 43
4.7
Camera Auto Focus..................................................................................................................................................... 43
4.8 Device Information ...................................................................................................................................................... 43 4.8.1 Get Smart Battery ID ............................................................................................................................................. 43 4.8.2 Check Cradle Status.............................................................................................................................................. 43 4.9 Microphone, Receiver and Speaker Control ......................................................................................................... 43 4.9.1 Switch Receiver and Speaker .............................................................................................................................. 43 4.9.2 Get Main Microphone ............................................................................................................................................ 43 4.9.3 Set Main Microphone............................................................................................................................................. 44 4.10 Wireless module related functions ..................................................................................................................... 44 4.10.1 Inquire wireless module status ............................................................................................................................. 44 4.10.2 Enable/Disable wireless module .......................................................................................................................... 44 4.11 Bluetooth module related functions ................................................................................................................... 44 4.11.1 Enable/Disable Bluetooth Power status .............................................................................................................. 44 4.11.2 Get BT Power status ............................................................................................................................................. 44 -4 -
Page 5
4.12 PCMCIA/CF slot related functions ....................................................................................................................... 45 4.12.1 Get physical slot ID ................................................................................................................................................ 45 4.12.2 Enable/Disable PCMCIA or CF slot ..................................................................................................................... 45 4.12.3 Enable/Disable IO slots ......................................................................................................................................... 45 4.12.4 Inquire PCMCIA/CF slot status ............................................................................................................................ 46 4.12.5 Inquire IO slot status .............................................................................................................................................. 46 4.12.6 Disable PCMCIA/CF slot when resume .............................................................................................................. 46 4.13 Enable/Disable LCD screen ................................................................................................................................. 46
5
DYNAMIC LOAD DLL .......................................................................................................... 47
6
RFID HF READER ............................................................................................................... 48
6.1 General Function ......................................................................................................................................................... 48 6.1.1 Get library version .................................................................................................................................................. 48 6.1.2 Connect to RFID reader ........................................................................................................................................ 48 6.1.3 Close Reader .......................................................................................................................................................... 48 6.1.4 Select Card type ..................................................................................................................................................... 49 6.1.5 Get Reader Information......................................................................................................................................... 49 6.1.6 Antenna Control ..................................................................................................................................................... 49 6.2 ISO-15693 ....................................................................................................................................................................... 50 6.2.1 Inventory.................................................................................................................................................................. 50 6.2.2 Set StayQuiet Mode............................................................................................................................................... 50 6.2.3 Set Select Mode ..................................................................................................................................................... 50 6.2.4 Set Ready Mode..................................................................................................................................................... 51 6.2.5 Read The Block Data form ISO15693 Tag......................................................................................................... 51 6.2.6 Write The Block Data to ISO15693 Tag ............................................................................................................. 51 6.2.7 ISO15693 Lock Block ............................................................................................................................................ 52 6.2.8 Write AFI to ISO15693 Tag .................................................................................................................................. 52 6.2.9 ISO15693 Lock AFI ............................................................................................................................................... 52 6.2.10 Write DSFID to ISO15693 Tag ............................................................................................................................ 53 6.2.11 ISO15693 Lock DSFID .......................................................................................................................................... 53 6.2.12 Get Data From Reader .......................................................................................................................................... 53 6.3 ISO-14443A .................................................................................................................................................................... 54 6.3.1 Write Default Key ................................................................................................................................................... 54 6.3.2 ISO-14443A Open Card ........................................................................................................................................ 54 6.3.3 ISO-14443A Close Card ....................................................................................................................................... 55 6.3.4 ISO-14443A Read Block Data ............................................................................................................................. 55 6.3.5 ISO-14443A Read Sector Data ............................................................................................................................ 56 6.3.6 ISO-14443A Write Block Data.............................................................................................................................. 56 6.4 ISO-14443B .................................................................................................................................................................... 57 6.4.1 Select ST Card ....................................................................................................................................................... 57 6.4.2 Release ST Card.................................................................................................................................................... 57 6.4.3 Read SR176 Card’s Block Data ........................................................................................................................... 57 6.4.4 Write SR176 Card’s Block Data ........................................................................................................................... 57 6.4.5 Lock SR176 Block.................................................................................................................................................. 58 6.4.6 Read SRIX4K Card’s Block Data ......................................................................................................................... 58 6.4.7 Write SRIX4K Card’s Block Data ......................................................................................................................... 58 6.4.8 Authenticate SRIX4K Card ................................................................................................................................... 58 6.4.9 Read SRIX4K Card ID........................................................................................................................................... 59 6.5
Error Code ..................................................................................................................................................................... 59 -5 -
Page 6
7
UHF READER FOR WJ ....................................................................................................... 61
7.1
Class “MPRReader” .................................................................................................................................................... 61
7.2
The Parameter in MPRReader .................................................................................................................................. 61
7.3 The Function in MPRReader ..................................................................................................................................... 62 7.3.1 Connect to RFID Reader ...................................................................................................................................... 62 7.3.2 Disconnect with RFID Reader .............................................................................................................................. 62 7.3.3 Clear All Tags In The Reader ............................................................................................................................... 62 7.3.4 The Event in MPRReader ..................................................................................................................................... 62
8
UHF READER FOR SKYETEK............................................................................................ 63
8.1
Connect to RFID reader .............................................................................................................................................. 63
8.2
Disconnect with RFID reader .................................................................................................................................... 63
8.3
Select Tag ...................................................................................................................................................................... 63
8.4
Select Gen2 Tag ........................................................................................................................................................... 64
8.5
Read Data from Gen2 Tag’s Blocks ........................................................................................................................ 64
8.6
Write Data to Gen2 Tag’s Blocks ............................................................................................................................. 64
8.7
Select ISO18000-6B Tag ............................................................................................................................................. 65
8.8
Read Data from ISO18000-6B Tag’s Block ............................................................................................................ 65
8.9
Write Block Data to ISO18000-6B Tag .................................................................................................................... 65
8.10
Select All Tags of Any Type .................................................................................................................................. 66
8.11
Get The tags from Command InventoryTag ..................................................................................................... 66
8.12
Send a Tag Password ............................................................................................................................................. 66
8.13
Lock Gen2 Tag ......................................................................................................................................................... 67
8.14
Lock ISO18000-6B Tag ........................................................................................................................................... 67
8.15
Get Reader’s Power Level ..................................................................................................................................... 67
8.16
Set Reader’s Power Level ...................................................................................................................................... 68
8.17
Get the library version ............................................................................................................................................ 68
8.18
Get Reader’s Frequency ........................................................................................................................................ 68
8.19
Set Reader’s Frequency ......................................................................................................................................... 69
8.20
Get Reader’s Hop Channel Spacing ................................................................................................................... 69
8.21
Set Reader’s Hop Channel Spacing .................................................................................................................... 69 -6 -