Difference between revisions of "Loopback"

From ESS-WIKI
Jump to: navigation, search
(Created page with " === '''Connect CAN0 and CAN1''' === == '''架设环境:''' == '''将CAN0与CAN1接口对接,如下图''':   '''输入指令:''' ip link set can0 down ip li...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=== '''Connect CAN0 and CAN1''' ===
 
 
== '''架设环境:''' ==
 
 
'''将CAN0与CAN1接口对接,如下图''':
 
  
 
 
 
 
  
'''输入指令:'''
 
  
ip link set can0 down
+
=== '''Connect CAN0 and CAN1 ''''''('''''<b>基于Debian11&nbsp;DIV130311版本,植入CAN2.0相关patch</b>)'' ===
  
ip link set can0 type can bitrate 1000000 dbitrate 8000000 fd on
+
=== '''RK3568不支持CAN-FD功能,参考[https://pan.baidu.com/s/15CA4Q7kIHgLwHhhtPkzHOg?pwd=a887 Errata](提取码:a887),变更为CAN2.0功能。''' ===
  
ip link set can0 up
+
== '''架设环境:''' ==
 
 
ip-details link show can0
 
  
candump can0 &
+
'''将CAN0与CAN1接口短接'''
  
&nbsp;
+
'''CAN_D0+——>CAN1_D+'''
  
ip link set can1 down
+
'''CAN_D-——>CAN1_D-'''
  
ip link set can1 type can bitrate 1000000 dbitrate 8000000 fd on
+
'''如下图''':
  
ip link set can1 up
+
[[File:RSB-4810 CAN2.0 Connector.png|RTENOTITLE]]
  
ip details link show can1
+
'''输入指令:'''
 
+
<pre># ip link set can0 down
&nbsp;
+
# ip link set can0 type can bitrate 1000000
 
+
# ip link set can0 up
cansend can1 123##155
+
# ip -details link show can0
 
+
# candump can0 &
cansend can1 123##155
+
# ip link set can1 down
 
+
# ip link set can1 type can bitrate 1000000
cansend can1 123##155
+
# ip link set can1 up
 
+
# ip -details link show can1
cansend can1 123##155
+
# cansend can1 123#55
 
+
can0 &nbsp;123 &nbsp; [1] &nbsp;55
cansend can1 123##155
+
</pre>
 
 
cansend can1 123##155
 
 
 
cansend can1 123##155
 
  
<span lang="EN-US" style="font-size:10.5pt"><span style="font-family:等线">cansend can1 123##155</span></span>
+
[[File:RSB-4810 Debain11 CAN2.0.png]]​​​​​​​

Latest revision as of 10:59, 17 May 2024

 


'Connect CAN0 and CAN1 '(基于Debian11 DIV130311版本,植入CAN2.0相关patch

RK3568不支持CAN-FD功能,参考Errata(提取码:a887),变更为CAN2.0功能。

架设环境:

将CAN0与CAN1接口短接

CAN_D0+——>CAN1_D+

CAN_D-——>CAN1_D-

如下图

RTENOTITLE

输入指令:

# 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
can0  123   [1]  55

RSB-4810 Debain11 CAN2.0.png​​​​​​​