As of firmware version 1026 for all Code Readers except the CR5000, Code has added CDC support to its readers. This support is currently applicable only to Linux, and can be enabled in the reader via the USB Virtual COM Raw CDC Mode configuration barcode (https://codecorp.com/ConfigGuide/assets/barcode_sources/M10438_01.png). This will allow users to create a virtual COM port in a Linux environment using built-in CDC drivers, so applications can control reader communication as they would with a serial reader.
Once the reader is plugged in and enumerated with the Linux host, and assuming the USB Virtual COM Raw CDC Mode configuration barcode has been scanned (as referenced above), the reader will show up as the “/dev/ttyACM0” device. Any software wishing to access the reader must open “/dev/ttyACM0” to start data transfer. Users can test communication using the minicom or cat utilities. These utilities may be included with the user’s instance of Linux, or may have to be installed.
In minicom, open the device using the command “minicom -D /dev/ttyACM0”. Barcode data will appear when read.
In cat, open the device using the command “cat /dev/ttyACM0”. The cat utility requires a carriage-return be transmitted before it shows data, so the carriage return suffix would need to be enabled on the reader.
If the reader reboots or is disconnected, the application that opened the device is notified.
Code does not currently support CDC on Windows. If virtual COM functionality is required on Windows, users can download the appropriate Virtual COM driver for their reader from the “Downloads” section at https://www.codecorp.com/downloads.php.