Nordic UART Service (NUS)
The Nordic UART Service (NUS) is a Bluetooth LE GATT service that exposes RX and TX characteristics, acting as a UART-style command channel over Bluetooth LE.
In the nRF Door Lock and Access Control applications, the Door Lock NUS wrapper receives line-based commands from a paired peer and dispatches them to registered callbacks.
The reference applications register Lock and Unlock commands for proprietary remote lock control, independent of Aliro and Matter.
Role in the add-on
NUS is a parallel control path on the default Bluetooth identity, alongside other general-purpose Bluetooth LE services such as SMP DFU.
Aliro Bluetooth LE sessions use a separate identity; see Bluetooth LE transport for how the two coexist and how to size CONFIG_BT_MAX_CONN.
Module details
See NUS service for enabling, Kconfig options, and security details.
Testing
For step-by-step testing, including pairing and sending Lock and Unlock commands, see Bluetooth LE Nordic UART Service (NUS) (Aliro Access Control Application) and Bluetooth LE Nordic UART Service (NUS) (Matter and Aliro Door Lock Application).