User`s manual
Table Of Contents
- 1. Introduction
- 2. Getting Started
- Powering on the W406-LX
- Connecting the W406-LX to a PC
- Configuring the Ethernet Interface
- USB Port for Expansion
- SD Socket for Storage Expansion
- Setting Up the Wireless Module
- Configuring the SIM Card
- Entering the PIN Code
- Verifying the SIM Card Status
- Enabling or Disabling the PIN Code Authentication
- Changing the PIN Code
- Unlocking the SIM Card
- Connecting to the Internet
- Reconnecting to the Internet
- Disconnecting from the Internet
- Detecting an Internet Connection Error
- Sending and Reading an SMS Message
- Deleting an SMS Message
- Test Program—Developing Hello.c
- 3. Managing Embedded Linux
- 4. Managing Communications
- 5. Development Tool Chains
- 6. Programmer’s Guide
- 7. Software Lock
- A. System Commands
Chapter 4 Managing Communications ........................................................................4-1
Telnet / FTP ............................................................................................................................. 4-2
DNS ......................................................................................................................................... 4-2
Web Service—Apache............................................................................................................. 4-3
Install PHP for Apache Web Server ......................................................................................... 4-5
IPTABLES............................................................................................................................... 4-6
NAT........................................................................................................................................ 4-10
NAT Example .......................................................................................................... 4-11
Enabling NAT at Bootup.......................................................................................... 4-11
Dial-up Service—PPP............................................................................................................ 4-12
PPPoE .................................................................................................................................... 4-15
NFS (Network File System)................................................................................................... 4-18
Setting up the W406-LX as an NFS Client .............................................................. 4-18
Mail........................................................................................................................................ 4-18
SNMP .................................................................................................................................... 4-19
Package Management—ipkg ................................................................................................. 4-19
OpenVPN............................................................................................................................... 4-20
Chapter 5 Development Tool Chains...........................................................................5-1
Linux Tool Chain ..................................................................................................................... 5-2
Steps for Installing the Linux Tool Chain .................................................................. 5-2
Compilation for Applications..................................................................................... 5-2
On-Line Debugging with GDB .................................................................................. 5-3
Chapter 6 Programmer’s Guide....................................................................................6-1
Flash Memory Map.................................................................................................................. 6-2
Device API............................................................................................................................... 6-2
RTC (Real Time Clock)........................................................................................................... 6-2
Buzzer...................................................................................................................................... 6-3
UART....................................................................................................................................... 6-3
Digital I/O................................................................................................................................ 6-5
C Library................................................................................................................................ 6-10
Chapter 7 Software Lock...............................................................................................7-1
Appendix A System Commands..................................................................................... A-1
Linux normal command utility collection............................................................................... A-1
File manager.............................................................................................................. A-1
Editor......................................................................................................................... A-1
Network..................................................................................................................... A-1
Process....................................................................................................................... A-2
Other.......................................................................................................................... A-2
Moxa special utilities................................................................................................. A-2