Page 1
ADAM-4577 1 Port Universal Serial Device Gateway User's Manual...
Page 2
Copyright Notice This document is copyrighted, 2001, by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd., reserves the right to make improve- ments to the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd.
Advantech Customer Services Each and every Advantech product is built to the most exacting specifications to ensure reliable performance in the unusual and demanding conditions typical of industrial environments. Whether your new Advantech equipment is destined for the laboratory or the...
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 ever does prove defective, 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 materi- als, service time and freight.
Page 5
product returned without dated proof of purchase is not eligible for warranty service. 5. Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer.
Chapter 3: Installation and Configuration .. 21 3.1 Windows utility Installation .......... 22 3.2 Configuring the ADAM-4577 ........23 3.2.1 Search for Specific ADAM-4577 ........24 3.2.2 Network Configuration ............. 27 3.2.3 Port Configuration ............29 3.2.4 Setting Configuration ............31...
Page 7
3.2.4.6 Protocol for Communication ........35 3.3 Testing Utility ..............40 3.3.1 Self Test Function ............41 3.3.2 Upgrading ADAM-4577 (tm) s Firmware Download ..43 3.3.3 UDP Testing Utility ............44 3.4 Status Messages ............49 Chapter 4: Network Architecture and Example Code......
Page 8
Figure 2-8 Din Rail Mounting ..............14 Figure 2-9 Piggyback Stack ............... 15 Figure 2-10 Connecting ADAM-4577 series to the hub ......16 Figure 2-11 Power Connection for ADAM-4577 ......... 17 Figure 2-12 Serial Connection for ADAM-4577 .......... 17 Figure 3-1 Configuration Utility ..............
Page 9
Figure 4-10 #1 ADAM-4577 configuration utility ........60 Figure 4-11 #2 ADAM-4577 configuration utility ........61 Figure 4-12 Key-in the information of #2 ADAM-4577 ....... 62 Figure 4-13 Key-in the information of #1 ADAM-4577 ....... 62 Figure 4-14 Network architecture-Polling ..........63 Figure 4-15 UDP Mode Flow chart-Polling network ........
Page 10
Tables Table 2-1 ADAM-4577 LED Definition ............9...
Standard networking application programming interface (API) such as: WinSock Socket. The transmis- sion speed of the ADAM-4577 is up to 230 Kbps, outperforming the competition to meet the demand for high-speed exchange. The ADAM-4577 also provides a high-performance RISC CPU and Real Time Operating System to reduce CPU load.
adjust all settings easily. In addition,the utility provides a security option that protects all configuration settings from being changed inadvertently.The download & testing utility helps you to diagnose the communication condition between devices. 1.2 Features • Support TCP/IP, UDP protocol •...
By doing this, both of these two devices will be constrained by the length of wire. With the ADAM-4577, you are now able to communicate with each other via Internet. Even more, you can connect any networking device dynami- cally.
The following illustration shows the network architecture as below: Data or Command Internet Eth ernet ADAM ADAM-4577 RS-232/422/485 Port 2 Port 1 + Vs G ND RS-485 ADAM-5000 ADAM-4000 Bar code Reader Figure 2-1 Network architecture:Polling Data or Command Event...
The Data mode provides a certain amount of transparence and flexibility in transmitting data between two devices. The data from the serial port of one ADAM-4577 can be automatically sent to the other networking device, without the need for an intermedi- ate PC.
2.1.3 Top / Front / Rear View There are three network status LEDs located on the top panel of ADAM-4577, each with its own specific function. Color Status Description Flash Heartbeat (1 time/sec) Locate Status/Link Not working Valid network link...
2.1.4 Stickers If you forget the IP addresses of specific ADAM-4577 or which specific networking device you connect to, we have provided five stickers for you to note the IP addresses and place in a secure loca- tion. For example, 172.20.20.5: The IP address of specific ADAM-4577...
• fixed to a DIN Rail. • Piggyback Stack Panel Mounting The ADAM-4577 can be attached to a wall using the included metal brackets. Each bracket comes with four screws; first attach the brackets to the bottom of the ADAM-4577. Next, screw each bracket to a wall.
DIN Rail Mounting You can mount the ADAM-4577 on a standard DIN Rail. First, using two screws, attach the metal plate to the DIN Rail bracket. Because the screw heads are beveled, the tops of the screws will be flush with the metal plate.
Power Connection You should take the following steps to connect ADAM-4577 power. 1.Connect the power cable to 2-pin connector 2.Connect power cable to power adapter If the ADAM-4577 is working properly, the green power LED will light 16 ADAM-4577 User’s Manual...
Serial Connection 2.2.4.1 Connecting to Serial device The model of the ADAM-4577 that you purchased has DB-9 serial ports on the bottom of module. Depending on your serial device and serial interfaces, there are two options: 1.For an RS-232/422/485 port you may use a DB-9 cable which we supply to connect your serial device to the ADAM-4577.
2.2.4.2 Connecting to PC Sometimes, you want ADAM-4577 to connect to PC. You have to plug crossed null modem connector (female) that we provided to the cable. Refer to the following picture for details on the pinouts. Chapter 2 Getting Started...
“testing utility”. The following are the installation instructions for setting up the ADAM-4577. 1. Insert the ADAM-4577 Download and Testing utility CD into the drive on the host PC. Change the host computer default drive from C: to D: 2.
3.2 Configuring the ADAM-4577 The ADAM-4577 provides easy Windows configuration through Ethernet connection. You can configure various parameters for TCP/IP or UDP configuration easily. For secure administration, it can also restrict the access rights for configuration to only one host PC to enhance network security.
“Locate” function to assist you. You can select all the ADAM-4570/4571/4572/4577/4577/EDG-4504 devices (see Figure 3-2) or just select one ADAM-4577 (see Figure 3-3). When you select a specific device, the LED that stands for “Status” will flash . When you select another device, the original “Status”...
Device Description This field is to record the function, application and other information for each ADAM-4577 device in more detail for easy management and maintenance. You are allowed to describe in your own words. Chapter 3 Installation and Configuration...
Firmware version In this field, the configuration utility represents the firmware version of the ADAM-4577. You might need to refer to the firmware version to determine functions available on the ADAM-4577 device. In case of problems that might concern the firmware version, please provide the firmware version number to our Customer Service.
3.2.2 Network Configuration This section will show network configuration of ADAM-4577’s configuration utility. We will introduce their function and operation by item. Figure 3-4 Network Configuration Window Ethernet: MAC Address This does not need configuration. Link Speed This function will show the current linking speed to be 10Mbps.
Page 38
TCP/IP: IP address, Subnet Mask, Default Gateway The IP address identifies your ADAM-4577 device on the global network. Each ADAM-4577 has same default IP address 10.0.0.1. Obtain a specific IP address from your network administrator and then configure each ADAM-4577 with the individual IP address.
Port Configuration Figure 3-5 Port Configuration Window Name ADAM-4577 provide one port to connected to the serial device. The name default is port1, it goes without your further efforts Description You can give more detailed description of the function of the port for easy management and maintenance.
Page 40
Flow Control The ADAM-4577 provides one option: None Data Bits The ADAM-4577 provides four options: 5, 6, 7 or 8. Stop Bits The ADAM-4577 provides three options: 1, 1.5 or 2. Baud Rate The ADAM-4577 supports baud rates from 300 to 230,000 bps.
3.2.4 Setting Configuration ADAM-4577 provides TCP/IP and UDP two protocol. In settings, you can choose either TCP mode (see Figure 3-6) or UDP mode(see Figure 3-7) according to your application. In this section, we will show setting configuration in either TCP or UDP mode. As to detailed networking architecture for TCP/UDP application, please refer to Chapter 4.
Telnet connections. There are also custom sockets that users and developers define for their specific needs. The default TCP (UDP) port of ADAM-4577 is 5200. The example initial 5200 is System Port, and 5201 is Data Port. But users can adjust them by one's preference or application.
TCP Mode If you do not want many PCs to have the access right, you can limit at most 32 PCs to access data from this ADAM-4577. You can list most 32 authorized PCs to allow access data . UDP Mode You can also list most 32 authorized PCs to allow access data in UDP mode.
The default is Port1, DAM-4577 provide one port to connected to the serial device. 2. Port Mode The default is Data Mode, The ADAM-4577 provide one mode: Data mode. Serial devices that connect to the ADAM-4577 can transmit data to another networking device 3.
Key-in another IP address of networking device which you want to connect. 2. TCP Port Key-in another TCP port of networking device which you want to connect. If you want to connect to the port of another ADAM-4577, you have to note the following information. Chapter 3 Installation and Configuration...
Page 46
ADAM-4577. As the time is over, ADAM-4577 starts to return data to host PC. The default is 1000ms, that means ADAM-4577 won’t return data back to host PC until one second passes...
E: Time for Device transmits the data back to ADAM-4577 F: Time for ADAM-4577 processes the transmitted data G: Time for ADAM-4577 transmits the data back to Host PC Response timeout = D+E Host PC total waiting time = A+B+C+D+E+F+G...
Inter Frame Break,ADAM-4577 transmits data more fficiently. Inter Frame Break is a good control machine, ADAM-4577 will distin- guish whether it transmits back data to host PC by the function. As to set Inter Frame Break 30 ms, ADAM-4577 won't wait response timeout 1000ms over to transmit data As long as the idle time is longer than 30 ms, ADAM-4577 starts to transmit back data to host PC.
Comparing the difference of the two case, case 2 only wastes 30 ms but saves 370 ms comparing to case1. We see clearly that if we set Inter Frame Break, we could save waiting time. ADAM-4577 transmit data to Host PC at once as Inter Frame Break time is over.
3.3 Testing Utility The purpose of testing utility is to help you diagnose the communica- tion between devices and download firmware remotely. Figure 3-11 Testing utility 40 ADAM-4577 User’s Manual...
Self Test Function The purpose of this test is to confirm the communication from host PC to the ADAM-4577. If there is still an error, you can check the commu- nication from the ADAM-4577 to the serial devices. If the test is selected, an external test will be done to check that the connection signals for each port are working properly.
Page 52
3. If the connection is ok, click “Test” button Communication Parameters Test • Baud rate: From 50 bps to 230 Kbps • Data bit: 5,6, 7, 8 • Stop bit: 1, 1.5, 2 • Parity: odd, even, none, space, mark 42 ADAM-4577 User’s Manual...
3.3.2 Upgrading ADAM-4577 (tm) s Firmware Download Advantech continually upgrades its firmware to keep pace with the ever-expanding world of computing. You can use the Download function located on Testing utility to carry out the upgrade procedure. Please access Advantech’s Web site at http://www.advantech.com to download the required computer file and then follow these instruc- tions.
3.3.3 UDP Testing Utility The utility is for testing the status of ADAM-4577 UDP mode. By the utility, you can set Command Timeout to test the status of UDP network architecture. Figure 3-12 UDP Testing utility Windows In this section, we will describe the function by item in the UDP Testing Utility.
Page 55
Target Device & UDP Port You can set Target Device IP Address according to Network IP Address in Configuration Utility. And UDP Port is depended on Setting Listen on UDP Port in Configuration Utility. “UDP Port” value is equal to “Listen on UDP Port” value plus one. For Example: If your Listen on UDP Port is setting 5500, UDP Port in UDP Testing Utility must set 5501.
Page 56
“Timeout” as setting time is over. For Example, if setting Command Timeout is 12 sec., Host Pc will wait ADAM-4577 response until 12 sec. is over. As 12 sec. is over, Host PC did not receive any response from ADAM-4577 , it will appear the following frame : 46 ADAM-4577 User’s Manual...
Send Command to the [IP Address : UDP Port] Timeout Figure 3-13 Timeout Frame Following Frame is UDP Testing Utility is running test as UDP responses well. Figure 3-14 Command ASCII Testing Windows Chapter 3 Installation and Configuration...
The status message shown at the bottom of the utility window reflects the current status of ADAM-4577. “Read” The configuration utility has found the ADAM-4577 and it is ready for use. “Searching EDG Devices” The configuration utility is searching the ADAM-4570/4571/4572/4577/ 4577/EDG-4504 “Querying DATA from EDG Devices”...
ADAM-4577 is one port universal series device which supprots TCP/ UDP protocol. TCP mode applies to Polling, Event-handling, and Peer- to-peer network architecture. UDP mode only applies to Peer-to-peer. ADAM-4577 provides the flexible network environment , you can use it according to your application. As following, we will demonstrate the network architecture and example code base on TCP and UDP mode.
Host PC creates TCP socket Connect to ADAM-4577 Send data to ADAM-4577 Receive data from ADAM-4577 Disconnect Figure 4-2 Flow chart-Polling network You need not fill out in IP Addr & TCP Port option Figure 4-3 Polling Setting Windows Chapter 4 Network Architecture and Example Code...
Page 64
0, sizeof(SOCKADDR_IN)); Dst4577Addr..sin_family = AF_INET; Dst4577Addr..sin_addr.s_addr = inet_addr(“10.0.0.1”); //Indicate the IP Address of ADAM-4577 that you want to connect.// Dst4577Addr..sin_port = htons(5201); // Indicate which port of ADAM-4577 you want to access// // TCP port no. of Port1 = TCP port +1// // TCP port no.
4.1.2 Event-handling Network Architecture If an event occurs from serial devices connected to the ADAM-4577, the host PC can get the data via the Ethernet. You can use an event- handling network architecture. Data or Command Event Internet Eth ernet...
Define the TCP port of Host PC Host PC creates socket Accept connection from ADAM-4577 Receive data from ADAM-4577 Disconnect Figure 4-5 Flow chart-Event handling network Figure 4-6 Event handling Setting Windows 56 ADAM-4577 User’s Manual...
Page 67
*)&HostAddr, sizeof(HostAddr)); listen(HostSock, 1); ClntAddrLen=sizeof(ClntAddr); ClntSock = accept(HostSock, (sockaddr *)&ClntAddr, &ClntAd- drLen); //The host PC accepts the connection request from the ADAM-4577// recv(ClntSock, RxData, 256, 0); //Receive the data from the port of ADAM-4577// closesocket(ClntSock); //Disconnect from the ADAM-4577//...
Complete the settings of #1 ADAM-4577 Key-in information of #2 ADAM-4577 in configuration utility utilityAccept connection from ADAM-4579 Complete the settings of #2 ADAM-4577 Key-in information of #2 ADAM-4577 in configuration utility Disconnect Figure 4-9 Flow chart- Peer-to-peer network Chapter 4 Network Architecture and Example Code...
2. Find out the IP address and TCP port of #2 ADAM-4577 that you want to connect. #2 ADAM-4577 Module name: Factory IP address: 172.18.0.2 TCP port: 5220 Figure 4-11 #2 ADAM-4577 configuration utility Chapter 4 Network Architecture and Example Code...
3. Key-in the IP address & TCP port of #2 ADAM-4577 in #1 ADAM- 4577 configuration utility. IP address of #2 TCP port of #2 ADAM-4577 ADAM-4577’s port1 Figure 4-12 Key-in the information of #2 ADAM-4577 4. Follow the above procedure and complete the settings of #2 ADAM-4577 in the configuration utility.
+ Vs G ND RS-485 ADAM-5000 ADAM-4000 Bar code Reader Figure 4-14 Network architecture-Polling Host PC creates UDP socket Send data to ADAM-4577 Receive data from ADAM-4577 Figure 4-15 UDP Mode Flow chart-Polling network Chapter 4 Network Architecture and Example Code...
Page 75
//+--Indicate the IP Address of ADAM4577 which you want to access Dst4577Addr.sin_port = htons(5201); //+-- The UDP port of the serial port on ADAM-4577 // Creat a UDP socket on the local PC Dst4577Sock = socket(AF_INET, SOCK_DGRAM, 0); sendto(Dst4577Sock, (char *)"0123456789", 10, 0, (sockaddr *)&Dst4577Addr, sizeof(Dst4577Addr));...
Need help?
Do you have a question about the ADAM-4577 and is the answer not in the manual?
Questions and answers