Waveshare Barcode Scanner Module B User guide

1/69
BARCODE SCANNER MODULE (B)
SETUP MANUAL
PREFACE
This setup manual provides setup barcode for setting device parameters. This module does not
support commands to modify the settings. All setup barcodes can only be used to set up the
device and cannot be used to test the scan results. If you need to test the module, please use the
test barcode in the appendix.

2/69
TABLE OF CONTENTS
Preface ............................................................................................................................................................................... 1
Chapter I Scanning Guide............................................................................................................................................ 9
Chapter II Default Settings .........................................................................................................................................10
Factory Default Settings .................................................................................................................................... 10
Continuous Scanning.........................................................................................................................................10
Continuous scan interval......................................................................................................................... 10
Induction scanning mode .................................................................................................................................11
Chaper III Interface Type ............................................................................................................................................12
UART Interface ..................................................................................................................................................... 12
Setting UART interface............................................................................................................................. 12
Setting UART Port Baudrate ...................................................................................................................12
Set UART port data bits, stop bits and parity ....................................................................................13
USB interface........................................................................................................................................................ 14
USB PC Keyboard ...................................................................................................................................... 14
USB COM..................................................................................................................................................... 14
Chapter IV Input/Output Settings ........................................................................................................................... 15
Power-on tone setting...................................................................................................................................... 15
Trigger decoding tone setting ........................................................................................................................ 15
Tone setting after successful decoding ........................................................................................................15
Successful decoding tone switch .......................................................................................................... 15
Successful decoding tone volume setting ..........................................................................................16
Successful decoding tone frequency setting.....................................................................................16
Successful decoding tone duration setting ........................................................................................17
Setting beep frequency for decoding failure .................................................................................... 17

3/69
Read Delay ............................................................................................................................................................ 17
Chapter V Data Editing ...............................................................................................................................................18
Introduction .......................................................................................................................................................... 18
Add prefix/suffix......................................................................................................................................... 18
Add carriage return suffix to all code systems ..................................................................................20
Add a line feed suffix to all code systems .......................................................................................... 20
Add a carriage return suffix to all code systems .............................................................................. 21
keyboard operation ...................................................................................................................................21
Prefix/suffix clearing .................................................................................................................................. 22
Prefix selection ............................................................................................................................................22
Suffix selection............................................................................................................................................ 23
Function code transmission .................................................................................................................... 23
Barcode delay transmission .................................................................................................................... 24
Chapter VI Code System ............................................................................................................................................25
All Code System .................................................................................................................................................. 25
Codabar ................................................................................................................................................................. 25
On/off ............................................................................................................................................................26
Start/stop character...................................................................................................................................26
check character.......................................................................................................................................... 26
cascade ......................................................................................................................................................... 27
Barcode reading length ........................................................................................................................... 27
Cpde 39..................................................................................................................................................................28
On/Off ...........................................................................................................................................................28
Start/Stop Character ................................................................................................................................. 28
Check character ..........................................................................................................................................28

4/69
Barcode reading length ........................................................................................................................... 29
Code 32 Parmaceutical (PARAF) .................................................................................................................... 29
FULL ASCII ............................................................................................................................................................. 30
Interleaved 2 of 5 ................................................................................................................................................ 30
On/Off ...........................................................................................................................................................31
CHECK character ........................................................................................................................................31
Barcode Reading Length .........................................................................................................................31
NEC 2 of 5.............................................................................................................................................................32
On/Off ...........................................................................................................................................................32
Check character ..........................................................................................................................................32
BARCODE reading length....................................................................................................................... 33
Code 93..................................................................................................................................................................33
On/off ............................................................................................................................................................33
Barcode reading length ........................................................................................................................... 34
Straight 2 of 5 Industrial (three-bar start/stop) ......................................................................................... 34
On/off ............................................................................................................................................................34
BARCODE reading length....................................................................................................................... 34
Straight 2 of 5 IATA (two-bar start/stop).....................................................................................................35
On/Off ...........................................................................................................................................................35
BARCODE ReadING Length ....................................................................................................................35
Matrix 2 of 5..........................................................................................................................................................36
On/Off ...........................................................................................................................................................36
BARCOE reading Length ......................................................................................................................... 36
Parity bit ........................................................................................................................................................36
Code 11..................................................................................................................................................................37

