摘要
针对RS485、CAN传感器数据传输方式单一的问题,设计了一种多协议数据转换网关。网关以STM32为核心,外围搭建多种通信接口电路,并建立数据缓存机制以实现RS485、CAN传感器与RS232、以太网、LoRa之间的数据传输。在RS485、CAN称重传感器与上位机的通信实验中,网关能及时准确地将传感器数据通过3种通信接口发送到上位机,验证了设计的可行性,解决了2类传感器数据传输渠道单一的问题。
Aiming at the problem of single data transmission mode of RS485 and CAN sensors,a multi-protocol data conversion gateway was designed.The gateway took STM32 as the core,a variety of communication interface circuits was built around it,and a data caching mechanism was established to realize data conversion between RS485 and CAN sensors and RS232,Ethernet and LoRa.In the communication experiment between RS485 and CAN weighing sensors and the host computer,the gateway can timely and accurately send data of sensor to the host computer through three communication interfaces,which verifies the feasibility of the design and solves the problem of single data transmission channel for the two types of sensors.
作者
谭诚刚
许焕敏
傅强
TAN Chenggang;XU Huanmin;FU Qiang(School of Mechanical and Electrical Engineering,Hohai University)
出处
《仪表技术与传感器》
CSCD
北大核心
2024年第1期70-75,共6页
Instrument Technique and Sensor