Moxa Technologies DA-710 Series Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Wasserpumpen Moxa Technologies DA-710 Series herunter. Moxa Technologies DA-710 Series User`s manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Second Edition, August 2012

DA-710 Series Linux User’s Manual Second Edition, August 2012 www.moxa.com/product © 2012 Moxa Inc. All rights reserved.

Seite 2 - Trademarks

DA-710 Series Linux Introduction 1-7 threading mysql-common 5.0.51a-24+lenny2 MySQL database common files ncurses-base 5.7+20081213-1 bas

Seite 3

DA-710 Series Linux Introduction 1-8 sysvinit-utils 2.86.ds1-61 System-V-like utilities tar 1.20-1 GNU version of the tar archiving utility task

Seite 4 - Introduction

2 2. Software Configuration In this chapter, we explain how to operate a DA-710-LX computer directly or from a PC near you. There are three ways to

Seite 5 - Software Specifications

DA-710 Series Linux Software Configuration 2-2 Starting from a VGA Console Connect the display monitor to the DA-710-LX VGA connector, and then powe

Seite 6 - Software Components

DA-710 Series Linux Software Configuration 2-3 Connecting from a Telnet Console The DA-710-LX computer comes with four basic Gigabit Ethernet ports

Seite 7

DA-710 Series Linux Software Configuration 2-4 Connecting from an SSH Console The DA-710-LX computer supports an SSH Console to offer users with bet

Seite 8

DA-710 Series Linux Software Configuration 2-5 Adjusting the System Time The DA-710-LX has two time settings. One is the system time, and the other

Seite 9

DA-710 Series Linux Software Configuration 2-6 ATTENTION Before using the NTP client utility, check your IP address and network settings to make s

Seite 10

DA-710 Series Linux Software Configuration 2-7 Enabling and Disabling Daemons The following daemons are enabled when the DA-710-LX boots up for the

Seite 11

DA-710 Series Linux Software Configuration 2-8 To run a private daemon, you can edit the file rc.local as follows: 1. Because the root file system

Seite 12 - Software Configuration

DA-710 Series Linux User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with

Seite 13 - Starting from a VGA Console

DA-710 Series Linux Software Configuration 2-9 Setting the Run-Level To set the Linux run-level and execution priority of a program, use the followi

Seite 14

DA-710 Series Linux Software Configuration 2-10 Cron—Daemon for Executing Scheduled Commands The Cron daemon will search /etc/crontab for crontab fi

Seite 15 - Linux Users

DA-710 Series Linux Software Configuration 2-11 Inserting a USB Storage Device into the Computer Since mounting USB storage devices manually can be

Seite 16 - Adjusting the System Time

DA-710 Series Linux Software Configuration 2-12 Inserting a CompactFlash Card into the Computer The CompactFlash card is treated as a local disk dri

Seite 17 - ATTENTION

DA-710 Series Linux Software Configuration 2-13 APT—Installing and Removing Packages APT is the Debian tool used to install and remove packages. Bef

Seite 18

DA-710 Series Linux Software Configuration 2-14 MOXA:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 772M 39

Seite 19

3 3. Managing Communications The DA-710-LX ready-to-run embedded computer is a network-centric platform designed to serve as a front-end for data ac

Seite 20 - Setting the Run-Level

DA-710 Series Linux Managing Communications 3-2 Changing the Network Settings The DA-710-LX computer has four basic Gigabit Ethernet ports named LAN

Seite 21 - Commands

DA-710 Series Linux Managing Communications 3-3 Dynamic IP Address using DHCP To configure one or both LAN ports to request an IP address dynamicall

Seite 22 - Computer

DA-710 Series Linux Managing Communications 3-4 # PCI device 0x10ec:0x8139 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS==&

Seite 23 - Checking the Linux Version

Table of Contents 1. Introduction ...

Seite 24

DA-710 Series Linux Managing Communications 3-5 Configuring Multiple Serial Ports for Expansion Modules This section explains how to configure the s

Seite 25

DA-710 Series Linux Managing Communications 3-6 7. To change the order of device nodes and module names, you can write a rule in /etc/udev/rules.d/

Seite 26 - Managing Communications

DA-710 Series Linux Managing Communications 3-7 For example, use the following commands to set /dev/ttyM0 to RS-422: MOXA:~# setinterface /dev/ttyM0

Seite 27 - Static IP Address

DA-710 Series Linux Managing Communications 3-8 DNS Client The DA-710-LX supports DNS client (but not DNS server). To set up DNS client, you need to

Seite 28

DA-710 Series Linux Managing Communications 3-9 /etc/nsswitch.conf This file defines the sequence of files, /etc/hosts or /etc/resolv.conf, to be re

Seite 29

DA-710 Series Linux Managing Communications 3-10 Disabling the CGI Function The CGI function is enabled by default. If you want to disable the funct

Seite 30

DA-710 Series Linux Managing Communications 3-11 AllowOverride None </Directory> ... ... ScriptAlias /cgi-bin/

Seite 31 - Serial Port Operation Mode

DA-710 Series Linux Managing Communications 3-12 IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspecting the Linux k

Seite 32 - Telnet/FTP Server

DA-710 Series Linux Managing Communications 3-13 IPTABLES Hierarchy The following figure shows the IPTABLES hierarchy. IPTABLES Modules The DA-710-

Seite 33 - DNS Client

DA-710 Series Linux Managing Communications 3-14 ipt_TOS.ko ipt_ttl.ko ipt_TTL.ko ipt_ULOG.ko The basic syntax to enable and load an IPTABLES mod

Seite 34 - Apache Web Server

1 1. Introduction Thank you for purchasing the Moxa DA-710 Series of x86 ready-to-run embedded computers. This manual introduces the software config

Seite 35 - Disabling the CGI Function

DA-710 Series Linux Managing Communications 3-15 Define Policy for Chain Rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT, FORWARD, PREROUTIN

Seite 36

DA-710 Series Linux Managing Communications 3-16 Example 5: Drop TCP packets addressed for port 21. # iptables –A INPUT –i eth0 –p tcp --dport 21 –j

Seite 37 - IPTABLES

DA-710 Series Linux Managing Communications 3-17 #ehco 1 > /proc/sys/net/ipv4/ip_forward #modprobe ipt_MASQUERADE #iptables –t nat –A POSTROUTING

Seite 38 - IPTABLES Modules

DA-710 Series Linux Managing Communications 3-18 PPP (Point to Point Protocol) PPP (Point to Point Protocol) is used to run IP (Internet Protocol) a

Seite 39

DA-710 Series Linux Managing Communications 3-19 192.1.1.17 This is a degenerate case of a general option of the form x.x.x.x:y.y.y.y. Here x.x.x.x

Seite 40 - Append or Delete Rules

DA-710 Series Linux Managing Communications 3-20 Try typing: #netstat -nr This should show three routes similar to the following: Kernel routing tab

Seite 41 - NAT Example

DA-710 Series Linux Managing Communications 3-21 # Keep modem up even if connection fails persist crtscts modem 192.168.16.1:192.168.16.2 debug -det

Seite 42 - Enabling NAT at Bootup

DA-710 Series Linux Managing Communications 3-22 4. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password”

Seite 43

DA-710 Series Linux Managing Communications 3-23 6. If you use LAN1 to connect to the ADSL modem, add file /etc/ppp/options.eth0. If you use LAN2 t

Seite 44 - Checking the Connection

DA-710 Series Linux Managing Communications 3-24 NFS (Network File System) Client The Network File System (NFS) is used to mount a disk partition on

Seite 45

DA-710 Series Linux Introduction 1-2 Overview The Moxa DA-710 Series of x86-based rackmount embedded computers are designed for industrial data acqu

Seite 46

DA-710 Series Linux Managing Communications 3-25 SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORDescr.1 = ST

Seite 47

DA-710 Series Linux Managing Communications 3-26 Ethernet Bridging for Private Networks on Different Subnets 1. Set up four machines, as shown in t

Seite 48

DA-710 Series Linux Managing Communications 3-27 And then configure the bridge interface in /etc/openvpn/bridge. #!/bin/bash # Create global variabl

Seite 49

DA-710 Series Linux Managing Communications 3-28 #gw="192.168.8.173" ... Start the bridge script file to configure the bridge interface. #

Seite 50 - OpenVPN

DA-710 Series Linux Managing Communications 3-29 Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four machines, as shown in the

Seite 51

DA-710 Series Linux Managing Communications 3-30 2. On machine OpenVPN A, modify the remote address in configuration file /etc/openvpn/tun.conf. #

Seite 52

4 4. Programmer’s Guide The following topics are covered in this chapter:  Device API  RTC (Real Time Clock)  UART  Digital I/O  Programma

Seite 53

DA-710 Series Linux Programmer Guide 4-2 Device API The DA-710 supports control devices with the ioctl system API. The interface is shown as below.

Seite 54 - Routed IP

DA-710 Series Linux Programmer Guide 4-3 Example to set the baudrate #include “moxadevice.h” #include <termios.h> struct termios term; int

Seite 55

DA-710 Series Linux Programmer Guide 4-4 IMPORTANT! If the target baudrate is not a special baudrate (e.g. 50, 75, 110, 134, 150, 200, 300, 600, 12

Seite 56 - Programmer’s Guide

DA-710 Series Linux Introduction 1-3 Software Components The DA-710-LX pre-installed Debian Lenny 5.0 Linux distribution has the following software

Seite 57 - RTC (Real Time Clock)

DA-710 Series Linux Programmer Guide 4-5 Function int set_din_event(int diport, void (*func)(int diport), int mode, long int duration) Descriptio

Seite 58 - Baudrate inaccuracy

DA-710 Series Linux Programmer Guide 4-6 Example: DIO Program Source Code File Name: tdio.c Description: This program connects DO1 to DI1, change

Seite 59 - Digital I/O

DA-710 Series Linux Programmer Guide 4-7 8. show event and duration \n\ Choose : "); retval =0; scanf("%d&quo

Seite 60 - IMPORTANT!

DA-710 Series Linux Programmer Guide 4-8 retval=set_dout_state(i, 1); } else if ( i == 6 ) { // set low data printf

Seite 61 - File Name: tdio.c

DA-710 Series Linux Programmer Guide 4-9 printf("DIO error control\n"); break; cas

Seite 62

DA-710 Series Linux Programmer Guide 4-10 Programmable LEDs The DA-685 provides 8 user-programmable LED indicators on its front panel. The following

Seite 63

5 5. System Recovery The DA-710-LX is installed with the Embedded Linux operating system, which is located in the Flash DOM (CompactFlash card) ship

Seite 64

DA-710 Series Linux System Recovery 5-2 Recovery Environment The recovery environment includes the DA-710-LX embedded computer and a bootable USB di

Seite 65 - Programmable LEDs

DA-710 Series Linux System Recovery 5-3 Step 2: Create a Linux Bootable USB Disk. a. You can find the firmware directory in the Recovery CD shippe

Seite 66 - System Recovery

DA-710 Series Linux System Recovery 5-4 Step 3: Set up the BIOS to Boot from a USB Disk. a. Insert the USB disk. b. Power on and press DEL to ent

Seite 67 - Recovery Procedure

DA-710 Series Linux Introduction 1-4 findutils 4.4.0-2 utilities for finding files--find, xargs ftp 0.17-18 The FTP client g++ 4:4.3.2-2 The G

Seite 68

DA-710 Series Linux System Recovery 5-5 Step 4: Recover the Linux system from a USB Disk. a. If the BIOS setup is correct, it will boot from the U

Seite 69

DA-710 Series Linux System Recovery 5-6 d. Choose restore image from Local disk partition. PING (Partition Image Is Not Ghost)! Where do you

Seite 70

DA-710 Series Linux System Recovery 5-7 g. Enter “\” to choose the root directory of the restoration image. Enter root directory containing y

Seite 71

DA-710 Series Linux System Recovery 5-8 ATTENTION DO NOT turn off the power during system recovery, as the system may crash. Step 5: Set up the

Seite 72

DA-710 Series Linux Introduction 1-5 libgc1c2 1:6.8-1.1 conservative garbage collector for C and C++ libgcc1 1:4.3.2-1.1 GCC support library lib

Seite 73

DA-710 Series Linux Introduction 1-6 libslang2 2.1.3-3 The S-Lang programming library - runtime version libsnmp-base 5.4.1~dfsg-12 SNMP (Simple

Kommentare zu diesen Handbüchern

Keine Kommentare