Gebruiksaanwijzing /service van het product EM-1240-LX van de fabrikant Moxa Technologies
Ga naar pagina of 64
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-8919-1722 Web: www.
EM-1240-LX User’s Manual The software d escribed in t his manual is furnished u nder a license a greement and m ay be used only in accordance with the term s of that agreement. Copyright Notice Copyright © 2006 Mo xa Systems Co., Ltd. All rights reserved.
Table of Contents Chapter 1 Introduction .................................................................................................. 1-1 Overview...................................................................................................
Enabling NAT at Bo otup .............................................................................................. 4-7 Configuring Dial-in/ Dial-out Ser vice ...................................................................................... 4-8 Dial-out Service .
1 1 Chapter 1 Introduction The Moxa EM -1240-LX Seri es of Mini RIS C-based Rea dy-to-Run Em bedded Com puter features dual 10/100 Mbps Ethernet ports and four RS-232/422/485 serial ports in a built-in µClinux ARM9 mod ule.
EM-1240-LX User’s Manual Introduction 1-2 Overview The EM-1240-LX Series of m ini RISC-based communication platform s are ideal for your embedded a pplications. The EM-1240 -LX comes wit h 4 RS-23 2/422/485 s erial ports a nd dual 10/100 Mbps Ethernet LAN ports to provide users with a versatile communication platform.
EM-1240-LX User’s Manual Introduction 1-3 Product Specifications Hardware Specifications Model EM-1240 Embedded Module CPU MOXA AR T AR M9 32-bit 192 MHz processor RAM 16 MB Flash 8 MB LAN Auto-sensi ng 10/100 Mbps x 2 LAN Protecti on Built-in 1.
EM-1240-LX User’s Manual Introduction 1-4 Software Specifications Kernel µClinux Ke rnel 2.6. 9 Supports dy namic driver m odule load / unload Prot ocol S tack ARP , ICMP , IPV4, TCP , UDP , FTP , .
EM-1240-LX User’s Manual Introduction 1-5 Hardware Block Diagram Appearance EM-1240 Embedded Module + Dev elopment Kit EM-1240 Embedded Module EM-1240 Development Kit.
EM-1240-LX User’s Manual Introduction 1-6 EM-1240 Embedded Module EM-1240 Development Kit.
EM-1240-LX User’s Manual Introduction 1-7 Dimensions EM-1240 Embedded Module . EM-1240 Development Kit.
EM-1240-LX User’s Manual Introduction 1-8 Installing the EM-1240-LX If you wo uld like to u se the EM -1240 Em bedded Modul e and the EM -1240 Devel opment Kit, insert the EM-1240 Embedded Module vertically onto the Development Kit.
EM-1240-LX User’s Manual Introduction 1-9 ATTENTION Safety First! Be sure to disconnect th e power cord before installin g and/or wiring your EM-1240-LX. Wiring Caution! Calculate the maximum poss ible current in each power wire and common wire. Obse rve all electrical codes dictating the maximum current allowable for each wire si ze.
EM-1240-LX User’s Manual Introduction 1-10 Connecting to the Network Connect one end of the Ethern et cable to the EM-1240-LX’ s 10/100M Ethernet port and the oth er end of the cable to the Ethernet network.
EM-1240-LX User’s Manual Introduction 1-11 Serial Console Port The serial cons ole port is a 4-pin pin- header RS-232 port. It is desi gned for serial console terminals, w hich are useful f or identify ing the EM-1 240-LX bo ot up m essage.
EM-1240-LX User’s Manual Introduction 1-12 ATTENTION Resetting to facto ry defaults will no t format the us er directory and erase all of the user ’ s data. Loading factory defaults will on ly load the config uration file. The files in the EM-1240-LX that will be replaced include: a.
2 2 Chapter 2 Getting Started In this chapter , we explain the basic proced ure for getting the EM-1240-LX conn ected and ready for your needs. In this chapter , we cover the following topics: Pow.
EM-1240-LX User’s Manual Getting Started 2-2 Powering on the EM-1240-LX Connect the SG wire to the Shielded Con tact located on the upper left corner of the EM-1240-LX, and then power on th e EM-1240-LX by connecting the power adaptor . It takes about 16 seco nds for the system to boot up.
EM-1240-LX User’s Manual Getting Started 2-3 Telnet If you know at least one of the two IP addre sses and netm asks, then you can use Telnet to connect to the EM-1240-LX’s console. Default IP Address Default Netmask LAN 1 192.168.3.127 255.255.255.
EM-1240-LX User’s Manual Getting Started 2-4 Configuring the Ethernet Interface In this section, we use the serial console t o explain how to modify the EM-1240-LX ’ s network settings. 1. Change direct ories by issui ng the comm and cd /etc . 2. Type the com mand vi rc to use the VI Editor to edit th e co nfiguration file.
EM-1240-LX User’s Manual Getting Started 2-5 3. You may also configure th e EM-1240-LX to requ est IP addresses from a DHCP serve r. In this case, use the sharp sign (#) to comm ent out one or both “ifconfig” lines, and then add th e setting about the “dh cpcd” into the rc file as below.
EM-1240-LX User’s Manual Getting Started 2-6 Installing a Secure Digital (SD) Memory Card The EM-1240-LX provides a n internal SD socket for storag e expansion. T o access this socket, perform the following steps to install the SD memory card. St e p 1 : Find the exact locatio n of the SD socket.
EM-1240-LX User’s Manual Getting Started 2-7 Developing Your Applications Step 1: Connect the EM-1240- LX to a Linux PC. Step 2: Install Tool C hain (G NU Cross Com piler & uC libc). Step 3: Configure cr oss compil er and uCli bc environm ent variables.
EM-1240-LX User’s Manual Getting Started 2-8 Step 1: Double cl ick the “tool -chainwindowsset up.exe” on the EM-1240-LX C D to begi n the installation, then click [Next]. Step 2: Click [Browse…] to select your installa tion location. The defau lt location is under C:UC .
EM-1240-LX User’s Manual Getting Started 2-9 Step 3: Click [Next] to select the local package files direct ory, and th en click [Browse…] to select where your installation sour ce is. The default path is the location of the “setu p.exe” file. Step 4: Click [Next] to begin the package installation .
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 “Hello” to the EM-1240-LX T o use FTP to upload hello to the EM-1240-LX, issue the following commands on the PC: #ftp 192.
EM-1240-LX User’s Manual Getting Started 2-11 Running “Hello” on the EM-1240-LX T o run the “Hello” program issue t he fo llowing com mands on t he EM-1240-L X: # chmod 755 hello #./hello The words “hello world” are pr inted on the screen.
EM-1240-LX User’s Manual Getting Started 2-12 Make File Example Code The following Make File exam ple codes are copied from the Hello example on the EM-1240-LX’ s CD-ROM.
3 3 Chapter 3 Software Package This chapter includ es information about the so ftware that is used with EM-1240-LX Series products. In this chapter , we cover the following topics: EM-1240-LX Soft.
EM-1240-LX User’s Manual Software Package 3-2 EM-1240-LX Software Architecture The pre-installed µClinux Operatin g System used by the EM-1240-LX follows the standard µClinux archi tecture, m aking program s that fo llow the POSIX standard easily ported to the EM-1240-LX by using the GNU T oo l Chain provided by www .
EM-1240-LX User’s Manual Software Package 3-3 The partition sizes are hard coded into the kernel binary . Y ou must rebuild the kernel to chang e the partition sizes.
EM-1240-LX User’s Manual Software Package 3-4 EM-1240-LX Software Package bin dev upkernel passwd -> t inylogin login -> tinylogin tinylogi n telnetd snmpd mail sh routed netstat arp chat pppd.
EM-1240-LX User’s Manual Software Package 3-5 bin dev ptyp0 ppp pio rtc ram1 ram0 null kmem mem cua0 console tty.
4 4 Chapter 4 Configuring the EM-1240-LX In this chapter , we describe how to co nfigure the EM-1240-LX Ser ies products. The following topics are covered in this chapter: Enabling and Disabling D.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-2 Enabling and Disabling Daemons The following daemons are enabled whe n th e EM-1240-LX boots up for the fir st time.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-3 Adding a Web Page Default Home Pag e address: /home/httpd/index.html Y ou may change the default h ome page directory by editing the web server ’ s configuration file, located at: /etc/boa.conf T ype the following command to edit the boa.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-4 Destination NAT (DNAT) — changes the first destination packet IP a ddress MASQUERA DE — a special form for SNAT. If one host ca n connect to the Internet, then other computers that c onnect to this host ca n connect to the Internet whe n the computer does not have an actual IP address.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-5 The EM-1240- LX supports th e following su b-modules. Be sure to use the module t hat matches your application.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-6 Define policy for chain rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT, FORWARD, PREROUTING, OUTPUT, POSTROUTING] [ACCEPT, DROP] -P: Set the policy fo r the chain to the given target. INPUT: For packets co ming into the EM-1240-LX.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-7 NAT NA T (Networ k Address T ranslation) prot ocol translat es IP addresses used on one network int o diffe rent IP addresses used o n another net work. One network is designated the inside n etwork and the other is the outside network.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-8 Configuring Dial-in/Dial-out Service Dial-out Service Direct cable connection: y Without username and pass word, use: />pppd connect ‘chat .
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-9 <USER_PASSWOR D>: Password for user account To check if PPPOE is s uccessfu lly connected, use the command: y />ifconfig ppp0 How to Mount a Remote NFS Server Currently , the EM-1240-LX onl y support s NFS (Net work File Sy stem) clie nts.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-10 Upgrading the Kernel The EM-1240- LX kernel is em 1240 -1.x..bin , whic h can be downloa ded from www .moxa.com . Y ou must first download this file to your PC, and then use Console T erminal or T elnet Console to copy the file to the EM-1240-LX.
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 f or root fil e system and user directory . By default, the r oot file system is pre-set to READ only . The EM-1240-LX provides a read/write user ’ s directory in the JFFS2 file sy stem.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-12 User Directory Backup — EM-1240-LX to PC T o enable the RAM disk, use the following comman d: />upramdisk />cd ramdisk Use the backupfs co mmand to backup the file system. /ramdisk>backupfs /ramdis k/usrdisk-backup The file system will be backed up.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-13 | +bin Loading Factory Defaults The easiest way to “Load Fact ory Defaults” is with the “Up grade User directory ” operation. Refer to the previous section “ How to Upgrade User Dir ectory ” for an intr oduction.
EM-1240-LX User’s Manual Configuring EM-1240-LX 4-14 T o check the root file system (fir mware) version of the EM-1240-LX, type: />fsversion You may also check the user directory v ersion of the .
5 5 Chapter 5 EM-1240-LX Device API In this chapter , we discuss the Device A PI for the EM-1240-LX Series. W e intro duce the APIs for the following fun ctions: RTC (Real-time Clock) Buzzer .
EM-1240-LX User’s Manual EM-1240-LX Device API 5-2 RTC (Real-time Clock) The device node is located at /dev/rtc . The EM-1240-LX supports µClinux standard simple RTC control.
6 6 Chapter 6 UC Finder The EM-1240-LX comes with a UC Finder utility , which has the so le purpose of searchin g the LAN or intranet for the EM-1240-LX units. For most of the applications, it is no t easy to remember the IP addresses of Universal Communicators connected to the L A N.
EM-1240-LX User’s Manual UC Finder 6-2 Windows UC Finder The following steps descri be how to install UC Fi nder on a W indows PC . 1. Double click the UC Finder installation program, Setup.exe , to start t he installation. 2. When the Wel come to the UC Finder Setup Wizard window opens, click Next to continue.
EM-1240-LX User’s Manual UC Finder 6-3 4. Select the Launch UC Finder option, to use UC Finder immediately after the installation has finished, an d then click Next to complete the installation. 5. When the UC Find er window opens, click Broadcast Search to search for all Universal Communicators connected to the L AN.
EM-1240-LX User’s Manual UC Finder 6-4 6. The Searching window will show the Uni versal Communicators that have been located. You can click Stop as soon as the Universal Comm unicat or you are looking for is listed.
EM-1240-LX User’s Manual UC Finder 6-5 ATTENTION UC finder i s designe d solely to find IP add resses of netw orked Unive rsal Comm unicators. It cannot be use d to configure Universal Comm unicators over the network.
A A Appendix A System Commands busybox: µClinux normal command utility collection File manager cp copy file ls list file ln make symbolic link file mount mount and check file system rm delete file ch.
EM-1240-LX User’s Manual System Commands A-2 Network ping ping to test network rou t e routing ta ble manage r netstat display network status ifconfig set network IP address tracer out trace route t.
B B Appendix B SNMP Agent with MIB II & RS-232 Like Group The EM-1240-LX has a built-in SNMP (Simple Network Management Protocol) ag ent that supports RFC1317 RS-232 like group and RFC 1213 MIB-II. The following table lists the variable implem entation fo r the EM- 1240-LX.
EM-1240-LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-2 ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrError s ipInAddrEr rors ipForwDatagrams ipInUnknownPr.
EM-1240-LX User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3 snmp MIB snmpInPkts snmpOutPkts snmpInBadV ersions snmpInBa dComm unityNam es snmpInBa dCommunit yUses snmpInASNPa rseErrs.
C C Appendix C EM-1240-LX FAQ FAQ 1 Why can I only use vfork( ),a nd am unable to use fork( ) ? Answer 1 uClinux only su pports vfork( ) . It does no t support fork ( ). Note that when using vfork( ), the parent process will hang un til the child process calls an exec group API, or exits.
D D Appendix D Service Information This appen dix shows y ou how to co ntact Moxa for info rmation abo ut this and other pro ducts, and how to repo rt problems.
EM-1240-LX User’s Manual Service Information D-2 Moxa Internet Services Customer satisfaction is our prim ary concern. T o ensure that cust omers r eceive the full be nefit of our products , Moxa I nternet Services ha s been set u p to provide t echnical support, driver updates , product i nformation, a nd user’ s m anual updat es.
EM-1240-LX User’s Manual Service Information D-3 Problem Report Form Moxa EM-1240-LX Customer name: Comp any: T el: Fax: Email: Date: 1. Moxa Product: EM -1240-LX 2. Serial Number: ___________ ______ Problem Desc ription: Please describe t he symptom s of the problem as clearly as possible, includi ng any error messages you see.
EM-1240-LX User’s Manual Service Information D-4 Product Return Procedure For product repair, exc hange, o r refund, the customer m ust: Provide e vidence of origi nal purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer.
Een belangrijk punt na aankoop van elk apparaat Moxa Technologies EM-1240-LX (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Moxa Technologies EM-1240-LX heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Moxa Technologies EM-1240-LX vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Moxa Technologies EM-1240-LX leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Moxa Technologies EM-1240-LX krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Moxa Technologies EM-1240-LX bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Moxa Technologies EM-1240-LX kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Moxa Technologies EM-1240-LX . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.