Moxa Technologies UC-7110 Series User Manual

Moxa Technologies UC-7110 Series User Manual

Risc-based communication platform
Hide thumbs Also See for UC-7110 Series:
Table of Contents

Advertisement

UC-7110 Series User's Manual
www.moxa.com/product
Second Edition, July 2005
Moxa Technologies Co., Ltd.
Tel:
+886-2-8919-1230
Fax:
+886-2-8919-1231
Web: www.moxa.com
MOXA Technical Support
Worldwide:
The Americas
support@moxa.com.tw
support@moxa.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UC-7110 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Moxa Technologies UC-7110 Series

  • Page 1 UC-7110 Series User’s Manual www.moxa.com/product Second Edition, July 2005 Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 Web: www.moxa.com MOXA Technical Support Worldwide: support@moxa.com.tw The Americas support@moxa.com...
  • Page 2: Copyright Notice

    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 prohibited.
  • Page 3: Table Of Contents

    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...
  • Page 5: 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 Product Features Product Specifications...
  • Page 6: Overview

    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.
  • Page 7: Product Specifications

    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...
  • Page 8: Software Specifications (Uc-7110-Lx)

    UC-7110 Series User’s Manual Software Specifications (UC-7110-LX) Kernel Protocol Stack JFFS2 File System ROMFS Sash (V1.1.1) Pppd (V1.13) snmpd busybox (V0.60.4) Tinylogin (V0.80) Telnetd (V1.9) telnet (busybox V0.60.4) inetd (Distributed 20030522) TCP server manager program ftpd (V8.5) ftp (V0.16) ntpdate (V4.1.1) Tool Chain Arm-elf-gcc (V2.95.3)
  • Page 9: Hardware Block Diagram

    UC-7110 Series User’s Manual Hardware Block Diagram LAN1 S3C2500 ARM940T 166MHz Power 8MB Flash Circuit 16MB SDRAM MOXA MU150 Port 1 RS-232/422/485 Appearance 12- 48 VDC Serial Port 1 (RS-232/422/485) Ethernet LAN2 MOXA MU150 Port 2 Ethernet x 2 (10/100BaseTx)
  • Page 10: Dimensions

    UC-7110 Series User’s Manual Dimensions 21.3 (0.8) 47.3 (1.56) unit = mm (inch) 6 (0.24) V+ RESET LAN1 LAN2 12-48V Ready UC-7110 Universal Communicator RS-232/422/485 26 (1.02) 77 (3.03) 88 (3.46) 100 (4.18) Introduction 4 (0.16) 12.5 (0.49) 25 (0.98)
  • Page 11: Installing Uc-7110

    UC-7110 Series User’s Manual Installing UC-7110 Top-End View Reset Button Terminal Block Power Input Nameplate View 12-48V Ready Bottom-End View DB9 (male) Serial Ports RJ45 10/100 Mbps Ethernet Ports RESET LAN1 LAN2 UC-7110 Universal Communicator RS-232/422/485 Introduction DIN-Rail screw hole...
  • Page 12: Led Indicators

    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.
  • Page 13: Connecting The Power

    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.
  • Page 14: Connecting To A Serial Device

    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...
  • Page 15: Additional Functions

    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.
  • Page 16: Real Time Clock

    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.
  • Page 17: 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 Chain Compiling Hello.c Uploading “Hello”...
  • Page 18: Powering On Uc-7110

    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.
  • Page 19: Telnet

    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:...
  • Page 20: Configuring The Ethernet Interface

    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.
  • Page 22: Developing Your Applications

    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:...
  • Page 23: Compiling Hello.c

    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...
  • Page 24: Uploading "Hello" To Uc-7110

    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...
  • Page 25: Running "Hello" On Uc-7110

    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.
  • Page 26: Make File Example Code

    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...
  • Page 28: Chapter 3 Software Package

    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...
  • Page 29: 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.uClinux.org. In addition to the Standard POSIX API, device drivers for the buzzer, and UART for the serial ports are also included.
  • Page 30: Read-Only File System (Romfs)

    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.
  • Page 31: Uc-7110 Software Package

    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.
  • Page 32 UC-7110 Series User’s Manual busybox backupfs downramdisk upramdisk ttyS0 tty3 tty2 tty1 tty0 rom1 rom0 ptypf ptype ptypd ptypc ptypb ptypa ptyp9 ptyp8 ptyp7 ptyp6 ptyp5 ptyp4 ptyp3 ptyp2 ptyp1 ptyp0 ram1 ram0 null kmem cua0 console tty Software Package...
  • Page 33: Configuring Uc-7110

    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 &...
  • Page 34: Enabling And Disabling Daemons

    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.
  • Page 35: Adding A Web Page

    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.
  • Page 39: Nat

    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.
  • Page 40: Enabling Nat At Bootup

    #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.
  • Page 41: Dial-In Service

    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.
  • Page 42: Upgrading The Kernel & Root File System

    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.
  • Page 43: Upgrading The User Directory

    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>...
  • Page 45: User Directory Backup-Uc-7110 To Pc

    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.
  • Page 46: Loading Factory Defaults

    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.
  • Page 47: Uc-7110 Device Api

    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...
  • Page 48: Rtc (Real Time Clock)

    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);...
  • Page 49: 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 problem solving and testing in the field.
  • Page 50: Windows Uc Finder

    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.
  • Page 53: Linux Ucfinder

    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.
  • Page 54: Appendix A System Commands

    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 &...
  • Page 55: Network

    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.
  • Page 57: Appendix B Snmp Agent With Mib Ii & Rs-232 Like Group

    UC-7110 Series User’s Manual ip MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrErrors ipInAddrErrors ipForwDatagrams ipInUnknownProtos ipInDiscards ipInDelivers ipOutRequests ipOutDiscards ipOutNoRoutes ipReasmTimeout ipReasmReqds ipReasmFails ipFragOKs ipFragFails ipFragCreates ipAddrTable ipAdEntAddr ipAdEntIfIndex ipAdEntNetMask ipAdEntBcastAddr ipAdEntReasmMaxSize ipRouteTable ipRouteDest ipRouteIfIndex ipRouteMetric1 ipRouteMetric2 ipRouteMetric3 ipRouteMetric4 ipRouteNextHop ipRouteType ipRouteProto...
  • Page 58 UC-7110 Series User’s Manual snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames snmpInBadCommunityUses snmpInASNParseErrs snmpInTooBigs snmpInNoSuchNames snmpInBadValues snmpInReadOnlys snmpInGenErrs snmpInTotalReqVars snmpInTotalSetVars snmpInGetRequests snmpInGetNexts snmpInSetRequests snmpInGetResponses snmpInTraps snmpOutTooBigs snmpOutNoSuchNames snmpOutBadValues snmpOutGenErrs snmpOutGetRequests snmpOutGetNexts snmpOutSetRequests snmpOutTraps snmpEnableAuthenTraps RFC1317 RS-232 like group supported variables rs232 MIB...
  • Page 59: Appendix C Faq For Uc-7110

    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.
  • Page 61: Appendix D 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 Service Information...
  • Page 62: Moxa Internet Services

    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.
  • Page 63: Problem Report Form

    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.
  • Page 64: Product Return Procedure

    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.

This manual is also suitable for:

Uc-7110-lx

Table of Contents