Skip to main content
Version: 5.0

SCHC Network Interface

The content of Acklio FullSDK can be described in its simplistic view as an adaptation layer with the SCHC mechanisms, and a set of interfaces: the Management API, the Datagram API, the Network API and the L2A interface.
Refer to the diagram of layers and interfaces for a better understanding.

The demo examples running on the nRF 9160 board use the following AT commands in their communication sequences.

Send Raw Data

WhatDetail
CommandAT#SEND,<data>
Parameter<data> - The IPv4/v6 packet to be sent, as an ASCII HEX string
Result codesOK
 #SEND: <status>,<error>

Transmissions

The OK result code or an error is returned immediately. If OK was returned, a transmission is attempted.

  • If the transmission succeeds, +SEND: 0,0 is returned at the end of the transmission.

  • If the transmission fails, +SEND: <status>,<error>, is returned at the end of the transmission.

The status that can be returned after a transmission failure the following:

Numeric valueError codeComment
1NET_ERRORInternal error
5NET_L2_ERRError from L2 layer
6NET_SEND_ABORT_ERRSession aborted by the sender
7NET_RECV_ABORT_ERRSession aborted by the receiver

Reception of Data from a Remote Application

WhatDetail
Command
Parameters
Result codes#RECVOK: <binary_data>
Result codes#RECVFAIL: <status>

Received data is an ASCII string containing an hexadecimal value.

The status that can be returned after a reception failure are:

Numeric valueError codeComment
1NET_ERRORInternal error
5NET_L2_ERRError from L2 layer
6NET_SEND_ABORT_ERRSession aborted by the sender
7NET_RECV_ABORT_ERRSession aborted by the receiver
8NET_CD_ERRError in the CD layer
9NET_RULES_NOT_FOUND_ERRNo CD rules found