Difference between revisions of "Loopback"

From ESS-WIKI
Jump to: navigation, search
(Connect CAN0 and CAN1)
Line 1: Line 1:
  
=== '''Connect CAN0 and CAN1''' ===
+
 
 +
=== '''Connect CAN0 and CAN1'''(需将patch植入) ===
 +
 
 +
'''RK3568不支持CAN-FD功能,参考[https://pan.baidu.com/s/15CA4Q7kIHgLwHhhtPkzHOg?pwd=a887 Errata](提取码:a887),变更为CAN2.0功能。'''
  
 
== '''架设环境:''' ==
 
== '''架设环境:''' ==

Revision as of 08:53, 17 May 2024


Connect CAN0 and CAN1(需将patch植入)

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

架设环境:

将CAN0与CAN1接口短接

CAN_D0+——>CAN1_D+

CAN_D-——>CAN1_D-

如下图

RSB-4810 CAN2.0 Connector.png

输入指令:

  1. ip link set can0 down
  1. ip link set can0 type can bitrate 1000000
  1. ip link set can0 up
  1. ip -details link show can0
  1. candump can0 &
  1. ip link set can1 down
  1. ip link set can1 type can bitrate 1000000
  1. ip link set can1 up
  1. ip -details link show can1
  1. cansend can1 123#55

RTENOTITLE