<?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>I have query related to BLE Connection Parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77036/i-have-query-related-to-ble-connection-parameters</link><description>Hi, 
 I am working on BLE 5, I have few queries related to connection parameters 
 1. Can you tell what is the min PDU size does nrf52805 BLE stack supports with LE secured (that is considering LTK)? 
 As we know Range for connection interval for nrf52805</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jul 2021 14:15:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77036/i-have-query-related-to-ble-connection-parameters" /><item><title>RE: I have query related to BLE Connection Parameters</title><link>https://devzone.nordicsemi.com/thread/319214?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92427d36-744c-410e-9d4e-6bf281dd221c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;1.&amp;nbsp;When using LE Secure Connections (LESC), both devices&amp;nbsp;generate an ECDH public-private key pair. The two devices will then exchange their public keys and then start computing the Diffie-Hellman key. One of the pairing methods is then used to authenticate the connection. Once the connection is authenticated, the LTK is generated and the connection is encrypted. So in contrast to LE Legacy pairing,&amp;nbsp; the LTK is never exchanged and is therefore not relevant to the minimum PDU size.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just to be sure, I have asked the SoftDevice team if there is some other reason (that I may have overlooked) that the minimum PDU size would increase when using LESC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Like I said,&amp;nbsp;maintaining a sequence cannot be guaranteed so you shouldn&amp;#39;t base anything on the packages coming in sequence. Can you elaborate on what you mean when you say the data comes in bursts?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What are the connection parameters&amp;nbsp;of the devices?&lt;br /&gt;&lt;br /&gt;Why do you need the packages to come in sequence?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. This doesn&amp;#39;t sound right. With BLE, you will always get 100% of the data. If a package doesn&amp;#39;t get acknowledged, retransmission occurs, and if that doesn&amp;#39;t work you will get a time-out and disconnect. You don&amp;#39;t lose data without getting a disconnect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have query related to BLE Connection Parameters</title><link>https://devzone.nordicsemi.com/thread/318848?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 16:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79737b20-792e-42da-9569-816cc17f6ca8</guid><dc:creator>VKT</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for reply,&lt;/p&gt;
&lt;p&gt;1. Actually with PDU size I mean range&lt;/p&gt;
&lt;p&gt;Like for Legacy security PDU size is from 27 to 251 bytes.&lt;/p&gt;
&lt;p&gt;and with LE security minimum PDU size increase due to LTK size&amp;nbsp;&lt;/p&gt;
&lt;p&gt;generally it is 69, what is min PDU size available with nordic ble stack?&lt;/p&gt;
&lt;p&gt;2. Yes, I am reading sensor data based on connection handle only but, I want to maintain sequence as well but facing difficulty in achieving it ?&lt;/p&gt;
&lt;p&gt;Do you have any idea how this can be achieved ?&lt;/p&gt;
&lt;p&gt;I have already tried adjusting connection parameters and intervals.&lt;/p&gt;
&lt;p&gt;But still getting data in Burst, it is not coming in sequence.&lt;/p&gt;
&lt;p&gt;5. my fault actually I mean to say is I am able to receive almost 98.9% data with LE security and 94% data when using Legacy security.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;VKT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have query related to BLE Connection Parameters</title><link>https://devzone.nordicsemi.com/thread/318836?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 15:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:273cc778-2683-44f5-b535-022d74e08610</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;1. What is the minimum PDU size that the nRF52805 BLE stack (S112, S113) supports with LE secured?&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There is no minimum PDU size for packets used for data channel packets, so you can leave that field empty.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When it comes to advertising channel packets, the minimum PDU depends on what kind of advertising is being done. In your ticket, it looks like you are looking to do connectable advertising, in which case the Flags AD (type 0x01) field is required.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;2. What is the minimum connection interval I can use to connect to 4 devices at once, and receive transmitted data from peripherals almost every 10 ms.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This depends on how much data you want to receive from each device. If you select a low connection event length, then you should be able to communicate with all four in 10 ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for maintaining a sequence in a periodic manner from each device, that can&amp;#39;t be guaranteed. Packets can be lost or corrupted (if packets are lost, then they will be retransmitted during the next connection event), and then the data won&amp;#39;t come in the correct sequence. Why do you need the packets to come in a specific sequence? You can check which connection handle the data comes from.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;3. Do you have any guard time parameter that can provide a fixed scan time for each connection?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand this question. Scanning is when the device is searching for advertising packets and doesn&amp;#39;t make sense in the context of a connection.&lt;/p&gt;
&lt;p&gt;When the device is searching for advertising packets, the scan window is how long you scan for each time and the scan interval is how often you use a scan window.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;4. If yes, what is the value of the guard time, and is&amp;nbsp;it guard time editable or fixed?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The scan interval and scan window are both configurable in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/structble__gap__scan__params__t.html"&gt;ble_gap_scan_params_t&lt;/a&gt; structure&amp;nbsp;in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/structnrf__ble__scan__init__t.html"&gt;nrf_ble_scan_init_t&lt;/a&gt;, and passing it to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__ble__scan.html#gac78a15d07a269364b33418ffb1fa8178"&gt;nrf_ble_scan_init&lt;/a&gt;().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;5. Does using LE security or legacy security affect data transmission over the air? I have observed that LE security uses 98.9 Hz and Legacy uses 94.5.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The security has nothing to do&amp;nbsp;with the transmission rate.&amp;nbsp;How exactly have you observed 98.9 Hz? BLE uses the 2.4 GHz ISM band, so this doesn&amp;#39;t sound correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>