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
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
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
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
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
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
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
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:
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
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
33 Chapter 3 Managing Embedded Linux This chapter includes information about version control, deployment, updates, and peripherals. In this chap
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
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
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
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
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
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
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 –
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
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
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.
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
Table of Contents Chapter 1 Introduction ...1-1 Overv
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
44 Chapter 4 Managing Communication In this chapter, we explain how to configure the UC-8410/8416/8418’s various communication functions. The foll
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
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/
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
UC-8410/8416/8418-LX User’s Manual Managing Communication 4-5IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspecting
UC-8410/8416/8418-LX User’s Manual Managing Communication 4-6The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle T
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
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
UC-8410/8416/8418-LX User’s Manual Managing Communication 4-9Append or delete rules: Usage: # iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-i
PPPoE ... 4-15 NFS (
UC-8410/8416/8418-LX User’s Manual Managing Communication 4-10NAT NAT (Network Address Translation) protocol translates IP addresses used on one net
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
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
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
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
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
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
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
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
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
11 Chapter 1 Introduction Welcome to the Moxa UC-8400 Series of RISC-based communication platforms. The UC-8410/8416/8418 embedded computer come
UC-8410/8416/8418-LX User’s Manual Managing Communication 4-20 case “$f1” in address ) IPADDR=$f2 ;; netmask ) NETMASK=$f2
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=
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
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
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
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
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:
55 Chapter 5 Programmer’s Guide This chapter includes important information for programmers. The following functions are covered: Flash Memory
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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(
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
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
UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-19 unsigned char byte6; unsigned char byte7;
UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-20 memset(&txframe, 0, sizeof(txframe)); memset(&txframe, 0, sizeof(rxframe))
UC-8410/8416/8418 LX User’s Manual Programmer’s Guide 5-21 $(STRIP) $(TARGET)-release $(TARGET1)-release clean: rm -f *.o $(TARGET)-debug $
AA Appendix A Firmware Upgrade Procedure Firmware Upgrade Procedure Moxa provides a boot loader utility for firmware upgrade or recovery. You will
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
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
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.
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
UC-8410/8416/8418 LX User’s Manual Firmware upgrade procedure A-59. Configure the Port Settings with following parameters: Bits per second: 115200
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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