Skip to main content
Version: 4.0

Memory Commands

Set a 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 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 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 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