<?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>SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms</link><description>Hi, I am fairly new to the NRF and was wondering if there was a way to increase the sampling rate to 100Hz. I have used the ble_app_uart example to configure this code: 
 
 This is the Header File 
 
 
 This is the C file: 
 In this code, I am trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Sep 2021 14:27:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms" /><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331977?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 14:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3228411-8aba-4ae4-be78-751274902c97</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for saying that - I am glad to hear that you found my comments helpful! :)&lt;/p&gt;
[quote user="PinkSquirrel"]I apologize again for the late reply,[/quote]
&lt;p&gt;No need to apologize at all, we&amp;#39;re happy to help you!&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331937?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 13:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51083f1-eb6e-4dc7-8055-011c745bee6e</guid><dc:creator>PinkSquirrel</dc:creator><description>&lt;p&gt;Thankyou so much this answers everything! I apologize again for the late reply, but I just really want to thankyou for your patience and effort in explaining all of this to me! Seriously, thankyou so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331649?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 09:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b2da93-98ca-4a2a-8824-f2147add907c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="PinkSquirrel"]I have looked into this, and to be honest I am very new to this area so I am having trouble with configuring the settings.[/quote]
&lt;p&gt;It is no problem at all - we were all new to this at some point! This is also good for me to be aware of, so I may try to elaborate further in my answers. Please do not hesitate to ask whenever something should be unclear.&lt;/p&gt;
[quote user="PinkSquirrel"]To my knowledge I believe the minimum value for min_conn_interval is 7.5 ms, but I am still confused as how I would configure this value to match the requirement to obtain 200Hz. I apologize for the hassle!&amp;nbsp;[/quote]
&lt;p&gt;No need to apologize! You are correct that the minimum connection interval for a BLE connection is 7.5 ms.&lt;br /&gt;Look at it this way, a shorter connection interval will give you a lower latency of the received packets, but it will also give you a smaller window in which to transfer larger packets. With larger packets, you will reduce the number of overhead bytes being sent (since each BLE packet contains overhead), and thus you can achieve a significantly higher throughput if you group data together into longer packets, in a longer connection interval - like shown in &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/ble_data_throughput/ble_data_throughput.html"&gt;Table 2 of the SoftDevice throughput documentation&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;So, say for example that you intend to sample 16 bytes worth of SAADC measurements each sampling. Sampling at 200 Hz will produce a notification every 5 ms. Assuming a connection interval of 10 ms we will need to transfer at least 32 bytes each connection event, and we should make sure that our HVN queue at minimum is 2 notifications big, I would at least double this to account for the case where a connection event or two is lost due to noise or poor signal strength. Lets say we set the hvn queue to 6 in this case. Using the Online Power Profiler we can visualize how this exchange will look, and the effects of using Data Length Extension, for example.&amp;nbsp;Without DLE we see that the estimate should be roughly 700 µs for each packet exchange. We know that we will need to send at least 2 packets per connection event (we might have to retransmit some previous packets), and so we could set the connection event length to at least 2.1 ms.&lt;br /&gt;&lt;br /&gt;Next, we make sure that these parameters are configured on both sides of the link (central and peripheral), and then give them a try while we have the sniffer set up to listen in on the connection, to see whether everything is transpiring as expected.&lt;br /&gt;&lt;br /&gt;Give this a try, and let me know what you observe! If anything does not go as expected, please provide the sniffer trace so we may take a look together and see where it went wrong.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331552?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 14:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5ac853-b508-417c-9af4-c8d7a29238a6</guid><dc:creator>PinkSquirrel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms/331511#331511"]Alternatively, you can take the slightly more manual approach - calculate the number of notifications that will be queued in each connection interval (you can use &lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp/2/online-power-profiler-for-ble"&gt;the Online Power Profiler to visualize how many notifications you can fit into each connection interval and how long the connection event length therefore needs to be&lt;/a&gt;).[/quote]
&lt;p&gt;Hi, Thankyou again!&lt;/p&gt;
&lt;p&gt;I have looked into this, and to be honest I am very new to this area so I am having trouble with configuring the settings. To my knowledge I believe the minimum value for min_conn_interval is 7.5 ms, but I am still confused as how I would configure this value to match the requirement to obtain 200Hz. I apologize for the hassle!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331511?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 12:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee605173-ddd0-4e81-9017-1537c5ed364c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="PinkSquirrel"]I changed the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20 for 100Hz and it works fine now. Kinda kicking myself for not knowing such a simple fix of the SDK :/ .... but thankyou so much for the assistance.&lt;/span&gt;[/quote]
&lt;p&gt;I am glad to hear that you were able to achieve 100 Hz samplings and transfer with an increased connection event length! No worries - it is not always straight forward to know which parameters to tweak in order to achieve the desired functionality.&lt;/p&gt;
[quote user="PinkSquirrel"]After 100Hz sampling rate was successful, I changed the Sample Rate to 5ms and it returned the same&amp;nbsp;NRF_ERROR_RESOURCES(Error 19). Would I need to change the min and max conn interval to achieve 200Hz?&amp;nbsp;[/quote]
&lt;p&gt;Yes, this is then just a question of balancing connection event length, connection interval, and notification frequency again., and making sure that the hvx queue is big enough to store the notification queue in between connection events.&lt;br /&gt;&lt;br /&gt;You could either do this analytically by calculating the required throughput of sampling with 200 Hz, and then balancing the connection event length and interval by calculating what they need to be in order to achieve this throughput. If you are taking this approach it might also be helpful to have a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/ble_data_throughput/ble_data_throughput.html"&gt;throughput documentation for the SoftDevice&lt;/a&gt;, since it lists the combination of parameters that achieve the highest throughput (note: no regards to power consumption).&lt;br /&gt;Alternatively, you can take the slightly more manual approach - calculate the number of notifications that will be queued in each connection interval (you can use &lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp/2/online-power-profiler-for-ble"&gt;the Online Power Profiler to visualize how many notifications you can fit into each connection interval and how long the connection event length therefore needs to be&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Lastly, you should check that the desired number of notifications are actually being sent each connection event, either through using the sniffer or counting the count variable from the BLE_GATTS_HVN_TX_COMPLETE event. You should verify this to ensure that there is not a slow buildup of queued notifications which over time might lead to an NRF_ERROR_RESOURCES.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331491?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 11:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3085706a-19cc-419c-a5ca-5ee8b4ca8e80</guid><dc:creator>PinkSquirrel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms/331484#331484"]It is likely not enough to change NRF_SDH_BLE_GAP_EVENT_LENGTH to resolve the NRF_ERROR_RESOURCES error, but when this is resolved it should be no problem at all to achieve 200 Hz sampling frequency. The maximum sampling frequency of the SAADC is 200 kHz (only SAADC, not accounting for BLE transmission of the results).&lt;br /&gt;So I suggest that we first resolve the NRF_ERROR_RESOURCES like discussed in the previous comment, and then move on to increasing the sample rate of the SAADC.[/quote]
&lt;p&gt;Ah I appreciate it! I changed the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20 for 100Hz and it works fine now. Kinda kicking myself for not knowing such a simple fix of the SDK :/ .... but thankyou so much for the assistance. After 100Hz sampling rate was successful, I changed the Sample Rate to 5ms and it returned the same&amp;nbsp;NRF_ERROR_RESOURCES(Error 19). Would I need to change the min and max conn interval to achieve 200Hz?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thankyou!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331484?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 10:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52284ef0-f5e8-43c0-a5cb-196965f18a34</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="PinkSquirrel"]Oh ok thankyou so much again for your help!. I apologize to ask this again though;[/quote]
&lt;p&gt;No need to apologize - I am happy to help!&lt;/p&gt;
[quote user="PinkSquirrel"]If i were to change the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH again would I be able to acheive 200 Hz with a sample rate of 5 ms?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;It is likely not enough to change NRF_SDH_BLE_GAP_EVENT_LENGTH to resolve the NRF_ERROR_RESOURCES error, but when this is resolved it should be no problem at all to achieve 200 Hz sampling frequency. The maximum sampling frequency of the SAADC is 200 kHz (only SAADC, not accounting for BLE transmission of the results).&lt;br /&gt;So I suggest that we first resolve the NRF_ERROR_RESOURCES like discussed in the previous comment, and then move on to increasing the sample rate of the SAADC.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331404?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 03:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a488dc-00de-48d5-b828-373dfd22fce0</guid><dc:creator>PinkSquirrel</dc:creator><description>&lt;p&gt;Oh ok thankyou so much again for your help!. I apologize to ask this again though; If i were to change the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH again would I be able to acheive 200 Hz with a sample rate of 5 ms?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331276?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfa9cdd-a464-47e2-a4af-393a1098a99f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="PinkSquirrel"]Oh thankyou so much for your help.[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="PinkSquirrel"]currently I am able to get a stable connection with a rate of 25 Hertz with a SAADC_SAMPLE_RATE of 40ms&amp;nbsp;[/quote]
&lt;p&gt;Aha, I see, thanks for clarifying!&lt;br /&gt;By stable I assume you mean that it does not reset due to the NRF_ERROR_RESOURCES error? If so, this is merely a symptom of the NRF_ERROR_RESOURCES, and I would think that you do in fact achieve the 100 Hz sampling rate when you set it to 10 ms - it is just that you do not get to see if since the NRF_ERROR_RESOURES immediately triggers a reset.&lt;/p&gt;
[quote user="PinkSquirrel"]Yes my min max conn interval is shown here. Im really sorry but how would I get the count value for BLE_GATTS_EVT_HVN_TX_COMPLETE?&amp;nbsp;[/quote]
&lt;p&gt;You could also try to set the _MIN and _MAX connection interval both to 7.5 ms (or to another predetermined value), so that you know exactly which connection interval you are working with. Right now, the central may choose 7.5 ms all the way up to 25 ms without the application knowing / adjusting to it.&lt;br /&gt;The count value is passed as a part of the received event. You can read it out straight from the BLE_GATTS_EVT_HVN_TX_COMPLETE event when it is received. The count value tells us how many notifications were sent during the last connection interval.&lt;/p&gt;
[quote user="PinkSquirrel"]I changed the&amp;nbsp;&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20. Things brings up another issue; is there a way to check the notification rate in respect to the increase in sampling frequency? To my knowledge I might need to use a sniffer.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Notification rate can be checked with the count variable from the BLE_GATTS_EVT_HVN_TX_COMPLETE event, or indeed with a sniffer. The sniffer is what I would usually recommend because it gives the complete picture with all the details of what is happening on-air during the connection.&lt;br /&gt;Are you familiar with &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;the sniffer tool&lt;/a&gt; already? It is a powerful tool to wield when working with BLE. If you could provide a sniffer trace of the communication between the devices when this happens that would be very useful.&lt;br /&gt;Please note that the sniffer needs to be listening for the peripheral device specifically before the connection is established in order for it to follow into the connection - you can choose which device to listen for specifically in the Wireshark dropdown menu (the default value is to listen for&amp;nbsp;&lt;em&gt;All advertising devices&lt;/em&gt;).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331269?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b140434-421b-4f1d-b348-6d3707911833</guid><dc:creator>PinkSquirrel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms/331237#331237"]Issue 1 regards the sampling rate of the SAADC. Are you unable to achieve the 10 ms sampling period for the SAADC? What sampling rate do you get with your current configuration?[/quote]
&lt;p&gt;Hi, currently I am able to get a stable connection with a rate of 25 Hertz with a SAADC_SAMPLE_RATE of 40ms&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms/331237#331237"]Could you start by increasing your&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20, and which value you are seeing in the&amp;nbsp;&lt;em&gt;count&amp;nbsp;&lt;/em&gt;variable of the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&amp;nbsp;event? Please also include what connection interval was used in the test.[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(7.5, UNIT_1_25_MS)             /**&amp;lt; Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(25, UNIT_1_25_MS)             /**&amp;lt; Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */
#define SLAVE_LATENCY                   0                                           /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(250, UNIT_10_MS)             /**&amp;lt; Connection supervisory timeout (4 seconds), Supervision Timeout uses 10 ms units. */
#define FIRST_CONN_PARAMS_UPDATE_DELAY  APP_TIMER_TICKS(5000)                       /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(30000)                      /**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT    3                                      &lt;/pre&gt;Yes my min max conn interval is shown here. Im really sorry but how would I get the count value for BLE_GATTS_EVT_HVN_TX_COMPLETE?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80020/saadc-sampling-frequency-to-10-ms/331237#331237"]Furthermore, I see from your included code that you are trying to use the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&amp;nbsp;event in the SAADC callback - unless you have registered the SAADC callback as an observer to BLE events deliberately you will not receive this event in the SAADC callback.&lt;br /&gt;Instead, you will receive it in your ble_evt_handler or similar.[/quote]
&lt;p&gt;Oh, I understand now. Thankyou!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Oh thankyou so much for your help. I changed the&amp;nbsp;&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20. Things brings up another issue; is there a way to check the notification rate in respect to the increase in sampling frequency? To my knowledge I might need to use a sniffer.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again thankyou so much for you help!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331237?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 08:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1bbe743-09b8-4805-807d-4498012577ab</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;It seems like you are describing two different issues here which we should deal with separately.&lt;br /&gt;&lt;br /&gt;Issue 1 regards the sampling rate of the SAADC. Are you unable to achieve the 10 ms sampling period for the SAADC? What sampling rate do you get with your current configuration?&lt;br /&gt;&lt;br /&gt;Issue 2 regards the possibility of having all the samples sent over the BLE connection, and the generation of the NRF_ERROR_RESOURCES error. This error is generated whenever you attempt to queue more notifications than there is buffer allocated (configured with&amp;nbsp;&lt;span&gt;BLE_GATTS_HVN_TX_QUE_SIZE_DEFAULT). So in order to resolve this we will need to balance how many notifications that are sent each connection event, how often the connection events occur, and how long the connection events are. Could you start by increasing your&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH to 20, and which value you are seeing in the&amp;nbsp;&lt;em&gt;count&amp;nbsp;&lt;/em&gt;variable of the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&amp;nbsp;event? Please also include what connection interval was used in the test.&lt;br /&gt;&lt;br /&gt;Furthermore, I see from your included code that you are trying to use the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&amp;nbsp;event in the SAADC callback - unless you have registered the SAADC callback as an observer to BLE events deliberately you will not receive this event in the SAADC callback.&lt;br /&gt;Instead, you will receive it in your ble_evt_handler or similar.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving these issues together!&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Sampling Frequency to 10 ms</title><link>https://devzone.nordicsemi.com/thread/331177?ContentTypeID=1</link><pubDate>Sun, 26 Sep 2021 07:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f6aa0c-c4fe-4b76-8718-d757b2c352e7</guid><dc:creator>PinkSquirrel</dc:creator><description>&lt;p&gt;oops, the sampling rate is at 10 not 1 in my actual code. I apologize in advance for the mixup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>