ICP DAS USA PMD Series User Manual page 343

Power meter concentrator
Hide thumbs Also See for PMD Series:
Table of Contents

Advertisement

ICP DAS PMC-523x/PMC-224x/PMD Series User Manual
Appendix VI:The format of CGI Query command
PMC supports the HTTP protocol to retrieve the Power data value, I/O channel value,
Internal Register value or system information. In addition, PMC also supports the
JSON format for message exchange. JSON is a popular format; it can reduce the
loading of data transfer, and is easy to be integrated with other Network system.
 CGI Query command
The following is the format of CGI Query command:
http://IP address:port/dll/query.dll?command
The "IP address" is the actual IP address that the PMC is using now. The default IP
address is "192.168.255.1". The "Port" is the port number of Web server port of
PMC. The default port number is "80". If the port number is 80, you can skip it in
the setting.
The Command consist a set of parameters. Each parameter consist one name and
one value. The name and the value of a parameter are linked by symbol "=". The
parameters are linked by symbol "&". Depended on the query items, follow the
format to include the corresponding parameters in each CGI command.
 CGI Query Authentication
The CGI Query Authentication have to be added to the CGI command. It consist
two parameters: "id" and "password". The value of "id" is for the user account, and
the value of "password" is for the password.
The following is an example of the CGI Query command shows querying the value
of the Internal Register 1 of PMC with CGI Query Authentication.
http://192.168.255.1/dll/query.dll?id=admin&password=Admi
n&job=get_ir_val&ir_no=1
In this example, "admin" is the user account, "Admin" is the password. If the user
account or password is in error status, then the system will return the following
status message.
{
"status": "PASSWORD_ERROR"
}
328

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pmd-523 seriesPmd-224 series

Table of Contents