Omega Engineering i.BTX-M Marine Instruments User Manual


 
28
4.5.1 HTTPGET using Port 1000
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 string is sent to this TCP port, then the
response can be read back from the same socket.
The Httpget.exe file is used to setup and read information from the iServer. This file will
be automatically installed when you install the MailNotifier software available on our
website and CD.
Notes on using Httpget :
The Httpget.exe program is installed to the windows directory (usually c:\winnt or
c:\windows) when installing the Mail Notifier software.
1. Open up a command window (or have a DOS window)
a) Click on start menu
b) Click on "Run"
c) In the dialog box that appears, type "cmd" or "command" and click on "OK" button.
d) A command window should now appear.
2. If you now type "httpget" and press the "enter" key, the program options should be
displayed.
3. Next run httpget with the options displayed below
httpget -r -S “*SRTC\r” 192.168.1.200:1000
where:
-r –S are parameters needed for the command string
*SRT is the command as the following:
*SRTC Read the temperature in C
*SRTF Read the temperature in F
*SRHb Read the pressure in mbar / hPa.
*SRHi Read the pressure in inHg (Mercury).
*SRHm Read the pressure in mmHg (Mercury).
*SRA Read the SP1 and SP2
*SRB Read the temperature and barometric pressure
*SRYS Indicate Power to be on AC or DC
*SRYRST Reset Power on iServer
\r is the carriage return termination character
192.168.1.200 is an IP address
1000 is a socket port number
Response:
076.6 (in Deg.F format)