5/69
On/Off ...........................................................................................................................................................37
Parity bit ........................................................................................................................................................37
BARCODE reading length....................................................................................................................... 37
Code 128............................................................................................................................................................... 38
On/Off ...........................................................................................................................................................38
ISBT 128 Cascade ...................................................................................................................................... 38
Barcode Reading Length .........................................................................................................................38
GS1-128 .................................................................................................................................................................39
On/Off ...........................................................................................................................................................39
Code Reading Length.............................................................................................................................. 39
UPC-A.................................................................................................................................................................... 39
On/Off ...........................................................................................................................................................40
Parity bit ........................................................................................................................................................40
Digital system ..............................................................................................................................................40
Additional CODE........................................................................................................................................40
Necessary additional code ......................................................................................................................41
Additional code separator ...................................................................................................................... 41
UPC-E0...................................................................................................................................................................41
On/off ............................................................................................................................................................41
Bar code extension ....................................................................................................................................42
Necessary additional code ......................................................................................................................42
Additional Code Separator ..................................................................................................................... 42
Parity..............................................................................................................................................................43
Digital system ..............................................................................................................................................43
Additional code .......................................................................................................................................... 43

6/69
UPC-E1...................................................................................................................................................................43
EAN/JAN-13 .........................................................................................................................................................44
On/off ............................................................................................................................................................44
Parity bit ........................................................................................................................................................44
Additional code .......................................................................................................................................... 44
Necessary additional code ......................................................................................................................45
Additional Code Separator ..................................................................................................................... 45
ISBN Translate.............................................................................................................................................45
EAN/JAN-8 ........................................................................................................................................................... 46
On/Off ...........................................................................................................................................................46
Checksum character..................................................................................................................................46
Additional code .......................................................................................................................................... 46
Required additional code........................................................................................................................47
Append Code Separator......................................................................................................................... 47
MSI...........................................................................................................................................................................47
On/Off ...........................................................................................................................................................48
Check characters ........................................................................................................................................48
Code reading length.................................................................................................................................48
GS1 DataBar Omnidirectional......................................................................................................................... 49
On/Off ...........................................................................................................................................................49
GS1 DataBar Limited .......................................................................................................................................... 49
On/Off ...........................................................................................................................................................49
GS1 DataBar Expanded.....................................................................................................................................50
On/Off ...........................................................................................................................................................50
reading Length........................................................................................................................................... 50

7/69
PDF417 ................................................................................................................................................................... 50
On/Off ...........................................................................................................................................................51
Barcode reading Length ..........................................................................................................................51
QR Code ................................................................................................................................................................ 51
On/off ............................................................................................................................................................51
Code reading length.................................................................................................................................52
Data Matrix ............................................................................................................................................................52
On/off ............................................................................................................................................................52
Code reading length.................................................................................................................................52
Aztec Code............................................................................................................................................................53
On/Off ...........................................................................................................................................................53
Barcode reading Length ..........................................................................................................................53
China Post (Hong Kong 2 of 5) .......................................................................................................................54
On/Off ...........................................................................................................................................................54
Barcode Read Length ...............................................................................................................................54
Korea Post............................................................................................................................................................. 54
On/Off ...........................................................................................................................................................55
Barcode Reading Length .........................................................................................................................55
Check BIT ......................................................................................................................................................55
Han Xin Code ....................................................................................................................................................... 55
On/off ............................................................................................................................................................56
BARCODE reading length....................................................................................................................... 56
Maxi Code............................................................................................................................................................. 56
On/off ............................................................................................................................................................56
Barcode reading length ........................................................................................................................... 57

8/69
Micropdf .................................................................................................................................................................57
On/off ............................................................................................................................................................57
BARCODE reading length....................................................................................................................... 57
Gs1 Composite Codes.......................................................................................................................................58
On/Off ...........................................................................................................................................................58
Barcode Reading Length .........................................................................................................................58
Codablock A......................................................................................................................................................... 59
On/Off ...........................................................................................................................................................59
barCODE READING Length ....................................................................................................................59
Codablock F..........................................................................................................................................................59
On/off ............................................................................................................................................................60
Code reading length.................................................................................................................................60
Appendix 1 Reference Chart .....................................................................................................................................61
1D Code SYSTEM ................................................................................................................................................61
2d Code SYSTEM................................................................................................................................................ 62
Postcode ................................................................................................................................................................ 63
ASCII conversion table .......................................................................................................................................63
Appendix 2 Chart ......................................................................................................................................................... 67
Numerical table ................................................................................................................................................... 67
Keyboard operation ASCII conversion..........................................................................................................68

9/69
CHAPTER I SCANNING GUIDE
The aiming auxiliary light source for the Barcode Scanner Module (B) projects a red aiming light
speed corresponding to the horizontal field of view of the module. The aiming line should be in the
center of the barcode and the user can rotate the light, but please keep it in the center of the
barcode for easy reading.
The aiming beam or pattern is smaller when the module is close to the barcode and larger when it
is farther away from the barcode. Smaller barcodes should be read close together. Larger barcodes
should be read away from the barcode. To read single or multiple barcodes, hold the scanner
module at the proper distance from the target, press the button, and then place the aiming beam
or pattern on the barcode. If the barcode being scanned is reflective, it may be necessary to tilt the
barcode up 15° to 18° to prevent light reflection.
Bar Code
2D Codes

