Baracoda 2 manual Examples

Page 30

Data Capture for Workforce in Motion

2.4.6.Examples

Here are some examples to illustrate each type of frame to be sent to the decoder and the possible answer from the decoder.

2.4.6.1.Get Config

Example 1.1 ￿ Getting configuration of Code 39 symbology.

Frame to be sent to the decoder:

‘E’

‘A’

0

-

Header

Type

Size

Command

The decoder answers the following frame:

‘E’

‘A’

4

$01 , $05, $06, $20

Header

Type

Size

Command

By reading this answer frame, we can check that the decoder has well understood the selected symbology (header "E"). The command field contains the configuration itself:

1st byte : $01

Bit

Option

1

0

Symbology Enabled

 

 

 

0

1

Min. length Disabled

 

 

 

0

2

Checksum calculation Disabled

 

 

 

0

3

Checksum transmission Disabled

 

 

 

0

4

Max. length Disabled

 

 

 

0

5

-

 

 

 

0

6

-

 

 

 

0

7

-

 

 

 

 

 

 

2nd byte : $05

Bit

Option

1

0

start-stop transmission Enabled

 

 

 

0

1

Full ACSII Mode Disabled

 

 

 

1

2

"*" as start-stop character Enabled

 

 

 

0

3

"$" as start-stop character Disabled

 

 

 

0

4

-

 

 

 

0

5

-

 

 

 

0

6

-

 

 

 

0

7

-

 

 

 

3rd byte : Min length = 6

4th byte Max length = $20 = 32

BaracodaPencil 2 – Communication Protocol v1.3

- 30 -

Image 30
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 Frame format HeaderSelect ALL Type CommandSet Config Type B SizeLSB FreeLSB Free Code 128 / EAN 128 Header C Interleaved 2 of 5 Header G MSI Header K Get configType a Usual Commands Type DMSB 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 SPP DUNFAX