NAFVJGS TS-30 Owner's manual

NAFVJGS TS-30 programming manual

statement
Please read all the contents of this manual carefully before using the product described in this manual to ensure
the safe and effective use of the product . Please keep this manual properly for future reference .
The pictures in this manual are for reference only, please refer to the actual product . For the upgrade, update
and improvement of this product, the company has the right without prior notice .
All information contained in this manual is protected by copyright. Without written permission, no unit or
individual may excerpt, copy, use or sell all or part of the content of this document in any form or bundled with other
products in any way or for any reason .

Version record
Version
date
Modify the content
V1.0.0
2018.12
first draft
V1.1.0
2019.06
1. Modify the setting code format
2. Increase the serial port instruction set
V1.1.1
2019.07
1. Add sleep function
2. Add new support code system
( MSI Plessey , Limited RSS, Extended RSS)
V1.1.2
2019.08
Default reading mode : change from manual-edge mode to manual-level trigger
mode
V1.1.3
2019.1 1
1. Change :
(1) Module size :
21.4mm x 12.5mm x 11.8mm changed to 21.4mm x 12.38mm x 11.8mm
(2)Steady time duration :
Default : 400ms changed to 0ms
2. Added functions :
(1) Billing mode (local billing & online billing)
(2) Control character output function
(3) GS character replacement function
(4) Device ID write & read function
(5) Strengthening function of reading ability
( 6 ) Code32 prefix character A output function
( 7 ) Batch setting
V1.1.4 _
20 20 . 1
Added features :
(1)The positioning light is always on when taking pictures
(2)URL code reading allow/disable
(3)Trigger command response enable/disable
V1.1.4 _
2020.3
(1)Fix MSI to MSI Plessey
(2)Supplementary Appendix E : List of Code IDs

content
Statement ......................................................................................................................................................................... I
Version Record ...............................................................................................................................................................II
Catalog .......................................................................................................................................................................... III
Part 1 Product Description ..............................................................................................................................................1
Chapter 1 Module Setup ......................................................................................................................................... 2
Chapter 2 Module Parameters ................................................................................................................................ 3
Chapter 3 Interface Description ..............................................................................................................................5
Chapter 4 Requirements for Use ............................................................................................................................ 8
Chapter 5 Auxiliary Tools .................................................................................................................................... 10
The second part of the serial port command configuration instructions ......................................................................11
Chapter 1 Serial Commands .................................................................................................................................12
1.1 Read flag bit operation ........................................................................................................................... 12
1.2 Write flag bit operation .......................................................................................................................... 14
1.3 The flag bit is saved to the internal Flash instruction ............................................................................ 15
1.4 The flag bit is restored to the factory setting ..........................................................................................15
Chapter 2 Flags ..................................................................................................................................................... 17
The third part of setting code configuration instructions ............................................................................................. 32
Chapter 1 Operational Settings .............................................................................................................................33
1.1 Use setting code ......................................................................................................................................33
1.2 Restore factory default ........................................................................................................................... 34
1.3 User default settings ............................................................................................................................... 34
Chapter 2 Communication Interfaces ...................................................................................................................35
2.1 Communication Mode Selection ............................................................................................................35
2.1.1 Communication port output mode ...............................................................................................35
2.2 Serial Communication Interface .............................................................................................................36
2.2.1 Baud rate ......................................................................................................................................36
2.2.2 Verification method .....................................................................................................................37
2.3 USB-HID interface related configuration .............................................................................................. 37
2.3.1 HID class device selection .......................................................................................................... 37
2.3.2 PC to HID device access cycle ....................................................................................................38
2.3.3 Time interval before HID release ................................................................................................38
2.3.4 Time interval after HID release ...................................................................................................39
2.3.5 CapsLock state setting .................................................................................................................39
2.3.6 HID leading key output ............................................................................................................... 39
Chapter 3 Reading Patterns .................................................................................................................................. 40

