Baracoda 2 manual Introduction Generalities

Page 4

Data Capture for Workforce in Motion

1.Introduction

1.1.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.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.

BaracodaPencil 2 – Communication Protocol v1.3

- 4 -

Image 4
Contents BaracodaPencil Communication Protocol Summary Revision History Introduction Generalities Control messages ACKNack SYNScanner to host messages Host to scanner messages Communication messagesRemarks Scanner messages 0x6A-0x6B User Interface messages Payload Response Byte Bit 0 Success BaracodaPencil 2 Communication Protocol Miscellaneous messages 0xC8-0xC9 Reserved = upload data after retrieving Capture messages Remark Stored barcodes count Header Frame formatSelect ALL Command Set Config Type BType SizeFree LSBLSB Free Code 128 / EAN 128 Header C Interleaved 2 of 5 Header G MSI Header K Usual Commands Type D Get configType aMSB Free Commands Table CodeSpecial Commands Type E Special CommandsExamples Nd byte $01 Example 2.2 Setting a configuration of all symbologies Data Capture for Workforce in Motion Appendix 1 Bluetooth Protocol 0x01 if MASTER, 0x00 if SLAVE, Role switch Header Length Payload Response Command Set page scan timeout Set sniff Data Capture for Workforce in Motion Get Security Mode PDA DUN SPPFAX