All posts by RTscan Marketing Dept.


Raspberry Pi barcode scanner: connect oem barcode scanners modules with Raspberry Pi microcontroller (MCU)

If you are using Raspberry Pi microcontroller / single board computer to develop your system and need a 1d/ 2d OEM barcode scanner module at the same time, then this article would be helpful for you: here we introduce how we connect the Raspberry Pi 3 model B+ micro-controller with RTscan OEM barcode scanner modules and how to make them work each other.

When we try to integrate an OEM barcode scanner with Raspberry Pi microcontroller board, we would meet these problems:

  1. The OEM barcode scanner with 12pins TTL interface, but Raspberry Pi board without this type connector, then how can we connect them together?
  2. Whatever OEM barcode scanners we choose, how can we control the barcode scanner by Raspberry Pi and also upload decoded data to Raspberry Pi system?

Read below and find how RTscan provides solutions for above questions.

Part I: Introduction of Raspberry Pi 3 model B+ and RTscan OEM barcode scanners

Raspberry Pi 3B+:

Raspberry Pi 3 Model B is the latest iteration of the world’s most popular single board computer. It provides a quad-core 64-bit ARM Cortex-A53 CPU running at 1.2GHz, four USB 2.0 ports, wired and wireless networking, HDMI and composite video output, and a 40-pin GPIO connector for physical interfacing projects.

Raspberry Pi 3 Pinout

 

And for our application to connect with oem barcode scanner, we need the 3.3V (or the 5.0v) power supply pin, and GND pin, RXD, TXD pins.

And also, we will demo how to connect our oem barcode scanner with raspberry Pi via USB interface.

 

RTscan OEM barcode scanners:

They all with 12pins connector and TTL signal, and use FFC cable and connector like this :

In this article, we choose the RT203 as an example to do the connection and integration.

Part II: Connection solutions:

RTscan provides three types of solutions:

Solution1:

There is no buzzer in this solution and you can add buzzer by yourself in your system.

This is a most simple solution, just connect the 3.3V power supply, GND, RX and TX pins.

RT203 Pinout

 

PIN Connection:

RT203/RT206 Raspberry Pi 3B+
Pin2 VCC 3.3V(Pin1)
Pin3 GND GND(Pin6)
Pin4 RX Tx(Pin8)
Pin5 TX Rx(Pin10)

 

Solution 2:

Add a buzzer in this solution, connect the 3.3V power supply, GND, RX and TX pins for the oem barcode scanner, and for the buzzer we connect 5.0V power supply, GND pins from Raspberry Pi and buzzer signal pin from the barcode scanner.

 

Solution 3:

We integrated the buzzer in the EVK board, and just connect the 5.0V power supply (the EVK need 5.0v power supply), GND, RX and TX pins.

 

For Raspberry Pi, if you prefer to connect the barcode scanner via USB interface, it also be fine, setup RTscan’s barcode scanner to USB-HID (keyboard simulation) mode and they work directly:

 

Part III, SDK/ Control the oem barcode scanner module via Raspberry Pi system:

 

We developed the SDK to work with our scanners, this way, you can copy our source codes and program your system very quickly and no need to write the whole code one by one; save your time and speed up your integration work!

We have developed Raspberry SDK for most of our oem barcode scanners, includes RT203 RT206 RT207 RT208 RT209 RT211 RT830B, if you want to learn more about them, please view links below:

OEM barcode Scanners

If you are using Arduino microcontroller, please read: Arduino barcode scanner

 

Read More

Arduino barcode scanner: connect oem barcode scanners modules with Arduino microcontroller (MCU)

If you are using Arduino microcontroller to develop your system and need a 1d/ 2d OEM barcode scanner module at the same time, then this article would be helpful for you: here we introduce how we connect the Arduino Uno microcontroller with RTscan OEM barcode scanner modules and how to make them work each other.

 

When we try to integrate an OEM barcode scanner with Arduino microcontroller board, we would meet these problems:

  1. The OEM barcode scanner with 12pins TTL interface, but Arduino board without this type connector, then how can we connect them together?
  2. Whatever OEM barcode scanners we choose, how can we control the barcode scanner by Arduino and also upload decoded data to Ardunio system?

 

Read below and find how RTscan provides solutions for above questions.

Part I: Introduction of Arduino UNO and RTscan barcode scanner

 

Arduino UNO:

The UNO is the most used and documented board of the whole Arduino microcontrollers family, many people choose this model for their projects. Arduino Uno has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller.

 

Arduino UNO Pinout

And for our application to connect with oem barcode scanner, we need the 3.3V (or the 5.0v) power supply pin, and GND pin, RXD, TXD pins.

 

 

RTscan OEM barcode scanners:

 

In this article, we choose the RT203 as an example to do the connection and integration.

They all with 12pins connector and TTL signal, and use FFC cable and connector like this :

 

