Memory Commands
Set a Compression 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 compression 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 'compression_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 Acklio 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 |
Load a Fragmentation Rule in the Volatile Memory
What | Detail |
---|---|
Command | AT+SCHC=FRAG,SET,<fragmentation_rule> |
Parameter | <fragmentation_rule> See below |
Result codes | OK |
AT_PARAM_ERROR | |
AT_ERROR,1,<status> |
Recommendations
The fragmentation rule parameter value must be an ASCII string containing the hexadecimal value of the rule to be used for a selected direction, either uplink or downlink.
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 'rule_fragmentation_uplink_xx.txt' file, depending on the direction.
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 |