Memory Commands
Set a Template in the Volatile Memory
What | Detail |
---|---|
Command | AT+SCHC=TPL,SET,<template> |
Parameter | <template> See below |
Result codes | OK |
AT_PARAM_ERROR | |
AT_ERROR,1,<status> |
Recommendations
The template parameter value must be an ASCII string containing the hexadecimal value of the rules to be used.
This string can be found in the CBOR package of the SCHC template used by the device, available on IPCore. The string is in the 'rules_debug.txt' file.
Error Messages
AT_ERROR,1,<status>
reports a management layer error with the following possible values:
Numeric value | Error code | Comment |
---|---|---|
1 | MGT_ERROR | Error |
3 | MGT_MEM_ERR | The size of Memory_ptr is not large enough |
4 | MGT_OPERATION_NOT_SUPPORTED_ERR | The operation is not supported |
11 | MGT_NOT_INIT_ERR | Acklio FullSDK has not been yet initialized |
14 | MGT_TPL_CRC_ERR | Failure to validate the data cyclic redundancy check (CRC). |
15 | MGT_TPL_PARSER_ERR | Error while reading data |
18 | MGT_TPL_UNSUPPORTED_STACK_ERR | The template stack is not supported |
Load Payload Compression Rules in the Memory
What | Detail |
---|---|
Command | AT+SCHC=TPLPAYLOAD,SET,<template> |
Parameter | <template> See below |
Result codes | OK |
AT_PARAM_ERROR | |
AT_ERROR,1,<status> |
Recommendations
The template parameter value must be an ASCII string containing the hexadecimal value of the rules to be used.
This string can be found in the CBOR package of the SCHC template for the device profile, available on IPCore. The string is in the 'payload_pattern_debug.txt' file.
Error Messages
AT_ERROR,1,<status>
reports a management layer error with the following possible values:
Numeric value | Error code | Comment |
---|---|---|
1 | MGT_ERROR | Error |
3 | MGT_MEM_ERR | The size of Memory_ptr is not large enough |
4 | MGT_OPERATION_NOT_SUPPORTED_ERR | The operation is not supported |
11 | MGT_NOT_INIT_ERR | Acklio FullSDK has not been yet initialized |
14 | MGT_TPL_CRC_ERR | Failure to validate the data cyclic redundancy check (CRC). |
15 | MGT_TPL_PARSER_ERR | Error while reading data |
18 | MGT_TPL_UNSUPPORTED_STACK_ERR | The template stack is not supported |