Moxa Technologies user manual Chapter EM-1240-LX Device API

Page 4

 

Enabling NAT at Bootup

4-7

 

Configuring Dial-in/Dial-out Service

4-8

 

Dial-out Service

4-8

 

Dial-in Service

4-8

 

Configuring PPPoE

4-8

 

How to Mount a Remote NFS Server

4-9

 

Dynamic Driver Module Load/Unload

4-9

 

Upgrading the Kernel

4-10

 

Upgrading the Root File System & User Directory

4-11

 

User Directory Backup—EM-1240-LX to PC

4-12

 

Loading Factory Defaults

4-13

 

Mirroring the Application Program and Configuration

4-13

 

Autostarting User Applications on Bootup

4-13

 

Checking the Kernel and Root File System Versions

4-13

Chapter 5

EM-1240-LX Device API

5-1

 

RTC (Real-time Clock)

5-2

 

Buzzer

5-2

 

UART Interface

5-2

Chapter 6

UC Finder

6-1

 

Windows UC Finder

6-2

 

Linux UC Finder

6-5

Appendix A

System Commands

A-1

 

busybox: µClinux normal command utility collection

A-1

 

File manager

A-1

 

Editor

A-1

 

Network

A-2

 

Process

A-2

 

Other

A-2

 

Moxa Special Utilities

A-2

Appendix B SNMP Agent with MIB II & RS-232 Like Group

B-1

Appendix C

EM-1240-LX FAQ

C-1

Appendix D

Service Information

D-1

 

Moxa Internet Services

D-2

 

Problem Report Form

D-3

 

Product Return Procedure

D-4

Image 4
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 LED Indicators Installing the EM-1240-LXWiring Requirements Connecting the Power Connecting Data Transmission CablesGrounding 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 Connecting the EM-1240-LX to a PC Powering on the EM-1240-LXConsole 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 Journaling Flash File System JFFS2 Flash Context Flash Address Size Access controlAdditional 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 Usage Define policy rules, and Append or delete rulesExamples 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 Buzzer RTC Real-time ClockUart 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