<?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>Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52369/sending-a-message-to-a-ble-mesh-node-through-advertising</link><description>HI, I know about the proxy feature/nodes and the way in which a smartphone can connect to a proxy node and send a message. However, in the mentioned method we need to connect to a node (which must have the proxy feature)! 
 I was wondering, can I use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2020 02:29:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52369/sending-a-message-to-a-ble-mesh-node-through-advertising" /><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/272639?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 02:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3520035f-33d4-41e3-b0e5-99c67df29da0</guid><dc:creator>Meg</dc:creator><description>&lt;p&gt;Any new information regarding this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/212447?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 06:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:402865ef-84cb-4835-870b-2b0564b60258</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m no expert on the application development side of things, so I&amp;#39;ll need to talk to our mobile developers again about this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll get back to you with more information.&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/211755?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 09:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc82b3a5-7156-4ead-8759-43f6ebd792ee</guid><dc:creator>NORD44</dc:creator><description>&lt;p&gt;Thanks a lot,&amp;nbsp;&lt;span&gt;Joakim.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Alright, then&amp;nbsp;&lt;/span&gt;&lt;span&gt;let&amp;#39;s say it&amp;#39;s possible, at this point,&amp;nbsp;&lt;/span&gt;&lt;span&gt;I think what I would do is to develop, for example, the Android version of the &amp;quot;&lt;strong&gt;Light switch client&lt;/strong&gt;&amp;quot;.&lt;br /&gt;&lt;br /&gt;I mean&amp;nbsp;nRF mesh app is used to provision&amp;nbsp;un-provisioned devices as well as connect to proxy nodes using GATT. So, if I want to use the ADV bearer to send a message I need to provision the smartphone itself in the first place, and I am not sure&amp;nbsp;if a provisioner can provision itself or not, or in this case, I can use &amp;quot;Android-nRF-Mesh-Library&amp;quot; to provision other devices as well as the smartphone itself or not.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So maybe developing something like a&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;strong&gt;Light switch client&lt;/strong&gt;&lt;span&gt;&amp;quot; android app, could be the easier solution, so that the smartphone which runs the client app&amp;nbsp;is provisioned by the nRF mesh app along with other devices and a then the above-mentioned android client app could use the ADV to send a message to all nodes.&lt;br /&gt;&lt;br /&gt;Could you shed some light on that? still possible?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Thanks again.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/211734?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1ed9f5-98ab-4fd6-ad1c-189cf94e6f6e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>[quote user="NORD44"] I am saying that it is possible to develop an app (implementing the whole BLE mesh stack&amp;nbsp;network layer and up), so that what I said would become possible, am I right? can you confirm that?[/quote]
