<?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>DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69649/dfu-service-error-while-activating-ble-uart-service</link><description>Hi, 
 I’m running the SDK 17, S132 and I do have the PC10040 board. 
 My embedded bluetooth application will work as a BLE UART, I will send and receive small blocks of data to configure my application. 
 I tested the example SDK_17 / examples /ble_peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2021 08:29:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69649/dfu-service-error-while-activating-ble-uart-service" /><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/288091?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 08:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdbb276f-59ef-4abe-af59-c5fb6657b40f</guid><dc:creator>carloscoelho</dc:creator><description>&lt;p&gt;This ticket for me is closed, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/286836?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 12:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fe3e99f-6dcb-472e-94d5-182e1926a4c3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am glad to hear you got it working. The best of luck with your project &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/286339?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 15:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c0e127-d137-49e0-b41c-249f3082a6f5</guid><dc:creator>carloscoelho</dc:creator><description>&lt;p&gt;Hi Torbjon,&lt;/p&gt;
&lt;p&gt;Thank you for the informations, I was able to load the application with this procedure.&lt;/p&gt;
&lt;p&gt;I will open a new ticket with DFU questions,&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: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/286257?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 10:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c979a4e-0cf3-4952-bd95-7efbe01f5761</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
[quote user="carloscoelho"]I changed the ble_uuid_t definition, I used the same UUID_TYPE and after that I did not have more errors:[/quote]
&lt;p&gt;This might build and run OK, but the problem with this method is that you will advertise the wrong NUS service UUID.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;BLE_UUID_NUS_SERVICE has to go together with the&amp;nbsp;&lt;/span&gt;NUS_SERVICE_UUID_TYPE, otherwise the UUID will not be correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend either removing the&amp;nbsp;&lt;span&gt;BLE_UUID_DEVICE_INFORMATION_SERVICE from the list, or add&amp;nbsp;the UUID&amp;#39;s to the scan response packet and not the advertise packet.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user="carloscoelho"]I loaded&amp;nbsp; dfu/secure_bootloader and ble_peripheral\ble_app_buttonless_dfu, I noticed that the aplication goes to BootLoader during the start and I&amp;#39;m not able to run ble_app_buttonless_dfu.[/quote]
&lt;p&gt;Yes, this is a common issue if you don&amp;#39;t use the bootloader to load the application, but load everything using nrfjprog or SES.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please refer to &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5&amp;#39;"&gt;this article&lt;/a&gt; for some pointers on how to handle this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you have more detailed questions on DFU I recommend opening a new ticket, since I have limited experience with this ;)&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/286065?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 13:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce371550-4c38-4222-b96d-42dc298e6b90</guid><dc:creator>carloscoelho</dc:creator><description>&lt;p&gt;Hi Torbjon,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I changed the ble_uuid_t definition, I used the same UUID_TYPE and after that I did not have more errors:&lt;br /&gt;&lt;br /&gt;static ble_uuid_t m_adv_uuids[] = { {BLE_UUID_NUS_SERVICE, &lt;span style="background-color:#ff0000;"&gt;BLE_UUID_TYPE_BLE&lt;/span&gt; }, {BLE_UUID_DEVICE_INFORMATION_SERVICE, &lt;span style="background-color:#ff0000;"&gt;BLE_UUID_TYPE_BLE&lt;/span&gt;}};&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I loaded&amp;nbsp; dfu/secure_bootloader and ble_peripheral\ble_app_buttonless_dfu, I noticed that the aplication goes to BootLoader during the start and I&amp;#39;m not able to run ble_app_buttonless_dfu.&lt;br /&gt;&lt;br /&gt;I had to create the ZIP file with ble_app_buttonless_dfu an send thru nRF connect aplication.&lt;br /&gt;&lt;br /&gt;Is there a way to set up the boot enviroment to run ble_app_buttonless_dfu after uploading it?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/286041?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 12:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6181477-6c67-4b24-89fc-e0741fb4ebd3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Carlos&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;After calling ble_advertising_init you can access the raw data for the advertise packet and the scan response packet through the m_advertising struct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code snippet below shows how you can output this to the log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
APP_ERROR_CHECK(err_code);

uint32_t adv_len, sr_len;
adv_len = m_advertising.adv_data.adv_data.len;
sr_len = m_advertising.adv_data.scan_rsp_data.len;
NRF_LOG_INFO(&amp;quot;adv_len: %i, sr_len: %i&amp;quot;, adv_len, sr_len);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2) You mean you want a guide on how to create your own UUID?&lt;/p&gt;
&lt;p&gt;This is actually as easy as creating a random one, using a UUID generator such as &lt;a href="https://www.uuidgenerator.net/version4"&gt;this one&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Because of the huge number of possible 128-bit numbers there is no need to register your UUID anywhere.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/285975?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 08:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a8af76-dfe6-466e-9bd2-ae4543005bae</guid><dc:creator>carloscoelho</dc:creator><description>&lt;p&gt;Hi Torbjon,&lt;/p&gt;
&lt;p&gt;Thank you fo your prompt reply&lt;/p&gt;
&lt;p&gt;1) How can I check how much packet I&amp;#39;m using before I add DFU service?&lt;/p&gt;
&lt;p&gt;2) I do copy paste the examples with UUID setup,&amp;nbsp; I do not know what would be the correct UUID setup, do you have a DOC that explains that, &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SERVICE ERROR WHILE ACTIVATING BLE UART SERVICE</title><link>https://devzone.nordicsemi.com/thread/285795?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 11:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09d264a-f664-4051-adfd-37b141c09144</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most likely you are running out of room in the advertise packet, since it is limited to 31 bytes in total. Adding a 16-bit UUID requires an additional 4 bytes (2 for the header and 2 for the UUID).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you check how much of the packet you are using before you add the DFU service UUID?&lt;/p&gt;
&lt;p&gt;As a side note, if you are planning to use the NUS service for a product it is recommended to change the UUID, otherwise you have no way of differentiating your product from all the devices running the standard NUS example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>