Gebruiksaanwijzing /service van het product UC-7110 van de fabrikant Moxa Technologies
Ga naar pagina of 64
UC-71 10 Series User ’ s Manual www .moxa.com/product Second Edition, July 2005 Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 Web: www.moxa.com MOXA Technical Support World wide: support@moxa.com.tw The Americas support@ moxa.
UC-7110 Series User’s Manual The software d escribed in t his manual is furnished u nder a license a greement and m ay be used only in accordance with the term s of that agreement. Copyright Notice Copyright © 2005 Moxa Technologies Co., Ltd. All rights reserved.
Table of Contents Chapter 1 Introduction .................................................................................................. 1-1 Overview...................................................................................................
Configuring Dial-in/ Dial-out Ser vice ...................................................................................... 4-8 Dial-out Service ........................................................................................................
1 1 Chapter 1 Introduction The MOXA UC-7110 Seri es of RISC-based Communication Platforms features t wo RS-232/422/ 485 serial ports, and d ual 10/10 0 Mbps Ether net ports, m aking these pr oducts ideal for embedde d OS appli cations.
UC-7110 Series User’s Manual Introduction 1-2 Overview The UC-7110 Series of RISC-based Comm uni cation Platforms are ideal for your em bedded applications. UC-7110 c omes with tw o RS-232/ 422/485 se rial ports an d dual 10/1 00 Mbps Ethernet LAN ports to provide users with a versatile communication platform.
UC-7110 Series User’s Manual Introduction 1-3 Product Specifications Hardware Specificat ions (UC-7110-LX) CPU ARM9-based 32-bit RISC CPU, 166 Mh z RAM 16 MB (12 MB of user programmable space) Flash 8 MB (4 MB of user programmable space) LAN Auto-sensi ng 10/100 Mbps x 2 LAN Protecti on Built-in 1.
UC-7110 Series User’s Manual Introduction 1-4 Software Specifications (UC-7110-LX) Kernel µ Clinux Ke rnel 2. 4.22 Prot ocol S tack A R P, I C M P, I P V 4 , T C P, U D P, F T P, T e l n e t , N T P, S N M P V 1 , HTTP , PPP , CHAP , P AP , NFS JFFS2 File System User Directory (Read / W rite) ROMFS Kernel, Root File System (Read Only) Sash (V1.
UC-7110 Series User’s Manual Introduction 1-5 Hardware Block Diagram S3C2500 ARM940T 166MHz 8MB Flash 16MB SDRAM PHY PHY LAN1 LAN2 RTC MOXA MU150 MOXA MU150 Port 1 Port 2 Power Circuit Appearance P1.
UC-7110 Series User’s Manual Introduction 1-6 Dimensions P1 P2 TX RX P1 P2 TX RX Ready V+ RESET 12-48V LAN1 RS-232/422/485 LAN2 UC-71 10 Universal Communicator 6 (0.24) 12.5 (0.49) 25 (0.98) 4 (0.16) 7 (0.28) 26 (1.02) 77 (3.03) 47.3 (1.56) 21.3 (0.
UC-7110 Series User’s Manual Introduction 1-7 Installing UC-7110 P1 P2 TX RX P1 P2 TX RX Ready V+ 12-48V LAN1 LAN2 UC-71 10 Universal Communicator RESET RS-232/422/485 T op-End View Bottom-End View .
UC-7110 Series User’s Manual Introduction 1-8 LED Indicators The followin g table explains t he functio n of the five L ED indicators located on UC -7110’s t op panel. LED Name LED Color LED Function Ready Green Power is on a nd functio ning norm ally.
UC-7110 Series User’s Manual Introduction 1-9 Connecting the Power Connect the “live-wire” end of the 12-48 VDC power adaptor to UC-7110’s terminal block. If the power is properly supplied, the “Ready” LED will sh ow a solid green color after a 25 to 30 second delay.
UC-7110 Series User’s Manual Introduction 1-10 The 10/100 Mbp s Ethernet L AN 1 and LAN 2 ports use 8 -pin RJ45 co nnectors. Pin outs for the se ports are gi ven in the following diagram.
UC-7110 Series User’s Manual Introduction 1-11 Additional Functions Reset Button Press the “RESET” button contin uously for more than 5 seconds to l oad the factory default configuration. After loading the factory default, the system will reboot automatically.
UC-7110 Series User’s Manual Introduction 1-12 Real Time Clock UC-7110’s real time clock is powered by a lith iu m battery. We strongly recommend that you do not replace the lithium battery without t he help of M oxa’s support team. If the battery needs to be changed, contact the Moxa R MA service team for RMA service.
2 2 Chapter 2 Getting Started In this chapter, we explain the basic procedure for gettin g UC-7110 connected . This chapter covers the following topics: Powering on UC-7110 Connecting UC-7110 to a PC Configuring the Ethernet Interface Developing Your Applications ¾ Installing the UC-7110 Tool Chain ¾ Compiling Hello.
UC-7110 Series User’s Manual Getting Started 2-2 Powering on UC-7110 Connect the SG wire to the Shielded Con tact located on the uppe r left corn er of the UC -7110, an d then power on UC-7110 b y connecting the power adaptor. It takes about 16 seco nds for the system to boot up.
UC-7110 Series User’s Manual Getting Started 2-3 Telnet If you know at least one of the two IP addre sses and netm asks, then you can use Telnet to connect to UC-7110’s console . Default IP Address Default Netmask LAN 1 192.168.3.127 255.255.255.0 LAN 2 192.
UC-7110 Series User’s Manual Getting Started 2-4 Configuring the Ethernet Interface In this section we use the seri al console to e xplain how to modify UC-7110’s netw ork setti ngs. 1. Change direct ories by issui ng the comm and cd /mnt/etc . 2.
UC-7110 Series User’s Manual Getting Started 2-5 3. You may also configure UC-7110 to r equest IP addresses from a DHCP server. In this case, use the sharp si gn (#) to com ment out o ne or both “i fconfig” li nes, and then delete the sharp sign in front of the “dhcpcd” lines, as sh ow n below.
UC-7110 Series User’s Manual Getting Started 2-6 Developing Your Applications Step 1: Connect UC-7110 to a Linux PC. Step 2: Install Tool C hain (G NU Cross Com piler & uC libc). Step 3: Configure cr oss compil er and uCli bc environm ent variables.
UC-7110 Series User’s Manual Getting Started 2-7 Compiling Hello.c The Tool Chai n path is: PATH=/usr/local/arm-elf/bin:$PATH The UC-7110 CD includes se veral exampl e programs. We use Hello.c to illustrate how to compile and run a pplications. Issue the following co mmands from your PC to compile Hello.
UC-7110 Series User’s Manual Getting Started 2-8 Uploading “Hello” to UC-7110 To use FTP to upload hello to UC-7110, issue the followi ng commands from the PC side: #ftp 192.168.3.127 ftp> cd /home ftp> bin ftp> put ./hello ftp> quit #telnet 192.
UC-7110 Series User’s Manual Getting Started 2-9 Running “Hello” on UC-7110 To run the “ Hello” program issue the follo wing comm ands from t he UC-7110 si de: # chmod 755 hello #./hello The words “Hello World” will be printed on the screen.
UC-7110 Series User’s Manual Getting Started 2-10 Make File Example Code The following Makefile file exam ple codes are copie d from the Hello exam ple from UC-7110’s CD-ROM. # Generated automatically from Makefile.in by configure. # $Id: Makefile.
UC-7110 Series User’s Manual Getting Started 2-11 ATTENTION There is anot her exam ple that involves modifyi ng the Makefile. If the targ et source code file is tcps1.
3 3 Chapter 3 Software Package This chapter includ es information about th e software that is used with UC-7110 Series products. This chapter covers the following topics: UC-7110 Software Architec.
UC-7110 Series User’s Manual Software Package 3-2 UC-7110 Software Architecture The pre-installed µClinux Operatin g System used by UC-7110 follows the standard µClinux architecture, making programs th at follow the POSIX standard easily ported to UC-7110 by using the GNU Tool Chain pr ovided by www.
UC-7110 Series User’s Manual Software Package 3-3 and uses JFFS2 for the User Directory. The partition sizes are hard coded into the kernel binary. You must rebuild the kernel to change the partition sizes. The flash memory map is shown in the following table.
UC-7110 Series User’s Manual Software Package 3-4 Although JFFS2 is a journaling file system, this does not preclude the loss of data. The file system will remain in a consistent state acros s power failu res, and will always be m ountable.
UC-7110 Series User’s Manual Software Package 3-5 bin dev busybox boa bf backupfs downramdi sk upramdis k ttyS0 tty3 tty2 tty1 tty0 rom1 rom0 ptypf ptype ptypd ptypc ptypb ptypa ptyp9 ptyp8 ptyp7 pt.
4 4 Chapter 4 Configuring UC-7110 In this chapte r, we descri be how to c onfigure UC -7110 Seri es products. The following topics are covered in this chapter: Enabling and Disabling Daemons A.
UC-7110 Series User’s Manual Configuring UC-7110 4-2 Enabling and Disabling Daemons The following daem ons are enabled whe n UC-7110 b oots up for the first time.
UC-7110 Series User’s Manual Configuring UC-7110 4-3 Adding a Web Page Default Home Page address: /home/httpd/index.html You may change the default ho me page directory by editing the web server’s con figuration file, located at: /home/httpd/boa.conf Type the following co mmand to edit the boa.
UC-7110 Series User’s Manual Configuring UC-7110 4-4 OUTPUT chain — produces local packets sub-tables Source NAT (SNAT) — changes the first source packet IP address Destination NAT (DNAT) — changes the first destination packet IP a ddress MASQUERA DE — a special form for SNAT.
UC-7110 Series User’s Manual Configuring UC-7110 4-5 UC-7110 s upports the following sub-modul es. Be sure to use the m odule that matches your application.
UC-7110 Series User’s Manual Configuring UC-7110 4-6 NOTE IPTABLES plays the role of packet filtering or NAT. Take care when setting up the IPTABLES rules. If the rules are not corre ct, remote hosts that connect via a LAN or PPP may be denied access.
UC-7110 Series User’s Manual Configuring UC-7110 4-7 Append or delete rules: Usage: # iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-io interface] [-p tcp, udp, icmp, all] [-s IP/network] [--sport ports] [-d IP/network] [--dport ports] –j [ACCEPT.
UC-7110 Series User’s Manual Configuring UC-7110 4-8 the module ipt _MASQUER ADE): UC-71 10 PC1 (Linux or Windows) IP/Netmask: Gateway: 192.168.3.100/24 192.168.3.127 PC2 (Linux or Windows) IP/Netmask: Gateway: 192.168.4.100/24 192.168.4.127 LAN1 LAN2 LAN1:eth0 192.
UC-7110 Series User’s Manual Configuring UC-7110 4-9 ATTENTION If dial out fails, the pppd connection will be blo cked, and the user will need to shut down th e pppd, and re-dial.
UC-7110 Series User’s Manual Configuring UC-7110 4-10 1. First, the NFS serve r must open an export dir ectory and allow access to the IP address. Edit the file “/etc/exports” on yo ur Linux PC, and then run the NFS daemon. The follow ing example gives one possibility (refer to the NFS-HOWTO document at http://nfs.
UC-7110 Series User’s Manual Configuring UC-7110 4-11 ftp> bin ftp> get uc7110-1.x.x.bin And then use the upkernel com mand to u pgrade the ke rnel and root file system .
UC-7110 Series User’s Manual Configuring UC-7110 4-12 To enable t he RAM disk, use the com mands give n below: />upramdisk />cd ramdisk Use the built-in FTP client to download the usrdisk-1.x.x.dsk file from the PC. /ramdisk>ftp <destination PC’s IP> Login Name: xxxx Login Password: xxxx ftp> bin ftp> get usrdisk-1.
UC-7110 Series User’s Manual Configuring UC-7110 4-13 User Directory Backup — UC-7110 to PC To enable the RAM disk , follow the co mmands given below: />upramdisk />cd ramdisk And then use the backupfs comm and to backup the file system .
UC-7110 Series User’s Manual Configuring UC-7110 4-14 Loading Factory Defaults The easiest way to “Load F actory Def ault” is with “Upgrade User directory.” Refer to the previous section “How to Upgrade User Directory” fo r an intr oduction.
5 5 Chapter 5 UC-7110 Device API In this chapter, we discuss the De vice API for the UC -7110 Series. We introduce the APIs for the following functions: RTC (Real Time Clock) Buzzer UART I.
UC-7110 Series User’s Manual UC-7110 Device API 5-2 RTC (Real Time Clock) The device node is located at /dev/rtc . UC-711 0 supports µCli nux standar d simple RT C control.
6 6 Chapter 6 UC Finder UC-7110 comes with a UC Finder utility, which has the sole purpose of searching the LAN or intranet for U C-7110 units. For most of ap plications, i t’s not easy t o rememb er the IP addr esses of Universal Communicators connected to the LAN.
UC-7110 Series User’s Manual UC Finder 6-2 Windows UC Finder The following steps descri be how to install UC Fi nder on a Windows PC. 1. Double click on the UC Finder installation program, Setup.exe , to start t he installation. 2. When the Wel come to the UC Finder Setup Wizard window opens, click on Next to continue.
UC-7110 Series User’s Manual UC Finder 6-3 4. Check the Launch UC Finder chec kbox to use UC Finde r immediately after the installation has finished, a nd then click on Next to complete the installation. 5. When the UC Finder window opens, click on Broadcast Search to search for all Universal Communicators connected to the L AN.
UC-7110 Series User’s Manual UC Finder 6-4 6. The Searching window will show the Uni versal Communicators that have been located. You can click on Stop as soon a s the Uni versal Comm unicator you are looking for is list ed.
UC-7110 Series User’s Manual UC Finder 6-5 Linux ucfinder To use the Linux ucfinder utility, copy ucfinder from the CD-ROM to your Linux PC, and then use the command g iven below to start ucfinder. The ucfinder utility will automatically bro adcast a message over your LAN n etwork to find the IP address of all UC’s connected to the LAN.
A A Appendix A System Commands busybox (V0.60.4): µClinux normal command utility collection File manager cp copy file ls list file ln make symbolic link file mount mount and c heck fil e system rm de.
UC-7110 Series User’s Manual System Commands A-2 Network ping ping to test network route routing t able manage r netstat displa y network status ifconfig set network IP address tracerout trace route.
B B Appendix B SNMP Agent with MIB II & RS-232 Like Group UC-7110 has a built-in SNMP (Simple Network Management Pro tocol) agent that supp orts RFC1317 RS-232 lik e group and RFC 1213 MIB-II. The follow ing table lists the variable implem entation fo r UC-7110.
UC-7110 Series User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-2 ip MIB tcp MIB udp MIB ipForwarding ipDefaultTTL ipInReceives ipInHdrError s ipInAddrEr rors ipForwDatagrams ipInUnkno.
UC-7110 Series User’s Manual SNMP Agent with MIB II & RS-232 Like Group B-3 snmp MIB snmpInPkts snmpOutPkts snmpInBadV ersions snmpInBa dComm unityNam es snmpInBa dCommunit yUses snmpInASNPa rse.
C C Appendix C FAQ for UC-7110 FAQ 1 Why can I only use vfork( ),a nd am unable to use fork( ) ? Answer 1 uClinux only suppor ts vfork( ). It does no t support f ork( ). No te that when u sing vfork( ), the parent process will hang un til the son process calls an exec group API, or exits.
UC-7110 Series User’s Manual FAQ for UC-7110 C-2 FAQ 5 How do I compress a n applic ation pro gram? Answer 5 UC7110’s kernel suppo rts ZFLAT format files. This means that when you compile the program, you can add the com press optio n to reduce the size of the binary file.
D D Appendix D Service Information This appen dix shows y ou how to co ntact Moxa for info rmation abo ut this and other pro ducts, and how to repo rt problems.
UC-7110 Series User’s Manual Service Information D-2 MOXA Internet Services Customer satisfaction is our num b er one concern, and to ensure that customers receive the full benefit of our products, Moxa Internet Services has bee n set up to provide technical s upport, dri ver updates, product infor mation, and user’s manual upd ates.
UC-7110 Series User’s Manual Service Information D-3 Problem Report Form MOXA UC-71 10 Series Customer name: Comp any: T el: Fax: Email: Date: 1. Moxa Product: UC-711 0 2. Serial Number: ___________ ______ Problem Desc ription: Please describe the sym ptoms of the problem as clearly as possible, incl uding any error messages you see.
UC-7110 Series User’s Manual Service Information D-4 Product Return Procedure For product repair, exc hange, o r refund, the customer m ust: Provide e vidence of origi nal purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer.
Een belangrijk punt na aankoop van elk apparaat Moxa Technologies UC-7110 (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Moxa Technologies UC-7110 heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Moxa Technologies UC-7110 vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Moxa Technologies UC-7110 leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Moxa Technologies UC-7110 krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Moxa Technologies UC-7110 bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Moxa Technologies UC-7110 kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Moxa Technologies UC-7110 . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.