<?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>Where do the ad data and sd data of Bluetooth LE advertising providers come from? Where do I set this data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113766/where-do-the-ad-data-and-sd-data-of-bluetooth-le-advertising-providers-come-from-where-do-i-set-this-data</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Aug 2024 02:45:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113766/where-do-the-ad-data-and-sd-data-of-bluetooth-le-advertising-providers-come-from-where-do-i-set-this-data" /><item><title>RE: Where do the ad data and sd data of Bluetooth LE advertising providers come from? Where do I set this data?</title><link>https://devzone.nordicsemi.com/thread/497711?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 02:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5ff99c-c3b3-4072-973a-d77ff129c734</guid><dc:creator>Kc Owen</dc:creator><description>&lt;p&gt;Thanks Einar Thorsrud, this helped me a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where do the ad data and sd data of Bluetooth LE advertising providers come from? Where do I set this data?</title><link>https://devzone.nordicsemi.com/thread/497595?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 09:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345f9fb0-e5c7-47df-9c8e-25fbbd1c3613</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to use CAF you can read documetnation for the CAF advertisign module &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/caf/ble_adv.html"&gt;here&lt;/a&gt;. Note the&amp;nbsp;link to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth_services/adv_prov.html#bt-le-adv-prov-readme"&gt;this page&lt;/a&gt; about advertising providers. So if you want to set the advertising/scan response data, you must register a callback with&amp;nbsp;BT_LE_ADV_PROV_AD_PROVIDER_REGISTER and&amp;nbsp;BT_LE_ADV_PROV_SD_PROVIDER_REGISTER.&amp;nbsp;You can see an example of this being done in&amp;nbsp;nrf/samples/bluetooth/fast_pair/input_device/src/bt_le_adv_prov_uuid16.c.&lt;/p&gt;
&lt;p&gt;Without CAF you could reconfigure advertising using for instance a delayable work queue item, or a delay if you have a thread not doing anythign else. There, stop and re-start advertising with parameters to modify the advertising interval. CAF certeinly has its&amp;#39;s uses, but if this is all you want, then I would suggest that as a simpler approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where do the ad data and sd data of Bluetooth LE advertising providers come from? Where do I set this data?</title><link>https://devzone.nordicsemi.com/thread/497543?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 02:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d7289d4-8df8-48d1-83f9-ad4dbf5d1cd8</guid><dc:creator>Kc Owen</dc:creator><description>&lt;p&gt;Thanks for your reply. I mainly want to implement the function of fast advertising for 30 seconds and then slow advertising. Someone recommended that I use CAF module to implement it, so I added CAF module in my project. It does implement this function, but I don&amp;#39;t know how to modify the advertising parameters. If I don&amp;#39;t use CAF advertising module, is there any other way to implement fast advertising for 30 seconds and then slow advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where do the ad data and sd data of Bluetooth LE advertising providers come from? Where do I set this data?</title><link>https://devzone.nordicsemi.com/thread/497471?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 11:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91f9c2be-4341-4b78-a32e-da3099cbe268</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The screenshots are from the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/caf/ble_adv.html"&gt;CAF Bluetooth advertising module&lt;/a&gt;. It is used by the nRF Connect for Dekstop application and a few samples, but not nesesarily recomended for other Bluetooth projects. In most cases the&amp;nbsp;bt_le_adv_prov_get_ad() that you see used in the implementation here is not used and unless there is a particular reason you are looking at this code(?) I woudl ignore it.&lt;/p&gt;
&lt;p&gt;If what you want to do is see how advertisig and scan response packets are usually (ans moste easily) written, you can look at the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/peripheral_nus/README.html"&gt;Zephyr NUS sample&lt;/a&gt; which is qutie minimal (there is also a Nordic NUS sample under nrf which has several advantages, but that demonstrates many other things as well). Therere you can see two&amp;nbsp;bt_data instances made, defining the advertising packet and scan response packet. And both are passed to&amp;nbsp;bt_le_adv_start().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>