2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10 link/can can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 bitrate 1000000 sample-point 0.750 tq 83 prop-seg 4 phase-seg1 4 phase-seg2 3 sjw 1 c_can: tseg1 2..16 tseg2 1..8 s...
为什么我的CAN应用程序经常进入Bus Off State (总线关闭状态)?解决方案由于看到的错误数量过多,您的CAN可能处于"Bus Off State"。如果“Transmit Error Counter”大于255,则CAN接口将转换为该状态。在必须将CAN接口与其他设备隔离的前提下,通信立即停止。当CAN接口转换为总线关闭状态时,该接口的通信将停止。接口的所有...
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) nvidia@tegra-ubuntu:~$ sudo cansend can0 123#abcdabcd nvidia@tegra-ubuntu:~$ ifconfig can0 Link encap:UNSP...
can state BUS-OFF (berr-counter tx 0 rx 0) restart-ms 0 bitrate 250000 sample-point 0.866 ...
8: can0:<NOARP,UP,LOWER_UP,ECHO>mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10 link/can promiscuity 0 can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 5000 bitrate 498701 sample-point 0.870
can state STOPPED restart-ms 0 bitrate 1000000 sample-point 0.750 tq 125 prop-seg 2 phase-seg1 3 phase-seg2 2 sjw 1 mcp251x: tseg1 3..16 tseg2 2..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000 re-started bus-errors arbit-lost error-warn error-pass bus-off ...
root@TQMa335x:~/can-bus ./ip -det -stat link show can1 3: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP qlen 10 link/can can <LOOPBACK> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 100
CAN <BERR-reporting,FD> state error-active (错误计数器TX 0 Rx 0) restart-ms 0 比特率50万采样点0.875 TQ 25 pro-seg 34 phase seg1 35 phase seg2 10 SJW 1. mttcan:tseg1 2..255 tseg2 0..127 SJW 1...127 BRP 1..511 BRP-inc 1. ...
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 bitrate 500000 sample-point 0.866 tq 133 prop-seg 6 phase-seg1 6 phase-seg2 2 sjw 1 flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1 clock 30000000 ...
bus_off /* Changes to bus off state */ arbitration_lost /* Arbitration lost errors */ restarts /* CAN controller re-starts */ The function returns CAN_ERR_NONE on success, error code otherwise int ldx_can_get_bit_error_counter(can_if_t *cif, struct can_berr_counter *bc) Retriev...