<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node</link><description>Is nRF Mesh app support feature that send customize data/command to node? The goal is to transmit data from phone to node, where it will be processed and used to trigger actions. Besides that, how to check what’s the roles of node currently running? Those</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 08:27:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node" /><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/487440?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 08:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1efad0-81ac-4881-b082-04d1617baa41</guid><dc:creator>chunjie</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the reply. &lt;span&gt;I will review&amp;nbsp;&lt;/span&gt;&lt;span&gt;those documents&lt;/span&gt;&lt;span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="133998" url="~/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node/487400"]Unable to pull down.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7624.Image-_2800_2_2900_.png" alt=" " /&gt;[/quote]
&lt;p&gt;Any solution on this? FYI, my phone model is iPhone 14 pro,&amp;nbsp;IOS version 17.5.1.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/487435?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 08:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c054c1-f434-43ea-a0ba-be005d24077f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="chunjie"]Other than that, how does the message structure of Bluetooth mesh look like? From what I know, it contains&amp;nbsp;1-3 bytes opcode. What is the full message sent to node when we tap ON&amp;nbsp;in GenericOnOff Server?[/quote]
&lt;p&gt;This is defined in the specification for Bluetooth Mesh, please download it for free here:&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/specs/?types=specs-docs&amp;amp;keyword=mesh&amp;amp;filter="&gt;https://www.bluetooth.com/specifications/specs/?types=specs-docs&amp;amp;keyword=mesh&amp;amp;filter=&lt;/a&gt;&amp;nbsp;. Here you will find how various Mesh messages are defined.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a general explanation of how messaging works from our documentation:&lt;/p&gt;
&lt;p&gt;API: for Bluetooth Mesh messaging- &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/mesh/msg.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/mesh/msg.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From Bluetooth Mesh Network Data flow - &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/architecture.html#bluetooth_mesh_network_data_flow"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/architecture.html#bluetooth_mesh_network_data_flow&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bluetooth Mesh uses Bluetooth Low Energy as a bearer or transport for its messages. The messages are encapsulated in either Bluetooth LE advertisements or GATT packets, referred to as advertising bearer or GATT bearer. The Bluetooth Mesh message provides a set of structures, macros, and functions used for preparing message buffers, managing message, and acknowledged message contexts.&lt;/p&gt;
&lt;p&gt;In a typical data flow within a mesh network, the process begins when an application calls a model’s publish function. The model includes a message in a publishing packet with an opcode and sends it to the access layer. The access layer fetches the necessary publish parameters, like destination address, encryption keys, and time to live value (TTL value), and passes the packet to the transport layer. The transport layer then encrypts the message with the selected application key, and splits the message into segments if necessary. Each segment is passed to the network layer, which attaches a network header with a sequence number and encrypts the packet with the network key before passing it to the Bluetooth LE Controller. The Bluetooth LE Controller includes the network message in an advertisement packet, and schedules a time slot for the packet to be broadcasted.&lt;/p&gt;
&lt;p&gt;From Bluetooth Mesh Concepts - &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/concepts.html#network_topology_and_relaying"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/concepts.html#network_topology_and_relaying&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bluetooth Mesh is a broadcast-based network protocol, where every device in the network sends and receives all messages to and from all devices within radio range. The advertisement packets are picked up by nearby mesh devices and handled like other Bluetooth LE advertisement packets. The mesh packets are represented with a unique AD (advertisement data) type and added to the advertisement packet payload.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/487400?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 01:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff693ba-73bd-426e-85c1-68f0e99dd721</guid><dc:creator>chunjie</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Unable to pull down.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7624.Image-_2800_2_2900_.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Other than that, how does the message structure of Bluetooth mesh look like? From what I know, it contains&amp;nbsp;1-3 bytes opcode. What is the full message sent to node when we tap ON&amp;nbsp;in GenericOnOff Server?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/487301?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 11:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f024f8ad-afda-441e-aa1f-202f1725cf08</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had a chat with the developers regarding the Features field you highlighted in the nRF Mesh app:&lt;/p&gt;
&lt;p&gt;To see what features a node supports you will need to go to&amp;nbsp;&lt;em&gt;Element 1 / Config Server model&lt;/em&gt; and then Pull to refresh to read the states of each of the features for that nodes. For Android it looks to be automatically fetched after provisioning, while for iOS you need to read them manually. The app only reads Default TTL and the Composition Data when it enters that screen for the first time (or when they were not read before).&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/486772?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 06:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97062129-132d-4a3a-9820-b1cb09810832</guid><dc:creator>chunjie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node/486692"]By this do you refer to the steps in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/chat/sample_description.html#configuring-models"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/chat/sample_description.html#configuring-models&lt;/a&gt;?[/quote]
&lt;p&gt;Yes, I have read through the doc and played with the sample. But the doc do not provide steps to configure the Control field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/486692?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525dabbd-15d4-490c-b8fa-bf59895e401b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="chunjie"]ay I know how to use the&amp;nbsp;&lt;span&gt;access_model_publish() function and where can I find the API documentation for this?&lt;/span&gt;[/quote]
&lt;p&gt;access_model_publish() is specifically for the nRF5 for mesh SDK so it won&amp;#39;t be relevant for your application. I were referring to the other discussion more in terms of how to use the application to send vendor models, but I see that it might be misleading to refer to the other discussion as a whole. In general the Bluetooth Mesh API can be found here&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/index.html#bluetooth-mesh"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/index.html#bluetooth-mesh&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="chunjie"] configured the Control field in the nRF Mesh app[/quote]
&lt;p&gt;By this do you refer to the steps in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/chat/sample_description.html#configuring-models"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/chat/sample_description.html#configuring-models&lt;/a&gt;?&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="chunjie"]Yes I have configured Bluetooth Mesh configuration through proj.conf but the node features still unable to show in app. My configuration is as below:[/quote]
&lt;p&gt;Allright, thank you for verifying.&lt;/p&gt;
&lt;p&gt;I will discuss this with the developers further before the weekend&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/486559?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 06:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da63e9c8-7a33-4c48-862b-7314d59d7d74</guid><dc:creator>chunjie</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node/486462"]This discussion talks about how you can send customized vendor messages to a node: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96700/how-to-send-messages-from-nrf-mesh-app-to-nrf52840" data-contentid="a9c4433d0c7743a3973235b93a198a00" data-contenttypeid="46448885d0e64133bbfbf0cd7b0fd6f7" class="ui-contentpeek internal-link"&gt;How to Send messages from nrf mesh app to nrf52840?&lt;/a&gt;&amp;nbsp;[/quote]
&lt;p&gt;I have gone through the post you shared. May I know how to use the&amp;nbsp;&lt;span&gt;access_model_publish() function and where can I find the API documentation for this? Besides, Edvin mentioned that&amp;nbsp;there should be a field that says &amp;quot;Controls&amp;quot;, where you can enter an Opcode and parameters. I flashed my board with Chat sample and configured the Control field in the nRF Mesh app. Nothing is shown in the terminal after I clicked send. Can you provide me some guidance on how to use this feature. My configuration of control field is as image below:&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4300.Image-_2800_1_2900_.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/111608/bluetooth-mesh---send-customize-data-command-to-node/486462"]As far as I know you will have to configure this through the prj.conf as suggested here: &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/configuring.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/configuring.html&lt;/a&gt;&amp;nbsp;Do you see the node features in the app if you enable the node roles?[/quote]
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Yes I have configured Bluetooth Mesh configuration through proj.conf but the node features still unable to show in app. My configuration is as below:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Bluetooth Mesh configuration&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_RELAY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_FRIEND&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_TX_SEG_MAX&lt;/span&gt;&lt;span&gt;=10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_PB_GATT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_GATT_PROXY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_DK_PROV&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh - Send customize data/command to node</title><link>https://devzone.nordicsemi.com/thread/486462?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 13:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c7048a7-7996-46da-a24f-c1e8d1c4e097</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Is nRF Mesh app support feature that send customize data/command to node?[/quote]
&lt;p&gt;This discussion talks about how you can send customized vendor messages to a node: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96700/how-to-send-messages-from-nrf-mesh-app-to-nrf52840"&gt;How to Send messages from nrf mesh app to nrf52840?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""] Besides that, how to check what’s the roles of node currently running? [/quote]
&lt;p&gt;As far as I know you will have to configure this through the prj.conf as suggested here: &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/configuring.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/bt_mesh/configuring.html&lt;/a&gt;&amp;nbsp;Do you see the node features in the app if you enable the node roles?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>