Part II: Connection solutions:

RTscan provides three types of solutions:

Solution1:

 

There is no buzzer in this solution and you can add buzzer by yourself in your system.

This is a most simple solution, just connect the 3.3V power supply, GND, RX and TX pins.

RT203 Pinout

RT203 Arduino UNO
Pin2 VCC 3.3V
Pin3 GND GND
Pin4 RX Pin5
Pin5 TX Pin4

 

Solution 2:

Add a buzzer in this solution, connect the 3.3V power supply, GND, RX and TX pins for the oem barcode scanner, and connect 5.0V power supply, GND and buzzer signal pin for the buzzer.

 

 

 

Solution 3:

We embed the buzzer in the EVK board, and just connect the 5.0V power supply (the EVK need 5.0v power supply), GND, RX and TX pins.

 

Part III, SDK/ Control the oem barcode scanner module via Arduino system:

We developed the SDK to work with our scanners, this way, you can copy our source codes and program your system very quickly and no need to write the whole code one by one; save your time and speed up your integration work!

If you are using Raspberry Pi , please read: Raspberry Pi barcode scanner

We developed SDK for most of our oem barcode scanners, includes RT203 RT206 RT207 RT208 RT209 RT211 RT830B, if you want to learn more about them, please view below:

OEM barcode Scanners

 

Read More

 

Congratulate RTscan move to Shenzhen BIT innovation building that located in new and High-tech Industrial Park of Shenzhen, in the park, there are lots of University-industry bases, more than 10 of Chinese first-class university invest their university-industry base here.

 

Shenzhen BIT innovation building is the University-industry base of Beijing Institute of Technology, which is the first-class high-tech university of China.

The Shenzhen City Government and Beijing Institute of Technology invest to build this building in the purpose of High-tech industrialization. To learn more about Beijing Institute of Technology, click here:

 

http://english.bit.edu.cn/AboutBIT/GeneralInformation/index.htm

 

In time of New Year 2017, RTscan move to this High-tech Industrial Park in hope to improve us and provide more valuable products and service to our customers.

Read More

Hand free barcode scanner -RT800 release


 

After nearly one year’s development, RTscan finally released its new scanner- hand free barcode scanner RT800.

RT800-hand-free-2D-Bar-code-scanner

This hand free barcode scanner with rich features:

  • Large scanning window, can scan full screen of a Iphone 4S
  • Omni-directional
  • Hand-free and Automatic scanning operation
  • Both Desktop and Kiosk-embedded use design , either can be use in all kinds of on-counter service or used by integrated inside Kiosks / ATM terminal
  • Support most of 1D/2D bar code decoding: 1D Code such as Code11, Code39, Code93, Code128, and mainstream, 2D Code such as DM Code, QR Code, micro QR Code, PDF417, micro PDF417
  • Scans bar codes on paper, smart phones LCD screen and computer/ Ipad displays

RT800-on-counter-barcode-scanner

For full detailed information of this new hand free barcode scanner, please read:

https://www.rtscan.net/Code-Readers/hand-free-2d-bar-code-scanner-rt800

 

Read More

New version of the handheld 2d barcode scanner RT400


 

Recently, we released new version of the handheld 2d barcode scanner : RT400, this new version has been improved in terms of outlook, illumination and decode performance, below in details:

new RT400

Version 1                                                                                Version 2 (new)

1. The new version looks more nice and also more use friendly.

2. The new version improved the brightness of the aiming lights; improved the illumination light so as to improve the decode performance for reading bar codes from long distance away and the performance for reading bar codes from mobile phone screen.

 

The RT400 is a handheld 2d barcode scanner which outstanding for reading bar codes from phone screen and other LCD display, for example Iphone, Ipad, Laptop… Ideal for mobile ticket (e-ticket, e-coupon ) bar code reading which for application in restaurant, stores, Super market…

handheld-2d-barcode-reader-rt400 handheld-2d-barcode-scanner-rt400 USB-handheld-2d-barcode-scanner-rt400

Read More

Upgrade of the 2d scanner module: RT200


 

Recently, we released new version(Version 2) of the 2d scanner module: RT200, this new version has been improved in terms of  structure, illumination and decode performance, below in details:

2d scanner module

Version 1                                                                                 Version 2 (new)

 

1.   Different in the PIN position:

new RT200 imager

Version 1                                                                                 Version 2 (new)

2.   Improved the brightness and uniformity of the aiming lights;  improved the illumination light so as to improve the decode performance for reading barcode in dark environment and for reading bar code from long distance away.

 

Note:

After upgrade, the PIN definition and all of the protocol are exactly keep the same with before. So if you use the version 1 before then you can use the Version 2 directly and without change any protocol of your software.

 

2D-Lector-de-codigo-barras-OEM-RT200 2D-Lector-de-codigo-OEM-RT200 OEM-2D-Lector-de-codigo-RT200

