Baracoda 2 manual Size, Command, Set Config Type B

Page 22

Data Capture for Workforce in Motion

2.4.3.Type

The Type field defines the type of command to be sent to the reader, it is 1 byte long.

Type

Description

 

 

A

Get config: asks the reader to give the configuration options for the selected symbology. (1) (*)

 

 

B

Set config : sets an options configuration for the selected symbology. (1)

 

 

C

Set Default: sets the default options configuration for the selected symbology(ies).

 

 

D

Usual Command.

 

 

E

Special Command (with parameters). (2)

 

 

(*): This Type of command is not available with "A" header.

(1): This command concerns the whole set of options available for one symbology. Its description will be given in the section "Command field".

(2): This type is used for commands requiring non Boolean information. Their length will be at least 2 bytes, the first one defining the type of command, the other(s) being the parameter(s) to use. More details will be given in the section "Command field".

All the commands will answer “0” if the frame is wrong.

Commands with type B, C, D or E will answer “1” as an acknowledgment of good reception of the command.

The “Get config” command (type A) will answer 2 or 4 bytes : the two firsts follow the format described below (see “set config” command field). The third and fourth bytes correspond to minimum and maximum lengths if the selected symbology supports this option.

2.4.4.Size

This field specifies the length (bytes) of the following field (commands). It will be set to "0" if the type was "A" (Get Config) or "C" (Set Defaults),

2.4.5.Command

This field contains the commands, its length must be the one specified in the Size field.

There are five types of commands:

2.4.5.1.Set Config (Type "B")

This command is made up of 1 or 2 bytes. The first one contains information for configuration of general options (common to all the symbologies). The second one, optional, relates to specific options to each symbology.

BaracodaPencil 2 – Communication Protocol v1.3

- 22 -

Image 22
Contents BaracodaPencil Communication Protocol Summary Revision History Introduction Generalities Nack Control messagesACK 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 Type CommandSet Config Type B 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