Moxa Technologies UC-7112 User Manual
Moxa Technologies UC-7112 User Manual

Moxa Technologies UC-7112 User Manual

Hide thumbs Also See for UC-7112:
Table of Contents

Advertisement

Quick Links

UC-7112/7110 User's Manual
Third Edition, May 2006
www.moxa.com/product
MOXA Systems Co., Ltd.
Tel:
+886-2-8919-1711
Fax:
+886-2-8919-1722
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-7112 and is the answer not in the manual?

Questions and answers

Summary of Contents for Moxa Technologies UC-7112

  • Page 1 UC-7112/7110 User’s Manual Third Edition, May 2006 www.moxa.com/product MOXA Systems Co., Ltd. Tel: +886-2-8919-1711 Fax: +886-2-8919-1722 Web: www.moxa.com MOXA Technical Support Worldwide: support@moxa.com.tw The Americas support@moxa.com...
  • Page 2 UC-7112/7110 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 © 2006 MOXA Systems Co., Ltd. All rights reserved.
  • Page 3: Table Of Contents

    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 ................
  • Page 5: Chapter 1 Introduction

    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...
  • Page 6: Overview

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

    32-bit ARM9 RISC microcontroller On-board 16 MB RAM, 8 MB Flash ROM Two RS-232/422/485 serial ports Dual 10/100 Mbps Ethernet Support SD memory card for storage expansion (UC-7112 only) µClinux-Ready communication platform DIN-Rail or wall mounting installation Robust fanless design...
  • Page 8: Software Specifications

    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...
  • Page 9: Hardware Block Diagram

    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...
  • Page 10: Dimensions

    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)
  • Page 11: Installing Uc-7112/7110

    UC-7112/7110 User’s Manual Introduction Installing UC-7112/7110 The installation of UC-7112/7110 is depicted in the following figure: Top-End View Reset Button Terminal Block RJ45 10/100 Mbps Ethernet Ports Power Input Nameplate View RESET LAN1 LAN2 12-48V Ready DIN-Rail screw hole UC-7110...
  • Page 12: Led Indicators

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

    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.
  • 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-7112/7110 boot up message. Serial Console Port & Pinouts Serial Console Cable...
  • Page 15: Internal Sd Socket

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

    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.
  • Page 17: Chapter 2 Getting Started

    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...
  • Page 18: Powering On Uc-7112/7110

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

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

    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.
  • Page 22: Install Secure Digital (Sd) Memory Card (Uc-7112 Only)

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

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

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

    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...
  • Page 27: Running "Hello" On Uc-7112/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-7112/7110’s serial console terminal, and then delete files from the Flash ROM.
  • Page 28: Make File Example Code

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

    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...
  • Page 30: Uc-7112/7110 Software Architecture

    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.
  • Page 31: Journaling Flash File System (Jffs2)

    UC-7112/7110 User’s Manual Software Package Flash Context Flash Address Size Access control Boot loader 0 – 0x3ffff 256 K Read ONLY Kernet & 0x40000– 0x3fffff Read ONLY Root File System JFFS2 User Directory 0x400000 – 0x7fffff 4 M – 256 K...
  • Page 32: Uc-7112/7110 Software Package

    UC-7112/7110 User’s Manual Software Package UC-7112/7110 Software Package upkernel mtdblock1 passwd -> tinylogin mtdr1 login -> tinylogin mtd1 tinylogin mtdblock0 telnetd mtdr0 snmpd mtd0 mail cum1 cum0 routed ttyM1 netstat ttyM0 urandom chat random pppd zero portmap ttypf ntpdate ttype...
  • Page 33 UC-7112/7110 User’s Manual Software Package ptyp0 ram1 ram0 null kmem cua0 console...
  • Page 34: Configuring Uc-7112/7110

    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...
  • Page 35: 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-7112/7110 plays the role of Time client, and sends requests to the Network Time Server to request the correct time.
  • Page 36: Adding A Web Page

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

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

    UC-7112/7110 User’s Manual Configuring UC-7112/7110 Configuring Dial-in/Dial-out Service Dial-out Service Direct cable connection: Without username and password, use: />pppd connect ‘chat –v’ /dev/ttyM0 38400 crtscts& With username and password, use: />pppd connect ‘chat –v’ user xxxxx password xxxxx /dev/ttyM0 38400 crtscts&...
  • Page 42: How To Mount A Remote Nfs Server

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

    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.
  • Page 44: Upgrading The Root File System & User Directory

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

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

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

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

    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);...
  • Page 49: Chapter 6 Uc Finder

    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.
  • Page 50: Windows Uc Finder

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

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

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

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

    UC-7112/7110 User’s Manual SNMP Agent with MIB II & RS-232 Like Group ip MIB tcp MIB udp MIB ipForwarding tcpRtoAlgorithm udpInDatagrams ipDefaultTTL tcpRtoMin udpNoPorts ipInReceives tcpRtoMax udpInErrors ipInHdrErrors tcpMaxConn udpOutDatagrams ipInAddrErrors tcpActiveOpens udpTable ipForwDatagrams tcpPassiveOpens udpLocalAddress ipInUnknownProtos tcpAttemptFails udpLocalPort ipInDiscards...
  • Page 58 UC-7112/7110 User’s Manual SNMP Agent with MIB II & RS-232 Like Group 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...
  • Page 59: Appendix C Faq 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.
  • Page 60: Appendix D Service Information

    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...
  • Page 61: Moxa Internet Services

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

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

    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.

This manual is also suitable for:

Uc-7110

Table of Contents