You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
@@ -42,8 +42,17 @@ One of these sets is used to handle all Bluetooth Mesh communication, while the
42
42
LED Button Service
43
43
==================
44
44
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.
47
56
48
57
Mesh provisioning
49
58
=================
@@ -68,31 +77,64 @@ The following table shows the mesh light composition data for this sample:
68
77
69
78
The models are used for the following purposes:
70
79
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.
75
95
76
96
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.
77
97
78
98
User interface
79
99
**************
80
100
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.
84
120
85
-
Button 1:
86
-
Send a notification through the LED Button Service with the button pressed or released state.
121
+
.. group-tab:: nRF54 DKs
87
122
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.
90
126
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.
93
129
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.
96
138
97
139
Configuration
98
140
*************
@@ -140,33 +182,68 @@ See :ref:`ug_bt_mesh_model_config_app` for details on how to configure the mesh
140
182
141
183
Configure the Generic OnOff Server model on the root element of the **Mesh and Peripheral Coex** node:
142
184
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.
145
199
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.
148
202
149
203
Testing LED Button Service (peripheral)
150
204
=======================================
151
205
152
206
After programming the sample to your development kit, test it by performing the following steps:
153
207
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:
162
239
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.
165
242
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**:
167
244
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.
170
247
171
248
.. note::
172
249
Once connected, the device will not advertise with the LBS Service UUID until the device is rebooted.
0 commit comments