Skip to main content
Version: 5.0

Running Commands

Select the API to Use​

Select either the Network or the Datagram API.

WhatDetail
CommandAT#API=<api>
Parameter<api>
N: Network API
D: Datagram API
Result codesOK
 ERROR

Enable the DTGS API​

When using the DTG interface the following command allows turning the sockets into secure ones, it must be run before opening the sockets

WhatDetail
CommandAT#SECURE=<enable>
Parameter<enable> - Boolean (0 or 1)
Result codesOK
 ERROR

Initialize Acklio and the selected API​

WhatDetail
CommandAT#INIT
Parameter—
Result codes#INIT: <status>

Error messages​

Numeric valueError codeComment
3MGT_MEM_ERRinsufficient memory
5MGT_L2A_ERRError returned by the L2A layer
6MGT_FRM_ERRError returned by the FRM layer
7MGT_MUX_ERRError returned by the Mux layer
8MGT_SYNC_ERRError returned by the Sync layer
9MGT_CD_ERRError returned by the CD layer
21MGT_DTGS_ERRError returned by the DTGS layer
22MGT_DTLS_ERRError returned by the DTLS layer
23MGT_CERT_ERRError returned by the Cert layer

Start the Synchronization Procedure​

WhatDetail
CommandAT#SYNC=<timeout>,<retry>
Parameters<timeout>
The wait period (in milliseconds) before retransmitting when no answer comes from IPCore
 <retry>
The maximum number of retransmissions
Result codes#SYNC: <status>
 OK
 ERROR

Error Messages​

Numeric valueError codeComment
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
5MGT_L2A_ERRNot joined yet
6MGT_FRM_ERRError returned by the FRM layer
8MGT_SYNC_ERRError returned by the Sync layer
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized

Get the IP Address of the Device​

WhatDetail
CommandAT#GETIP
Parameter—
Result codes#GETIP: <ip> The IP is in HEX ASCII format
 OK
 #GETIP: -<status>
In case of error the status is returned as negative in order to differentiate between a succesful return and an error code
 ERROR

Error Messages​

Numeric valueError codeComment
3MGT_MEM_ERRThe size of the input buffer is too small
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized
13MGT_NETWORK_PROTOCOL_ERRInvalid network protocol
17MGT_TPL_INVALID_PARAMSome template parameters are not configured