3.1 Manual mode .......................................................................................................................................... 40
3.1.1 Trigger conditions ....................................................................................................................... 40
3.1.2 Single reading time ......................................................................................................................41
3.1.3 Deep Sleep Mode ........................................................................................................................ 41
3.1.4 Light sleep idle time .................................................................................................................... 42
3.2 Command trigger mode ..........................................................................................................................42
3.2.1 Single reading time ......................................................................................................................43
3.3 Continuous Mode ................................................................................................................................... 43
3.3.1 Reading interval length ............................................................................................................... 43
3.3.2 The same code reading delay ...................................................................................................... 44
3.3.3 Single reading time ......................................................................................................................45
3.4 Induction mode ....................................................................................................................................... 45
3.4.1 Single reading time ......................................................................................................................46
3.4.2 Reading interval length ............................................................................................................... 46
3.4.3 The same code reading delay ...................................................................................................... 46
3.4.4 Sensitivity .................................................................................................................................... 46
3.4.5 Image stabilization duration ........................................................................................................ 47
Chapter 4 Fill Lighting and Positioning ...............................................................................................................48
4.1 Fill light .................................................................................................................................................. 48
4.2 Positioning .............................................................................................................................................. 48
Chapter 5 Prompt Output ......................................................................................................................................50
5.1 Buzzer main switch ................................................................................................................................ 50
5.2 Buzzer settings ........................................................................................................................................50
5.2.1 Passive buzzer ............................................................................................................................. 50
5.2.2 Active buzzer ...............................................................................................................................51
5.3 Setting the Code Reading Prompt .......................................................................................................... 51
5.4 Boot sound ..............................................................................................................................................51
5.5 Prompt LED / Prompt tone for successful reading ................................................................................ 52
5.6 Data Output Coding Format ................................................................................................................... 53
5.7 Country keyboard settings ......................................................................................................................53
5.8 Virtual Keyboard Enable ........................................................................................................................54
5.9 Image mirror mode ................................................................................................................................. 57
5.10 Reverse phase recognition mode ..........................................................................................................58
5.11 Billing mode ......................................................................................................................................... 58
5.12 Read device version information ..........................................................................................................59
5.13 Write/Read Device ID .......................................................................................................................... 59
Chapter 6 Data Editing ......................................................................................................................................... 61
6.1 Prefix .......................................................................................................................................................61

6.2 Suffix ...................................................................................................................................................... 62
6.3 Code ID ...................................................................................................................................................62
6.3.1 Add Code ID ................................................................................................................................62
6.3.2 Modify Code ID .......................................................................................................................... 63
6.4 Terminator (Tail) .................................................................................................................................... 65
6.5 Data Section ............................................................................................................................................65
6.5.1 Date segment interception ...........................................................................................................65
6.5.2 Data segment length modification ...............................................................................................66
6.6 RF Information ....................................................................................................................................... 66
6.7 Output Protocol .......................................................................................................................................67
6.8 GS character replacement .......................................................................................................................67
6.9 _ URL code reading ................................................................................................................................68
Chapter 7 Shortcuts ...............................................................................................................................................69
7.1 Fast POS Mode .......................................................................................................................................69
7.2 Serial port & full code open mode ......................................................................................................... 69
Chapter 8 Symbology Settings ............................................................................................................................. 70
8.1 Global Shortcuts ..................................................................................................................................... 70
8.1.1 Global Operations ........................................................................................................................70
8.1.2 Commodity barcode check digit output enable ...........................................................................71
8.1.3 Strengthening literacy ability ...................................................................................................... 71
8.2 1D barcode operation ............................................................................................................................. 71
8.2.1 EAN 13 ........................................................................................................................................ 71
8.2.2 EAN 8 .......................................................................................................................................... 72
8.2.3 UPC-A ......................................................................................................................................... 73
8.2.4 UPC-E0 ........................................................................................................................................75
8.2.5 UPC-E1 ........................................................................................................................................76
8.2.6 Code128 .......................................................................................................................................77
8.2.7 Code39 .........................................................................................................................................78
8.2.8 Code93 .........................................................................................................................................80
8.2.9 CodaBar ....................................................................................................................................... 81
8.2.10 Interleaved 2 of 5 .......................................................................................................................82
8.2.11 Industrial 25 ...............................................................................................................................83
8.2.12 Matrix 2 of 5 ..............................................................................................................................84
8.2.13 Code11 .......................................................................................................................................85
8.2.14 MSI Plessey ............................................................................................................................... 86
8.2.15 RSS-14 .......................................................................................................................................87
8.2.16 Qualified RSS ............................................................................................................................87
8.2.17 Extended RSS ............................................................................................................................87

8.3 2D barcode operation ............................................................................................................................. 88
8.3.1 QR Code ...................................................................................................................................... 88
8.3.2 Data Matrix (DM) ........................................................................................................................89
8.3.3 PDF417 ........................................................................................................................................89
Chapter 9 Saving and Cancelling ......................................................................................................................... 90
9.1 Save .........................................................................................................................................................90
9.2 Cancellation ............................................................................................................................................ 90
Chapter 10 Batch Setup ........................................................................................................................................ 91
Addendum .............................................................................................................................................................92
Appendix A : Data Code .............................................................................................................................. 92
0 to ........................................................................................................................................................ 92
A to F .................................................................................................................................................... 93
Appendix B : Parameter Setting Example ....................................................................................................94
Appendix C : Default Settings Table ........................................................................................................... 98
Appendix D : Common Serial Port Commands .........................................................................................104
Appendix E : Code ID List .........................................................................................................................105
Appendix F : ASCII Code Table ................................................................................................................106
Appendix G : Batch Set Command Parameters List ..................................................................................111

