UC-7420/7410 User’s Manual Seventh Edition, February 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction without permission
UC-7420/7410 User’s Manual Introduction 1-5Dimensions 197 mm [7.76"]125 mm [4.92"]44 mm[1.73"]
UC-7420/7410 User’s Manual Introduction 1-6Hardware Block Diagram The following block diagram shows the layout of UC-7420’s internal components (the
UC-7420/7410 User’s Manual Introduction 1-7Reset-type Buttons UC-7420/7410 has two reset-type buttons. The button labeled Reset has the same effect
UC-7420/7410 User’s Manual Introduction 1-8Placement Options Wall or Cabinet The two metal brackets that come standard with UC-7420/7410 are used to
UC-7420/7410 User’s Manual Introduction 1-9DIN-Rail Mounting The aluminum DIN-Rail attachment plate is included in the package. If you need to reatt
UC-7420/7410 User’s Manual Introduction 1-10You should also observe the following common wiring rules: y Use separate paths to route wiring for pow
UC-7420/7410 User’s Manual Introduction 1-11Connecting to the Network Connect one end of the Ethernet cable to one of UC-7420/7410’s 10/100M Etherne
UC-7420/7410 User’s Manual Introduction 1-12CompactFlash UC-7420 provides one CompactFlash slot that supports CompactFlash type I/II card expansion.
UC-7420/7410 User’s Manual Introduction 1-13User APUser Directory(User Configuration)Mini Root File SystemConfigurationLinux Kernel & RootHWBoot
UC-7420/7410 User’s Manual Introduction 1-14Although JFFS2 is a journaling file system, this does not preclude the loss of data. The file system wil
UC-7420/7410 User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the t
22 Chapter 2 Getting Started In this chapter, we explain how to connect UC-7420/7410, turn on the power, and then get started using the programmin
UC-7420/7410 User’s Manual Getting Started 2-2Powering on UC-7420/7410 Connect the SG wire to the Shielded Contact located in the upper left corner
UC-7420/7410 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 Telnet
UC-7420/7410 User’s Manual Getting Started 2-4 ATTENTION Serial Console Reminder Remember to choose VT100 as the terminal type. Use cable CBL-RJ45F9
UC-7420/7410 User’s Manual Getting Started 2-5Linux Users From a Linux machine, use the “ssh” command to access UC-7420/7410’s Console utility via S
UC-7420/7410 User’s Manual Getting Started 2-6 Dynamic IP addresses: By default, UC-7420/7410 is configured for “static” IP addresses. To configure
UC-7420/7410 User’s Manual Getting Started 2-7NOTE After changing the IP settings, use the networking restart command to activate the new IP addres
UC-7420/7410 User’s Manual Getting Started 2-8 3. Configure the Wireless LAN card’s default SSID setting profile. (Default SSID is “any”) #vi /etc/
UC-7420/7410 User’s Manual Getting Started 2-9IEEE802.11g The following IEEE802.11g wireless modules are supported: y ASUS—WL-107g y CNET—CWC-854
UC-7420/7410 User’s Manual Getting Started 2-103. Additional WLAN parameters are contained in the file RT2500STA.dat. To open the file, navigate to
Table of Contents Chapter 1 Introduction...1-1 Overvi
UC-7420/7410 User’s Manual Getting Started 2-11NetworkType—Sets the wireless operation mode Setting Explanation Infra Infrastructure mode (uses ac
UC-7420/7410 User’s Manual Getting Started 2-12TurboRate—Enables or disables TurboRate Setting Explanation 0 disable 1 enable BGProtection—Sets 11
UC-7420/7410 User’s Manual Getting Started 2-13Test Program—Developing Hello.c In this section, we use the standard “Hello” programming example to i
UC-7420/7410 User’s Manual Getting Started 2-14 If there isn’t enough “Available” space for your application, you will need to delete some existing
UC-7420/7410 User’s Manual Getting Started 2-15Uploading “Hello” to UC-7420/7410 and Running the Program Use the following command to upload hello-r
UC-7420/7410 User’s Manual Getting Started 2-16Compiling tcps2.c The source code for the tcps2 example is located on the CD-ROM at CD-ROM://example/
UC-7420/7410 User’s Manual Getting Started 2-17Uploading tcps2-release and Running the Program Use the following commands to use FTP to upload tcps2
UC-7420/7410 User’s Manual Getting Started 2-184. The program should start running in the background. Use either the #jobs or #ps –ef command to ch
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 ro
UC-7420/7410 User’s Manual Getting Started 2-20NOTE The tcps2.c application is a simple example designed to give users a basic understanding of the
Compiling tcps2.c... 2-16 Uploading tcps2-release a
33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. The informatio
UC-7420/7410 User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-7420/7410, and what
UC-7420/7410 User’s Manual Managing Embedded Linux 3-3Since different Flash disks have different sizes, it’s a good idea to check the size of your F
UC-7420/7410 User’s Manual Managing Embedded Linux 3-4-rw-rw-rw- 1 ftp ftp 8778996 Nov 29 10:24 UC7420_usrdisk-1.5.frm 226 Transfer complete
UC-7420/7410 User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults The easiest way to load factory defaults is to update the firmware (f
UC-7420/7410 User’s Manual Managing Embedded Linux 3-6Type the command “ps –ef” to list all processes currently running. 192.168.3.127 – PuTTY ro
UC-7420/7410 User’s Manual Managing Embedded Linux 3-7Next, use the vi open your application program. We use the example program tcps2-release, and
UC-7420/7410 User’s Manual Managing Embedded Linux 3-8Setting the Run-Level In this section, we outline the steps you should take to set the Linux r
UC-7420/7410 User’s Manual Managing Embedded Linux 3-9Adjusting the System Time Setting the Time Manually UC-7420/7410 has two time settings. One is
UC-7420/7410 User’s Manual Managing Embedded Linux 3-10NTP Client UC-7420/7410 has a built-in NTP (Network Time Protocol) client that is used to ini
File manager... A-1 Editor...
UC-7420/7410 User’s Manual Managing Embedded Linux 3-11Cron—daemon to Execute Scheduled Commands This function is only available for firmware versio
UC-7420/7410 User’s Manual Managing Embedded Linux 3-12Connecting Peripherals USB Mass Storage This function is only available for firmware version
44 Chapter 4 Managing Communications In this chapter, we explain how to configure UC-7420/7410’s various communication functions. The following to
UC-7420/7410 User’s Manual Managing Communication 4-2Telnet / FTP In addition to supporting Telnet client/server and FTP client/server, the UC-7420/
UC-7420/7410 User’s Manual Managing Communication 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/httpd.conf, w
UC-7420/7410 User’s Manual Managing Communication 4-4 To open the default CGI test script report page, type http://192.168.3.127/cgi-bin/test-cgi i
UC-7420/7410 User’s Manual Managing Communication 4-5Saving a Web Page to the CF Card Since some applications will have web pages that take up a lot
UC-7420/7410 User’s Manual Managing Communication 4-6Step4: Open your browser and connect to the UC-7420/7410 by typing the current LAN1 IP address
UC-7420/7410 User’s Manual Managing Communication 4-7MASQUERADE—a special form for SNAT. If one host can connect to internet, then other computers t
UC-7420/7410 User’s Manual Managing Communication 4-8UC-7420/7410 supports the following sub-modules. Be sure to use the module that matches your ap
11 Chapter 1 Introduction Welcome to Moxa UC-7420/7410 RISC-based Communication Platforms. Available features include eight RS-232/422/485 serial
UC-7420/7410 User’s Manual Managing Communication 4-9Examples: # iptables -L -n In this example, since we do not use the -t parameter, the system
UC-7420/7410 User’s Manual Managing Communication 4-10Example 2: Accept TCP packets from 192.168.0.1. # iptables –A INPUT –i ixp0 –p tcp –s 192.168.
UC-7420/7410 User’s Manual Managing Communication 4-111. #ehco 1 > /proc/sys/net/ipv4/ip_forward 2. #modprobe iptable_nat 3. #modprobe ip_conntra
UC-7420/7410 User’s Manual Managing Communication 4-12NOTE Click on the following links for more information about ppp: http://tldp.org/HOWTO/PPP-H
UC-7420/7410 User’s Manual Managing Communication 4-13crtscts Use hardware flow control between computer and modem (at 115200 this is a must). modem
UC-7420/7410 User’s Manual Managing Communication 4-14where z.z.z.z is the address of your name server. This should work. Here’s what the response c
UC-7420/7410 User’s Manual Managing Communication 4-15PPPoE How to use PPPoE on UC-7408: 1. Update two files: /usr/sbin/pppd and /usr/lib/pppd/2.4.
UC-7420/7410 User’s Manual Managing Communication 4-165. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password
UC-7420/7410 User’s Manual Managing Communication 4-177. Add one of two files: /etc/ppp/options.ixp0 or /etc/ppp/options.ixp1. The choice depends o
UC-7420/7410 User’s Manual Managing Communication 4-18NFS (Network File System) The Network File System (NFS) is used to mount a disk partition on a
UC-7420/7410 User’s Manual Introduction 1-2Overview UC-7420/7410 RISC-based Communication Platforms are ideal for embedded applications. UC-7420/741
UC-7420/7410 User’s Manual Managing Communication 4-19async The async option instructs the server to lie to the client, telling the client that all
UC-7420/7410 User’s Manual Managing Communication 4-20NOTE Click on the following link for more information about smtpclient: http://www.engelschal
UC-7420/7410 User’s Manual Managing Communication 4-21***** SNMP QUERY FINISHED ***** NOTE Click on the following links for more information about
UC-7420/7410 User’s Manual Managing Communication 4-222. Generate a preset shared key by typing the command: # openvpn --genkey --secret secrouter.
UC-7420/7410 User’s Manual Managing Communication 4-23 IFS=$oIFS if [ “$FOUND” = “no” ]; then modprobe $mname fi } start() { ifcfg_vpn if
UC-7420/7410 User’s Manual Managing Communication 4-24 openvpn --rmtun --dev tap${i} i=`expr $i + 1` if [ $i -ge $maxtap ]; then br
UC-7420/7410 User’s Manual Managing Communication 4-25up /etc/openvpn/B-tap0-br.sh #---------------------------------- Start------------------------
UC-7420/7410 User’s Manual Managing Communication 4-26Setup 2: Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four machines as
UC-7420/7410 User’s Manual Managing Communication 4-272. Create a configuration file named “A-tun.conf” and an executable script file named “A-tun.
55 Chapter 5 Programmer’s Guide This chapter includes important information for programmers. This following functions are covered in this chapter:
UC-7420/7410 User’s Manual Introduction 1-3Product Features y Intel XScale IXP422 266 MHz Processor y On-board 128 MB RAM, 32 MB Flash ROM y Eigh
UC-7420/7410 User’s Manual Programmer’s Guide 5-2Flash Memory Map Partition sizes are hard coded into the kernel binary. To change the partition siz
UC-7420/7410 User’s Manual Programmer’s Guide 5-3Obtaining help Use the Linux man utility to obtain help on many of the utilities provided by the to
UC-7420/7410 User’s Manual Programmer’s Guide 5-4Debugging with GDB First compile the program must with option -ggdb. Use the following steps: 1. T
UC-7420/7410 User’s Manual Programmer’s Guide 5-5Buzzer The device node is located at /dev/console. UC-7420/7410 supports Linux standard buzzer cont
UC-7420/7410 User’s Manual Programmer’s Guide 5-6int swtd_enable(int fd, unsigned long time) Description Enable application sWatchDog. And you must
UC-7420/7410 User’s Manual Programmer’s Guide 5-7int swtd_ack(int fd) Description: Acknowledge sWatchDog. When the user application enable sWatchDog
UC-7420/7410 User’s Manual Programmer’s Guide 5-8 swtd_close(fd); exit(0); } The makefile is shown below: all: mxscaleb-gcc –o xxxx xxxx.c
UC-7420/7410 User’s Manual Programmer’s Guide 5-9 exit(1); } The makefile is shown below: all: mxscaleb-gcc –o xxxx xxxx.c –lmoxalib UART The
UC-7420/7410 User’s Manual Programmer’s Guide 5-10Example to get the baud rate #include <moxadevice.h> #include <termios.h> struct te
UC-7420/7410 User’s Manual Programmer’s Guide 5-11KeyPad The device node is /dev/keypad. The key value is defined in moxadevice.h. int ioctl(fd, IOC
UC-7420/7410 User’s Manual Introduction 1-4Operating temperature -10 to 60°C, (14 to 140°F), 5 to 95% RH Storage temperature -20 to 80°C, (-4 to 185
AA Appendix A System Commands Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln make
UC-7420/7410 User’s Manual System Commands A-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump
Comentários a estes Manuais