Moxa 85M-2600-T [3/52] Table of contents

Table of Contents
1. Introduction ...................................................................................................................................... 1-1
Overview ........................................................................................................................................... 1-2
Scope ........................................................................................................................................ 1-2
Related Documents ..................................................................................................................... 1-2
Supported Products ..................................................................................................................... 1-2
Software Architecture .......................................................................................................................... 1-2
Journaling Flash File System (JFFS2) ............................................................................................. 1-3
Software Package ........................................................................................................................ 1-4
2. Getting Started.................................................................................................................................. 2-1
Developing the First Program ............................................................................................................... 2-2
Hardware and Software Requirements ........................................................................................... 2-2
Development Procedure ............................................................................................................... 2-2
Configuring the Ethernet Interface ........................................................................................................ 2-2
Modifying Network Settings with the Serial Console ......................................................................... 2-2
Modifying Network Settings over the Network ................................................................................. 2-3
Connect an RTU to a Linux PC .............................................................................................................. 2-3
Install the Toolchain onto the PC .......................................................................................................... 2-4
Set Cross Compiler & glibc Environment Variables .................................................................................. 2-4
Develop Code & Compile the Program ................................................................................................... 2-4
Upload & Run the Program ................................................................................................................... 2-5
3. RTU Management .............................................................................................................................. 3-1
System Information ............................................................................................................................ 3-2
Firmware Upgrade and Default Settings ................................................................................................. 3-2
Upgrading the Firmware ............................................................................................................... 3-2
Recovering the Firmware .............................................................................................................. 3-4
Loading Factory Defaults .............................................................................................................. 3-5
Enabling and Disabling Daemons .......................................................................................................... 3-5
Run-Level Settings .............................................................................................................................. 3-7
System Time Setting ........................................................................................................................... 3-8
Setting the Time Manually ............................................................................................................ 3-8
Updating the Time with NTP Client ................................................................................................. 3-9
Updating the Time Automatically ................................................................................................... 3-9
NTP Server Setting .................................................................................................................... 3-10
Executing Scheduled Commands with Cron Daemon ............................................................................. 3-10
Software Lock .................................................................................................................................. 3-11
4. RTU Communications ........................................................................................................................ 4-1
Internet Configuration ......................................................................................................................... 4-2
Modbus TCP Master and Slave....................................................................................................... 4-2
DNS........................................................................................................................................... 4-2
Telnet/FTP .................................................................................................................................. 4-2
iptables ...................................................................................................................................... 4-3
NAT (SNAT) ................................................................................................................................ 4-7
Port Forwarding (DNAT) ............................................................................................................... 4-9
PPP Dial-up Service ..................................................................................................................... 4-9
PPPoE ...................................................................................................................................... 4-12
NFS (Network File System) Client ................................................................................................ 4-14
Sending Mail ............................................................................................................................. 4-14
OpenVPN .................................................................................................................................. 4-14
NTP Server/Client ...................................................................................................................... 4-18
Port Trunking ............................................................................................................................ 4-19
Serial Configuration .......................................................................................................................... 4-19
Modbus RTU Master ................................................................................................................... 4-19
5. RTU Data Acquisition ......................................................................................................................... 5-1
I/O Data Access.................................................................................................................................. 5-2
Battery Backup SRAM .......................................................................................................................... 5-2
Millisecond Timestamp ........................................................................................................................ 5-2
Active OPC Server............................................................................................................................... 5-2
6. RTU Programming ............................................................................................................................. 6-1
Programming Guide ............................................................................................................................ 6-2
Memory Usage ............................................................................................................................ 6-2
Using C/C++ ...................................................................................................................................... 6-2
Linux Toolchain ........................................................................................................................... 6-2
On-Line Debugging with GDB ........................................................................................................ 6-4
Library and APIs .......................................................................................................................... 6-4
A. System Commands ............................................................................................................................ A-1
File Manager ...................................................................................................................................... A-1

Содержание

Скачать