Beaglebone黑色CAN消息发送问题

时间:2018-11-14 05:51:55

标签: linux beagleboneblack can-bus

当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       

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

0 个答案:

没有答案