Instruction transparent transmission

such as, request: http://api.dessmonitor.com/public/?sign=261007b9b49e6bb853674f707bbe07342090e16c&salt=4774753303431526569&token=1fa0b3a0872b7257aa7908e16d316f7149e515d41c8e23092eb83987d6cf2774&action=sendCmdToDevice&pn=COLLECTOR0001&devaddr=1&cmd=AA&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

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

results matching ""

    No results matching ""