Moxa Technologies UC-8410 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Sítě Moxa Technologies UC-8410. Moxa Technologies UC-8410 User`s manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 98
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
UC-8410/8416/8418
LX Users Manual
Second Edition, September 2009
www.moxa.com/product
© 2009 Moxa Inc. All rights reserved.
Reproduction without permission is prohibited.
Zobrazit stránku 0
1 2 3 4 5 6 ... 97 98

Shrnutí obsahu

Strany 1 - LX User’s Manual

UC-8410/8416/8418 LX User’s Manual Second Edition, September 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction without pe

Strany 2

UC-8410/8416/8418-LX User’s Manual Getting Started 2-2Powering on the UC-8410/8416/8418 Connect the SG wire to the Shielded Contact located in the u

Strany 3 - Table of Contents

UC-8410/8416/8418-LX User’s Manual Getting Started 2-3Once the connection is established, the following window will open. To log in, type the Login

Strany 4

UC-8410/8416/8418-LX User’s Manual Getting Started 2-4 You can proceed with configuring network settings of the target computer when you reach the b

Strany 5 - Introduction

UC-8410/8416/8418-LX User’s Manual Getting Started 2-5SSH Console The UC-8410/8416/8418 supports an SSH console to provide users with better securit

Strany 6 - Software Architecture

UC-8410/8416/8418-LX User’s Manual Getting Started 2-6Configuring the Ethernet Interface The network settings of the UC-8410/8416/8418 can be modifi

Strany 7

UC-8410/8416/8418-LX User’s Manual Getting Started 2-7Dynamic IP Addresses: By default, the UC-8410/8416/8418 is configured for “static” IP addresse

Strany 8 - Software Features

UC-8410/8416/8418-LX User’s Manual Getting Started 2-8Test Program─Developing Hello.c Step 1: Connect the UC-8410/8416/8418 to a Linux PC. Step 2:

Strany 9 - Getting Started

UC-8410/8416/8418-LX User’s Manual Getting Started 2-9Checking the Flash Memory Space The UC-8410/8416/8418 uses a specially designed root file syst

Strany 10 - Serial Console

UC-8410/8416/8418-LX User’s Manual Getting Started 2-10 ATTENTION Be sure to type the #make command from within the /tmp/example/hello directory, si

Strany 11 - Telnet Console

33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. In this chap

Strany 12

UC-8410/8416/8418-LX User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance wi

Strany 13 - SSH Console

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-2System Version Information To determine the hardware capability of your UC-8410/8416/8

Strany 14

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-3Since different Flash disks have different sizes, it’s a good idea to check the size o

Strany 15

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-4 192.168.3.127 – PuTTY root@Moxa:/mnt/ramdisk# ftp 192.168.3.193 Connected to 192.16

Strany 16 - Cross Compiler

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-5Loading Factory Defaults Press the reset button for more than 5 seconds to force the s

Strany 17 - Compiling Hello.c

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-6Type the command “ps” to list all processes currently running. 192.168.3.127 – PuTT

Strany 18

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-7The following daemons will be enabled after you reboot the system. 192.168.3.127 –

Strany 19 - Managing Embedded Linux

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

Strany 20 - System Version Information

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-9Setting the System Time There are two ways to support the timezone configuration on a

Strany 21

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-10The following figure illustrates how to update the system time and set the RTC time.

Strany 22

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-11Updating the Time Automatically In this subsection, we show how to use a shell script

Strany 23 - Loading Factory Defaults

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

Strany 24

UC-8410/8416/8418-LX User’s Manual Managing Embedded Linux 3-12STEP2: Change mode of fixtime.sh #chmod 755 fixtime.sh STEP3: Modify /etc/cron.d/c

Strany 25

44 Chapter 4 Managing Communication In this chapter, we explain how to configure the UC-8410/8416/8418’s various communication functions. The foll

Strany 26 - Setting the Run-Level

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-2Telnet/FTP In addition to supporting Telnet client/server and FTP client/server, the UC

Strany 27 - Adjusting the System Time

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-3Web Service—Apache The Apache web server’s main configuration file is /etc/apache/conf/

Strany 28 - NTP Client

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-4To open the default CGI test script report page, type http://host-ip-address/cgi-bin/te

Strany 29

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-5IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspecting

Strany 30 - Connecting Peripherals

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-6The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle T

Strany 31 - Managing Communication

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-7The UC-8410/8416/8418 supports the following sub-modules. Be sure to use the module tha

Strany 32 - Telnet/FTP

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-8Since the IPTABLES command is very complex, to illustrate the IPTABLES syntax we have d

Strany 33 - Web Service—Apache

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-9Append or delete rules: Usage: # iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-i

Strany 34

PPPoE ... 4-15 NFS (

Strany 35 - IPTABLES

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-10NAT NAT (Network Address Translation) protocol translates IP addresses used on one net

Strany 36

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-11Enabling NAT at Bootup In most real world situations, you will want to use a simple sh

Strany 37

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-12 NOTE Click on the following links for more information about ppp: http://tldp.org/HO

Strany 38

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-13Debug Log status in syslog. Crtscts Use hardware flow control between the computer and

Strany 39 - Append or delete rules:

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-14Now, type: ping z.z.z.z where z.z.z.z is the address of your name server. This should

Strany 40 - NAT Example

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-15PPPoE 1. Connect the UC-8410/8416/8418’s LAN port to an ADSL modem with a cross-over

Strany 41 - Dial-up Service—PPP

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-165. Edit the file /etc/ppp/options and add the following line: plugin pppoe 192.168

Strany 42

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-17NFS (Network File System) Client The Network File System (NFS) is used to mount a disk

Strany 43 - How to check the connection

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-18SNMP The UC-8410/8416/8418 has the SNMP V1 (Simple Network Management Protocol) agent

Strany 44 - * * ““ *

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-19Setup 1: Ethernet Bridging for Private Networks on Different Subnets 1. Set up four m

Strany 45

11 Chapter 1 Introduction Welcome to the Moxa UC-8400 Series of RISC-based communication platforms. The UC-8410/8416/8418 embedded computer come

Strany 46

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-20 case “$f1” in address ) IPADDR=$f2 ;; netmask ) NETMASK=$f2

Strany 47

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-21 # null ip address of tap device ifconfig tap${i} 0.0.0.0 promisc up i=

Strany 48 - OpenVPN

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-223. On machine OpenVPN A, modify the remote address in the configuration file, /etc/op

Strany 49

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-23If you see the line “Peer Connection Initiated with 192.168.8.173:5000” on each machin

Strany 50

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-24Setup 2: Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four mac

Strany 51

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-252. On machine OpenVPN A, modify the remote address in the configuration file, /etc/op

Strany 52

UC-8410/8416/8418-LX User’s Manual Managing Communication 4-263. Check the routing table after you run the OpenVPN programs, by typing the command:

Strany 53

55 Chapter 5 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered:  Flash Memory

Strany 54 - Setup 3: Routed IP

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-2Flash Memory Map Partition sizes are hard coded into the kernel binary. To change partition

Strany 55

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-3Alternatively, you can add the same commands to $HOME/.bash_profile to cause it to take eff

Strany 56 - Package Management—ipkg

UC-8410/8416/8418-LX User’s Manual Introduction 1-2Overview The UC-8410/8416/8418 computer, which features a RISC CPU, RAM memory, serial ports for

Strany 57 - Programmer’s Guide

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-4Debugging with GDB First use the option -ggdb to compile the program. Use the following ste

Strany 58 - Flash Memory Map

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-5Buzzer The device node is located at /dev/console. The UC-8410/8416/8418 supports Linux sta

Strany 59 - Obtaining help

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-6int swtd_enable(int fd, unsigned long time) Description Enable the application sWatchDog. Y

Strany 60 - RTC (Real Time Clock)

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

Strany 61 - WDT (Watch Dog Timer)

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-8 exit(0); } The makefile is shown below: all: xscale-linux-gcc –o xxxx xxxx.c –lmox

Strany 62

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-9} The makefile is shown below: all: xscale-linux-gcc –o xxxx xxxx.c –lmoxalib Digita

Strany 63

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-10> Returns the call back function. When the event occurs, the call back function will be

Strany 64

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-11Examples Example 1 File Name: tdio.c Description: The program indicates to connect DO1 to

Strany 65 - Digital I/O

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-12scanf(“%lu”, &duration); retval = set_din_event(i, lowtohighevent, DIN_EVENT_LOW_TO_HI

Strany 66 - Special Note

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-13DIO Program Make File Example FNAME=tdio CC=xscale-linux-gcc STRIP=xscale-linux-strip rele

Strany 67 - Examples

UC-8410/8416/8418-LX User’s Manual Introduction 1-3The UC-8410/8416/8418’s built-in Flash ROM is divided into Boot Loader, Linux Kernel, Root File S

Strany 68

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-14Setinterface The Serial Port Expansion Module has 8 serial ports, labeled ttyM0 to ttyM7.

Strany 69

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-15Baudrate inaccuracy Divisor = 921600/Target Baud Rate. (Only Integer part) ENUM = 8 * (921

Strany 70 - Setinterface

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-16 char pattern=‘9’; if ( argc > 2 ) { printf(“Usage: %s [pattern]\n”); exit(

Strany 71 - Baudrate inaccuracy

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-17 printf(“Usage: %s [pattern]\n”); exit(0); } if ( argc == 2 ) { pattern=argv[1

Strany 72

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-18Moxa CAN Programming Guide Introduction CAN is a broadcast serial bus standard for connect

Strany 73 - Make File Example

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-19 unsigned char byte6; unsigned char byte7;

Strany 74 - Moxa CAN Programming Guide

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-20 memset(&txframe, 0, sizeof(txframe)); memset(&txframe, 0, sizeof(rxframe))

Strany 75

UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-21 $(STRIP) $(TARGET)-release $(TARGET1)-release clean: rm -f *.o $(TARGET)-debug $

Strany 76

AA Appendix A Firmware Upgrade Procedure Firmware Upgrade Procedure Moxa provides a boot loader utility for firmware upgrade or recovery. You will

Strany 77 - Software Lock

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-2There are three steps in the recovery process. A. Configure HyperTerminal for th

Strany 78 - Firmware Upgrade Procedure

UC-8410/8416/8418-LX User’s Manual Introduction 1-4Software Features Operating System Boot Loader Redboot Kernel Linux 2.6.23 Protocol Stack ARP

Strany 79

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-35. After HyperTerminal launches, enter UC-8410 or another name for the connection.

Strany 80

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-47. Select File Æ Properties from the main HyperTerminal screen. 8. You can chang

Strany 81

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-59. Configure the Port Settings with following parameters: Bits per second: 115200

Strany 82

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-6B. Download and Installation of the TFTP program. 1. You will need to download a

Strany 83

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-7C. Download and Upgrade the Firmware through HyperTerminal. 1. Connect to Moxa’s

Strany 84 - HyperTerminal

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-83. In the software list, select the firmware for your model. Choose the appropriat

Strany 85

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-95. Next, connect LAN1 of the embedded computer to your PC using a cross-over Ether

Strany 86

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-101. In the boot loader utility, select [0] Network Configuration, and then [0] Cha

Strany 87

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-11b. Right-click on Local Area Connection, and then select Properties. c. Click the

Strany 88

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-12d. Next, select Use the following IP address and enter the IP address and Subnet m

Strany 89

22 Chapter 2 Getting Started In this chapter, we explain how to connect the UC-8410/8416/8418, turn on the power, and then get started with progra

Strany 90

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-133. Go back to the boot load utility menu and assign the local IP address, and the

Strany 91

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-145. To start the TFPF server, double-click on the tftpd32 icon to launch the TFTP

Strany 92

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-157. Go back to the boot loader utility menu and enter the file name of the firmwar

Strany 93

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-169. It will take several minutes for the firmware files to be written to your embe

Strany 94

UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-1711. If you cannot reboot your embedded computer (after following all the steps ab

Strany 95 - System Commands

BB Appendix B System Commands Linux normal command utility collection File manager cp copy file ls list file ln make symbolic link file mount moun

Strany 96 - Process

UC-8410/8416/8418LX User’s Manual System Commands B-2Editor vi text editor cat dump file context grep Search string on file egrep search string on f

Strany 97 - Modules

UC-8410/8416/8418LX User’s Manual System Commands B-3Modules insmod insert a module into the kernel lsmod shows which kernel modules are currently l

Strany 98 - Special Moxa Utilities

UC-8410/8416/8418LX User’s Manual System Commands B-4Special Moxa Utilities setkey set the software encryption key upgradehfm upgrade firmware utili

Komentáře k této Příručce

Žádné komentáře