Bluetooth LE Nordic UART Service (NUS)

The Nordic UART Service (NUS) is a Bluetooth LE service that allows for remote control of the door lock using predefined commands. This feature demonstrates the use of an out-of-band access control mechanism, unrelated to the Aliro and Matter protocols.

Enabling the NUS feature

See the Usage section in NUS service.

Using the Bluetooth LE NUS service

The application registers Lock and Unlock commands that can be sent from the nRF Toolbox mobile application. You can register additional custom commands for the NUS service by using the RegisterCommand method from the NUSService module in application code.

  1. Pairing - Connect to the device advertised as AliroDL using passkey: 123456.

  2. Send Command - Send “Unlock” command using NUS RX characteristic.

  3. Result - You will see the following output in the device serial console:

    <inf> door_lock_app: Unlock command received
    

Additionally, if you enable the CONFIG_DOOR_LOCK_ALIRO_LOCK_SIM_INDICATOR Kconfig option, the lock simulator indicator (green LED 2) lights up when the lock is unlocked.