Moxa Technologies user manual Installing the EM-1240-LX, LED Indicators, Wiring Requirements

Page 12

EM-1240-LX User’s Manual

Introduction

Installing the EM-1240-LX

If you would like to use the EM-1240 Embedded Module and the EM-1240 Development Kit, insert the EM-1240 Embedded Module vertically onto the Development Kit. Note that the pin marked “JP4” on the Embedded Module must be matched with the pin marked “JP6” on the Development Kit; and the Pin marked “JP3” on the Embedded Module must be matched with the Pin marked “JP4” on the Development Kit. Be careful when inserting the module to avoid damaging the product.

LED Indicators

The following table explains the function of the five LED indicators located on the EM-1240-LX’s top panel.

LED Name

LED Color

LED Function

Ready

Green

Power is on and functioning normally.

P1/P2 (Tx)

Green

Serial port 1 or 2 is transmitting data.

 

 

 

 

Off

Serial port 1 or 2 is not transmitting data.

 

 

 

P1/P2 (Rx)

Yellow

Serial port 1 or 2 is receiving data.

 

 

 

 

Off

Serial port 1 or 2 is not receiving data.

 

 

 

Wiring Requirements

This section describes how to connect the EM-1240-LX to serial devices.

You should heed the following common safety precautions before proceeding with the installation of any electronic device:

yUse separate paths to route wiring for power and devices. If power wiring and device wiring paths must cross, make sure the wires are perpendicular at the intersection point.

NOTE: Do not run signal or communication wiring and power wiring in the same wire conduit. To avoid interference, wires with different signal characteristics should be routed separately.

yUse the type of signal transmitted through a wire to determine which wires should be kept separate. The rule of thumb is that wiring that shares similar electrical characteristics can be bundled together.

yKeep input wiring and output wiring separate.

yIt is advisable to label the wiring to all devices in the system.

1-8

Image 12
Contents EM-1240-LX User’s Manual First Edition, NovemberCopyright Notice Table of Contents Chapter EM-1240-LX Device API Introduction Package Checklist Product FeaturesOverview EM-1240-LXProduct Specifications Hardware SpecificationsSoftware Specifications Hardware Block Diagram Appearance EM-1240 Development Kit Embedded ModuleEM-1240 Embedded Module EM-1240 Development Kit Dimensions Installing the EM-1240-LX LED IndicatorsWiring Requirements Connecting Data Transmission Cables Connecting the PowerGrounding the EM-1240-LX Connecting to the Network Connecting to a Serial DeviceReset Button Internal SD SocketAdditional Functions Serial Console PortReal-time Clock Getting Started Powering on the EM-1240-LX Connecting the EM-1240-LX to a PCConsole Port Default IP Address Default Netmask Telnet192.168.3.127 255.255.255.0 192.168.4.127 255.255.255.0Configuring the Ethernet Interface Ifconfig eth0 Dhcpcd -p -a eth0 & dhcpcd -p -a eth1Installing a Secure Digital SD Memory Card Installing the EM-1240-LX Tool Chain Developing Your ApplicationsStep #mount -t iso9660 /dev/cdrom /mnt/cdromEM-1240-LX User’s Manual Compiling Hello.c PATH=/usr/local/arm-elf/bin$PATHUploading Hello to the EM-1240-LX #makeRunning Hello on the EM-1240-LX # chmod 755 hello #./helloMake File Example Code Cflags =Software Package EM-1240-LX Software Architecture Flash Context Flash Address Size Access control Journaling Flash File System JFFS2Additional information about JFFS2 is available at EM-1240-LX Software Package Bin DevPtyp0 Ppp Pio Rtc Ram1 Ram0 Null Kmem Mem Cua0 Console Tty Configuring the EM-1240-LX ‰ Iptables ‰ NATExample default enable Enabling and Disabling DaemonsDefault Home Page address Adding a WebLocal Host Packets Define policy rules, and Append or delete rules UsageExamples Define policy for chain rules Enabling NAT at Bootup NAT ExampleConfiguring Dial-in/Dial-out Service Configuring PPPoEDial-out Service Dial-in ServiceHow to Mount a Remote NFS Server Dynamic Driver Module Load/UnloadRamdiskupkernel em1240-1.x.bin /ramdiskreboot Upgrading the KernelUpramdisk Cd ramdiskUpgrading the Root File System & User Directory Upramdisk Cd ramdiskUser Directory Backup-EM-1240-LX to PC Ramdiskbackupfs /ramdisk/usrdisk-backupLoading Factory Defaults Mirroring the Application Program and ConfigurationAutostarting User Applications on Bootup Checking the Kernel and Root File System VersionsFsversion Cat /etc/versionEM-1240-LX Device API RTC Real-time Clock BuzzerUart Interface UC Finder Windows UC Finder EM-1240-LX User’s Manual UC Finder EM-1240-LX User’s Manual UC Finder Linux UC Finder System Commands Busybox µClinux normal command utility collectionFile manager EditorNetwork ProcessOther Moxa Special UtilitiesSnmp Agent with MIB II & RS-232 Like Group Snmp Agent with MIB II & RS-232 Like Group Ip MIB Tcp MIB Udp MIBSnmp MIB RFC1317 RS-232 like group supported variables Rs232 MIBEM-1240-LX FAQ Service Information Moxa Internet Services Following services are providedProblem Report Form Moxa Product † EM-1240-LX Serial NumberProduct Return Procedure