<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/86270/how-to-extract-gap-device-name-from-the-mesh-advertisement</link><description>Hello, 
 I was wondering if there is a way to extract the &amp;quot;Device name&amp;quot; from the scanned advertisement data published by a model on a different node. I want to display the &amp;quot;Device name&amp;quot; of a node when it sends specific data(eg. when a Generic ON/OFF model</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 12 May 2022 14:07:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/86270/how-to-extract-gap-device-name-from-the-mesh-advertisement" /><item><title>RE: How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/thread/367668?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 14:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbdd91b9-44c4-4f59-aed4-5e76989cacb7</guid><dc:creator>user15475</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think it might be a misunderstanding here regarding device name. The define you mentioned&amp;nbsp;&lt;span&gt;BT_LE_ADV_OPT_USE_NAME, will only work for BLE communication.&amp;nbsp;Payload for mesh packets are used for mesh data, so it won&amp;#39;t contain the device name.&lt;/span&gt;&lt;/p&gt;
[quote user="Susheel"]And yes, I want to extract the Device name from the messages and use them for filtering purposes inside the application.&amp;nbsp;[/quote]
&lt;p&gt;Can you elaborate more on what you mean with filtering?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you like to filter which device the packets are coming from, then it is possible to use the source address(unicast address) that is included in the packet from sender.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/thread/366884?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 10:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddfedac1-a07b-4e69-8e88-b54af2ca578d</guid><dc:creator>user112726</dc:creator><description>[quote userid="15475" url="~/f/nordic-q-a/86270/how-to-extract-gap-device-name-from-the-mesh-advertisement/366862#366862"]Are you using one of our mesh examples from the SDK or is this a custom application?[/quote]
&lt;p&gt;Yes, I am using a modified version of the Light(server/client) example from the SDK.&lt;/p&gt;
&lt;p&gt;As per my understanding, as long as my advertisements are configured to include the &amp;quot;Device Name&amp;quot; in it, it should not matter what models I have in my mesh composition. Please correct me if I am wrong. And yes, I want to extract the Device name from the messages and use them for filtering purposes inside the application.&amp;nbsp;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/86270/how-to-extract-gap-device-name-from-the-mesh-advertisement/366862#366862"]Bluetooth mesh is based on the Bluetooth 4.0 specification. Unfortunately, Bluetooth 5 features are not part of the mesh stack. This is by specification, as published from Bluetooth SIG[/quote]
&lt;p&gt;we are&amp;nbsp;aware of this fact and are planning for a deviation with a proprietary license using the 1M Phy on the side. Does using an extended advertisement affect the Device name packed in the messages in any way? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/thread/366862?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 08:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985fa344-6013-498a-88b4-2a7bf16352ef</guid><dc:creator>user15475</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using one of our mesh examples from the SDK or is this a custom application?&lt;/p&gt;
&lt;p&gt;If I understand you correctly you only want to extract the device name when the device is sending an ON/OFF message?&amp;nbsp;&lt;/p&gt;
[quote user="Susheel"]we are&amp;nbsp;using the standard advertisement for our development now, but will be moving to extended advertising using long range. Will that still be alright?[/quote]
&lt;p&gt;&lt;span&gt;Bluetooth mesh is based on the Bluetooth 4.0 specification. Unfortunately, Bluetooth 5 features are not part of the mesh stack. This is by specification, as published from Bluetooth SIG.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/thread/366814?ContentTypeID=1</link><pubDate>Sun, 08 May 2022 13:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2347f259-bdb1-4031-82ec-9d1c769e1bf4</guid><dc:creator>user112726</dc:creator><description>&lt;p&gt;Hello Susheel, I apologize for the delay. I have moved to a different state and am finally back on my project.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span class="pl-en"&gt;bt_mesh_scan_cb() function in&amp;nbsp;&lt;a title="Scan call back" href="https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/bluetooth/mesh/adv.c" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;&amp;nbsp;code is the same I am using in my project. I have spent some time debugging the code but am still unable to find the device name in the advertisement packet. Please advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;we are&amp;nbsp;using the standard advertisement for our development now, but will be moving to extended advertising using long range. Will that still be alright?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extract GAP device name from the mesh advertisement</title><link>https://test-devzone.nordicsemi.com/thread/360384?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 18:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c199fb-8f65-4187-a0c6-61f3d7caf8df</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;If the advertiser is not doing extended advertising, then the device name should be put into the &lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/gap.html?highlight=bt_le_adv_opt_use_name#c.@39.BT_LE_ADV_OPT_USE_NAME"&gt;scan response data&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;.Can you post some code snippets on how you are getting the scan response data from your scanner callbacks?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>