<?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>nRF52833 stream notifying BLE packets get stuck frequently</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95198/nrf52833-stream-notifying-ble-packets-get-stuck-frequently</link><description>Hello, 
 we do have a custom board with a nRF52833 to stream sensor data to a mobile app. The board contains a 32 MHz crystal, but not a 32.768 kHz. We are using nRF Connect SDK version 2.2.0 and the Softdevice controller for BLE. Our application is supposed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2023 05:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95198/nrf52833-stream-notifying-ble-packets-get-stuck-frequently" /><item><title>RE: nRF52833 stream notifying BLE packets get stuck frequently</title><link>https://devzone.nordicsemi.com/thread/402734?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 05:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3322e13-2c2c-425f-b23f-1d6aa9ad4996</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Juergen Laude"]&amp;quot;bt_gatt_notify&amp;quot; unfortunately waits&amp;nbsp;until the buffer gets space again, a return code would be nice[/quote]
&lt;p&gt;I agree, this has been asked by few before, so I will check with the R&amp;amp;D team if we can make this purely asynchronous with an error when no buffer is available.&lt;/p&gt;
[quote user="Juergen Laude"]I will test more on using RC for LFCLK especially because of the limitation &amp;quot;&lt;span&gt;DRGN-6362: Synthesized low frequency clock source not tested&amp;quot;.&lt;/span&gt;[/quote]
&lt;p&gt;sounds like a plan. Thanks for letting me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 stream notifying BLE packets get stuck frequently</title><link>https://devzone.nordicsemi.com/thread/402578?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 18:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceb85cba-9106-44cd-923d-7edab7e51197</guid><dc:creator>Juergen Laude</dc:creator><description>&lt;p&gt;Problem almost solved: While movement lots of packets get lost and BLE TX buffer fills-up. &amp;quot;bt_gatt_notify&amp;quot; unfortunately waits&amp;nbsp;until the buffer gets space again, a return code would be nicer. Could&amp;#39;t find a function to request the current fill level, so I have to count from outside.&lt;/p&gt;
&lt;p&gt;Forcing the connection interval to 15 msec (default 30 msec) seems to give more chances to re-transmit lost packets.&lt;/p&gt;
&lt;p&gt;I will test more on using RC for LFCLK especially because of the limitation &amp;quot;&lt;span&gt;DRGN-6362: Synthesized low frequency clock source not tested&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 stream notifying BLE packets get stuck frequently</title><link>https://devzone.nordicsemi.com/thread/402442?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 13:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7916d88-e74c-4d1f-9379-d82bd4adb2dc</guid><dc:creator>Juergen Laude</dc:creator><description>&lt;p&gt;&amp;quot;Stuck&amp;quot; means the call to &amp;quot;&lt;span&gt;bt_gatt_notify()&amp;quot; does not return although the mobile app tries to receive the notifications.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For internal RC for LFCLK we had:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;do we need more?&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 stream notifying BLE packets get stuck frequently</title><link>https://devzone.nordicsemi.com/thread/402397?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 09:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6dd6566-d593-482f-b291-63181e02656d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We need to get more context on what the state of &amp;quot;Stuck&amp;quot; means in this issue.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;div&gt;This went away when using SYNTH instead (maybe this helps for diagnosing the problem).&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Using internal RC for LFCLK might not be good enough for the accuracy of the BLE connection timekeeping. If you are using RC for LFCLK they frequently needs to be calibrated based on the HFCLK Crystal or you need to use SYNTH LFCLK derived from hfclk itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>