S42/Central Software User Guide
1VV0301318 Rev. 3
– 2018-08-31
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved.
Page 29 of 66
The following example demonstrates activating “notifications” for the characteristic handle
“0x13” in MUX mode:
cc ff 16 41 54 2b 4c 45 43 43 43 44 3d 30 78 31 30 2c
30 78 31 33 2c 31 0d
AT+LECCCD=0x10,0x13,1
cc ff 06 0d 0a 4f 4b 0d 0a
OK
The result message “OK” reports that activating notifications to the required connection handle
and characteristic handle was successful.
3.2.1.6.
Exchange Data on MUX Channel
After creating MUX data channels with the AT+LEADDCHAN command the
S42/Central uses these channels to exchange data between the local host and the
GATT server characteristic during this active connection.
The following example demonstrates the data exchange between both given MUX channels of
the service UUID: “FEFB”.
(GATT Server: reading data)
characteristic handle:
0x0011
characteristic properties:
PROP:0x04
characteristic UUID:
UUID: 00000001000010008000008025000000
MUX channel:
0x08
(GATT Server: writing data)
characteristic handle:
0x0013
characteristic properties:
PROP:0x10
characteristic UUID:
UUID: 00000002000010008000008025000000
MUX channel:
0x07
cc 08 08 41 42 43 44 45 46 47 0d
ABCDEFG
cc 07 0b 31 32 33 34 35 36 37 38 39 20 30
123456789 0
The S42/Central received serial data on the MUX channel “0x08” and transfer these
data bytes to the characteristic handle “0x13” of the GATT server.
The S42/Central received Bluetooth data from the GATT server from the
characteristic handle “0x11” and send them on the MUX channel “0x07” to the serial interface.