10 /69
CHAPTER II DEFAULT SETTINGS
FACTORY DEFAULT SETTINGS
The factory default settings for the device are key scanning and USB keyboard mode output. To
apply the default settings to the scanning device, scan the "Load Factory Default Settings" barcode
below to reset the barcode scanning device to the factory default settings.
CONTINUOUS SCANNING
The device can scan the "Continuous Scanning Mode" barcode to set the scanning mode to
continuous scanning, continuous scanning mode does not support scanning the same barcode
continuously.
CONTINUOUS SCAN INTERVAL
Load Factory Default Settings
Continuous Scanning Mode
100Ms Time Interval
200Ms Time Interval
300Ms Time Interval
400Ms Time Interval
500Ms Time Interval
800Ms Time Interval

11 /69
INDUCTION SCANNING MODE
The device can scan "Inductive Scanning Mode" barcode to set the scanning mode to inductive
scanning, inductive scanning mode, does not support continuous scanning of the same barcode.
1000Ms Time Interval
1500Ms Time Interval
2000Ms Time Interval
Inductive Scanning Mode

12 /69
CHAPTER III INTERFACE TYPE
Barcode Scanner Module (B) supports two communication interfaces, USB port and UART serial
port.
UART INTERFACE
SETTING UART INTERFACE
To use the UART interface, you need to connect the serial module or connect the UART interface
directly. Scan the following setup code to set it as UART output. The default configuration of the
UART port is 115200 baud rate, 8 bits of data, no parity bit, 1 bit of stop bit, and carriage return
line feed added by default.
SETTING UART PORT BAUDRATE
The baud rate allows the module to send data from the Barcode Scanner Module (B) to the
terminal at the specified rate. In use, the baud rate of the terminal must be set to be the same as
the baud rate of the Barcode Scanner Module (B) for proper communication. The default setting is
115200.
UART Port Output
300bps
600bps
1200bps
2400bps
4800bps
9600bps
19200bps
38400bps
57600bps
*115200bps

13 /69
SET UART PORT DATA BITS, STOP BITS AND PARITY
Data bits: 7, 8-bit data bits can be selected for transmission. The terminal must be set to the same
data bits as the barcode scanning device in order to communicate properly. Default = 8.
Stop Bit: The stop bit can be set to 1 or 2. The terminal must be set to the same stop bit as the
barcode scanning device for proper communication. Default value = 1.
Parity: The method to check the character bit mode, E is even parity, O is odd parity, N is no parity
bit, and the terminal must be set to the same parity bit as the scanning device for normal
communication. Default = N.
7E1
7N1
7O1
7E2
7N2
7O2
8E1
*8N1
8O1

14 /69
USB INTERFACE
The USB interface supports configuring as USB PC Keyboard mode, i.e. keyboard mode, or USB
virtual serial mode.
USB PC KEYBOARD
Scan the following barcodes to configure the Scan Module to USB PC Keyboard mode. Carriage
return and line feed are added by default.
USB COM
Scanning the barcode below configures the Scan Module to USB COM mode, which emulates a
regular RS232-based COM port. Under normal circumstances, the device will be recognized as a
USB CDC class device.
Note: This mode does not require additional configuration of baud rate, etc.
USB PC Keyboard
USB COM

15 /69
CHAPTER IV INPUT/OUTPUT SETTINGS
This chapter mainly provides the configuration of buzzer and LED in the power-on, decoding and
key-triggered states of the Barcode Scanner Module (B).
POWER-ON TONE SETTING
Power-on tone, that is, the buzzer can beep to prompt the work state after the module is
successfully powered on. According to the needs of the scene, can also be configured to no
prompt sound. The default setting is that there is a prompt sound after powering on successfully.
TRIGGER DECODING TONE SETTING
After triggering the decoding switch, regardless of whether it is decoded or not, the code scanning
setting can send a tone to indicate that the switch has been triggered. The default is no tone for
triggering decoding switch.
TONE SETTING AFTER SUCCESSFUL DECODING
SUCCESSFUL DECODING TONE SWITCH
No Tone for Successful
Power-on
A Tone for Successful Power-on
*No Tone for Triggering
Decoding Switch
A Tone for Triggering
Decoding Switch

