Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
22
Figure 10 TCP communication diagram
Now suppose the PC COM port (USB to RS232 line) connect with serial port of
serial device server, then open the serial debugging assistant ZLComDebug, and
open the corresponding COM as figure 11; Open TCP&UDP debugging assistant
SocketTest, and as TCP client, fill in the destination IP for the serial port server IP
(currently 192.168.1.200), destination port is 4196, and then click "open" button in
figure 12. Enter "socket send" in SocketTest and click send, then the data is
transferred to RS232 interface through the network port of the serial port server,
and then sent to ZLComDebug, which is then displayed in ZLComDebug.
Conversely, type "Comdebug send" in ZLComDebug, and clicking send can also
be sent to socket test and displayed.
The demonstration demonstrates the data transparent forwarding function from
serial port to network port, network port to serial port.
Figure 11 ComDebug Send-receive Interface