摘要
指出了在网络型触摸式电脑横机控制终端中实现以太网接口的必要性。根据电脑横机的技术要求,选择S3C44B0X作为主控芯片,RTL8019AS作为以太网接口控制芯片,设计了控制终端以太网接口硬件电路。给出了uIP协议栈在S3C44B0X上的移植方案,对数据包的接收模式和数据包的校验进行了改进,增加了实现UDP调用的宏UIP_UDP_APPCALL(),构建了基于S3C44B0X的以太网接口。最后,给出了应用程序中使用uIP协议栈进行TCP、UDP通信的方法。
It shows the importance of Ethernet interface of computer control network touching flat knitting machine.Based on the technical request of computer control network touching flat knitting machine,it selects S3C44B0X as master control chip and RTL8019AS as Ethernet interface chip,designs the hardware circuits of control terminal.It uses TCP/IP protocol stack uIP to link the platform of S3C44B0X and builds the Ethernet interface.In the porting process,it improves the packet receiving mode and packet checksum algorithm,puts forward a macro named UIP_UDP_APPCALL() to implement UDP communication.It introduces the method of uIP communication with other hosts via TCP,UDP protocol.
基金
江苏省高校科研成果产业化推进项目(JHZD08-12)
关键词
电脑横机
嵌入式系统
以太网
TCP/IP协议栈
Computerized Flat Knitting Machine
Embedded System
Ethernet
TCP/IP Protocol Stack