HTML Access (Settings page)
The setting page information is accessed
using a HTTP GET.
The webserver is not capable of Server Side
Includes. Instead all data on the page is
populated from a binary file loaded from the
server using javascript. The offsets within the
binary file are as shown in the javascript.
The form submit has parameters:
• t=
as session token
• cfk=
as the units
(0:Celcius/1:Farentheit/2:Kelvin)
• loc=
as the location text field
• ethIpAddress=
as the static IP in decimal
• ethSubnetMask=
as the static subnet
mask in decimal
• ethGateway=
as the static gateway in
decimal
• dhcp=
as the (0:DHCP/1:Static IP)
An example implementation is as follows:
Reading
HTTP GET /lep.bin returns a binary file. In the
javascript this is converted to an unsigned 16
bit array s[].
Where
• cfk is at s[8+2*176+5];
• dhcp is at s[8+2*176+25]; upper 8 bits
• loc is at s[8+2*176+8]; next 16 characters
• ethIpAddress is at s[8+2*176+26]; next 4
bytes
• ethSubnetMask is at s[8+2*176+28]; next 4
bytes
• ethGateway is at s[8+2*176+30]; next 4
bytes
• token t is at s[8+2*176+34+4];
Setting
HTTP GET /eth.ccgi?&t=1234&cfk=0&loc=
cordex&dhcp=1ðIpAddress=1234ð
SubnetMask=1234ðGateway=1234
Note on units for web browser access
All temperature values sent to camera are in
the current units format (C, F, K).
All temperatures returned from the camera are
in centikelvin. This is due to limitations in the
HTML implementation.
Any writes that change the DHCP, IP address,
Netmask, or Gateway configuration will also
cause a reboot a few seconds later. This is
required as the Ethernet stack needs to be
restarted in this situation.
Applies to both the eth.cgi and the USB.
RUGGED
AUTHORITY
MONITIR Series Thermal Imaging Cameras
– User Manual
29
Document Reference MONITIRSERIESUM Rev. A