Moxa W406-T-CE [3/74] Table of contents

Table of Contents
1. Introduction ...................................................................................................................................... 1-1
Overview ........................................................................................................................................... 1-2
Software Architecture .......................................................................................................................... 1-2
Journaling Flash File System (JFFS2) ............................................................................................. 1-3
Software Package ........................................................................................................................ 1-4
2. Getting Started.................................................................................................................................. 2-1
Powering on the W315A/325A .............................................................................................................. 2-2
Connecting the W315A/325A to a PC ..................................................................................................... 2-2
Serial Console ............................................................................................................................. 2-2
SSH Console ............................................................................................................................... 2-3
Configuring the Ethernet Interface ........................................................................................................ 2-3
Modifying Network Settings with the Serial Console ......................................................................... 2-3
Modifying Network Settings over the Network ................................................................................. 2-4
GPRS Networks .................................................................................................................................. 2-4
Setting Up the Wireless Module ............................................................................................................ 2-4
Configuring the SIM Card ..................................................................................................................... 2-4
Entering the PIN Code ......................................................................................................................... 2-5
Verifying the SIM Card Status .............................................................................................................. 2-5
Enabling or Disabling PIN Code Authentication........................................................................................ 2-5
Changing the PIN Code........................................................................................................................ 2-6
Unlocking the SIM Card ....................................................................................................................... 2-6
Configuring Your APN List .................................................................................................................... 2-7
Connecting to the Internet ................................................................................................................... 2-8
Reconnecting to the Internet ................................................................................................................ 2-8
Disconnecting from the Internet ........................................................................................................... 2-9
Detecting an Internet Connection Error ................................................................................................. 2-9
Sending and Reading an SMS Message .................................................................................................. 2-9
Deleting an SMS Message .................................................................................................................. 2-10
SD Socket for Storage Expansion ........................................................................................................ 2-10
Test ProgramDeveloping Hello.c ....................................................................................................... 2-11
Installing the Tool Chain (Linux) .................................................................................................. 2-11
Checking the Flash Memory Space ............................................................................................... 2-11
Compiling Hello.c ...................................................................................................................... 2-12
Uploading and Running the “Hello” Program ................................................................................. 2-13
Developing Your First Application ........................................................................................................ 2-13
Testing Environment .................................................................................................................. 2-13
Compiling tcps2.c ...................................................................................................................... 2-14
Uploading and Running the “tcps2-release Program ...................................................................... 2-15
Summary of the Testing Procedure .............................................................................................. 2-17
3. Managing Embedded Linux ................................................................................................................ 3-1
System Version Information ................................................................................................................. 3-2
System Image Backup......................................................................................................................... 3-2
Upgrading the Firmware ............................................................................................................... 3-2
Loading Factory Defaults .............................................................................................................. 3-4
Enabling and Disabling Daemons .......................................................................................................... 3-4
Starting a Program Automatically at Run-Level ....................................................................................... 3-6
Adjusting the System Time .................................................................................................................. 3-7
Setting the Time Manually ............................................................................................................ 3-7
NTP Client .................................................................................................................................. 3-8
Updating the Time Automatically ................................................................................................... 3-8
CronDaemon for Executing Scheduled Commands ................................................................................ 3-9
4. Managing Communications................................................................................................................ 4-1
Telnet/FTP ......................................................................................................................................... 4-2
DNS .................................................................................................................................................. 4-2
Web ServiceApache .......................................................................................................................... 4-3
Installing PHP for Apache Web Server ................................................................................................... 4-4
IPTABLES........................................................................................................................................... 4-7
Observe and Erase Chain Rules ..................................................................................................... 4-9
Define Policy for Chain Rules......................................................................................................... 4-9
Append or Delete Rules .............................................................................................................. 4-10
NAT ................................................................................................................................................ 4-10
NAT Example ............................................................................................................................ 4-11
Enabling NAT at Bootup.............................................................................................................. 4-11
Dial-up ServicePPP ......................................................................................................................... 4-12
How to Check the Connection ..................................................................................................... 4-13
Setting up a Machine for Incoming PPP Connections ...................................................................... 4-14
PPPoE.............................................................................................................................................. 4-15

Содержание

Скачать