Read More

 

How a 2d barcode scan engine to be integrated with your Kiosk, POS terminal or 

others system?

By RTscan,  June 2014

 

We have been often asked by our customers about “how to integrate the 2d barcode scan engine ? “ or “what’s the interface of the

2d barcode scan engine module ?” , so here we try to explain in details:

RTscan OEM 2d imager scan engine RT200 provides 4 types of interface:

 

I. TTL serial

II. USB-VCOM(USB virtual com port) 

III. USB-HID( keyboard simulation) 

IIII. RS232

 

I. The 2d imager engine RT200 itself with TTL serial interface :

 

TTL is a kind of signal. The 2d scan engine RT200 output with TTL signal, to work with PC terminal, usually we need to design

electronic circuit that:

TTL -> TTL to RS232 adaptor -> PC
TTL -> TTL to USB adaptor -> PC

Or if you wanted bluetooth wireless, get a TTL to Bluetooth adapter, or if you want Ethernet, get a TTL to Ethernet adaptor, etc.

We also provide emulation kit board which already includes TTL to RS232 or TTL to USB adaptor, so as to work with 

PC directly via USB or RS232 cable, for details, please read section II, III,IIII below.

 

Connector (if necessary, we can provide the connector together with the scan engine):

12 pins connector

RT200-TTL-Connector-image2

RT200-TTL-Connector-PIN

Pin definition: 

RT200-PIN-OUT

 

We also provide circuit design reference, please refer to user guide of RT200.

 

Special tips:

1. Tx and Rx 
As you probably know, Tx represents transmit and Rx represents receive. The transmit pin always transmits data, and the

receive pin always receives it. Sounds easy, but it can be a bit confusing . . .

For example, the RT200 with TTL level signal and suppose you want to connect the RT200 to your micro-controller UART. This is how you would do it:

QQ20160113152321

 

Notice how Tx is connected to Rx, and Rx is connected to Tx. If you connect Tx to Tx, they will not transmit data.

And remember to make your ground connection common!

 

2. Baud Rate 
Baud is a measurement of transmission speed in asynchronous communication. The computer, any adaptors, and the UART

must all agree on a single speed of information – ‘bits per second’.

For example, your robot would pass sensor data to your laptop at 38400 bits per second and your laptop would listen for this

stream of 1s and 0s expecting a new bit every 1/38400bps = 26us (0.000026 seconds). As long as the robot outputs bits at

the pre-determined speed, your laptop can understand it.

Remember to always configure all your devices to the same baud rate for communication to work!

 

 

II. USB-VCOM (USB COM port emulation, or called”USB virtual com port”)

RT200-USB-development-kit

RTscan provides a emulation Kit( development Kit board) with USB interface, fix the barcode scan engine RT200 in the emulation Kit ,and connect the emulation Kit (together with the RT200)

to your system via USB cable.

 

Its requires drivers for USB-COM, and it follows communication protocol of serial port, so we call it virtual com port.

Under USB-VCOM, the RT200 supports: Full Windows OS ( Window XP, Window7, Window8…) Linux , Android

 

 

III. USB-HID ( Keyboard simulation)

RT200-USB-hid-development-kit

 

Same as USB-VCOM that need to use a emulation Kit which with USB interface, and the scan engine RT200 fixed in this emulation Kit, and you

connect the emulation Kit (together with the RT200) to your system via USB cable.

 

With this interface :

No need any extra driver and we often called it“plug and play”, just plug in and the decoded data will be show up wherever that we place

the cursor, so any common software can work with it, for example: MS Words, Excel, Notepad, … And this just looks like input from a keyboard,

so we call it keyboard simulation.

With USB-HID, the RT200 currently supports: Full Windows OS ( Window XP, Window7, Window8…)

 

IIII. RS232( 9 pins standard RS232 interface )

RT200-RS232-development-kit

RS232 Cable          rs232

 

RTscan provides a emulation Kit with 9 PINs RS232 interface, fix the barcode scan engine RT200 in the emulation Kit , and connect the

emulation Kit (together with the RT200) to your system via RS232 cable.

With this interface :

No need any driver and supports any OS, full Windows OS ( Window XP, Window7, Window8…) Linux , Android. Requires your terminal

with RS232 port, and need extra power supplier (power adaptor) .

 

Tip again :

If you use a micro controller between RS232 emulation Kit and your PC terminal, then remember to connect by: “ Tx(RT200) to

Rx(micro controller) “ and “ Tx(micro controller) to Rx(RT200) “ .

 

Connect-of-PIN-RT200

Connection between PC Host, RT200 RS232 kit board and others not-host devices:

connect-between-micro-controller-RT200

 

Note: Definition of the 9 pin RS232 of RT200 emulation Kit as show above.

 

Read More