Connect an RS‑232 serial scanner

Barcode scanners or QR scanners with an RS‑232 output can be connected to VTAP100 and VTAP50 readers on the J1 header. J1 is a 2mm 8‑way captive cable connector for power, USB and RS‑232, which is present on all VTAP100 and VTAP50 readers.

Wiring RS‑232 serial scanner input

The position of the J1 connector in current hardware is illustrated below. More details can be found in the installation or integration guide for your VTAP reader model.

Note: If the J1 connector is already used by a captive USB cable, then that cable will need to be replaced with a custom cable that can connect both USB and RS‑232 at the same time.

Diagram showing RS-232 connector location

VTAP100 captive power cable or RS-232 J1 connection

Diagram showing where to find the J1 connector, through a cut away in a daughter board, on some models

Access to J1 through cutaway in reader board assembly on some models

Diagram showing captive RS-232 connector location

VTAP50 captive power cable or RS-232 J1 connection

A scanner will use pins 1,5,7 on a matching connector (Hirose DF11‑8DS‑2C or equivalent). If the VTAP reader power source, typically USB, can support the additional current requirement of your chosen scanner, then 5V on pin 3 could also be used to power the barcode or QR scanner.

This table shows the pin‑to‑pin connection between the J1 connector on your VTAP reader and your RS‑232 barcode or QR scanner:

VTAP100/VTAP50 J1 connector

RS‑232 barcode or QR scanner

Pin 1

0V

0V

Pin 3

+5V

+5V

Pin 5

RS232‑RX

RS232‑TX

Pin 7

RS232‑TX

RS232‑RX

Note: Always ensure that 0V is connected between the VTAP reader and the barcode/QR scanner. The 5V pin 3 connection is only required if powering the scanner from the VTAP reader.

General configuration to use serial scanner

In most cases the output interface for scanner data will be the same one already in use for other VTAP tap data.

If you have a VTAP PRO reader in Cloud mode, its configuration will be set up and sent through VTAP Cloud. Contact vtap‑support@dotorigin.com for help or more information.

For VTAP readers in Local mode, you should ensure that the following settings are in the config.txt file on your VTAP reader:

  • SerialScannerMode=1 to identify that a scanner input is connected on the RS‑232 interface.

  • If the ...Source setting for the output interface is set to any value other than =A5 (default), add 0x04 to the existing source bit value, to permit scanner data to be sent over that interface. (If the setting is not present in the config.txt file, the default value will allow scanner data through).

  • If required, you could define a delimiter value to identify the end of a scanner payload using the SerialScannerDelimiter setting. The default is =%0d (carriage return).

  • You might need to update the SerialSettings, to ensure that they match the serial settings of the barcode/QR scanner. The default is =9600,n,8,1 where 9600 is baud rate, n is no parity, 8 data bits, 1 stop bit.

Other settings for this output port can be adjusted to suit your application. Refer to the VTAP Commands Reference Guide for a complete set of available configuration settings.

The VTAP reader interface you choose to output scanner data may require some extra configuration, described in the following examples. Choose any of the following, if they are available on your VTAP reader model: