我正在使用CANtact
工具箱来发送CAN消息。以下代码通过高速发送标识符为0的消息来执行拒绝服务攻击
from canard import can
from canard.hw import cantact
dev = cantact.CantactDev("/dev/cu.usbmodem14511")
dev.start()
while True:
print(dev.recv())
您需要正确设置串行端口(在本例中是/dev/cu.usbmodem14511
)。在
如何找到笔记本电脑的串行端口?我使用的是Ubuntu 18.04
Tags:
它是
/dev/ttyACM0
。 从wiki:相关问题 更多 >
编程相关推荐