Table of Contents
Chapter 1 Introduction..................................................................................................1-1
Overview.................................................................................................................................. 1-2
Package Checklist .................................................................................................................... 1-2
Product Features ...................................................................................................................... 1-2
Product Specifications ............................................................................................................. 1-3
Hardware Specifications............................................................................................... 1-3
Software Specifications ................................................................................................ 1-4
Hardware Block Diagram ........................................................................................................ 1-5
Appearance .............................................................................................................................. 1-5
Dimensions .............................................................................................................................. 1-7
Installing the EM-1240-LX...................................................................................................... 1-8
LED Indicators......................................................................................................................... 1-8
Wiring Requirements ............................................................................................................... 1-8
Connecting the Power................................................................................................... 1-9
Grounding the EM-1240-LX ........................................................................................ 1-9
Connecting Data Transmission Cables .................................................................................... 1-9
Connecting to the Network......................................................................................... 1-10
Connecting to a Serial Device .................................................................................... 1-10
Serial Console Port ..................................................................................................... 1-11
Internal SD Socket ..................................................................................................................1-11
Additional Functions...............................................................................................................1-11
Reset Button ............................................................................................................... 1-11
Real-time Clock.......................................................................................................... 1-12
Chapter 2 Getting Started.............................................................................................2-1
Powering on the EM-1240-LX ................................................................................................ 2-2
Connecting the EM-1240-LX to a PC...................................................................................... 2-2
Console Port ................................................................................................................. 2-2
Telnet............................................................................................................................ 2-3
Configuring the Ethernet Interface .......................................................................................... 2-4
Installing a Secure Digital (SD) Memory Card........................................................................ 2-6
Developing Your Applications ................................................................................................. 2-7
Installing the EM-1240-LX Tool Chain ....................................................................... 2-7
Compiling Hello.c ........................................................................................................ 2-9
Uploading “Hello” to the EM-1240-LX ..................................................................... 2-10
Running “Hello” on the EM-1240-LX ....................................................................... 2-11
Make File Example Code ........................................................................................... 2-12
Chapter 3 Software Package ........................................................................................3-1
EM-1240-LX Software Architecture ....................................................................................... 3-2
Journaling Flash File System (JFFS2) .......................................................................... 3-3
EM-1240-LX Software Package.............................................................................................. 3-4
Chapter 4 Configuring the EM-1240-LX.......................................................................4-1
Enabling and Disabling Daemons............................................................................................ 4-2
Adding a Web Page.................................................................................................................. 4-3
IPTABLES............................................................................................................................... 4-3
NAT.......................................................................................................................................... 4-7
NAT Example............................................................................................................... 4-7