Moxa W321-LX Руководство по программной части онлайн [3/80] 171179

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
Accessing the W321/341 Using a PC ..................................................................................................... 2-2
Serial Console ............................................................................................................................. 2-2
SSH Console ............................................................................................................................... 2-2
Configuring the Ethernet Interface ........................................................................................................ 2-3
Modifying Network Settings with the Serial Console ......................................................................... 2-3
Temporarily Modifying Networking Configurations ............................................................................ 2-4
Configuring the WLAN ......................................................................................................................... 2-4
Using WPA_SUPPLICANT to configure WPA2 ................................................................................... 2-5
SD Slot and USB for Storage Expansion ............................................................................................... 2-11
Test ProgramDeveloping Hello.c ....................................................................................................... 2-13
Installing the Tool Chain (Linux) .................................................................................................. 2-13
Checking the Flash Memory Space ............................................................................................... 2-13
Compiling Hello.c ...................................................................................................................... 2-14
Uploading and Running the “Hello” Program ................................................................................. 2-14
Developing Your First Application ........................................................................................................ 2-15
Testing Environment .................................................................................................................. 2-15
Compiling tcps2.c ...................................................................................................................... 2-15
Uploading and Running the “tcps2-release” Program ...................................................................... 2-16
Testing Procedure Summary ....................................................................................................... 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-5
Enabling and Disabling Daemons .......................................................................................................... 3-5
Setting the Run-Level .......................................................................................................................... 3-7
Adjusting the System Time .................................................................................................................. 3-8
Setting the Time Manually ............................................................................................................ 3-8
NTP Client .................................................................................................................................. 3-8
Updating the Time Automatically ................................................................................................... 3-9
CronDaemon to Execute Scheduled Commands ................................................................................. 3-10
Connecting Storage Peripherals .......................................................................................................... 3-11
4. Managing Communications ............................................................................................................... 4-1
FTP ................................................................................................................................................... 4-2
SFTP ................................................................................................................................................. 4-2
DNS .................................................................................................................................................. 4-2
IPTABLES .......................................................................................................................................... 4-3
NAT .................................................................................................................................................. 4-7
NAT Example .............................................................................................................................. 4-8
Enabling NAT at Bootup ............................................................................................................... 4-8
Dial-up ServicePPP ........................................................................................................................... 4-9
PPPoE .............................................................................................................................................. 4-12
NFS (Network File System) ................................................................................................................ 4-14
Setting up the W321/341 as an NFS Client ................................................................................... 4-14
SNMP .............................................................................................................................................. 4-14
OpenVPN ......................................................................................................................................... 4-16
5. Tool Chains for Application Development .......................................................................................... 5-1
Linux Tool Chain ................................................................................................................................. 5-2
Steps for Installing the Linux Tool Chain ........................................................................................ 5-2
Compilation for Applications .......................................................................................................... 5-2
6. Programmer's Guide ......................................................................................................................... 6-1
Flash Memory Map .............................................................................................................................. 6-2
Device API ......................................................................................................................................... 6-2
RTC (Real Time Clock) ......................................................................................................................... 6-2
Buzzer ............................................................................................................................................... 6-2
WDT (Watch Dog Timer) ...................................................................................................................... 6-3
Digital Input/Output(W321 only) .......................................................................................................... 6-6
Application Programming Interface ................................................................................................ 6-6
DI/DO Program Makefile Example ................................................................................................ 6-10
UART .............................................................................................................................................. 6-11

Содержание

Похожие устройства

Скачать
Случайные обсуждения