EVO ONO RS485使用说明#

RS485接口使用说明#

接口引脚定义#

引脚序号

信号定义

11

RS485_1  A

12

RS485_1  B

13

GND

14

RS485_2  A

15

RS485_2  B

功能及节点对应关系#

功能

节点号

RS485_1

ttyUART_485_1

RS485_1

ttyUART_485_2

使用方法#

准备工作#

PC端(Ubuntu系统)

#安装
sudo apt-get install putty -y

设备端

#安装
sudo apt-get install putty -y

收发验证#

设备端

#打开putty
sudo putty

打开putty后,在”Session“中进行参数配置,需要在”Serial line“中输入连接的设备节点,在”Speed“中设置为115200,选择“Connection type”中选择“Serial”

在”Terminal“中进行参数配置,在“Line discipline options”中选择“Force on”,之后点击“Open”,进入到数据传输界面

PC端

PC端UART设备节点获取

#PC端接入USB转串口模块后,执行命令,输出结果为UART设备节点:
ls /dev | grep -E 'ttyUSB[0-9]+' | sort -V | tail -n 1

#打开putty
sudo putty

打开putty后,在”Session“中进行参数配置,需要在”Serial line“中输入连接的设备节点,在”Speed“中设置为115200,选择“Connection type”中选择“Serial”

在”Terminal“中进行参数配置,在“Line discipline options”中选择“Force on”,之后点击“Open”,进入到数据传输界面

使用putty判断收发是否成功

观察设备端和PC端的传输界面,在任意一个界面中输入任何信息,两个界面显示同样内容即意味着收发成功

PC端显示

设备端显示