-
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