首页 > 解决方案 > Beaglebone 黑色 CAN 消息发送问题

问题描述

当 CAN 处于 ERROR-ACTIVE 状态时,我能够成功接收 CAN 消息。

2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
    link/can  promiscuity 0 
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 
      bitrate 500000 sample-point 0.875 
      tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
      c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
      clock 24000000
      re-started bus-errors arbit-lost error-warn error-pass bus-off
      7          0          0          10         16         7         numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
    RX: bytes  packets  errors  dropped overrun mcast   
    19321178   2661559  6       0       6       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    0          0        0       11      0       0       

但是当我尝试使用 发送数据时cansend 280#22F18C,它显示 BUS-OFF。

2: can0: <NO-CARRIER,NOARP,UP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0 
    can state BUS-OFF (berr-counter tx 248 rx 0) restart-ms 0 
      bitrate 500000 sample-point 0.875 
      tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
      c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
      clock 24000000
      re-started bus-errors arbit-lost error-warn error-pass bus-off
      7          0          0          11         17         8         numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
    RX: bytes  packets  errors  dropped overrun mcast   
    20884231   2876864  6       0       6       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    0          0        0       11      0       0       

我正在使用收发器从另一个节点接收消息,但无法发送消息。

标签: linuxbeagleboneblackcan-bus

解决方案


推荐阅读