<?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>Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36940/queued-write-service-halts-when-trying-to-write-to-characteristic</link><description>Good afternoon, 
 
 I&amp;#39;m using nRF52840 with SDK15 and Softdevice6.0.0. 
 I&amp;#39;m using the Queued Write Service Module to make use of a characteristic able to receive up to 510bytes of data. 
 I tested the queued write service through the ble_app_queued_writes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Sep 2018 14:50:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36940/queued-write-service-halts-when-trying-to-write-to-characteristic" /><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/147643?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:592917d7-1634-43f0-8c6e-44e140d1a6c2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;span&gt;Writing less than 20bytes on the queued write characteristic is handled in this question:&lt;/span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37970/write-queued-characteristic-with-less-than-20-bytes"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/37970/write-queued-characteristic-with-less-than-20-bytes&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/145578?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 19:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99755708-ddbf-47d2-bede-1890ceb215a0</guid><dc:creator>jloliveira</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any news regarding writing less than 20bytes on the queued write characteristic?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jo&amp;atilde;o&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/145325?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 13:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4712b8-5ada-4c7b-b305-8aaff0d2c3a2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi João,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are right that something is not quite right qhen writing less than 20 bytes, i.e.&amp;nbsp;BLE_QWRS_MAX_CHAR_LEN bytes, to the QWR characteristic. I will need to look into this by doing a sniffer trace and examine the on-air packets.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As for more thatn 510 bytes, as I stated in my previous reply the&amp;nbsp;maximum size of a fixed length GATT Server Attribute( i.e. the size of a characteristic value) is restricted to&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___a_t_t_r___l_e_n_s___m_a_x.html#ga4cf6efe8134f1f771c088ff7d4c1d79a"&gt;BLE_GATTS_FIX_ATTR_LEN_MAX&lt;/a&gt;&amp;nbsp;which is 510bytes. Hence this is the largest characteristic size you can set with the S132 v6.0.0 SoftDevice. So you will not be able to write more than 510 bytes to the QWR characteristic as this is the maximum size of a characteristic value.&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/144929?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 11:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95f6c3b0-8d1a-4cdc-8828-8976d9526c39</guid><dc:creator>jloliveira</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The question is how to write data with less than 20bytes onto the same queued write characteristic, and if it would be possible to write more than 510bytes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jo&amp;atilde;o&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/144581?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 14:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88336fdb-0639-43a5-b3bc-d8b26851b8e6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Joao,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I sincerley apologize for the very late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to send more than 20bytes at the time then you need to increase the&amp;nbsp;BLE_QWRS_MAX_CHAR_LEN.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The maximum size of a fixed length GATT Server Attribute( i.e. the size of a characteristic value) is restricted to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___a_t_t_r___l_e_n_s___m_a_x.html#ga4cf6efe8134f1f771c088ff7d4c1d79a"&gt;BLE_GATTS_FIX_ATTR_LEN_MAX&lt;/a&gt;&amp;nbsp;which is 510bytes. Hence this is the largest characteristic size you can set with the S132 v6.0.0 SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/143708?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 11:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1159c3fa-7458-4294-afd5-f63722483a44</guid><dc:creator>jloliveira</dc:creator><description>&lt;p&gt;Good afternoon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could anyone please look into the questions I made above?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Jo&amp;atilde;o&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Queued Write Service Halts when trying to write to characteristic</title><link>https://devzone.nordicsemi.com/thread/142468?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 16:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7e2e99-e2f7-496d-9ae2-6c7299cff8af</guid><dc:creator>jloliveira</dc:creator><description>&lt;p&gt;Good afternoon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just discovered I was missing the&amp;nbsp;nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle); line in the&amp;nbsp;BLE_GAP_EVT_CONNECTED event which was causing the hanging, so now the problem is solved.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yet, I still need to find a way to write data with&amp;nbsp;&lt;span&gt;&amp;lt;20bytes through the same characteristic. Is there any way to achieve this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, I can only write a maximum of&amp;nbsp;&lt;span&gt;510bytes of data with the Queued Write Service but I would need 1024bytes. How can I accomplish it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jo&amp;atilde;o&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>