User Manual For - CONTROLLER/DATA RECORDER MultiCon CMC-99/141
8.18.
DIRECT ACCESS TO LOG FILES USING HTTP PROTOCOL.
To connect MultiCon with other device using HTTP protocol, port number 80 must be
unlocked in software and hardware firewall.
Request format:
To request specified data the user must perform CGI query on address specified below
using described format.
http://<IP_address>/cgi-bin/data.cgi?cmd=<command>[&id_first=x][&id_last=y][&additional parameters]
Almost all queries return data where the first column is an ID number. In order to
reduce device load, use parameters id_first and id_last. These parameters limit the
amount of data processed and sent to given Id range.
Example:
To limit the amount of returned data to ID range from 123 to 321 execute a query like:
http://<IP_address>/cgi-bin/data.cgi?cmd=<command>&id_first=123&id_last=321[&additional parameters]
Format of the id_first and id_last:
Numbers can be given to each parameter in decimal or hexadecimal notation (can be
mixed – one can be decimal one hexadecimal):
1)
decimal
– id_last=1234,
2)
hexadecimal
– id_last=0x4D2 (0x4D2=1234),
id_first
and
id_last
are indexed from “0”. It means that firs value is at index 0,
second at index 1 etc.
The cmd parameter:
This parameter specifies the type of requested data. It can be one of the following values:
1)
info
– returns devices information text,
http://192.168.1.176/cgi-bin/data.cgi?cmd=info
2)
current
– returns current logical channels measurements text,
3)
settings
– returns current logical channels settings text,
4)
main_log
– returns general device logging information text,
5)
log
– returns specified log information text,
6)
part
– returns recorded data of specified log,
More about
cmd
parameter see in this chapter bellow.
294
i
i
i