☎ Sales: +8613689562640
☎ Supports: +8613828891549
 


Shenzhen Xingtong IOT Technology Co., Ltd.

Barcode Scanner Manufacturer with development & Invention ability

How to Connect an XTIOT Barcode Scanner Module to Raspberry Pi via TTL UART
来源: | Arthuor: XTIOT Barcode Scanner | Time: 2026-09-17 | 24 Reading | 🔊 点击朗读正文 ❚❚ ▶ | 分享到:

An XTIOT barcode scanner module can connect to Raspberry Pi through TTL UART. This connection is useful when the customer wants to install the scanner directly inside a kiosk, vending machine or other OEM device.

The scanner sends barcode data through TX and receives commands through RX.


XTIOT ScannerRaspberry Pi
Scanner TXRaspberry Pi RX
Scanner RXRaspberry Pi TX
GNDGND
PowerSuitable power supply

TX and RX must connect in opposite directions. The scanner TX connects to the Raspberry Pi RX, and the scanner RX connects to the Raspberry Pi TX.



Do You Need Both TX and RX?

If Raspberry Pi only needs to receive barcode data, the scanner TX connection is enough. The scanner RX can remain disconnected.

Both wires are needed when the software must send commands to the scanner. XTIOT serial commands can be used to trigger scanning, change the scanning mode, enable or disable barcode types, and set prefixes or suffixes.



5V Power and 3.3V UART Are Different

XTIOT models such as the XT206M1 and XT206H1 can use 5V power while their TTL UART signals use 3.3V logic.

The 5V connection powers the scanner. The 3.3V TX and RX wires carry data. The power wire must not be connected to a Raspberry Pi signal pin.

The default baud rate of XTIOT scanner modules is 9600. Other baud rates can be set, but the scanner and Raspberry Pi must use the same value.



Testing and Mass Production

Separate wires can be used during the first test. For mass production, the customer does not need to connect every wire by hand.

XTIOT can provide the scanner pin information for a custom cable. The scanner side uses a JST connector, while the other side can connect to the customer’s adapter board or mainboard through one complete plug.



Which XTIOT Model Can Be Used?

The XT206M1 measures 40 x 20 x 11 mm and is suitable for compact OEM devices.

The XT206H1 uses a 1280 x 800 image sensor and is more suitable for small, dense or mobile screen QR codes.

Both models support TTL UART and serial command control. No SDK is required for normal integration. XTIOT provides the communication protocol and command information.


Related Products:
  • XTMZ40B

    XTMZ40B

    Automate Reader

    0.00

    0.00

  • XT8001E Android 13 PDA with 4.2'' screen

    XT8001E Android 13 PDA with 4.2'' screen

    PDA & Tablet PC & Cash Register

    0.00

    0.00

  • XTS03-2 Networked Barcode Error-Proofing System

    XTS03-2 Networked Barcode Error-Proofing System

    Automate Reader

    0.00

    0.00

  • XTS03-1 Barcode Verification & Poka-Yoke System

    XTS03-1 Barcode Verification & Poka-Yoke System

    Automate Reader

    0.00

    0.00

  • XT8501B MES WMS ERP System Integration Barcode Reader

    XT8501B MES WMS ERP System Integration Barcode Reader

    Data Matrix Scanner

    0.00

    0.00

  • XT8601B Barcode Scanner for Automation Factory

    XT8601B Barcode Scanner for Automation Factory

    Data Matrix Scanner

    0.00

    0.00

更多