linux - 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
我正在使用收发器从另一个节点接收消息,但无法发送消息。
解决方案
推荐阅读
- firebase - 如果提供了特定字段,则 Firestore 允许列表
- optimization - 在 Julia 中模拟退火和 SAMIN()?
- python - Numpy 库无法在 Pycharm 中解析
- javascript - Python Selenium:execute_script 是否能够等待 javascript 内容加载?
- c# - Telerik Grid,详细视图 - 如何指定路线值
- python - 如何从 databricks 显示和下载 pptx 文件?
- java - 将 YYYY-MM-DDThh:mm:ssTZD 格式日期字符串转换为本地时间
- sql-server - 数据仓库:找出 sql server 表的哪些行发生了变化,以方便数据仓库
- sql - Oracle 中枢轴的中位数
- regex - 使用正则表达式确定用户是否有两对扑克手