Moxa UC-8481-T-LX [3/90] 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 Features ....................................................................................................................... 1-3
2. Getting Started.................................................................................................................................. 2-1
Powering on the UC-8410/8416/8418/8430 ........................................................................................... 2-2
Connecting the UC-8410/8416/8418/8430/8430 to a PC ......................................................................... 2-2
Serial Console ............................................................................................................................. 2-2
Telnet Console ............................................................................................................................ 2-2
SSH Console ............................................................................................................................... 2-3
Configuring the Ethernet Interface ........................................................................................................ 2-4
Modifying Network Settings with the Serial Console ......................................................................... 2-4
Modifying Network Settings over the Network ................................................................................. 2-6
Test ProgramDeveloping Hello.c ......................................................................................................... 2-6
Installing the Tool Chain (Linux) .................................................................................................... 2-6
Checking the Flash Memory Space ................................................................................................. 2-7
Compiling Hello.c ........................................................................................................................ 2-7
Uploading and Running the “Hello” Program ................................................................................... 2-8
3. Managing Embedded Linux ................................................................................................................ 3-1
System Version Information ................................................................................................................. 3-2
Firmware Upgrade .............................................................................................................................. 3-2
Upgrading the Firmware ............................................................................................................... 3-2
Loading Factory Defaults .............................................................................................................. 3-4
Enabling and Disabling Daemons .......................................................................................................... 3-5
Setting the Run-Level .......................................................................................................................... 3-7
Setting the System Time ..................................................................................................................... 3-8
TZ variable ................................................................................................................................. 3-8
etc/timezone .............................................................................................................................. 3-8
Adjusting the System Time .................................................................................................................. 3-8
Setting the Time Manually ............................................................................................................ 3-8
NTP Client .................................................................................................................................. 3-9
Updating the Time Automatically ................................................................................................... 3-9
CronDaemon to Execute Scheduled Commands ................................................................................. 3-10
Connecting Peripherals ...................................................................................................................... 3-11
USB Mass Storage ..................................................................................................................... 3-11
CF Mass Storage ....................................................................................................................... 3-11
4. Managing Communication ................................................................................................................. 4-1
Telnet/FTP ......................................................................................................................................... 4-2
DNS .................................................................................................................................................. 4-2
Web ServiceApache .......................................................................................................................... 4-3
IPTABLES .......................................................................................................................................... 4-4
NAT .................................................................................................................................................. 4-8
NAT Example .............................................................................................................................. 4-9
Enabling NAT at Bootup ............................................................................................................... 4-9
Dial-up ServicePPP ......................................................................................................................... 4-10
PPPoE .............................................................................................................................................. 4-13
NFS (Network File System) Client ....................................................................................................... 4-15
Setting up the UC-8410/8416/8418/8430/8430 as an NFS Client .................................................... 4-15
Mail ................................................................................................................................................ 4-15
SNMP .............................................................................................................................................. 4-16
OpenVPN ......................................................................................................................................... 4-17
Package Managementipkg ............................................................................................................... 4-24
Audio Playing and Recording .............................................................................................................. 4-24
Volume Control ......................................................................................................................... 4-24
Playing a WAVE File ................................................................................................................... 4-25
Recording a WAVE file ................................................................................................................ 4-25
5. Programmer's Guide ......................................................................................................................... 5-1
Flash Memory Map .............................................................................................................................. 5-2
Linux Tool Chain Introduction ............................................................................................................... 5-2
Debugging with GDB ........................................................................................................................... 5-3
Device API ......................................................................................................................................... 5-4
RTC (Real Time Clock) ......................................................................................................................... 5-4
Buzzer ............................................................................................................................................... 5-5
WDT (Watch Dog Timer) ...................................................................................................................... 5-5
Digital I/O.......................................................................................................................................... 5-8
UART .............................................................................................................................................. 5-13

Содержание

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

Скачать