&lt;p&gt;&amp;nbsp;That should be possible!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got some information from one of our mobile developers. He said that Android devices can do low latency scan, so it is possible to modify the Android-nRF-Mesh-Library for creating the ADV bearer feature.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We removed the BLE transport from the library so that users can implement GATT or ADV around it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately we don&amp;#39;t have any example code on how to achieve this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/211722?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba709956-8937-43ed-8883-02cadfde6339</guid><dc:creator>NORD44</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Joakim,&lt;br /&gt;&lt;br /&gt;Thanks a lot for your response, I found it helpful, however, I have to say&amp;nbsp;&lt;/span&gt;&lt;span&gt;I am aware of the answer in the FAQ in the Bluetooth website that you mentioned and most of your points. Also, I understand that data packets in the BLE mesh are different from the regular BLE.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You wrote and it is already written in another answer in this forum that:&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;quot;Neither iOS or Android support BLE mesh &lt;strong&gt;directly&lt;/strong&gt;. However, you can&lt;strong&gt; implement the high level mesh protocol (network layer and up) in the application&lt;/strong&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also wrote: &amp;quot;This is for example done in the&amp;nbsp;nRF Mesh app&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My question is, then is it possible to develop an app that does the job through advertising? and not exactly like nRF mesh app.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;It seems that nRF Mesh app uses the &lt;strong&gt;GATT bearer&amp;nbsp;&lt;/strong&gt;and as a result, it must &lt;strong&gt;connect to a node with the proxy feature enabled&amp;nbsp;&lt;/strong&gt;to be able to send a message to a BLE mesh network, and at this point, this mentioned proxy node uses the &lt;strong&gt;Advertising bearer&amp;nbsp;&lt;/strong&gt;to transfer the message to the other nodes!&lt;br /&gt;&lt;br /&gt;However, I am interested in sending directly a message to a mesh network using the&amp;nbsp;&lt;strong&gt;Advertising bearer&lt;/strong&gt;&amp;nbsp;and without connection. I know this is not supported directly in the&amp;nbsp;iOS or Android, but I am saying that it is possible to develop an app (implementing the whole BLE mesh stack&amp;nbsp;network layer and up), so that what I said would become possible, am I right? can you confirm that?&lt;br /&gt;&lt;br /&gt;Thanks in advace&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/211705?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bdce6af-df58-4cd2-aae3-314f30539b83</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Neither iOS or Android support BLE mesh directly. However, you can implement the high level mesh protocol (network layer and up) in the application, as indicated the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.bluetooth.com/bluetooth-technology/topology-options/le-mesh/mesh-faq"&gt;Bluetooth SIG mesh FAQ&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;&lt;em&gt;What do I need to build a Bluetooth mesh networking smartphone application?&lt;/em&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;em&gt;To develop smartphone or tablet applications for use with Bluetooth mesh networking products, if your mobile operating system provides suitable APIs which allow an application to meet the requirements relating to Bluetooth LE advertising packets defined in the Mesh Profile specification, you should use the advertising bearer. The advertising bearer is the preferred bearer in all cases. Where the advertising bearer cannot be used, you may use the Bluetooth mesh proxy protocol to enable communication with the mesh network via a proxy node. The proxy protocol can be implemented on top of standard Bluetooth Low Energy GAP and GATT APIs.&lt;/em&gt;&lt;/blockquote&gt;
&lt;p&gt;This is for example done in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Mesh/GetStarted" rel="noopener noreferrer" target="_blank"&gt;nRF Mesh app&lt;/a&gt;&amp;nbsp;(and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library"&gt;IOS-nRF-Mesh-Library&lt;/a&gt;&amp;nbsp;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library"&gt;Android-nRF-Mesh-Library&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bluetooth Mesh is not a network that sends normal advertising packets. It is true that it uses advertising packets to communicate, but it sends special advertising data that contains mesh packets. It has built other protocols on top, and the actual data is formatted differently from that of normal BLE advertising packets.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you take a look at the&amp;nbsp;&lt;a title="Beaconing example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.2.0/md_examples_beaconing_README.html?cp=5_2_3_2"&gt;Beaconing example&lt;/a&gt;&amp;nbsp;in the nRF5 SDK for Mesh, this example&amp;nbsp;&lt;/span&gt;registers a&amp;nbsp;RX callback that is&amp;nbsp;invoked for all packets that are processed by the mesh after the mesh&lt;br /&gt;itself has processed them.&lt;/p&gt;
&lt;p&gt;Hence, any regular advertisment packets that does not have the mesh advertisment type will trigger this callback. So once you registered the callback and&amp;nbsp; receive a advertisment packet, you&amp;nbsp;will have to create a mesh packet and publish it to a unicast or group address. Unless you&amp;#39;re only going to turn on or off a light based on the beacon data you will have to create your own client and server model that pusblish and subscribe to the beacon data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See the &lt;a title="Creating new models" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.2.0/md_doc_libraries_how_to_models.html?cp=5_2_2_3_0"&gt;Creating new models&lt;/a&gt;&amp;nbsp;in the nRF SDK for Bluetooth Mesh documentation.&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a message to a BLE mesh node through advertising.</title><link>https://devzone.nordicsemi.com/thread/211128?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 07:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f38ce974-605e-4831-93fb-481b874dbf59</guid><dc:creator>NORD44</dc:creator><description>&lt;p&gt;Any idea?&lt;br /&gt;let me put it in another way&lt;br /&gt;A smartphone cannot be a node in a BLE mesh network, however, it can send a message to some of the nodes! (just proxy nodes and not all of them)&lt;br /&gt;Is there a way that we can send message to ANY node by a smartphone through advertising and it this case the smartphone does not have to be provisioned as a node but it is given the NetKey and all is needed.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>