<?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>project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11630/project-with-nus-prevents-dfu-from-advertising</link><description>Nrf52/Kiel/SDK11 
 My application was at the point where I needed to add DFU. Following the examples and SDK doc, I added the files and code needed. It would NOT advertise. So I looked at the examples (eg Heartrate with dfu) and noticed the only difference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 11:35:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11630/project-with-nus-prevents-dfu-from-advertising" /><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43957?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 11:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dae66c01-279a-4668-a471-f798aee9fef6</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;ok i&amp;#39;ve found in sdk13 with sd_ble_cfg_set(BLE_COMMON_CFG_VS_UUID, &amp;amp;ble_cfg2, ram_start);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43956?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 09:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c809d2-fbe4-405f-98b0-f64cae64fc5b</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK13 and SDK9, and it&amp;#39;s not there, I guess the config is somewhere else&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43959?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 09:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92707a32-92e6-4dc4-8622-2bd60998a6f7</guid><dc:creator>RohanKadam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That parameter is there in softdevice_enable_get_default_config () which is present in softdevice_handler.c&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK11 S130 PCA10028.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43958?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 17:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b16004c-bbb6-4abc-aee3-a6495826e721</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;this line is not in softdevice_handler.c provided with SDK, can you be more precise? It&amp;#39;s nowhere in the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43960?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 07:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a745312d-53d9-4fe5-82b3-ddc3acb0bb17</guid><dc:creator>RohanKadam</dc:creator><description>&lt;p&gt;You can advertise multiple services with 128-bit UUID by changing following parameter:&lt;/p&gt;
&lt;p&gt;p_ble_enable_params-&amp;gt;common_enable_params.vs_uuid_count  = 1; in softdevice_handler.c&lt;/p&gt;
&lt;p&gt;Change 1 to any number, i.e number of 128 bit UUID services you got.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43955?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 21:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952339ed-f7e2-4e4e-892a-05c21e29eb44</guid><dc:creator>wknight92</dc:creator><description>&lt;p&gt;How exactly do you switch out services?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43953?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 18:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d4043f-7607-4ffb-a88f-54ac4a20ec42</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;The solution is you cant advertise to 32byte uuid&amp;#39;s in the advertising packet. I got around this by removing all the dfu stuff from my main app, and adding a special write charac to the BAS Battery level. When I write a magic number to the charac, it sets NRF_POWER-&amp;gt;GPREGRET = BOOTLOADER_DFU_START, prepare for reset, then NVIC_SystemReset(). This will reboot the device into  the bootloader which will require mobile app to reconnect, but it works seamlessly to the user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43952?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 14:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28910f85-c3ed-49b2-ae23-94ee675eef7a</guid><dc:creator>Dig Kleppe</dc:creator><description>&lt;p&gt;Is there a solution? I have the same problem (NRF51 gcc). I see then DFU when i set the nus UUID to BLE_UUID_TYPE_BLE instead of BLE_UUID_TYPE_VENDOR_BEGIN.
I tried to &amp;quot;fix&amp;#39; it on the android side:
public static final UUID RX_SERVICE_UUID = UUID.fromString(&amp;quot;6e400001-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;);
I cannot find the string  for the modified UUID. Where can i find this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43954?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 17:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9824c9ec-8731-4ac9-9f4e-1d7f0c04a305</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;I believe I found the answer... you cant advertise two 128-bit UUID and all the other services I need. I got around this by controlling which services are advertised. When I need to use the bootloader, I switch out the NUS service and advertise the bootloader instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43951?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 07:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94af6f38-68ff-4884-a0f1-b19bb709952b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Richard, can you please attach the project when you had error with two 128-bit UUID, i can take a look at it. Want to understand more and can give you proper answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43950?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 19:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c34356-3666-4b4f-ae52-f8420bc4938c</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;You may have something. I changed the NUS service UUID to that of a 16bit one and now the new service name appears as well as the DFU. I could refine the my new NUS service more but would just like a real fix to the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43949?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 19:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df542b98-c4ec-401c-9e2a-71c85717271a</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;Hi, I am also facing the same problem, I think if try to added two services with 128 bit uuid the second one is not initialize successfully but with combination of one 128 bit uuid service and multiple 16 bit uuid services it advertising properly. could any one known the answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43948?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 17:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958f45b8-630f-496a-9a25-3b314614532c</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;To be clear, I simply took the example from  examples\ble_peripheral\ble_app_hrs\pca10036\s132_with_dfu\arm5_no_packs, added the NUS service, and the service does not get discovered. I can remove the DFU init from services_init and the NUS is now discovered. SO, when probably should be more correct and say the service is not discovered (which I assumed related to advertising).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43947?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 10:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c30bb8-b97c-4b23-9566-1e5dfd9130fa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It is not possible that the program is not stuck and still not advertising. Which part of advertising are you talking now, is it NUS advertiser or DFU advertiser that is not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43946?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 00:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139dc3b7-417e-4585-9557-1452af6e81ff</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;I started looking at the example app (hrms w/ dfu). I added NUS service to this example and it will not advertise it. only the DFU comes up. No errors are generated!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43945?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 22:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7922fcf-6bde-4fa6-830c-0274b1b9dfac</guid><dc:creator>Richard </dc:creator><description>&lt;p&gt;I was sure I checked this, but it turns out I was wrong. The NUS service is failing on the call to sd_ble_uuid_vs_add with a NRF_ERROR_NO_MEM error. Now where do I go?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: project with NUS prevents DFU from advertising</title><link>https://devzone.nordicsemi.com/thread/43944?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 06:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa40cbb-b168-4f52-acd0-0b3ed3fde2c8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You have to debug your application to see why it is not advertising, i am guessing that some condition fails and your system is restarting. Please follow &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this&lt;/a&gt; to see if your NUS app is asserting with APP_ERROR_CHECK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>