Waveshare Barcode Scanner Module User Manual

1d / 2d codes reader

Advertisement

Barcode Scanner Module User Manual
OVERVIEW
This is a small 1D/2D codes reader, by using the intelligent image recognition
algorithm, it will decode the barcode or 2D code on paper or screen, fast and
accurately.
Through the onboard USB and UART interface, it can be directly plugged into a
computer, or be easily integrated to kinds of devices due to its small form factor.
FEATURES
Easy to use, requires no knowledges of image recognition
Decodes various common 1D/2D codes such as Barcode, QR code etc.
Onboard micro USB and UART serial port, allows to connect with computers or
embedded devices
Configurable via scanning 'configuration code'
Onboard light source, works in the dark
1 / 57
Barcode Scanner Module
User Manual
Rev1.0 Date:180621

Advertisement

Table of Contents
loading

Summary of Contents for Waveshare Barcode Scanner Module

  • Page 1 Barcode Scanner Module User Manual Barcode Scanner Module User Manual OVERVIEW This is a small 1D/2D codes reader, by using the intelligent image recognition algorithm, it will decode the barcode or 2D code on paper or screen, fast and accurately.
  • Page 2: Specifications

    Barcode Scanner Module User Manual SPECIFICATIONS Operating voltage Operating current 135mA Standby current 58mA Sleep current Operating temperature 0℃~60℃ Operating Humidity 5%~95%(Non-condensing) Interfaces UART、USB Light source White Scan angle Tilt 360°, Skew ±65°,Pitch ±60° 28°(Horizontal),21.5°(Vertical) Dimension 53.3mm × 21.4mm 2 / 57...
  • Page 3: Table Of Contents

    Barcode Scanner Module User Manual CONTENT Overview............................... 1 Features ..............................1 Specifications ............................. 2 Support barcodes ............................. 5 Scanning Instructions ..........................6 Scanning Area ............................ 6 Scanning Way ............................ 7 Setting Instruction ............................ 9 Hardware connection ........................9 Setting Codes ............................. 9 Setting code ..........................
  • Page 4 Barcode Scanner Module User Manual Lighting and Targeting ......................18 Ouput indication ........................19 Data Edit ............................ 23 Barcode types Enable/Diable ..................... 34 Appendix A: Default setting table ..................45 Appendix B: Common UART command ................. 47 Appendix C: CODE ID List ....................48 Appendix D: ASCII table .......................
  • Page 5: Support Barcodes

    Barcode Scanner Module User Manual SUPPORT BARCODES Barcode Support Support(Factory) Codabar ✓ ✓ Code 11 × ✓ Code 39/Code 93 ✓ ✓ UPC/EAN ✓ ✓ Code 128/EAN128 ✓ ✓ Interleaved 2 of 5 × ✓ Matrix 2 of 5 ×...
  • Page 6: Scanning Instructions

    Barcode Scanner Module User Manual SCANNING INSTRUCTIONS SCANNING AREA Scanning distance: These values are all be measured indoor (250 lux) Barcode Density 0.125 mm 6.0 cm 11.0 cm Code 39 0.375mm 6.0 cm 25.0cm (5 mils) UPC/EAN 0.375mm 6.0 cm 25.0cm...
  • Page 7: Scanning Way

    The distance between window and scanner protect the scanner from drop and crash. SCANNING WAY While using the Barcode Scanner Module to scan 1D/2D barcodes, it allows some tilt, skew and pitch. However, you had better to reduce them for better and faster scanning result.
  • Page 8 Pitch will decrease the height of barcode. 2° to 3° is the best scanning angle, which could avoid the direct reflection of barcode. Barcode Scanner Module supports up to 60° pitch angle. But you should reduce it for better and faster scanning.
  • Page 9: Setting Instruction

    Barcode Scanner Module User Manual SETTING INSTRUCTION Setting commands are provided, you could refer to this chapter to configure the Barcode Scanner Module. The factory setting could meet the requirement of common using, users need not more setting. HARDWARE CONNECTION This module supports two communicating interfaces.
  • Page 10: Restore Factory Setting

    Barcode Scanner Module User Manual Open/Close: Open Setting Code Function Close Setting Code Function Output content: Output Content of Don't Output Content of Setting Code Setting Code RESTORE FACTORY SETTING You can scan this setting code to restore to factory setting if require.
  • Page 11: Users Default Setting

    Barcode Scanner Module User Manual USERS DEFAULT SETTING Except the factory setting, users can save the setting as user default setting. By scanning the “Save Current Setting as User Default Setting” code, you can save your current setting as default setting. If there was default setting, and this operating will cover the old information.
  • Page 12: Usb Communication

    Barcode Scanner Module User Manual 1. Baud rate Setting *9600bps 1200bps 4800bps 19600bps 14400bps 38400bps 57600bps 115200bps USB COMMUNICATION 1. USB PC Keyboard When you connect the module with USB cable, you can set the module to keyboard input mode by scanning this code.
  • Page 13: Scanning Mode

    Barcode Scanner Module User Manual You can set the module to USB virtual port mode by scanning this code. USB Virtual Port SCANNING MODE 1. Manual Mode Manual Mode is default scanning mode. In this mode, user should press the button to begin scanning, and it will finish after scanned or button release.
  • Page 14 Barcode Scanner Module User Manual In Continuous Mode, the module will keep scanning automatically. After it success scanning and output result, or reach the timeout of scanning time, the module will begin its next scan after a certain time (configurable). User should single press the button to stop the scanning and single press again to continue.
  • Page 15 Barcode Scanner Module User Manual Non-Scanning Interval It is the interval between two scanning behaviors. That is module will scan nothing after last scanning for this interval time before and begin its next scanning. The setting range of this interval is 0~25.5s. It is 1.0s by default.
  • Page 16 Barcode Scanner Module User Manual Single Scanning time In Sensing Mode, this parameter set the max scanning time for per scanning behavior. If the module success scanning or the its scanning time reach the max single scanning time, module will enter the non-scanning interval. The range of single scanning time should be 0.1~25.5s.
  • Page 17 Barcode Scanner Module User Manual No Interval *1000ms 500ms 2000ms 1500ms Image stabilization time It is the time for module to stabilizing image if brightness changed is detected in sensing mode. The range is 0~25.5s, and 0.4s by default. *400ms...
  • Page 18: Lighting And Targeting

    Barcode Scanner Module User Manual Note: The scanning command (UART) is that:7E 00 08 01 00 02 01 AB CD. The scanner module will response bytes (02 00 00 01 00 33 31) for the command and begin scanning at the same time.
  • Page 19: Ouput Indication

    Barcode Scanner Module User Manual Standard (default): The LED only turn on when scanning, or it keeps off. Keep lighting: The LED will keep lighting after powering on scanner module No light: The LED is turned off all the time.
  • Page 20 Barcode Scanner Module User Manual You can set the buzzer to active/passive buzzer, as well as setting the driving frequency of passive buzzer. *Driving frequency- Driving frequency- Passive MF Passive LF Driving frequency- Driving frequency- Active Passive HF Note: LF: Low frequency;...
  • Page 21 Barcode Scanner Module User Manual 2. Scanned tone With these code, you can set the buzzer behavior when succeed in scanning barcode. *Open Scanned tone Close Scanned tone The time of the warning tone can also be set, it is default 60ms.
  • Page 22 Barcode Scanner Module User Manual 4. Keyboard setting To compatible with different keyboard layout of different countries. There are keyboard setting code for choosing. Keyboard-French Keyboard-Czech *Keyboard-US Keyboard-Italian Keyboard-Hungarian Keyboard-German Keyboard-Japanese Keyboard-Spanish 5. Image flip Sometimes we may need to flip the barcode as below If your barcode is flipped, you can use the flip mode.
  • Page 23: Data Edit

    Barcode Scanner Module User Manual *Normal mode Enter flipped mode 6. Read version information You can read the version information of module with this setting code. Read version information DATA EDIT Sometimes we need to edit the scanned data first before output for easily handling.
  • Page 24 Barcode Scanner Module User Manual The format of Data is as below after edit: 【Prefix】【CodeID】【Data】【Suffix】【Tail】 1. Prefix Add prefix Profix is a definable string added in front of decoding data, user can edit it by scanning the related setting code...
  • Page 25 Barcode Scanner Module User Manual 2) Make sure Setting code is enabled, if no, please scanning the setting code “Open Setting Code Function” 3) Scanning “Modify prefix”code 4) Scanning the data setting code one by one: “4”, “4”, “4”, “1”, “5”, “4”, “4”, “1”...
  • Page 26 Barcode Scanner Module User Manual Example: Modify the Suffix as “DATA” 1) Query the character table to get the HEX of “DATA” are that : “44”, “41”,”54”, “41” 2) Make sure Setting code is enabled, if no, please scanning the setting code “Open Setting Code Function”...
  • Page 27 Barcode Scanner Module User Manual Using “Default CODE ID” code, the module will restore all barcode information to default code id. The default setting should refer to Appendix C Default CODE ID Change CODE ID User can change the Code ID as they want with related setting codes. Every code id has one character (one HEX value).
  • Page 28 Barcode Scanner Module User Manual Change CODE ID List Modify CODE ID of EAN 13 Modify CODE ID of EAN8 Modify CODE ID of UPCA Modify CODE ID of UPCE0 Modify CODE ID of UPCE1 Modify CODE ID of CODE 128...
  • Page 29 Barcode Scanner Module User Manual Modify CODE ID of CODE 11 Modify CODE ID of MSI Modify CODE ID of Modify CODE ID of RSS Limited RSS Modify CODE ID of Modify CODE ID of Expanded RSS QR CODE Modify CODE ID of...
  • Page 30 Barcode Scanner Module User Manual 4. Terminator Scanner will output a terminator after succeed in decoding. Close Tail *Add Tail CR Add Tail TAB Add Tail CRLF 5. Data segment intercept The decoding data 【Data】could be divided to three parts: 【Start】【Center】【End】...
  • Page 31 Barcode Scanner Module User Manual Change the Length M of Start With data setting code and this one, you can change the length of Start segment. The length of Start is max 255 characters. The Length M is represented by a HEX. More details about HEX refer to Appendix...
  • Page 32 Barcode Scanner Module User Manual 2) Make sure the setting code function is enable, if not, open it. 3) Scanning “Modify the Length M” 4) scanning setting code: “0”, “D” 5) Scanning “Save” 6) Scanning “Only Send Start Segment” Decoding Data: “1234567890123ABC”, output the last three bytes: “ABC”...
  • Page 33 Barcode Scanner Module User Manual 6) Scanning “Modify the Length M” 7) Scanning setting code “0”, “A” 5) Scanning “Save” 6) Scanning “Only Send Center Segment” 6. RF Information RF (Read Fail) information is the that used for indicating failed scanning in some modes.
  • Page 34: Barcode Types Enable/Diable

    Barcode Scanner Module User Manual 3) Scanning “Modify RF Information” 4) Scanning data setting code: “4”, “6”, “4”, “1”, “4”, “9”, “4”, “C” 5) Scanning “Save” BARCODE TYPES ENABLE/DIABLE 1. All Types Enable With these setting code, you can enable/disable all types of barcode. If you disable all types of barcode, only the setting code is scannable.
  • Page 35 Barcode Scanner Module User Manual *Enable 360° Rotation Disable 360° Rotation 3. EAN13 Enable/Disable ENA13 barcode Disable Scanning EAN13 *Enable Scanning EAN13 4. EAN8 Enable/Disable EAN9 barcode *Enable Scanning EAN8 Disable Scanning EAN8 5. UPCA Enable/Disable UPCA barcode *Enable Scanning UPCA...
  • Page 36 Barcode Scanner Module User Manual 6. UPCE0 Enable/Disable UPCE0 barcode *Enable Scanning UPCE0 Disable Scanning UPCE0 7. UPCE1 Enable/Disable UPCE1 barcode *Enable Scanning UPCE1 Disable Scanning UPCE1 8. Code128 Enable/Disable Code128 barcode *Enable Scanning Code128 Disable Scanning Code128 Setting the Min Scannable Length of Code128:...
  • Page 37 Barcode Scanner Module User Manual Setting the Max scannable length of Code128: *Code128 Max Length 32 Code128 Max Length 255 9. Code 39 Enable/Disable Code39 *Enable Scanning Code39 Disable Scanning Code39 Setting the Min scannable length of Code39: Code39 Min Length 0...
  • Page 38 Barcode Scanner Module User Manual *Enable Scanning Code93 Disable Scanning Code93 Setting the Min scannable length of Code93: *Code93 Min Length 4 Code93 Min Length 0 Setting the Max scannable length of Code93: Code93 Max Length 255 *Code93 Max Length 32 11.
  • Page 39 Barcode Scanner Module User Manual Setting Start/Stop characters of Code Bar: Send Code Bar Start/Stop *Without Code Bar Start/Stop Character Character Setting the min scannable length of Bar Code Code Bar Min Length 0 *Code Bar Min Length 4 Setting the max scannable length of Bar Code...
  • Page 40 Barcode Scanner Module User Manual *Disable Scanning Interleaved 2 of 5 Enable Scanning Interleaved 2 of 5 Setting the min scannable length of Interleaved 2 of 5 code: * Interleaved 2 of 5 Max Length 4 Interleaved 2 of 5 Min Lenght 0...
  • Page 41 Barcode Scanner Module User Manual * Industrial 25 max Length 4 Industrial 25 Min Lenght 0 Setting the max scannable length of Industrial 25: * Industrial 25 Max Lenght 32 Industrial 25 Max Length 255 15. Matrix 2 of 5...
  • Page 42 Barcode Scanner Module User Manual Setting the max scannable length of Matrix 2 of 5 * Matrix 2 of 5 Max Length 32 Matrix 2 of 5 Max Length 255 16. Code11 Enable/Disable Scanning Code11 Enable Scanning Code11 *Disable Scanning Code11...
  • Page 43 Barcode Scanner Module User Manual 17. MSI Enable/Disable scanning MSI code Enable Scanning MSI *Disable Scannig MSI Setting the min scannable length of MSI: MSI Min Length 0 *MSI Min Length 4 Setting the max scannable length of MSI: * MSI Max Length 32 MSI Max Length 255 18.
  • Page 44 Barcode Scanner Module User Manual Enable/Disable scanning Limited RSS Enable Scanning Limited RSS *Disable Scanning Limited RSS Enable/Disable scanning Expanded RSS Enable Scanning Expanded RSS *Disable Scanning Expanded RSS Setting the min scannable length of RSS *RSS Min Length 4...
  • Page 45: Appendix A: Default Setting Table

    Barcode Scanner Module User Manual *Enable Scanning DM Disable Scanning DM 20. PDF417 Enable/Disable scanning PDF417 code: Disable Scanning PDF417 *Enable Scanning PDF417 APPENDIX A: DEFAULT SETTING TABLE Parameters Default Setting Note Communicating Interface Baud rate 9600 Parity None UART...
  • Page 46 Barcode Scanner Module User Manual Mode Default Scanning Mode Manual Mode Single scanning Range:0.1-25.5s,Step: 0.1s; UART Mode time 0 stands for infinite Manual Trigger Level Default High Mode 46 / 57 Rev1.0 Date:180621...
  • Page 47: Appendix B: Common Uart Command

    Barcode Scanner Module User Manual APPENDIX B: COMMON UA RT COMMAND Functions Commands Set Baud rate as 9600 7E 00 08 01 00 D9 D3 20 38 Save setting to EEPROM 7E 00 09 01 00 00 DE C8 Query the baud rate...
  • Page 48: Appendix C: Code Id List

    Barcode Scanner Module User Manual APPENDIX C: CODE ID LIST Barcode Type CODE ID Flags Address EAN-13 0x91 EAN-8 0x92 UPC-A 0x93 UPC-E0 0x94 UPC-E1 0x95 Code 128 0x96 Code 39 0x97 Code 93 0x98 Codabar 0x99 Interleaved 2 of 5...
  • Page 49: Appendix D: Ascii Table

    Barcode Scanner Module User Manual APPENDIX D: ASCII TABLE Character 49 / 57 Rev1.0 Date:180621...
  • Page 50 Barcode Scanner Module User Manual Character " & 50 / 57 Rev1.0 Date:180621...
  • Page 51 Barcode Scanner Module User Manual Character < > 51 / 57 Rev1.0 Date:180621...
  • Page 52 Barcode Scanner Module User Manual Character 52 / 57 Rev1.0 Date:180621...
  • Page 53 Barcode Scanner Module User Manual Character 53 / 57 Rev1.0 Date:180621...
  • Page 54 Barcode Scanner Module User Manual Character 54 / 57 Rev1.0 Date:180621...
  • Page 55: Appendix E: Data Code

    Barcode Scanner Module User Manual APPENDIX E: DATA CODE 0~9: 55 / 57 Rev1.0 Date:180621...
  • Page 56 Barcode Scanner Module User Manual A~F: 56 / 57 Rev1.0 Date:180621...
  • Page 57: Appendix F: Save And Remove

    Barcode Scanner Module User Manual APPENDIX F: SAVE AND REMOVE Using Data Code, you need to scan the “Save” to save your setting, you can also use “Remove”/”Cancle” to remove your wrong data setting if require. Save Exit one Data scanned before...

Table of Contents