<?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>NRF_ERROR_DATA_SIZE &amp;amp; sd_ble_evt_get with Streaming Data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22944/nrf_error_data_size-sd_ble_evt_get-with-streaming-data</link><description>Using nRF52; S132 v4.0.3 
 I&amp;#39;m getting NRF_ERROR_DATA_SIZE error return from sd_ble_evt_get and event length from call is 20 which is smaller than my buffer so it shouldn&amp;#39;t be an event &amp;gt; buffer issue. This started happening with 100Hz update of a 20byte</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 07:53:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22944/nrf_error_data_size-sd_ble_evt_get-with-streaming-data" /><item><title>RE: NRF_ERROR_DATA_SIZE &amp; sd_ble_evt_get with Streaming Data</title><link>https://devzone.nordicsemi.com/thread/90267?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 07:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e89564-7325-45dd-bf4b-65a2fbd3fdd2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Good that you found the solution, but isn&amp;#39;t it true we do the same thing in our SDK ? We have a loop in the event handler intern_softdevice_events_execute() to get all the event out. I don&amp;#39;t really understand why it could be a problem. Note that if the application failed to pull the event out, the softdevice will start NACKing the peer device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_DATA_SIZE &amp; sd_ble_evt_get with Streaming Data</title><link>https://devzone.nordicsemi.com/thread/90266?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 19:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2889db-b182-47df-ae55-d895d36b55a2</guid><dc:creator>jpelo</dc:creator><description>&lt;p&gt;Fixed this issue; user error. Bug in the way I was looping in the event handler and getting ble events from stack. Problem showed up with more ble traffic because it causes multiple events to be queued up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_DATA_SIZE &amp; sd_ble_evt_get with Streaming Data</title><link>https://devzone.nordicsemi.com/thread/90265?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 16:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:687ec544-ddd4-47a9-bd45-3a189dcf1bf5</guid><dc:creator>jpelo</dc:creator><description>&lt;p&gt;Yes definitely strange.&lt;/p&gt;
&lt;p&gt;I am a peripheral. I have a data characteristic that is 20bytes that I am updating at 100hz. When the central has subscribed to notifications for this data characteristic is when I get this issue. The issue shows up when the central writes to a different characteristic that is also 20bytes. The streaming at 100hz runs fine (data coming into central without issue). From my central, I can read other characteristics and subscribe to other notifications. But as soon as i write this other 20 byte characteristic, i get the nrf_error_data_size error. When streaming on the data characteristic at a slower speed, I can write to the other 20 byte characteristic without problem/error.&lt;/p&gt;
&lt;p&gt;i did see this error come up earlier with slow connection parameters and quickly toggling subscribe/unsubscribe (rapid mouse click subscribe/unsubscribe on central). volume of events?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ERROR_DATA_SIZE &amp; sd_ble_evt_get with Streaming Data</title><link>https://devzone.nordicsemi.com/thread/90264?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 15:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58f2044e-7b97-4b0b-af94-9d48b024d212</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It sounds a little bit strange that the function complains about the buffer size when it should not be a problem. Could you make a simple program that can demonstrate the issue ? I assume you have the issue on the central side ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>