Reference Manual

Table Of Contents
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
CMD_RESET_REQ
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
CMD_RESET_REQ
,
the module answers with a
CMD_RESET_CNF
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
CMD_CONNECT_IND
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
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.
Please note that the different commands are only valid in specific module s-
tates (see Figure
7
). If a command is not permitted in the current state, the
command confirmation returns "Operation not permitted" as a response.
Proteus-III reference manual version 0.11 © November 2019
www.we-online.com/wireless-connectivity 59