<?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>BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57304/ble-mesh-4-0-send-notification-to-all-gatt-connections</link><description>Hi, 
 
 I have a mesh network with multiple smartphones, which are connected over GATT. If now a light command is triggered on one smartphone, I want to synchronize the other smarthpones, but I am currently unsure where to tackled this problem. I think</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 12:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57304/ble-mesh-4-0-send-notification-to-all-gatt-connections" /><item><title>RE: BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/thread/232821?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 12:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4909539-2083-424b-be90-05545bfb128f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the viewpoint of the application, all nodes in a Bluetooth mesh network are addressed exactly the same way, and you always operate on models. That includes for instance node configuration, where you use the configuration model. Even the provisioner is a &amp;quot;normal&amp;quot; node on the network in this sense.&lt;/p&gt;
&lt;p&gt;GATT is nothing but just another way for nodes to join the network. Just as there are no methods to specifically send messages to nodes connected over the ADV bearer, there are no methods to specifically send messages to nodes connected over the GATT bearer.&lt;/p&gt;
&lt;p&gt;What this all means is, for any mesh node (including smartphones), you communicate to and from that node using the mesh models only. For instance by using access_model_publish(). There is no separate GATT communication channel.&lt;/p&gt;
&lt;p&gt;From your descriptions, it sounds like you ask for the default configuration for the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.0.0%2Fmd_examples_light_switch_README.html"&gt;Light switch example&lt;/a&gt;. Note how among the descriptions for how to test that example, it reads: &amp;quot;you can also press Button 1 on the servers to locally toggle the state of their LED 1, and the status reflecting this state will be sent to the client board.&amp;quot; I suggest that you look into the Light switch example, and in particular the configuration part.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/thread/232734?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 08:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd7d47f-9203-4bd9-9880-dd7f3281b438</guid><dc:creator>SET</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right, I tackle this problem from the transport layer, because I don&amp;#39;t see how I can&amp;nbsp;create a message for GATT on the application layer. In the mesh_gatt.c there is the&amp;nbsp;m_gatt.connections[i], which contains all GATT connections to smartphones, so I think I need somehow this handle on the application layer. When I look in the access layer, I can use access_model_publish(access_model_handle_t handle, const access_message_tx_t * p_message), but this handle is for a model and not for a GATT connection.&lt;/p&gt;
&lt;p&gt;So, how can I send a message directly to a GATT connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/thread/232593?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:093c8025-0443-4dfb-87fb-48b8b390f623</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There still should be no reason to hook into the stack on the transport layer. (Which you do when directly using mesh_gatt_packet_send().) As the smartphone is a proper node in the network you should use the access layer (through the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.0.0%2Fgroup__ACCESS.html"&gt;Access layer AP&lt;/a&gt;I) for sending messages.&lt;/p&gt;
&lt;p&gt;I must admit I still do not quite understand what your use case is, what nodes are involved, and what kind of notification is going from what node to what node and when. Can you elaborate, possibly with a figure / drawing of the network?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/thread/232566?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f3086d-a20e-402c-862a-876015eee0b0</guid><dc:creator>SET</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;I think you missunderstood my question. What I want to achieve is to send notifications to the smartphone from a connected node in the mesh network. The problem here is, that when I send a network PDU with&amp;nbsp;mesh_gatt_packet_send() from the light control examples, I receive the message on the phone, but the additional header data seems not to be included. This header data should include the nid, the ivi etc... How can I generate this additional information for the network PDU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh 4.0 send notification to all GATT connections</title><link>https://devzone.nordicsemi.com/thread/232540?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 12:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821144c8-a846-4b8b-80a4-47d42523e5e2</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Whenever the server model is updated, it will send out a Status message to its configured publish address. (This happens in addition to any Status message sent directly as an answer to an acknowledged Set message..) This means you should have the corresponding client model on the smartphones, all subscribed to the same group as you set as publish address on the server model.&lt;/p&gt;
&lt;p&gt;While there is a predefined group address for all proxy nodes (0xFFFC, all-proxies), there is no such address for &amp;quot;all nodes connected over GATT to a proxy&amp;quot;. This means you must configure the address yourself on each smartphone. (In any case it is a good thing to be able to configure the network as you want, e.g. it will be possible to configure non-GATT devices to subscribe to the Status updates as well.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>