Programming Guide - HR2150-HP HP Value Barcode Scanner
Enter Setup 
221  ** Exit Setup 
Data Packing 
Introduction 
Data packing is designed for a specific group of users who want to have the data packed before transmission. Data packing 
influences data format, so it is advised to disable this feature when it is not required. 
Data Packing Options 
Disable Data Packing: Transmit decoded data in raw format (unpacketed). 
Enable Data Packing, Format 1: Transmit decoded data with the packet format 1 defined below. 
Packet format 1: [STX + ATTR + LEN] + [AL_TYPE + DATA] + [LRC] 
STX: 0x02 
ATTR: 0x00 
LEN: Barcode data length is expressed in 2 bytes ranging from 0x0000 (0) to 0xFFFF (65535). 
AL_TYPE: 0x36 
DATA: Raw barcode data. 
LRC: Check digit.   
LRC calculation algorithm: computation sequence: 0xFF+LEN+AL_TYPE+DATA; computation method is XOR, byte 
by byte. 
Enable Data Packing, Format 2: Transmit decoded data with the packet format 2 defined below. 
Packet format 2: [STX + ATTR + LEN] + [AL_TYPE] + [Symbology_ID + DATA] + [LRC] 
STX: 0x02 
ATTR: 0x00 
LEN: Barcode data length is expressed in 2 bytes ranging from 0x0000 (0) to 0xFFFF (65535). 
AL_TYPE: 0x3B 
Symbology_ID: The ID number of symbology, 1 byte. 
DATA: Raw barcode data. 
LRC: Check digit.   
LRC  calculation  algorithm:  computation  sequence:  0xFF+LEN+AL_TYPE+Symbology_ID+DATA;  computation 
method is XOR, byte by byte. 










