background image

ADAM-4577

1 Port Universal Serial Device Gateway
User's Manual

Summary of Contents for ADAM-4577

Page 1: ...ADAM 4577 1 Port Universal Serial Device Gateway User s Manual...

Page 2: ...provided in this manual is intended to be accurate and reliable However Advantech Co Ltd assumes no responsibility for its use nor for any infringements upon the rights of third parties which may resu...

Page 3: ...rom your products So if you run into technical difficulties we are here to help For most frequently asked questions you can easily find answers in your product documentation These answers are normally...

Page 4: ...defective product follow these steps 1 Collect all the information about the problem encountered e g type of PC CPU speed Advantech products used other hardware and software used etc Note anything ab...

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...

Page 6: ...ickers 11 2 2 Connecting the Hardware 12 2 2 1 Choosing a Location 12 2 2 2 Network Connection 16 2 2 3 Power Connection 16 2 2 4 Serial Connection 17 2 2 4 1 Connecting to Serial device 17 2 2 4 2 Co...

Page 7: ...on 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 Exam...

Page 8: ...onnection for ADAM 4577 17 Figure 3 1 Configuration Utility 23 Figure 3 2 Locate all ADAM 4570 4572 4577 4577 EDG 4504 24 Figure 3 3 Locate specific ADAM 4577s 25 Figure 3 4 Network Configuration Wind...

Page 9: ...4 7 Network architecture Peer to peer 58 Figure 4 8 Peer to peer Setting Windows 58 Figure 4 9 Flow chart Peer to peer network 59 Figure 4 10 1 ADAM 4577 configuration utility 60 Figure 4 11 2 ADAM 45...

Page 10: ...Tables Table 2 1 ADAM 4577 LED Definition 9...

Page 11: ...1 C hapter Overview...

Page 12: ...You can use it according to your application The ADAM 4577 features a lot of powerful functions such as high speed data transfer advanced security protection auto detection of all EDG series products...

Page 13: ...peer to peer Supports high transmission speeds up to 230 Kbps Supports LED indicators Easy to diagnostic Auto searching Windows configuration utility Easy setting and security protection Download Test...

Page 14: ...g utility Power Requirements unregulated 10 to 30 Vdc with surge protection Power Consumption 1 5 Watt Placement DIN rail panel mounting piggyback stack Operating Temperature 0 60 C Storage Temperatur...

Page 15: ...2 Getting Started Chapter...

Page 16: ...ces either over a LAN or over the WAN Since the ADAM 4577 is connected through a TCP IP network you will need to know some basic facts about networking in order to get the server hooked up correctly 2...

Page 17: ...Polling Figure 2 2 Network architecture Event handling ADAM Ethernet RS 232 422 485 Vs G ND Port 2 Port 1 ADAM 4577 ADAM 5000 ADAM 4000 RS 232 RS 485 Internet Bar code Reader PC Data or Command ADAM E...

Page 18: ...al Architecture The ADAM 4577 provides data modes to meet your needs The Data mode provides a certain amount of transparence and flexibility in transmitting data between two devices The data from the...

Page 19: ...Description Status Link Red Flash Heartbeat 1 time sec ON Locate OFF Not working Green ON Valid network link OFF Invalid network link Tx Rx Ethernet Red ON No data being transmitted Flash Ethernet da...

Page 20: ...4577 User s Manual Figure 2 6 ADAM 4577 Back Panel Figure 2 4 ADAM 4577 Top Panel Figure 2 5 ADAM 4577 Front Panel Status Power Speed Link TX RX Ethernet TX RX Port1 TX RX Port2 RS 232 422 485 Vs GND...

Page 21: ...orget 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 exam...

Page 22: ...nect to the ADAM 4577 serial port 2 2 1 Choosing a Location Due to its versatility and innovative design the ADAM 4577 can be fixed to a panel mount fixed to a DIN Rail Piggyback Stack PanelMounting T...

Page 23: ...Chapter 2 Getting Started 13 Figure 2 7 Panel Mounting...

Page 24: ...he DIN Rail bracket Because the screw heads are beveled the tops of the screws will be flush with the metal plate Din Rail Mounting Brackets Orientation of Metal Plates You can now screw the metal pla...

Page 25: ...Chapter 2 Getting Started 15 Piggyback Stack ADAM 4577 can be stacked as seen in the figure below Figure2 9 Piggyback Stack...

Page 26: ...ted to your network 2 When installing and configuring you will find it convenient to hook the ADAM 4577 directly to your computer s Ethernet card To do this you will need to use a crossed cable such a...

Page 27: ...s for the RS 422 485 end 2 2 4 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 seria...

Page 28: ...18 ADAM 4577 User s Manual DB 9 male RS 232 RS 485 RS 422...

Page 29: ...arted 19 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 de...

Page 30: ...20 ADAM 4577 User s Manual...

Page 31: ...3 Installation and Configuration Chapter...

Page 32: ...Windows Run command to execute the Setup program 3 The Setup program will specify a default installation path C Program Files Advantech EDG Serial Download and Testing utility If a new destination pat...

Page 33: ...rights for configuration to only one host PC to enhance network security With this secure function enabled other PCs will not have permission for configuration The Windows utility consists of four fun...

Page 34: ...0 4571 4572 4577 4577 EDG 4504devices seeFigure3 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 devic...

Page 35: ...teway device This MAC Address is already set before delivery from factory hence no need for further configuration Device Name The configuration utility provides a default name for device to distinguis...

Page 36: ...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 firmw...

Page 37: ...l 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 MACAddress This does not need...

