Moxa Technologies UC-7112 LX Plus Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Networking Moxa Technologies UC-7112 LX Plus. Moxa Technologies UC-7112 LX Plus User`s manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 82
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 0
1 2 3 4 5 6 ... 81 82

Podsumowanie treści

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 17 - Compiling Hello.c

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

Strona 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

Strona 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

Strona 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

Strona 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

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

Strona 23 - Summary of Testing Procedure

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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,

Strona 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/

Strona 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,

Strona 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

Strona 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

Strona 34 - Managing Communications

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

Strona 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

Strona 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

Strona 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

Strona 38

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

Strona 39

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

Strona 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

Strona 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

Strona 42

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 49

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 59 - Tool Chain

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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 =

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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.

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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:

Strona 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

Strona 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

Komentarze do niniejszej Instrukcji

Brak uwag