<?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>Send DFU files from one nrf52833 controller to another nrf52833 controller via BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82390/send-dfu-files-from-one-nrf52833-controller-to-another-nrf52833-controller-via-ble</link><description>I would to like to update a nrf52833 controller via DFU from another nrf52833 controller via BLE. nrf52833 eval kit is able to connect with another nrf52833 custom controller via BLE and found the buttonless service for sending the reset command. Once</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Dec 2021 14:18:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82390/send-dfu-files-from-one-nrf52833-controller-to-another-nrf52833-controller-via-ble" /><item><title>RE: Send DFU files from one nrf52833 controller to another nrf52833 controller via BLE</title><link>https://devzone.nordicsemi.com/thread/342114?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 14:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad61222-541c-42fa-b4ef-546d0d557734</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rakkumuthu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For developing such application I strongly suggest to use a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer&lt;/a&gt; to debug. With the sniffer you can see what transmitted over the air and can greatly help to debug. You only need an extra nRF52 DK/dongle to use a sniffer.&amp;nbsp;&lt;br /&gt;With the sniffer you can also record a standard OTA DFU process from for example Android phone to the device to use a reference to develop your app.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try record the process with the nRF Sniffer and send to us for further investigation.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send DFU files from one nrf52833 controller to another nrf52833 controller via BLE</title><link>https://devzone.nordicsemi.com/thread/342092?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 13:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:401cd72b-3a62-4e72-aa8f-6ca61aacc784</guid><dc:creator>Rakkumuthu</dc:creator><description>&lt;p&gt;Your understanding right. I am referring above documentation and code for my reference. But, with BLE services i got stuck with the command sent and responses reception. I am using below to enable the notification of custom board DFU service control point notification.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t retcode = 0; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; uint8_t au8CcdVal[2] = {0};&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; uint16_t payload_len = 2;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ble_gattc_write_params_t gattc_params;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; au8CcdVal[0] = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;au8CcdVal[1] = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gattc_params.handle&amp;nbsp;&amp;nbsp; = g_sCntrlPntChars.cccd_handle;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gattc_params.len&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gattc_params.p_value&amp;nbsp; = au8CcdVal;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gattc_params.offset&amp;nbsp;&amp;nbsp; = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gattc_params.write_op = BLE_GATT_OP_WRITE_REQ;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retcode = sd_ble_gattc_write(p_ctx-&amp;gt;conn_handle, &amp;amp;gattc_params);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_INFO(&amp;quot;DFU Notif = %d&amp;quot;,retcode);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(retcode);&lt;/p&gt;
&lt;p&gt;I am getting the retcode to 0. For this code, i am getting BLE_GATTC_EVT_WRITE_RSP response in BLE event handler.&amp;nbsp; After that using the above code to send the select command [06 01] which is returning not error with BLE_GATTC_EVT_WRITE_RSP&amp;nbsp; event. How do i extract the response from peer device to validate the offset, maxsize and crc as per the documentation. I am getting the p_ble_evt-&amp;gt;evt.gattc_evt.params.write_rsp.len value as 0 which means no data. Please tell me the how to extract the response from peer device for dfu commands.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send DFU files from one nrf52833 controller to another nrf52833 controller via BLE</title><link>https://devzone.nordicsemi.com/thread/342088?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 13:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:571ae806-bba2-4e85-8128-ca0c758a6d71</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rakkumuthu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that you want to implement DFU master code on nRF52833 to update another nRF52833 via BLE.&amp;nbsp;&lt;br /&gt;I would suggest to have a look at the DFU protocol documentation &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html?cp=8_1_3_5_2"&gt;here&lt;/a&gt;&amp;nbsp;and the BLE specific transport &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport_ble.html?cp=8_1_3_5_2_2"&gt;here&lt;/a&gt;. You can find how you can send the init packet and the actual image there.&lt;br /&gt;&lt;br /&gt;We have an example of doing DFU Master for SPI and UART you can have a look &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h108sjziaxo3m81rkgr1has5r1d72qtu"&gt;here&lt;/a&gt;. It&amp;#39;s not for BLE but I think it can be&amp;nbsp;useful when you develop your own DFU master.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>