我在设备的串口上有一个输入缓冲器和一个输出缓冲器。当应用程序启动时,我在串口上侦听,从血糖仪接收一个字节,它的十进制代码"5“对应于ASCII表,这是查询的符号,15秒后,我得到了与传输结束对应的字节"4”。要从血糖仪接收数据,我需要发送一个ACK信号(确认),它对应于字节"6“。我试过以下表格:
outBuffer.write("ACK\r\n".getBytes()); //first without setting the charset and
当使用此脚本使pin12上的指示灯闪烁时,脚本将无法通过pin12设置为高的line27。没有错误信息。 import urllib from pprint import pprint import serial
a = Arduino('COM13') #Insert this before the while loop = it never actually works
a.del