Connecting UC-7112/7110 to a PC..................2-2 Console Port ......................... 2-2 Telnet..........................2-3 Configuring the Ethernet Interface ..................2-4 Install Secure Digital (SD) Memory Card (UC-7112 only) ............. 2-6 Developing Your Applications ....................2-7 Installing the UC-7112/7110 Tool Chain ..............2-7 Compiling Hello.c ......................2-9 Uploading “Hello”...
Page 4
Dynamic Driver Module Load / Unload .................. 4-9 Upgrading the Kernel......................4-10 Upgrading the Root File System & User Directory ..............4-11 User Directory Backup—UC-7112/7110 to PC ..............4-12 Loading Factory Defaults ...................... 4-13 Mirroring the Application Program and Configuration............4-13 Autostarting User Applications on Bootup ................
UC-7112 and UC-7110 are the right solutions for embedded applications that use a lot of memory, but that must be housed in a small physical space without sacrificing performance. This chapter...
Software written for desktop PCs is easily ported to UC-7112/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-7112/7110’s Flash memory.
UC-7112/7110 User’s Manual Introduction Operating temperature -10 to 60 C, (14 to 140 F), 5 to 95% RH -20 to 80 C, (-4 to 176 F), 5 to 95% RH Storage temperature EMC: FCC Class A, CE Class A Regulatory Approvals Safety: UL, CUL, TÜV...
Port RS-232 RS-232/422/485 Appearance The top view of UC-7112 is shown in the following figure. UC-7110 looks similar, except for the “SD Socket Inside” description on the panel and the SD expansion function. Ethernet x 2 (10/100BaseTx) 12 to 48 VDC...
UC-7112/7110 User’s Manual Introduction Dimensions The dimensions of both UC-7112 and UC-7110 are the same as shown in the following figure. 6 (0.24) V+ RESET LAN1 LAN2 12-48V 4 (0.16) Ready 12.5 (0.49) UC-7110 25 (0.98) Universal Communicator 21.3 7 (0.28) (0.8)
UC-7112/7110 User’s Manual Introduction LED Indicators The following table explains the function of the five LED indicators located on UC-7112/7110’s top panel. LED Name LED Color LED Function Ready Green Power is on and functioning normally. P1/P2 (Tx) Green Serial port 1/2 is transmitting data.
Connect one end of the Ethernet cable to UC-7112/7110’s 10/100M Ethernet port and the other end of the cable to the Ethernet network. If the cable is properly connected, UC-7112/7110 will indicate a valid connection to the Ethernet in the following ways: The top-right LED on the connector glows a solid green 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-7112/7110 boot up message. Serial Console Port & Pinouts Serial Console Cable...
The internal SD socket is located at the backside of UC-7112 bottom board; you can find the SD plug-in slot at the right of UC-7112, lower than the cover screw. Plug the SD card into the socket directly and remember to press the SD card first if you want to take it out.
Introduction Real Time Clock UC-7112/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.
Getting Started Chapter 2 In this chapter, we explain the basic procedure for getting UC-7112/7110 connected and ready for your needs. This chapter covers the following topics: Powering on UC-7112/7110 Connecting UC-7112/7110 to a PC Configuring the Ethernet Interface Developing Your Applications Installing the UC-7112/7110 Tool Chain Compiling Hello.c...
Getting Started Powering on UC-7112/7110 Connect the SG wire to the Shielded Contact located on the upper left corner of the UC-7112/7110, and then power on UC-7112/7110 by connecting the power adaptor. It takes about 16 seconds for the system to boot up. Once the system is ready, the Ready LED will light up.
Serial Console Reminder: Remember to choose VT100 as the terminal type. Use the CBL-RJ45F9-150 cable that comes with UC-7112/7110 to connect to the serial console port. If you are not able to conect on the first try, unplug and then re-plug UC-7112/7110’s power cord.
UC-7112/7110 User’s Manual Getting Started Configuring the Ethernet Interface In this section, we use the serial console to explain how to modify UC-7112/7110’s network settings. 1. Change directories by issuing the command cd /etc. 2. Type the command vi rc to use the VI Editor to edit the configuration file. The IP addresses for UC-7112/7110’s LAN1 and LAN2 are given as...
Page 21
192.168.5.127 (This will change the IP address of LAN1.) Issuing this command will however NOT update the “rc” file in UC-7112/7110’s flash memory, so the next time you reboot, the IP address will revert to its previous value.
Getting Started Install Secure Digital (SD) Memory Card (UC-7112 only) UC-7112 provides an internal SD socket for storage expansion. To access this socket, perform the following steps to install the SD memory card. Step 1: Loosen the screws of the UC-7112 enclosure Step 2: Remove the outer cover of UC-7112 Step 3: You can find the SD socket located at the back of bottom board.
The Tool Chain requires about 100 MB of hard disk space (on your PC). The UC-7112/7110 Tool Chain can be found on the UC-7112/7110 CD. To install the Tool Chain, insert the CD into your PC and then issue the following command: #mount –t iso9660 /dev/cdrom /mnt/cdrom...
Page 24
UC-7112/7110 User’s Manual Getting Started Step 2: Click [Browse…] to select your installation location. The default location is under “C:\Moxa\Tool-Chain”.
MD5 status of each software package. Click [Next] to let the installer finish the installation. ATTENTION You can download the Tool Chain from MOXA’s website (go to the UC-7112/7110 product page, click the Documentation & Drivers link, and then click Go under Driver & Software Downloads.
UC-7112/7110 User’s Manual Getting Started Uploading “Hello” to UC-7112/7110 To use FTP to upload hello to UC-7112/7110, issue the following commands on the PC: #ftp 192.168.3.127 ftp> cd /home ftp> bin ftp> put ./hello ftp> quit #telnet 192.168.3.127 2-10...
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-7112/7110’s serial console terminal, and then delete files from the Flash ROM.
UC-7112/7110 User’s Manual Getting Started Make File Example Code The following Makefile example codes are copied from the Hello example on UC-7112/7110’s CD-ROM. srcdir = . LDFLAGS = -Wl,-elf2flt LIBS = CFLAGS = # Change these if necessary CC = arm-elf-gcc...
Software Package Chapter 3 This chapter includes information about the software that is used with UC-7112/7110 Series products. This chapter covers the following topics: UC-7112/7110 Software Architecture UC-7112/7110 Software Package...
UART for the serial ports are also included. UC-7112/7110’s Flash ROM has more than one smaller partition, which contain the Boot Loader, Linux Kernel & Root (/) File System Image, and User Directory partitions.
Configuring UC-7112/7110 Chapter 4 In this chapter, we describe how to configure UC-7112/7110 Series products. The following topics are covered in this chapter: Enabling and Disabling Daemons Adding a Web Page IPTABLES NAT Example Enabling NAT at Bootp Configuring Dial-in/Dial-out Service...
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-7112/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-7112/7110 supports three types of IPTABLES tables: Filter tables, NAT tables, and Mangle tables: A. Filter Table—includes three chains:...
Page 37
UC-7112/7110 User’s Manual Configuring UC-7112/7110 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 38
UC-7112/7110 User’s Manual Configuring UC-7112/7110 UC-7112/7110 supports the following sub-modules. Be sure to use the module that matches your application. ip_conntrack ipt_MARK ipt_ah ipt_state ip_conntrack_ftp ipt_MASQUERADE ipt_esp ipt_tcpmss ipt_conntrack_irc ipt_MIRROT ipt_length ipt_tos ip_nat_ftp ipt_REDIRECT ipt_limit ipt_ttl ip_nat_irc ipt_REJECT ipt_mac ipt_unclean...
Page 39
Example 5: Drop TCP packets addressed for port 21. # iptables –A INPUT –i eth0 –p tcp --dport 21 –j DROP Example 6: Accept TCP packets from 192.168.0.24 to UC-7112/7110’s port 137, 138, 139 # iptables –A INPUT –i eth0 –p tcp –s 192.168.0.24 --dport 137:139 –j ACCEPT Example 7: Log TCP packets that visit UC-7112/7110’s port 25.
IP addresses used on another network. One network is designated the inside network and the other is the outside network. Typically, UC-7112/7110 connects several devices on a network and maps local inside network addresses to one or more global outside IP addresses, and remaps the global IP addresses on incoming packets back into local IP addresses.
Currently, UC-7112/7110 only supports NFS (Network File System) clients. Users can open NFS service on a Linux PC to enable UC-7112/7110 to push data to it. UC-7112/7110 can use NFS to mount a remote disk as a local disk for data or log purposes.
You must first download this file to your PC, and then use Console Terminal or Telnet Console to copy the file to UC-7112/7110. You can save this file to the UC-7112/7110’s RAM disk, and then upgrade the kernel. The following is a step-by-step example.
Configuring UC-7112/7110 Upgrading the Root File System & User Directory UC-7112/7110 uses JFFS2 for root file system and user directory. By default, the root file system is pre-set to READ only. UC-7112/7110 provides a read/write user’s directory in the JFFS2 file system.
UC-7112/7110 User’s Manual Configuring UC-7112/7110 User Directory Backup—UC-7112/7110 to PC To enable the RAM disk, use the following command: />upramdisk />cd ramdisk Use the backupfs command to backup the file system. /ramdisk>backupfs /ramdisk/usrdisk-backup The file system will be backed up. Use ftp commands to transfer the usrdisk-backup to the FTP server on the PC.
Use the following commands to check the version of the kernel and root file system: To check the kernel version: />kversion To check the root file system (firmware) version of UC-7112/7110, type: />fsversion You may also check the user directory version of UC-7112/7110 by using the following command: />cat /etc/version 4-13...
UC-7112/7110 Device API Chapter 5 In this chapter, we discuss the Device API for the UC-7112/7110 Series. We introduce the APIs for the following functions: RTC (Real Time Clock) Buzzer UART Interface...
Description: Sets RTC time. Buzzer The device node is located at /dev/console. UC-7112/7110 supports µClinux standard buzzer control. UC-7112/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 Finder Chapter 6 UC-7112/7110 comes with a UC Finder utility, which has the sole purpose of searching the LAN or intranet for UC-7112/7110 units. For most of the applications, it is not easy to remember the IP addresses of Universal Communicators connected to the LAN.
UC-7112/7110 User’s Manual UC Finder Windows UC Finder The following steps describe how to install UC Finder on a Windows PC. 1. Double click the UC Finder installation program, Setup.exe, to start the installation. 2. When the Welcome to the UC Finder Setup Wizard window opens, click Next to continue.
Page 51
UC-7112/7110 User’s Manual UC Finder 4. Select the Launch UC Finder option, to use UC Finder immediately after the installation has finished, and then click Next to complete the installation. 5. When the UC Finder window opens, click Broadcast Search to search for all Universal...
Page 52
UC-7112/7110 User’s Manual UC Finder 6. The Searching window will show the Universal Communicators that have been located. You can click 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-7112/7110 User’s Manual UC Finder Linux UC Finder To use the Linux ucfinder utility, copy ucfinder from the CD-ROM to your Linux PC, and then use the following command to start ucfinder. The ucfinder utility will automatically broadcast a message over your LAN network to find the IP addresses of all UC’s connected to the LAN.
System Commands Appendix A busybox: µClinux normal command utility collection File manager copy file list file make symbolic link file mount and check file system mount delete file change file owner & group & user chmod change file owner chown change file group chgrp sync file system;...
UC-7112/7110 User’s Manual System Commands Network ping to test network ping routing table manager route display network status netstat set network IP address ifconfig trace route tracerout tftp protocol tftp user interface to TELNET protocol telnet file transfer protocol restore iptables configuration file to network...
Page 56
SNMP Agent with MIB II & RS-232 Like Appendix B Group UC-7112/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-7112/7110.
FAQ for UC-7112/7110 Appendix C FAQ 1 Why can I only use vfork( ),and am unable to use fork( )? Answer 1 uClinux only supports vfork( ). It does not support fork( ). Note that when using vfork( ), the parent process will hang until the child process calls an exec group API, or exits.
Service Information 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...
UC-7112/7110 User’s Manual Service Information MOXA Internet Services Customer satisfaction is our primary concern. 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-7112/7110 User’s Manual Service Information Problem Report Form MOXA UC-7112/7110 Customer name: Company: Tel: Fax: Email: Date: UC-7112 UC-7110 1. MOXA Product: 2. Serial Number: _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see.
UC-7112/7110 User’s Manual Service Information 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-7112 and is the answer not in the manual?
Questions and answers