
Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
34
Figure 21 TCP Communication Diagram
Now suppose the PC COM port (USB to RS232 line) connect with serial port of the serial
device
server,
then
open
the
serial
debugging
assistant
ZLComDebug
(http://www.zlmcu.com/en/download.htm), and open the corresponding COM as shown
in
figure
22.
Open
TCP&UDP
debugging
assistant
SocketTest
(http://www.zlmcu.com/en/download.htm), and as TCP client, fill in the serial device
server IP with destination IP (currently 192.168.1.200), destination port is 4196, and then
click "open" button as figure 23. In SocketTest, enter "socket send" and click send, then
the data is transferred to the RS232 interface via the Ethernet port of the serial device
server, next sent to ZLComDebug, and will be displayed in ZLComDebug. Also, enter
"Comdebug send" in ZLComDebug, and click send can also be sent to the socket test
and displayed.
This demonstration demonstrates the data transparent forwarding function of serial port
to Ethernet port and Ethernet port to serial port.