User's Manual
WirelessHandheldGunTypeScanner
14
USER’SMANUAL
ScannertoRemoteApplication
DataFormatofPacket
Tosendadata(barcode)totheremoteapplication,theBTscannerhastoencapsulateit:
EAH
(Header)
Sizeof
payload
FEH
(Format
Byte)
Data
ID
Data
Barcode
Type
AEH
(Endof
Byte)
Reserved
Byte
1byte 1byte 1byte 1byte Varies 1byte 1byte 1byte
Title Definition
HeaderCharacter(EAH) ThecharacterIDattheheadofeverydata.Ithasto
startwithEAH.
SizeofPayload Theencapsulateddatalengthexcludingheader
character.
FormatByte(FEH) Differentiatedataformat;barcodedataisalwaysFEH.
DataID Thenumberofeachdata.IfreceivethesameIDmore
thanonce,onlythefirstoneisvalid,deletetherest.
BarcodeType(1byte) PleaserefertotheBarcodeTypeTable.
Data Decodedbarcodedata.
EndofByte(AEH) Recorddataends.
ReservedByte Reservedforfutureuse.
Example:
IfCode39barcodedatais"ABCD",thansendersendsout:
EAH+0AH+FEH+ID+"ABCD"+11H+AEH+ReservedByte
0AH=1+1+1+4+1+1+1
Acknowledgepacket
55H(Header) DataID 55H(endofbyte)
1byte 1byte 1byte
Example:
Ifscannersendsout:
EAH,0AH,FEH,01H,"ABCD",011H,AEH,EEH
Remoteacknowledges:55H+01H+55H