<?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>slave latency question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74619/slave-latency-question</link><description>I made all of the functions using nrf52832, s132. Now I want to reduce the current consumption. 
 So, I tried changing the slave latency. It was confirmed that the current consumption was reduced by increasing the slave latency. However, the data reception</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 May 2021 11:19:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74619/slave-latency-question" /><item><title>RE: slave latency question</title><link>https://devzone.nordicsemi.com/thread/307883?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 11:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b04d65ab-8334-48e9-baf3-d65604c81fc1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Seems that you are using write request from central to send data to the peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will be affected by Slave Latency, it&amp;#39;s because the slave wouldn&amp;#39;t know when the central needs to send data and may skip the connection event when the central wants to send data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that if you want high throughput it&amp;#39;s better to use write without response (write command) instead of write request.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have to send data from central to peripheral, I think the best way to reduce power consumption is to control the connection interval. Meaning when you don&amp;#39;t have data to transfer, you can configure the connection interval to a long one, for example once a second. And when you have lots of data to transfer you can configure the connection interval to shorter one, says 20ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also increase the data length so that you can transfer more data in one single packet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slave latency question</title><link>https://devzone.nordicsemi.com/thread/307828?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 06:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2b8a5e-3356-4638-ab14-bbddbd7dbac9</guid><dc:creator>HJLee</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;When I use nRF Sniffer, it seems to be stopped as much as the slave lataency when master -&amp;gt; slave.&lt;br /&gt;Unfortunately, I don&amp;#39;t know much about the ble code.&lt;br /&gt;As you said, how to increase the ble queue so the softdevice doesn&amp;#39;t fall asleep?&lt;br /&gt;Which parts of the code need to be modified?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/slave_5F00_latency1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/slave_5F00_latency2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slave latency question</title><link>https://devzone.nordicsemi.com/thread/307677?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 13:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ae8bbb-c197-4ad0-aa16-4824cd0cb933</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi HJLee,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the slave latency shouldn&amp;#39;t slow down data exchange. In theory when it&amp;#39;s required to send data it should not skip the connection event (slave latency). So some thing must be wrong.&lt;/p&gt;
&lt;p&gt;We may need ot look into how you queue and transfer your data. Please make sure you queue your data as much as possible (until the buffer is full) so that the softdevice knows there will be more data to send instead of going to sleep (and skip the connection event).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may want to take a&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt; sniffer trace &lt;/a&gt;of the communication so we can inspect what happens over the air.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>