Difference between revisions of "CAN(ROM-5880)"

From ESS-WIKI
Jump to: navigation, search
(Created page with " '''Connect CAN0 and CAN1.(SOM-DB2510 HW Connector:CAN0_1)''' Short CAN0_1 Pin header ,Loopback test for example:   <span style="display: none;"> <...")
 
Line 3: Line 3:
  
 
Short CAN0_1 Pin header&nbsp;,Loopback test for example:
 
Short CAN0_1 Pin header&nbsp;,Loopback test for example:
 
&nbsp;
 
 
<span style="display: none;">&nbsp;</span><span style="display: none;">&nbsp;</span>&nbsp;
 
  
 
'''CAN0 PIN4->CAN1 PIN14'''
 
'''CAN0 PIN4->CAN1 PIN14'''
Line 12: Line 8:
 
'''CAN0 PIN3->CAN1 PIN13'''
 
'''CAN0 PIN3->CAN1 PIN13'''
  
'''[[File:SOM-DB2510 CAN0 1.PNG]]'''
+
'''[[File:SOM-DB2510 CAN0 1.PNG|RTENOTITLE]]'''
 
<pre># ip link set can0 down
 
<pre># ip link set can0 down
 
# ip link set can0 type can bitrate 1000000 dbitrate 8000000 fd on
 
# ip link set can0 type can bitrate 1000000 dbitrate 8000000 fd on
Line 27: Line 23:
 
<pre>can0 123 [01] 55</pre>
 
<pre>can0 123 [01] 55</pre>
  
[[File:ROM-5880 CAN loopback.png]]
+
[[File:ROM-5880 CAN loopback.png|RTENOTITLE]]

Revision as of 04:59, 5 December 2023

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

RTENOTITLE

# ip link set can0 down
# ip link set can0 type can bitrate 1000000 dbitrate 8000000 fd on
# 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 dbitrate 8000000 fd on
# ip link set can1 up
# ip -details link show can1
cansend can1 123##155

If there is no error, can0 will receive like the following:

can0 123 [01] 55

RTENOTITLE