<?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>ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105000/ask-for-advice-on-how-to-evaluate-and-improve-the-connection-quality</link><description>Hi, 
 I am writing to ask for your advice on how to evaluate and improve the connection quality of an application that uses two Bluetooth modules. Each Bluetooth module transmits 210 bytes (MTU) per second via notify to an Android app that is currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2023 09:44:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105000/ask-for-advice-on-how-to-evaluate-and-improve-the-connection-quality" /><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/455252?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 09:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1380c4cc-629c-4a75-a0a4-b66c69231a16</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;Here is a screenshot of the Wireshark trace.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699868342117v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Under&amp;nbsp;Bluetooth Low Energy Link Layer -&amp;gt;&amp;nbsp;&amp;nbsp;Data Header -&amp;gt;&amp;nbsp;Sequence Number, you can see if the packet is a&amp;nbsp;Retransmit or not. I have applied this field as a column, so that I can easily see what packets are retransmissions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the trace you have uploaded, the central is often sending&amp;nbsp;&lt;span&gt;retransmissions, meaning&amp;nbsp;it did not&amp;nbsp;receive the packet from the&amp;nbsp;peripheral. But the sniffer sees that the&amp;nbsp;peripheral actually did send the packet, so it looks like it&amp;#39;s the central that is having issues with&amp;nbsp;receiving packets it should have&amp;nbsp;received.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/455042?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 03:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438a936d-a945-4ccb-9658-6e17c4133acf</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We only can control the Android app,&amp;nbsp;&lt;br /&gt;Could you teach us how to use wireshark evaluate the&amp;nbsp;connection quality?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/454911?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 12:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000e7d21-4511-4815-a4df-fefe6fcbe355</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;A lot of packet retransmits are happening in the log. If you are in a noisy RF environment this could happen. Could also be that the Sleep Clock Accuracy of the AP6256 is not entirely correct. Not sure if you have control over this on the&amp;nbsp;&lt;span&gt;AP6256&amp;nbsp;side, but&lt;/span&gt;&amp;nbsp;you could try to &amp;quot;compensate&amp;quot; for this on the nRF52 side, by setting&amp;nbsp;NRF_SDH_CLOCK_LF_ACCURACY to 1 in sdk_config.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/454838?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 07:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1b1fc7-2724-4c87-99a8-9037b9bd74cb</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I sniffer the one of the connect of AP6256.&lt;br /&gt;&lt;br /&gt;The&amp;nbsp; follow is &lt;br /&gt;nrf52832 advertise&amp;nbsp; -&amp;gt; connect to app -&amp;gt; sent data -&amp;gt; close app -&amp;gt;&amp;nbsp;&lt;span&gt;nrf52832 advertise.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/OneOf2_5F00_NRF52832_5F00_conect_5F00_AP6256_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../OneOf2_5F00_NRF52832_5F00_conect_5F00_AP6256_5F00_2.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/452346?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 15:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fda0e4-94b0-4871-a970-4ea7506f283b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, great, let me know when you get sniffer traces for the&amp;nbsp;&lt;span&gt;AP6256.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/452216?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 10:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa9642bf-d102-4322-a7e5-a96fbd83e67b</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Hi Siguad,&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;br /&gt;The device isn&amp;#39;t byside.So i&amp;nbsp;&lt;span&gt;sniffer&amp;nbsp;&lt;/span&gt;&lt;span&gt;trace&amp;nbsp;between&amp;nbsp;commercial&amp;nbsp;tablet and one of 2 nrf52832s, &lt;br /&gt;i will update once i get the device.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2DeviceConnectToApp_5F00_23231025_5F00_1744.pcapng"&gt;devzone.nordicsemi.com/.../2DeviceConnectToApp_5F00_23231025_5F00_1744.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also record HCI log from the commercial&amp;nbsp;tablets, but i can&amp;#39;t find a software to open it now..&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/btsnooz_5F00_hci_5F00_202310251744.cfa"&gt;devzone.nordicsemi.com/.../btsnooz_5F00_hci_5F00_202310251744.cfa&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ask for advice on how to evaluate and improve the connection quality</title><link>https://devzone.nordicsemi.com/thread/452077?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 19:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e2efe5-f87c-4873-83bf-4e15132c1efe</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]We have limited control over this supplier, so we have already increased the TX power, which has improved the RSSI. &lt;br /&gt;&lt;br /&gt;err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV,m_advertising.adv_handle,4);[/quote]
&lt;p&gt;This is only during avertising. If you want higher tx-power during connection as well, you need to call&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = sd_ble_gap_tx_power_set(&lt;em&gt;BLE_GAP_TX_POWER_ROLE_CONN&lt;/em&gt;&amp;nbsp;,conn_handle,4);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]The current connection quality between the device and nrf52832s is worse than that of commercial tablets with Bluetooth 5.0 specifications, &lt;br /&gt;and it is prone to disconnections and packet loss.[/quote]
&lt;p&gt;Would you be able to provide a nrf sniffer trace of this? This should reveal more about what is happening on-air.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>