UC-7400-LX Plus User’s Manual Third Edition, September 2008 www.moxa.com/product © 2008 Moxa Inc., All rights reserved. Reproduction without permissi
UC-7400-LX Plus User’s Manual Getting Started 2-2Powering on the UC-7400-LX Plus Connect the SG wire to the Shielded Contact located in the upper le
UC-7400-LX Plus User’s Manual Getting Started 2-3Telnet Console If you know at least one of the two IP addresses and netmasks, then you can use Teln
UC-7400-LX Plus User’s Manual Getting Started 2-4SSH Console UC-7400-LX Plus supports an SSH console to provide users with better security options.
UC-7400-LX Plus User’s Manual Getting Started 2-5Modifying Network Settings with the Serial Console In this section, we use the serial console to co
UC-7400-LX Plus User’s Manual Getting Started 2-6NOTE After changing the IP settings, use the networking restart command to activate the new IP addr
UC-7400-LX Plus User’s Manual Getting Started 2-73. Additional WLAN parameters are contained in the file RT2500STA.dat. To open the file, navigate
UC-7400-LX Plus User’s Manual Getting Started 2-8Channel—sets the channel Setting Explanation 0 auto 1 to 14 the channel you want to use AuthMode—
UC-7400-LX Plus User’s Manual Getting Started 2-9ShortSlot—enables or disables the short slot time Setting Explanation 0 disable 1 enable TxRate—se
UC-7400-LX Plus User’s Manual Getting Started 2-10Example 1: Configure wireless LAN to link to AP that is OPEN/NONE (Authentication/Encryption) [Def
UC-7400-LX Plus User’s Manual Getting Started 2-11Example 3: Configure wireless LAN to link to AP that is WPAPSK/TKIP (Authentication/Encryption) [D
UC-7400-LX Plus User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with th
UC-7400-LX Plus User’s Manual Getting Started 2-12Plug the 3G Card into the Cardbus Slot The UC-7400-LX Plus supports plug-and-play feature for the
UC-7400-LX Plus User’s Manual Getting Started 2-13Connecting to the 3G Network You can connect to 3G networks over a ppp connection. #/etc/init.d/3g
UC-7400-LX Plus User’s Manual Getting Started 2-14Installing the Tool Chain (Linux) The PC must have the Linux Operating System pre-installed before
UC-7400-LX Plus User’s Manual Getting Started 2-15You should receive the following response: [root@localhost hello]# make xscale_be-gcc –o hello-rel
UC-7400-LX Plus User’s Manual Getting Started 2-16RS-232 LANPC 2PC 1Write data to PC1Receive LAN dataRead serial dataSend data to PC2tcps2.cSerial R
UC-7400-LX Plus User’s Manual Getting Started 2-17 root@server11:/home/1st_application [root@server11 1st_application]# pwd /home/uc7400/1st_appli
UC-7400-LX Plus User’s Manual Getting Started 2-18 root@server11:/home/1st_application [root@server11 1st_application]# ftp 192.168.3.127 Connect
UC-7400-LX Plus User’s Manual Getting Started 2-19 192.168.3.127 - PuTTY root@Moxa:~# ls –al drwxr—xr-x 2 root root 0 Jun 12 02:14 drwxr—xr
UC-7400-LX Plus User’s Manual Getting Started 2-20NOTE Use the kill -9 command for PID 187 to terminate this program: #kill -9 187 Testing Procedure
33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. The informati
Table of Contents Chapter 1 Introduction ...1-1 Overv
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-7400-LX Plus, an
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-3 192.168.3.127 - PuTTY root@Moxa:/# df –h Filesystem Size Used Available Use% Mounted o
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-4 192.168.3.127 - PuTTY root@Moxa:/mnt/ramdisk# ftp 192.168.3.193 Connected to 192.168.3.1
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults To load the system’s factory default settings, press the reset-to-
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-6 192.168.3.127 - PuTTY root@Moxa:/mnt/ramdisk# ls –al drwxr-xr-x 3 root root
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-7 698 nobody 3012 S /usr/bin/httpd –k start –d /etc/apache 701 root 352 S
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-8KxxRUNFILE stands for: K: start the run file when linux shuts down or halts. xx: a number b
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-9 698 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache 701 root 352 S
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-10NTP Client The UC-7400-LX Plus has a built-in NTP (Network Time Protocol) client that is u
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-11Crontab is located in the /etc/cron.d directory. Modify the file /etc/cron.d/crontab to se
Chapter 4 Managing Communications ...4-1 Telnet / FTP ...
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-12Connecting Peripherals USB Mass Storage The UC-7420-LX Plus supports PNP (plug-n-play), an
UC-7400-LX Plus User’s Manual Managing Embedded Linux 3-13 ATTENTION Remember to type the #sync command before you unplug the CF mass storage device
44 Chapter 4 Managing Communications In this chapter, we explain how to configure the UC-7400-LX Plus’s various communication functions. The foll
UC-7400-LX Plus User’s Manual Managing Communications 4-2Telnet / FTP In addition to supporting Telnet client/server and FTP client/server, the UC-7
UC-7400-LX Plus User’s Manual Managing Communications 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/conf/http
UC-7400-LX Plus User’s Manual Managing Communications 4-4 NOTE The CGI function is enabled by default. If you want to disable the function, modify
UC-7400-LX Plus User’s Manual Managing Communications 4-5sub-tables Source NAT (SNAT)—changes the first source packet IP address Destination NAT (DN
UC-7400-LX Plus User’s Manual Managing Communications 4-6The UC-7400-LX Plus supports the following sub-modules. Be sure to use the module that matc
UC-7400-LX Plus User’s Manual Managing Communications 4-7Examples: # iptables -L -n In this example, since we do not use the -t parameter, the syste
UC-7400-LX Plus User’s Manual Managing Communications 4-8Example 4: Drop TCP packets from 192.168.1.25. # iptables –A INPUT –i eth0 –p tcp –s 192.16
11 Chapter 1 Introduction The Moxa UC-7400-LX Plus series of RISC-based commnication platforms are ideal for your embedded applications. All mode
UC-7400-LX Plus User’s Manual Managing Communications 4-9Enabling NAT at Bootup In most real world situations, you will want to use a simple shell s
UC-7400-LX Plus User’s Manual Managing Communications 4-10The pppd daemon is used to connect to a PPP server from a Linux system. For detailed infor
UC-7400-LX Plus User’s Manual Managing Communications 4-11modem Indicates that this is a modem device; pppd will hang up the phone before and after
UC-7400-LX Plus User’s Manual Managing Communications 4-1264 bytes from 129.67.1.165: icmp_seq=2 ttl=225 time=266 ms ^C --- 129.67.1.165 ping statis
UC-7400-LX Plus User’s Manual Managing Communications 4-134. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “pass
UC-7400-LX Plus User’s Manual Managing Communications 4-147. Set up DNS If you are using DNS servers supplied by your ISP, edit the file /etc/resol
UC-7400-LX Plus User’s Manual Managing Communications 4-15ro Read only. This is the default. rw Readable and Writeable. no_root_squash If no_root_sq
UC-7400-LX Plus User’s Manual Managing Communications 4-16Step 1: #showmount –e HOST showmount: Show the mount information for an NFS Server. -e:
UC-7400-LX Plus User’s Manual Managing Communications 4-1712: system.9.1.2.5 (object identifier) mib-2.50 13: system.9.1.2.6 (object identifier) int
UC-7400-LX Plus User’s Manual Managing Communications 4-18Setup 1: Ethernet Bridging for Private Networks on Different Subnets 1. Set up four machi
UC-7400-LX Plus User’s Manual Introduction 1-2Overview The UC-7400-LX Plus series of RISC-based communication platforms are ideal for embedded appli
UC-7400-LX Plus User’s Manual Managing Communications 4-19 ;; netmask ) NETMASK=$f2 ;; broadcast ) BROADCAST=$f2
UC-7400-LX Plus User’s Manual Managing Communications 4-20 i=`expr $i + 1` if [ $i -ge $maxtap ]; then break fi done # null ip address of
UC-7400-LX Plus User’s Manual Managing Communications 4-213. On machine OpenVPN A, modify the remote address in the configuration file, /etc/openvp
UC-7400-LX Plus User’s Manual Managing Communications 4-225. On each OpenVPN machine, check the routing table by typing the command: # route Destin
UC-7400-LX Plus User’s Manual Managing Communications 4-232. The configuration procedure is almost the same as for the previous example. The only d
UC-7400-LX Plus User’s Manual Managing Communications 4-24tun-mtu-extra 64 ping 40 ifconfig 192.168.4.174 192.168.2.173 up /etc/openvpn/tun.sh Then
55 Chapter 5 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered in this chapter:
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-2Before Programming Your Embedded System Caution When Using File Systems We recommend placing onl
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-3UC-7400-LX Plus. The host environment must be running Linux to install the UC-7400-LX Plus GNU T
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-4objdump Displays information about object files ranlib Generates indexes to archives (static l
UC-7400-LX Plus User’s Manual Introduction 1-3The UC-7400-LX Plus’s built-in Flash ROM is partitioned into Boot Loader, Linux Kernel, Root File Syst
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-5RTC (Real-time Clock) The device node is located at /dev/rtc. The UC-7400-LX Plus supports Linux
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-6int swtd_open(void) Description Open a file handle to control the watchdog. This is the first st
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-70 if OK. An error occurs if you see a non-zero value. Use the function errno () to retrieve the
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-8 exit(0); } The makefile is shown below: all: arm-elf-gcc –Wl, -elf2flt –o xxxx xxxx.c –lmo
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-9 exit(1); } The makefile is shown below: all: arm-elf-gcc –Wl, -elf2flt –o xxxx xxxx.c –lmo
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-10struct termios term; int fd, speed; fd = open(“/dev/ttyM0”, O_RDWR); tcgetattr(fd, &term);
UC-7400-LX Plus User’s Manual Programmer’s Guide 5-11Turns the LCM backlight off. KeyPad The device node is /dev/keypad. The key value is defined in
66 Chapter 6 Software Lock “Software Lock” is an innovative technology developed by Moxa’s engineers. It can be adopted by a system integrator or
UC-7400-LX Plus User’s Manual Software Lock 6-2NOTE 3. If you try to run an encrypted program on an embedded computer that does not have an encrypt
AA Appendix A System Commands busybox (V1.6.0): Linux normal command utility collection System 1. hwclock query and set the hardware clock (RTC)
UC-7400-LX Plus User’s Manual Introduction 1-4Software Package Boot Loader Redboot (v1.92) Kernel Monta Vista embedded Linux 2.6.10 Protocol Stacks
UC-7400-LX Plus User’s Manual System Commands A-2Editor 1. vi text editor 2. cat dump file context 3. zcat compress or expand files 4. gr
UC-7400-LX Plus User’s Manual System Commands A-312. gzip, gunzip compress or expand files 13. hostname show system’s host name 14. basename s
22 Chapter 2 Getting Started In this chapter, we explain how to connect the UC-7400-LX Plus, turn on the power, and then get started using the pr
Comments to this Manuals