第一部分 Product Description

Chapter 1 Module Settings
WSM-QL1601 is an image-based 2D scanning module with high integration and excellent performance .
The WSM-QL1601 module is highly integrated and compact in size, and can be flexibly applied to various
equipment .
WSM-QL1601 adopts advanced image recognition algorithm, which can easily read all kinds of 1D barcodes
and 2D barcodes .
WSM-QL1601 has strong reading ability and can adapt to various harsh and complex environments .
For example, in various lighting environments and in a large temperature and humidity range, it can provide
excellent scanning performance .

Chapter 2 Module Parameters
Scan code
performa
nce
image
sensor
640 (horizontal) X 480 (vertical) CMOS
light source
white light
level
perspective
31°
read
Symbology
QR code
QR Code, PDF417, DataMatrix (ECC200)
one-dimensio
nal code
EAN13 , EAN8, UPC-A, UPC-E0, UPC-E1, Code128,
Code39 , Code93, CodaBar, Interleaved 2 of 5, Industrial
25, Matrix 2 of 5, Code11, MSI Plessey , RSS-14,
Limited RSS, Extended RSS
read
depth of field
EAN-13
4.0~20.0cm (13mil)
Code128
4.5 ~ 25.0cm (15mil)
QR Code
4.0 ~ 18cm (15mil)
read
angle
Rotation 360°, tilt ±60°, yaw ±60°
read
precision
one-dimen
sional code
≥5mil
QR code
≥ 10mil
symbol
contrast
≥25%
physics
paramete
r
weight
< 7g
Exterior
size
21.4mm x 12.38mm x 11.8mm (LxWxH)
interface
TTL-232 / USB 2.0 Full Speed
Voltage
DC +3.3V±5%
Current
@DC 3.3V
Working
current
120mA
sleep current
500 μA
environm
ent
paramete
r
Work
temperature
-20℃ ~ 60℃
storage
temperature
-40℃ ~ 70℃
Work
5%RH~95%RH (non-condensing)

Module dimension drawing (unit : mm)
humidity
reliable
sex
Mechanical
shock
resistance
shock
5~200Hz, 10Grms, 3axes, 1.5Hr
fall
Withstands a 1.2-meter drop to concrete
heat resistant
impact
lowest
temperature
-20 °C (-4 °F)
Highest
temperature
60 °C (140 °F)
cycle
frequency
30 minutes high temperature ; 30 minutes low
temperature
cycle
twenty four

Chapter 3 Interface Description
The following table lists the 12PIN interface definition and signal description of WSM-QL1601 .
When using WSM-QL1601, it needs to use a 12PIN straight flexible cable at both ends to connect to the
peripheral .
PIN
input Output
definition
illustrate
PIN1
-
TEST1
Internal test pins
It is recommended to float externally
PIN2
power supply
VCC
Input +3.3V
PIN3
land
GND
-
PIN4
enter
RX
The module's TTL serial port receives
PIN5
output
TX
The TTL serial port of the module sends
PIN6
enter
D-
USB DN signal
PIN7
output
D+
USB DP signal
PIN8
land
GND
-
PIN9
output
BEEP
Passive buzzer output signal
low level when idle
PIN10
output
DLED
Decoding success light
low level when idle
PIN11
-
TEST2
Internal test pins
It is recommended to float externally
PIN12
enter
TRIG
Scanning trigger signal
Active low

The power supply, TTL level, USB and other pins of the WSM-QL1601 module are directly connected to the
external circuit, and the trigger pin and buzzer pin need a drive circuit, please refer to the following circuit design :
Trigger pin (TRIG) drive circuit :
Passive buzzer pin driver circuit :
DLED pin driver circuit :

When decoding is successful, BEEP and DLED pins will give a high level pulse .
Note : The duration of the BEEP pulse is 60ms, which can be set .
DLED pulse duration is 100ms .

Chapter 4 Requirements for Use
Environmental requirements
Operating
temperature
-20℃ ~ 60℃
storage
temperature
-40℃ ~ 70℃
Working
humidity
5%RH~95%RH (non-condensing)
Static Protection
In the process of unpacking and use, pay attention to anti-static measures, such as using a grounding wrist strap
and grounding the work area .
Thermal Considerations
WSM-QL1601 will emit heat during operation, and in the case of continuous operation at full speed for a long
time, the heat will accumulate to a certain extent . Although WSM-QL1601 can be adapted to work in high
temperature environment, in high temperature environment, it will increase image noise, reduce image quality and
reduce reading performance . Consider the actual use environment to determine whether the heat dissipation design
is appropriate .
When designing, consideration should be given to reserving space for WSM-QL1601 to form natural
convection or forced convection .
Avoid wrapping WSM-QL1601 with insulating materials such as rubber .
Ripple noise
Since the power input of WSM-QL1601 is directly provided to the image sensor and decoding chip, in order to
ensure stable operation, please use the power input with low ripple noise, which is guaranteed not to exceed 50mV
(peak-to-peak) .
Optical correlation
Scanning area distribution

