Mic*_*ček 5 python linux barcode-scanner pyserial
我一直在尝试使用 N-UB 转换器(适用于此类扫描仪的 USB 转换器)控制 Keyence BL-1301 条码扫描仪。
我为此使用 pyserial (端口和其他设置正确):
serial.Serial(
port = '/dev/bus/usb/001/003',
baudrate = 9600,
parity = serial.PARITY_NONE,
stopbits = serial.STOPBITS_ONE,
bytesize = serial.EIGHTBITS,
writeTimeout = 0,
timeout = 30,
rtscts=True )
Run Code Online (Sandbox Code Playgroud)
但。python 给我:无法配置端口:(25,'不适合设备的 ioctl')
另外,我已经尝试过 Windows 的官方驱动程序,它可以工作。我需要 Linux (Ubuntu) 支持该设备。
任何想法??谢谢迈克