Moxa Technologies W321 Computer Hardware User Manual


 
ThinkCore W311/321/341 Linux User’s Manual Getting Started
2-16
Testing Environment
The tcps2 example demonstrates a simple application program that delivers transparent,
bi-directional data transmission between the W311/321/341’s serial and Ethernet ports. As
illustrated in the following figure, the purpose of this application is to transfer data between PC 1
and the W311/321/341 through an RS-232 connection. At the remote site, data can be transferred
between the W311/321/341’s Ethernet port and PC 2 over an Ethernet connection.
Write data to PC1
Receive LAN data
Read serial data
Send data to PC2
tcps2.c
Serial Rx
Buffer
LAN Rx
Buffer
RS-232 LAN
PC 2PC 1