针对城市道路交通控制系统中大容量主数据流的实时传输和重要状态信息与控制指令可靠传输的需求,采用基于μC/OS-Ⅱ实时操作系统和LwIP协议栈的嵌入式以太网接口的设计方法,构建了满足系统数据实时传输和可靠传输的以太网结构;系统硬件采用DSP和以太网控制器CS8900A,通过驱动程序设计和协议栈的移植,实现UDP和TCP对主数据流和状态信息与指令的传输,并通过上位机界面进行远程监控;该设计方案在实际的原型系统实验中有较好的实时性和稳定性,满足城市道路交通控制系统的需求。
For the damand of real--time transmission for main large--capacity data and reliable transmission for important information in road traffic control system, the method based on μC/OS-Ⅱ and LwIP is presented to design embedded Ethernet interface and build the structure of ethernet transmission. DSP and Ethernet controller CS8900A is adopted in the system. Through the driver stack design and transplant protocol, the transmission function of UDP and TCP is implemented and the traffic state is monitored with the upper computer. The experi- ment results of the prototype system validate that the proposed method can satisfy the requirements of data transmission.