1
ryd994 2015-02-06 20:11:55 +08:00 via Android
cu?这个应该是Unix系通用
|
2
kamil 2015-02-06 22:44:54 +08:00
简单点,终端screen /dev/tty.usbserial-XXXX
或者pySerial import serial ser = serial.Serial(port='/dev/tty.usbserial-XXXX') print('Using port: '+ser.portstr) print(ser.baudrate) print(ser.isOpen()) ser.write("ATI\r\n") time.sleep(0.5) print('ser.inWaiting():', ser.inWaiting()) while True: ch = ser.read() if ch == '': break print(ch) ser.close() |
3
magoolau 2020-11-02 20:15:25 +08:00
老哥,找到这个工具没有
|