<?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>Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63962/unable-to-establish-ble-connection-after-porting-sdk-version-from-11-0-0-to-12-1-0</link><description>I carried out following steps: 
 
 Application was using SDK 11.0.0 for nRF51 SoC 
 Ported SDK version 12.1.0 
 Using secure DFU boot-loader from SDK 12.1.0 (followed all steps mentioned under blog https://devzone.nordicsemi.com/nordic/short-range-guides</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Aug 2020 17:50:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63962/unable-to-establish-ble-connection-after-porting-sdk-version-from-11-0-0-to-12-1-0" /><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/263904?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 17:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ead824c-a554-42ab-b097-a3b1f7381b7d</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;I changed phone and it worked.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your patience and support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/263287?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 15:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6bf2cc3-92a6-4cf9-98e6-2e27c3e37dc9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rahuld,&amp;nbsp;&lt;br /&gt;&amp;nbsp;I had a look at the buttonless example in SDK v12.1 and there was a bug in ble_dfu.c that we don&amp;#39;t enable write property. And only has notify property, I assume you have fixed this ? Otherwise it&amp;#39;s not possible to switch to bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After adding this line&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;char_md.char_props.write = 1;&lt;/p&gt;
&lt;p&gt;in line 91 right under&amp;nbsp; char_md.char_props.notify = 1;&lt;/p&gt;
&lt;p&gt;the buttonless application worked for me. (this is fixed in SDK v12.3)&amp;nbsp;&lt;br /&gt;If it still doesn&amp;#39;t work for you please send us your hex file (bootloader + application) so we can test here.&amp;nbsp;&lt;br /&gt;Please try testing using another phone or using nRF Connect on OP as well.&amp;nbsp;&lt;br /&gt;If possible please move to SDK v12.3 to have more bug fixes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/262866?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 19:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f29a8fad-9765-4eea-a1b0-7169c0df0d8a</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;I am facing exactly same issue with Button-less DFU application&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/connecting_2800_1_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/262849?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 15:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36290190-6d76-4f66-a934-d65a7e0c15b9</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;nrfConnect logs:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20200803_2D00_211754.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20200803_2D00_211805.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/262836?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ae6e639-0b38-4e3a-a82c-0fa844c609fa</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Is this correct behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/262832?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f8250e-ea6e-404a-86db-06a40a91f9b2</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;This is my observation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On starting DFU, device starts boot-loader with &amp;quot;DfuTarg&amp;quot; as broadcast name.&lt;/li&gt;
&lt;li&gt;Message is shown as &amp;quot;Updating device firmware&amp;quot; on nrfConnect&lt;/li&gt;
&lt;li&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/startingDfu.png" /&gt;&lt;/li&gt;
&lt;li&gt;But again start connecting with application.&lt;/li&gt;
&lt;li&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Connecting.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Why it is trying to connect to application again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/262829?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:035040e3-604b-46bc-993f-a4036adc637a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi RahulR,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for late response I was on vacation last week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error showed that it couldn&amp;#39;t connect after trying to switch from application to the bootloader. This mean either the bootloader didn&amp;#39;t work or if the bootloader works but the phone for some reason couldn&amp;#39;t connect. We need to figure out which of the two are the reason of the error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I assume that you have implemented buttonless service in the application and the application can jump to the bootloader ?&amp;nbsp;&lt;br /&gt;Could you check and verify that ? You can test by try writing 0x0104 to the DFU control point characteristic. You need to enable indication before that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you do that the application should switch to the bootloader and you should see the bootloader advertising with name DFUTarg (by default) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you test with the stock example in the SDK (bootloader and application) do you see the same issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/261803?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 13:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135bcc67-321d-4f99-830b-2eee563ed6ab</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Hi &lt;strong&gt;Hung Bui,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can ignore first post and refer this as the latest.&lt;/p&gt;
&lt;p&gt;Device has Application + SoftDevice + Bootloader running. Device is broadcasting correct name.&lt;/p&gt;
&lt;p&gt;On this setup I am getting below failure response during firmware upgrade.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5808.Screenshot_5F00_20200721_2D00_174922.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5086.Screenshot_5F00_20200721_2D00_174928.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/261349?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 11:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7655480-2819-4568-a6ef-618cb7900564</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rahul,&amp;nbsp;&lt;br /&gt;Yes please upload the screenshot at step 9.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your OP you posted the screenshot when you have&amp;nbsp;the error before you can connect. But in the screenshot in your comment , it seems that it can connect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please also check if you get any assert in your application when getting connected.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/261152?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 09:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8e9b94-8209-4416-b1bd-5470567d7de0</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please see my responses to your queries inline below:&lt;/p&gt;
&lt;p&gt;Could you clarify:&amp;nbsp;&lt;br /&gt;- At step&amp;nbsp;6 &amp;quot;&lt;span&gt;Able to flash signed DFU package successfully through&amp;nbsp;&lt;/span&gt;&lt;em&gt;nrfConnect&lt;/em&gt;&lt;span&gt;&amp;nbsp;App&lt;/span&gt;&amp;nbsp;&amp;quot; was it DFU update or you just flashed the application via the SWD inteface ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;=&amp;gt; &lt;em&gt;I flashed secure boot-loader and soft device through SWD interface using nrfConnect Programmer&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Device was broadcasting as &amp;quot;DfuTarg&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I downloaded DFU .zip package through bluetooth using nrfConnect App. I could see updated broadcast message according to application code as expected.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;- At step 9 &amp;quot;&lt;span&gt;On sending BLE command/attempting to DFU, unable to establish BLE connection.&amp;quot; At this moment did you connect to the application or it was the boot-loader advertising ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;=&amp;gt; At this step, application was running and broadcasting, not the boot-loader&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you still want screen shots for each step I will add.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rahul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/261141?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 09:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e43481-163d-4558-ae02-b8fe6be03ec6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rahul,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you clarify:&amp;nbsp;&lt;br /&gt;- At step&amp;nbsp;6 &amp;quot;&lt;span&gt;Able to flash signed DFU package successfully through&amp;nbsp;&lt;/span&gt;&lt;em&gt;nrfConnect&lt;/em&gt;&lt;span&gt;&amp;nbsp;App&lt;/span&gt;&amp;nbsp;&amp;quot; was it DFU update or you just flashed the application via the SWD inteface ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- At step 9 &amp;quot;&lt;span&gt;On sending BLE command/attempting to DFU, unable to establish BLE connection.&amp;quot; At this moment did you connect to the application or it was the bootloader advertising ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please try to add screen shot for each step of 6 7 8 9.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please try to test the softdevice + bootloader and to update an SDK&amp;#39;s example first and try to switch to DFU mode and update another one. Just to make sure the bootloader work properly. After that you can start testing with the buttonless example we have.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I assume the process here doesn&amp;#39;t involve the application in SDK v11. You don&amp;#39;t plan to do DFU from SDK v11 to SDK v12, correct ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/260993?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a5b6b5-62c8-468d-bca2-525afa8ab0f9</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Below are the values for DFU characteristics defined in the application code.&lt;br /&gt;&lt;br /&gt;#define BLE_DFU_SERVICE_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1530&amp;nbsp;&amp;nbsp; /**&amp;lt; The UUID of the DFU Service. */&lt;br /&gt;#define BLE_DFU_PKT_CHAR_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1532&amp;nbsp;&amp;nbsp; /**&amp;lt; The UUID of the DFU Packet Characteristic. */&lt;br /&gt;#define BLE_DFU_CTRL_PT_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1531&amp;nbsp;&amp;nbsp; /**&amp;lt; The UUID of the DFU Control Point. */&lt;br /&gt;#define BLE_DFU_STATUS_REP_UUID&amp;nbsp;&amp;nbsp; 0x1533&amp;nbsp;&amp;nbsp; /**&amp;lt; The UUID of the DFU Status Report Characteristic. */&lt;br /&gt;#define BLE_DFU_REV_CHAR_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1534&amp;nbsp;&amp;nbsp; /**&amp;lt; The UUID of the DFU Revision Characteristic. */&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/260989?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 12:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b56ee5-219b-450a-93b0-97f33f2a7cc4</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;For the first attempt Boot-loader and Softdevice were only flashed into device through nrfConnect Programmer and DFU zip package was downloaded successfully through nrfConnect App&lt;/p&gt;
&lt;p&gt;Below images holds failure logs on attempting to DFU same image second time through nrfConnect App&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20200721_2D00_174922.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20200721_2D00_174928.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to establish BLE connection after porting SDK version from 11.0.0 to 12.1.0</title><link>https://devzone.nordicsemi.com/thread/260987?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 12:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2270309-a27a-45f4-b330-2b59ac9152eb</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Below image contains the characteristics of the device.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_21-Jul-2020-17-40-19_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>