Page 2 - UC-7110 Series User’s Manual; Copyright Notice; Trademarks; Disclaimer
UC-7110 Series User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright © 2005 Moxa Technologies Co., Ltd. All rights reserved. Reproduction without permission is prohibi...
Page 3 - Table of Contents; Chapter 1
Table of Contents Chapter 1 Introduction ..................................................................................................1-1 Overview.................................................................................................................................. 1-2 Package Checkl...
Page 5 - Introduction; Connecting the Power
1 1 Chapter 1 Introduction The MOXA UC-7110 Series of RISC-based Communication Platforms features two RS-232/422/485 serial ports, and dual 10/100 Mbps Ethernet ports, making these products ideal for embedded OS applications. This chapter covers the following topics: Overview Package Checklist ...
Page 6 - Overview
UC-7110 Series User’s Manual Introduction 1-2 Overview The UC-7110 Series of RISC-based Communication Platforms are ideal for your embedded applications. UC-7110 comes with two RS-232/422/485 serial ports and dual 10/100 Mbps Ethernet LAN ports to provide users with a versatile communication platfor...
Page 7 - Product Specifications
UC-7110 Series User’s Manual Introduction 1-3 Product Specifications Hardware Specifications (UC-7110-LX) CPU ARM9-based 32-bit RISC CPU, 166 Mhz RAM 16 MB (12 MB of user programmable space) Flash 8 MB (4 MB of user programmable space) LAN Auto-sensing 10/100 Mbps x 2 LAN Protection Built-in 1.5 KV ...
Page 9 - Hardware Block Diagram; Ethernet
UC-7110 Series User’s Manual Introduction 1-5 Hardware Block Diagram S3C2500 ARM940T 166MHz8MB Flash16MB SDRAM PHY PHY LAN1 LAN2 RTC MOXA MU150 MOXA MU150 Port 1 Port 2 Power Circuit Appearance P1 P2 TX RX P1 P2 TX RX Ready V+ RESET 12-48V LAN1 RS-232/422/485 LAN2 UC-7110 Universal Communicator Ethe...
Page 10 - Dimensions
UC-7110 Series User’s Manual Introduction 1-6 Dimensions P1 P2 TX RX P1 P2 TX RX Ready V+ RESET 12-48V LAN1 RS-232/422/485 LAN2 UC-7110 Universal Communicator 6 (0.24) 12.5 (0.49) 25 (0.98) 4 (0.16) 7 (0.28) 26 (1.02) 77 (3.03) 47.3 (1.56) 21.3 (0.8) 11 1 (4.31) 88 (3.46) 100 (4.18) unit = mm (inch)
Page 11 - Nameplate View
UC-7110 Series User’s Manual Introduction 1-7 Installing UC-7110 P1 P2 TX RX P1 P2 TX RX Ready V+ 12-48V LAN1 LAN2 UC-7110 Universal Communicator RESET RS-232/422/485 Top-End View Bottom-End View DB9 (male) Serial Ports DIN-Railscrew hole Wallmountscrew hole Nameplate View RJ45 10/100 Mbps Ethernet ...
Page 12 - LED Indicators; LED Name; Wiring Requirements; NOTE; Temperature Caution!
UC-7110 Series User’s Manual Introduction 1-8 LED Indicators The following table explains the function of the five LED indicators located on UC-7110’s top panel. LED Name LED Color LED Function Ready Green Power is on and functioning normally. Green Serial port 1/2 is transmitting data. P1/P2 (Tx) O...
Page 13 - SG; Connecting Data Transmission Cables; Connecting to the Network
UC-7110 Series User’s Manual Introduction 1-9 Connecting the Power Connect the “live-wire” end of the 12-48 VDC power adaptor to UC-7110’s terminal block. If the power is properly supplied, the “Ready” LED will show a solid green color after a 25 to 30 second delay. Grounding UC-7110 Grounding and w...
Page 14 - Connecting to a Serial Device
UC-7110 Series User’s Manual Introduction 1-10 The 10/100 Mbps Ethernet LAN 1 and LAN 2 ports use 8-pin RJ45 connectors. Pinouts for these ports are given in the following diagram. 8-pin RJ45 1 8 100 Mbps indicator 10 Mbps indicator Pin Signal 1 ETx+ 2 ETx- 3 ERx+ 4 --- 5 --- 6 ERx- 7 --- 8 --- Conn...
Page 15 - Additional Functions
UC-7110 Series User’s Manual Introduction 1-11 Additional Functions Reset Button Press the “RESET” button continuously for more than 5 seconds to load the factory default configuration. After loading the factory default, the system will reboot automatically. The System Ready LED will be blinking for...
Page 16 - Real Time Clock
UC-7110 Series User’s Manual Introduction 1-12 Real Time Clock UC-7110’s real time clock is powered by a lithium battery. We strongly recommend that you do not replace the lithium battery without the help of Moxa’s support team. If the battery needs to be changed, contact the Moxa RMA service team f...
Page 17 - Getting Started; Connecting UC-7110 to a PC; Installing the UC-7110 Tool Chain
2 2 Chapter 2 Getting Started In this chapter, we explain the basic procedure for getting UC-7110 connected. This chapter covers the following topics: Powering on UC-7110 Connecting UC-7110 to a PC Configuring the Ethernet Interface Developing Your Applications ¾ Installing the UC-7110 Tool ...
Page 18 - Console Port; Serial Console Port Settings
UC-7110 Series User’s Manual Getting Started 2-2 Powering on UC-7110 Connect the SG wire to the Shielded Contact located on the upper left corner of the UC-7110, and then power on UC-7110 by connecting the power adaptor. It takes about 16 seconds for the system to boot up. Once the system is ready, ...
Page 19 - Telnet; Default IP Address Default Netmask; Serial Console Reminder; Telnet Reminder
UC-7110 Series User’s Manual Getting Started 2-3 Telnet If you know at least one of the two IP addresses and netmasks, then you can use Telnet to connect to UC-7110’s console. Default IP Address Default Netmask LAN 1 192.168.3.127 255.255.255.0 LAN 2 192.168.4.127 255.255.255.0 Telnet can be used lo...
Page 20 - Configuring the Ethernet Interface; vi rc
UC-7110 Series User’s Manual Getting Started 2-4 Configuring the Ethernet Interface In this section we use the serial console to explain how to modify UC-7110’s network settings. 1. Change directories by issuing the command cd /mnt/etc . 2. Type the command vi rc to use VI Editor to edit the configu...
Page 21 - reboot
UC-7110 Series User’s Manual Getting Started 2-5 3. You may also configure UC-7110 to request IP addresses from a DHCP server. In this case, use the sharp sign (#) to comment out one or both “ifconfig” lines, and then delete the sharp sign in front of the “dhcpcd” lines, as shown below. Note that UC...
Page 22 - Developing Your Applications; Go
UC-7110 Series User’s Manual Getting Started 2-6 Developing Your Applications Step 1: Connect UC-7110 to a Linux PC. Step 2: Install Tool Chain (GNU Cross Compiler & uClibc). Step 3: Configure cross compiler and uClibc environment variables. Step 4: Code & compile your program. Step 5: Downl...
Page 23 - Hello
UC-7110 Series User’s Manual Getting Started 2-7 Compiling Hello.c The Tool Chain path is: PATH=/usr/local/arm-elf/bin:$PATH The UC-7110 CD includes several example programs. We use Hello.c to illustrate how to compile and run applications. Issue the following commands from your PC to compile Hello....
Page 24 - Uploading “Hello” to UC-7110; hello
UC-7110 Series User’s Manual Getting Started 2-8 Uploading “Hello” to UC-7110 To use FTP to upload hello to UC-7110, issue the following commands from the PC side: #ftp 192.168.3.127 ftp> cd /home ftp> bin ftp> put ./hello ftp> quit #telnet 192.168.3.127
Page 25 - Running “Hello” on UC-7110
UC-7110 Series User’s Manual Getting Started 2-9 Running “Hello” on UC-7110 To run the “Hello” program issue the following commands from the UC-7110 side: # chmod 755 hello #./hello The words “Hello World” will be printed on the screen. ATTENTION Be sure to calculate the amount of Flash Memory used ...
Page 26 - Make File Example Code
UC-7110 Series User’s Manual Getting Started 2-10 Make File Example Code The following Makefile file example codes are copied from the Hello example from UC-7110’s CD-ROM. # Generated automatically from Makefile.in by configure. # $Id: Makefile.in,v 1.59 2002/03/24 22:20:19 jnelson Exp $ .SUFFIXES: ...
Page 28 - Software Package; UC-7110 Software Architecture
3 3 Chapter 3 Software Package This chapter includes information about the software that is used with UC-7110 Series products. This chapter covers the following topics: UC-7110 Software Architecture UC-7110 Software Package
Page 29 - Boot Loader
UC-7110 Series User’s Manual Software Package 3-2 UC-7110 Software Architecture The pre-installed µClinux Operating System used by UC-7110 follows the standard µClinux architecture, making programs that follow the POSIX standard easily ported to UC-7110 by using the GNU Tool Chain provided by www.uC...
Page 30 - ROMFS
UC-7110 Series User’s Manual Software Package 3-3 and uses JFFS2 for the User Directory. The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to change the partition sizes. The flash memory map is shown in the following table. Flash Context Flash Address Size Access...
Page 31 - Additional information about JFFS2 is available at:; UC-7110 Software Package
UC-7110 Series User’s Manual Software Package 3-4 Although JFFS2 is a journaling file system, this does not preclude the loss of data. The file system will remain in a consistent state across power failures, and will always be mountable. However, if the board is powered down during a write, then the...
Page 34 - Enabling and Disabling Daemons; How to enable Network Time Protocol; The min time is 100ms.
UC-7110 Series User’s Manual Configuring UC-7110 4-2 Enabling and Disabling Daemons The following daemons are enabled when UC-7110 boots up for the first time. y SNMP Agent daemon: snmpd y Telnet Server / Client daemon: telnetd y Internet Daemons: inetd y FTP Server / Client daemon: ftpd y WWW Serve...
Page 35 - Adding a Web Page
UC-7110 Series User’s Manual Configuring UC-7110 4-3 Adding a Web Page Default Home Page address: /home/httpd/index.html You may change the default home page directory by editing the web server’s configuration file, located at: /home/httpd/boa.conf Type the following command to edit the boa.conf fil...
Page 36 - Mangle Table
UC-7110 Series User’s Manual Configuring UC-7110 4-4 OUTPUT chain — produces local packets sub-tables Source NAT (SNAT) — changes the first source packet IP address Destination NAT (DNAT) — changes the first destination packet IP address MASQUERADE — a special form for SNAT. If one host can connect ...
Page 38 - Observe and; Observe and erase chain rules
UC-7110 Series User’s Manual Configuring UC-7110 4-6 NOTE IPTABLES plays the role of packet filtering or NAT. Take care when setting up the IPTABLES rules. If the rules are not correct, remote hosts that connect via a LAN or PPP may be denied access. We recommend using the Serial Console to set up t...
Page 39 - Append or delete rules:; NAT; NAT Example
UC-7110 Series User’s Manual Configuring UC-7110 4-7 Append or delete rules: Usage: # iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-io interface] [-p tcp, udp, icmp, all] [-s IP/network] [--sport ports] [-d IP/network] [--dport ports] –j [ACCEPT. DROP] -A: Append one or more rules to the end ...
Page 40 - NAT Area / Private IP; Enabling NAT at Bootup; Direct cable connection:; Connect Using a Modem:
UC-7110 Series User’s Manual Configuring UC-7110 4-8 the module ipt_MASQUERADE): UC-7110 PC1 (Linux or Windows) IP/Netmask:Gateway: 192.168.3.100/24192.168.3.127 PC2 (Linux or Windows) IP/Netmask:Gateway: 192.168.4.100/24192.168.4.127 LAN1 LAN2 LAN1:eth0 192.168.3.127/24 LAN2:eth1 192.168.4.127/24 N...
Page 41 - Configuring PPPoE; How to Mount a Remote NFS Server
UC-7110 Series User’s Manual Configuring UC-7110 4-9 ATTENTION If dial out fails, the pppd connection will be blocked, and the user will need to shut down the pppd, and re-dial. Since the return value is always OK (regardless of whether or not the connection is blocked), the AP must be set up to che...
Page 42 - Upgrading the Kernel & Root File System; Login Password: xxxx
UC-7110 Series User’s Manual Configuring UC-7110 4-10 1. First, the NFS server must open an export directory and allow access to the IP address. Edit the file “/etc/exports” on your Linux PC, and then run the NFS daemon. The following example gives one possibility (refer to the NFS-HOWTO document at...
Page 43 - upkernel; Upgrading the User Directory
UC-7110 Series User’s Manual Configuring UC-7110 4-11 ftp> bin ftp> get uc7110-1.x.x.bin And then use the upkernel command to upgrade the kernel and root file system. /ramdisk>upkernel uc7110-1.3.11.bin /ramdisk>reboot Upgrading the User Directory UC-7110 uses ROMFS (ROM File System), wh...
Page 45 - User Directory Backup; backupfs
UC-7110 Series User’s Manual Configuring UC-7110 4-13 User Directory Backup — UC-7110 to PC To enable the RAM disk, follow the commands given below: />upramdisk />cd ramdisk And then use the backupfs command to backup the file system. /ramdisk>backupfs /ramdisk/usrdisk-backup The file syste...
Page 46 - Loading Factory Defaults; “Load Factory Default”; Mirroring the Application Program and Configuration; How to Autostart User Applications on Bootup
UC-7110 Series User’s Manual Configuring UC-7110 4-14 Loading Factory Defaults The easiest way to “Load Factory Default” is with “Upgrade User directory.” Refer to the previous section “How to Upgrade User Directory” for an introduction. Mirroring the Application Program and Configuration For some a...
Page 47 - Buzzer
5 5 Chapter 5 UC-7110 Device API In this chapter, we discuss the Device API for the UC-7110 Series. We introduce the APIs for the following functions: RTC (Real Time Clock) Buzzer UART Interface
Page 48 - UART Interface
UC-7110 Series User’s Manual UC-7110 Device API 5-2 RTC (Real Time Clock) The device node is located at /dev/rtc . UC-7110 supports µClinux standard simple RTC control. You must include <linux/rtc.h> to use these functions. 1. Function: RTC_RD_TIME int ioctl(fd, RTC_RD_TIME, struct rtc_time *t...
Page 49 - UC Finder; Windows UC Finder
6 6 Chapter 6 UC Finder UC-7110 comes with a UC Finder utility, which has the sole purpose of searching the LAN or intranet for UC-7110 units. For most of applications, it’s not easy to remember the IP addresses of Universal Communicators connected to the LAN. This is especially true for some proble...
Page 50 - Welcome to the UC Finder Setup Wizard
UC-7110 Series User’s Manual UC Finder 6-2 Windows UC Finder The following steps describe how to install UC Finder on a Windows PC. 1. Double click on the UC Finder installation program, Setup.exe , to start the installation. 2. When the Welcome to the UC Finder Setup Wizard window opens, click on N...
Page 51 - Launch UC Finder
UC-7110 Series User’s Manual UC Finder 6-3 4. Check the Launch UC Finder checkbox to use UC Finder immediately after the installation has finished, and then click on Next to complete the installation. 5. When the UC Finder window opens, click on Broadcast Search to search for all Universal Communica...
Page 53 - Linux ucfinder; ucfinder
UC-7110 Series User’s Manual UC Finder 6-5 Linux ucfinder To use the Linux ucfinder utility, copy ucfinder from the CD-ROM to your Linux PC, and then use the command given below to start ucfinder. The ucfinder utility will automatically broadcast a message over your LAN network to find the IP addres...
Page 54 - Appendix A; System Commands; File manager
A A Appendix A System Commands busybox (V0.60.4): µClinux normal command utility collection File manager cp copy file ls list file ln make symbolic link file mount mount and check file system rm delete file chmod change file owner & group & user sync sync file system; save system file buffer...
Page 55 - Network
UC-7110 Series User’s Manual System Commands A-2 Network ping ping to test network route routing table manager netstat display network status ifconfig set network IP address tracerout trace route tftp tftp protocol telnet user interface to TELNET protocol ftp file transfer protocol iptables-restore ...
Page 56 - Appendix B; Group; RFC1213 MIB-II supported SNMP variables:
B B Appendix B SNMP Agent with MIB II & RS-232 Like Group UC-7110 has a built-in SNMP (Simple Network Management Protocol) agent that supports RFC1317 RS-232 like group and RFC 1213 MIB-II. The following table lists the variable implementation for UC-7110. The full SNMP object ID of UC-7110 is ....
Page 57 - ip MIB
UC-7110 Series User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-2 ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrErrors ipInAddrErrors ipForwDatagrams ipInUnknownProtos ipInDiscards ipInDelivers ipOutRequests ipOutDiscards ipOutNoRoutes ipReasmTimeout ipReasmReqds...
Page 58 - snmp MIB
UC-7110 Series User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3 snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames snmpInBadCommunityUses snmpInASNParseErrs snmpInTooBigs snmpInNoSuchNames snmpInBadValues snmpInReadOnlys snmpInGenErrs snmpInTotalReqVars snmpInT...
Page 60 - Answer 5
UC-7110 Series User’s Manual FAQ for UC-7110 C-2 FAQ 5 How do I compress an application program? Answer 5 UC7110’s kernel supports ZFLAT format files. This means that when you compile the program, you can add the compress option to reduce the size of the binary file. Doing so will reduce the require...
Page 61 - Appendix D; Service Information; MOXA Internet Services
D D Appendix D Service Information This appendix shows you how to contact Moxa for information about this and other products, and how to report problems. In this appendix, we cover the following topics. MOXA Internet Services Problem Report Form Product Return Procedure
Page 62 - The following services are provided
UC-7110 Series User’s Manual Service Information D-2 MOXA Internet Services Customer satisfaction is our number one concern, and to ensure that customers receive the full benefit of our products, Moxa Internet Services has been set up to provide technical support, driver updates, product information...
Page 63 - Problem Report Form
UC-7110 Series User’s Manual Service Information D-3 Problem Report Form MOXA UC-7110 Series Customer name: Company: Tel: Fax: Email: Date: 1. Moxa Product: UC-7110 2. Serial Number: ___________ ______ Problem Description: Please describe the symptoms of the problem as clearly as possible, includi...
Page 64 - Product Return Procedure
UC-7110 Series User’s Manual Service Information D-4 Product Return Procedure For product repair, exchange, or refund, the customer must: Provide evidence of original purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer. Fill out the Problem Report Form (PR...