UC-7112-LX Plus Software User’s Manual Fifth Edition, June 2009 www.moxa.com/product © 2009 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 Using SNMP Browser C-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 C-11498: snmpInTooBigs.0 (counter) 0 499: snmpInNoSuchNames.0 (counter) 0 500: snmpInBadVa
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-6Configuring the Ethernet Interface The network settings of the UC-7112-LX Plus can be modi
UC-7112-LX Plus Software User’s Manual Getting Started 2-7Modifying Network Settings over the Network IP settings can be activated over the network,
UC-7112-LX Plus Software User’s Manual Getting Started 2-8Step 3: The SD socket is located on the back of bottom board. Insert the SD memory card as
UC-7112-LX Plus Software User’s Manual Getting Started 2-9Installing the Tool Chain (Linux) The Linux Operating System must be pre-installed in the
UC-7112-LX Plus Software User’s Manual Getting Started 2-10Compiling Hello.c The package CD contains several example programs. Here we use Hello.c a
UC-7112-LX Plus Software User’s Manual Getting Started 2-11Developing Your First Application We use the tcps2 example to illustrate how to build an
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-3Since different Flash disks have different sizes, it is a good idea to check the s
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-6To run a private daemon, you can edit the file rc.local, as follows: #cd /etc/rc.d
Table of Contents Chapter 1 Introduction ...1-1 Overv
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-7Setting the Run-Level In this section, we outline the steps you should take to set
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-8Adjusting the System Time Setting the Time Manually The UC-7112-LX Plus has two ti
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-9NTP Client The UC-7112-LX Plus has a built-in NTP (Network Time Protocol) client t
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-10Cron—Daemon for Executing Scheduled Commands Start Cron from the directory /etc/r
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
Dial-up Service—PPP... 4-12 PPPoE ...
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-9NOTE The UC-7112-LX Plus does NOT support IPV6 and ipchains. The basic syntax to
UC-7112-LX Plus Software User’s Manual Managing Communications 4-10Define policy for chain rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT,
UC-7112-LX Plus Software User’s Manual Managing Communications 4-11Example 7: Drop all packets from MAC address 01:02:03:04:05:06. # iptables –A INP
UC-7112-LX Plus Software User’s Manual Managing Communications 4-12Enabling NAT at Bootup In most real world situations, you will want to use a simp
UC-7112-LX Plus Software User’s Manual Managing Communications 4-13The pppd daemon is used to connect to a PPP server from a Linux system. For detai
UC-7112-LX Plus Software User’s Manual Managing Communications 4-14192.1.1.17 This is a degenerate case of a general option of the form x.x.x.x:y.y.
UC-7112-LX Plus Software User’s Manual Managing Communications 4-15Try typing: netstat –nr This should show three routes, something like this: Kerne
UC-7112-LX Plus Software User’s Manual Managing Communications 4-164. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]
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-176. Add one of two files: /etc/ppp/options.eth0 or /etc/ppp/options.eth1. The cho
UC-7112-LX Plus Software User’s Manual Managing Communications 4-18NFS (Network File System) The Network File System (NFS) is used to mount a disk p
UC-7112-LX Plus Software User’s Manual Managing Communications 4-19SNMP The UC-7112-LX Plus has built-in SNMP V1 (Simple Network Management Protocol
UC-7112-LX Plus Software User’s Manual Managing Communications 4-20Copy the file that is generated to the OpenVPN machine. 2. Generate a script fil
UC-7112-LX Plus Software User’s Manual Managing Communications 4-21 start() { ifcfg_vpn if [ ! \( -d “/dev/net” \) ]; then mkdir /dev/net fi
UC-7112-LX Plus Software User’s Manual Managing Communications 4-22 done brctl delif br0 $iface brctl delbr br0 ifconfig br0 down ifconfig $ifac
UC-7112-LX Plus Software User’s Manual Managing Communications 4-23Note: Select cipher and authentication algorithms by specifying “cipher” and “aut
UC-7112-LX Plus Software User’s Manual Managing Communications 4-24Setup 2: Ethernet Bridging for Private Networks on the Same Subnet 1. Set up fou
UC-7112-LX Plus Software User’s Manual Managing Communications 4-25#!/bin/sh # value after “-net” is the subnet behind the remote peer route add -ne
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-3Buzzer The device node is located at /dev/console. The UC-7112-LX Plus supports Linux s
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-4Input int fd - the file handle, from the swtd_open() return value. unsigned long
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-5Output A value of 0 (zero) indicates no error. Otherwise, you can get the error code fr
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-6 time.tv_sec = msec / 1000; time.tv_usec = (msec % 1000) * 1000; select(1, NULL, N
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-7UART The normal tty device node is located at /dev/ttyM0 … ttyM1. The UC-7112-LX Plus s
UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-8Baudrate inaccuracy Divisor = 921600/Target Baud Rate. (Only Integer part) ENUM = 8 * (
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
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
AA Appendix A Boot Loader Utility for Firmware Upgrade or Recovery Moxa provides a boot loader utility for firmware upgrade or recovery. You will
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-2If you are familiar with Moxa’s embedded computers and the firmware upgrade procedure, yo
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-34. After HyperTerminal launches, enter a name for the connection. 5. Click Cancel whe
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-46. Select File Æ Properties from the main HyperTerminal screen. 7. You may change the
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-58. Use the following parameters to configure the Port Settings: Bits per second: 115200
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-69. Click the Settings tab and then select VT100 for Emulation. Click OK to finish the co
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-7B. Check if Your Embedded Computer Supports the Boot Loader Utility 1. Power on the e
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-8C. Download and install the TFTP program. 1. You will need to download a free TFTP se
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-9D. Download and upgrade the firmware through HyperTerminal. 1. Connect to Moxa’s websi
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 Linux User’s Manual Boot Loader Utility A-10 3. Extract the file and put the latest firmware image in the same directory that the
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-114. Connect LAN1 of the embedded computer to your PC using a cross-over Ethernet cable.
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-127. You will need to enter the IP addresses of the embedded computer and your PC. Follow
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-13c. Click the General tab and select Internet Protocol (TCP/IP), and then click on Prope
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-14d. Next, select Use the following IP address and enter the following information. IP ad
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-158. Go back to the boot load utility menu and enter the local IP address. This local IP
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1610. Press the ESC key to exit the IP setting option. Next, select [3] Firmware Upgrade,
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1712. When the TFTP server has been launched, the following screen will appear. 13. Go
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1815. It will take several minutes for the firmware files to be written to your embedded
BB Appendix B System Commands Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln make symbolic link fi
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
UC-7112-LX Plus Linux User’s Manual Boot Loader Utility B-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump k
CC Appendix C 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 C-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 C-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 C-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 C-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 C-6243: tcpAttemptFails.0 (counter) 0 244: tcpEstabResets.0 (counter) 0 245: tcpCurrEstab.
UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-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 C-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 Using SNMP Browser C-9396: rs232PortType.1 (integer) rs232(2) 397: rs232PortType.2 (integer) rs232(2) 398: rs
Comentarios a estos manuales