Vicks EDG-4508+, EDG-4516+ user manual Network Architecture and Example Code

Page 78

7.2 Network Architecture and Example Code

The EDG-4508+U/4516+U is an advanced peer-to-peer data gateway unit. It extends traditional RS-232/422/485 interfaces to Ethernet net- work. Through networking, you can control and monitor remote serial devices either over a LAN or over the WAN. Since the EDG-4508+U/ 4516+U 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.

The EDG-4508+U/4516+U provides three types of network architecture: polling, event handling and peer-to-peer. You can use the EDG-4508+U/ 4516+U in any operation system with standard networking API such as WinSock and Socket. If you want to develop application programs to access the EDG-4508+U/4516+U, the following illustrates several exam- ple codes for your reference. The three network types are: polling, event handling and peer-to-peer.

EDG-4508+/4516+ User Manual

66

Image 78
Contents EDG-4516+ Port Ethernet to RS-232/422/485 Data GatewayCopyright Acknowledgments CE Notification Product Warranty 2 years FCC Class a Technical Support and Assistance Packing ListContents Chapter Console Configuration Chapter Event and DI/O Monitoring Chapter Troubleshooting Appendix a Overview Features IntroductionSpecifications Packing ChecklistPage Getting Started Installation Flow Chart Understanding EDG-4508+ and EDG-4516+ Connecting Hardware EDG-4508+/4516+ Front PanelEDG-4508+/4516+ LED Indicators and Connectors EDG-4508+/4516+ LED & Connector Definitions EDG-4508+/4516+ Rear Panel Rack Mounting Rack MountingEthernet Connector of EDG-4508+/4516+ Network ConnectionPower Supply Connection Serial Port ConnectionOrdering Information Installation Install/Uninstall Driver & UtilityPage Page Page Page Configuration Auto Search When you run the EDG configuration utility for Locating EDG-4508+/4516+ Device Name Device System ConfigurationEthernet Data Gateway Device DescriptionTCP/IP Option IP address, Subnet Mask, Default Gateway Network ConfigurationDuplex Mode Ethernet Option MAC AddressName Port ConfigurationPort Setting DescriptionPort Configuration TypeParity Flow ControlData Bits Stop BitsBaud Rate Set All PortHost Idle Timeout Auto ReconnectionAllow any IP to access Security ConfigurationOnly configure the allowed IP Specified IP can access EDG devicePage Port Mapping Utility Virtual COM Port Settings OverviewPort of Installed Device Module of Installed DeviceIP Address of Installed Device Properties Auto Reconnect FunctionMemo AddAdd All Inquiring Virtual COM Port Setting Updating EDG Firmware Updating FirmwareSelf Test Function TestSignal Test Communication Parameters TestDelete ApplyExit If you want to quit the utility, please click on Save the Configuration Web-Based Configuration Access Web All new configurations will take effect after EDG-4508+ and EDG-4516+ provide RS-232 DI/O Event Configuration Reset Configuration Console Configuration Connecting the cable Hyper Terminal ConnectionCreating a new connection COM Port Setting Selecting a COM PortCommand List Connecting SuccessfullyVersion Usage version Date displays or sets the date Usage date Time displays or sets the time Usage timeYou should use the net save command to Port Event Exit RebootPing WebPage Universal Serial Device Gateway EDG-4508+/4516+ Firmware updated procedure File Name DescriptionPress Start button to start the firmware download procedure Page Only configure the authorized IP TCP Port numberSpecified IP which can access Port ModeHow do you restore the firmware to EDG-4508+/4516+? File Name Description Page Network Architecture and Example Code Polling Network Architecture 12 Network Architecture-PollingExample EDG-4508+U Event-handling Network Architecture 14 Network architecture Event-handlingExample EDG-4508+U Peer-to-Peer Network Architecture 16 Network architecture Peer-to-peer18 #1 EDG-4508+U Configuration Utility 19 #2 EDG-4508+U Configuration Utility 20 Key-in information of #2 EDG-4508+U 22 Communication parameters of #1 EDG-4508+U 3Web-BasedConfigurationforEDG-4508+U/4516+U Access webNetwork Configuration Port Configuration Reset Configuration Cnsole Configuration for EDG-4508+U/4516+U4 DI/O Event Configuration Command ListDate displays or sets the date VersionLog Time displays or sets the timeNet You should use the net save command to Event Ping Event and DI/O Monitoring Event and DI/O Monitoring Polling MonitoringEvent Monitoring DI Value Inverse Option Page How to use the sample files? Programming I/OEdgevtio.dsp Edgevtio.dswMbtcp.h ModbustcpmsghdrlengthTroubleshooting Configuration Utility can not find EDG Series Cannot change the IP address or other server propertiesPage Page Appendix Appendix a RS-232 Pin Assignment RJ-48 Cable PIN AssignmentRS-422 RS-485100