Instruction transparent transmission
| parameter | description | required |
|---|---|---|
| action | sendCmdToDevice | true |
| pn | Digital collector number | true |
| devaddr | Address (485 bus) | true |
| cmd | The format of the instruction sent to the address (485 bus) is a capital 16-base string, such as: "AA BB CC DD EE FF". the system does not recognize the business attributes of the instruction, It will be transmitted directly | true |
response:
| parameter | description | required |
|---|---|---|
| dat | The response format after the instruction is delivered is a hexadecimal string in uppercase 16, such as: "AA BB CC DD EE FF". The system will not parse or modify this response, and will pass it directly back to the caller. In addition, some instructions do not bring a response and are returned "null" at this time |
true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"dat":"AA BB CC DD EE FF"
}
}
possible error:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0001 | ERR_FAIL | fail |
| 0x0002 | ERR_TIMEOUT | timeout(There is no response for a long time after the command is issued) |
| 0x0006 | ERR_FORMAT_ERROR | parameter error |
| 0x0101 | ERR_NOT_FOUND_COLLECTOR | The data collector could not be found |
| 0x0106 | ERR_DEVICE_OFFLINE | The device is offline |