
69
9.6 Data Packing (data packetizing)
Data packing (data packetizing) is used when the user wants to increase the reliability of wireless communication.
With data packing, data being sent via wireless communication is first converted to the following formats (packetized) before
being sent. After sending one packet, the scanner waits for a response (ACK/NAK) from the communications adapter (BA
series), commercial Bluetooth
device, or other device. In the case of an ACK response, the operation completes normally; in
the case of a NAK response, the data is resent.
Using the configuration software (ScannerSetting_2D), the user can set ACK/NAK response confirmation timing to a figure
between 100 ms and 9900 ms (at intervals of 100 ms).
If there is no ACK or NAK response within the ACK/NAK response confirmation timing, the scanner will sound the error
beeper to indicate that the data has not been sent successfully. The scanner cannot scan codes while waiting for a response
during the ACK/NAK response confirmation timing.
These functions allow the user to confirm whether the scanned data has been sent to the host successfully, even while working
in a location separated from the host. However, a characteristic of wireless communication is that there are instances when the
scanner cannot confirm the ACK or NAK response even when data has been sent to the host successfully. Use the scanner in
an environment that allows stable wireless communication.
There are two methods of data packing:
“data packing (host)” and “data packing (BA)”.
Note:
The data packing function cannot be used when HID (Human Interface Device Profile) is selected.
Data packing (host)
Used when communicating via a commercial Bluetooth
device etc. Program the host so that received data can be confirmed
and a response can be sent to the scanner.
The scanner converts scanned barcode data to the following formats (packetizing) and sends it to the host.
- Transmission format
Header
Data length
Container
number
Reserve Transmission data
CRC Terminator
DLE STX
Lower
half
Upper
half
DLE
ETX
Each item is described as follows:
(1) Header (2 bytes)
Packet start data.
(2) Data length (2 bytes)
The length of data in packetized data between the header and the terminator.
(3) Container number (1 byte)
Upper 4-bit: transmission number, Lower 4-bit: All transmission numbers
(4) Reserve (1 byte)
Space reserved for extension. Value fixed at 00h.
(5) Transmission data
Data before packetizing.
(6) CRC (2 bytes)
16-bit CRC. The result of calculating data from data length to transmission data in LSB first format using the CRC-CCITT
method (polynomial X16+X12+X5+1). Stored in a lower half, upper half byte order.
(7) Terminator (2 bytes)
Packet end data.