Skip to content

Commit b62e98b

Browse files
ludvigsjrlubos
authored andcommitted
Samples: Bluetooth: Mesh: Add nRF54 tabs to coex sample
This adds tabs with the correct LED and button numbers for nRF54 series devices to the coex sample README Signed-off-by: Ludvig Jordet <[email protected]>
1 parent 7226ffa commit b62e98b

File tree

1 file changed

+111
-34
lines changed
  • samples/bluetooth/mesh/ble_peripheral_lbs_coex

1 file changed

+111
-34
lines changed

samples/bluetooth/mesh/ble_peripheral_lbs_coex/README.rst

Lines changed: 111 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,17 @@ One of these sets is used to handle all Bluetooth Mesh communication, while the
4242
LED Button Service
4343
==================
4444

45-
When connected, the :ref:`lbs_readme` sends the state of **Button 1** on the development kit to the connected device, such as a phone or tablet.
46-
The mobile application on the device can display the received button state and control the state of **LED 2** on the development kit.
45+
.. tabs::
46+
47+
.. group-tab:: nRF21, nRF52 and nRF53 DKs
48+
49+
When connected, the :ref:`lbs_readme` sends the state of **Button 1** on the development kit to the connected device, such as a phone or tablet.
50+
The mobile application on the device can display the received button state and control the state of **LED 2** on the development kit.
51+
52+
.. group-tab:: nRF54 DKs
53+
54+
When connected, the :ref:`lbs_readme` sends the state of **Button 0** on the development kit to the connected device, such as a phone or tablet.
55+
The mobile application on the device can display the received button state and control the state of **LED 1** on the development kit.
4756

4857
Mesh provisioning
4958
=================
@@ -68,31 +77,64 @@ The following table shows the mesh light composition data for this sample:
6877

6978
The models are used for the following purposes:
7079

71-
* :ref:`bt_mesh_onoff_srv_readme` instance in element 1 controls **LED 1**.
72-
* Config Server allows configurator devices to configure the node remotely.
73-
* Health Server provides ``attention`` callbacks that are used during provisioning to call your attention to the device.
74-
These callbacks trigger blinking of the LEDs.
80+
.. tabs::
81+
82+
.. group-tab:: nRF21, nRF52 and nRF53 DKs
83+
84+
* :ref:`bt_mesh_onoff_srv_readme` instance in element 1 controls **LED 1**.
85+
* Config Server allows configurator devices to configure the node remotely.
86+
* Health Server provides ``attention`` callbacks that are used during provisioning to call your attention to the device.
87+
These callbacks trigger blinking of the LEDs.
88+
89+
.. group-tab:: nRF54 DKs
90+
91+
* :ref:`bt_mesh_onoff_srv_readme` instance in element 1 controls **LED 0**.
92+
* Config Server allows configurator devices to configure the node remotely.
93+
* Health Server provides ``attention`` callbacks that are used during provisioning to call your attention to the device.
94+
These callbacks trigger blinking of the LEDs.
7595

7696
The model handling is implemented in :file:`src/model_handler.c`, which uses the :ref:`dk_buttons_and_leds_readme` library to control each LED on the development kit according to the matching received messages of Generic OnOff Server.
7797

7898
User interface
7999
**************
80100

81-
Buttons (Common):
82-
Can be used to input the OOB authentication value during provisioning.
83-
All buttons have the same functionality during this procedure.
101+
.. tabs::
102+
103+
.. group-tab:: nRF21, nRF52 and nRF53 DKs
104+
105+
Buttons (Common):
106+
Can be used to input the OOB authentication value during provisioning.
107+
All buttons have the same functionality during this procedure.
108+
109+
Button 1:
110+
Send a notification through the LED Button Service with the button pressed or released state.
111+
112+
LEDs (Common):
113+
Show the OOB authentication value during provisioning if the Push button OOB method is used.
114+
115+
LED 1:
116+
Controlled by the Generic OnOff Server.
117+
118+
LED 2:
119+
Controlled remotely by the LED Button Service from the connected device.
84120

85-
Button 1:
86-
Send a notification through the LED Button Service with the button pressed or released state.
121+
.. group-tab:: nRF54 DKs
87122

88-
LEDs (Common):
89-
Show the OOB authentication value during provisioning if the Push button OOB method is used.
123+
Buttons (Common):
124+
Can be used to input the OOB authentication value during provisioning.
125+
All buttons have the same functionality during this procedure.
90126

91-
LED 1:
92-
Controlled by the Generic OnOff Server.
127+
Button 0:
128+
Send a notification through the LED Button Service with the button pressed or released state.
93129

