UC-7112-LX Plus Software User’s Manual Second Edition, June 2008 www.moxa.com/product © 2008 Moxa Inc., all rights reserved. Reproduction without pe
UC-7112-LX Plus Software User’s Manual Getting Started 2-2Powering on the UC-7112-LX Plus Connect the SG wire to the shielded contact located on the
UC-7112-LX Plus Software User’s Manual Getting Started 2-3The following window will open when a connection has been established. To log in, type th
UC-7112-LX Plus Software User’s Manual Getting Started 2-4Use a straight-through Ethernet cable to connect to a hub or switch that is connected to y
UC-7112-LX Plus Software User’s Manual Getting Started 2-5SSH Console The UC-7112-LX Plus supports an SSH Console to provide users with better secur
UC-7112-LX Plus Software User’s Manual Getting Started 2-6Modifying Network Settings with the Serial Console In this section, we use the serial cons
UC-7112-LX Plus Software User’s Manual Getting Started 2-7Installing a Secure Digital (SD) Memory Card The UC-7112-LX Plus has an internal SD socket
UC-7112-LX Plus Software User’s Manual Getting Started 2-8Test Program—Developing Hello.c In this section, we use the standard “Hello” programming e
UC-7112-LX Plus Software User’s Manual Getting Started 2-9Checking the Flash Memory Space If the flash memory is full, you will not be able to save
UC-7112-LX Plus Software User’s Manual Getting Started 2-10hello-debug—an ARM platform GDB debug server execution file (see Chapter 5 for details ab
UC-7112-LX Plus Software User’s Manual Getting Started 2-11Testing Environment The tcps2 example demonstrates a simple application program that deli
UC-7112-LX Plus Software User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordanc
UC-7112-LX Plus Software User’s Manual Getting Started 2-12 root@server11:/home/w341/1st_application [root@server11 1st_application]# pwd /home/UC
UC-7112-LX Plus Software User’s Manual Getting Started 2-13Uploading and Running the “tcps2-release” Program Use the following commands to use FTP t
UC-7112-LX Plus Software User’s Manual Getting Started 2-144. The program should start running in the background. Use the #ps –ef command to check
UC-7112-LX Plus Software User’s Manual Getting Started 2-15NOTE Use the kill -9 command for PID 728 to terminate this program: #kill -9 %728 Summa
33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. The informatio
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-7112-LX
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-3 192.168.3.127 – PuTTY root@Moxa:~# df -h Filesystem Size Used Available Us
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-4 192.168.3.127 – PuTTY root@Moxa:/mnt/ramdisk# ftp 192.168.3.193 Connected to 19
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults To load the the factory default settings, you must press
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-6Enabling and Disabling Daemons The following daemons are enabled when the UC-7112-
Table of Contents Chapter 1 Introduction ...1-1 Overv
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-7 192.168.3.127 – PuTTY # !/bin/sh # Add you want to run daemon /root/tcps2-relea
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-8xx: a number between 00-99. Smaller numbers have a higher priority. RUNFILE: the f
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-9The following figure illustrates how to update thesystem time and set the RTC time
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-10How to run the shell script automatically when the kernel boots up Copy the examp
44 Chapter 4 Managing Communications In this chapter, we explain how to configure the UC-7112-LX Plus’s various communication functions. The follo
UC-7112-LX Plus Software User’s Manual Managing Communications 4-2Telnet / FTP In addition to supporting Telnet client/server and FTP client/server,
UC-7112-LX Plus Software User’s Manual Managing Communications 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/
UC-7112-LX Plus Software User’s Manual Managing Communications 4-4NOTE The CGI function is enabled by default. If you want to disable the function,
UC-7112-LX Plus Software User’s Manual Managing Communications 4-5Step 3: Download the PHP package from the CD-ROM. You can find the package in CD-R
UC-7112-LX Plus Software User’s Manual Managing Communications 4-6Step 6: Test it. Use the browser to access http://192.168.3.127/phpinfo.php If yo
NAT Example ... 4-11 Enabling NAT at Bootup...
UC-7112-LX Plus Software User’s Manual Managing Communications 4-7IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspe
UC-7112-LX Plus Software User’s Manual Managing Communications 4-8 The UC-7112-LX Plus supports the following sub-modules. Be sure to use the module
UC-7112-LX Plus Software User’s Manual Managing Communications 4-9The basic syntax to enable and load an IPTABLES module is as follows: #lsmod #insm
UC-7112-LX Plus Software User’s Manual Managing Communications 4-10OUTPUT: For locally-generated packets. FORWARD: For packets routed out throug
UC-7112-LX Plus Software User’s Manual Managing Communications 4-11NAT NAT (Network Address Translation) protocol translates IP addresses used on on
UC-7112-LX Plus Software User’s Manual Managing Communications 4-12# Step 1. Insert modules. # Here 2> /dev/null means the standard error message
UC-7112-LX Plus Software User’s Manual Managing Communications 4-13connect ‘chat etc...’ This option gives the command to contact the PPP server. Th
UC-7112-LX Plus Software User’s Manual Managing Communications 4-14First, type: /sbin/ifconfig (The folder ifconfig may be located elsewhere, depend
UC-7112-LX Plus Software User’s Manual Managing Communications 4-15password. pppd/dev/ttyM0 115200 crtscts modem 192.168.16.1:192.168.16.2 login aut
UC-7112-LX Plus Software User’s Manual Managing Communications 4-16“[email protected]” is the username obtained from the ISP to log in to the ISP a
11 Chapter 1 Introduction The Moxa UC-7112-LX Plus is a RISC-based ready-to-run computer that has two 10/100 Mbps Ethernet ports, an internal SD s
UC-7112-LX Plus Software User’s Manual Managing Communications 4-17nameserver ip_addr_of_first_dns_server nameserver ip_addr_of_second_dns_server Fo
UC-7112-LX Plus Software User’s Manual Managing Communications 4-18Example: smtpclient –s test –f [email protected] –S IP_address receiver@c
UC-7112-LX Plus Software User’s Manual Managing Communications 4-19Setup 1: Ethernet Bridging for Private Networks on Different Subnets 1. Set up f
UC-7112-LX Plus Software User’s Manual Managing Communications 4-20 broadcast ) BROADCAST=$f2 ;; esac done break fi don
UC-7112-LX Plus Software User’s Manual Managing Communications 4-21 break fi done # null ip address of internal interface ifconfig $iface 0
UC-7112-LX Plus Software User’s Manual Managing Communications 4-22cipher DES-EDE3-CBC auth MD5 tun-mtu 1500 tun-mtu-extra 64 ping 40 up /etc/openvp
UC-7112-LX Plus Software User’s Manual Managing Communications 4-23item: route add –net 192.168.2.0 netmask 255.255.255.0 dev eth0 Now ping Host B f
UC-7112-LX Plus Software User’s Manual Managing Communications 4-24Setup 3: Routed IP 1. Set up four machines as shown in the following diagram: Op
UC-7112-LX Plus Software User’s Manual Managing Communications 4-25the second argument of ifconfig in the configuration file. 3. Check the routing
55 Chapter 5 Application Development with Linux Tool Chain This chapter describes how to install the Linux tool chain, which contains a suite of c
UC-7112-LX Plus Software User’s Manual Introduction 1-2Overview The UC-7112-LX Plus uses a Moxa ART ARM9 192 Mhz RISC CPU. Unlike the X86 CPU, which
UC-7112-LX Plus Software User’s Manual Linux Tool Chain 5-2Steps for Installing the Linux Tool Chain The tool chain needs about 485 MB of hard dis
UC-7112-LX Plus Software User’s Manual Linux Tool Chain 5-3On-Line Debugging with GDB The tool chain also provides an on-line debugging mechanism
66 Chapter 6 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered in this chapter:
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-2Flash Memory Map Partition sizes are hard coded into the kernel binary. To change the p
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-3The buzzer’s on / off behavior is controlled by software. If you call the “ioctl” funct
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-4Output errno() returns the error code. A value of 0 (zero) indicates no error. int swtd
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-54. Special Note When you “kill the application with -9” or “kill without option” or “C
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-6static int swtdfd; static int stopflag=0; static void stop_swatchdog() { stopflag =
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-7int ioctl(fd, MOXA_GET_OP_MODE, &mode) Description Get the interface mode. Argument
77 Chapter 7 Software Lock “Software Lock” is an innovative technology developed by the Moxa engineering team. It can be adopted by a system integ
UC-7112-LX Plus Software User’s Manual Introduction 1-3Normally, the kernel uses the Root File System to boot up the system. The Root File System is
AA Appendix A System Commands busybox (V0.60.4): Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln ma
UC-7112-LX Plus Linux User’s Manual System Commands A-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump kerne
BB Appendix B Using SNMP Browser to Query the UC ***** SNMP QUERY STARTED ***** 1: sysDescr.0 (octet string) Version 1.0 2: sysObjectID.0 (object
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-239: ifPhysAddress.1 (octet string) 00.90.E8.10.02.41 (hex) 40: ifPhysAddress.2 (octet s
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-390: ifInErrors.4 (counter) 0 91: ifInErrors.5 (counter) 0 92: ifInErrors.6 (counter) 0
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-4141: atIfIndex.1.192.168.27.139 (integer) 1 142: atIfIndex.2.192.168.4.127 (integer) 2
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-5192: ipRouteProto.192.168.4.0 (integer) local(2) 193: ipRouteProto.192.168.27.0 (intege
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-6243: tcpAttemptFails.0 (counter) 0 244: tcpEstabResets.0 (counter) 0 245: tcpCurrEstab.
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-7294: tcpConnLocalPort.192.168.4.127.2049.0.0.0.0.0 (integer) 2049 295: tcpConnLocalPort
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-8345: tcpConnRemPort.192.168.27.139.22.0.0.0.0.0 (integer) 0 346: tcpConnRemPort.192.168
UC-7112-LX Plus Software User’s Manual Introduction 1-4Software Package Boot Loader Moxa Boot Loader (v1.2) Kernel Linux 2.6.9 Protocol Stack ARP, P
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-9396: rs232PortType.1 (integer) rs232(2) 397: rs232PortType.2 (integer) rs232(2) 398: rs
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-10447: rs232InSigName.4.2 (integer) cts(2) 448: rs232InSigName.1.3 (integer) dsr(3) 449:
UC-7112-LX Plus Software User’s Manual Using SNMP Browser B-11498: snmpInTooBigs.0 (counter) 0 499: snmpInNoSuchNames.0 (counter) 0 500: snmpInBadVa
22 Chapter 2 Getting Started In this chapter, we explain how to connect the UC-7112-LX Plus, how to turn on the power, how to get started programm
Comentarios a estos manuales