Moxa Technologies NPort 1220 User Manual

Browse online or download User Manual for Networking Moxa Technologies NPort 1220. Moxa Technologies NPort 1220 User`s manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - EM-1220 LX User’s Manual

EM-1220 LX User’s Manual Fourth Edition, January 2010 www.moxa.com/product © 2010 Moxa Inc. All rights reserved. Reproduction without permission is

Page 2

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-

Page 3 - Table of Contents

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

Page 4

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

Page 5 - Introduction

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-

Page 6 - Ordering Information

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

Page 7 - Product Specifications

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

Page 8 - Software Specifications

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

Page 9 - Hardware Block Diagram

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

Page 10 - Appearance

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

Page 11 - LED Indicators

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

Page 12 - Wiring Requirements

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

Page 13 - Connecting to the Network

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

Page 14 - Internal SD Socket

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

Page 15 - Additional Functions

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

Page 16 - Getting Started

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

Page 17 - Powering on the EM-1220-DK

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

Page 18

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:

Page 19

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-

Page 20

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

Page 21

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

Page 22 - Developing Your Applications

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

Page 23 - Compiling Hello.c

Table of Contents Chapter 1 Introduction ...1-1 Overv

Page 24

EM-1220 LX User’s Manual Software Package 3-4EM-1220-LX Software Package Bin dev upkernel passwd -> tinylogin login -> tinylogin tinylogin

Page 25

EM-1220 LX User’s Manual Software Package Bin dev ptyp0 ppp pio rtc ram1 ram0 null kmem mem cua0 console tty 3-5

Page 26 - Make File Sample Code

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

Page 27 - Software Package

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

Page 28

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

Page 29

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

Page 30

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

Page 31

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

Page 32 - Configuring the EM-1220-LX

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

Page 33

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

Page 34 - IPTABLES

Configuring Dial-in/Dial-out Service ... 4-8 Dial-out Service...

Page 35

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

Page 36

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

Page 37 - Append or delete rules:

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

Page 38 - NAT Example

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

Page 39 - Dial-in Service

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

Page 40 - Configuring PPPoE

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

Page 41 - Upgrading the Kernel

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

Page 42

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.

Page 43 - Loading Factory Defaults

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

Page 44 - EM-1220-LX Device API

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

Page 45 - UART Interface

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

Page 46 - API List

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

Page 47 - How to use

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

Page 48 - GPIO Library Source Code

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

Page 49

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

Page 50

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

Page 51 - System Commands

EM-1220 LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames

Page 52 - Moxa Special Utilities

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

Page 53

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

Page 54

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

Page 55

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

Page 56 - EM-1220-LX FAQ

EM-1220 LX User’s Manual Introduction Hardware Block Diagram 1-5

Comments to this Manuals

No comments