Moxa W341-LX [25/80] Testing procedure summary

Moxa W341-LX [25/80] Testing procedure summary
W321/341 Linux Getting Started
2-17
root@Moxa:~# ls –al
drwxr—xr-x 2 root root 0 Jun 12 02:14
drwxr—xr-x 15 root root 0 Jan 1 1970
-rw------- 1 root root 899 Jun 10 08:11 .bash_history
-rwxr-xr-x 1 root root 4996 Jun 12 02:15 tcps2-release
root@Moxa:~# ./tcps2-release &
[1] 187
Start
4. The program should start running in the background. Use the
#ps command to check if the tcps2 program
is actually running in the background.
192.168.3.127 - PuTTY
[1]+ Running ./tcps2-release &
root@Moxa:~# ps
PID Uid VmSize Stat Command
1 root 532 S init [3]
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
13 root SW< [kblockd/0]
14 root SW [khubd]
24 root SW [pdflush]
25 root SW [pdflush]
27 root SW< [aio/0]
26 root SW [kswapd0]
604 root SW [mtdblockd]
609 root SW [pccardd]
611 root SW [pccardd]
625 root SWN [jffs2_gcd_mtd3]
673 root 500 S /bin/inetd
682 bin 380 S /bin/portmap
685 root 1176 S /bin/sh –login
690 root 464 S /bin/snmpd
714 root 1176 S -bash
727 root 1164 S -bash
728 root 1264 S ./tcps2-release
729 root 1592 S ps
root@Moxa:~#
NOTE
Use the kill -9 command for PID 728 to terminate this program: #kill -9 %728
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
(#ps).
4. Use a serial cable to connect PC1 to the W321/341’s serial port 1.
5. Use an Ethernet cable to connect PC2 to the W321/341.
6. On PC1: If running Windows, use HyperTerminal (115200, 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.

Содержание

Похожие устройства

Скачать