<?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 implement prepare write request on the master device side</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79724/how-to-implement-prepare-write-request-on-the-master-device-side</link><description>Hi engineer, 
 I have developed a dongle that uses 52840 and is used as the master device. Now the data sent by the dongle to the slave device needs to use prepare write request. 
 
 
 
 This is my code, I call prepare_write() first, then send(use prepare</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Sep 2021 02:03:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79724/how-to-implement-prepare-write-request-on-the-master-device-side" /><item><title>RE: How to implement prepare write request on the master device side</title><link>https://devzone.nordicsemi.com/thread/330554?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 02:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347a16a1-3c1c-465c-a487-4ea3110fb004</guid><dc:creator>ching</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think I did not use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_queued_write.html"&gt;SDK module that handles queued writes&lt;/a&gt;&amp;nbsp;module，&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20653/long-write-from-central-sd130-and-sdk11/80526#80526"&gt;I refer to this link&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try the module you provided&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks, I wish you a happy life and work well.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement prepare write request on the master device side</title><link>https://devzone.nordicsemi.com/thread/330322?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 14:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a83271d-db5c-49df-bfe3-17e8c693bf88</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ching"]I have solved this problem.[/quote]
&lt;p&gt;I do not immediately see any problems. How did you solve the isse, and what does the code look like now? Also, what do you ant to acomplish?&lt;/p&gt;
&lt;p&gt;Note that there is also an &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_queued_write.html"&gt;SDK module that handles queued writes&lt;/a&gt;, which may be relevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement prepare write request on the master device side</title><link>https://devzone.nordicsemi.com/thread/330114?ContentTypeID=1</link><pubDate>Sat, 18 Sep 2021 01:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deafe92c-dd88-4285-bc55-f39dccf3beda</guid><dc:creator>ching</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your answer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yes, I did not show the BLE_GATT_OP_WRITE_CMD command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have solved this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please help me to confirm whether it is correct to use prepare write request like this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks, I wish you a happy life and work well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement prepare write request on the master device side</title><link>https://devzone.nordicsemi.com/thread/330052?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 13:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f387be-922e-40f0-b397-79305eb5680f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not see the code where you send the&amp;nbsp;BLE_GATT_OP_WRITE_CMD command (and get&amp;nbsp;NRF_ERROR_INVALID_PARAM returned) in the code snippet above. Can you point to the exact code snippet where you get this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>