Bluetooth LE transport
In the Aliro Bluetooth LE with Ultra-Wideband (UWB) transport, Bluetooth LE carries the Access Protocol and the UWB ranging session setup (the M1–M4 message exchange). UWB then performs secure ranging. See Ultra-wideband (UWB) for how distance measurements drive unlock and lock actions.
Note
This reference does not support the Aliro Bluetooth LE-only transport variant. Aliro over Bluetooth LE with UWB is supported on the nRF5340 DK and nRF54LM20 DK with an external UWB module.
Bluetooth identity and advertising
Aliro uses a dedicated Bluetooth local identity (CONFIG_DOOR_LOCK_ALIRO_BLE_SERVICE_BT_ID Kconfig option) for advertising and connections.
This keeps Aliro sessions separate from other Bluetooth LE services on the default identity, such as Matter, Nordic UART Service (NUS) or Device Firmware Update over Simple Management Protocol (SMP protocol).
The advertising payload follows the Aliro specification and is built from the Reader group identifier and Reader group sub-identifier. The payload is updated automatically when either value changes.
Note
To override these values from the console, use the reader group_id and reader group_sub_id subcommands.
See Command-line reference for command syntax.
Kconfig options
When Aliro over Bluetooth LE and UWB runs alongside other Bluetooth LE services, the stack must support multiple simultaneous connections across both identities.
Each Aliro session uses one connection on the Aliro identity.
Services such as NUS or SMP DFU may use additional connections on the default identity.
Set CONFIG_BT_MAX_CONN to cover both: at least the configured Aliro session count plus any connections required on the default identity.
The Aliro session limits are CONFIG_DOOR_LOCK_ALIRO_BLE_SERVICE_MAX_SESSIONS and CONFIG_DOOR_LOCK_ALIRO_L2CAP_SERVER_MAX_SESSIONS.
Both default to CONFIG_BT_MAX_CONN and are defined in the subsys/aliro/aliro_service/Kconfig and subsys/aliro/l2cap_server/Kconfig files.
The build verifies that CONFIG_BT_MAX_CONN is greater than or equal to both limits.
For example, with CONFIG_DOOR_LOCK_ALIRO_BLE_SERVICE_MAX_SESSIONS set to 2 and NUS enabled for a separate connection, set CONFIG_BT_MAX_CONN to at least 3.
Kconfig option |
Description |
|---|---|
|
Maximum simultaneous Bluetooth LE connections across all identities. |
|
Maximum concurrent Aliro Bluetooth LE sessions handled by the Aliro service. |
|
Maximum concurrent Aliro L2CAP server sessions. |
You can configure other Bluetooth LE parameters — buffer sizes, MTU, GATT database, L2CAP channels, TX power, and PHY — in the application-specific Kconfig.ble.defconfig.