IA260/IA261/IA262/EM-2260 Linux User’s Manual First Edition, January 2009 www.moxa.com/product © 2009 Moxa Inc. All rights reserved. Reproduction
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
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
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
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
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
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
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
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
33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. The information
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
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
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
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
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
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
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
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
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
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
44 Chapter 4 Managing Communications In this chapter, we explain how to configure the IA260/IA261/IA262/EM-2260’s various communication functions.
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
Table of Contents Chapter 1 Introduction ...1-1 Overv
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
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
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
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.
IA260-261-262 EM-2260 LX User’s Manual Managing Communications IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspectin
IA260-261-262 EM-2260 LX User’s Manual Managing Communications The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle Table PR
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
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
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 –
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
SNMP ... 4-19 OpenVP
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/
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
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
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
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]” * “
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
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
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
IA260-261-262 EM-2260 LX User’s Manual Managing Communications address ) IPADDR=$f2 ;; netmask ) NETMASK=$f2 ;; broadcast
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
11 Chapter 1 Introduction The Moxa IA260/IA261/IA262/EM-2260 computers are RISC-based ready-to-run embedded computers. Available features include t
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
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
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
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
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
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
IA260/IA261/IA262/EM-2260 Linux User’s Manual Development Tool Chains 5-3The following cross compiler tools are provided: ar Manages archives (stat
66 Chapter 6 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered in this chapter:
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
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
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
IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide Example to set the baudrate #include <moxadevice.h> #include <termios.h>
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
IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide unsigned char byte6; unsigned char byte7;
IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide memset(&txframe, 0, sizeof(txframe)); memset(&txframe, 0, sizeof(rxf
IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide $(STRIP) $(TARGET)-release $(TARGET1)-release clean: rm -f *.o $(TARGET)-d
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
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
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
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
IA260/IA261/IA262/EM-2260 Linux User’s Manual Programmer’s Guide 6-13printf("Select error, please select again !\n"); } switch(retval) { c
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,
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
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
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
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