Baracoda 2 Barcode Reader User Manual


 
BaracodaPencil 2 – Communication Protocol v1.3 - 30 -
Data Capture
for Workforce
in Motion
2.4.6.
2.4.6.2.4.6.
2.4.6. Examples
ExamplesExamples
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.
2.4.6.1.2.4.6.1.
2.4.6.1. Get Config
Get ConfigGet Config
Get Config
Example 1
Example 1Example 1
Example 1.1
.1 .1
.1 
Getting configuration of Code 39 symbology.
Getting configuration of Code 39 symbology.Getting configuration of Code 39 symbology.
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:
1
st
byte :
$01
Bit
Option
1
0
Symbology Enabled
0
1
Min.
length
Disable
d
0
2
Checksum calculation
Disable
d
0
3
Checksum transmission Disable
d
0
4
M
ax
. length Disable
d
0
5
-
0
6
-
0
7
-
2
nd
byte :
$0
5
Bit
Option
1
0
s
tart
-
stop transmission
Enabled
0
1
Full ACSII Mode
Disable
d
1
2
"*" as start
-
stop character
Enabled
0
3
"$" as start
-
stop character
Disable
d
0
4
-
0
5
-
0
6
-
0
7
-
3
rd
byte : Min length = 6
4
th
byte Max length = $20 = 32