Moxa Technologies 331 Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Servidores Moxa Technologies 331. Moxa Technologies 331 User`s manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 101
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
UC-7112-LX Plus
Software Users Manual
Fifth Edition, June 2009
www.moxa.com/product
© 2009 Moxa Inc. All rights reserved.
Reproduction without permission is prohibited.
Vista de pagina 0
1 2 3 4 5 6 ... 100 101

Indice de contenidos

Pagina 1 - Software User’s Manual

UC-7112-LX Plus Software User’s Manual Fifth Edition, June 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction without pe

Pagina 2

UC-7112-LX Plus Software User’s Manual Getting Started 2-2Powering on the UC-7112-LX Plus Connect the SG wire to the shielded contact located on the

Pagina 3 - Table of Contents

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-10447: rs232InSigName.4.2 (integer) cts(2) 448: rs232InSigName.1.3 (integer) dsr(3) 449:

Pagina 4

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-11498: snmpInTooBigs.0 (counter) 0 499: snmpInNoSuchNames.0 (counter) 0 500: snmpInBadVa

Pagina 5 - Introduction

UC-7112-LX Plus Software User’s Manual Getting Started 2-3The following window will open when a connection has been established. To log in, type th

Pagina 6 - Software Architecture

UC-7112-LX Plus Software User’s Manual Getting Started 2-4Use a straight-through Ethernet cable to connect to a hub or switch that is connected to y

Pagina 7

UC-7112-LX Plus Software User’s Manual Getting Started 2-5SSH Console The UC-7112-LX Plus supports an SSH Console to provide users with better secur

Pagina 8 - Software Package

UC-7112-LX Plus Software User’s Manual Getting Started 2-6Configuring the Ethernet Interface The network settings of the UC-7112-LX Plus can be modi

Pagina 9 - Getting Started

UC-7112-LX Plus Software User’s Manual Getting Started 2-7Modifying Network Settings over the Network IP settings can be activated over the network,

Pagina 10 - Serial Console

UC-7112-LX Plus Software User’s Manual Getting Started 2-8Step 3: The SD socket is located on the back of bottom board. Insert the SD memory card as

Pagina 11 - Telnet Console

UC-7112-LX Plus Software User’s Manual Getting Started 2-9Installing the Tool Chain (Linux) The Linux Operating System must be pre-installed in the

Pagina 12 - Password: root

UC-7112-LX Plus Software User’s Manual Getting Started 2-10Compiling Hello.c The package CD contains several example programs. Here we use Hello.c a

Pagina 13 - SSH Console

UC-7112-LX Plus Software User’s Manual Getting Started 2-11Developing Your First Application We use the tcps2 example to illustrate how to build an

Pagina 14

UC-7112-LX Plus Software User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordanc

Pagina 15

UC-7112-LX Plus Software User’s Manual Getting Started 2-12 root@server11:/home/w341/1st_application [root@server11 1st_application]# pwd /home/UC

Pagina 16 - UC-7112 Plus

UC-7112-LX Plus Software User’s Manual Getting Started 2-13Uploading and Running the “tcps2-release” Program Use the following commands to use FTP t

Pagina 17 - />df –h

UC-7112-LX Plus Software User’s Manual Getting Started 2-144. The program should start running in the background. Use the #ps –ef command to check

Pagina 18 - Compiling Hello.c

UC-7112-LX Plus Software User’s Manual Getting Started 2-15NOTE Use the kill -9 command for PID 728 to terminate this program: #kill -9 %728 Summa

Pagina 19 - Compiling tcps2.c

33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. The informatio

Pagina 20

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-7112-LX

Pagina 21

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-3Since different Flash disks have different sizes, it is a good idea to check the s

Pagina 22

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-4 192.168.3.127 – PuTTY root@Moxa:/mnt/ramdisk# ftp 192.168.3.193 Connected to 19

Pagina 23 - Summary of Testing Procedure

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults To load the the factory default settings, you must press

Pagina 24 - Managing Embedded Linux

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-6To run a private daemon, you can edit the file rc.local, as follows: #cd /etc/rc.d

Pagina 25 - System Image Backup

Table of Contents Chapter 1 Introduction ...1-1 Overv

Pagina 26

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-7Setting the Run-Level In this section, we outline the steps you should take to set

Pagina 27

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-8Adjusting the System Time Setting the Time Manually The UC-7112-LX Plus has two ti

Pagina 28 - Loading Factory Defaults

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-9NTP Client The UC-7112-LX Plus has a built-in NTP (Network Time Protocol) client t

Pagina 29

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-10Cron—Daemon for Executing Scheduled Commands Start Cron from the directory /etc/r

Pagina 30 - Setting the Run-Level

44 Chapter 4 Managing Communications In this chapter, we explain how to configure the UC-7112-LX Plus’s various communication functions. The follo

Pagina 31 - Adjusting the System Time

UC-7112-LX Plus Software User’s Manual Managing Communications 4-2Telnet / FTP In addition to supporting Telnet client/server and FTP client/server,

Pagina 32 - NTP Client

UC-7112-LX Plus Software User’s Manual Managing Communications 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/

Pagina 33

UC-7112-LX Plus Software User’s Manual Managing Communications 4-4NOTE The CGI function is enabled by default. If you want to disable the function,

Pagina 34 - Managing Communications

UC-7112-LX Plus Software User’s Manual Managing Communications 4-5Step 3: Download the PHP package from the CD-ROM. You can find the package in CD-R

Pagina 35 - Telnet / FTP

UC-7112-LX Plus Software User’s Manual Managing Communications 4-6Step 6: Test it. Use the browser to access http://192.168.3.127/phpinfo.php If yo

Pagina 36 - Web Service—Apache

Dial-up Service—PPP... 4-12 PPPoE ...

Pagina 37

UC-7112-LX Plus Software User’s Manual Managing Communications 4-7IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspe

Pagina 38

UC-7112-LX Plus Software User’s Manual Managing Communications 4-8 The UC-7112-LX Plus supports the following sub-modules. Be sure to use the module

Pagina 39

UC-7112-LX Plus Software User’s Manual Managing Communications 4-9NOTE The UC-7112-LX Plus does NOT support IPV6 and ipchains. The basic syntax to

Pagina 40 - IPTABLES

UC-7112-LX Plus Software User’s Manual Managing Communications 4-10Define policy for chain rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT,

Pagina 41

UC-7112-LX Plus Software User’s Manual Managing Communications 4-11Example 7: Drop all packets from MAC address 01:02:03:04:05:06. # iptables –A INP

Pagina 42

UC-7112-LX Plus Software User’s Manual Managing Communications 4-12Enabling NAT at Bootup In most real world situations, you will want to use a simp

Pagina 43 - Append or delete rules:

UC-7112-LX Plus Software User’s Manual Managing Communications 4-13The pppd daemon is used to connect to a PPP server from a Linux system. For detai

Pagina 44 - NAT Example

UC-7112-LX Plus Software User’s Manual Managing Communications 4-14192.1.1.17 This is a degenerate case of a general option of the form x.x.x.x:y.y.

Pagina 45 - Dial-up Service—PPP

UC-7112-LX Plus Software User’s Manual Managing Communications 4-15Try typing: netstat –nr This should show three routes, something like this: Kerne

Pagina 46

UC-7112-LX Plus Software User’s Manual Managing Communications 4-164. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]

Pagina 47 - How to check the connection

11 Chapter 1 Introduction The Moxa UC-7112-LX Plus is a RISC-based ready-to-run computer that has two 10/100 Mbps Ethernet ports, an internal SD s

Pagina 48 - * * ““ *

UC-7112-LX Plus Software User’s Manual Managing Communications 4-176. Add one of two files: /etc/ppp/options.eth0 or /etc/ppp/options.eth1. The cho

Pagina 49

UC-7112-LX Plus Software User’s Manual Managing Communications 4-18NFS (Network File System) The Network File System (NFS) is used to mount a disk p

Pagina 50

UC-7112-LX Plus Software User’s Manual Managing Communications 4-19SNMP The UC-7112-LX Plus has built-in SNMP V1 (Simple Network Management Protocol

Pagina 51 - NFS (Network File System)

UC-7112-LX Plus Software User’s Manual Managing Communications 4-20Copy the file that is generated to the OpenVPN machine. 2. Generate a script fil

Pagina 52 - OpenVPN

UC-7112-LX Plus Software User’s Manual Managing Communications 4-21 start() { ifcfg_vpn if [ ! \( -d “/dev/net” \) ]; then mkdir /dev/net fi

Pagina 53

UC-7112-LX Plus Software User’s Manual Managing Communications 4-22 done brctl delif br0 $iface brctl delbr br0 ifconfig br0 down ifconfig $ifac

Pagina 54

UC-7112-LX Plus Software User’s Manual Managing Communications 4-23Note: Select cipher and authentication algorithms by specifying “cipher” and “aut

Pagina 55

UC-7112-LX Plus Software User’s Manual Managing Communications 4-24Setup 2: Ethernet Bridging for Private Networks on the Same Subnet 1. Set up fou

Pagina 56

UC-7112-LX Plus Software User’s Manual Managing Communications 4-25#!/bin/sh # value after “-net” is the subnet behind the remote peer route add -ne

Pagina 57 - Setup 3: Routed IP

55 Chapter 5 Application Development with Linux Tool Chain This chapter describes how to install the Linux tool chain, which contains a suite of c

Pagina 58

UC-7112-LX Plus Software User’s Manual Introduction 1-2Overview The UC-7112-LX Plus uses a Moxa ART ARM9 192 Mhz RISC CPU. Unlike the X86 CPU, which

Pagina 59 - Tool Chain

UC-7112-LX Plus Software User’s Manual Linux Tool Chain 5-2Steps for Installing the Linux Tool Chain The tool chain needs about 485 MB of hard dis

Pagina 60 - Compilation for Applications

UC-7112-LX Plus Software User’s Manual Linux Tool Chain 5-3On-Line Debugging with GDB The tool chain also provides an on-line debugging mechanism

Pagina 61 - On-Line Debugging with GDB

66 Chapter 6 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered in this chapter:

Pagina 62 - Programmer’s Guide

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-2Flash Memory Map Partition sizes are hard coded into the kernel binary. To change the p

Pagina 63 - RTC (Real Time Clock)

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-3Buzzer The device node is located at /dev/console. The UC-7112-LX Plus supports Linux s

Pagina 64 - WDT (Watch Dog Timer)

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-4Input int fd - the file handle, from the swtd_open() return value. unsigned long

Pagina 65

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-5Output A value of 0 (zero) indicates no error. Otherwise, you can get the error code fr

Pagina 66

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-6 time.tv_sec = msec / 1000; time.tv_usec = (msec % 1000) * 1000; select(1, NULL, N

Pagina 67

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-7UART The normal tty device node is located at /dev/ttyM0 … ttyM1. The UC-7112-LX Plus s

Pagina 68 - Example to get the baudrate

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-8Baudrate inaccuracy Divisor = 921600/Target Baud Rate. (Only Integer part) ENUM = 8 * (

Pagina 69 - Special Note

UC-7112-LX Plus Software User’s Manual Introduction 1-3Normally, the kernel uses the Root File System to boot up the system. The Root File System is

Pagina 70 - Software Lock

77 Chapter 7 Software Lock “Software Lock” is an innovative technology developed by the Moxa engineering team. It can be adopted by a system integ

Pagina 71 - Upgrade or Recovery

AA Appendix A Boot Loader Utility for Firmware Upgrade or Recovery Moxa provides a boot loader utility for firmware upgrade or recovery. You will

Pagina 72

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-2If you are familiar with Moxa’s embedded computers and the firmware upgrade procedure, yo

Pagina 73

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-34. After HyperTerminal launches, enter a name for the connection. 5. Click Cancel whe

Pagina 74

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-46. Select File Æ Properties from the main HyperTerminal screen. 7. You may change the

Pagina 75

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-58. Use the following parameters to configure the Port Settings: Bits per second: 115200

Pagina 76

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-69. Click the Settings tab and then select VT100 for Emulation. Click OK to finish the co

Pagina 77

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-7B. Check if Your Embedded Computer Supports the Boot Loader Utility 1. Power on the e

Pagina 78

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-8C. Download and install the TFTP program. 1. You will need to download a free TFTP se

Pagina 79

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-9D. Download and upgrade the firmware through HyperTerminal. 1. Connect to Moxa’s websi

Pagina 80

UC-7112-LX Plus Software User’s Manual Introduction 1-4Software Package Boot Loader Moxa Boot Loader (v1.2) Kernel Linux 2.6.9 Protocol Stack ARP, P

Pagina 81

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-10 3. Extract the file and put the latest firmware image in the same directory that the

Pagina 82

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-114. Connect LAN1 of the embedded computer to your PC using a cross-over Ethernet cable.

Pagina 83

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-127. You will need to enter the IP addresses of the embedded computer and your PC. Follow

Pagina 84

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-13c. Click the General tab and select Internet Protocol (TCP/IP), and then click on Prope

Pagina 85

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-14d. Next, select Use the following IP address and enter the following information. IP ad

Pagina 86

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-158. Go back to the boot load utility menu and enter the local IP address. This local IP

Pagina 87

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1610. Press the ESC key to exit the IP setting option. Next, select [3] Firmware Upgrade,

Pagina 88

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1712. When the TFTP server has been launched, the following screen will appear. 13. Go

Pagina 89 - System Commands

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility A-1815. It will take several minutes for the firmware files to be written to your embedded

Pagina 90 - Moxa special utilities

BB Appendix B System Commands Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln make symbolic link fi

Pagina 91

22 Chapter 2 Getting Started In this chapter, we explain how to connect the UC-7112-LX Plus, how to turn on the power, how to get started programm

Pagina 92

UC-7112-LX Plus Linux User’s Manual Boot Loader Utility B-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump k

Pagina 93

CC Appendix C Using SNMP Browser to Query the UC ***** SNMP QUERY STARTED ***** 1: sysDescr.0 (octet string) Version 1.0 2: sysObjectID.0 (object

Pagina 94

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-239: ifPhysAddress.1 (octet string) 00.90.E8.10.02.41 (hex) 40: ifPhysAddress.2 (octet s

Pagina 95

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-390: ifInErrors.4 (counter) 0 91: ifInErrors.5 (counter) 0 92: ifInErrors.6 (counter) 0

Pagina 96

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-4141: atIfIndex.1.192.168.27.139 (integer) 1 142: atIfIndex.2.192.168.4.127 (integer) 2

Pagina 97

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-5192: ipRouteProto.192.168.4.0 (integer) local(2) 193: ipRouteProto.192.168.27.0 (intege

Pagina 98

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-6243: tcpAttemptFails.0 (counter) 0 244: tcpEstabResets.0 (counter) 0 245: tcpCurrEstab.

Pagina 99

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-7294: tcpConnLocalPort.192.168.4.127.2049.0.0.0.0.0 (integer) 2049 295: tcpConnLocalPort

Pagina 100

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-8345: tcpConnRemPort.192.168.27.139.22.0.0.0.0.0 (integer) 0 346: tcpConnRemPort.192.168

Pagina 101

UC-7112-LX Plus Software User’s Manual Using SNMP Browser C-9396: rs232PortType.1 (integer) rs232(2) 397: rs232PortType.2 (integer) rs232(2) 398: rs

Comentarios a estos manuales

Sin comentarios