Moxa Technologies UC-8410 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Vernetzung Moxa Technologies UC-8410 herunter. Moxa Technologies UC-8410 User`s manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 98
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 0
1 2 3 4 5 6 ... 97 98

Inhaltsverzeichnis

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 11 - Telnet Console

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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 –

Seite 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

Seite 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

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

Seite 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

Seite 23 - Loading Factory Defaults

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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 29

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 34

PPPoE ... 4-15 NFS (

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 46

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

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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 53

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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(

Seite 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

Seite 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

Seite 73 - Make File Example

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

Seite 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))

Seite 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 $

Seite 76

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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Kommentare zu diesen Handbüchern

Keine Kommentare