Manuals
/
Moxa Technologies
/
Computer Equipment
/
Network Card
Moxa Technologies
EM-1240-LX
user manual
EM-1240 Embedded Module EM-1240 Development Kit
Models:
EM-1240-LX
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
64
Download
64 pages
45 Kb
5
6
7
8
9
10
11
12
13
14
Specs
Install
FAQ
Example default enable
Connecting the Power
Dimension
Ifconfig eth0
Problem Report Form
Reset Button
System Commands
Page 10
Image 10
EM-1240-LX
User’s Manual
Introduction
EM-1240
Embedded Module
EM-1240
Development Kit
1-6
Page 9
Page 11
Page 10
Image 10
Page 9
Page 11
Contents
EM-1240-LX User’s Manual
First Edition, November
Copyright Notice
Table of Contents
Chapter EM-1240-LX Device API
Introduction
Overview
Package Checklist
Product Features
EM-1240-LX
Product Specifications
Hardware Specifications
Software Specifications
Hardware Block Diagram Appearance
EM-1240 Development Kit Embedded Module
EM-1240 Embedded Module EM-1240 Development Kit
Dimensions
LED Indicators
Installing the EM-1240-LX
Wiring Requirements
Connecting the Power
Connecting Data Transmission Cables
Grounding the EM-1240-LX
Connecting to the Network
Connecting to a Serial Device
Additional Functions
Reset Button
Internal SD Socket
Serial Console Port
Real-time Clock
Getting Started
Connecting the EM-1240-LX to a PC
Powering on the EM-1240-LX
Console Port
192.168.3.127 255.255.255.0
Default IP Address Default Netmask
Telnet
192.168.4.127 255.255.255.0
Configuring the Ethernet Interface
Ifconfig eth0
Dhcpcd -p -a eth0 & dhcpcd -p -a eth1
Installing a Secure Digital SD Memory Card
Step
Installing the EM-1240-LX Tool Chain
Developing Your Applications
#mount -t iso9660 /dev/cdrom /mnt/cdrom
EM-1240-LX User’s Manual
Compiling Hello.c
PATH=/usr/local/arm-elf/bin$PATH
Uploading Hello to the EM-1240-LX
#make
Running Hello on the EM-1240-LX
# chmod 755 hello #./hello
Make File Example Code
Cflags =
Software Package
EM-1240-LX Software Architecture
Journaling Flash File System JFFS2
Flash Context Flash Address Size Access control
Additional information about JFFS2 is available at
EM-1240-LX Software Package
Bin Dev
Ptyp0 Ppp Pio Rtc Ram1 Ram0 Null Kmem Mem Cua0 Console Tty
Configuring the EM-1240-LX
‰ Iptables ‰ NAT
Example default enable
Enabling and Disabling Daemons
Default Home Page address
Adding a Web
Local Host Packets
Usage
Define policy rules, and Append or delete rules
Examples
Define policy for chain rules
Enabling NAT at Bootup
NAT Example
Dial-out Service
Configuring Dial-in/Dial-out Service
Configuring PPPoE
Dial-in Service
How to Mount a Remote NFS Server
Dynamic Driver Module Load/Unload
Upramdisk
Ramdiskupkernel em1240-1.x.bin /ramdiskreboot
Upgrading the Kernel
Cd ramdisk
Upgrading the Root File System & User Directory
Upramdisk Cd ramdisk
User Directory Backup-EM-1240-LX to PC
Ramdiskbackupfs /ramdisk/usrdisk-backup
Autostarting User Applications on Bootup
Loading Factory Defaults
Mirroring the Application Program and Configuration
Checking the Kernel and Root File System Versions
Fsversion
Cat /etc/version
EM-1240-LX Device API
Buzzer
RTC Real-time Clock
Uart 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
File manager
System Commands
Busybox µClinux normal command utility collection
Editor
Other
Network
Process
Moxa Special Utilities
Snmp Agent with MIB II & RS-232 Like Group
Snmp Agent with MIB II & RS-232 Like Group
Ip MIB Tcp MIB Udp MIB
Snmp MIB
RFC1317 RS-232 like group supported variables Rs232 MIB
EM-1240-LX FAQ
Service Information
Moxa Internet Services
Following services are provided
Problem Report Form
Moxa Product † EM-1240-LX Serial Number
Product Return Procedure
Top
Page
Image
Contents