摘要
针对核工业现场传感器数量多、传输距离远、对实时性和稳定性要求高、集中化管理手段缺乏、无法接入网络等问题,本文设计并实现了串口转CAN总线集中化管理系统,将核辐射数据封装成帧再转以太网联网传输。系统以STM32F103处理器为核心,将不同辐射数据接收放入三级FIFO邮箱中,通过轮询方式读取FIFO中的数据并进行封装,将封装好的数据帧放入环形缓冲区,最后通过移植LwIP轻量级协议栈系统的网口传输到上位机。测试CAN总线上3个设备节点的工作情况,结果表明,系统稳定、无误码,符合设计要求。
Aiming at the problems of a large number of field sensors in the nuclear industry,long transmission distance,high requirements for real-time and stability,lack of centralized management means and inability to access the network,this paper designs and implements a centralized management system from serial port to can bus,which encapsulates the nuclear radiation data into frames and then transfers them to Ethernet for network transmission.With STM32F103 processor as the core,the system receives different radiation data into the three-stage FIFO mailbox,reads the data in FIFO through polling and encapsulates,puts the encapsulated data frame into the ring buffer,and finally transmits to the upper computer through the network port of the system that transits LwIP lightweight protocol stack.After testing the operation of three device nodes on CAN bus,the results show that the system is stable without error code and meets the design requirements.
作者
曾骏
谷伟
吴昌成
杜志恒
Zeng Jun;Gu Wei;Wu Changcheng;Du Zhiheng(College of Information Engineering,East China University of Technology,Nanchang 330013,China;Big Data Technology Engineering Laboratory of Radiogeology;Jiangxi Institute of Nuclear and Geoscience Data Science and Systems Engineering Technology)
出处
《单片机与嵌入式系统应用》
2022年第6期57-60,共4页
Microcontrollers & Embedded Systems
基金
江西省东华理工大学省级研究生创新基金(YC2021 S646)资助。