Advantech EKI-1121L User Manual

Advantech EKI-1121L User Manual

1/2/4-port programmable serial device servers
Table of Contents

Advertisement

Quick Links

User Manual
EKI-1121L, EKI-1122L,
EKI-1124L
1/2/4-port Programmable Serial
Device Servers

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EKI-1121L and is the answer not in the manual?

Questions and answers

Summary of Contents for Advantech EKI-1121L

  • Page 1 User Manual EKI-1121L, EKI-1122L, EKI-1124L 1/2/4-port Programmable Serial Device Servers...
  • Page 2 Because of Advantech’s high quality-control standards and rigorous testing, most of our customers never need to use our repair service. If an Advantech product is defec- tive, it will be repaired or replaced at no charge during the warranty period. For out- of-warranty repairs, you will be billed according to the cost of replacement materials, service time and freight.
  • Page 3: Declaration Of Conformity

    Whether your new Advantech equipment is destined for the laboratory or the factory floor, you can be assured that your product will provide the reliability and ease of operation for which the name Advantech has come to be known.
  • Page 4: Safety Instructions

    The sound pressure level at the operator's position according to IEC 704-1:1982 is no more than 70 dB (A). DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein.
  • Page 5: Table Of Contents

    LED Indicators ................6 Table 2.1: EKI-1121L/1122L/1124L LED Indicators ....6 Dimensions (Units: mm)................7 Figure 2.1 Front View of EKI-1121L ..........7 Figure 2.2 Side View of EKI-1121L..........7 Figure 2.3 Back View of EKI-1121L..........8 Figure 2.4 Top View of EKI-1121L..........8 Figure 2.5 Front View of EKI-1122L ..........
  • Page 6 3.2.5 TFTP Service and Client............. 26 Figure 3.9 TFTP Server in EKI-1121L/1122L/1124L ....26 Figure 3.10TFTP Client in EKI-1121L/1122L/1124L ....27 3.2.6 NFS Client .................. 28 Figure 3.11NFS Client in EKI-1121L/1122L/1124L ....28 3.2.7 NTP Client .................. 29 Figure 3.12NTP Client in EKI-1121L/1122L/1124L ....29 3.2.8...
  • Page 7: Chapter 1 Introduction

    Chapter Introduction...
  • Page 8: Overview

    The EKI-1121L/1122L/1124L is a Linux-based RISC-grade embedded platform that offers 2 LAN and 1/2/4 serial ports. EKI-1121L/1122L/1124L could operate well under 0~60°C. Its compact size and light weight could fit in industrial robust environment. With these advantages, EKI-1121L/ 1122L/1124L is suitable for communication gateway for converting communication protocol.
  • Page 9: Packing List

    Network: Link, Active – Serial: Tx, Rx Power Requirements: Dual unregulated 12 to 48 Vdc with surge protection Power Consumption: – EKI-1121L: 2 W – EKI-1122L: 2.5 W – EKI-1124L: 4 W Enclosure: Metal with solid DIN rail or panel mounting hardware Serial protection: 15KV ESD Ethernet protection: Built-in 1.5 KV magnetic isolation...
  • Page 10 EKI-1121L/1122L/1124L User Manual...
  • Page 11: Chapter 2 Getting Started

    Chapter Getting Started...
  • Page 12: Understanding The Eki-1121L/1122L/1124L

    In this chapter, you will be given an overview of the EKI-1121L/1122L/1124L hard- ware installation procedures. As mentioned in the previous chapter, the EKI-1221L/ 1222L/1224L comes ready with all network connections, including Ethernet and RS- 232/422 /485 port connections. Understanding the EKI-1121L/1122L/1124L Networks have become increasingly vital for industrial automation applications.
  • Page 13: Dimensions (Units: Mm)

    Dimensions (Units: mm) EKI-1121L: Figure 2.1 Front View of EKI-1121L Figure 2.2 Side View of EKI-1121L EKI-1121L/1122L/1124L User Manual...
  • Page 14: Figure 2.3 Back View Of Eki-1121L

    Figure 2.3 Back View of EKI-1121L Figure 2.4 Top View of EKI-1121L EKI-1121L/1122L/1124L User Manual...
  • Page 15: Figure 2.5 Front View Of Eki-1122L

    EKI-1122L: Figure 2.5 Front View of EKI-1122L Figure 2.6 Side View of EKI-1122L EKI-1121L/1122L/1124L User Manual...
  • Page 16: Figure 2.7 Back View Of Eki-1122L

    Figure 2.7 Back View of EKI-1122L Figure 2.8 Top View of EKI-1122L EKI-1121L/1122L/1124L User Manual...
  • Page 17: Figure 2.9 Front View Of Eki-1124L

    EKI-1124L: Figure 2.9 Front View of EKI-1124L Figure 2.10 Side View of EKI-1124L EKI-1121L/1122L/1124L User Manual...
  • Page 18: Figure 2.11Back View Of Eki-1124L

    Figure 2.11 Back View of EKI-1124L Figure 2.12 Top View of EKI-1224L EKI-1121L/1122L/1124L User Manual...
  • Page 19: Connecting Hardware

    Connecting Hardware This section will explain how to find a proper location for your EKI-1121L/1122L/ 1124L and how to connect to the network, hock up the power cable and connect to the EKI-1121L/1122L/1124L. 2.4.1 Choosing the Location Due to its versatility and innovative design, the EKI-1122L/1122L/1124L can be:...
  • Page 20: Figure 2.14Din-Rail Step1

    2.4.1.2 DIN-rail Mounting The EKI-1121L/1122L/1124L can be mounted on a standard DIN-rail. The DIN-rail kit is screwed on the Modbus data gateway when out of factory. If the DIN-rail kit is not screwed on the EKI-1121L/1122L/1124L, please screw the DIN-rail kit on the Modbus data gateway first.
  • Page 21: Figure 2.15Din-Rail Step2

    Figure 2.15 Din-rail Step2 2.4.2 Connecting Power The EKI-1121L/1122L/1124L supports dual 12 to 48 VDC power inputs and a power- fail relay output. Below figure is the power terminal block pin assignments. Please refer it to connect to the proper power and polarity.
  • Page 22: Connecting Serial Device

    Ethernet cable. For configuration or troubleshooting purposes, user may need to con- nect the EKI-1121L/1122L/1124L directly to the host PC. In this operation mode, user can use a crossover Ethernet cable to connect the EKI-1121L/1122L/1124L to the host PC's Ethernet connector.
  • Page 23: Chapter 3 Installation And Configuration

    Chapter Installation and Configuration...
  • Page 24: Connecting The Hardware

    Use baud rate 115200 bps, no parity, 8 bits data length and 1 stop bit. Connect the power cord to the EKI-1121L/1122L/1124L and plug the other end of the cord into the power outlet. Then boot the EKI-1121L/1122L/1124L immedi- ately.
  • Page 25: Os Configuration And Usage

    'hwclock -s' to read the real time clock into system. Now if you reboot the EKI-1121L/1122L/1124L, the time is still correct. Because com- mand 'hwclock -s' in /etc/rc(/var/other1/init.custom) executes by default.
  • Page 26: Configure Ip

    IP. /etc/rc(/var/other1/init.custom) will be executed when system boot up if the file exists. ifconfig eth0 10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0 And user can configure IP address with command line. For example: Figure 3.3 Configure Ethernet Interface Using Static IP EKI-1121L/1122L/1124L User Manual...
  • Page 27: Figure 3.4 Configure Ethernet Interface Using Dhcp

    Using DHCP User can modify the /etc/rc(/var/other1/init.custom) file like below to make system boot up using DHCP. dhcpcd eth0 & And user can obtain IP address with command line. For example: Figure 3.4 Configure Ethernet Interface Using DHCP EKI-1121L/1122L/1124L User Manual...
  • Page 28: Telnet Service And Client

    User can telnet to EKI-1121L/1122L/1124L by telnet client in another com- puter. After you telnet into the EKI-1121L/1122L/1124L, all the other operations is the same as using console. And you can telnet to other computer by telnet client in EKI- 1121L/1122L/1124L as well.
  • Page 29: Ftp Service And Client

    FTP Service and Client When boot up the EKI-1121L/1122L/1124L, the ftp service is already started by default. User can ftp to EKI-1121L/1122L/1124L by ftp client in another computer to get and put files. Figure 3.6 FTP Client in Another Computer '172.21.73.77' is your EKI-1121L/1122L/1124L's IP address.
  • Page 30: Figure 3.7 Ftp Command In Another Computer

    Please look at 'get' and 'put' command line. In 'get' command line, user must use full path of file that will be transmitted from EKI-1121L/1122L/1124L to a local file with the same name. In 'put' command line, user must use full path of file of EKI-1121L/1122L/ 1124L and the file name must be same as that will be put.
  • Page 31: Figure 3.8 Ftp Client In Eki-1121/1122/1124

    If user wants to connect other computers by ftp client in EKI-1121L/1122L/1124L, use command to put and get file like this: Figure 3.8 FTP Client in EKI-1121/1122/1124 '172.21.73.101' is another computer's IP address. EKI-1121L/1122L/1124L User Manual...
  • Page 32: Tftp Service And Client

    3.2.5 TFTP Service and Client When boot up the EKI-1121L/1122L/1124L, the tftp service is already started by default. User can tftp to EKI-1121L/1122L/1124L by tftp client in another computer. Use command to get and put file like this: Figure 3.9 TFTP Server in EKI-1121L/1122L/1124L...
  • Page 33: Figure 3.10Tftp Client In Eki-1121L/1122L/1124L

    '172.21.73.77' is your EKI-1121L/1122L/1124L's IP address. In 'get' command line, user must use full path of file that will be received from EKI-1121L/1122L/1124L. In 'put' command line, user must use full path of file of EKI-1121L/1122L/1124L and file name must be the same as that will be put.
  • Page 34: Nfs Client

    3.2.6 NFS Client User can mount file system to EKI-1121L/1122L/1124L provided by another computer with NFS service. Use 'mount' command like this: Figure 3.11 NFS Client in EKI-1121L/1122L/1124L '172.21.73.101' is another computer's IP address. '/home/jinxin/test' is file system supported by another computer. User can mount it to EKI-1121L/1122L/1124L.
  • Page 35: Ntp Client

    3.2.7 NTP Client User can synchronize time on EKI-1121L/1122L/1124L by using ntp client. Use 'msntp' command like this: Figure 3.12 NTP Client in EKI-1121L/1122L/1124L '172.21.73.74' is NTP server's IP address. EKI-1121L/1122L/1124L User Manual...
  • Page 36: Snmp Service

    The EKI-1121L/1122L/1124L has built-in SNMP (Simple Network Management Proto- col) v1 and v2c agent software. When boot up the EKI-1121L/1122L/1124L, the snmp client is not started by default, user must start snmp serveice like this: Figure 3.13 SNMP Client in EKI-1121L/1122L/1124L Note! "/etc/snmp/snmpd.conf"...
  • Page 37: Figure 3.14Snmp Message In Manage Computer

    Then user can manage EKI-1121L/1122L/1124L by snmp service in another com- puter, use 'snmpwalk' command like this: Figure 3.14 SNMP Message in Manage Computer And user can modify configurable file snmpd.conf to change configuration. EKI-1121L/1122L/1124L User Manual...
  • Page 38: Mail Client

    3.2.9 Mail Client EKI-1121L/1122L/1124L use smtpclient to send mail which is a minimal SMTP client that takes an email message body and passes it on to an SMTP server. When boot up the EKI-1121L/1122L/1124L, the smtp client is already started by default.
  • Page 39: Web Server

    NAME=USERNAME DIAL_SCRIPT=/var/other1/ppp-on-dialer pppd lock modem crtscts asyncmap 20A0000 escape FF $DEV $BAUDRATE noipdefault defaultroute noauth name $NAME connect $DIAL_SCRIPT Please replace '/dev/ttyS3' and '115200' with correct serial port and baud rate. And replace 'USERNAME' with login account. EKI-1121L/1122L/1124L User Manual...
  • Page 40: Pppoe Client

    -p /var/run/adsl.pid -I eth0 1412 Please replace 'eth0' with correct interface of Ethernet. Thirdly, user must open and modify /var/other1/pppoe.conf. ETH=eth0 USER=USERNAME DEMAND=no USEPEERDNS=yes CONNECT_TIMEOUT=60 CONNECT_POLL=6 PING="." PIDFILE=/var/run/adsl.pid SYNCHRONOUS=no CLAMPMSS=1412 LCP_INTERVAL=20 LCP_FAILURE=3 PPPOE_TIMEOUT=80 FIREWALL=NONE PPPOE_EXTRA="" EKI-1121L/1122L/1124L User Manual...
  • Page 41: Partition Of Flash

    0x 0000 0000 ~ 0x 7F06 0000 kernel.lzo 0x 7F06 0000 ~ 0x 7F26 0000 jffs2fs.img 0x 7F26 0000 ~ 0x 7F7F 0000 FIS directory 0x 7F7F 0000 ~ 0x 7F7F F000 Redboot config 0x 7F7F F000 ~ 0x 7F80 0000 EKI-1121L/1122L/1124L User Manual...
  • Page 42 EKI-1121L/1122L/1124L User Manual...
  • Page 43: Development Guide

    Chapter Development Guide...
  • Page 44: Establish Develop Environment

    Install the Cross Compile Tool Chain Install Linux distribution on your host computer. Use root account to login system. Put arm-uclinux-tool-20080121-advantech.tar.bz2 under "\" path. You can find the file at release\toolchain\linux\. Use "tar jxvf arm-uclinux-tool-20080121-advantech.tar.bz2" to uncompress the tool chain.
  • Page 45: User Space Via Ftp

    4.2.2 User Space via FTP Sometimes, user wants to execute applications in file system of EKI-1121L/1122L/ 1124L. Please use the following commands to get and execute the files. Figure 4.1 How to Get Applications via FTP 4.2.3 Root File-system we support jffs2 file system in current version.
  • Page 46: Rtc Apis

    <unistd.h> and "ledman.h" header file to use the required functions. Then, use the following program to set the command, followed by the ioctl function to control leds. if(flag) flag = 0; cmd = LEDMAN_CMD_ON; /*your action*/ EKI-1121L/1122L/1124L User Manual...
  • Page 47 = 1; cmd = LEDMAN_CMD_OFF; /*your action*/ if( ioctl(devfp, cmd, LEDMAN_HEARTBEAT) < 0 || ioctl(devfp, cmd, LEDMAN_RESET) < 0 ) /*your action*/ For a complete example of serial port configuration, please see the provided lmtest.c example. EKI-1121L/1122L/1124L User Manual...
  • Page 48 EKI-1121L/1122L/1124L User Manual...
  • Page 49: Troubleshooting

    Chapter Troubleshooting...
  • Page 50: Troubleshooting

    Troubleshooting After restart the EKI-1121L/1122L/1124L, You may encounter following or similar warnings: JFFS2 warning: (270) jffs2_do_read_inode_internal: Truncating ino #30 to 23732 bytes failed because it only had 12288 bytes to start with! In this case,you need "fis load" and "fis write"(but not fis create) the jffs2fs.img again under redboot.
  • Page 51: Appendix A Restore The Platform Kernel

    Appendix Restore the Platform Kernel...
  • Page 52: Restore The Platform Kernel

    Just in case if the kernel or flash is corrupted, follow the below steps to recover the kernel and root file system. Connect the EKI-1121L/1122L/1124L with console. Press Ctrl + C when power on the EKI-1121L/1122L/1124L. You should see the following messages. Start your TFTP server and put the kernel.lzo and jffs2fs.img under the TFTP directory.
  • Page 53: Appendix B Erase Jffs2 File System

    Appendix Erase JFFS2 File System...
  • Page 54: Erase Jffs2 File System

    Erasing 64 Kibyte @ 3c0000 -- 95 % complete.MTD_ioctl Erasing 64 Kibyte @ 3d0000 -- 96 % complete.MTD_ioctl Erasing 64 Kibyte @ 3e0000 -- 98 % complete.MTD_ioctl Erased 4032 Kibyte @ 0 -- 100% complete. MTD_close />reboot Restart the device. EKI-1121L/1122L/1124L User Manual...
  • Page 55: Appendix C Command Collection

    Appendix Command Collection...
  • Page 56: File Manager

    Checks file types and compares values returning an exit code determined by the value of an expression. top : touch: Update the last-modified date on the given file[s]. tr: Translate, squeeze, and/or delete characters from standard input,writing to standard output. vi: Visual file editor. EKI-1121L/1122L/1124L User Manual...
  • Page 57: Network

    Print the route packets take to a network host. wget: Retrieves files via HTTP or FTP. Process kill: Send a signal to the specified process(es). killall: Send a signal to the specified process(es) ps:Report process status. This version of ps accepts no options. EKI-1121L/1122L/1124L User Manual...
  • Page 58: Others

    TTY: Print the file name of the terminal connected to standard input. uname: Print certain system information. uptime: Display the time since the last boot. usleep: Pause for N microseconds. yes: Repeatedly outputs a line with all specified string(s), or 'y'. EKI-1121L/1122L/1124L User Manual...
  • Page 59 EKI-1121L/1122L/1124L User Manual...
  • Page 60 No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permis- sion of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd. 2010...

This manual is also suitable for:

Eki-1122lEki-1124l

Table of Contents