EM-1220 LX User’s Manual Fourth Edition, January 2010 www.moxa.com/product © 2010 Moxa Inc. All rights reserved. Reproduction without permission is
EM-1220 LX User’s Manual Introduction Appearance EM-1220-LX Embedded Module + EM-1220-DK Carrier Board EM-1220-LX Embedded Module MOXA ART ARM9 32-
EM-1220 LX User’s Manual Introduction Dimensions EM-1220-LX Embedded Module 80cm50cm EM-1220-DK Carrier Board Installing the EM-1220-LX To use the
EM-1220 LX User’s Manual Introduction Wiring Requirements This section describes how to connect the EM-1220-LX to serial devices. Be sure to heed the
EM-1220 LX User’s Manual Introduction ATTENTION This product should be mounted to a well-grounded mounting surface such as a metal panel. V+V-SG12-
EM-1220 LX User’s Manual Introduction Connecting to a Serial Device Connect the serial cable between the EM-1220-DK and the serial device(s). Serial
EM-1220 LX User’s Manual Introduction Additional Functions Reset Button Press the Reset button on the EM-1220-DK continuously for at least 5 seconds
22 Chapter 2 Getting Started In this chapter, we explain the basic procedure for getting the EM-1220-LX connected and ready for use. In this chapte
EM-1220 LX User’s Manual Getting Started Powering on the EM-1220-DK Connect the SG wire to the Shielded Contact located on the upper left corner of t
EM-1220 LX User’s Manual Getting Started Telnet If you know at least one of the two IP addresses and netmasks, then you can use Telnet to connect to
EM-1220 LX User’s Manual Getting Started Configuring the Ethernet Interface In this section, we use the serial console to explain how to modify the E
EM-1220 LX User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the ter
EM-1220 LX User’s Manual Getting Started 2. You may also configure the EM-1220-LX to request IP addresses from a DHCP server. In this case, use the
EM-1220 LX User’s Manual Getting Started Installing a Secure Digital (SD) Memory Card The EM-1220 Development Kit has an internal SD socket for stora
EM-1220 LX User’s Manual Getting Started Developing Your Applications Step 1: Connect the EM-1220-DK to a Linux PC. Step 2: Install Tool Chain (GNU C
EM-1220 LX User’s Manual Getting Started Compiling Hello.c The Tool Chain path is: PATH=/usr/local/bin:$PATH The EM-1220-LX CD includes several examp
EM-1220 LX User’s Manual Getting Started Uploading “Hello” to the EM-1220-LX To use FTP to upload hello to the EM-1220-LX, issue the following comman
EM-1220 LX User’s Manual Getting Started Running “Hello” on the EM-1220-LX To run the Hello program, issue the following commands on the EM-1220-LX:
EM-1220 LX User’s Manual Getting Started 2-11Make File Sample Code The following Make File example code was copied from the Hello example on the EM-
33 Chapter 3 Software Package This chapter includes information about the software used with the EM-1220-LX. In this chapter, we cover the followin
EM-1220 LX User’s Manual Software Package EM-1220-LX Software Architecture The pre-installed µClinux operating system used by the EM-1220-LX follows
EM-1220 LX User’s Manual Software Package The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to change the partit
Table of Contents Chapter 1 Introduction ...1-1 Overv
EM-1220 LX User’s Manual Software Package 3-4EM-1220-LX Software Package Bin dev upkernel passwd -> tinylogin login -> tinylogin tinylogin
EM-1220 LX User’s Manual Software Package Bin dev ptyp0 ppp pio rtc ram1 ram0 null kmem mem cua0 console tty 3-5
44 Chapter 4 Configuring the EM-1220-LX In this chapter, we describe how to configure the EM-1220-LX Series products. The following topics are cove
EM-1220 LX User’s Manual Configuring the EM-1220-LX Enabling and Disabling Daemons The following daemons are enabled when the EM-1220-LX boots up for
EM-1220 LX User’s Manual Configuring the EM-1220-LX Adding a Web Page Default Home Page address: /home/httpd/index.html You may change the default ho
EM-1220 LX User’s Manual Configuring the EM-1220-LX Source NAT (SNAT)—changes the first source packet IP address Destination NAT (DNAT)—changes the f
EM-1220 LX User’s Manual Configuring the EM-1220-LX The EM-1240-LX supports the following sub-modules. Be sure to use the module that matches your a
EM-1220 LX User’s Manual Configuring the EM-1220-LX Examples: # iptables -L -n In this example, since we do not use the -t parameter, the system use
EM-1220 LX User’s Manual Configuring the EM-1220-LX Examples: Example 1: Accept all packets from lo interface. # iptables –A INPUT –i lo –j ACCEPT Ex
EM-1220 LX User’s Manual Configuring the EM-1220-LX Enabling NAT at Bootup In most real world situations, you should use a simple shell script to ena
Configuring Dial-in/Dial-out Service ... 4-8 Dial-out Service...
EM-1220 LX User’s Manual Configuring the EM-1220-LX Configuring PPPoE PPPoE relies on two widely accepted standards: PPP and Ethernet, which permits
EM-1220 LX User’s Manual Configuring the EM-1220-LX For example, to unload the UART driver, type the following command: />rmmod mxser For the EM
EM-1220 LX User’s Manual Configuring the EM-1220-LX Upgrading the Root File System & User Directory The EM-1220-LX uses JFFS2 for the root file
EM-1220 LX User’s Manual Configuring the EM-1220-LX 4-12Loading Factory Defaults The easiest way to “Load Factory Defaults” is with the “Upgrade Use
55 Chapter 5 EM-1220-LX Device API In this chapter, we discuss the Device API for the EM-1220-LX Series. We introduce the APIs for the following fu
EM-1220 LX User’s Manual EM-1220-LX Device API RTC (Real-time Clock) The device node is located at /dev/rtc. The EM-1220-LX supports µClinux standard
EM-1220 LX User’s Manual EM-1220-LX Device API GPIO GPIO means General Purpose I/O. It is a user-programmable design that both digital input and digi
EM-1220 LX User’s Manual EM-1220-LX Device API int set_gpio_mode(unsigned int pio, int mode) --to configure GPIO ports to be DI ports or DO ports.
EM-1220 LX User’s Manual EM-1220-LX Device API Limits 1. Both SD card and GPIO share the same signals. To enable GPIO, SD must be disabled, and vice
EM-1220 LX User’s Manual EM-1220-LX Device API } typedef struct gpio_set_struct { int io_number; int mode_data; } gpio_t; /* * To get the GPIO
11 Chapter 1 Introduction The Moxa EM-1220-LX is a mini RISC-based ready-to-run embedded module that features dual 10/100 Mbps Ethernet ports and t
EM-1220 LX User’s Manual EM-1220-LX Device API 5-7 return GPIO_NODE_ERROR; pset.io_number = gpio_no; pset.mode_data = mode; if ( ioctl(fd, IO
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
EM-1220 LX User’s Manual System Commands A-2Network ping ping to test network route routing table manager netstat display network status ifconfig se
BB Appendix B SNMP Agent with MIB II & RS-232 Like Group The EM-1220-LX has a built-in SNMP (Simple Network Management Protocol) agent that sup
EM-1220 LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrErrors
EM-1220 LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames
CC Appendix C EM-1220-LX FAQ FAQ 1 Why can I only use vfork( ),and am not able to use fork( )? Answer 1 μClinux only supports vfork( ). It does n
EM-1220 LX User’s Manual Introduction Overview The EM-1220-LX is a mini RISC-based communication platform that is ideal for embedded applications. Th
EM-1220 LX User’s Manual Introduction Product Specifications Hardware Specifications Model EM-1220-LX Embedded Module CPU MOXA ART ARM9 32-bit 192 MH
EM-1220 LX User’s Manual Introduction Storage temperature -20 to 80°C (-4 to 176°F), 5 to 95% RH -40 to 85°C (-40 to 185°F) is optional for EM-1220-T
EM-1220 LX User’s Manual Introduction Hardware Block Diagram 1-5
Comments to this Manuals