Moxa Technologies IA262 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach PC / Workstation Barebones Moxa Technologies IA262 herunter. Moxa Technologies IA262 User`s manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 71
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
IA260/IA261/IA262/EM-2260 Linux
Users Manual
First Edition, January 2009
www.moxa.com/product
© 2009 Moxa Inc. All rights reserved.
Reproduction without permission is prohibited.
Seitenansicht 0
1 2 3 4 5 6 ... 70 71

Inhaltsverzeichnis

Seite 1 - User’s Manual

IA260/IA261/IA262/EM-2260 Linux User’s Manual First Edition, January 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction

Seite 2

IA260-261-262 EM-2260 LX User’s Manual Getting Started Powering on the IA260/IA261/IA262/EM-2260 Connect the SG wire to the shielded contact located

Seite 3 - Table of Contents

IA260-261-262 EM-2260 LX User’s Manual Getting Started Once the connection is established, the following window will open. Telnet Console If you kno

Seite 4

IA260-261-262 EM-2260 LX User’s Manual Getting Started You can proceed with configuring the network settings of the target computer when you reach t

Seite 5 - Introduction

IA260-261-262 EM-2260 LX User’s Manual Getting Started Linux Users From a Linux machine, use the “ssh” command to access the IA260/IA261/IA262/EM-22

Seite 6 - Software Architecture

IA260-261-262 EM-2260 LX User’s Manual Getting Started VGA Console You can connect VGA port to a LCD monitor with VGA interface. Then you connect a k

Seite 7

IA260-261-262 EM-2260 LX User’s Manual Getting Started 3. After the boot settings of the LAN interface have been modified, issue the following comman

Seite 8 - Software Package

IA260-261-262 EM-2260 LX User’s Manual Getting Started Installing the Tool Chain (Linux) The Linux Operating System must be pre-installed in the PC b

Seite 9 - Getting Started

IA260-261-262 EM-2260 LX User’s Manual Getting Started 2-9Compiling Hello.c The package CD contains several example programs. Here we use hello.c as

Seite 10 - Debug Port

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

Seite 11 - Telnet Console

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux System Version Information To determine the hardware capability of your IA260/IA261/IA

Seite 12 - SSH Console

IA260/IA261/IA262/EM-2260 Linux User’s Manual The software described in this manual is furnished under a license agreement and may be used only in

Seite 13 - Linux Users

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux Since different Flash disks have different sizes, it’s a good idea to check the size o

Seite 14 - Modifying Network Settings

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux 192.168.3.127 – PuTTY root@Moxa:/mnt/ramdisk# ftp 192.168.3.193 Connected to 192.16

Seite 15 - /mnt/cf

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux Loading Factory Defaults To load the factory default settings, you must press the rese

Seite 16 - />df –h

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux To run a private daemon, you can edit the file rc.local, as follows: #cd /etc/rc.d #vi

Seite 17 - Compiling Hello.c

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux Setting the Run-Level In this section, we outline the steps you should take to set the

Seite 18 - Managing Embedded Linux

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux Adjusting the System Time Setting the Time Manually The IA260/IA261/IA262/EM-2260 has

Seite 19 - System Version Information

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux NTP Client The IA260/IA261/IA262/EM-2260 has a built-in NTP (Network Time Protocol) cl

Seite 20

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux 3-10Cron—Daemon to Execute Scheduled Commands Start Cron from the directory /etc/rc.d

Seite 21

44 Chapter 4 Managing Communications In this chapter, we explain how to configure the IA260/IA261/IA262/EM-2260’s various communication functions.

Seite 22 - Loading Factory Defaults

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Telnet / FTP In addition to supporting Telnet client/server and FTP client/server, the

Seite 23

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

Seite 24 - Setting the Run-Level

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Web Service—Apache The Apache web server’s main configuration file is /etc/apache/conf

Seite 25 - Adjusting the System Time

IA260-261-262 EM-2260 LX User’s Manual Managing Communications To open the default CGI page, type http://192.168.13.23/cgi-bin/test-cgi in your brows

Seite 26 - NTP Client

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Install PHP for Apache Web Server This embedded computer supports the PHP option. Howe

Seite 27

IA260-261-262 EM-2260 LX User’s Manual Managing Communications If you want to uninstall PHP, follow steps 2 to 4 but select the uninstall option.

Seite 28 - Managing Communications

IA260-261-262 EM-2260 LX User’s Manual Managing Communications IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspectin

Seite 29 - Telnet / FTP

IA260-261-262 EM-2260 LX User’s Manual Managing Communications The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle Table PR

Seite 30 - Web Service—Apache

IA260-261-262 EM-2260 LX User’s Manual Managing Communications The IA260/IA261/IA262/EM-2260 supports the following sub-modules. Be sure to use the m

Seite 31

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Examples: # iptables -L -n In this example, since we do not use the -t parameter, the

Seite 32

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Examples: Example 1: Accept all packets from lo interface. # iptables –A INPUT –i lo –

Seite 33

IA260-261-262 EM-2260 LX User’s Manual Managing Communications NAT Example The IP address of LAN1 is changed to 192.168.3.127 (you will need to load

Seite 34 - IPTABLES

SNMP ... 4-19 OpenVP

Seite 35

IA260-261-262 EM-2260 LX User’s Manual Managing Communications echo “1” > /proc/sys/net/ipv4/ip_forward /bin/iptables -F /bin/iptables -X /bin/

Seite 36

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Double quotes—don’t wait for a prompt, but proceed with the following instead (note th

Seite 37 - Append or delete rules:

IA260-261-262 EM-2260 LX User’s Manual Managing Communications How to check the connection Once you’ve set up a PPP connection, there are some steps

Seite 38

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Setting up a Machine for Incoming PPP Connections This first example applies to using

Seite 39 - NAT Area / Private IP

IA260-261-262 EM-2260 LX User’s Manual Managing Communications 4. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “

Seite 40 - Dial-up Service—PPP

IA260-261-262 EM-2260 LX User’s Manual Managing Communications 6. Set up DNS If you are using DNS servers supplied by your ISP, edit the file /etc/r

Seite 41

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Mail Smtpclient is a minimal SMTP client that takes an email message body and passes i

Seite 42 - How to check the connection

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Setup 1: Ethernet Bridging for Private Networks on Different Subnets 1. Set up four m

Seite 43 - * * ““ *

IA260-261-262 EM-2260 LX User’s Manual Managing Communications address ) IPADDR=$f2 ;; netmask ) NETMASK=$f2 ;; broadcast

Seite 44

IA260-261-262 EM-2260 LX User’s Manual Managing Communications ifconfig tap${i} 0.0.0.0 promisc up i=`expr $i + 1` if [ $i -ge $maxtap ]; th

Seite 45 - NFS (Network File System)

11 Chapter 1 Introduction The Moxa IA260/IA261/IA262/EM-2260 computers are RISC-based ready-to-run embedded computers. Available features include t

Seite 46 - OpenVPN

IA260-261-262 EM-2260 LX User’s Manual Managing Communications 3. Create a configuration file named A-tap0-br.conf and an executable script file nam

Seite 47 - InternetInternet

IA260-261-262 EM-2260 LX User’s Manual Managing Communications 6. To create an indirect connection to Host B from Host A, you need to add the follow

Seite 48

IA260-261-262 EM-2260 LX User’s Manual Managing Communications Setup 3: Routed IP 1. Set up the four machines as shown in the following diagram: Ope

Seite 49

IA260-261-262 EM-2260 LX User’s Manual Managing Communications 4-26Note that the parameter “ifconfig” defines the first argument as the local intern

Seite 50

55 Chapter 5 Development Tool Chains This chapter describes how to install a tool chain in the host computer that you use to develop your applicati

Seite 51 - # killall -TERM openvpn

IA260/IA261/IA262/EM-2260 Linux User’s Manual Development Tool Chains Linux Tool Chain The Linux tool chain contains a suite of cross compilers and o

Seite 52 - Setup 3: Routed IP

IA260/IA261/IA262/EM-2260 Linux User’s Manual Development Tool Chains 5-3The following cross compiler tools are provided: ar Manages archives (stat

Seite 53 - # route

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

Seite 54 - Development Tool Chains

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide Flash Memory Map Partition sizes are hard coded into the kernel binary. To change th

Seite 55 - Linux Tool Chain

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide Buzzer The device node is located at /dev/console. The IA260/IA261/IA262/EM-2260 sup

Seite 56 - On-Line Debugging with GDB

IA260-261-262 EM-2260 LX User’s Manual Introduction Overview The IA260/IA261/IA262/EM-2260 embedded computers, which are designed for industrial auto

Seite 57 - Programmer’s Guide

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide Example to set the baudrate #include <moxadevice.h> #include <termios.h>

Seite 58 - RTC (Real Time Clock)

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide MoxaCAN Programming Guide Introduction CAN is a broadcast serial bus standard for co

Seite 59

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide unsigned char byte6; unsigned char byte7;

Seite 60 - Special Note

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide memset(&txframe, 0, sizeof(txframe)); memset(&txframe, 0, sizeof(rxf

Seite 61 - MoxaCAN Programming Guide

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide $(STRIP) $(TARGET)-release $(TARGET1)-release clean: rm -f *.o $(TARGET)-d

Seite 62

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide Description: To get the DOUT port state. Input: int doport - get the current state o

Seite 63

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide int get_din_event(int diport, int *mode, long int *duration) Description: To retriev

Seite 64 - Digital I/O

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide } static void lowtohighevent(int diport) { printf("\nDIN port %d low to high.\n

Seite 65

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide } else if ( i == 3 ) { // set low to high event printf("Please keyin the DIN nu

Seite 66 - Examples

IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide 6-13printf("Select error, please select again !\n"); } switch(retval) { c

Seite 67

IA260-261-262 EM-2260 LX User’s Manual Introduction The IA260/IA261/IA262/EM-2260’s built-in Flash ROM is partitioned into Boot Loader, Linux Kernel,

Seite 68

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

Seite 69

IA260/IA261/IA262/EM-2260 Linux User’s Manual System Commands A-2Process 1. kill kill process 2. ps display now running process Other 1. dmesg

Seite 70 - System Commands

IA260-261-262 EM-2260 LX User’s Manual Introduction 1-4Although JFFS2 is a journaling file system, this does not preclude the loss of data. The file

Seite 71 - Moxa special utilities

22 Chapter 2 Getting Started In this chapter, we explain how to connect the IA260/IA261/IA262/EM-2260, how to turn on the power, how to get started

Kommentare zu diesen Handbüchern

Keine Kommentare