<?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>[ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116100/nrf52833-how-to-set-non-connectable-advertizing-using-advertising-library-module</link><description>Hello, 
 In my experimentation to update advertising data during runtime, I am following the example @ 
 
 It is using the ble_advertising.h library module 
 However I would like to set this advertising to non-connectable, non-scannable and non directed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 13:49:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116100/nrf52833-how-to-set-non-connectable-advertizing-using-advertising-library-module" /><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/510314?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea915de-3487-4261-ba7f-02bd351abd45</guid><dc:creator>abhiash_sl</dc:creator><description>&lt;p&gt;I reviewed my code once more.&lt;/p&gt;
&lt;p&gt;I was setting it at the beginning of the function and it was getting overwritten.&lt;/p&gt;
&lt;p&gt;It should be like given below&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;font-size:75%;"&gt; // p_advertising-&amp;gt;adv_params.properties.type =&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;font-size:75%;"&gt; p_adv_params-&amp;gt;properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It works now and shows ADV_NONCONN_IND&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Abhi Ash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/510298?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52decaed-31a5-4a05-a105-81e2ebae05bf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please attach your code where you do the modification.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t see a problem modifying the beacon example to stop advertising, update the advertising content and continue advertising.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/510292?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:06:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0856a591-3a74-46bf-8769-d9990c7d1171</guid><dc:creator>abhiash_sl</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;My requirement is just sending out advertisements in non-connectable mode only. Connectable would be never needed.&lt;/p&gt;
&lt;p&gt;I have tried and used the beacon example however it directly uses the gap API and not the advertising library. &lt;br /&gt;I need to dynamically change the beacon contents.&lt;/p&gt;
&lt;p&gt;I inserted the line below in both fast and slow adv init functions &lt;br /&gt;p_adv_params-&amp;gt;properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/p&gt;
&lt;p&gt;However, sniffing the packet using the nRF Sniffer, the PDU Type is still shown as ADV_IND.&lt;br /&gt;and when I observe in the nRFConnect Android App, I can see the CONNECT option besides.&lt;/p&gt;
&lt;p&gt;May be something is still missing or going wrong&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Abhishek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/510244?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 09:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bca6829-1966-4d91-91b9-a745665aa014</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi AbhiAsh,&amp;nbsp;&lt;br /&gt;You would need to change it in&amp;nbsp;set_adv_mode_fast(),&amp;nbsp;set_adv_mode_slow() as well.&amp;nbsp;&lt;br /&gt;But I don&amp;#39;t see the point of modifying it if you only want to do beaconing. Unless you want to support both switching between connectable and non-connectable.&lt;br /&gt;Have you looked at the beacon example we have ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/510235?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 08:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a47cf6-ebd5-427f-8b61-64021e7e4ff1</guid><dc:creator>abhiash_sl</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In ble_advertising.c,&amp;nbsp; I have added the line below in both ble_advertising_init() and ble_advertising_start() functions however I still see the adverizement type as ADV_IND&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;comic sans ms&amp;#39;, &amp;#39;comic sans&amp;#39;, sans-serif;"&gt;Can&amp;nbsp;you please guide regarding where exactly the change needs to be made to make the advertising non connectable ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;comic sans ms&amp;#39;, &amp;#39;comic sans&amp;#39;, sans-serif;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;comic sans ms&amp;#39;, &amp;#39;comic sans&amp;#39;, sans-serif;"&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;comic sans ms&amp;#39;, &amp;#39;comic sans&amp;#39;, sans-serif;"&gt;Abhi Ash&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/509406?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 10:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca3b97f0-1e2b-483f-80db-462c87f1a635</guid><dc:creator>Hung Bui</dc:creator><description>[quote user="abhiash_sl"]My requirement is to update the contents of beacon (non-connectable) dynamically and how can we implement this using only softdevice APIs ( i.e. without using the advertising library )?[/quote]
&lt;p&gt;I don&amp;#39;t see any reason you can&amp;#39;t change the content of the beacon with the Softdevice APIs.&amp;nbsp;&lt;br /&gt;Please be aware that the &lt;span&gt;ble_advertising&amp;nbsp;is just a firmware library, it uses the Softdevice APIs to do advertising.&amp;nbsp;&lt;br /&gt;You are free to modify the ble_advertising to do what you want. You can&amp;#39;t change the SVC call, but you don&amp;#39;t have to.&amp;nbsp;&lt;br /&gt;As I said, you can simply call&amp;nbsp;sd_ble_gap_adv_stop() to stop the advertising, then change the advertising configuration/data with&amp;nbsp;sd_ble_gap_adv_set_configure() then start advertising again using&amp;nbsp;sd_ble_gap_adv_start()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/509294?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 15:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a9d6c9-7d96-4fdb-95e8-0210f05ca75b</guid><dc:creator>abhiash_sl</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;My requirement is to update the contents of beacon (non-connectable) dynamically and how can we implement this using only softdevice APIs ( i.e. without using the advertising library )?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;If you want to use the ble_advertising library, you would need to modify the library to support non-connectable mode. &amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How is this possible for a normal user ?&amp;nbsp; Some are SV calls.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Is it ok to modify the&amp;nbsp;ble_advdata_t&amp;nbsp; ?&amp;nbsp; i.e. allow more values to the .flags ?&amp;nbsp;&lt;/span&gt;&lt;span&gt;Currently it uses values from ble_gap.h&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE (0x01) /**&amp;lt; LE Limited Discoverable Mode. */&lt;br /&gt;#define BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE (0x02) /**&amp;lt; LE General Discoverable Mode. */&lt;br /&gt;#define BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED (0x04) /**&amp;lt; BR/EDR not supported. */&lt;br /&gt;#define BLE_GAP_ADV_FLAG_LE_BR_EDR_CONTROLLER (0x08) /**&amp;lt; Simultaneous LE and BR/EDR, Controller. */&lt;br /&gt;#define BLE_GAP_ADV_FLAG_LE_BR_EDR_HOST (0x10) /**&amp;lt; Simultaneous LE and BR/EDR, Host. */&lt;br /&gt;#define BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE (BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE | BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED) /**&amp;lt; LE Limited Discoverable Mode, BR/EDR not supported. */&lt;br /&gt;#define BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE (BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE | BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED) /**&amp;lt; LE General Discoverable Mode, BR/EDR not supported. */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Abhi Ash&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module</title><link>https://devzone.nordicsemi.com/thread/509282?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 14:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf82e71-c022-4ec2-a07c-b4d205452752</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Abhi,&amp;nbsp;&lt;br /&gt;For doing non-connectable advertising, it&amp;#39;s suggested to use the softdevice APIs directly, similar to what in the ble_app_beacon example. You can configure advertising using sd_ble_gap_adv_set_configure() and start advertising using&amp;nbsp;sd_ble_gap_adv_start().&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you want to use the ble_advertising library, you would need to modify the library to support non-connectable mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>