<?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>how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25098/how-to-simulate-a-control-point-write</link><description>Hello, 
 I would like to provide an alternate mechanism to start the DFU process. Is it possible to call ble_dfu_buttonless_on_ctrl_pt_write() directly to kick-off the operation? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Sep 2017 12:03:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25098/how-to-simulate-a-control-point-write" /><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98846?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 12:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a12019-0c91-4da0-b41f-bae8171b0256</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You should be able to do something like this is main.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_evt_t ble_evt;
memset(&amp;amp;ble_evt, 0, sizeof(ble_evt_t));

ble_evt.header.evt_id = BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST;

ble_dfu_buttonless_on_ble_evt(&amp;amp;ble_evt, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is that what you are after?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98845?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 00:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d79183fd-0a72-4e1f-814a-cd688f4675bb</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;Lets think of this as a unit test problem. Is it possible to simulate receiving a BT message without writing another application to send the desired message?&lt;/p&gt;
&lt;p&gt;Perhaps all I need to do is call &amp;quot;app_schedule_event_put(ble_evt_t*, ble_dfu_buttonless_on_ble_evt)&amp;quot;? If I used this to send a BLE_GATTS_EVT_WRITE and BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST would this trigger the bootloader?&lt;/p&gt;
&lt;p&gt;It looks like you could call ble_dfu_buttonless_on_ctrl_pt_write() too but where will the responses go? The first option is more desirable since it is closer to the metal.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98844?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 09:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efc75c33-54ca-41a1-836f-01ed680f3e31</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry. I don&amp;#39;t understand. What exactly do you mean by simulating? What is that you want to achieve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98847?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 15:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf2160b-0a99-40b4-8981-e3befc6d12db</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This comment has less to do with the DFU vs. simulating a control point write to kick-off the DFU operation. This ability is also helpful for unit testing.&lt;/p&gt;
&lt;p&gt;Is it possible to simulate a control point write? For the DFU specifically, can I call ble_dfu_buttonless_on_pt_write() directly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98843?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 11:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c25097-2284-4334-abb0-26420c58a3df</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any problem with implementing your own buttonless DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98841?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f7b79d-8aee-42f4-9447-e19b0e8c9d64</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Sorry, my mistake. I thought the tags where visible.&lt;/p&gt;
&lt;p&gt;SDK = v14
SoftDevice = v5.0
Device = s132 pca10040&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to simulate a control point write?</title><link>https://devzone.nordicsemi.com/thread/98842?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 09:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e266f2f9-39b7-4843-8661-295316b563d5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK and SoftDevice are you using? Which bootloader and DFU example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>