User`s manual

Table Of Contents
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