Set up reader access on Linux
To access a BALTECH reader from a non-root process on Linux, you may need to load kernel modules and configure udev rules. The setup depends on the physical interface you use.
RS-232/UART
In the /etc/udev/rules.d directory, place a file with the extension .rules containing the following line:
KERNEL=="ttyS0", MODE="0666"
USB
Required kernel modules
The following kernel modules need to be loaded for readers to be detected:
- For virtual COM port:
cdc_acm - For HID:
usbhidmodule andhidrawconfig option
They are automatically loaded on most Linux distributions. If your reader is not detected, refer to our troubleshooting entries for virtual COM port or USB HID.
Udev rules
In the /etc/udev/rules.d directory, place a file with the extension .rules containing one of the following lines:
Default
- USB virtual COM port:
KERNEL=="ttyACM*", ATTRS{idVendor}=="13ad", MODE="0666" - USB HID:
KERNEL=="hidraw*", ATTRS{idVendor}=="13ad", MODE="0666"
When implementing a daemon
- USB virtual COM port:
KERNEL=="ttyACM*", ATTRS{idVendor}=="13ad", OWNER="<daemon user account>" - USB HID:
KERNEL=="hidraw*", ATTRS{idVendor}=="13ad", OWNER="<daemon user account>"