摘要
网络化是当前自动控制系统发展的重要趋势,针对现有基于串口通信的系统无法与远程网络实现互联的问题,提出了一种多串口-以太网转换器设计方案。以W5100为以太网控制器,选用STM32F101R8单片机作为主控制器,采用直接总线通讯方式实现W5100与单片机之间的高速通信,可实现多个RS485串口设备的以太网接入。阐述了以太网转换器电路设计原理、数据收发实现流程与网络连接技术。采用CRC冗余校验和数据流流向编码技术,有效地保证了转换器的实时性,提高了数据转发的准确性。研究结果表明,该方案能延伸数据通信距离,节省现有系统更新换代的成本。
Currently,networking is an important tendency in the development of automatic control systems.Aiming at the fact that some systems based on serial communication can not be connected to each other through Internet,a kind of design from serial ports to Ethernet is successfully proposed.W5100 is used as a Ethernet controller and the single-chip microcomputer STM32F101R8 is used as the main controller.Between the W5100 and STM32F101R8,high-speed communication was realized by using the communication technology of direct bus.As a result,it can achieve the Ethernet access of the RS485 serial ports well.The circuit design principles of Ethernet converter,the process of data transceiver and the technology of connecting Internet was mainly described.CRC redundancy check and data coding are applied,improving not only the accuracy but also the speed of the data forwarding.
出处
《工业控制计算机》
2014年第11期87-89,共3页
Industrial Control Computer