chen_chuang 发表于 2014-6-25 13:11:37

ifconfig can0 up时出错

各位大牛,我打开 ifconfig can0 up时, 出现错误:flexcan imx6q-flexcan.0: bit-timing not yet defined ifconfig: SIOCSIFFLAGS: Invalid argument。从错误信息来看,好像意思是波特率没有设置。
然后我用ip 命令设置波特率:ip link set can0 type can bitrate 250000 但是出现了错误信息:
ip: either "dev" is duplicate, or "type" is garbage。不知道怎么打开can0节点了,求指导

Calvin 发表于 2014-6-25 15:33:52

没弄过,需要自己研究了

chen_chuang 发表于 2014-6-25 16:23:47

顶顶,求大神

chen_chuang 发表于 2014-6-26 08:39:04

没人吗,一直在线等ing。。。

63king 发表于 2014-8-21 11:56:27

chen_chuang 发表于 2014-6-26 08:39
没人吗,一直在线等ing。。。

hi,楼主,问题解决了吗,
和你遇到了一样的问题,也是困扰了很久,不知道您有没有找到解决方法

goaha 发表于 2017-3-8 18:14:42

我也遇到同样问题,谁解决了,请说一下

support_jk 发表于 2017-3-17 14:51:15

试试下面的命令
ifconfig can0 down
ip link set can0 type can bitrate 100000 triple-sampling on
ifconfig can0 up

接收:
candump can0

发送:
cansend can0 123#DEADBEEF
页: [1]
查看完整版本: ifconfig can0 up时出错