Console Port ... 2-2 Telnet... 2-3 Configuring the Ethernet Interface ... 2-4 Developing Your Applications ... 2-6 Installing the UC-7110 Tool Chain ... 2-6 Compiling Hello.c ... 2-7 Uploading “Hello” to UC-7110 ... 2-8 Running “Hello” on UC-7110 ... 2-9 Make File Example Code ...
Page 4
Other ... A-2 MOXA Special Utilities ... A-2 Appendix B SNMP Agent with MIB II & RS-232 Like Group ... B-1 Appendix C FAQ for UC-7110 ... C-1 Appendix D Service Information... D-1 MOXA Internet Services... D-2 Problem Report Form ... D-3...
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 Product Features Product Specifications...
This means that software written for desktop PCs is easily ported to UC-7110 by using a GNU cross complier, so that you will not need to spend time modifying existing software code. The Operating System, device drivers, and your own software can all be stored in UC-7110’s Flash memory.
UC-7110 Series User’s Manual Product Specifications Hardware Specifications (UC-7110-LX) Flash LAN Protection Serial Ports Serial Protection Data bits Stop bits Parity Flow Control Speed Real Time Clock Buzzer Console Port LEDs Gross Weight Power input Power Consumption Operating temperature -10 to 60℃, (14 to 140F), 5 to 95%RH...
UC-7110 Series User’s Manual LED Indicators The following table explains the function of the five LED indicators located on UC-7110’s top panel. LED Name Ready P1/P2 (Tx) P1/P2 (Rx) Wiring Requirements This section describes how to connect UC-7110 to serial devices.
Connecting to the Network Connect one end of the Ethernet cable to UC-7110’s 10/100M Ethernet port and the other end of the cable to the Ethernet network. If the cable is properly connected, UC-7110 will indicate a valid connection to the Ethernet in the following ways: The top-right LED on the connector maintains a solid green color when connected to a 100 Mbps Ethernet network.
6 7 8 9 Serial Console Port The serial console port is a 4-pin pin-header RS-232 port. It is designed for serial console terminals, which are useful for identifying the UC-7110 boot up message. Serial Console Port & Pinouts Signal...
The reset button is not designed to Hard Reboot UC-7110. ATTENTION Resetting to factory default will not format the user directory and erase all of the user's data. Loading factory default will only load the configuration file. The files in UC-7110 that will be changed include: a. /etc/boa.conf b.
UC-7110 Series User’s Manual 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 for RMA service.
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 Chain Compiling Hello.c Uploading “Hello”...
UC-7110 Series User’s Manual 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.
Telnet can be used locally by using a cross-over Ethernet cable to connect your computer to UC-7110, or over a LAN or the Internet. The default IP addresses and netmasks are shown above. To login, type the Login name and password as requested. The defaults are:...
UC-7110 Series User’s Manual 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 configuration file. The IP addresses for UC-7110’s LAN1 and LAN2 are given as...
Page 21
IP addresses from the first DHCP server that responds. 4. Issue the vi “write” command to save the file, and then reboot. Since UC-7110 only reads the “rc” file when booting up, you must reboot (e.g., by issuing the vi reboot command) for the changes to take affect.
Chain. Redhat 7.3/8.0 and compatible versions are recommended. The Tool Chain requires about 100 MB of hard disk space (on your PC). The UC-7110 Tool Chain can be found on the UC-7110 CD. To install Tool Chain, insert the CD into your PC and then issue the following command:...
UC-7110 Series User’s Manual 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.c: # cd /tmp/ # mkdir example # cp –r /mnt/cdrom/example/* /tmp/example...
UC-7110 Series User’s Manual 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 Getting Started...
If the flash memory is full, you will no longer be able to save data in Flash ROM. To free up some memory, use the console cable to connect to UC-7110’s serial console terminal, and then delete files from the Flash ROM.
UC-7110 Series User’s Manual 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: .SUFFIXES: .o .c...
Page 27
Copy the Hello example’s Makefile to your source code target directory, and then modify it to work with your program. After that, follow the procedures outlined in the previous sections: Compiling Hello.c, Uploading “Hello” to UC-7110, and Running “Hello” on UC-7110. 2-11...
Chapter 3 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 Software Package...
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.uClinux.org. In addition to the Standard POSIX API, device drivers for the buzzer, and UART for the serial ports are also included.
UC-7110 Series User’s Manual 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.
UC-7110 Series User’s Manual 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 incomplete write will be rolled back on the next boot.
Chapter 4 In this chapter, we describe how to configure UC-7110 Series products. The following topics are covered in this chapter: Enabling and Disabling Daemons Adding a Web Page IPTABLES Configuring Dial-in/Dial-out Service Configuring PPPoE How to mount a remote NFS Server Upgrading the Kernel &...
Disable the www service by typing “#” in front of the first character of the row. How to enable Network Time Protocol ntpdate is a time adjusting client utility. UC-7110 plays the role of Time client, and sends requests to the Network Time Server to request the correct time.
A rule (such as a jump to a user-defined chain in the same table) is called a “target.” UC-7110 supports 3 types of IPTABLES table: Filter tables, NAT tables, and Mangle tables: A. Filter Table—includes three chains:...
Page 36
UC-7110 Series User’s Manual 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 to the Internet, then other computers that connect to this host can connect to the Internet when the computer does not have an actual IP address.
Page 37
Filter Table INPUT Chain Local Process Mangle Table OUTPUT Chain NAT Table OUTPUT Chain Filter Table OUTPUT Chain UC-7110 supports the following sub-modules. Be sure to use the module that matches your application. ip_conntrack ip_conntrack_ftp ipt_conntrack_irc ip_nat_ftp ip_nat_irc ip_nat_snmp_basic ip_queue ipt_LOG NOTE UC-7110 does NOT support IPV6 and ipchains.
Page 38
Set the policy for the chain to the given target. For packets coming into the UC-7110. For locally-generated packets. For packets routed out through the UC-7110. To alter packets as soon as they come in. To alter packets as they are about to be sent out.
IP addresses used on another network. One network is designated the inside network and the other is the outside network. Typically, UC-7110 connects several devices on a network and maps local inside network addresses to one or more global outside IP addresses, and un-maps the global IP addresses on incoming packets back into local IP addresses.
#iptables -t nat –A POSTROUTING –o eth0 –j SNAT --to-source 192.168.3.127 #iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE Enabling NAT at Bootup In most real world situations, you should use a simple shell script to enable NAT when UC-7110 boots up, as indicated below: 1. setting iptables 2.
Currently, UC-7110 only supports NFS (Network File System) clients. Users can open NFS service on a Linux PC for UC-7110 to push data to. UC-7110 can use NFS to mount a remote disk as a local disk for data or log purposes.
Console Terminal or Telnet Console to copy the file to UC-7110. You can save this file to the UC-7110’s RAM disk, and then upgrade the kernel and root file system. In what follows, we give a step by step example.
Console Terminal or Telnet Console to copy the file to the UC-7110. You can save this file to UC-7110’s RAM disk, and then upgrade the user directory. In what follows, we give a step by step example.
Page 44
UC-7110 Series User’s Manual Configuring UC-7110 To enable the RAM disk, use the commands given below: />upramdisk />cd ramdisk Use the built-in FTP client to download the usrdisk-1.x.x.dsk file from the PC. /ramdisk>ftp <destination PC’s IP> Login Name: xxxx Login Password: xxxx ftp>...
UC-7110 Series User’s Manual 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 system will be backed up, and you can use ftp commands to transfer the usrdisk-backup to the FTP server on the PC.
Refer to the previous section “How to Upgrade User Directory” for an introduction. Mirroring the Application Program and Configuration For some applications, you may need to “Mirror” (or sometimes we said “Ghost”) one UC-7110’s user directory, and duplicate it to other UC-7110s.
Chapter 5 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 UC-7110 Device API...
Description: Sets RTC time. Buzzer The device node is located at /dev/console. UC-7110 supports µClinux standard buzzer control. UC-7110’s buzzer runs at a fixed frequency of 100 Hz. You must include <sys/kd.h> to use these functions. 1. Function: KDMKTONE ioctl(fd, KDMKTONE, unsigned int arg);...
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 problem solving and testing in the field.
UC-7110 Series User’s Manual 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 Next to continue.
Page 51
UC-7110 Series User’s Manual 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 Communicators connected to the LAN.
Page 52
UC-7110 Series User’s Manual 6. The Searching window will show the Universal Communicators that have been located. You can click on Stop as soon as the Universal Communicator you are looking for is listed. 7. When the search is complete, the Broadcast Search window closes, and the Model, MAC Address, and IP Address of all Universal Communicators that were located will be listed in the UC Finder window.
UC-7110 Series User’s Manual 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 address of all UC’s connected to the LAN.
busybox (V0.60.4): µClinux normal command utility collection File manager mount chmod sync mkdir rmdir head tail touch Editor zcat grep find more test sleep echo System Commands Appendix A copy file list file make symbolic link file mount and check file system delete file change file owner &...
UC-7110 Series User’s Manual Network ping route netstat ifconfig tracerout tftp telnet iptables-restore iptables iptables-save Process kill killall sleep Other dmesg stty zcat mknod free date clear reboot halt gzip, gunzip hostname MOXA Special Utilities backupfs cat /etc/version upramdisk downramdisk...
Page 56
SNMP Agent with MIB II & RS-232 Like 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 .iso.3.6.1.4.1.8691.9.7.1.1.0.
What stack size can I use when creating a user application? Answer 4 First note that UC-7110 is not an MMU processor. The OS is uClinux, so you must transfer your application from ELF to FLAT format. The transfer utility (on the PC) assigns a stack size of 0x1000 by default.
Page 60
5% to 10% when you copy the program into JFFS2 Flash. FAQ 6 Since UC-7110’s tool chain currently does not support GDB server, how do I disable a function by using the Makefile example to generate the gdb file? Answer 6 Edit the file /usr/local/arm-elf/bin/ld on the PC Linux platform.
Appendix D 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 Service Information...
UC-7110 Series User’s Manual 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, and user’s manual updates.
UC-7110 Series User’s Manual Problem Report Form Customer name: Company: Tel: Email: 1. Moxa Product: UC-7110 2. Serial Number: _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see. A clearly written description of the problem will allow us to reproduce the symptoms, and expedite the repair of your product.
UC-7110 Series User’s Manual 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 (PRF). Include as much detail as possible for a shorter product repair time.
Need help?
Do you have a question about the UC-7110 Series and is the answer not in the manual?
Questions and answers