According to the demand for expanding UART interfaces in simulation experiment of UAV flight control system, the communication between four UART interfaces and Ethernet is accomplished based on LPC1768 host processor, and receiving function contains three intelligent communication modes, which is frame head and frame length mode, frame head and frame tail mode and frame length and frame tail mode. The design of software implements UDP communication in RL-ARM real time library. The result indicates that the system not only has the feature of real-time communication of serial port, but also low-cost implemention and steady operation of Ethernet.%针对无人机飞控系统半物理仿真实验中需要对串口进行扩展的问题,系统采用主控制器LPC1768设计了基于以太网方式的串口扩展,完成了4个串口与以太网之间的双向通信,且串口接收支持帧头+帧长、帧头+帧尾和帧长+帧尾3神智能通信方式.软件设计中利用RL-ARM实时库实现了与PC之间的UDP协议通信.结果表明,采用此方案可以使系统具有实时、可靠和成本低的特点.
展开▼