Silicon Labs Bluetooth Mesh Software API Reference guide

Category
Networking
Type
Reference guide
Bluetooth Mesh Software API Reference
Manual
This document contains the full API reference for the Silicon Labs Bluetooth Mesh Software version
1.6.2, based on the Bluetooth LE Software version 2.13.2.
The Blue Gecko family of the Silicon Labs' Bluetooth chipsets deliver a high performance, low ener-
gy and easy-to-use Bluetooth solution integrated into a small form factor package.
The ultra-low power operating modes and fast wake-up times of the Silicon Labs' energy friendly 32-
bit MCUs, combined with the low transmit and receive power consumption of the Bluetooth radio,
result in a solution optimized for battery powered applications.
silabs.com | Building a more connected world. Rev. 1.6.2
Table of Contents
1. Data types ................................6
2. API Reference ...............................7
2.1 Coexistence Interface (coex) .........................8
2.1.1 coex commands ............................8
2.1.2 coex enumerations ...........................11
2.2 CTE Receiver (cte_receiver) .........................13
2.2.1 cte_receiver commands .........................13
2.2.2 cte_receiver events ...........................18
2.3 CTE Transmitter (cte_transmitter) .......................21
2.3.1 cte_transmitter commands ........................21
2.4 Device Firmware Upgrade (dfu) ........................25
2.4.1 dfu commands ............................25
2.4.2 dfu events ..............................29
2.5 Persistent Store (flash) ...........................31
2.5.1 flash commands ............................31
2.5.2 flash defines .............................34
2.6 Generic Attribute Profile (gatt) .........................36
2.6.1 gatt commands ............................36
2.6.2 gatt events ..............................63
2.6.3 gatt enumerations ...........................70
2.7 Generic Attribute Profile Server (gatt_server) ....................72
2.7.1 gatt_server commands ..........................72
2.7.2 gatt_server events ...........................82
2.7.3 gatt_server enumerations .........................87
2.8 Hardware (hardware) ............................88
2.8.1 hardware commands ..........................88
2.8.2 hardware events ............................92
2.9 Connection Management (le_connection) .....................93
2.9.1 le_connection commands .........................93
2.9.2 le_connection events .........................104
2.9.3 le_connection enumerations .......................109
2.10 Generic Access Profile (le_gap) .......................110
2.10.1 le_gap commands ..........................110
2.10.2 le_gap events ...........................163
2.10.3 le_gap enumerations .........................169
2.11 Bluetooth Mesh Configuration Client (mesh_config_client) ..............172
2.11.1 mesh_config_client commands .....................173
2.11.2 mesh_config_client events .......................241
2.12 Bluetooth Mesh Friend Node API (mesh_friend) .................267
2.12.1 mesh_friend commands ........................267
2.12.2 mesh_friend events .........................268
2.13 Bluetooth Mesh Generic Client Model (mesh_generic_client) .............270
silabs.com
| Building a more connected world. Rev. 1.6.2 | 2
2.13.1 mesh_generic_client commands .....................270
2.13.2 mesh_generic_client events ......................289
2.13.3 mesh_generic_client defines ......................290
2.14 Bluetooth Mesh Generic Server Model (mesh_generic_server) ............293
2.14.1 mesh_generic_server commands .....................293
2.14.2 mesh_generic_server events ......................309
2.15 Bluetooth Mesh Health Client Model (mesh_health_client) ..............313
2.15.1 mesh_health_client commands .....................313
2.15.2 mesh_health_client events .......................320
2.16 Bluetooth Mesh Health Server Model (mesh_health_server) .............324
2.16.1 mesh_health_server commands .....................324
2.16.2 mesh_health_server events .......................326
2.17 Bluetooth Mesh Light Control Client Model (mesh_lc_client) .............329
2.17.1 mesh_lc_client commands .......................329
2.17.2 mesh_lc_client events ........................340
2.18 Bluetooth Mesh Light Control Server Model (mesh_lc_server).............344
2.18.1 mesh_lc_server commands .......................344
2.18.2 mesh_lc_server events ........................351
2.19 Bluetooth Mesh Light Control Setup Server Model (mesh_lc_setup_server) ........358
2.19.1 mesh_lc_setup_server commands ....................358
2.19.2 mesh_lc_setup_server events ......................359
2.20 Bluetooth Mesh Low Power Node API (mesh_lpn) ................361
2.20.1 mesh_lpn commands .........................361
2.20.2 mesh_lpn events ..........................367
2.20.3 mesh_lpn enumerations ........................369
2.21 Mesh Node (mesh_node) .........................371
2.21.1 mesh_node commands ........................371
2.21.2 mesh_node events ..........................395
2.21.3 mesh_node enumerations .......................411
2.22 Bluetooth Mesh Stack Provisioner (mesh_prov) .................414
2.22.1 mesh_prov commands ........................414
2.22.2 mesh_prov events ..........................510
2.22.3 mesh_prov defines ..........................535
2.23 Bluetooth Mesh Proxy Connections (mesh_proxy) ................537
2.23.1 mesh_proxy commands ........................537
2.23.2 mesh_proxy events .........................541
2.24 Bluetooth Mesh GATT Proxy Client (mesh_proxy_client) ..............544
2.25 Bluetooth Mesh GATT Proxy Server (mesh_proxy_server) ..............545
2.26 Bluetooth Mesh Scene Client Model (mesh_scene_client) ..............546
2.26.1 mesh_scene_client commands .....................546
2.26.2 mesh_scene_client events .......................553
2.27 Bluetooth Mesh Scene Server Model (mesh_scene_server) .............555
2.27.1 mesh_scene_server commands .....................555
2.27.2 mesh_scene_server events .......................556
silabs.com
| Building a more connected world. Rev. 1.6.2 | 3
2.28 Bluetooth Mesh Scene Setup Server Model (mesh_scene_setup_server) .........561
2.28.1 mesh_scene_setup_server commands ...................561
2.28.2 mesh_scene_setup_server events ....................561
2.29 Bluetooth Mesh Sensor Client (mesh_sensor_client) ................565
2.29.1 mesh_sensor_client commands .....................565
2.29.2 mesh_sensor_client events .......................577
2.30 Bluetooth Mesh Sensor Server Model (mesh_sensor_server) .............585
2.30.1 mesh_sensor_server commands .....................585
2.30.2 mesh_sensor_server events ......................595
2.31 Bluetooth Mesh Sensor Setup Server (mesh_sensor_setup_server) ..........599
2.31.1 mesh_sensor_setup_server commands...................599
2.31.2 mesh_sensor_setup_server events ....................604
2.32 Bluetooth Mesh Test Utilities (mesh_test) ...................610
2.32.1 mesh_test commands.........................610
2.32.2 mesh_test events ..........................651
2.32.3 mesh_test enumerations ........................652
2.33 Bluetooth Mesh Time Client (mesh_time_client) .................653
2.33.1 mesh_time_client commands ......................653
2.33.2 mesh_time_client events ........................662
2.33.3 mesh_time_client enumerations .....................666
2.34 Bluetooth Mesh Time Server (mesh_time_server) .................668
2.34.1 mesh_time_server commands ......................668
2.34.2 mesh_time_server events .......................678
2.35 Bluetooth Mesh Vendor Model (mesh_vendor_model) ...............683
2.35.1 mesh_vendor_model commands .....................683
2.35.2 mesh_vendor_model events ......................691
2.36 Security Manager (sm) ..........................693
2.36.1 sm commands ...........................693
2.36.2 sm events .............................710
2.36.3 sm enumerations ..........................717
2.37 Periodic Advertising Synchronization (sync) ...................719
2.37.1 sync commands...........................719
2.37.2 sync events ............................722
2.37.3 sync enumerations ..........................724
2.38 System (system) ............................726
2.38.1 system commands ..........................726
2.38.2 system events ...........................738
2.38.3 system enumerations .........................742
2.39 Testing Commands (test) .........................744
2.39.1 test commands ...........................744
2.39.2 test events ............................747
2.39.3 test enumerations ..........................747
2.40 User Messaging (user) ..........................749
2.40.1 user commands ...........................749
2.40.2 user events ............................749
silabs.com
| Building a more connected world. Rev. 1.6.2 | 4
2.41 Error codes ..............................750
3. Document Revision History .........................759
silabs.com | Building a more connected world. Rev. 1.6.2 | 5
1. Data types
Data types used in the documentation are shown in the table below. Unless otherwise noted, all multi-byte fields are in little endian
format.
Table 1.1. Data types
Name Length Description
errorcode 2 bytes Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
int16 2 bytes Signed 16-bit integer
bd_addr 6 bytes Bluetooth address
uint16 2 bytes Unsigned 16-bit integer
int32 4 bytes Signed 32-bit integer
uint32 4 bytes Unsigned 32-bit integer
link_id_t 2 bytes Link ID
int8 1 byte Signed 8-bit integer
uint8 1 byte Unsigned 8-bit integer
uint8array 1 - 256 bytes Variable length byte array. The first byte defines the length of data that follows, 0 - 255
bytes.
ser_name 16 bytes Service name, 16-byte array
dbm 1 byte Signal strength
connection 1 byte Connection handle
service 4 bytes GATT service handle
This value is normally received from the gatt_service event.
characteristic 2 bytes GATT characteristic handle
This value is normally received from the gatt_characteristic event.
descriptor 2 bytes GATT characteristic descriptor handle
uuid 3 or 17 bytes uint8array containing a 2 or 16-byte Universal Unique Identifier (UUID)
att_errorcode 1 byte Attribute protocol error code
• 0: No error
• Non-zero: See Bluetooth specification, Host volume, Attribute Protocol, Error Codes
table.
att_opcode 1 byte Attribute opcode that informs the procedure from which the value was received.
uuid_128 16 bytes 128-bit UUID
aes_key_128 16 bytes 128-bit AES Key
uuid_64 8 bytes 64-bit UUID
int64 8 bytes Signed 64-bit integer
uint64 8 bytes Unsigned 64-bit integer
Bluetooth Mesh Software API Reference Manual
Data types
silabs.com | Building a more connected world. Rev. 1.6.2 | 6
2. API Reference
This section describes all commands, enumerations, responses, events and errors. Commands with related enumerations, responses
and events are grouped according to command classes.
BGAPI Payload
The parameters of a BGAPI command, response, or event are passed between the application and firmware in a payload. For example,
a parameter of uint32 type uses 4 bytes of the payload space. A byte array parameter uses one byte to describe the length of the array.
Data in the array is copied into the remaining free payload space.
Maximum BGAPI Payload Size
The maximum BGAPI payload size is 256 bytes for both NCP and SoC modes. When an application calls a BGAPI command, BGAPI
checks the payload length and returns an error code 0x018a (command_too_long) if the payload causes an overflow.
Deprecation Notice
Note that some commands, enumerations, and events are marked as deprecated. Avoid using those commands because they will be
removed in future releases.
Sensitive Data Handling
Certain commands in the Mesh classes read or write security-critical material. In Secure NCP applications, the BGAPI communication
between the host and the target must be encrypted. Otherwise, the commands will return the error code 0x0a0e mismatched_or_insuffi-
cient_security. This feature does not affect SoC or non-secure NCP applications.
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 7
2.1 Coexistence Interface (coex)
Coexistence BGAPI class. Coexistence interface is enabled and initialized with gecko_initCoexHAL() function.
2.1.1 coex commands
2.1.1.1 cmd_coex_get_counters
Read coexistence statistic counters from the device. Response contains the list of uint32 type counter values. Counters in the list are in
following order: low priority requested, high priority requested, low priority denied, high priority denied, low-priority TX aborted, and high-
priority TX aborted. Passing a non-zero value also resets counters.
Table 2.1. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x01 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x01 method Message ID
4 uint8 reset Reset counters if parameter value is not zero.
Table 2.2. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x03 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x01 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
6 uint8array counters Variable length byte array. The first byte defines the length of data
that follows, 0 - 255 bytes.
BGLIB C API
/* Function */
struct gecko_msg_coex_get_counters_rsp_t *gecko_cmd_coex_get_counters(uint8 reset);
/* Response id */
gecko_rsp_coex_get_counters_id
/* Response structure */
struct gecko_msg_coex_get_counters_rsp_t
{
uint16 result;,
uint8array counters;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 8
2.1.1.2 cmd_coex_set_directional_priority_pulse
Set Directional Priority Pulse Width
Table 2.3. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x01 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x03 method Message ID
4 uint8 pulse Directional priority pulse width in us
Table 2.4. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x03 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_coex_set_directional_priority_pulse_rsp_t
*gecko_cmd_coex_set_directional_priority_pulse(uint8 pulse);
/* Response id */
gecko_rsp_coex_set_directional_priority_pulse_id
/* Response structure */
struct gecko_msg_coex_set_directional_priority_pulse_rsp_t
{
uint16 result;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 9
2.1.1.3 cmd_coex_set_options
Configure coexistence options at runtime.
Table 2.5. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x08 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x00 method Message ID
4-7 uint32 mask Mask defines which coexistence options are changed.
8-11 uint32 options Value of options to be changed. This parameter is used together
with the mask parameter.
Table 2.6. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x00 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_coex_set_options_rsp_t *gecko_cmd_coex_set_options(uint32 mask, uint32 options);
/* Response id */
gecko_rsp_coex_set_options_id
/* Response structure */
struct gecko_msg_coex_set_options_rsp_t
{
uint16 result;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 10
2.1.1.4 cmd_coex_set_parameters
Configure coexistence parameters.
Table 2.7. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x04 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x02 method Message ID
4 uint8 priority Coexistence priority threshold. Coexistence priority is toggled if
priority is below this value.
5 uint8 request Coexistence request threshold. Coexistence request is toggled if
priority is below this value.
6 uint8 pwm_period PWM functionality period length in 1ms units
7 uint8 pwm_dutycycle PWM functionality dutycycle in percentage
Table 2.8. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x20 class Message class: Coexistence Interface
3 0x02 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_coex_set_parameters_rsp_t *gecko_cmd_coex_set_parameters(uint8 priority, uint8 request, uint8
pwm_period, uint8 pwm_dutycycle);
/* Response id */
gecko_rsp_coex_set_parameters_id
/* Response structure */
struct gecko_msg_coex_set_parameters_rsp_t
{
uint16 result;
};
2.1.2 coex enumerations
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 11
2.1.2.1 enum_coex_option
Coexistence configuration options
Table 2.9. Enumerations
Value Name Description
256 coex_option_enable Enable coexistence feature
1024 coex_option_tx_abort Abort transmission if grant is denied
2048 coex_option_high_priority Enable priority signal
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 12
2.2 CTE Receiver (cte_receiver)
Commands and events in this class manage Constant Tone Extension (CTE) receiving.
CTE feature is only supported by specific devices. Commands from this class will return bg_err_not_supported on devices that do not
support CTE.
2.2.1 cte_receiver commands
2.2.1.1 cmd_cte_receiver_clear_dtm_parameters
Clear CTE-related parameters that were previously set for LE receiver test. Default values will be restored for these parameters.
Table 2.10. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x00 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x06 method Message ID
Table 2.11. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x06 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_cte_receiver_clear_dtm_parameters_rsp_t *gecko_cmd_cte_receiver_clear_dtm_parameters();
/* Response id */
gecko_rsp_cte_receiver_clear_dtm_parameters_id
/* Response structure */
struct gecko_msg_cte_receiver_clear_dtm_parameters_rsp_t
{
uint16 result;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 13
2.2.1.2 cmd_cte_receiver_set_dtm_parameters
Set CTE-related parameters of LE receiver test.
Table 2.12. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x04 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x05 method Message ID
4 uint8 cte_length Expected CTE length in 8 us units
• 0: No CTE
• 0x02 to 0x14: Expected CTE length
Default: 0 (no CTE)
5 uint8 cte_type Expected CTE type
• 0: Expect AoA CTE
• 1: Expect AoD CTE with 1 us slots
• 2: Expect AoD CTE with 2 us slots
Default: 0
6 uint8 slot_durations Slot durations
• 1: Switching and sampling slots are 1 us each
• 2: Switching and sampling slots are 2 us each
Default: 1
7 uint8array switching_pattern Antenna switching pattern. Antennas will be switched in this order
with the antenna switch pins during CTE. If the CTE is longer than
the switching pattern, the pattern starts over. Default: empty array
Table 2.13. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x05 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_cte_receiver_set_dtm_parameters_rsp_t *gecko_cmd_cte_receiver_set_dtm_parameters(uint8
cte_length, uint8 cte_type, uint8 slot_durations, uint8 switching_pattern_len, const uint8
*switching_pattern_data);
/* Response id */
gecko_rsp_cte_receiver_set_dtm_parameters_id
/* Response structure */
struct gecko_msg_cte_receiver_set_dtm_parameters_rsp_t
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 14
{
uint16 result;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 15
2.2.1.3 cmd_cte_receiver_start_iq_sampling
Start IQ samplings on a connection. A CTE requests will be initiated periodically on the given connection and IQ sampling will be made
on the received CTE responses.
Table 2.14. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x07 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x01 method Message ID
4 uint8 connection Connection handle
5-6 uint16 interval Measurement interval
• 0: No interval. The request is initiated only once.
• Other values N: Initiate the request every N-th connection
events
7 uint8 cte_length Minimum CTE length requested in 8 us units.
• Range: 0x02 to 0x14
• Time Range: 16 us to 160 us
8 uint8 cte_type Requested CTE type
• 0: AoA CTE
• 1: AoD CTE with 1 us slots
• 2: AoD CTE with 2 us slots
9 uint8 slot_durations Slot durations
• 1: Switching and sampling slots are 1 us each
• 2: Switching and sampling slots are 2 us each
10 uint8array switching_pattern Antenna switching pattern. Antennas will be switched in this order
with the antenna switch pins during CTE. If the CTE is longer than
the switching pattern, the pattern starts over.
Table 2.15. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x01 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_cte_receiver_start_iq_sampling_rsp_t *gecko_cmd_cte_receiver_start_iq_sampling(uint8
connection, uint16 interval, uint8 cte_length, uint8 cte_type, uint8 slot_durations, uint8
switching_pattern_len, const uint8 *switching_pattern_data);
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 16
/* Response id */
gecko_rsp_cte_receiver_start_iq_sampling_id
/* Response structure */
struct gecko_msg_cte_receiver_start_iq_sampling_rsp_t
{
uint16 result;
};
Table 2.16. Events Generated
Event Description
cte_receiver_iq_report Triggered when IQ samples have been received.
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 17
2.2.1.4 cmd_cte_receiver_stop_iq_sampling
Stop the IQ sampling on a connection. CTEs will not be requested on the given connection.
Table 2.17. Command
Byte Type Name Description
0 0x20 hilen Message type: Command
1 0x01 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x02 method Message ID
4 uint8 connection Connection handle
Table 2.18. Response
Byte Type Name Description
0 0x20 hilen Message type: Response
1 0x02 lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x02 method Message ID
4-5 uint16 result Result code
• 0: success
• Non-zero: an error has occurred
For other values see Error codes
BGLIB C API
/* Function */
struct gecko_msg_cte_receiver_stop_iq_sampling_rsp_t *gecko_cmd_cte_receiver_stop_iq_sampling(uint8
connection);
/* Response id */
gecko_rsp_cte_receiver_stop_iq_sampling_id
/* Response structure */
struct gecko_msg_cte_receiver_stop_iq_sampling_rsp_t
{
uint16 result;
};
2.2.2 cte_receiver events
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 18
2.2.2.1 evt_cte_receiver_iq_report
IQ samples report from connection or connectionless CTE packets.
Table 2.19. Event
Byte Type Name Description
0 0xa0 hilen Message type: Event
1 0x0e lolen Minimum payload length
2 0x45 class Message class: CTE Receiver
3 0x00 method Message ID
4-5 uint16 status Status of CTE IQ sampling
6 uint8 packet_type CTE packet type
• 0: Connection. The sampled CTE was requested through a
connection.
• 1: Connectionless. The sampled CTE was part of a periodic
advertisement.
• 2: DTM. This value is possible only in some testing circumstan-
ces
7 uint8 handle Connection handle or periodic advertising synchronization handle
8 uint8 phy The PHY on which the packet is received on a connection. Ignore
this field for connectionless IQ reports.
• 1: 1M PHY
• 2: 2M PHY
9 uint8 channel The channel on which the CTE packet was received
10 int8 rssi RSSI in the received CTE packet. Unit: dBm
11 uint8 rssi_antenna_id The ID of the antenna on which RSSI was measured
12 uint8 cte_type The CTE type
• 0: AoA CTE response
• 1: AoD CTE response with 1us slots
• 2: AoD CTE response with 2us slots
13 uint8 slot_durations Slot durations
• 1: Switching and sampling slots are 1 us each
• 2: Switching and sampling slots are 2 us each
14-15 uint16 event_counter The event counter of the periodic advertising train or the connec-
tion
16 uint8 completeness The sample data completeness status
• 0: Complete
• 1: Incomplete, more sample data to come in next events
17 uint8array samples IQ samples of the received CTE packet. I and Q samples follow
each other alternately (I, Q, I, Q , ...)
C Functions
/* Event id */
gecko_evt_cte_receiver_iq_report_id
/* Event structure */
struct gecko_msg_cte_receiver_iq_report_evt_t
{
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 19
uint16 status;,
uint8 packet_type;,
uint8 handle;,
uint8 phy;,
uint8 channel;,
int8 rssi;,
uint8 rssi_antenna_id;,
uint8 cte_type;,
uint8 slot_durations;,
uint16 event_counter;,
uint8 completeness;,
uint8array samples;
};
Bluetooth Mesh Software API Reference Manual
API Reference
silabs.com | Building a more connected world. Rev. 1.6.2 | 20
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603
  • Page 604 604
  • Page 605 605
  • Page 606 606
  • Page 607 607
  • Page 608 608
  • Page 609 609
  • Page 610 610
  • Page 611 611
  • Page 612 612
  • Page 613 613
  • Page 614 614
  • Page 615 615
  • Page 616 616
  • Page 617 617
  • Page 618 618
  • Page 619 619
  • Page 620 620
  • Page 621 621
  • Page 622 622
  • Page 623 623
  • Page 624 624
  • Page 625 625
  • Page 626 626
  • Page 627 627
  • Page 628 628
  • Page 629 629
  • Page 630 630
  • Page 631 631
  • Page 632 632
  • Page 633 633
  • Page 634 634
  • Page 635 635
  • Page 636 636
  • Page 637 637
  • Page 638 638
  • Page 639 639
  • Page 640 640
  • Page 641 641
  • Page 642 642
  • Page 643 643
  • Page 644 644
  • Page 645 645
  • Page 646 646
  • Page 647 647
  • Page 648 648
  • Page 649 649
  • Page 650 650
  • Page 651 651
  • Page 652 652
  • Page 653 653
  • Page 654 654
  • Page 655 655
  • Page 656 656
  • Page 657 657
  • Page 658 658
  • Page 659 659
  • Page 660 660
  • Page 661 661
  • Page 662 662
  • Page 663 663
  • Page 664 664
  • Page 665 665
  • Page 666 666
  • Page 667 667
  • Page 668 668
  • Page 669 669
  • Page 670 670
  • Page 671 671
  • Page 672 672
  • Page 673 673
  • Page 674 674
  • Page 675 675
  • Page 676 676
  • Page 677 677
  • Page 678 678
  • Page 679 679
  • Page 680 680
  • Page 681 681
  • Page 682 682
  • Page 683 683
  • Page 684 684
  • Page 685 685
  • Page 686 686
  • Page 687 687
  • Page 688 688
  • Page 689 689
  • Page 690 690
  • Page 691 691
  • Page 692 692
  • Page 693 693
  • Page 694 694
  • Page 695 695
  • Page 696 696
  • Page 697 697
  • Page 698 698
  • Page 699 699
  • Page 700 700
  • Page 701 701
  • Page 702 702
  • Page 703 703
  • Page 704 704
  • Page 705 705
  • Page 706 706
  • Page 707 707
  • Page 708 708
  • Page 709 709
  • Page 710 710
  • Page 711 711
  • Page 712 712
  • Page 713 713
  • Page 714 714
  • Page 715 715
  • Page 716 716
  • Page 717 717
  • Page 718 718
  • Page 719 719
  • Page 720 720
  • Page 721 721
  • Page 722 722
  • Page 723 723
  • Page 724 724
  • Page 725 725
  • Page 726 726
  • Page 727 727
  • Page 728 728
  • Page 729 729
  • Page 730 730
  • Page 731 731
  • Page 732 732
  • Page 733 733
  • Page 734 734
  • Page 735 735
  • Page 736 736
  • Page 737 737
  • Page 738 738
  • Page 739 739
  • Page 740 740
  • Page 741 741
  • Page 742 742
  • Page 743 743
  • Page 744 744
  • Page 745 745
  • Page 746 746
  • Page 747 747
  • Page 748 748
  • Page 749 749
  • Page 750 750
  • Page 751 751
  • Page 752 752
  • Page 753 753
  • Page 754 754
  • Page 755 755
  • Page 756 756
  • Page 757 757
  • Page 758 758
  • Page 759 759
  • Page 760 760
  • Page 761 761

Silicon Labs Bluetooth Mesh Software API Reference guide

Category
Networking
Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI