Moxa Technologies UC-7112 LX Plus Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Redes Moxa Technologies UC-7112 LX Plus. Moxa Technologies UC-7112 LX Plus User`s manual Manual de usuario

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

Indice de contenidos

Pagina 1 - Second Edition, June 2008

UC-7112-LX Plus Software User’s Manual Second Edition, June 2008 www.moxa.com/product © 2008 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 Getting Started 2-3The following window will open when a connection has been established. To log in, type th

Pagina 4

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 5 - Introduction

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 6 - Software Architecture

UC-7112-LX Plus Software User’s Manual Getting Started 2-6Modifying Network Settings with the Serial Console In this section, we use the serial cons

Pagina 7

UC-7112-LX Plus Software User’s Manual Getting Started 2-7Installing a Secure Digital (SD) Memory Card The UC-7112-LX Plus has an internal SD socket

Pagina 8 - Software Package

UC-7112-LX Plus Software User’s Manual Getting Started 2-8Test Program—Developing Hello.c In this section, we use the standard “Hello” programming e

Pagina 9 - Getting Started

UC-7112-LX Plus Software User’s Manual Getting Started 2-9Checking the Flash Memory Space If the flash memory is full, you will not be able to save

Pagina 10 - Serial Console

UC-7112-LX Plus Software User’s Manual Getting Started 2-10hello-debug—an ARM platform GDB debug server execution file (see Chapter 5 for details ab

Pagina 11 - Telnet Console

UC-7112-LX Plus Software User’s Manual Getting Started 2-11Testing Environment The tcps2 example demonstrates a simple application program that deli

Pagina 12

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 13 - SSH Console

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 14

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 15 -

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 16 - Universal Communicator

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 17 - Compiling Hello.c

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

Pagina 18

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 19 - Compiling tcps2.c

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-3 192.168.3.127 – PuTTY root@Moxa:~# df -h Filesystem Size Used Available Us

Pagina 20

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 21

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 22

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-6Enabling and Disabling Daemons The following daemons are enabled when the UC-7112-

Pagina 23 - Summary of Testing Procedure

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

Pagina 24 - Managing Embedded Linux

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-7 192.168.3.127 – PuTTY # !/bin/sh # Add you want to run daemon /root/tcps2-relea

Pagina 25 - System Image Backup

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-8xx: a number between 00-99. Smaller numbers have a higher priority. RUNFILE: the f

Pagina 26

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-9The following figure illustrates how to update thesystem time and set the RTC time

Pagina 27

UC-7112-LX Plus Software User’s Manual Managing Embedded Linux 3-10How to run the shell script automatically when the kernel boots up Copy the examp

Pagina 28 - Loading Factory Defaults

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 29

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 30 - Setting the Run-Level

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 31 - Adjusting the System Time

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 32 - NTP Client

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 33

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 34 - Managing Communications

NAT Example ... 4-11 Enabling NAT at Bootup...

Pagina 35 - Telnet / FTP

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

Pagina 36 - Web Service—Apache

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 37

UC-7112-LX Plus Software User’s Manual Managing Communications 4-9The basic syntax to enable and load an IPTABLES module is as follows: #lsmod #insm

Pagina 38

UC-7112-LX Plus Software User’s Manual Managing Communications 4-10OUTPUT: For locally-generated packets. FORWARD: For packets routed out throug

Pagina 39

UC-7112-LX Plus Software User’s Manual Managing Communications 4-11NAT NAT (Network Address Translation) protocol translates IP addresses used on on

Pagina 40 - IPTABLES

UC-7112-LX Plus Software User’s Manual Managing Communications 4-12# Step 1. Insert modules. # Here 2> /dev/null means the standard error message

Pagina 41

UC-7112-LX Plus Software User’s Manual Managing Communications 4-13connect ‘chat etc...’ This option gives the command to contact the PPP server. Th

Pagina 42

UC-7112-LX Plus Software User’s Manual Managing Communications 4-14First, type: /sbin/ifconfig (The folder ifconfig may be located elsewhere, depend

Pagina 43 - Append or delete rules:

UC-7112-LX Plus Software User’s Manual Managing Communications 4-15password. pppd/dev/ttyM0 115200 crtscts modem 192.168.16.1:192.168.16.2 login aut

Pagina 44 - Enabling NAT at Bootup

UC-7112-LX Plus Software User’s Manual Managing Communications 4-16“[email protected]” is the username obtained from the ISP to log in to the ISP a

Pagina 45 - Dial-up Service—PPP

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 46 - How to check the connection

UC-7112-LX Plus Software User’s Manual Managing Communications 4-17nameserver ip_addr_of_first_dns_server nameserver ip_addr_of_second_dns_server Fo

Pagina 47 - /sbin/ifconfig

UC-7112-LX Plus Software User’s Manual Managing Communications 4-18Example: smtpclient –s test –f [email protected] –S IP_address receiver@c

Pagina 48 - * * ““ *

UC-7112-LX Plus Software User’s Manual Managing Communications 4-19Setup 1: Ethernet Bridging for Private Networks on Different Subnets 1. Set up f

Pagina 49

UC-7112-LX Plus Software User’s Manual Managing Communications 4-20 broadcast ) BROADCAST=$f2 ;; esac done break fi don

Pagina 50 - NFS (Network File System)

UC-7112-LX Plus Software User’s Manual Managing Communications 4-21 break fi done # null ip address of internal interface ifconfig $iface 0

Pagina 51 - OpenVPN

UC-7112-LX Plus Software User’s Manual Managing Communications 4-22cipher DES-EDE3-CBC auth MD5 tun-mtu 1500 tun-mtu-extra 64 ping 40 up /etc/openvp

Pagina 52

UC-7112-LX Plus Software User’s Manual Managing Communications 4-23item: route add –net 192.168.2.0 netmask 255.255.255.0 dev eth0 Now ping Host B f

Pagina 53

UC-7112-LX Plus Software User’s Manual Managing Communications 4-24Setup 3: Routed IP 1. Set up four machines as shown in the following diagram: Op

Pagina 54 - A-tap0-br.sh on OpenVPN A

UC-7112-LX Plus Software User’s Manual Managing Communications 4-25the second argument of ifconfig in the configuration file. 3. Check the routing

Pagina 55

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 56 - # killall -TERM openvpn

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 57 - Setup 3: Routed IP

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 58 - # route

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 59 - Tool Chain

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

Pagina 60 - Compilation for Applications

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 61 - On-Line Debugging with GDB

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-3The buzzer’s on / off behavior is controlled by software. If you call the “ioctl” funct

Pagina 62 - Programmer’s Guide

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-4Output errno() returns the error code. A value of 0 (zero) indicates no error. int swtd

Pagina 63 - RTC (Real Time Clock)

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-54. Special Note When you “kill the application with -9” or “kill without option” or “C

Pagina 64 - WDT (Watch Dog Timer)

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-6static int swtdfd; static int stopflag=0; static void stop_swatchdog() { stopflag =

Pagina 65

UC-7112-LX Plus Software User’s Manual Programmer’s Guide 6-7int ioctl(fd, MOXA_GET_OP_MODE, &mode) Description Get the interface mode. Argument

Pagina 66

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 67

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 68 - Special Note

AA Appendix A System Commands busybox (V0.60.4): Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln ma

Pagina 69 - Software Lock

UC-7112-LX Plus Linux User’s Manual System Commands A-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump kerne

Pagina 70 - System Commands

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

Pagina 71 - Moxa special utilities

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

Pagina 72

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

Pagina 73

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

Pagina 74

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

Pagina 75

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

Pagina 76

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

Pagina 77

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

Pagina 78

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 79

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

Pagina 80

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

Pagina 81

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

Pagina 82

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

Comentarios a estos manuales

Sin comentarios