** Enter Setup
13
Exit Setup
Read Register
The read register command is used to read the contents of 1 to 256 contiguous registers in the scanner.
Syntax: {Prefix1} {Types} {Lens} {Address} {Datas} {FCS}
Prefix1 : 0x7E 0x00 (2 bytes)
Types : 0x07 (1 byte)
Lens : 0x01 (1 byte).
Address: 0x0000~0xFFFF (2 bytes), starting register address.
Datas : 0x00~0xFF (1 byte), number of registers to be read. When Datas=0x00, 256
contiguous registers are to be read.
FCS : CRC-CCITT checksum (2 bytes)
Computation sequence: Types+ Lens+Datas;
polynomial: X
16
+X
12
+X
5
+1(0x1021), initial value: 0x0000.
The following C language program is provided for reference.
unsigned int crc_cal_by_bit(unsigned char* ptr, unsigned int len)
{
unsigned int crc = 0;
while(len-- != 0)
{
for(unsigned char i = 0x80; i != 0; i /= 2)
{
crc *= 2;
if((crc&0x10000) !=0)
crc ^= 0x11021;
if((*ptr&i) != 0)
crc ^= 0x1021;
}
ptr++;
}
return crc;
}
Summary of Contents for HR1150-70
Page 1: ...NLS HR11 Hand held Barcode Scanner User Guide...
Page 19: ...9 Dimensions unit mm Left View Front View Top View...
Page 67: ...Enter Setup 57 Exit Setup Good Read Beep Good Read Beep On Good Read Beep Off...
Page 116: ...Enter Setup Exit Setup 106 Set ISBN Format ISBN 13 ISBN 10...
Page 179: ...169 Digit Barcodes 0 5 0 1 2 3 4 5...
Page 180: ...170 6 9 6 7 8 9...
Page 181: ...171 A F A B C D E F...
Page 184: ...174 F7 F12 F7 F8 F9 F10 F11 F12...