Page 38: ...ur 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 in...

Page 39: ...further efforts Description You can give more detailed description of the function of the port for easy management and maintenance Descriptions longer than 128 characters cannot be used Type Each ADA...

Page 40: ...wControl 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 BaudRate The ADAM 4577 supports baud...

Page 41: ...n 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...

Page 42: ...P network has an IP address and each IP address can allow connections on one or more TCP port The well known TCP port are those that have been defined for example port 23 is used for Telnet connection...

Page 43: ...d IP which can access If this option is disabled only the specified PC can access data from this ADAM 4577 Due to the difference of TCP and UDP we will discuss them individually TCP Mode If you do not...

Page 44: ...7 can transmit data to another networking device 3 DataIdleTimeout It only appears in TCP mode The default is 60 seconds If you want to keep connection continuously you can key in 0 Data idle Time is...

Page 45: ...ption is the setting of another networking device which you want to connect including IP address and TCP port It applies to two network architectures Peer to peer and Event handling It means that you...

Page 46: ...Timeout Setting ms The UDP mode is only applied to Polling network architecture When you choose UDP mode Data Idle Timeout option is disable 1 Response Timeout It counts after ADAM 4577 transmits out...

Page 47: ...ADAM 4577 processes the data C Time for ADAM 4577 transmits the data to Device D Time for Device processes the data E Time for Device transmits the data back to ADAM 4577 F Time for ADAM 4577 process...

Page 48: ...wait response timeout over to transmit back data to host PC The transmis sion way is very inefficient For solving the problem you can set Inter Frame Break value ADAM 4577 will cause efficient network...

Page 49: ...omparing 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...

Page 50: ...40 ADAM 4577 User s Manual 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...

Page 51: ...M 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 For the test you will need to connect each po...

Page 52: ...42 ADAM 4577 User s Manual 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...

Page 53: ...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 downlo...

Page 54: ...utility is for testing the status of ADAM 4577 UDP mode Bytheutility youcansetCommandTimeouttotestthestatusof UDP network architecture Figure 3 12 UDP Testing utility Windows In this section we will...

Page 55: ...ed 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 Ut...

Page 56: ...e Command is running repeatedly to test UDP Mode as you choose Repeat Mode Command Timeout The Timeout is the Host PC waiting time from ADAM 4577 in this period Host PC doesn t receive any response fr...

Page 57: ...tion and Configuration 47 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 ASC...

Page 58: ...48 ADAM 4577 User s Manual Figure 3 15 Command HEX Testing Windows...

Page 59: ...s 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 QueryingDATA fromEDGDevices The configuration util...

Page 60: ...50 ADAM 4577 User s Manual...

Page 61: ...4 Network Architecture and Example Code Chapter...

Page 62: ...according to your application As following we will demonstrate the network architecture and example code base on TCP and UDP mode 4 1 TCP Mode 4 1 1 Polling Network Architecture If you want to use hos...

Page 63: ...e Code 53 Figure 4 2 Flow chart Polling network Figure 4 3 Polling Setting Windows Host PC creates TCP socket Connect to ADAM 4577 Send data to ADAM 4577 Receive data from ADAM 4577 Disconnect You nee...

Page 64: ...htons 5201 Indicate which port of ADAM 4577 you want to access TCP port no of Port1 TCP port 1 TCP port no of Port2 TCP port 2 Dst4577Sock socket AF_INET SOCK_STREAM 0 ADAM 4577 creates the TCP socket...

Page 65: ...erial devices connected to the ADAM 4577 the host PC can get the data via the Ethernet You can use an event handling network architecture Figure 4 4 Network architecture Event handling ADAM Ethernet R...

Page 66: ...Manual Figure 4 5 Flow chart Event handling network Figure 4 6 Event handling Setting Windows Define the TCP port of Host PC Accept connection from ADAM 4577 Receive data from ADAM 4577 Disconnect Hos...

Page 67: ...PC It s the same as the value that you key in it in the Peer for Receiving Data item of configuration utility HostSock socket AF_INET SOCK_STREAM 0 Create the socket of TCP on the Host bind HostSock...

Page 68: ...e Ethernet you can add ADAM 4577s at both sides and use peer to peer network architecture Figure 4 7 Network architecture Peer to peer Figure 4 8 Peer to peer Setting Windows Internet ADAM 4577 RS 485...

Page 69: ...hart Peer to peer network 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 K...

Page 70: ...60 ADAM 4577 User s Manual Example 1 Complete the settings of 1 ADAM 4577 1 ADAM 4577 Module name Office IP address 172 18 1 198 TCPport 5200 Figure 4 10 1 ADAM 4577 configuration utility...

Page 71: ...hitecture and Example Code 61 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 TCPport 5220 Figure 4 11 2 ADAM 4577...

Page 72: ...igure 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 Figure 4 13 Key in the information of 1 ADAM 4577 TC...

Page 73: ...devices you can use polling network architecture Figure 4 14 Network architecture Polling Figure 4 15 UDP Mode Flow chart Polling network Host PC creates UDP socket Send data to ADAM 4577 Receive dat...

Page 74: ...mple WSADATA wsd SOCKADDR_IN Dst4577Addr SOCKADDR_IN RecvedAddr SOCKETDst4577Sock int iRecvedAddrLen int i charRxData 10 WSAStartup MAKEWORD 1 1 wsd memset Dst4577Addr 0 sizeof SOCKADDR_IN Dst4577Addr...

Page 75: ...e 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 iRecvedAddrLen siz...

Page 76: ...66 ADAM 4577 User s Manual...

Reviews: