With the rapid development of networking technology, the network has become an important channel of information. How to connect these different protocol standards such as serial devices, bus-type equipment and Ethernet is very important. The switch involved in this paper can achieve remote control and remote data transmission between these protocol.This multi-protocol switch can not only retain the original old equipment, but also make them interconnected to exchange data. This content is mainly accomplished multi-protocol switch modules including user profile management module, the device state management module and the design and implementation of a general description of the concept and characteristics of embedded systems, Linux-based system development embedded devices in basic development process, cross-compilation process of transplantation Libxml library. Works in this article include the following aspects:At first, achieve a telnet server on the switch, so the user can use any of the universal telnet client access to the local switch or a remote switch. The second is to design a user command parser, realized analysis of the user's command functions. Third compile the kernel and produce the root file system cramfs. Fourth, cross-compile Libxml2, using XML technology to generate and manipulate configuration files. Fifth is designed a unified interface function to all protocol processing module to greatly simplify coding. Ultimately form a complete human-machine interaction module, and passed the test case. |