Connecting a Serial Barcode Scanner
Connecting Barcode Scanner via COM Port
Determine to which COM port of the device the barcode reader is physically connected.
Open the IGEL Setup, go to System > Registry > devices > serial > inputattach and enable the relevant key, according to the COM port in use:
COM1 (
/dev/ttyS0
): devices.serial.inputattach.com0.enabledCOM2 (
/dev/ttyS1
): devices.serial.inputattach.com1.enabledCOM3, COM4 ...: Add a new instance by clicking devices.serial.inputattach.com% > Add Instance and define the port appropriately, e.g.
/dev/ttyS2
for COM3.
If the device's baud differs from 9600 (default), enter the correct baud under devices.serial.inputattach.com0.baud.
With most barcode readers, you can change the baud by scanning a specific bar code.
In the Setup, click Apply or Ok to submit the new settings. To make absolutely sure that the new settings are effective, you can reboot the device.
Check if the barcode scanner is working.
Connecting Barcode Scanner via USB
If the barcode scanner is connected over USB, the challenge is to identify the device which is assigned to it. Depending on your specific device and environment, your mileage may vary. Start with the Connecting a Serial Barcode Scanner#simple procedure. If you are lucky, this will do it. If not, continue with the Connecting a Serial Barcode Scanner#extended procedure.
Simple Procedure
Connect the barcode to a USB port. This will trigger an event which will be logged and reported by dmesg.
Open a terminal on your endpoint device. For further information on the device's terminal, see Local Terminals.
To find the right device file, enter
dmesg | grep tty
in the terminal.
If you are lucky, the relevant device file is listed. Its name is eitherttyUSB<NUM>
orttyACM<NUM>
. Example:ttyUSB0
If the relevant device file is not listed, try the Connecting a Serial Barcode Scanner#extended procedure below.Open the IGEL Setup, go to System > Registry > devices > serial > inputattach.
Set the devices.serial.inputattach.com0.port to the device file you have found. Example: If the device file is
ttyUSB0
, enter/dev/ttyUSB0
Activate devices.serial.inputattach.com0.enabled.
If the device's baud differs from 9600 (default), enter the correct baud under devices.serial.inputattach.com0.baud.
With most barcode readers, you can change the baud by scanning a specific bar code.
Click Apply or Ok to submit the new settings. To make absolutely sure that the new settings are effective, you can reboot the endpoint device.
Check if the barcode scanner is working.
Extended Procedure: Device File Was Not Found on the First Go
If the device file could not be found using the simple procedure, try loading the device driver manually. As the explicit loading of the driver must be executed with every system start, a custom command must be added.
In the terminal, enter the following commands, one after the other:
modprobe cdc-acm
dmesg | grep tty
The relevant device file is listed. Its name is eitherttyUSB<NUM>
orttyACM<NUM>
. Example:ttyACM0
Open the IGEL Setup, go to System > Registry > devices > serial > inputattach.
Set the devices.serial.inputattach.com0.port to the device file you have found. Example: If the device file is
ttyUSB0
, enter/dev/ttyACM0
Activate devices.serial.inputattach.com0.enabled.
If the device's baud differs from 9600 (default), enter the correct rate under devices.serial.inputattach.com0.baud.
With most barcode readers, you can change the baud by scanning a specific barcode.
Go to System > Firmware Customization > Custom Commands > Base and under Initialization, enter
modprobe cdc-acm
Click Apply or Ok to submit the new settings. Reboot the device.
Check if the barcode scanner is working.