Omega C4EIT/-EIT manual Appendix F HTTPget Program

Page 56

Appendix F

HTTPget Program

You can setup and read the information from the iServer by using the HTTPget program. The following program can be used to read data from the embedded server firmware by using TCP port “1000”. The command sends this string to TCP port

1000 and reads back the response from the same port. Whatever you write to the port goes to the serial port unmodified. Any response from the serial port can be read back from the same socket.

The HTTPget.exe file is used to setup and read information from the iServer. This file is available on our website.

Example to use the HTTPget program:

1.Create a directory C:\iServer\HTTPget

2.Copy HTTPget.exe and readme_features.doc files to this directory.

3.Make sure that you are in this directory and then enter the following test program:

4.For help, execute HTTPget.exe

C:\iServer\httpget>httpget –r –S "*01X01\r" 192.168.1.200:1000

where:

 

–r –S

are parameters needed for the command string

*01

is device address (in hex format) for RS485 (-C4EIT)

 

communication interface (skip for embedded ethernet (-EIT))

X01

read measurement data value (iSeries protocol)

\r

is the carriage return termination character

192.168.1.200

is an IP address

1000

is a local port number

Response:

 

01X01074.3

 

where:

 

01X01

is Echo command

074.3is a display reading of the 4-digit device

In the example above the 4-digit iSeries controller has been connected to the serial communication port of iServer.

50

Image 56
Contents User’s Guide Page Table of Contents Dhcp DNSList of Figures IServer Diagnostics Assigning an IP Address using iConnectAccessing the iServer’s Home ARP Commands and ResponsesData Transmission Characteristics RS485 ILog Error MessagesList of Tables Table K-1TIP Before You BeginPart Introduction EMC ConsiderationsAccessing Devices Over the Ethernet DescriptionPhysical Characteristics and Mounting Part HardwareNetwork Communication Interface Section Serial Communication Interfaces For Models with -C4EITWiring Master/Slave Units via RS485 Interface Half Duplex Hookup Pin# ISeriesRJ-45 Pinout Connecting iServer to PC/Hub/Switch/Router Network Communication Interfaces 1 10BASE-T RJ-45 PinoutEthernet MAC Address Part Network ConfigurationNetwork Protocols IP Address DhcpDNS Example C\Telnet 192.168.1.200 Part Operations Serial Interface Configuration Communication ProtocolCommand Prefix Letters LSB MSB Default IP Address Pinging the iServer from a DOS PromptAccess and Configuration Using a Web Browser IServer LoginOverview 4a iServer -C4EIT OverviewIServer Network Network IServer Serial Page RS485 Serial Port IServer Serial Page Network to Serial IServer Serial Page Packing Techniques IServer Serial Page Multi-Host Connection 10 iServer Configuration Page Ethernet Configuration Date and Time 11 iServer Management Page Email, Snmp Management Email Snmp 12 iServer Management Page Alarm AT&T 13 iServer Security 14 iServer Device Query Device Setup -C4EIT 15 iServer Device Setup Page RS485 -C4EIT16 iServer Device Parameters Page -C4EIT 17 iServer Device Setup Page -EIT Device Parameters -EIT 18 iServer Device Parameters Page -EITReadings Readings Device SetpointsTerminal 21 iServer TerminalSystem 22 iServer SystemDiagnostics 23 iServer Diagnostics Page 4.5.12.1 Diagnostics Serial PortDiagnostics Ethernet Port Diagnostics PingPart Specifications Serial Interface -C4EITTime-Lag, IEC 127-3 recognized Network Interface Serial InterfaceElectrical Safety EN61010-12001 PartMeasurement Category Transients Overvoltage Surge 1.2 / 50uS pulseAppendix Aglossary Appendix B IP Address Appendix C IP Netmask Mask Dotted Notation Mask Binary Mask Bits Class aClass B Class CDec Hex Binary Char No Parity No parity Appendix D Ascii ChartDec Hex Binary Appendix D Ascii Chart Continuation Ascii Control CodesDec Hex Ctrl Key Definition Dec Hex Ctrl Key Definition Char EquivFigure E-1 Assigning an IP Address using iConnect Appendix E IConnect SoftwareFigure E-2 Accessing the iServer’s Home Appendix F HTTPget Program Communication interface skip for embedded ethernet -EIT\iServerhttpget -r -S *02X01\r Network read timeout \iServerhttpget -r -S *02X01\r 192.168.1.2002000Appendix G ARP Program Arp -g fi Same as arp -a192.168.1.96 Admin Port Appendix H Telnet SetupISeries? Figure H-3 Telnet Setup iServer Help Figure I-1a Serial Tunneling iSeries -C4EIT Figure I-1b Serial Tunneling iSeries -EITFigure I-2 Device-to-Device Communication Remote iSeries -EIT/-C4EITLocal iSeries -EIT/-C4EIT Figure I-3 Serial Multi-Host Connection -C4EIT Tunneling Troubleshooting Appendix J IPORT IPORT, COM Port RedirectorIPORT Overview Figure J-2a Redirect Serial Connection Figure J-3 iPORT Main Window IPORT Configurations Figure K-1 iLog Software Logging Data for an iSeries Appendix K ILog SoftwareWireless Devices Table K-1 iLog Excel ApplicationsNetworked Product ILOG File Alternate ISeriesTable K-2 iLog Error Messages Error # Description Page Page Page Page Page WARRANTY/DISCLAIMER Shop on line at omega.com