
S
AT Command Reference
Release r02
www.stollmann.de
Page 6 of 33
The time interval between each of the three plus signs must not exceed 1 second.
The escape sequence remains transparent to the remote device.
1.3 Multiplexing Mode (MUX)
The multiplexing mode is used to handle incoming and outgoing data of different
remote endpoints and command data.
Data has to be sent and are received in the following framing (all values in
hexadecimal format):
Name
Description
Length
Value
Start
Start of frame
8 bit
CC
Channel ID
Channel identifier
8 bit
00 – FF
Length
Length of data
8 bit
-
Data
Max. 255 bytes data
Min. 0 byte
Max. 255 bytes
-
The start byte is used to detect the start of a frame.
The channel ID determines the channel to send data to. This can be the link ID of an
active link in case of classic Bluetooth, the data channel of a BLE endpoint or the AT
command interface (value FF).
The length field sets the length of the payload to send or to received in bytes.
The data field consists of the payload data to send or receive.
Start of frame, channel ID, length and data are always transmitted in direct, binary
form. AT commands have to be sent to the channel ID FF, simply prefixed with start
of frame, 0xFF, and length byte. Data received from the AT command interface are
marked by channel ID FF. Line editing using backspace is not available in
multiplexing mode.
Examples:
CC 01 0B 31 32 33 34 35 36 37 38 39 30 0D
Send data “1234567890<CR>” to channel 1 via MUX
protocol
CC FF 06 41 54 49 39 39 0D
Send AT command “ATI99<CR>” via MUX protocol
CC FF 06 0D 0A 4F 4B 0D 0A
Receive response “<CR><LF>OK<CR><LF>” from
AT command interface via MUX protocol
Result messages like RING, CONNECT and NO CARRIER may be sent in multiple
frames by the S module. The host controller application needs to collect
the data until the closed “<CR><LF>” is received.
If the multiplexing mode is enabled the commands
ATH
and the result messages
RING, CONNECT and NO CARRIER includes the additional parameter “channel
ID”.