Command 0x1804 - Read Barcode (BCR Only)
The host uses this command to direct the device to arm or disarm the barcode reader for reading a barcode outside the scope of a transaction. This is an immediate directive. To read barcodes within the scope of a transaction, use Command 0x1001 - Start Transaction and its barcode reader parameters instead.
The sequence of events is as follows:
The host ensures the device is not currently running another command, for example, that it is not running a transaction using Command 0x1001 - Start Transaction.
The host composes a command request in the format below and sends it to the device.
If the device has a display, it shows a prompt SCAN BARCODE.
The device enables the barcode reader.
If the Timeout parameter is set to Infinite:
The device returns a command response message with Response Status, Operation Status Summary byte set to 0x00 (OK, Done) after which the host is free to send further commands.
The host may end the barcode reading session by calling this command again with the Enable parameter set to Disable.
If the Timeout parameter is set to a value other than Infinite:
The device returns a command response message with its Response Status, Operation Status Summary byte set to 0x01 (OK, Started / Running).
While the host is waiting for the timeout to expire, it should not send any commands to the device, because the device is busy processing the current command.
After the device reads a barcode or the timeout period expires, the device sends Notification 0x1805 - User Interface Operation Complete to report Barcode Reader / Read Barcode Result and additional supporting information.
Table - Request Data for Command 0x1804 - Read Barcode (BCR Only)
Beginning of any wrappers, at minimum including Request Message
1804 = Command 0x1804 - Read Barcode (BCR Only)
81
01
Enable - 0x00 = Disable. The device disables the barcode reader. In this case, the device ignores all other parameters. - 0x01 = Enable. The device enables the barcode reader.
B
R
0x00
82
01
Timeout - 0x00 = Infinite. The device leaves the barcode reader enabled until it reads a barcode, or until the host sends this command again to disable the barcode reader. - All other values = Timeout in seconds for the device to leave the barcode reader enabled without reading a barcode.
B
O
0x00
83
01
Encrypt Barcode Data - 0x00 = Do Not Encrypt. The device does not encrypt the barcode data when it sends Notification 0x1805 - User Interface Operation Complete. - 0x01 = Encrypt. The device encrypts the barcode data when it sends Notification 0x1805 - User Interface Operation Complete.
B
O
0x00
99
var
(MAGTEK INTERNAL ONLY) Send Command to Barcode Reader The device sends the command to the barcode reader. The host can use these commands to change the reader’s internal configuration. See UM10089_NLS-N1_User_Guide for command details. If tag 0x99 is included in the command, the device ignores all other tags. Do not change communication settings with this feature. Changes may result is loss of communications with the reader.
B
O
End of any wrappers, at minimum including Request Message
Table - Response Data for Command 0x1804 - Read Barcode (BCR Only)
1804 = Command 0x1804 - Read Barcode (BCR Only)
No parameters.
Table - Request Example
Table - Response Example
Last updated

