The sheer number of devices that use a serial port as a means for communicating with other electronic devices is staggering: everything from very well-known examples like personal computers and modems to manufacturing and industrial automation equipment. In fact, for many, a serial port provides the sole mechanism of communicating with the outside world.At the same time, we can find out the common serial communication protocol has many shortcomings, such as low baud rate, the lack of collision detection, etc. But more and more applications require that the equipments have the ability of joining in the local area network or Internet. But the devices based on common serial communication protocol have no direct means of participating in a larger computer network, just like Ethernet network. For this reason bridging the communications gap between serial-only devices to TCP/IP network hosts is a very important research topic.The thesis starts from the three research methods about gateway equipment, talks about the each characteristics, finally brings forward the material method how to implement the TCP/IP stack on the 51 mcu. At the same time, it uses the format of the callback function implementing the application layer protocol facing industrial real-time communication(Modbus protocol). |