<?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>Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107696/using-the-connect-sdk-client-functions-to-access-the-buttonless-dfu-service</link><description>Cant get the target into DfuTarg mode. I’ve written a manual DFU client app using Bluez. We are changing our client app to run on a 52840. Peripheral is also a 52840. 
 I’m able to discover the single buttonless dfu service. Using NULL instead of DFU_SERVICE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jan 2024 15:40:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107696/using-the-connect-sdk-client-functions-to-access-the-buttonless-dfu-service" /><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/466285?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 15:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73aa1e30-a26a-40b5-9448-893d5fa47cd9</guid><dc:creator>BobS</dc:creator><description>&lt;p&gt;Hey Sigurd, I found it.&amp;nbsp; And updated to v2.5.0.&amp;nbsp; Thanks.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;send_data&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;send_data&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x01&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_gatt_write_params&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;write_params&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //.data = 0x01,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .data = send_data,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;func&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;write_callback&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;handle&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0010&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_gatt_write&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;write_params&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/466231?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 13:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fe07f6-a2c1-40ae-becf-a1450e54ce9d</guid><dc:creator>BobS</dc:creator><description>&lt;p&gt;V2.3.0&amp;nbsp; &amp;nbsp;Sorry, I should have mentioned that.&amp;nbsp; I don&amp;#39;t object to updating.&amp;nbsp; I&amp;#39;m developing on a nRF52840 dev kit and will be using the Fanstel BT840F module.&amp;nbsp; Our system will use a Debian board to interface with it, thus the overlay.&amp;nbsp; Not needed in the test project.&amp;nbsp; Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/466203?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db7bfa6-1c4e-44b6-85ca-3613d279e245</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thanks for the project, I will test it and see why it fails to put the device in DFU mode.&lt;/p&gt;
&lt;p&gt;I tried building the project using NCS(nRF Connect SDK) v2.5.0, but I got some build errors. I&amp;#39;m guessing this project was originally written for another version. What version of NCS did you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/466128?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 00:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:304b1d52-01fa-4c63-9dc4-a2225302658b</guid><dc:creator>BobS</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_gatt_5F00_write.7z"&gt;devzone.nordicsemi.com/.../central_5F00_gatt_5F00_write.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Modified for DFU service 0xFE59 on 52840 client.&amp;nbsp; I have a target address hard coded.&amp;nbsp; Fails to put into DfuTarg mode???&amp;nbsp; Thanks for any ideas.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/466033?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 13:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ed4413-bee4-4d6e-843a-8d12d0d52ff4</guid><dc:creator>BobS</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I found it works ok from my phone also.&amp;nbsp; It acts like maybe a memory issue? Maybe a config problem? I cant find this flag:&amp;nbsp;&lt;span&gt;config BT_RECV_CONTEXT mentioned in the description for bt_gatt_subscribe().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also found all the permissions reporting 0x0000 from bt_gatt_dm_attr_next() for all services, including the NUS.&amp;nbsp; But that works, I&amp;#39;m able to read and write to the NUS handles in the central_gatt_write project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And like I mentioned, using NULL in&amp;nbsp;bt_gatt_dm_start() fails to discover anything but the base service.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What do u suggest next?&amp;nbsp; Thanks for the help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bob&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/465981?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 12:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9680d0d3-34fc-44e2-a575-178d740ddbae</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Had a look at the sniffer log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706184814936v2.png" alt=" " /&gt;&lt;br /&gt;This one looks a bit strange.&amp;nbsp;&lt;br /&gt;Testing and comparing with nRF Connect for mobile, I see this value is set to 01 by the master device&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706184894762v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/465875?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 18:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96bf407-471f-4f29-98ed-38dd4b0a6f87</guid><dc:creator>BobS</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fails_5F00_from_5F00_code.pcapng"&gt;devzone.nordicsemi.com/.../fails_5F00_from_5F00_code.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the Connect SDK client functions to access the buttonless dfu service.</title><link>https://devzone.nordicsemi.com/thread/465873?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 17:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24fc4f9-a27c-41c3-88ce-87c1b3c1cd95</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]A Wireshark capture shows that indications are not getting set:[/quote]
&lt;p&gt;Could you save and upload the sniffer trace here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>