Difference between revisions of "CAN(ROM-5880)"
From ESS-WIKI
Xingxing.li (talk | contribs) |
Xingxing.li (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | === '''CAN2.0—请移植相应Patch''' === | |
− | === '''CAN2. | ||
'''可参考[https://pan.baidu.com/s/15CA4Q7kIHgLwHhhtPkzHOg?pwd=a887 Errata]文件,提取码:a887''' | '''可参考[https://pan.baidu.com/s/15CA4Q7kIHgLwHhhtPkzHOg?pwd=a887 Errata]文件,提取码:a887''' | ||
Line 14: | Line 13: | ||
'''[[File:SOM-DB2510 CAN0 1.PNG|RTENOTITLE]]''' | '''[[File:SOM-DB2510 CAN0 1.PNG|RTENOTITLE]]''' | ||
+ | |||
+ | '''测试CAN2.0功能指令:''' | ||
+ | <pre># ip link set can0 down | ||
+ | # ip link set can0 type can bitrate 1000000 | ||
+ | # ip link set can0 up | ||
+ | # ip -details link show can0 | ||
+ | # candump can0 & | ||
+ | # ip link set can1 down | ||
+ | # ip link set can1 type can bitrate 1000000 | ||
+ | # ip link set can1 up | ||
+ | # ip -details link show can1 | ||
+ | # cansend can1 123#55 | ||
+ | </pre> | ||
+ | |||
+ | [[File:ROM-5880 CAN2.0 loopback.png|1000x800px]] |
Revision as of 08:49, 4 June 2024
CAN2.0—请移植相应Patch
可参考Errata文件,提取码:a887
Connect CAN0 and CAN1.(SOM-DB2510 HW Connector:CAN0_1)
Short CAN0_1 Pin header ,Loopback test for example:
CAN0 PIN4->CAN1 PIN14
CAN0 PIN3->CAN1 PIN13
测试CAN2.0功能指令:
# ip link set can0 down # ip link set can0 type can bitrate 1000000 # ip link set can0 up # ip -details link show can0 # candump can0 & # ip link set can1 down # ip link set can1 type can bitrate 1000000 # ip link set can1 up # ip -details link show can1 # cansend can1 123#55