16 /69
After successful decoding, the buzzer will make a sound to indicate successful decoding, if no
sound is needed, it can be configured as no sound after successful decoding. The default setting is
there is a tone after successful decoding.
SUCCESSFUL DECODING TONE VOLUME SETTING
Scan the following barcode to change the tone volume after successful decoding. The default is
high.
SUCCESSFUL DECODING TONE FREQUENCY SETTING
Scan the following barcode to modify the tone frequency of the device after successful decoding,
the default is medium.
No Tone for Successful
Decoding
*A Tone for Successful
Decoding
Low
Medium
*High
Turn Off
Low (1600Hz)
*Medium (2400Hz)
High (4200Hz)

17 /69
SUCCESSFUL DECODING TONE DURATION SETTING
Scan the following barcode to modify the tone duration of the device after successful decoding.
The default is normal.
SETTING BEEP FREQUENCY FOR DECODING FAILURE
Scan the following barcode to modify the frequency of the device beeping after decoding failure.
The default is Razz.
READ DELAY
Scan the following barcodes to set the time interval between the device reading one barcode and
then reading the next barcode. Default = 750ms.
*Normal Beep
Short Beep
*Razz (250Hz)
Medium (3250Hz)
High (4200Hz)
No Delay
*Short Delay (750ms)
Medium Delay (1000ms)
Long Delay (1500ms)

18 /69
CHAPTER V DATA EDITING
INTRODUCTION
After the device decodes successfully, a string of data is obtained, which can be numbers, English,
symbols, etc., and for 2D codes, it can also be Chinese characters. This string of data is the data
information contained in the barcode. In the actual application, you may not only need the data
information of the barcode, but also need to know which type of barcode the data information is
obtained from, or need to know on which day the barcode information was scanned, or after
scanning a barcode, the text of the recorded barcode can be automatically wrapped into a carriage
return, which may not be included in the data information of the barcode.
Adding these elements to the barcode is bound to increase the length of the barcode and is not
flexible enough. Artificially adding some contents in front of or behind the data information of the
barcode, and these added contents can be changed in real time according to the demand, and
you can choose to add or mask, which is the prefix and suffix of the barcode data information. By
adding the prefix and suffix, that is, to meet the demand and no need to modify the content of
barcode information.
Prefix or suffix characters can be added or removed for one code system or all code systems.
Add any prefix or suffix using the ASCII conversion table
Add prefix or suffix characters in the order they appear in the output.
When configuring a specific code system (or all code systems), adds a prefix or suffix character
to the code system corresponding to the serial number of a specific barcode type.
The maximum size of a prefix or suffix configuration is 200 characters.
ADD PREFIX/SUFFIX
1. Scan a barcode for adding prefix or suffix .
2. Choose the code system to add the prefix or suffix to, and determine the 2-digit hexadecimal
value from the code system chart.. For example, for Code 11, the barcode type serial number
is "h" and the Hex ID is "68".
3. Scan the 2 hex digits in the chart in the appendix of this manual, or scan 9,9 for all code
systems.
4. Determine the hexadecimal value of the prefix/suffix from the ASCII conversion table.
5. Scan the 2-digit hexadecimal value from the appendix chart in this manual.

19 /69
6. Repeat steps 4 and 5 for each prefix/suffix character.
7. To add a bar code serial number, scan 5, C, 8, 0. To add the AIM I.D, scan 5, C, 8, 1. To add a
backslash (\), scan 5, C, 5, C.
NOTE: To add a backslash (\) in step 7, you must scan 5C twice - once to create the leading
backslash, then to create the backslash itself.
8. Scan the "Save" barcode to exit and save, or scan the "Exit" barcode to exit without saving.
Repeat steps 1-6 to add prefixes or suffixes for other code systems.
EXAMPLE
Adding a suffix for a specific code system
Adds a CR (carriage return) suffix to Code 128. Step:
1. Scan the "Add Suffix" barcode.
2. Determine the 2-digit hexadecimal value of Code 128 from the code system chart: 6A.
3. Scan the "6", "A" barcode from the appendix chart in this manual.
4. Determine the hexadecimal value of the carriage return suffix from the ASCII conversion table:
0D.
5. Scan the "0", "D” barcode from the chart in the appendix of this manual.
6. Scan the "Save" barcode, or scan the "Exit" barcode to exit without saving.
Add Prefix
Add Suffix
Save
Exit

20 /69
ADD CARRIAGE RETURN SUFFIX TO ALL CODE SYSTEMS
To add a carriage return suffix to all code systems, scan the barcode below. This operation first
clears all current suffixes and then adds a carriage return suffix to all code systems.
ADD A LINE FEED SUFFIX TO ALL CODE SYSTEMS
To add a carriage return newline suffix to all code systems, scan the barcode below. This operation
first clears all current suffixes and then adds a carriage return suffix to all code systems.
Add Suffix
6
A
0
D
Save
Add Carriage Return Suffix to
All Code Systems
Add Newline Suffixes to All Code
Systems
Table of contents