摘要
为满足以太网与CAN总线网络的互联,设计了一种以LPC2294为控制芯片,嵌入式μC/OS-II为操作系统的网关模块,实现了以太网协议与CAN总线协议的相互转换。给出了网关模块的软硬件设计,重点阐述了网关模块使用的自定义UDP报文结构,该报文结构可提供更多的管理信息,有利于网络的管理。测试表明设计的网关模块具有一定的实用性和可靠性。
In order to meet the interconnection need of Ethernet and CAN bus network, a gateway module based on the LPC2294 controller chip and embedded μC/OS-Ⅱ operating system is designed, which realizes the pro- tocol conversion between Ethernet and CAN bus. The paper introduces the hardware and software design in detail with emphasis on the custom UDP packet structure the gateway module uses. The packet structure can provide more management information, and is conducive to the management of the network. The tests show that the design of mod- ule has good practicality and reliability.
出处
《电子科技》
2013年第6期140-144,共5页
Electronic Science and Technology
关键词
CAN
以太网
协议转换
嵌入式
CAN bus
ethernet
protocol conversion
embedded system