** Enter Setup
Exit Setup
12
Write Register
The write register command is used to write contiguous registers (1 to 256 registers) in the scanner.
Syntax: {Prefix1} {Types} {Lens} {Address} {Datas} {FCS}
Prefix1 : 0x7E 0x00 (2 bytes)
Types : 0x08 (1 byte)
Lens : 0x00~0xFF (1 byte), byte count, i.e. number of registers written. When Lens=0x00, 256
contiguous registers are to be written.
Address : 0x0000~0xFFFF (2 bytes), starting register address.
Datas : 0x00~0xFF (1~256 bytes), data to be written into the register(s)
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;
}
Содержание NLS-HR1250-70
Страница 1: ...NLS HR12XX 7X Hand held Barcode Scanner User Guide...
Страница 3: ...Revision History Version Description Date V1 0 Initial release May 9 2014...
Страница 14: ...5 Dimensions unit mm Left View Fig 1 3 Front View Fig 1 4 Top View Fig 1 5...
Страница 60: ...Enter Setup 51 Exit Setup Good Read Beep Good Read Beep On Good Read Beep Off...
Страница 61: ...Enter Setup Exit Setup 52 Good Read Beep Frequency Low Medium High Good Read Beep Duration 40ms 80ms 120ms...
Страница 104: ...Enter Setup 95 Exit Setup Set ISBN Format ISBN 13 ISBN 10...
Страница 166: ...157 Digit Barcodes 0 5 0 1 2 3 4 5...
Страница 167: ...158 6 9 6 7 8 9...
Страница 168: ...159 A F A B C D E F...
Страница 171: ...162 F7 F12 F7 F8 F9 F10 F11 F12...