33
4.5 HTTPget Program (continued)
Whenever Terminal Server service (using Port 2000 by default) is required, the # of
connections must be set to a value from 1 to 5. The Terminal Server mode is the
recommended mode for the most reliable connection when operating with NEWPORT
software or with other programs supporting TCP/IP communications. The Port 2000
access can be used with NEWPORT software and may be needed with some Receivers
when you need to view readings from the web page while simultaneously collecting data
through TCP/IP communications.
4.5.1 HTTPget using Port 2000
You can setup and read the information from the Receiver by using the HTTPget
program. The following program can be used to read data from the embedded server
firmware by using TCP port
2000
. 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 Receiver. 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", the program options should be displayed.
3. Next run HTTPget with the options displayed below
httpget -r -S ERDGALL 192.168.1.135:2000 -C1 -q
where:
-r –S
are parameters needed for the the command string
ERDGALL
is the Telnet command (refer to
Appendix F
)
192.168.1.135
is an IP address
2000
is a socket port number
-C1
closes the TCP connection after 1 second
-q
displays no error messages once the connection is closed
Figure 4.22 HTTPget Example of Polling Connector/Transmitter #6,7,8,9,10