<?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>Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101448/issues-on-capturing-ble-packets-on-wireshark</link><description>Hi! I&amp;#39;m developing a BLE communication between an nRF52832 DK development kit (GATT server developed in Zephyr ) and a Raspberry Pi (GATT client) to transmit notifications of 7 different characteristics. To verify the exchanged BLE packets I&amp;#39;m using an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2023 14:56:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101448/issues-on-capturing-ble-packets-on-wireshark" /><item><title>RE: Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/thread/434510?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba9c8b3-cefc-474e-bb25-e66782898b64</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;In any case, this is slighly out of the scope or our support. But as far as I know the sniffer should display all packets it receives.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/thread/434506?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e492293b-6192-4b08-ac9e-5297ac838e0e</guid><dc:creator>andreribeiro423</dc:creator><description>&lt;div class="lRu31"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I added the config &amp;quot;CONFIG_BT_GATT_CACHING=n&amp;quot; in nRF prj.conf but it didn&amp;#39;t solve the Wireshark issue.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;The Heart Rate, Temperature and Battery Level Measurement packets still do not appear.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;In the Bluetooth ATT Server Attributes the following appears:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="ZSCsVd"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/att_5F00_disable_5F00_cache.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Where the UUID &amp;quot;0xa009&amp;quot; corresponds to my custom GATT server. The discover don&amp;#39;t recognize the characteristics and descriptors of the service.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/thread/434489?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a7acc80-04c0-4935-a921-126ae81f98ee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, it may be that the raspberry pi is smart and use GATT caching, then it will read the hash of peer database without performing a discovery to find if it&amp;#39;s changed or not since last connection, unfortunately the Wireshark is not smart enough to know that it should use previous nrf sniffer connections to know what the current database may be. You can disable this functionality by:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_GATT_CACHING"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_GATT_CACHING&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/thread/434480?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 13:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437a7af5-ca6e-48b0-96c5-7d90163cea0b</guid><dc:creator>andreribeiro423</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I&amp;#39;ve done several logs and this problem occurs on almost all of them.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Only two or three times this problem did not happen.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;In these situations I commented and uncommented the following config in nRF prj.conf: &amp;quot;CONFIG_BT_DIS=y&amp;quot;.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I don&amp;#39;t need this service but I don&amp;#39;t understand what this could be influencing, because commenting and uncommenting that line ends up working correctly in Wireshark.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Maybe it&amp;#39;s just coincidence&lt;/span&gt;&lt;/span&gt; I don&amp;#39;t know. &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;The issue is that it only works once.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I run it again and it no longer works as intended in Wireshark.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I also noticed that in Wireshark&amp;#39;s &amp;quot;Bluetooth ATT Server Attributes&amp;quot;, when it doesn&amp;#39;t work, only the &amp;quot;Database Hash&amp;quot; appears.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;When it works correctly, in these situations it already presents the entire GATT server.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I leave images below that prove this evidence.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/att_5F00_server_5F00_attributes.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/att_5F00_server_5F00_attributes_5F00_good.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;With this I&amp;#39;m confused if the issue is on the nRF or the Raspberry Pi side. I think that the problem will be on the side of the Raspberry Pi because this problem only occurs when communicating with the Raspberry, because with the smartphone or another nRF there is no problem. But since this variation in nRF&amp;#39;s prj.conf is probably affecting something, I have doubts.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on capturing BLE packets on Wireshark</title><link>https://devzone.nordicsemi.com/thread/434376?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c32f0cf-0565-4b25-a203-67dda9b9d6af</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]However my issue occurs in Wireshark. Here, only notifications for 4 of the 7 GATT server characteristics are presented. Characteristics that correspond to known Bluetooth services do not appear (Heart Rate, Temperature and Battery Level Measurement).[/quote]
&lt;p&gt;I have not seen this myself, but it could be some sort of issue in a recent wireshark release. So you can try to use an older release as listed in the minimum requirements for nRF sniffer for BLE to check if that helps:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/min_requirements.html"&gt;https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/min_requirements.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively you can try to make a few logs and check if you see the same every time, it could for instance be that you were unlucky with the sniffer and experienced some packet loss that caused the sniffer to miss some of the packets on-air during the GATT database discovery.&lt;/p&gt;
[quote user=""]In addition, in the notifications presented in Wireshark, the UUID&amp;#39;s of any of the characteristics are not displayed. Below I leave an image of Wireshark.[/quote]
&lt;p&gt;The UUID is not part of the packets, but wireshark does a lookup based on the handle to find what UUID it refer to and display it for convenience, so if some of the previous packets were lost this will not work.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>