Before the
eLockIn
can be remote-controlled, the user has to provide a user name
and a password. This can either be done by entering the
eLockIn
's IP address in a
web browser and filling in the authorization form, or by calling
/cgi-bin/login.cgi
directly. login.cgi takes a string as argument: ?username=<user>&password=<pass>
<user> denotes the user name and <pass> the corresponding password.
Thus, the following http request would authenticate user 'long' by sending his password
'nga':
http://192.168.1.7
/cgi-bin/login.cgi?username=long
&password=nga HTTP/1.0
or
GET /cgi-bin/login.cgi?username=long&password=nga
HTTP/1.0
Note: After the 'GET'-line, there must be
two
line delimiters, either <CRLF><CRLF> or
<LF><LF>! Otherwise, the request will probably not be processed by the server.
4.1.3 S
ENDI
NG
K
EY
C
ODE
S
TO
THE
E
L
OCK
I
N
A program named remote.cgi will be called by the
eLockIn
's web server when it
receives a request for
/cgi-bin/remote.cgi
.
Let's assume a TCP connection has already been established between the remote
computer and the
eLockIn
on port 80 (default for http connections) and the user has
identified himself as described in the 'Authentication' section 4.1.2.
If that is the case, commands can be sent to the
eLockIn
device by requesting
/cgi-
bin/remote.cgi
via http and passing keys as arguments to it. Those keys are treated
the same way as if they were pressed on the
eLockIn
itself. A typical http request
would look like the following:
http://192.168.1.7/
cgi-bin/remote.cgi?S_6_8 HTTP/1.0
or
GET /cgi-bin/remote.cgi?S_6_8 HTTP/1.0
The request shown above would cause the
eLockIn
to
dump a screenshot of the display to /screen.jpg ('S'),
enter the number '6' at the position that is currently focused on the display ('_6_',
underscores enclose numbers),
switch to the
eLockIn
menu ('8').
For a complete list of the commands that can be sent to remote.cgi, see Table 1 or
Figure 12.
All of these keys except 'S' correspond to buttons on the front panel of the
eLockIn
(see Figure 12). Therefore the
eLockIn
can be remote-controlled in the same way as
if it is operated manually.
34 (58)
Содержание eLockIn 203
Страница 52: ...7 APPENDICES 7 1 SCHEMATIC DIAGRAM OF THE SIGNAL PATHS 52 58...
Страница 53: ...7 2 DIAGRAM OF THE LOCKIN AMPLIFICATION PATHS Diagram of the preamplifier switches 53 58...
Страница 54: ...7 3 FRONTPANEL DIMENSIONS 54 58...
Страница 55: ...7 4 INSTRUMENT SPECIFIC TEST SHEETS insert with 10 pages of data 55 58...
Страница 56: ...7 5 PREAMPLIFIER CONNECTOR PINOUT 56 58...
Страница 58: ...7 7 TRACEABILITY CHART 58 58...