EM-1240-LX User’s Manual www.moxa.com/product First Edition, November 2006 Moxa Systems Co., Ltd. Tel: +886-2-8919-1711 Fax: +886-2-89
EM-1240-LX User’s Manual Introduction 1-6EM-1240 Embedded Module EM-1240 Development Kit
EM-1240-LX User’s Manual Introduction 1-7Dimensions EM-1240 Embedded Module. EM-1240 Development Kit
EM-1240-LX User’s Manual Introduction 1-8Installing the EM-1240-LX If you would like to use the EM-1240 Embedded Module and the EM-1240 Development
EM-1240-LX User’s Manual Introduction 1-9 ATTENTION Safety First! Be sure to disconnect the power cord before installing and/or wiring your EM-1240-
EM-1240-LX User’s Manual Introduction 1-10Connecting to the Network Connect one end of the Ethernet cable to the EM-1240-LX’s 10/100M Ethernet port
EM-1240-LX User’s Manual Introduction 1-11Serial Console Port The serial console port is a 4-pin pin-header RS-232 port. It is designed for serial c
EM-1240-LX User’s Manual Introduction 1-12 ATTENTION Resetting to factory defaults will not format the user directory and erase all of the user’s da
22 Chapter 2 Getting Started In this chapter, we explain the basic procedure for getting the EM-1240-LX connected and ready for your needs. In thi
EM-1240-LX User’s Manual Getting Started 2-2Powering on the EM-1240-LX Connect the SG wire to the Shielded Contact located on the upper left corner
EM-1240-LX User’s Manual Getting Started 2-3Telnet If you know at least one of the two IP addresses and netmasks, then you can use Telnet to connect
EM-1240-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-1240-LX User’s Manual Getting Started 2-4Configuring the Ethernet Interface In this section, we use the serial console to explain how to modify t
EM-1240-LX User’s Manual Getting Started 2-53. You may also configure the EM-1240-LX to request IP addresses from a DHCP server. In this case, use
EM-1240-LX User’s Manual Getting Started 2-6Installing a Secure Digital (SD) Memory Card The EM-1240-LX provides an internal SD socket for storage e
EM-1240-LX User’s Manual Getting Started 2-7Developing Your Applications Step 1: Connect the EM-1240-LX to a Linux PC. Step 2: Install Tool Chain (G
EM-1240-LX User’s Manual Getting Started 2-8Step 1: Double click the “tool-chain\windows\setup.exe” on the EM-1240-LX CD to begin the installation,
EM-1240-LX User’s Manual Getting Started 2-9Step 3: Click [Next] to select the local package files directory, and then click [Browse…] to select whe
EM-1240-LX User’s Manual Getting Started 2-10#make to compile Hello.c. Finally, execute the program to generate hello and hello.gdb. Uploading “Hel
EM-1240-LX User’s Manual Getting Started 2-11Running “Hello” on the EM-1240-LX To run the “Hello” program issue the following commands on the EM-124
EM-1240-LX User’s Manual Getting Started 2-12Make File Example Code The following Make File example codes are copied from the Hello example on the E
33 Chapter 3 Software Package This chapter includes information about the software that is used with EM-1240-LX Series products. In this chapter,
Table of Contents Chapter 1 Introduction ...1-1 Overv
EM-1240-LX User’s Manual Software Package 3-2EM-1240-LX Software Architecture The pre-installed µClinux Operating System used by the EM-1240-LX foll
EM-1240-LX User’s Manual Software Package 3-3The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to change the pa
EM-1240-LX User’s Manual Software Package 3-4EM-1240-LX Software Package bin dev upkernel passwd -> tinylogin login -> tinylogin tinylogin
EM-1240-LX User’s Manual Software Package 3-5bin dev ptyp0 ppp pio rtc ram1 ram0 null kmem mem cua0 console tty
44 Chapter 4 Configuring the EM-1240-LX In this chapter, we describe how to configure the EM-1240-LX Series products. The following topics are cov
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-2Enabling and Disabling Daemons The following daemons are enabled when the EM-1240-LX boots up for
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-3Adding a Web Page Default Home Page address: /home/httpd/index.html You may change the default ho
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-4Destination NAT (DNAT)—changes the first destination packet IP address MASQUERADE—a special form
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-5The EM-1240-LX supports the following sub-modules. Be sure to use the module that matches your ap
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-6Define policy for chain rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT, FORWARD, PREROUT
Enabling NAT at Bootup... 4-7 Configuring Dial-in/Dial-out
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-7NAT NAT (Network Address Translation) protocol translates IP addresses used on one network into d
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-8Configuring Dial-in/Dial-out Service Dial-out Service Direct cable connection: y Without usernam
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-9<USER_PASSWORD>: Password for user account To check if PPPOE is successfully connected, use
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-10Upgrading the Kernel The EM-1240-LX kernel is em1240-1.x..bin, which can be downloaded from www.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-11 Upgrading the Root File System & User Directory The EM-1240-LX uses JFFS2 for root file sys
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-12 User Directory Backup—EM-1240-LX to PC To enable the RAM disk, use the following command: />
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-13 |+bin Loading Factory Defaults The easiest way to “Load Factory Defaults” is with the “Upgrade
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-14To check the root file system (firmware) version of the EM-1240-LX, type: />fsversion You may
55 Chapter 5 EM-1240-LX Device API In this chapter, we discuss the Device API for the EM-1240-LX Series. We introduce the APIs for the following f
EM-1240-LX User’s Manual EM-1240-LX Device API 5-2RTC (Real-time Clock) The device node is located at /dev/rtc. The EM-1240-LX supports µClinux stan
11 Chapter 1 Introduction The Moxa EM-1240-LX Series of Mini RISC-based Ready-to-Run Embedded Computer features dual 10/100 Mbps Ethernet ports an
66 Chapter 6 UC Finder The EM-1240-LX comes with a UC Finder utility, which has the sole purpose of searching the LAN or intranet for the EM-1240-
EM-1240-LX User’s Manual UC Finder 6-2Windows UC Finder The following steps describe how to install UC Finder on a Windows PC. 1. Double click the
EM-1240-LX User’s Manual UC Finder 6-34. Select the Launch UC Finder option, to use UC Finder immediately after the installation has finished, and
EM-1240-LX User’s Manual UC Finder 6-46. The Searching window will show the Universal Communicators that have been located. You can click Stop as
EM-1240-LX User’s Manual UC Finder 6-5 ATTENTION UC finder is designed solely to find IP addresses of networked Universal Communicators. It cannot
AA Appendix A System Commands busybox: µClinux normal command utility collection File manager cp copy file ls list file ln make symbolic link file
EM-1240-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-1240-LX has a built-in SNMP (Simple Network Management Protocol) agent that su
EM-1240-LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-2ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrEr
EM-1240-LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3snmp MIB snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames
EM-1240-LX User’s Manual Introduction 1-2Overview The EM-1240-LX Series of mini RISC-based communication platforms are ideal for your embedded appli
CC Appendix C EM-1240-LX FAQ FAQ 1 Why can I only use vfork( ),and am unable to use fork( )? Answer 1 uClinux only supports vfork( ). It does no
DD Appendix D Service Information This appendix shows you how to contact Moxa for information about this and other products, and how to report pro
EM-1240-LX User’s Manual Service Information D-2Moxa Internet Services Customer satisfaction is our primary concern. To ensure that customers recei
EM-1240-LX User’s Manual Service Information D-3Problem Report Form Moxa EM-1240-LX Customer name: Company: Tel: Fax: Email: Date: 1. Moxa Prod
EM-1240-LX User’s Manual Service Information D-4Product Return Procedure For product repair, exchange, or refund, the customer must: Provide ev
EM-1240-LX User’s Manual Introduction 1-3Product Specifications Hardware Specifications Model EM-1240 Embedded Module CPU MOXA ART ARM9 32-bit 192 M
EM-1240-LX User’s Manual Introduction 1-4Software Specifications Kernel µClinux Kernel 2.6.9 Supports dynamic driver module load / unload Protocol S
EM-1240-LX User’s Manual Introduction 1-5Hardware Block Diagram Appearance EM-1240 Embedded Module + Development Kit EM-1240 Embedded Module EM-1
Comentarios a estos manuales