Skip to main content
Version: 5.0

Memory Commands

Set a Compression Template in the Volatile Memory

WhatDetail
CommandAT+SCHC=TPL,SET,<template>
Parameter<template>
See below
Result codesOK
 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 valueError codeComment
1MGT_ERRORError
3MGT_MEM_ERRThe size of Memory_ptr is not large enough
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
14MGT_TPL_CRC_ERRFailure to validate the data cyclic redundancy check (CRC).
15MGT_TPL_PARSER_ERRError while reading data
18MGT_TPL_UNSUPPORTED_STACK_ERRThe template stack is not supported

Load Payload Compression Rules in the Memory

WhatDetail
CommandAT+SCHC=TPLPAYLOAD,SET,<template>
Parameter<template>
See below
Result codesOK
 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 valueError codeComment
1MGT_ERRORError
3MGT_MEM_ERRThe size of Memory_ptr is not large enough
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
14MGT_TPL_CRC_ERRFailure to validate the data cyclic redundancy check (CRC).
15MGT_TPL_PARSER_ERRError while reading data
18MGT_TPL_UNSUPPORTED_STACK_ERRThe template stack is not supported

Load a Fragmentation Rule in the Volatile Memory

WhatDetail
CommandAT+SCHC=FRAG,SET,<fragmentation_rule>
Parameter<fragmentation_rule>
See below
Result codesOK
 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 valueError codeComment
1MGT_ERRORError
3MGT_MEM_ERRThe size of Memory_ptr is not large enough
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
14MGT_TPL_CRC_ERRFailure to validate the data cyclic redundancy check (CRC).
15MGT_TPL_PARSER_ERRError while reading data
18MGT_TPL_UNSUPPORTED_STACK_ERRThe template stack is not supported