飞腾平台Can总线验证方法

飞腾平台Can总线验证方法

介绍飞腾平台下如何验证与使用can总线的方法

验证环境:D2000平台、 CAN协议分析仪

1 安装can命令

apt-get update && apt-get install git   

cd /tmp   

git clone https://github.com/linux-can/can-utils.git   

cd can-utils/   

make   

make install

2 can 接口验证方法

1. 先配置复用寄存器为CAN0CAN1CAN2总线功能

 

2. 设置总线波特率,并开启CAN总线

 

3. 飞腾CAN0接收数据,CAN分析仪CAN1发送数据

系统下使用Canutils软件测试CAN总线,接收数据时执行./candump can0指令

4. 飞腾CAN0发送数据,CAN分析仪CAN1接收数据

系统下使用Canutils软件测试CAN总线,接收数据时执行./candump can0指令

 

 

1. 飞腾CAN0发送数据,CAN分析仪CAN1接收数据

系统下使用Canutils软件测试CAN总线,接收数据时执行./candump can0指令