<?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>Connection parameters: nRF Connect &amp;amp; finding them in Wireshark</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17674/connection-parameters-nrf-connect-finding-them-in-wireshark</link><description>Hi, 
 Could someone help me about the following questions? 
 Q1: What are the connection parameters set by the Android app nRF Connect? Can I change them? 
 Q2: How can I find out about these parameters via nRF Sniffer, more specifically, the connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2016 08:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17674/connection-parameters-nrf-connect-finding-them-in-wireshark" /><item><title>RE: Connection parameters: nRF Connect &amp; finding them in Wireshark</title><link>https://devzone.nordicsemi.com/thread/67989?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f9b07e-81bf-4e19-aba7-d9082997f4c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Vala:
2. All the transmissions in one &lt;strong&gt;connection event&lt;/strong&gt; is sent in one channel.  The channel is changed on every connection event. This is called channel hopping.&lt;/p&gt;
&lt;p&gt;The delta time only tell the distance between a packet and the next one. It&amp;#39;s not necessary represent the connection interval. The reason is that there are more than one packet per connection event. At least 2 one from master one from slave, there could be more (typical 6 from each side) if the peer has more data to send. The distance between them can be very short, as you already found.
When there is nothing to send, only 2 packets per connection event, and you can see the delta time close to the connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters: nRF Connect &amp; finding them in Wireshark</title><link>https://devzone.nordicsemi.com/thread/67990?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 12:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b2df28-4ab2-408b-b7b9-e8508ee91dad</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vala,&lt;/p&gt;
&lt;p&gt;You can have a look at &lt;a href="https://devzone.nordicsemi.com/blogs/841/bluetooth-smart-and-the-nordics-softdevices-part-2/"&gt;this blog&lt;/a&gt;, it discusses a little bit about the flow control and on how to read the connect request packet.&lt;/p&gt;
&lt;p&gt;Regarding the connection parameter set by nRF Connect, it actually doesn&amp;#39;t set any parameter. Like any Android (and iOS) applications, it can&amp;#39;t control initial connection parameter. The parameters are decided by the operating system. However the application can request a connection parameter update using this &lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestConnectionPriority(int)"&gt;API&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As far as I know the nRFConnect hasn&amp;#39;t provided a way for user to call this.&lt;/p&gt;
&lt;p&gt;In short, the connection parameters are various and user can&amp;#39;t change it, for now.&lt;/p&gt;
&lt;p&gt;You can use the delta time, start to end (start to start is not reliable) to detect the distance between packet and can find which packets are in same connection event and which are not, and can roughly get the interval by doing calculation. But it&amp;#39;s easier to look at the connect request and the connection parameter update packet, if any.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters: nRF Connect &amp; finding them in Wireshark</title><link>https://devzone.nordicsemi.com/thread/67988?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 10:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed081da7-530b-4123-afc1-9b771a2882e7</guid><dc:creator>Vala</dc:creator><description>&lt;p&gt;I checked the Core Specification document to see what the SN and NESN fields mean. That raised a question. In the documents it claims that:&lt;/p&gt;
&lt;p&gt;&amp;quot;The transmitSeqNum and nextExpectedSeqNum parameters shall be set to
zero upon entering the Connection State.&lt;/p&gt;
&lt;p&gt;For each new Data Channel PDU that is sent, the SN bit of the Header shall be set to transmitSeqNum.&lt;/p&gt;
&lt;p&gt;When a Data Channel PDU is sent, the NESN bit of the Header shall be set to
nextExpectedSeqNum.&amp;quot;&lt;/p&gt;
&lt;p&gt;I see in Wireshark that there are some packets from Master to Slave with the right value of delta time (comparing to the connection interval value), a change in the channel and a event number change with respect to previous packet, all showing the start of a new connection, but showing &amp;#39;1&amp;#39; for the SN and NESN fields. Could some one tell me what it means when these fields are set to &amp;#39;1&amp;#39; at the start of a connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters: nRF Connect &amp; finding them in Wireshark</title><link>https://devzone.nordicsemi.com/thread/67987?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 10:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1a2eca0-2071-4818-bd51-96877c58c6ff</guid><dc:creator>Vala</dc:creator><description>&lt;p&gt;OK I guess I found the answers to the question No.3. There are some items that can show the start of the a new connection, and therefore &amp;#39;delta time&amp;#39; showing the connection interval.&lt;/p&gt;
&lt;p&gt;1- The &lt;em&gt;event counter&lt;/em&gt; is updated for each connection.&lt;/p&gt;
&lt;p&gt;2- All the transmissions in one connection is sent in one channel. Therefore, changing the number of the channel shows the termination of a connection.&lt;/p&gt;
&lt;p&gt;Thus, the &lt;em&gt;delta time&lt;/em&gt; of those packets which show a new connection should be checked for connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>