background image

 

 - 

Supplement_five,S1.b2 is for Supplement_mh, S1.b3 is for 

Supplement_ssi. 

Supplement_two 

Esc,0,4,88,m,S1,BCC 

S1 is 0_off,1 on 

Supplement_five 

Esc,0,4,89,m,S1,BCC 

S1 is 0_off,1 on 

Supplement_mh 

Esc,0,4,8a,m,S1,BCC 

S1 is 0_transmit if present,1 must present 

Supplement_ssi 

Esc,0,4,8b,m,S1,BCC 

S1 is 0 Space been inserted, 1_Space not been inserted 

Delta_code_set 

Esc,0,4,8c,m,S1,BCC 

S1 is S1.b0 is for Delta_c_enable,S1.b1 is for 
Delta_code_cdc,S1.b2 is for Delta_code_cds 

Delta_c_enable 

Esc,0,4,8d,m,S1,BCC S1 is 0_disable,1 enable 

Delta_code_cdc 

Esc,0,4,8e,m,S1,BCC 

S1 is 0_check digit calculate,1 not calculate 

Delta_code_cds 

Esc,0,4,8f,m,S1,BCC S1 

is 

=0 check digit send,1_not send 

Get_version Esc,0,3,90,2,BCC 

Get firmware version. 

DumpSetting Esc,Lh,Ll,91,m,S1...Si,BC

Lh/Ll is command length. Si is in the range of s1 to S255.m=0 
is download setting, m=1 is reset the setting area into FF. m=2 
is upload setting. 
Actually you just need the format as bellow: 
Download: 
Esc,1,02,91,0,s1,...,s255,BCC 
Upload: 
Esc,0,3,91,2,BCC 

EAN128Brace 
Remove 

Esc,0,4,92,m,S1,BCC 

S1 is =0_disable,1 enable(Remove the brace) 

AimingTime 

Esc,0,4,93,m,S1,BCC 

S1 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 Execute command 
(Esc,ENQ). Hamster execute the command after receive an “Esc,ENQ” then send back a reply. The Max. 
Length of data is 264. The m and the reply define as following: 
 

 

 

 

 

 

 

 

 

 

DATA TO HOST FROM HAMSTER 
Data format: Code_number,Lh,Ll,string 
Here: The Lh/Ll is string length, Lh is high byte, Ll is low byte, The string length is excluded the 
Code_number and Lh/Ll. The string contains the Code ID, pre_amble, scanned data,post_amble, and 
terminator. Code_number is equal to following number plus H’80. 
0 Code 39 full ASCII 

1 Code 39 standard or EDP Code 

2 EAN 13 

3 UPC A 

4 EAN 8 

5 UPC E 

6 I25 

7 Codabar 

8 Code 128 

9 Code 93 

10 S25 

11 MSI 

12 EAN 128 

13 Code 32 

14 Delta 

15 Label 

16 Plessey 

17 Code 11 

18 Toshiba 

19 reserved 

20 Track 1 

21 Track 2 

22 Track 3 

23 More than 1 track 

24 reserved 

25 RS232 

26 reserved 

27 reserved 

28 reserved 

29 reserved 

30 reserved 

31 reserved 

32 reserved 

33 reserved 

 
 

Summary of Contents for PA500

Page 1: ...PA500 Programming Manual V 1 2 1 15 2008...

Page 2: ...2 10 Clear scan data system buffer 11 2 11 Good read indicator 11 2 12 Wait for acknowledgement of the last sent command 11 2 13 Save setting to profiles 11 2 14 Save scanner setting into specified fi...

Page 3: ...23 5 1 Enable Decoder 23 5 2 Disable Decoder 23 5 3 Get DLL version no 23 5 4 Disable laser trigger key 23 5 5 Enable laser trigger key 23 5 6 Reset all symbologies to default 23 6 SYSIOAPI DLL 24 6...

Page 4: ...acklight Status 27 6 4 3 Screen Backlight Brightness Control 27 7 DYNAMIC LOAD DLL 28 8 USEFUL FUNCTION CALL WITHOUT INCLUDE SYSIOAPI DLL 29 8 1 Warm boot Cold boot and power off 29 8 2 GET DEVICE ID...

Page 5: ...are not familiar with barcode and serial port controls Because of this Unitech provides the following utility library and program for the user or application programmer to control the Decoder Chip 1...

Page 6: ...6 1 2 COM definition for PA500 COM 1 Reserve COM2 Scanner Hamster COM 3 IrDAComm COM 4 Bluetooth Modem COM 5 RawIR COM 6 BTModem UART...

Page 7: ...l receive custom message about msgID and wParam parameter can be one of the followings SM_ERROR_SYS Indicates a system error which is caused by a call to the system function Param contains the error c...

