<?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>NRF52840: How to resend packet immediately when send packet to peer failed?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94481/nrf52840-how-to-resend-packet-immediately-when-send-packet-to-peer-failed</link><description>Hello! This is my problem. 
 
 SDK：SDK17 
 Softdevice : S140 
 Board: nrf52840 
 
 The connect interval is 135ms. But the latency I test is larger than connect interval. So, I used sniffer to find the problem. 
 
 I find the first packet was sent to slave</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Dec 2022 13:12:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94481/nrf52840-how-to-resend-packet-immediately-when-send-packet-to-peer-failed" /><item><title>RE: NRF52840: How to resend packet immediately when send packet to peer failed?</title><link>https://devzone.nordicsemi.com/thread/398771?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 13:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6989be2-5080-433b-8a6f-b22ccbe21e2a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When a packet isn&amp;#39;t received correctly, the master will wait out the connection interval for a response before trying to send a new packet if it doesn&amp;#39;t get a response. After the event lengths was added to the BLE specification, if there is room for an event within the event length of the connection interval, the next event&amp;nbsp;&lt;strong&gt;can &lt;/strong&gt;fit if the same interval if another event fits within your connection interval.&amp;nbsp;The other option would be to mitigate the number of missed packets&amp;nbsp;somehow by increasing TX/RX power and maybe physically reduce the range between the two devices, but these missed packets will still happen now and again, as the BLE specification won&amp;#39;t provide a 100% packet success rate.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>