Moxa UC-7410 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Clientes fino Moxa UC-7410. Moxa UC-7410 Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 91
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
UC-7420/7410 Users Manual
Seventh Edition, February 2009
www.moxa.com/product
© 2009 Moxa Inc. All rights reserved.
Reproduction without permission is prohibited.
Vista de página 0
1 2 3 4 5 6 ... 90 91

Resumo do Conteúdo

Página 1 - UC-7420/7410 User’s Manual

UC-7420/7410 User’s Manual Seventh Edition, February 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction without permission

Página 2

UC-7420/7410 User’s Manual Introduction 1-5Dimensions 197 mm [7.76"]125 mm [4.92"]44 mm[1.73"]

Página 3 - Table of Contents

UC-7420/7410 User’s Manual Introduction 1-6Hardware Block Diagram The following block diagram shows the layout of UC-7420’s internal components (the

Página 4

UC-7420/7410 User’s Manual Introduction 1-7Reset-type Buttons UC-7420/7410 has two reset-type buttons. The button labeled Reset has the same effect

Página 5

UC-7420/7410 User’s Manual Introduction 1-8Placement Options Wall or Cabinet The two metal brackets that come standard with UC-7420/7410 are used to

Página 6 - Introduction

UC-7420/7410 User’s Manual Introduction 1-9DIN-Rail Mounting The aluminum DIN-Rail attachment plate is included in the package. If you need to reatt

Página 7 - Overview

UC-7420/7410 User’s Manual Introduction 1-10You should also observe the following common wiring rules: y Use separate paths to route wiring for pow

Página 8 - Product Features

UC-7420/7410 User’s Manual Introduction 1-11Connecting to the Network Connect one end of the Ethernet cable to one of UC-7420/7410’s 10/100M Etherne

Página 9 - Hardware Introduction

UC-7420/7410 User’s Manual Introduction 1-12CompactFlash UC-7420 provides one CompactFlash slot that supports CompactFlash type I/II card expansion.

Página 10 - Dimensions

UC-7420/7410 User’s Manual Introduction 1-13User APUser Directory(User Configuration)Mini Root File SystemConfigurationLinux Kernel & RootHWBoot

Página 11 - LED Indicators

UC-7420/7410 User’s Manual Introduction 1-14Although JFFS2 is a journaling file system, this does not preclude the loss of data. The file system wil

Página 12 - Real Time Clock

UC-7420/7410 User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the t

Página 13 - Placement Options

22 Chapter 2 Getting Started In this chapter, we explain how to connect UC-7420/7410, turn on the power, and then get started using the programmin

Página 14 - Wiring Requirements

UC-7420/7410 User’s Manual Getting Started 2-2Powering on UC-7420/7410 Connect the SG wire to the Shielded Contact located in the upper left corner

Página 15 - DC 12-48V

UC-7420/7410 User’s Manual Getting Started 2-3Telnet Console If you know at least one of the two IP addresses and netmasks, then you can use Telnet

Página 16 - Connecting to the Network

UC-7420/7410 User’s Manual Getting Started 2-4 ATTENTION Serial Console Reminder Remember to choose VT100 as the terminal type. Use cable CBL-RJ45F9

Página 17 - Software Introduction

UC-7420/7410 User’s Manual Getting Started 2-5Linux Users From a Linux machine, use the “ssh” command to access UC-7420/7410’s Console utility via S

Página 18

UC-7420/7410 User’s Manual Getting Started 2-6 Dynamic IP addresses: By default, UC-7420/7410 is configured for “static” IP addresses. To configure

Página 19 - Software Package

UC-7420/7410 User’s Manual Getting Started 2-7NOTE After changing the IP settings, use the networking restart command to activate the new IP addres

Página 20 - Getting Started

UC-7420/7410 User’s Manual Getting Started 2-8 3. Configure the Wireless LAN card’s default SSID setting profile. (Default SSID is “any”) #vi /etc/

Página 21 - Powering on UC-7420/7410

UC-7420/7410 User’s Manual Getting Started 2-9IEEE802.11g The following IEEE802.11g wireless modules are supported: y ASUS—WL-107g y CNET—CWC-854

Página 22 - Telnet Console

UC-7420/7410 User’s Manual Getting Started 2-103. Additional WLAN parameters are contained in the file RT2500STA.dat. To open the file, navigate to

Página 23 - SSH Console

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

Página 24 - Linux Users

UC-7420/7410 User’s Manual Getting Started 2-11NetworkType—Sets the wireless operation mode Setting Explanation Infra Infrastructure mode (uses ac

Página 25

UC-7420/7410 User’s Manual Getting Started 2-12TurboRate—Enables or disables TurboRate Setting Explanation 0 disable 1 enable BGProtection—Sets 11

Página 26 - IEEE802.11b

UC-7420/7410 User’s Manual Getting Started 2-13Test Program—Developing Hello.c In this section, we use the standard “Hello” programming example to i

Página 27

UC-7420/7410 User’s Manual Getting Started 2-14 If there isn’t enough “Available” space for your application, you will need to delete some existing

Página 28 - IEEE802.11g

UC-7420/7410 User’s Manual Getting Started 2-15Uploading “Hello” to UC-7420/7410 and Running the Program Use the following command to upload hello-r

Página 29

UC-7420/7410 User’s Manual Getting Started 2-16Compiling tcps2.c The source code for the tcps2 example is located on the CD-ROM at CD-ROM://example/

Página 30

UC-7420/7410 User’s Manual Getting Started 2-17Uploading tcps2-release and Running the Program Use the following commands to use FTP to upload tcps2

Página 31

UC-7420/7410 User’s Manual Getting Started 2-184. The program should start running in the background. Use either the #jobs or #ps –ef command to ch

Página 32 - />df –h

UC-7420/7410 User’s Manual Getting Started 2-19 158 root 1532 S /sbin/getty 115200 ttyS1 162 root 3652 S /usr/sbin/sshd 163 ro

Página 33 - Compiling Hello.c

UC-7420/7410 User’s Manual Getting Started 2-20NOTE The tcps2.c application is a simple example designed to give users a basic understanding of the

Página 34 - Testing Environment

Compiling tcps2.c... 2-16 Uploading tcps2-release a

Página 35 - Compiling tcps2.c

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

Página 36

UC-7420/7410 User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-7420/7410, and what

Página 37

UC-7420/7410 User’s Manual Managing Embedded Linux 3-3Since different Flash disks have different sizes, it’s a good idea to check the size of your F

Página 38 - Testing Procedure Summary

UC-7420/7410 User’s Manual Managing Embedded Linux 3-4-rw-rw-rw- 1 ftp ftp 8778996 Nov 29 10:24 UC7420_usrdisk-1.5.frm 226 Transfer complete

Página 39

UC-7420/7410 User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults The easiest way to load factory defaults is to update the firmware (f

Página 40 - Managing Embedded Linux

UC-7420/7410 User’s Manual Managing Embedded Linux 3-6Type the command “ps –ef” to list all processes currently running. 192.168.3.127 – PuTTY ro

Página 41 - System Image Backup

UC-7420/7410 User’s Manual Managing Embedded Linux 3-7Next, use the vi open your application program. We use the example program tcps2-release, and

Página 42

UC-7420/7410 User’s Manual Managing Embedded Linux 3-8Setting the Run-Level In this section, we outline the steps you should take to set the Linux r

Página 43

UC-7420/7410 User’s Manual Managing Embedded Linux 3-9Adjusting the System Time Setting the Time Manually UC-7420/7410 has two time settings. One is

Página 44 - Loading Factory Defaults

UC-7420/7410 User’s Manual Managing Embedded Linux 3-10NTP Client UC-7420/7410 has a built-in NTP (Network Time Protocol) client that is used to ini

Página 45

File manager... A-1 Editor...

Página 46

UC-7420/7410 User’s Manual Managing Embedded Linux 3-11Cron—daemon to Execute Scheduled Commands This function is only available for firmware versio

Página 47 - Setting the Run-Level

UC-7420/7410 User’s Manual Managing Embedded Linux 3-12Connecting Peripherals USB Mass Storage This function is only available for firmware version

Página 48 - Adjusting the System Time

44 Chapter 4 Managing Communications In this chapter, we explain how to configure UC-7420/7410’s various communication functions. The following to

Página 49 - NTP Client

UC-7420/7410 User’s Manual Managing Communication 4-2Telnet / FTP In addition to supporting Telnet client/server and FTP client/server, the UC-7420/

Página 50

UC-7420/7410 User’s Manual Managing Communication 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/httpd.conf, w

Página 51 - Connecting Peripherals

UC-7420/7410 User’s Manual Managing Communication 4-4 To open the default CGI test script report page, type http://192.168.3.127/cgi-bin/test-cgi i

Página 52 - Managing Communications

UC-7420/7410 User’s Manual Managing Communication 4-5Saving a Web Page to the CF Card Since some applications will have web pages that take up a lot

Página 53 - Telnet / FTP

UC-7420/7410 User’s Manual Managing Communication 4-6Step4: Open your browser and connect to the UC-7420/7410 by typing the current LAN1 IP address

Página 54 - Web Service—Apache

UC-7420/7410 User’s Manual Managing Communication 4-7MASQUERADE—a special form for SNAT. If one host can connect to internet, then other computers t

Página 55

UC-7420/7410 User’s Manual Managing Communication 4-8UC-7420/7410 supports the following sub-modules. Be sure to use the module that matches your ap

Página 56

11 Chapter 1 Introduction Welcome to Moxa UC-7420/7410 RISC-based Communication Platforms. Available features include eight RS-232/422/485 serial

Página 57 - IPTABLES

UC-7420/7410 User’s Manual Managing Communication 4-9Examples: # iptables -L -n In this example, since we do not use the -t parameter, the system

Página 58

UC-7420/7410 User’s Manual Managing Communication 4-10Example 2: Accept TCP packets from 192.168.0.1. # iptables –A INPUT –i ixp0 –p tcp –s 192.168.

Página 59

UC-7420/7410 User’s Manual Managing Communication 4-111. #ehco 1 > /proc/sys/net/ipv4/ip_forward 2. #modprobe iptable_nat 3. #modprobe ip_conntra

Página 60 - Append or delete rules:

UC-7420/7410 User’s Manual Managing Communication 4-12NOTE Click on the following links for more information about ppp: http://tldp.org/HOWTO/PPP-H

Página 61 - NAT Example

UC-7420/7410 User’s Manual Managing Communication 4-13crtscts Use hardware flow control between computer and modem (at 115200 this is a must). modem

Página 62 - Dial-up Service—PPP

UC-7420/7410 User’s Manual Managing Communication 4-14where z.z.z.z is the address of your name server. This should work. Here’s what the response c

Página 63

UC-7420/7410 User’s Manual Managing Communication 4-15PPPoE How to use PPPoE on UC-7408: 1. Update two files: /usr/sbin/pppd and /usr/lib/pppd/2.4.

Página 64 - How to check the connection

UC-7420/7410 User’s Manual Managing Communication 4-165. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password

Página 65 - * * “” *

UC-7420/7410 User’s Manual Managing Communication 4-177. Add one of two files: /etc/ppp/options.ixp0 or /etc/ppp/options.ixp1. The choice depends o

Página 66

UC-7420/7410 User’s Manual Managing Communication 4-18NFS (Network File System) The Network File System (NFS) is used to mount a disk partition on a

Página 67

UC-7420/7410 User’s Manual Introduction 1-2Overview UC-7420/7410 RISC-based Communication Platforms are ideal for embedded applications. UC-7420/741

Página 68

UC-7420/7410 User’s Manual Managing Communication 4-19async The async option instructs the server to lie to the client, telling the client that all

Página 69 - NFS (Network File System)

UC-7420/7410 User’s Manual Managing Communication 4-20NOTE Click on the following link for more information about smtpclient: http://www.engelschal

Página 70

UC-7420/7410 User’s Manual Managing Communication 4-21***** SNMP QUERY FINISHED ***** NOTE Click on the following links for more information about

Página 71 - < mail-body-message

UC-7420/7410 User’s Manual Managing Communication 4-222. Generate a preset shared key by typing the command: # openvpn --genkey --secret secrouter.

Página 72 - InternetInternet

UC-7420/7410 User’s Manual Managing Communication 4-23 IFS=$oIFS if [ “$FOUND” = “no” ]; then modprobe $mname fi } start() { ifcfg_vpn if

Página 73

UC-7420/7410 User’s Manual Managing Communication 4-24 openvpn --rmtun --dev tap${i} i=`expr $i + 1` if [ $i -ge $maxtap ]; then br

Página 74

UC-7420/7410 User’s Manual Managing Communication 4-25up /etc/openvpn/B-tap0-br.sh #---------------------------------- Start------------------------

Página 75

UC-7420/7410 User’s Manual Managing Communication 4-26Setup 2: Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four machines as

Página 76

UC-7420/7410 User’s Manual Managing Communication 4-272. Create a configuration file named “A-tun.conf” and an executable script file named “A-tun.

Página 77 - Setup 3: Routed IP

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

Página 78

UC-7420/7410 User’s Manual Introduction 1-3Product Features y Intel XScale IXP422 266 MHz Processor y On-board 128 MB RAM, 32 MB Flash ROM y Eigh

Página 79 - Programmer’s Guide

UC-7420/7410 User’s Manual Programmer’s Guide 5-2Flash Memory Map Partition sizes are hard coded into the kernel binary. To change the partition siz

Página 80 - #mount /dev/cdrom /mnt/cdrom

UC-7420/7410 User’s Manual Programmer’s Guide 5-3Obtaining help Use the Linux man utility to obtain help on many of the utilities provided by the to

Página 81 - #mxscaleb-strip –s example

UC-7420/7410 User’s Manual Programmer’s Guide 5-4Debugging with GDB First compile the program must with option -ggdb. Use the following steps: 1. T

Página 82 - RTC (Real Time Clock)

UC-7420/7410 User’s Manual Programmer’s Guide 5-5Buzzer The device node is located at /dev/console. UC-7420/7410 supports Linux standard buzzer cont

Página 83 - WDT (Watch Dog Timer)

UC-7420/7410 User’s Manual Programmer’s Guide 5-6int swtd_enable(int fd, unsigned long time) Description Enable application sWatchDog. And you must

Página 84

UC-7420/7410 User’s Manual Programmer’s Guide 5-7int swtd_ack(int fd) Description: Acknowledge sWatchDog. When the user application enable sWatchDog

Página 85

UC-7420/7410 User’s Manual Programmer’s Guide 5-8 swtd_close(fd); exit(0); } The makefile is shown below: all: mxscaleb-gcc –o xxxx xxxx.c

Página 86

UC-7420/7410 User’s Manual Programmer’s Guide 5-9 exit(1); } The makefile is shown below: all: mxscaleb-gcc –o xxxx xxxx.c –lmoxalib UART The

Página 87 - Example to set the baud rate

UC-7420/7410 User’s Manual Programmer’s Guide 5-10Example to get the baud rate #include <moxadevice.h> #include <termios.h> struct te

Página 88 - Examples

UC-7420/7410 User’s Manual Programmer’s Guide 5-11KeyPad The device node is /dev/keypad. The key value is defined in moxadevice.h. int ioctl(fd, IOC

Página 89 - Make File Example

UC-7420/7410 User’s Manual Introduction 1-4Operating temperature -10 to 60°C, (14 to 140°F), 5 to 95% RH Storage temperature -20 to 80°C, (-4 to 185

Página 90 - System Commands

AA Appendix A System Commands Linux normal command utility collection File manager 1. cp copy file 2. ls list file 3. ln make

Página 91 - Moxa special utilities

UC-7420/7410 User’s Manual System Commands A-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg dump

Comentários a estes Manuais

Sem comentários