<?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>sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17635/sdk-12-buttonless-dfu-without-peer_manager</link><description>Hi, 
 I was trying to integrate a more simple version of the buttonless dfu example on my application. My first step was to get rid of the peer_manager and also the flash (FDS) modules but I don&amp;#39;t know if those are really important...
I want to know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2016 09:15:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17635/sdk-12-buttonless-dfu-without-peer_manager" /><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67821?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 09:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07c70758-2886-43db-a635-7d716ce348b1</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;But this example doesn&amp;#39;t have the same service like the buttonless_example... Well finally I added to my application the same code as in the buttonless_example and it works. But I can&amp;#39;t figure how to get rid of the peermanager, at the moment I will leave it as is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67818?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 08:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda4632e-3487-4577-ae96-4dac87a18104</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s may not be as simple as that. There are dependencies and events you need to handle. I would suggest you to base your application on the experimental_ble_app_blinky. We don&amp;#39;t use peer_manager in that example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67816?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 15:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8520a9f7-0887-4ef2-918b-e521554e91df</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;Well exactly I don&amp;#39;t know... What I&amp;#39;ve done is unchecking the peer_manager (in sdk_config) and commenting the peer_manager_init and pm_on_ble_evt functions... An now I can&amp;#39;t connect to the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67815?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 14:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e518c2c1-3adb-4467-874e-1f63b45dd12c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you point out where the dependency with peer manager is ?
I can see the BLE events are handled by ble_dfu_on_ble_evt() in ble_dfu.c. For example  BLE_GATTS_EVT_WRITE event (when the CCCD is written) is handled in on_write(). No peer manager here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67817?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 13:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a52744-e8a4-481d-a6ef-e25fe7950194</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;Ok, so I need to keep the notification. Then how I can get rid of the peer_manager without messing up the example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67813?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf2984f-2114-48bd-98b8-a41750f4b987</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vea,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s my mistake in the previous response. In the new bootloader in SDK v12 we actually send notification back before we disconnect and start the bootloader.&lt;/p&gt;
&lt;p&gt;So you need to enable CCCD so that the notification can be sent. But I don&amp;#39;t see any reason why peer manager needed here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67814?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 10:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d5ff27-0a7a-447b-b643-0830d8b74cf3</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;Ok, in the buttonless example I removed the check of the peer_manager and also commented the peer_manager related functions... and now I can&amp;#39;t write on the service, also I can&amp;#39;t activate the notifications.
I&amp;#39;m trying to don&amp;#39;t modify the buttonless_DFU service to keep it intact so i don&amp;#39;t have problems later, but I think I will need to modify it...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67820?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 10:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1268d23e-6317-48f0-86ad-f6157a45628b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s not really needed for the application. You can remove that checking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67819?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 09:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80bfdd34-f986-4582-82b6-59f9714b4867</guid><dc:creator>vea45</dc:creator><description>&lt;p&gt;And what is the purpouse of enabling the notification before writting 0x01 to the service? Without the peer manager the notification isn&amp;#39;t working...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sdk 12 buttonless dfu without peer_manager</title><link>https://devzone.nordicsemi.com/thread/67812?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 11:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba6d972-1207-4612-8708-d29b14d4656e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vea,&lt;/p&gt;
&lt;p&gt;For now buttonless application only needs to update the bootloader setting to set s_dfu_settings.enter_buttonless_dfu = true; and then simply trigger a reset after the the writing is finish.
In our experimental_ble_app_buttonless_dfu example can find we start the process by calling enter_bootloader() to store the setting to flash, then we wait for the call back (flash_callback() ) then we call sd_ble_gap_disconnect, and when we disconnected, we reset (BLE_GAP_EVT_DISCONNECTED event in ble_dfu_on_ble_evt() ).&lt;/p&gt;
&lt;p&gt;So no peer manage or fds needed (only fstorage needed)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>