当前位置:网站首页>I.MX6UL核心模块使用连载-RS485测试 (十)
I.MX6UL核心模块使用连载-RS485测试 (十)
2022-07-26 01:58:00 【szembed】
以下内容已经在Iot-6ULX/EVB-6ULX平台上验证通过,Iot-6ULX/EVB-6ULX介绍如下:

9. RS485测试
开发板上搭载了2路RS485复用串口。测试RS485串口,我们使用USB到RS485/RS422转换器UT-890进行测试。接线示意图如下:

RS485转接线连接示意图
开始测试之前,确认开发板上对应跳线座已经正确短接。


COM2 RS485测试跳线短接示意图


COM3 RS485测试跳线短接示意图
在PC端,打开串口调试小助手,设置说明如下图所示。

串口助手参数设置
在终端里面执行以下指令,执行脚本测试串口,测试过程按“Ctrl+c”终止测试指令:
[email protected] ~# ./tty_test -d /dev/ttymxc1 -m 1 -b 115200 -l -w "ttymxc1" //执行目录下的tty_test程序测试设备ttymxc1(COM2),测试参数为波特率115200,发送数据内容是ttymxc1。
在终端执行测试命令之后,可以在串口小助手上勾选自动发送,或者选择手动发送数据。查看终端和串口助手的收发数据是否一致。

终端测试信息
通过修改测试命令中的设备序号,更换转接线连接位置,就可以测试另外一个RS485串口,以下是开发板上RS485串口对应的设备名称以及测试指令。
表4-1 RS485串口测试指令说明
串口编码 | 设备号 | 测试指令 |
COM2 | ttymxc1 | ./tty_test -d /dev/ttymxc1 -m 1 -b 115200 -l -w "ttymxc1" |
COM3 | ttymxc2 | ./tty_test -d /dev/ttymxc2 -m 1 -b 115200 -l -w "ttymxc2" |
边栏推荐
- 登堂入室soc之编程基础环境变量设置
- Worthington nuclease and Micrococcus related research and determination scheme
- pt-onnx-ncnn转换的问题记录(接yolov5训练)
- mysql 事务隔离级别
- Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
- MPLS knowledge points
- Composition API的优势
- 保护系统日志服务器和设备
- 一种MCU事件型驱动C框架
- 还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢
猜你喜欢

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

SQLyog数据导入导出图文教程

Maximum side length of elements and squares less than or equal to the threshold (source: leetcode)

保护系统日志服务器和设备

SQL manual blind injection and error reporting injection

C# 迭代器的实现

【2021】【论文笔记】6G技术愿景——OTFS调制技术
![[Verilog digital system design (Xia Yuwen) 4 ----- basic concepts of Verilog syntax 2]](/img/fe/746ecaf4123072cca59d7510e9796c.png)
[Verilog digital system design (Xia Yuwen) 4 ----- basic concepts of Verilog syntax 2]

SVN version control branch and merge function use

flutter 下 grpc list没有Setter 方法 ,如何使用相关属性
随机推荐
HTC手机官解、S-ON/S-OFF与超级CID的关系
学习笔记:原码, 反码, 补码
[independent station construction] Shopify seller: learn these points and double the sales volume of online stores!
推荐系统-协同过滤在Spark中的实现
【深入浅出玩转FPGA学习11----Testbench书写技巧1】
AutoCAD -- Method of calculating area
The slow loading of the first entry page of vite local operation
转:高效做正确的事
Qt程序美化之样式表的使用方法,Qt使用图片作为背景与控件透明化,Qt自定义按钮样式
大佬们, flinksql datahub源表,源表有字段 timestamp 16位, 写入Ora
Worthington核酸酶、微球菌相关研究及测定方案
D. Permutation restoration (greedy + double pointer)
mysql 事务隔离级别
proto转换Dart | 项目使用Protobuf | flutter 使用grpc
SVN版本控制分支、合并功能使用
# Dest0g3 520迎新赛(更新中)
Worthington nuclease and Micrococcus related research and determination scheme
登堂入室soc之arm汇编基础
Dataframe modifies the value of a row or column position
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
