
WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-II
7. The command interface
The module acts as a slave and can be fully controlled by an external host. The configuration
as well as the operation of the module can be managed by predefined commands that are sent
as telegrams over the UART interface of the module.
The commands of the command interface can be divided into 3 groups:
• Requests: The host requests the module to trigger any action, e.g. in case of the request
the host asks the module to perform a reset.
• Confirmations: On each request, the module answers with a confirmation message to
give a feedback on the requested operation status. In case of a
, the
module answers with a
to tell the host whether the reset will be performed
or not.
• Indications and Responses: The module indicates spontaneously when a special event
has occurred. The
indicates for example that a connection has been
established.
Start signal
Command
Length
Payload
CS
0x02
1 Byte
2 Byte, LSB first
Length Bytes
1 Byte
Start signal:
0x02 (1 Byte)
Command:
One of the predefined commands (1 Byte).
Length:
Specifies the length of the data that follows. Length is a 16 Bit field with LSB first.
Payload:
Variable number (defined by the length field) of data or parameters.
Checksum:
Byte wise XOR combination of all preceding Bytes including the start signal, i.e.
0x02 ˆ Command ˆ Length ˆ Payload = CS
Host integration example codes for checksum calculation and command frame
structure can be found in annex
and
, as well as in the
If the transmission of the UART command has not finished within the packet
transmission duration (depending on the currently selected UART Baud rate +
5ms after having received the start signal), the module will discard the received
Bytes and wait for a new command. This means that the delay between 2
successive Bytes in a frame must be kept as low as possible.
Order code 2608011x24010
52
Version 1.11 , July 2022