Baracoda manual Example 2.2 Setting a configuration of all symbologies

Page 32

Data Capture for Workforce in Motion

Example 2.2 ￿ Setting a configuration of all symbologies.

Frame to be sent to the decoder:

‘A’

‘B’

1

$13

Header

Type

Size

Command

Reading this frame, the decoder understands:

The user wants to set a configuration (Type "B") for all the symbologies (Header "A"). The configuration can only contain general options and the Size field must be equal to 1. Then, the Command field contains the configuration itself:

$013

Bit

Option

 

 

 

1

0

Symbology Enabled

 

 

 

1

1

Min. length Enabled (set to 6 as default)

 

 

 

0

2

Checksum calculation Disabled

 

 

 

0

3

Checksum transmission Disabled

 

 

 

1

4

Max. length Enabled (set to 32 as default)

 

 

 

0

5

-

 

 

 

0

6

-

 

 

 

0

7

-

 

 

 

2.4.6.3.Usual command

Example 3.1 ￿ Modifying a configuration of all symbologies.

We now want disable Min length and Enable start/stop characters (for the symbologies having those), regardless of the other options’ settings.

Frame to be sent to the decoder:

‘A’

‘D’

2

‘C’ , ‘I’

Header

Type

Size

Command

Reading this frame, the decoder understands:

The user wants to send a command (Type "D") to all the symbologies (Header "A"). Any command can be sent but not all may be effective on all symbologies.

The command "C" will first be sent to all symbologies, and applied to all of them since they all have this option available.

Then the command "I" will also be sent to all symbologies but only some of them will apply it (Code39, Codabar).

BaracodaPencil 2 – Communication Protocol v1.3

- 32 -

Image 32
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 Select ALL Frame formatHeader Command Set Config Type BType SizeLSB Free LSBFree Code 128 / EAN 128 Header C Interleaved 2 of 5 Header G MSI Header K MSB Free Get configType aUsual Commands Type D 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 FAX SPPDUN