Moxa Technologies EM-1240-LX user manual Connecting to the Network, Connecting to a Serial Device

Page 14

EM-1240-LX User’s Manual

Introduction

Connecting to the Network

Connect one end of the Ethernet cable to the EM-1240-LX’s 10/100M Ethernet port and the other end of the cable to the Ethernet network. If the cable is properly connected, the EM-1240-LX will indicate a valid connection to the Ethernet in the following ways:

yThe top-right LED on the connector glows a solid green when connected to a 100 Mbps Ethernet network.

yThe top-left LED on the connector glows a solid orange when connected to a 10 Mbps Ethernet network.

yThe LEDs will flash when Ethernet packets are being transmitted or received.

The 10/100 Mbps Ethernet LAN 1 and LAN 2 ports use 8-pin RJ45 connectors. Pinouts for these ports are given in the following diagram.

8-pin RJ45

10 Mbps

 

 

 

 

 

100 Mbps

Pin

Signal

indicator

 

 

 

 

 

indicator

1

ETx+

 

 

 

 

 

 

 

 

 

 

 

 

2

ETx-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

ERx+

 

 

 

 

 

 

 

 

 

 

 

 

4

---

 

 

 

 

 

 

 

 

 

 

 

 

5

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

ERx-

1

8

 

 

 

 

 

 

7

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

---

Connecting to a Serial Device

Connect the serial cable between the EM-1240-LX and the serial device(s).

Serial ports P1 and P2 use male DB9 connectors, and can be configured for RS-232/422/485 by software. The pin assignments are shown in the following table:

DB9 Male Port

 

RS-232/422/485 Pinouts

 

1 2 3 4 5

 

 

 

 

 

Pin

RS-232

RS-422

RS-485

RS-485

 

 

 

 

 

 

 

 

 

 

(4-wire)

(2-wire)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

DCD

TxDA(-)

TxDA(-)

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

RxD

TxDB(+)

TxDB(+)

---

 

 

 

 

 

 

 

 

 

 

3

TxD

RxDB(+)

RxDB(+)

DataB(+)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

DTR

RxDA(-)

RxDA(-)

DataA(-)

6 7 8 9

 

 

5

GND

GND

GND

GND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

DSR

---

---

---

 

 

 

 

 

 

 

 

 

 

7

RTS

---

---

---

 

 

 

 

 

 

 

 

 

 

8

CTS

---

---

---

1-10

Image 14
Contents EM-1240-LX User’s Manual First Edition, NovemberCopyright Notice Table of Contents Chapter EM-1240-LX Device API Introduction Overview Package ChecklistProduct Features 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 Wiring Requirements Installing the EM-1240-LXLED Indicators Grounding the EM-1240-LX Connecting Data Transmission CablesConnecting the Power Connecting to the Network Connecting to a Serial DeviceAdditional Functions Reset ButtonInternal SD Socket Serial Console PortReal-time Clock Getting Started Console Port Powering on the EM-1240-LXConnecting the EM-1240-LX to a PC 192.168.3.127 255.255.255.0 Default IP Address Default NetmaskTelnet 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 Step Installing the EM-1240-LX Tool ChainDeveloping Your Applications #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 Additional information about JFFS2 is available at Flash Context Flash Address Size Access controlJournaling Flash File System JFFS2 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 Examples Define policy rules, and Append or delete rulesUsage Define policy for chain rules Enabling NAT at Bootup NAT ExampleDial-out Service Configuring Dial-in/Dial-out ServiceConfiguring PPPoE Dial-in ServiceHow to Mount a Remote NFS Server Dynamic Driver Module Load/UnloadUpramdisk Ramdiskupkernel em1240-1.x.bin /ramdiskrebootUpgrading the Kernel Cd ramdiskUpgrading the Root File System & User Directory Upramdisk Cd ramdiskUser Directory Backup-EM-1240-LX to PC Ramdiskbackupfs /ramdisk/usrdisk-backupAutostarting User Applications on Bootup Loading Factory DefaultsMirroring the Application Program and Configuration Checking the Kernel and Root File System VersionsFsversion Cat /etc/versionEM-1240-LX Device API Uart Interface RTC Real-time ClockBuzzer UC Finder Windows UC Finder EM-1240-LX User’s Manual UC Finder EM-1240-LX User’s Manual UC Finder Linux UC Finder File manager System CommandsBusybox µClinux normal command utility collection EditorOther NetworkProcess 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