需要一些关于Python can的帮助。目前,我的代码只接收延迟2秒的数据,这样shell就不会泛滥了。在
如何过滤信息,以便使用接收到的字节来解释信息?现在它给了我一切。在
import can
import time
bus = can.interface.Bus(bustype='nican', channel='CAN0', bitrate=1000000)
recvMsg = bus.recv(timeout=None)
while(recvMsg is not None):
print (recvMsg.)
time.sleep(2)
else:
print ("None")
请看一下^{} type of ^{} 。在
示例:
如果要打印数据字段中的字节数,请使用
如果要打印第一个数据字节,请使用
^{pr2}$相关问题 更多 >
编程相关推荐