
Handheld Bluetooth® CCD/Laser Scanner
21
U
SER
’
S
M
ANUAL
Scanner to remote application
Data Format of Packet
To send a data (barcode) to the remote application, the BT scanner has to encapsulate it:
EAH(Header)
Size of
payload
FEH(Format
Byte)
Data
ID
Data
AEH(End
of Byte)
Reserved
Byte
1 byte
1 byte
1 byte
1 byte
Varies
1 byte
1 byte
Title
Definition
Header Character (EAH)
The character ID at the head of every data.
It has to start with EAH.
Size of Payload
The encapsulated data length excluding
header character.
Format Byte (FEH)
Differentiate data format; barcode data is
always FEH.
Data ID
The number of each data. If receive the
same ID more than once, only the first one is
valid, delete the rest.
Data Decoded
barcode
data
End of Byte (AEH)
Record data ends.
Reserved Byte
Reserved for future use
Example:
If barcode data is "ABCD", than sender sends out:
EAH + 9H + FEH + ID + "ABCD "+ AEH + Reserved Byte
9 = 1+1+1+4+1+1
Acknowledge packet
55H (Header )
Data ID
55H (end of byte)
1 byte
1 byte
1 byte
Example:
If scanner sends out:
EAH , 9H , FEH , 01H , "ABCD ", AEH , EEH
Remote acknowledges:
55H +01H + 55H