1. Introduction
The GM861XS-0 bar code reader module is a high-performance scanner capable of reading 1D barcodes easily and 2D barcodes with high speed. It offers high scan speed for linear codes, even for barcodes displayed on paper or screens. This module utilizes an advanced barcode decoding algorithm based on image recognition, allowing for easy and accurate barcode reading and simplifying secondary development.

2. Technical Specifications
2.1 Performance Parameters

Sensor: CMOS
Scan Mode: 640*480
Indicator Light: Green light as read successfully
Read Code Type:
1D: EAN-13, EAN-8, UPC-A, UPC-E, ISSN, ISBN, CodaBar, Code 128, Code93, ITF-14, ITF-6, Interleaved 2 of 5, Industrial 2 of 5, Matrix 2 of 5, Code 39, Code 11, MSI-Plessey, GS1 Composite, GS1-Databar (RSS)
2D: QR Code, Data Matrix, PDF417, Micro QR, Micro PDF417, Aztec
Reading Distance: 5-30cm
Contrast*: >25%
Scan Angle**: Roll: 360°, Pitch: 65°, Yaw: 65°
Viewing Angle: 67° (Horizontal) 53° (Vertical)
Accuracy of reading*: ≥10mil
* Test conditions: environment temperature =23°C; environment illumination =300 LUX;
** Test conditions: Test distance = (minimum depth of field + maximum depth of field) /2; environment temperature =23°C; illumination =300 LUX;
2.2 Mechanical/Electrical Parameters

Interface: TTL-232/USB
Size(mm): Diameter 17.2mm (Without hole), Diameter 25mm (Including hole)
Weight: 1g
Prompting mode: LED Indicator
Operating Voltage: 5V
Operation Current: 70mA (Max)
Standby Current: ≤6mA (Typical)
Startup time: ≤250mS (Typical)
2.3 Environmental Parameters
| Parameter | Performance |
|---|---|
| Operating temperature | -20°C~+60°C |
| Storage Temperature | -40°C~+70°C |
| Operating Humidity | 5%~95% (Non-Condensing) |
| Environmental Light | Normal indoor light source |
| Fall | Withstand 1.2 m drop on concrete floor (50 times 1.2 m drop on concrete floor repeatedly) |
2.4 Default Read Configuration
| Type | Name | Support | Default Read |
|---|---|---|---|
| 2D | QR Code | ✓ | ✓ |
| Data Matrix | ✓ | ✓ | |
| PDF417 | ✓ | ✓ | |
| Micro QR | ✓ | X | |
| Micro PDF417 | ✓ | X | |
| Aztec | ✓ | X | |
| 1D | EAN-13 | ✓ | ✓ |
| EAN-8 | ✓ | ✓ | |
| UPC-A | ✓ | ✓ | |
| UPC-E | ✓ | ✓ | |
| ISSN | ✓ | X | |
| ISBN | ✓ | X | |
| CodaBar | ✓ | X | |
| Code 128 | ✓ | X | |
| Code93 | ✓ | X | |
| ITF-14 | ✓ | X | |
| ITF-6 | ✓ | X | |
| Interleaved 2 of 5 | ✓ | X | |
| Industrial 2 of 5 | ✓ | X | |
| Matrix 2 of 5 | ✓ | X | |
| GS1 Databar(RSS) | ✓ | X | |
| Code 39 | ✓ | X | |
| Code 11 | ✓ | X | |
| MSI-Plessey | ✓ | X |
3. Product Dimensions and Pin Definition
3.1 Dimensions (mm)

3.2 Pin Definition (1.0mm 6pin)

