Command penetration transmission

for example: http://api.shinemonitor.com/public/?sign=261007b9b49e6bb853674f707bbe07342090e16c&salt=4774753303431526569&token=1fa0b3a0872b7257aa7908e16d316f7149e515d41c8e23092eb83987d6cf2774&action=sendCmdToDevice&pn=COLLECTOR0001&devaddr=1&cmd=AA&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action sendCmdToDevice True
pn Datalogger number True
devaddr Address(485 bus) True
cmd The instruction to be sent to the address (485 bus) in an uppercase hexadecimal string format, such as "AA BB CC DD EE FF". The system will not distinguish the business attributes of instructions and will directly pass them through True

response:

Parameter Description Required
dat The response after the instruction is issued, formatted as an uppercase hexadecimal string, such as "AA BB CC DD EE FF". The system will not parse or modify this response, and will directly pass a callback to the user.
Additionally, some instructions do not bring a response and return 'null' at this time
True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "dat":"AA BB CC DD EE FF"
    }
}

Possible errors:

Response error code Description Details
0x0001 ERR_FAIL Fail
0x0002 ERR_TIMEOUT Timed out (instruction issued for a long time without response)
0x0006 ERR_FORMAT_ERROR Parameter error
0x0101 ERR_NOT_FOUND_COLLECTOR Unable to find Datalogger
0x0106 ERR_DEVICE_OFFLINE Device is offline
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:31:18

results matching ""

    No results matching ""