window placement
The installation of the window should be as close to the front of the WSM-QL1601 module as possible, and
parallel to the front plane of the module, so that the illumination beam and the aiming beam can be emitted as much
as possible, and the reflection into the module should be prevented. If the beam is reflected into the module, the
reading of the module will be reduced. performance . Therefore, it is recommended that the vertical distance between
the near-end surface of the window and the module should not exceed the value of a (a=0.6mm), and do not touch
the surface of the module. At the same time, please ensure that the thickness of the window does not exceed 2mm .
The gap between the front of the module and the proximal end of the window is used to protect the module and
window from external shocks when dropped .
If the window needs to be inclined, the distance requirements are the same as those of parallel installation, and
the inclination angle should ensure that there are no various beams of reflective lenses to ensure the reading
performance .
Window Material Color and Scratch Resistant Coating
Since the module adopts the image acquisition method for reading, the window material and color selection
should consider materials with high light transmittance, low ambiguity and uniform refractive index . At the same
time, scratches and dirt on the window will reduce the reading performance. It is recommended that the window be
designed to be scratch-resistant and dirt-resistant .

Chapter 5 Auxiliary Tools
The WSM-QL1601 has auxiliary tools to support application development for rapid evaluation and
development needs .
DECODE_EVB
To assist WSM-QL1601 in developing applications, you can purchase DECODE_EVB to help users test and
evaluate the module faster . DECODE_EVB includes buzzer and drive circuit, LED prompt and its drive circuit,
TTL-232 to RS-232 and interface, trigger button, etc. Users can use the same 12-pin flexible cable to connect the
module to the DECODE_EVB, and then connect to the host through the USB or RS-232 port on the
DECODE_EVB .

第二部分 Serial command configuration
instructions

Chapter 1 Serial Commands
The user can configure the reading module by sending serial commands from the host . The normal
communication between the reading module and the host device can only be realized when the communication
parameter configuration is completely matched .
The default serial communication parameters of the reading module are as follows :
parameter
Default parameter value
baud rate
9600bps
Check Digit
no verification
data bits
8 bits
stop bit
1 person
hardware flow
control
No flow control
1.1 Read flag bit operation
For the read operation of device flag bits, up to 256 bytes of flag bits can be read at one time .
Command format :
Input : {Head1} {Types} {Lens} {Address} {Datas} {CRC}
Among them :
Head1 : 0x7E 0x00 (2 bytes)
Types : 0x07 (1 byte)
Lens : 0x01 (1 byte)

Address : 0x0000~0x00FF (2 bytes), indicating the starting address of the flag to be read .
Datas : 0x00~0xFF (1 byte), indicating the number of bytes of flag bits to be read continuously, 0x00 indicates
256 bytes .
CRC : CRC_CCITT check value (2 bytes) .
Calculation range : The calculation method of Types, Lens, Address, and Datas is CRC_CCITT, and the
characteristic polynomial : X16+X12+X5+1, that is, the polynomial coefficient is 0x1021, and the initial value is all
0. For a single byte, the highest bit is calculated first , do not need to be inverted and output directly .
Note : When the user does not need the CRC check function, he/she can choose no CRC check, that is, fill in
0xAB 0xCD at the CRC byte to avoid checking .
Returns : {Head2} {Types} {Lens} {Datas} {CRC}
1) The read is successful and the read data is returned
Among them :
Head2 : 0x02 0x00
Types : 0x00 (read successful)
Lens : Indicates the number of bytes of uploaded Datas, 0x00 means 256
Datas : 0x00~0xFF, indicating the read data
CRC : CRC_CCITT check value .
Calculation range : The calculation method of Types, Lens, and Datas is CRC_CCITT, and the characteristic
polynomial : X16+X12+X5+1, that is, the polynomial coefficient is 0x1021, and the initial value is all 0. For a single
byte, the highest bit is calculated first, not Need to invert the direct output .
2) Failed to deliver CRC check
no response command
3) Unknown command response
no response command
Example :
Read an address whose address is 0x000A in the flag bit
1) Read successfully and return data, the returned data is 0x3E
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0xEE 0x8A
Returns : 0x02 0x00 0x00 0x01 0x3E 0xE4 0xAC
2) The CRC sent is wrong
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0x11 0x22
return : none
3) When the waiting time between two bytes of the sent command exceeds 400ms, it is treated as an unknown
command
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01
return : none
Table of contents