<?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 advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29865/ble-advertising</link><description>Hi everyone, 
 I am trying to advertise data from nrf52832 to a smartphone (nRF Connect). 
 Below are my advertising parameters. 
 ble_adv_modes_config_t options = {0};
options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED;
options.ble_adv_fast_interval</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Feb 2018 11:53:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29865/ble-advertising" /><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/121783?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 11:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d7e5b81-4af9-4930-ac19-19eb225f3c9c</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little confused. Did you manage to fix the problem with the device not advertising longer than 3 minutes?&lt;/p&gt;
&lt;p&gt;The Github repo. with the examples have now been updated, and the examples have been ported to SDK v14.2.0.&lt;/p&gt;
&lt;p&gt;Maybe you could try download the new one, and see if that could help?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/121484?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 08:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0fec70-9dd4-455d-be0f-efbdff28cd1b</guid><dc:creator>Smit</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;nrf5-ble-uart-mpu-data-ready-interrupts.&lt;/p&gt;
&lt;p&gt;Only changes I made to the code is&lt;/p&gt;
&lt;p&gt;#define APP_ADV_INTERVAL 32&lt;br /&gt;#define APP_ADV_TIMEOUT_IN_SECONDS 0&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The device automatically gets disconnected and shows the following errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20180221_2D00_131734.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/121201?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 08:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a673b2-a0af-49f0-969e-1afd14c8032b</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Ok, if you could elaborate a little about what is not working? &lt;/p&gt;
&lt;p&gt;Is the problem still that is advertises for 3 minutes and then stops?&lt;/p&gt;
&lt;p&gt;Did you remember to download the application to your device after changing the parameters?&lt;/p&gt;
&lt;p&gt;Which one of the github examples are you working on?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/120650?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 05:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a305cc-57b0-4aa2-b51f-995dcac48d25</guid><dc:creator>Smit</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I tried it again on my phone after changing the parameters but it didn&amp;rsquo;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119967?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 14:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d7a69d-3576-4dd1-a38d-022777926230</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again Smit. &lt;/p&gt;
&lt;p&gt;I just tested this myself using a nRF52-DK, scanning with our nRF Connect mobile app on an Iphone 7.&lt;/p&gt;
&lt;p&gt;The only modification I did was to change;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define APP_ADV_INTERVAL                 32
#define APP_ADV_TIMEOUT_IN_SECONDS       0       &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And it workes just as expected. The board has now been advertising non-stop for around 20 minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119945?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 13:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4c9415b-6e5b-49dc-947a-a5319966df1a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I will take a look at it and get back to you. &lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119852?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 05:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c62da0d-6d6d-4382-bacd-168ae0760b36</guid><dc:creator>Smit</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;The device does advertise for 3 min but then it stops responding.&lt;/p&gt;
&lt;p&gt;GitHub code &lt;a title="Github" href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;click here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119756?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 14:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc3ba0d-9cfa-4a8b-949a-b685a7ab5dc3</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again Smit.&lt;/p&gt;
[quote user="smitz96"]I tried changing it to APP_ADV_TIMEOUT_IN_SECONDS to 0 for infinite advertising&amp;nbsp;but it doesn&amp;#39;t work.[/quote]
&lt;p&gt;Does that mean that the device doesn&amp;#39;t advertise at all? Or that it is advertising, but stops after 3 minutes?&lt;/p&gt;
&lt;p&gt;Maybe you could upload your code, so that I can test it myself?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119663?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 05:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff0b1d8-ec0d-4b56-8f8b-d6eba609ce9d</guid><dc:creator>Smit</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;Yes, it is set to&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119553?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 14:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ae6af0-c151-403a-8ff3-415616e4ffbd</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Smit.&lt;/p&gt;
&lt;p&gt;When changing the APP_ADV_TIMEOUT_IN_SEONDS to 0, you also need to set the advertising flag to;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Could you check that this is set as explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26497/ble_app_uart-ble-timeout-problem" rel="noopener noreferrer" target="_blank"&gt;this case&lt;/a&gt;? &lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/119467?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 05:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0c82a6-feef-4da5-be8e-47d8608fe723</guid><dc:creator>Smit</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I tried changing it to APP_ADV_TIMEOUT_IN_SECONDS to 0 for infinite advertising&amp;nbsp;but it doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/118714?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 02:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c2fc02-d21f-4a2b-b0f1-4d0f7c6cb028</guid><dc:creator>DinoAU</dc:creator><description>&lt;p&gt;Hi Smit,
I agree with Joakim.  The advertising duration of your peripheral is totally independent of type of phone you are using to connect.  You may be interested to know that there is normally a #define APP_ADV_TIMEOUT_IN_SECONDS in the main.c file that defines the advertising timeout.  The default is 180 which sounds consistent with what you are seeing.  This is based on my experiences with the nRF51422.  Not sure if it is the same for your device.
Good luck.
Dino&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advertising</title><link>https://devzone.nordicsemi.com/thread/118713?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 12:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7560c61f-abe7-41ad-9d44-fa0ec4cbc0c7</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Smit.&lt;br /&gt;
I&amp;#39;m not sure if I understand what your question is.&lt;br /&gt;
The fact that the advertising stops after 3 minutes when using a Motorola og Iphone, but not with a Mi Phone does not make sense. If you are advertising from a nRF52832 device, it shouldn&amp;#39;t be affected by which phone you are holding in your hand.&lt;br /&gt;
Could you elaborate a little about what you problem is?&lt;br /&gt;
Also, we have an &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;advertising/service/characteristic&lt;/a&gt; tutorial series here on devzone that you could take a look at.&lt;br /&gt;
Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>