Query the data collector based on GPRS communication
such as, request: http://api.dessmonitor.com/public/?sign=261007b9b49e6bb853674f707bbe07342090e16c&salt=4774753303431526569&token=1fa0b3a0872b7257aa7908e16d316f7149e515d41c8e23092eb83987d6cf2774&action=webQueryGprsCollector&load=1&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
| parameter |
description |
required |
| action |
webQueryGprsCollector |
true |
| alias |
Data collector number or data collector name, fuzzy search |
false |
| load |
The data collector comes with a load, if you do not pass this parameter, ignore it |
false |
| type |
Whether to access the national grid,1 for connect, 0 is not connected |
false |
| adate |
Start time of activation date (eight time zones), format: yyyy-mm-dd, if you do not pass this parameter, ignore it |
false |
| edate |
End time of activation date (eight time zones), format: yyyy-mm-dd, if you do not pass this parameter, ignore it |
false |
| cardStatus |
card status |
false |
| plant |
The name of the power station to which it belongs,Fuzzy search |
false |
| ccid |
card ccid, Fuzzy search |
false |
| page |
page processing, page number, start at 0, if you do not pass this parameter, it defaults to 0 |
false |
| pagesize |
page processing, Number of collectors per page, 1 ~ 50, if you do not pass this parameter, it defaults to 1 |
false |
response:
| parameter |
description |
required |
| total |
Total number of records |
true |
| page |
page processing, page number |
true |
| pagesize |
page processing, The number of records per page |
true |
| collector[x].pn |
Digital collector number |
true |
| collector[x].alias |
Data collector alias |
false |
| collector[x].datFetch |
Data acquisition frequency (seconds) |
true |
| collector[x].timezone |
Data collector operating time zone (seconds relative to zero time zone) |
true |
| collector[x].load |
The number of loads of the data collector |
true |
| collector[x].type |
The identifier of whether to access the State Grid |
true |
| collector[x].status |
Data collector status, seedevice status |
true |
| collector[x].uid |
The ID of the owner of the power station to which the data collector belongs, may be 0, and the data collector may not belong to any power plant owner |
true |
| collector[x].pid |
The ID of the power station to which the data collector belongs, may be 0, and the data collector may not belong to any power station |
true |
| collector[x].usr |
The owner of the power station to which the data collector belongs, is possible that the data collector does not belong to any power plant owner |
false |
| collector[x].plant |
The power station to which the data collector belongs, is possible that the data collector does not belong to any power station |
false |
| collector[x].cardStatus |
GPRS's status, it is valid only when the data collector is of GPRS type |
false |
| collector[x].ccid |
Digital collector gprs-ccid |
true |
| collector[x].card |
Digital collector gprs-card |
true |
| collector[x].adate |
Activation date, format: yyyy-mm-dd |
true |
| collector[x].edate |
Expiration date, format: yyyy-mm-dd |
true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":7362,
"page":0,
"pagesize":1,
"collector":[
{
"pn":"G0916260043738",
"datFetch":300,
"timezone":28800,
"load":1,
"type":0,
"status":0,
"gprsStatus":0,
"ccid":"G0916260043738",
"card":"G0916260043738",
"adate":"2016-06-23 00:00:00",
"edate":"2021-07-31 00:00:00",
"meals":"3 RMB/10M traffic",
"remainDays":1414
}
]
}
}
possible error:
| Returns an error code |
description |
detailed description |
| 0x0101 |
ERR_NOT_FOUND_COLLECTOR |
The data collector could not be found |
| 0x0104 |
ERR_NOT_FOUND_PLANT |
power station not found |