这是我如何让它工作的:
发送后:
# echo "test" > /dev/ttyUSB0
返回权限被拒绝,
# dmesg | tail
返回:
[92780.658576] ftdi_sio 2-3:1.0: FTDI USB Serial Device converter detected
[92780.658624] usb 2-3: Detected FT232BM
[92780.658626] usb 2-3: Number of endpoints 2
[92780.658628] usb 2-3: Endpoint 1 MaxPacketSize 64
[92780.658630] usb 2-3: Endpoint 2 MaxPacketSize 64
[92780.658632] usb 2-3: Setting MaxPacketSize 64
[92780.664556] usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB0
[92782.102904] usb 2-3: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[92782.104874] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[92782.104891] ftdi_sio 2-3:1.0: device disconnected
这表明与默认安装的软件包“brltty”(盲文设备)存在冲突。
# apt-get remove brltty
停止抽动
设置波特率
# stty -F /dev/ttyUSB0 9600
尝试回声
$ echo "test" > /dev/ttyUSB0
它打印!
钱箱呢?
$ echo -e "\033\0160\0\031\372" >> /dev/ttyUSB0
它打开了!
问题解决了。除非你也需要盲文显示器。