User Manual For - CONTROLLER/DATA RECORDER MultiCon CMC-99/141
8.18.
DIRECT ACCESS TO LOG FILES USING HTTP PROTOCOL
To connect MultiCon with another device using the HTTP protocol, port number 80
must be unlocked in the software and hardware firewall. The device allows up to 10
concurrent connections using the HTTP protocol.
Request format:
To request specified data the user must perform a CGI query on the address specified
below using a 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 the parameters of id_first and id_last. These parameters
limit the amount of data processed and sent to a given Id range.
Example:
To limit the amount of returned data to the 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 the decimal or hexadecimal notation (can
be mixed – one can be decimal, the other 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 the first 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 below.
325
i
i
i