当前位置:网站首页>1. Mx6ul core module uses serial can and buzzer test (XI)
1. Mx6ul core module uses serial can and buzzer test (XI)
2022-07-26 02:02:00 【szembed】
The following is already in Iot-6ULX/EVB-6ULX The verification on the platform passed ,Iot-6ULX/EVB-6ULX Introduce the following :


10. CAN test
The development board is equipped with 1 road CAN Interface . test CAN Interface , Need to use CAN Test equipment , Realize data communication between development board and test equipment .
During the test, we use CAN Test module USBCAN-II To test . The connection diagram is as follows :

CAN Test port wiring diagram
Before you start testing , Confirm that the corresponding jumper base on the development board has been correctly shorted .


CAN Schematic diagram of test jumper short circuit
open CANTest Testing tools , According to the connection in USBCAN-II Select the corresponding channel for the interface on , Then confirm and start CANTest.

CAN Test tool channel selection
Set by command in the terminal CAN Baud rate of the interface :
[email protected] ~# ip link set can0 down // close can0
[email protected] ~# ip link set can0 type can bitrate 50000 // Set up can0 The baud rate is 50kbps
[email protected] ~# ip link set can0 up // open can0
[email protected] ~# ifconfig // see can0 Whether the device is turned on

Set up CAN Interface baud rate
After setting up , Send data to CANTest Tools , Check whether the data can be received correctly :
for ((i = 1;$i <= 100; i++)) ;do cansend can0 01a#11223344AABBCCDD; cansend can0 1F334455#1122334455667788; done // Send frames circularly ID by 01a, The data is 11223344AABBCCDD, frame ID by 1F334455, The data is 1122334455667788, various 100 frame

Terminal test instructions

CANTest Receiving data display
Set by command can0 The interface receives data , from CANTest Send data to the development board , View on terminal can0 Whether the data is received correctly :
[email protected] ~# candump can0 & // receive can0 data

Terminal test instructions
After the terminal inputs the command , stay CANTest After the test tool operation panel sets the data to be sent , Click Send , Check whether the terminal can receive data .

CANTest send data

The terminal receives data and displays
11. Buzzer test
EVB-6ULX The development board is equipped with 1 A buzzer , Execute the following command to turn on or off the buzzer for testing :
[email protected] ~# echo 129 > /sys/class/gpio/export // establish GPIO129 node
[email protected] ~# echo out > /sys/class/gpio/gpio129/direction // Set up IO The direction is output
[email protected] ~# echo 1 > /sys/class/gpio/gpio129/value //IO The output is high , Turn on the buzzer
[email protected] ~# echo 0 > /sys/class/gpio/gpio129/value //IO The output is low , Turn off the buzzer

Terminal test instructions
边栏推荐
- flink sql 如何配置打印insert实参日志呢
- G. Count the trains (thought set + two points)
- There is no setter method in grpc list under flutter. How to use related attributes
- What is the difference between for... In... And for... Of
- AUTOCAD——计算面积的方法
- 【深入浅出玩转FPGA学习11----Testbench书写技巧2】
- mysql 事务隔离级别
- Why does the debugger display the wrong function
- Leetcode/ numbers that appear only once
- Leetcode algorithm 147. insert and sort the linked list
猜你喜欢

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"

I.MX6UL核心模块使用连载-USB接口测试 (六)

Composition API的优势

BGP知识点总结
![[leetcode] 32. Longest valid bracket](/img/5e/45bb0b1ca3d9e429c6c5cf5c4c93ae.png)
[leetcode] 32. Longest valid bracket

【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——

AUTOCAD——计算面积的方法

vite 本地运行首次进入页面加载慢问题

IDEA如何快速删除最近打开的项目

I.MX6UL核心模块使用连载-查看系统信息 (二)
随机推荐
Pt onnx ncnn conversion problem record (followed by yolov5 training)
G. Count the trains (thought set + two points)
Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
Software group verification
怎么使用宝塔面板把node全栈项目部署到服务器上
Relationship between HTC mobile official solution, s-on/s-off and super CID
I.MX6UL核心模块使用连载-RS485测试 (十)
Arm assembly foundation of SOC
How to install opengauss manually (non om mode)
[paper reading] coat: CO scale conv attentional image transformers
E. OpenStreetMap (2D monotone queue)
Add an interceptor to resttemplate to record the request response, and you also need to solve the problem that the flow is read only once
一种MCU事件型驱动C框架
Turn: do the right thing efficiently
登堂入室soc之编程基础环境变量设置
Phoenix中常用shell操作
F. Equal multisets (greedy)
My Mysql to MySQL data table synchronization, only the code written in the first order will take effect, and the rest will not take effect. This may be
[C language brush leetcode] 146. LRU cache (m)
CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"