UC-7101/7110/7112 User’s Manual Eighth Edition, February 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction without permis
UC-7101/7110/7112 Software User’s Manual Getting Started Powering on the UC-7101/7110/7112 Connect the SG wire to the Shielded Contact located on the
UC-7101/7110/7112 Software User’s Manual Getting Started Telnet If you know at least one of the two IP addresses and netmasks, then you can use Telne
UC-7101/7110/7112 Software User’s Manual Getting Started Configuring the Ethernet Interface In this section, we use the serial console to explain how
UC-7101/7110/7112 Software User’s Manual Getting Started 3. You may also configure the UC-7101/7110/7112 to request IP addresses from a DHCP server.
UC-7101/7110/7112 Software User’s Manual Getting Started Developing Your Applications Step 1: Connect the UC-7101/7110/7112 to a Linux PC. Step 2: In
UC-7101/7110/7112 Software User’s Manual Getting Started Compiling Hello.c The Tool Chain path is: PATH=/usr/local/bin:$PATH The UC-7101/7110/7112 CD
UC-7101/7110/7112 Software User’s Manual Getting Started Running “Hello” on the UC-7101/7110/7112 To run the “Hello” program issue the following com
UC-7101/7110/7112 Software User’s Manual Getting Started ATTENTION Be sure to calculate the amount of Flash Memory used by the User File System in
UC-7101/7110/7112 Software User’s Manual Getting Started 2-10LIBS = CFLAGS = # Change these if necessary CC = arm-elf-gcc CPP = arm-elf-gcc -E
33 Chapter 3 Software Package This chapter includes information about the software that is used with the UC-7101/7110/7112 Series of embedded compu
UC-7101/7110/7112 User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with
UC-7101/7110/7112 Software User’s Manual Software Package UC-7101/7110/7112 Software Architecture The pre-installed µClinux operating system used by
UC-7101/7110/7112 Software User’s Manual Software Package The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to c
UC-7101/7110/7112 Software User’s Manual Software Package 3-4UC-7101/7110/7112 Software Package bin dev upkernel passwd -> tinylogin login ->
44 Chapter 4 Configuring UC-7101/7110/7112 In this chapter, we describe how to configure the UC-7101/7110/7112 embedded computers. The following to
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Enabling and Disabling Daemons The following daemons are enabled when the UC-71
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Adding a Web Page Default Home Page address: /home/httpd/index.html You may cha
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Source NAT (SNAT)—changes the first source packet IP address Destination NAT (D
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 NOTE The UC-7101/7110/7112 do NOT support IPV6 and ipchains. IPTABLES suppo
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 #iptables –t nat –P PREROUTING ACCEPT #iptables –t nat –P OUTPUT ACCEPT #iptabl
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 NAT Example The IP addresses of all packets leaving LAN1 are changed to 192.168
Table of Contents Chapter 1 Introduction ...1-1 Overv
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Enabling NAT at Bootup In most real world situations, you should use a simple s
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Configuring PPPoE PPPoE relies on two widely accepted standards: PPP and Ethern
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 For example, to unload the UART driver, type the following command: />rmmod
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 Use the upkernel command to upgrade the kernel and root file system. /ramdisk&g
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112 You will also need to restore factory defaults to load the new settings. To do
55 Chapter 5 UC-7101/7110/7112 Device API In this chapter, we discuss the Device API for the UC-7101/7110/7112 Series. We introduce the APIs for th
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API RTC (Real Time Clock) The device node is located at /dev/rtc. The UC-7101/7110/7
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API WDT (Watch Dog Timer) 1. Introduction The WDT works like a watch dog function. Y
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API Output 0 (zero) for no error. Any other number indicates an error. You can get t
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API 4. Special Note When you “kill the application with -9” or “kill without option”
WDT (Watch Dog Timer) ... 5-3 Appendix A System
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API 5-6 struct timeval time; time.tv_sec = msec / 1000; time.tv_usec = (
AA Appendix A System Commands µClinux normal command utility collection File manager cp copy file ls list file ln make symbolic link file mount mou
UC-7101/7110/7112 Software User’s Manual System Commands A-2Network ping ping to test network route routing table manager netstat display network st
BB Appendix B SNMP Agent with MIB II & RS-232 Like Group The UC-7101/7110/7112 has a built-in SNMP (Simple Network Management Protocol) agent t
UC-7101/7110/7112 Software User’s Manual SNMP Agent ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrErrors ipInAddrErrors ipFo
UC-7101/7110/7112 Software User’s Manual SNMP Agent B-3snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames snmpInBadCommunityU
CC Appendix C FAQ FAQ 1 Why am I only able to use vfork ( ),and cannot use fork ( )? Answer 1 μClinux only supports vfork ( ). It does not suppor
11 Chapter 1 Introduction The Moxa UC-7101/7110/7112 Series of mini RISC-based ready-to-run embedded computers are ideal for your embedded applicat
UC-7101/7110/7112 Software User’s Manual Introduction Overview The UC-7101/7110/7112 Series of mini RISC-based communication platforms are ideal for
UC-7101/7110/7112 Software User’s Manual Introduction 1-3Product Features The UC-7101/7110/7112 embedded computers have the following features: y M
UC-7101/7110/7112 Software User’s Manual Introduction 340 mA @ 12 VDC, 4.5W (UC-7110/7112) Operating temperature -10 to 60oC, (14 to 140oF), 5 to 95%
22 Chapter 2 Getting Started In this chapter, we explain the basic procedure for getting the UC-7101/7110/7112 connected and ready to use. This cha
Comments to this Manuals