摘要
针对轻量型LwIP协议栈开源包具有的工业以太网传输功能,应用于嵌入式开发产品中。该产品通过以太网总线和web server和机器人等外围设备通信,但是无法满足总线和web server同时具有稳定性的工业应用需求。提出了一种适用于该产品的基于STM32单片机的资源调度系统,首先对LwIP开源代码进行了改进,针对TCP和HTTP的资源,分别对以太网接收数据、发送数据两个进程进行合理调度,并构建了以STM32单片机为核心的硬件控制系统和软件程序。通过对该控制系统的研究和测试发现,优化后的LwIP架构有效地解决了工业以太网总线和web server资源冲突的问题。
Used in the embedded development product,the lightweight LwIP protocol stack has industrial Ethernet transmission function.The embedded product communicates with industrial robot or other peripheral device though Ethernet bus and web server.In term of stability,it cannot meet the industrial application requirement.In order to solve this problem,combine with STM32 micro-controller,this paper designs a resource scheduling system.Firstly,this system improves the LwIP open source code.According to the data pack of TCP and HTTP,we process the two processes of Ethernet receiving data and sending data reasonably,and then construct the hardware control system and software program with STM32 as the core.Through study and test for this control system found that we solved the problem of resource conflicts between industrial Ethernet and web server after optimized lwip open source package.
作者
孙川淳
SUN Chuan-chun(Shanghai ABB Engineering Co.,Ltd.,Shanghai 200120,China)
出处
《电子设计工程》
2019年第3期159-163,168,共6页
Electronic Design Engineering