| No. | Definition | Instruction |
|---|---|---|
| 1 | VCC | Power input 5V |
| 2 | TXD | Serial port send signal (TTL Level) |
| 3 | RXD | Serial port receiver signal (TTL Level) |
| 4 | GND | Signal ground |
| 5 | D- | USB data input |
| 6 | D+ | USB data output |
4. Setup and Configuration
4.1 Power Supply Requirements
The power supply for the GM861XS-0 is DC +5V. Ensure the power input is connected only after the module is properly connected. Electrical components may be damaged if the cable is inserted or removed while the power is live. Always switch off the power supply when connecting or disconnecting cables.
To ensure stable operation, use a low ripple noise power input. It is recommended that the ripple noise does not exceed 50mV (peak-to-peak). If the power is turned off, wait at least two seconds before turning it back on.
4.2 Initial Setup Codes
The module can be configured by scanning specific setup codes. These codes enable or disable various functions.
- Enable Setting Code Function: Send serial command `_SET_CODE_ON` followed by `7E 00 09 01 00 00 00 AB CD` to save.
- Disable Setting Code Function: Send serial command `_SET_CODE_OFF` followed by `7E 00 09 01 00 00 00 AB CD` to save.
4.3 Save and Cancel
To cancel an incorrect read date, scan the appropriate cancel code.
- Save: Scan the 'Save' QR code.
- Cancel Last Byte: Scan the 'Cancel last byte' QR code.
- Cancel All Read Bytes: Scan the 'Cancel all read bytes' QR code.
- Cancel Changes: Scan the 'Cancel changes' QR code.
4.4 Reset to Factory Settings
To restore the module to its factory default settings, scan the 'Reset' QR code.
4.5 User Default Settings
Users can save frequently used configurations as default settings. Scanning 'Save Current Settings as User Default Settings' will store the current device configuration. If default user settings already exist, the new configuration will replace them. To revert to saved user defaults, scan 'Restore the User Default Settings'.
4.6 Communication Interface
The module communicates with a mainframe (PC, POS) via serial communication (TTL-232) or USB HID interface. Ensure communication parameters are matched for smooth operation.
4.6.1 Serial Communication Interface
The default serial communication parameters are: Baud rate 9600bps, No check, 8 bit data, 1 bit stop bit, No flow control. Only the Baud Rate can be changed.
Baud Rate Settings: 1200bps, 4800bps, 9600bps (Default), 14400bps, 19200bps, 38400bps, 57600bps, 115200bps.
4.6.2 Serial Port Check Bit Configuration
Modify the parity bit of the serial port by scanning the following configuration codes: *NONE, ODD, EVEN.
4.6.3 Serial Port Calibration
Customers can send heartbeat packets periodically to ensure data accuracy. A heartbeat packet is `7E 00 0A 01 00 00 00 30 1A` and the return command is `03 00 00 01 00 33 31`. It is recommended to send a heartbeat packet every 10 seconds. If no correct reply is received for three consecutive times, the main control should handle it accordingly.
4.6.4 USB HID Interface
Scan the '*USB HID device' QR code to configure the module as an HID device when connected to a PC via USB.
4.6.5 HID Type Device Selection
When configured as an HID device, it can operate in two modes:
- *HIDKBW: HID Keyboard mode.
- HIDPOS: HID Point of Sale mode.
4.6.6 HID Parameter Configuration
Modify the PC access cycle for HID devices by scanning codes for: *1ms, 3ms, 5ms, 10ms.
Modify the interval between a valid message and a released message (0ms, 1ms, 5ms, 10ms, 15ms).
Modify the interval between releasing a message and the next valid message (0ms, 1ms, 5ms, 10ms, 15ms).
Modify the state of CapsLock when printing: *Off, On, Compatible Mode (7E 00 08 01 00 20 02 AB CD).
4.6.7 HID Lead Key Output
Enable HID output to include a leading message (ctrl+shift+r) before each data segment for software development and positioning. Options: *HID leading Forbid, Allow.
4.6.8 HID-KBW Serial Output at the Same Time
When HID KBW is active, data can also be output through the serial port. Options: *Forbid, Allow.
4.6.9 USB Virtual Serial Port
Scan the 'USB Virtual serial port' QR code to enable virtual serial port output when connected via USB.
5. Operating Modes
5.1 Continuous Mode
In this mode, the module continuously reads barcodes. It can be configured to break after reading one code, with a changeable break time. Click the toggle key to pause and then click again for continuous cyclic reading.
- Default Continuous Mode: Scan the 'Default Continuous Mode' QR code.
- Time Settlement for Single Read: The longest time before the first successful read. After this time, the module enters a 'no read' state. Options: 1000ms, 3000ms, *5000ms (Default), Infinite time interval.
- Break Time Settlement: Time between two reads. Settable from 0 to 25.5s (step-size: 0.1s). Default 1.0s. Options: No break, 500ms, Default 1000ms, 1500ms, 2000ms.
5.2 Induction Mode
After setting, the module monitors brightness. When the scene changes, it reads until image stabilization. After a successful read or single read timeout, it monitors brightness again after a set time. If no code is found within the single read time, it stops reading and returns to brightness monitoring.
- Induction Mode: Scan the 'Induction Mode' QR code.
- Time Settlement for Single Read: Options: 1000ms, 3000ms, Default 5000ms, Infinite time interval.
- Break Time Settlement: Options: No Break, 500ms, Default 1000ms, 1500ms, 2000ms.
- Image Stabilization Time: Time spent waiting for the scene to stabilize after a change is detected. Settable from 0s to 25.5s (step-size: 0.1s). Default 0s. Options: *0ms, 100ms, 400ms, 1000ms, 2000ms.
- Sensitivity: Detects the degree of scene change in inductive reading mode. Options: *Ordinary sensitivity, Low sensitivity, High sensitivity, Extra high sensitivity.
5.3 Manual Mode
This is the default mode. Click the toggle key to start reading and stop when data is output or the toggle key is released.
- Manual Mode: Scan the 'Manual Mode' QR code.
- Trigger Mode: Configure edge trigger or level trigger. Options: *Level Trigger, Edge Trigger.
- Sleep Mode Choice: Module enters sleep mode after idle time. Press a key to wake up. Deep sleep is not available in USB communication mode. Options: Allow Sleep Mode, *Forbid Sleep Mode.
- Idle Time For Sleep Mode: Set the idle time before entering sleep mode. Options: 0ms, *500ms, 3000ms, 5000ms, 6000ms, 7000ms.
5.4 Command Triggered Mode
The module starts reading upon receiving a scan command from the mainframe (bit0 of zone bit 0x0002 writes '1') and stops upon output or read timeout. The serial port trigger command is `7E 00 08 01 00 02 01 AB CD`. After receiving the command, the module outputs `02 00 00 01 00 33 31` and starts scanning.
- Command Triggered Mode: Scan the 'Command triggered mode' QR code.
- Time Settlement for Single Read: Read and Scan time before output. From 0.1s to 25.5s (step size 0.1s). 0 means infinite time interval. Default: 5s. Options: 1000ms, 3000ms, Default 5000ms, Infinite time interval.
5.5 POS Mode
Users can quickly configure the module to work in POS mode by scanning the 'POS Mode' QR code. This mode includes the following main features:
- Read mode is command trigger mode.
- The communication interface is serial port.
- Turn off startup tone.
- Turn off ending character.
6. Barcode Symbology Configuration
6.1 All Barcode Types
After scanning 'Forbid read all bar code', the module will only support scanning setup codes. Options: Support all, Forbid read all bar code, *Open default support types.
6.2 Strengthen Reading Ability
This configuration enhances barcode reading ability, improving the reading angle for all barcodes, supporting angles above 45°, and improving contrast and gradient code support. Disabling angle hardening increases decoding speed. Options: *Forbid to enhanced, Enhanced.
6.3 Specific Symbology Settings
The manual provides detailed settings for various barcode types, including enabling/disabling, check character transfer, extra-code options, and output modes. Refer to the full PDF manual for specific QR codes for each setting (e.g., EAN13, ISSN, ISBN, UPCA, Code128, Code39, etc.).
7. Data Formatting and Output
Data can be edited before output for easier separation and processing. Editions include adding prefixes, AIM IDs, Code IDs, suffixes, cutting out data, and adding end words ('Tail').
7.1 Prefix
A prefix can be added to the head of the encoded information. It can be self-defined (max 15 characters, ASCII). Options: Allow to add prefix, Default no prefix.
7.2 AIM ID
AIM ID (Automatic Identification Manufacturers) defines identification codes for standard barcodes. The scanner can add this ID to the barcode data after decoding. Options: Allow Add AIM ID, *Forbid Add AIM ID.
7.3 Code ID
Code ID allows users to identify different barcode types using a single self-defined character. Options: Allow add CODE ID, Default close CODE ID, *all bar code back to default Code ID 0, all bar code back to default Code ID 1, all bar code back to default Code ID 2.
7.4 Cut Out Data
Output specific parts of the data (Start, Center, End). The length of 'start' and 'end' characters can be changed (max 255 characters, Base 16 ASCII). Options: *Output whole data, Output Start part, Output End Part, Output Center part.
7.5 Suffix
A suffix can be added to the end of the encoded information. It can be self-defined (max 15 characters, ASCII). Options: Allow add suffix, Default no suffix.
7.6 Tail
This function adds a 'tail' to the end of decoded data upon successful read, helping to distinguish decoding results. Options: Close tail, *Change tail to "CR", Change tail to "TAB", Change tail to "CRLF", Change tail to two "CRLF".
7.7 RF Information (Read Fail)
Users can self-define output information when a read fails. Options: Output RF information, Default not output.
7.8 Output Protocol
The output format of the decoded result can be modified in serial/virtual serial mode. The format is `<03>< length >< decoded data >`. Note: The protocol mode must use UTF-8 data output format. Other output formats only output pure data. Options: *Pure data, With the agreement.
8. Image Control
8.1 Black and White Flip
This setting controls how the module handles inverted (black on white vs. white on black) barcodes.
- One-dimensional barcode: *One-dimensional barcode forbidden anti-color decoding, Allow.
- Two-dimensional barcode: *Two-dimensional barcode forbidden anti-color decoding, Allow.
9. Serial Port Instruction
Users can configure the module by sending instructions from the mainframe. Ensure communication parameters match between the module and mainframe.
9.1 CRC Algorithm
The module uses a CRC_CCITT check value (2 bytes) for data integrity. The characteristic polynomial is X16+X12+X5+1, with a multinomial coefficient of 0x1021 and an original value of 0. For single bytes, the highest bit is calculated first, and the output is without negation. If CRC checking is not needed, the CRC byte can be filled with 0xAB 0xCD.
9.2 Read Zone Bit
Max 256 bytes/time for zone bit reading. The command format for input and output is detailed in the full PDF manual.
9.3 Write Zone Bit
Modified zone bit content will be lost after power failure unless saved to internal Flash. The command format for input and output is detailed in the full PDF manual.
9.4 Save Zone Bit To Internal Flash Instruction
To save the device's zone bit list to internal Flash, a save command must be sent. The device cannot save a single zone bit configuration separately; the entire list must be saved. The command format for input and output is detailed in the full PDF manual.
9.5 Zone Bit Reset To Defaults
This function resets all zone bit settings to their default values. The command format for input and output is detailed in the full PDF manual.
10. Package Contents

