Baracoda 2 Barcode Reader User Manual


 
BaracodaPencil 2 – Communication Protocol v1.3 - 4 -
Data Capture
for Workforce
in Motion
1.
1.1.
1.
Introduction
IntroductionIntroduction
Introduction
1.1.
1.1.1.1.
1.1. Generalities
GeneralitiesGeneralities
Generalities
BaracodaPencil 2 is a wireless data capture product.
This document is detailing the protocol of communication between the Baracoda scanner Pencil2
and its foreign environment through Radio Frequency link (ie: Bluetooth).
The protocol of communication does not depend on the type of link.
Wireless communication is based on the Bluetooth protocol, thanks to the embedded Baracoda
Equinox Bluetooth Stack.
The messages described in this document can be:
Host to scanner messages: the packet is sent only by the host to the scanner
Scanner to host messages: the packet is sent only by the scanner to the host
Bidirectional messages: the packet format is the same whether it is sent by the host or the scanner
http://www.baracoda.com
1.2.
1.2.1.2.
1.2. Generic packet
Generic packetGeneric packet
Generic packet
All the frames described in this document are formatted as shown:
Code ID
Length
Payload
1 Byte
2 Bytes
N Bytes
- 1 byte for code ID
Bits 7:5 is the logical device
Bits 4:1 is the command
Bit 0: when set, the message must be acknowledged
- 2 bytes for the size of the payload (big-endian), including the sequence number byte which is
considered as part of the payload
- Payload (including 1 byte for sequence number when applicable).
The response will have the same code ID as the command.