摘要
本文从硬件设计、软件架构设计和采用状态机设计的热插拔网络处理任务三个方面描述了一种基于LwIP的热插拔网络嵌入式设计与实现。网络处理任务通过查询连接状态的方式,采用状态机设计了热插拔网络子任务,实现了动态申请和释放内存,并在确保网络可靠连接下进行UDP通信,同时提出了两种软件优化方式,减少断线重连等待对后台系统任务轮询的占用。
In the paper,an embedded design and implementation of hot-swap network without OS based on LwIP is described from hardware design,software architecture design and hot-swap network task using FSM.The network processing task uses FSM to achieve hot-swap function by querying the link status,which realizes dynamically request-release memory and communicate in UDP with reliable network link.Otherwise,two software optimization methods are proposed to reduce the latency of network reconnection to the system task polling.
作者
马亚辉
吴凡
李林
何斌
Ma Yahui;Wu Fan;Li Lin;He Bin(Chengdu Rongwei Electronic Technology Co.,Ltd.,Chengdu 610031,China)
出处
《单片机与嵌入式系统应用》
2020年第4期10-13,17,共5页
Microcontrollers & Embedded Systems