Page 8: ...ion Set the scanner to the working mode and reset the communication control Function call BOOL USI_Reset Return Always TRUE 2 5 Get error code Function Description Returns the error code SERR_ Functio...

Page 9: ...ch 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_2S...

Page 10: ...T_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...

Page 11: ...ngs DLLLEDCONTROL UPI300 DLL The function prototype of GoodReadLEDOn is VOID WINAPI GoodReadLEDOn BOOL fon Turn on when fon is TRUE and turn off when fon is FALSE 2 12 Wait for acknowledgement of the...

Page 12: ...ttings remain unchanged Return TRUE success FALSE error 2 16 Automatically enable scanner beam with pressing trigger key Function Description Start auto scanning Scan engine will be automatically trig...

Page 13: ...aded Return NULL Scan2Key is not running Non NULL indicates scan2key is running It actually returns window handle for scan2key but it is for internal use send messages 2 20 Test if Scan2Key is enabled...

Page 14: ...as following Esc and BCC will be calculated and added automatically Esc high length low length command ID operation set BCC Please refer to complete command reference on section 4 BOOL HAM_SendCommand...

Page 15: ...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...

Page 16: ...ain ACK Esc 80H ACK 06H It is from Hamster to Host If Hamster receive a command and this command do not need send message back Hamster reply the ACK NAK Esc 80H NAK 15H It is from Hamster to Host Hams...

Page 17: ...E PRESS ONE SCAN 4 7 reserved Label_type Esc 0 4 19 m S1 BCC S1 is 0_POSITIVE 1 POSITIVE AND NEGATIVE Aim_fuction Esc 0 4 1a m S1 BCC S1 is 0_DISABLE 1 ENABLE Scan_pre_data Esc 0 L 1b m S1 Si BCC Si c...

Page 18: ...d len I2of5_cd Esc 0 4 43 m S1 BCC S1 is 0 calculate send 1 calculate not send 2_no calculation I2of5_ss Esc 0 4 44 m S1 BCC S1 is 0 first digit suppressed 1 last digit suppressed 2_not supressed I25_...

Page 19: ...data len Codabar_max Esc 0 4 70 m S1 BCC S1 is 3 48 48 Label_code Esc 0 4 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...

Page 20: ...ime Esc 0 4 93 m S1 BCC S1 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 is...

Page 21: ...input data from the system buffer Function call INT PT_EnableBarcode VOID Return code 1 Create new thread fail 2 Cannot re enable 3 Cannot open COM2 4 Upload parameter from Hamster fail 0 OK 4 2 Disab...

Page 22: ...8H Code 128 09H Code 93 0Ah STD 25 0BH MSI 0CH EAN 128 0DH Code 32 0EH DELTA 0FH LABEL 10H PLESSEY 11H Code 11 12H TOSHIBA Return code TRUE There is barcode input FALSE No Barcode Input 4 5 Get DLL ve...

Page 23: ...ch is created by PT_EnableBarToKey Function call for VC VOID PT_DisableBarToKey VOID 5 3 Get DLL version no Function description This function is used to get DLL version number Function call for VC IN...

Page 24: ...ing guide 6 1 Keypad Related Functions 6 1 1 Disable enable power button Function Description To enable disable power button Function call VOID DisablePowerButton BOOL Parameter Input TRUE Disable pow...

Page 25: ...es trigger keys to turn scan engine on or off It functions even if trigger keys are disabled Function call void SetScannerOn BOOL fON Parameter Input fON BOOL TRUE turn scan engine on False turn scan...

Page 26: ...KeyEventName TEXT KBDAlphaKeyChangeEvent define LEFT_TRIGGER_KEY 1 define RIGHT_TRIGGER_KEY 2 gKeyEvents 0 CreateEvent NULL TRUE FALSE kKeybdTriggerEventName gKeyEvents 1 CreateEvent NULL TRUE FALSE k...

Page 27: ...er Input fON BOOL TRUE turn on screen backlight FALSE turn off backlight Return code 6 4 2 Get Screen Backlight Status Function Description This function returns the status of screen backlight Functio...

Page 28: ...R sdk int blen lpfnUSI_GetScannerVersion USI_GetScannerVersion g_hUSIDLL LoadLibrary L Windows USI dll if g_hUSIDLL NULL USI_GetScannerVersion lpfnUSI_GetScannerVersion GetProcAddress g_hUSIDLL TEXT U...

Page 29: ...AR outBuf 512 szProductID 100 stringBuffer 100 BYTE szBuff 255 DWORD bytesReturned char platformID 64 pDeviceID PDEVICE_ID outBuf pDeviceID dwSize sizeof outBuf if KernelIoControl IOCTL_HAL_GET_DEVICE...

Page 30: ...9 Update notes V1 0 The first version V1 1 COM port error correction on section 1 2 V1 2 Change logo...

Reviews: