Moxa Technologies UC-7420/7410 Network Card User Manual


 
UC-7420/7410 User’s Manual Getting Started
2-19
158 root 1532 S /sbin/getty 115200 ttyS1
162 root 3652 S /usr/sbin/sshd
163 root 2208 S -bash
169 root 2192 S ftpd: 192.168.3.110: root: IDLE
187 root 1264 S ./tcps2-release
188 root 1592 S ps -ef
root@Moxa:~#
NOTE Use the
kill -9
command for PID 187 to terminate this program:
#kill -9 %187
Testing Procedure Summary
1. Compile tcps2.c
(#make
).
2. Upload and run tcps2-release in the background (
#./tcps2-release &
).
3. Check that the process is running (
#jobs
or
#ps -ef
).
4. Use a serial cable to connect PC1 to UC-7420/7410’s serial port 1.
5. Use an Ethernet cable to connect PC2 to UC-7420/7410.
6. On PC1: If running Windows, use HyperTerminal (38400, n, 8, 1) to open COMn.
7. On PC2: Type
#telnet 192.168.3.127 4001
.
8. On PC1: Type some text on the keyboard and then press Enter.
9. On PC2: The text you typed on PC1 will appear on PC2’s screen.
The testing environment is illustrated in the following figure. However, note that there are
limitations to the example program tcps2.c.
tcps2.c
RS-232 LAN
PC 2
PC 1
Write data to PC1
Receive LAN data
Read serial data
Send data to PC2
Serial Rx
Buffer
LAN Rx
Buffer