我试图连接到CashCode VAULT1500
票据验证器。
我将它连接到Windows机器,并在Debian
VmBox
虚拟机中工作。下面是我如何将带有CashCode
的COM端口连接到VMBox
:
在debian上,我检查端口名:
python -m serial.tools.list_ports
得到:
/dev/ttyS3
现在我尝试连接到端口,如示例https://github.com/ubombi/cashcode_ccnet/tree/master/ccnet:
import serial
ser = serial.Serial(port='/dev/ttyS3', baudrate=9600, timeout=None,bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE)
t = ser.read(3)
但这里没有答案。
在VMBox
设置或代码中我会错过什么?你知道吗
为什么不直接使用COM端口名呢?你知道吗
相关问题 更多 >
编程相关推荐