摘要
针对嵌入式系统低成本以太网通信的需求提出将lw IP开源协议栈移入μC/OS系统,构成一种双网口通信方案。操作系统模拟层所用内部邮箱与信号量使用专属内存块。应用层设计成连接层和规约层,连接层循环遍历所有处于稳定状态的TCP连接,规约层负责解析上层应用规约。实验结果表明,应用此方案的系统能够实现可靠的以太网通信需求。
Aiming at the requirement of low cost Ethernet communication of embedded system, we propose to move the open source protocol stack lwlP into μC/OS system to construct a dual network interface communication scheme. The inner mailbox and semaphore of operating system emulation layer is designed to use the exclusive memory block. The application layer is designed as the connecting layer and the protocol layer. The connecting layer loops through all the stable TCP connections. The protocol layer is responsible for parsing the upper application protocol. Experimental results show that the application of this scheme can achieve reliable Ethernet communication needs.
出处
《计算机应用与软件》
CSCD
2016年第9期127-129,198,共4页
Computer Applications and Software