The package typically includes:
- 1 x GM861XS-0 Bar Code Reader Module
- 1 x Connecting Cable (6-pin, SH 1.0mm)
11. Troubleshooting
- No Power/Module Not Working: Ensure stable power connections. Avoid short power off/on intervals or excessive voltage drop pulses. If power was off, wait at least two seconds before turning it back on.
- Communication Issues: Verify that the serial communication parameters (Baud rate, parity, data bits, stop bits) between the module and the mainframe are identical.
- Barcode Not Reading: Check the 'Default Read Configuration' to ensure the specific barcode type is supported and enabled. Adjust 'Strengthen Reading Ability' settings if barcodes are difficult to read due to angle or contrast.
- Incorrect Data Output: Review 'Data Edition' settings (Prefix, Suffix, Cut out Data) and 'Output Protocol' to ensure data is formatted as expected.
- CRC Errors: If serial communication indicates CRC errors, ensure the CRC algorithm is correctly implemented in your system or disable CRC checking if not required.
- Unknown Command Response: This may occur if the command length is too short or if there's a delay of more than 400ms after the initial command byte (0x7E 0x00).
12. Warranty and Support
For technical support or warranty inquiries, please contact Hangzhou Grow Technology Co., Ltd. Refer to the official website or contact information provided by the seller for assistance.