94-
LED 2:
95-
Controlled remotely by the LED Button Service from the connected device.
130+
LEDs (Common):
131+
Show the OOB authentication value during provisioning if the Push button OOB method is used.
132+
133+
LED 0:
134+
Controlled by the Generic OnOff Server.
135+
136+
LED 1:
137+
Controlled remotely by the LED Button Service from the connected device.
96138

97139
Configuration
98140
*************
@@ -140,33 +182,68 @@ See :ref:`ug_bt_mesh_model_config_app` for details on how to configure the mesh
140182

141183
Configure the Generic OnOff Server model on the root element of the **Mesh and Peripheral Coex** node:
142184

143-
1. Bind the model to **Application Key 1**.
144-
Once the model is bound to the application key, you can control **LED 1** on the device.
185+
.. tabs::
186+
187+
.. group-tab:: nRF21, nRF52 and nRF53 DKs
188+
189+
1. Bind the model to **Application Key 1**.
190+
Once the model is bound to the application key, you can control **LED 1** on the device.
191+
192+
#. In the model view, tap :guilabel:`ON`/:guilabel:`OFF` (one of the Generic On Off Controls).
193+
This switches the **LED 1** on the development kit on and off respectively.
194+
195+
.. group-tab:: nRF54 DKs
196+
197+
1. Bind the model to **Application Key 1**.
198+
Once the model is bound to the application key, you can control **LED 0** on the device.
145199

146-
#. In the model view, tap :guilabel:`ON`/:guilabel:`OFF` (one of the Generic On Off Controls).
147-
This switches the **LED 1** on the development kit on and off respectively.
200+
#. In the model view, tap :guilabel:`ON`/:guilabel:`OFF` (one of the Generic On Off Controls).
201+
This switches the **LED 0** on the development kit on and off respectively.
148202

149203
Testing LED Button Service (peripheral)
150204
=======================================
151205

152206
After programming the sample to your development kit, test it by performing the following steps:
153207

154-
1. Start the `nRF Connect for Mobile`_ application on your smartphone or tablet.
155-
#. Power on the development kit.
156-
#. Connect to the device from the nRF Connect application.
157-
The device is advertising as "Mesh and Peripheral Coex".
158-
The services of the connected device are shown.
159-
#. In **Nordic LED Button Service**, enable notifications for the **Button** characteristic.
160-
#. Press **Button 1** on the device.
161-
#. Observe that notifications with the following values are displayed:
208+
.. tabs::
209+
210+
.. group-tab:: nRF21, nRF52 and nRF53 DKs
211+
212+
1. Start the `nRF Connect for Mobile`_ application on your smartphone or tablet.
213+
#. Power on the development kit.
214+
#. Connect to the device from the nRF Connect application.
215+
The device is advertising as "Mesh and Peripheral Coex".
216+
The services of the connected device are shown.
217+
#. In **Nordic LED Button Service**, enable notifications for the **Button** characteristic.
218+
#. Press **Button 1** on the device.
219+
#. Observe that notifications with the following values are displayed:
220+
221+
* ``Button released`` when **Button 1** is released.
222+
* ``Button pressed`` when **Button 1** is pressed.
223+
224+
#. Write the following values to the LED characteristic in the **Nordic LED Button Service**:
225+
226+
* Value ``OFF`` to switch the **LED 2** on the development kit off.
227+
* Value ``ON`` to switch the **LED 2** on the development kit on.
228+
229+
.. group-tab:: nRF54 DKs
230+
231+
1. Start the `nRF Connect for Mobile`_ application on your smartphone or tablet.
232+
#. Power on the development kit.
233+
#. Connect to the device from the nRF Connect application.
234+
The device is advertising as "Mesh and Peripheral Coex".
235+
The services of the connected device are shown.
236+
#. In **Nordic LED Button Service**, enable notifications for the **Button** characteristic.
237+
#. Press **Button 0** on the device.
238+
#. Observe that notifications with the following values are displayed:
162239

163-
* ``Button released`` when **Button 1** is released.
164-
* ``Button pressed`` when **Button 1** is pressed.
240+
* ``Button released`` when **Button 0** is released.
241+
* ``Button pressed`` when **Button 0** is pressed.
165242

166-
#. Write the following values to the LED characteristic in the **Nordic LED Button Service**:
243+
#. Write the following values to the LED characteristic in the **Nordic LED Button Service**:
167244

168-
* Value ``OFF`` to switch the **LED 2** on the development kit off.
169-
* Value ``ON`` to switch the **LED 2** on the development kit on.
245+
* Value ``OFF`` to switch the **LED 1** on the development kit off.
246+
* Value ``ON`` to switch the **LED 1** on the development kit on.
170247

171248
.. note::
172249
Once connected, the device will not advertise with the LBS Service UUID until the device is rebooted.

0 commit comments

Comments
 (0)