对dts进行修改后,ifconfig -a 能找到can设备的节点,但是调用ip link set can1 type can bitrate 50000 triple-sampling on时会出现RTNETLINK answers: Operation not supported 的错误,我想问一下该怎么解决呢?
yongqing wang:
triple-sampling 不打开试试
yongqing wang:
回复 yongqing wang:
直接输入:ip link set can0 up type can bitrate 50000设置波特率
yongqing wang:
回复 yongqing wang:
直接输入:ip link set can1 up type can bitrate 50000 设置波特率
user5906137:
谢谢
yongqing wang:
回复 yongqing wang:
打开can:ip link set can1 up
再用回环测试一下:ip link set can0 up type can bitrate 50000 loopback on
user5864452:
回复 yongqing wang:
我执行完发送数据的应用程序后,用cat /proc/net/dev查看,can1中有相应的数据的字节数,是不是can1就可以用了呢
root@arm:/tmp# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 eth0: 117754 1365 0 0 0 0 0 0 10955 116 0 0 0 0 0 0 eth1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 usb0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 usb1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 can0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 can1: 24 3 0 0 0 0 0 0 0 0 0
user5864452:
回复 yongqing wang:
root@arm:~# ip link set can1 type can bitrate 50000 triple-sampling on
RTNETLINK answers: Operation not supported
这个错误会影响can的使用吗
user5864452:
回复 yongqing wang:
root@arm:~# ip link set can1 type can bitrate 50000 triple-sampling on
RTNETLINK answers: Operation not supported
这个错误会影响can的使用吗
yongqing wang:
回复 user5864452:
是的
yongqing wang:
回复 user5864452:
不影响使用