<?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>Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues</link><description>Are there any convenient ways to debug BLE connectivity issues? I have the service up and running but the connection on nRFConnect App doesn&amp;#39;t quite go through: it remains stuck on &amp;quot;Connecting&amp;quot; state. 
 It was working all fine until of a sudden and I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Nov 2021 14:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues" /><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/337522?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 14:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb68207-6bde-411a-9314-0a09bd10dfb9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;I unfortunately do not have any way to influence the priority of the tasks for the iOS team - for this you would have to reach out to your Regional Sales Manager (RSM), and ask them to evaluate it.&lt;br /&gt;If you do not know who your RSM is, please send me a direct message with your location so I may provide you with their contact information.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/337171?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 04:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0704c037-5119-4448-ae44-6d43e8b0a141</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Isn&amp;#39;t it possible to set the priority of the issue you assigned to the iOS team? sure I don&amp;#39;t want it resolved overnight but at least some idea as to whether the bug actually exists or some input from the corresponding team?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336996?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 08:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8636e7-94c8-4f7c-a375-ac7e32ce4768</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]I think the smart approach would be to first trying it on your end, and see whether you&amp;#39;re successful in doing so.[/quote]
&lt;p&gt;Part of the issue here is that I am unable to reproduce the behavior you describe on my end, which diminishes the value of debugging actions taken on my end - since I have no idea if the steps I take resolve the issue on your end.&lt;br /&gt;I have discussed this with multiple colleagues as well, and none of them have seen or heard about the behavior you describe, unfortunately.&lt;/p&gt;
[quote user="morpho"]And as mentioned earlier too, I have tried deleting the app and reinstalling TO NO AVAIL. I tried it again and the same result.[/quote]
&lt;p&gt;I know this, and I hear you. I only asked you to confirm that you did not do so using the &lt;em&gt;Offload Apps&lt;/em&gt;&amp;nbsp;option when you did the reinstallation, as this would mean that the iOS device could keep app data.&lt;/p&gt;
[quote user="morpho"]&lt;p&gt;Please provide a helpful response regarding this. This seems to be getting dragged for a bit now...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;As mentioned I have already reported this to our nRF Connect for iOS developers, and I will update you as soon as I hear anything back from them on this issue. Unfortunately, I can not say anything about when this will be.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336960?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 02:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7fbaae-0268-4b5c-b028-00d8a50c9d15</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I think the smart approach would be to first trying it on your end, and see whether you&amp;#39;re successful in doing so. As mentioned earlier, I CANNOT see a clear cache option for the nRF Connect App (as the article talks about third-party apps which isn&amp;#39;t the same for ALL the apps including nRF Connect). And as mentioned earlier too, I have tried deleting the app and reinstalling TO NO AVAIL. I tried it again and the same result.&lt;br /&gt;&lt;br /&gt;Please provide a helpful response regarding this. This seems to be getting dragged for a bit now...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336821?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 10:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6295ef-288f-48c8-814f-0e721afd7321</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="morpho"]have you tried it yourself? I know you don&amp;#39;t have an iPhone but it&amp;#39;d have been worth a try at least, cause I can&amp;#39;t seem to find any option to delete the cache.[/quote]
&lt;p&gt;Ah, my mistake - it seems my described approach was a little too android-y.&lt;br /&gt;My colleague confirm this, and tells me that the way to &lt;a href="https://www.digitaltrends.com/mobile/how-to-clear-cache-iphone/"&gt;make sure that an apps cache is cleared in iOS is as described in this article&lt;/a&gt;&amp;nbsp;in the &lt;em&gt;Reinstall apps to clear cache&lt;/em&gt; section. Could you confirm that you did not use the &lt;em&gt;Offload App&amp;nbsp;&lt;/em&gt;option when you reinstalled the application last?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336729?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 16:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6531fd-ff90-4ba4-8818-a0bc0726af6b</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/336695#336695"] I meant the iPhone&amp;#39;s system settings, not the nRF Connect&amp;#39;s setting. If you go to the settings in which you can administer apps and permissions, etc. there should be an option to clear the app data and cache.[/quote]
&lt;p&gt;have you tried it yourself? I know you don&amp;#39;t have an iPhone but it&amp;#39;d have been worth a try at least, cause I can&amp;#39;t seem to find any option to delete the cache.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_C6A58CD478E0_2D00_1.jpeg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336695?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 13:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87cc71a3-acea-4d3a-a4e7-c95ecfe8d485</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]Thought you had an iPhone X (or maybe it was someone else&amp;#39;s). Regardless, I couldn&amp;#39;t find an option to clear the cache in the app.&amp;nbsp;[/quote]
&lt;p&gt;Oh, yes, I borrowed a colleagues iPhone X to perform the previous test.&lt;br /&gt;My apologies, I should have been more specific, I meant the iPhone&amp;#39;s system settings, not the nRF Connect&amp;#39;s setting. If you go to the settings in which you can administer apps and permissions, etc. there should be an option to clear the app data and cache.&lt;br /&gt;Our developers has unfortunately not gotten back to me yet about the internal ticket I created. I will update you as soon as they do, but I can unfortunately not say anything about when this might be.&lt;/p&gt;
[quote user="morpho"]I already mentioned the issues I had with setting up the sniffer. I don&amp;#39;t see any relevant option to select the nRF device in wireshark despite copying the Profile_nRF_Sniffer_Bluetooth_LE dir into the profiles folder of wireshark[/quote]
&lt;p&gt;Could you confirm if you successfully program your nRF Device prior to this? And have you successfully installed the python requirements from \extcap\?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336561?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 18:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a78d77-1e5b-4bbc-84a6-4ea465aaf5b4</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I already mentioned the issues I had with setting up the sniffer. I don&amp;#39;t see any relevant option to select the nRF device in wireshark despite copying the Profile_nRF_Sniffer_Bluetooth_LE dir into the profiles folder of wireshark&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336560?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 18:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a59ca9b6-49fc-41a2-b58c-efafa39e73f2</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Thought you had an iPhone X (or maybe it was someone else&amp;#39;s). Regardless, I couldn&amp;#39;t find an option to clear the cache in the app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_9482.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336430?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345d0287-b6a9-42ea-93c7-ea4d18926248</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;But, getting back to your original question - we should proceed to look at getting your sniffer up and running in order to properly being able to see what is being transmitted on-air between your devices. This will greatly help any BLE related debugging effort.&lt;br /&gt;&lt;br /&gt;Do you have an additional device that you may use as the sniffer&amp;#39;s connectivity device for your connection?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336333?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 07:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e59f4d-05c7-4907-80ca-eb0835bb82f4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for confirming - I&amp;#39;ll write this up in the internal ticket.&lt;br /&gt;&lt;br /&gt;To clear an app&amp;#39;s cache in iOS you should see a &amp;quot;Clear cache&amp;quot; option when navigating to the app in Settings. I do not have an iOS device myself, but I am making an assumption that this should be an available option for all apps.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336282?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 16:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534467c6-f271-4c2b-bc7f-82b10eedf5b7</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Yes, it says Connecting even though I think it&amp;#39;s connected as mentioned earlier. How do you clear the app&amp;#39;s cache? In settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336222?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 13:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a108b8-af92-4603-9830-9c8cff9859fd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]I actually tried this the first time it happened, and it solved the issue but this time i have tried like 4-5 times to no avail[/quote]
&lt;p&gt;That sounds very peculiar indeed. I have not heard of anyone else experiencing this either yet, but I will file an internal ticket with the developers of the application so that they could be aware of it.&lt;br /&gt;&lt;br /&gt;Before I do so, could you try to clear the app&amp;#39;s cache too, to see if this perhaps fixes the issue?&lt;br /&gt;And just to have it confirmed, the issue is that the view in the screenshot you sent does not change to &amp;#39;connected&amp;#39; right? It only ever says &amp;#39;connecting&amp;#39; when this happens?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/336067?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 23:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e85cd2e-ae73-4550-97df-b0e94f86bdf1</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335973#335973"]could you try this again after uninstalling and reinstalling the nRF Connect application for smartphone entirely?[/quote]
&lt;p&gt;I actually tried this the first time it happened, and it solved the issue but this time i have tried like 4-5 times to no avail&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_9480.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335973?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 12:49:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fab6213-9cef-419f-b107-ff399729c234</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]App version 2.4.12, and it&amp;#39;s an iOS app.[/quote]
&lt;p&gt;Thank you for clarifying.&lt;br /&gt;I just tested this on an iPhone X with the 2.4.12 version without issues - testing against the ble_app_uart application.&lt;br /&gt;Are these the only loggings available in the &amp;quot;Log&amp;quot; section during a connection? Does it not show anything about service discovery and connection parameter updates, etc?&lt;br /&gt;&lt;br /&gt;I know that iOS devices sometimes might experience a caching issue if their bluetooth adapter has been on for a long time. Could you try this again after having turned off and on again the phone&amp;#39;s bluetooth?&lt;br /&gt;If this does not resolve the issue, could you try this again after uninstalling and reinstalling the nRF Connect application for smartphone entirely?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335840?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 03:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a459bada-b6a9-4a7d-abb5-5deed28a35fa</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335746#335746"]Could I ask which phone you are using the nRF Connect application with, and what version of the application you are using?[/quote]
&lt;p&gt;App version 2.4.12, and it&amp;#39;s an iOS app.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335746#335746"]What does the log on the nRF Connect&amp;#39;s side say when you connect to a peripheral device (as indicated by the connected event on the peripheral side)?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/text_2D00_0A90696B4C64_2D00_1.txt"&gt;devzone.nordicsemi.com/.../text_2D00_0A90696B4C64_2D00_1.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335746?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a01447-0e1c-444a-ae85-727b5b54022c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Morpho,&lt;/p&gt;
[quote user="morpho"]right, but how does the phone app work then? I already have my FW running on nRF MCU and I use the app to connect to the BLE profile.[/quote]
&lt;p&gt;Most smartphones already have a available BLE adapter, so the nRF Connect for smartphone application will use this instead of needing an external device.&lt;/p&gt;
[quote user="morpho"]&lt;p&gt;Okay, so ALL i&amp;#39;m trying to do is: create a custom BLE service, and add read/write characteristics to read/send the attribute values. PREVIOUSLY, I have been able to connect to the BLE profile via nRF Connect phone app, but lately i have been seeing issues with nRF Connect app showing it&amp;#39;s not CONNECTED, despite the &lt;strong&gt;ble_evt_handler&lt;/strong&gt; getting invoked with a&amp;nbsp;BLE_GAP_EVT_CONNECTED parameter passed in.&lt;/p&gt;
&lt;p&gt;I even tried the existing samples from the SDK including the ble_nus app, and it behaves the same way: nRF app doesn&amp;#39;t show it&amp;#39;s connected/i don&amp;#39;t see any profiles but the ble_evt_handler does get passed with&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_CONNECTED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To me, it looks like connection does happen and there&amp;#39;s an issue with the app itself.&lt;/p&gt;[/quote]
&lt;p&gt;Aha - now I understand what you meant earlier. Thank you for elaborating, this made you issue much more clear to me!&lt;br /&gt;This does indeed definitely sound like it could be an issue with the nRF Connect for Smartphones application. Could I ask which phone you are using the nRF Connect application with, and what version of the application you are using?&lt;br /&gt;I will try to reproduce this on my end so that I may raise an internal ticket on this to have it examined, if I am able to reproduce it properly.&lt;/p&gt;
[quote user="morpho"]that&amp;#39;s what I mean[/quote]
&lt;p&gt;How does the Client tab look? Could you also show me the logs from the nRF Connect application? You could click the &amp;#39;Log&amp;#39; button to see these.&lt;br /&gt;What does the log on the nRF Connect&amp;#39;s side say when you connect to a peripheral device (as indicated by the connected event on the peripheral side)?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335599?ContentTypeID=1</link><pubDate>Sun, 24 Oct 2021 19:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd49236-ec8a-4f38-bc66-96889a2fa5df</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335594#335594"]the nRF Connect BLE desktop application requires a nRF device to act as its BLE adapter. The nRF Connect application will prompt you to program the device when you select it from the dropdown menu - it will then program the connectivity firmware it needs to be able to communicate with the device.[/quote]
&lt;p&gt;right, but how does the phone app work then? I already have my FW running on nRF MCU and I use the app to connect to the BLE profile.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335594#335594"]I am under the impression that you are looking for a way to debug a peripheral application&amp;#39;s connectivity / connection issues, is this correct?[/quote]
&lt;p&gt;Okay, so ALL i&amp;#39;m trying to do is: create a custom BLE service, and add read/write characteristics to read/send the attribute values. PREVIOUSLY, I have been able to connect to the BLE profile via nRF Connect phone app, but lately i have been seeing issues with nRF Connect app showing it&amp;#39;s not CONNECTED, despite the &lt;strong&gt;ble_evt_handler&lt;/strong&gt; getting invoked with a&amp;nbsp;BLE_GAP_EVT_CONNECTED parameter passed in.&lt;/p&gt;
&lt;p&gt;I even tried the existing samples from the SDK including the ble_nus app, and it behaves the same way: nRF app doesn&amp;#39;t show it&amp;#39;s connected/i don&amp;#39;t see any profiles but the ble_evt_handler does get passed with&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_CONNECTED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To me, it looks like connection does happen and there&amp;#39;s an issue with the app itself.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335594#335594"]Could you confirm for me whether you are referring to the program running on the peripheral when you say application?[/quote]
&lt;p&gt;I mean&amp;nbsp;my program/FW is programmed on the said&amp;nbsp;nRF device&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335594#335594"]Could you also elaborate what you mean when you say that the peripheral prints&amp;nbsp;&lt;strong&gt;connect&lt;/strong&gt;&lt;em&gt;&lt;/em&gt; when the nRF Connect for Smartphone application attempts to connect, but &amp;#39;&lt;em&gt;it doesn&amp;#39;t &amp;quot;connect&amp;quot; on the phone app&lt;/em&gt;&amp;#39;?[/quote]
&lt;p&gt;that&amp;#39;s what I mean&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_9468.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335594?ContentTypeID=1</link><pubDate>Sun, 24 Oct 2021 16:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e60fe123-0361-4696-af7c-ed0b8fa16eee</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Morpho&lt;/p&gt;
[quote user="morpho"]I only see one device in nRF Connect desktop app which is my nRF52840. I was trying to simulate on my desktop what I see on the mobile app basically.&amp;nbsp;The desktop app doesn&amp;#39;t seem to work the same way though: it doesn&amp;#39;t let me scan until I select a device but why?[/quote]
&lt;p&gt;Oh, this is because the nRF Connect BLE desktop application requires a nRF device to act as its BLE adapter. The nRF Connect application will prompt you to program the device when you select it from the dropdown menu - it will then program the connectivity firmware it needs to be able to communicate with the device.&lt;br /&gt;You may then have this device do either scanning or advertising, as you would like. In the central / scanner case you could just click &amp;quot;start scan&amp;quot;, but in the advertising / peripheral case you will need to first configure it as a GATT server (different button at the top).&lt;/p&gt;
[quote user="morpho"]&lt;p&gt;Ah, no! I already mentioned in this response that I&amp;#39;m trying to simulate on the desktop with the phone app to see if there&amp;#39;s an issue with the phone app itself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I tried following the steps in the tutorial but I can&amp;#39;t seem to find the COM PORT in wireshark.&lt;/p&gt;[/quote]
&lt;p&gt;I am still having a hard time understanding exactly what you are trying to achieve here. I am under the impression that you are looking for a way to debug a peripheral application&amp;#39;s connectivity / connection issues, is this correct?&lt;br /&gt;&lt;br /&gt;If so, I would recommend the following approach:&lt;br /&gt;- Make sure that the peripheral is programmed and running as expected. Is there any indication that the program is running, and the device has started advertising? What does the log&amp;#39;s (if enabled) say?&lt;br /&gt;- When you have confirmed that the peripheral is functioning as expected, and that it is advertising, we can move on to debugging the connection itself.&lt;br /&gt;- Choose either the nRF Sniffer or the nRF Connect for Desktop&amp;#39;s BLE application to proceed with. The nRF Sniffer gives the complete picture of what is happening on-air between two devices, and can quickly highlight issues within a connection, or issues with advertising.&lt;br /&gt;The nRF Connect for Desktop&amp;#39;s BLE application quickly gives a good overview, and visualizes how the peripheral will look to a scanning central device.&lt;br /&gt;&lt;br /&gt;So, if your issue is with which profiles, services, and characteristics is exposed - choose nRF Connect for desktop. If your issue is with connection throughput, latency, request rejections, or other connection-specific technicalities, choose the nRF Sniffer.&lt;/p&gt;
[quote user="morpho"]Alright. So I tested one more time and I&amp;#39;m fairly certain it&amp;#39;s the app that&amp;#39;s not functioniong as expected! In the program, ble_evt_handler is invoked and I see the &lt;strong&gt;Connect&lt;/strong&gt; print as soon I attempt to connect from the phone app, but since it doesn&amp;#39;t &amp;quot;connect&amp;quot; on the phone app, i don&amp;#39;t see any profiles. Are you aware of the issue?[/quote]
&lt;p&gt;Could you confirm for me whether you are referring to the program running on the peripheral when you say application?&lt;br /&gt;I am not aware of any such issue, no. Are you working with a custom application, or are you testing this with a specific example? In case of the latter,, which example?&lt;br /&gt;It would be great if you could share the peripheral&amp;#39;s logs with me as well. You could do so by using the&amp;nbsp;&lt;em&gt;Insert -&amp;gt; Code -&amp;gt; Text&amp;nbsp;&lt;/em&gt;option here on DevZone.&lt;br /&gt;&lt;br /&gt;Could you also elaborate what you mean when you say that the peripheral prints&amp;nbsp;&lt;strong&gt;connect&lt;/strong&gt;&lt;em&gt;&lt;/em&gt; when the nRF Connect for Smartphone application attempts to connect, but &amp;#39;&lt;em&gt;it doesn&amp;#39;t &amp;quot;connect&amp;quot; on the phone app&lt;/em&gt;&amp;#39;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335572?ContentTypeID=1</link><pubDate>Sat, 23 Oct 2021 19:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e334b36-6b51-4a18-98c7-de4b8b182d22</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Alright. So I tested one more time and I&amp;#39;m fairly certain it&amp;#39;s the app that&amp;#39;s not functioniong as expected! In the program, ble_evt_handler is invoked and I see the &lt;strong&gt;Connect&lt;/strong&gt; print as soon I attempt to connect from the phone app, but since it doesn&amp;#39;t &amp;quot;connect&amp;quot; on the phone app, i don&amp;#39;t see any profiles. Are you aware of the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335571?ContentTypeID=1</link><pubDate>Sat, 23 Oct 2021 18:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017d85fc-e39b-4e11-ba16-5825ea3b5171</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335415#335415"]which device are you using to do the BLE scanning in the nRF Connect desktop application, or which device have you&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/programming_firmware.html"&gt; programmed with the sniffer&amp;#39;s connectivity hex&lt;/a&gt;?&amp;nbsp;[/quote]
&lt;p&gt;I only see one device in nRF Connect desktop app which is my nRF52840. I was trying to simulate on my desktop what I see on the mobile app basically.&amp;nbsp;The desktop app doesn&amp;#39;t seem to work the same way though: it doesn&amp;#39;t let me scan until I select a device but why?&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335415#335415"]Are you trying to connect your nRF Connect desktop application to your nRF Connect smartphone application?[/quote]
&lt;p&gt;Ah, no! I already mentioned in this response that I&amp;#39;m trying to simulate on the desktop with the phone app to see if there&amp;#39;s an issue with the phone app itself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I tried following the steps in the tutorial but I can&amp;#39;t seem to find the COM PORT in wireshark.&lt;/p&gt;
&lt;p&gt;2. Is this really needed to debug my issue since I can&amp;#39;t even connect to my profile all of a sudden (which I was previously able to!).&lt;/p&gt;
&lt;p&gt;3. Is it possible to have a live debug session to help solve the issue a bit faster?&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335415?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 08:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44441126-642e-48c5-853c-588444abaceb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]Yes. Running the script in wireshark/extcap folder does seem to run fine as well. Refreshed the interfaces in Wireshark and still don&amp;#39;t see nRF interface showing up.[/quote][quote user="morpho"]I&amp;#39;m using a Mac, and trying to connect to the BLE profile (similar to how I connect using nRF Connect using a phone app). Trying to see i there&amp;#39;s something wrong with the phone app[/quote]
&lt;p&gt;Thank you for clarifying. &lt;br /&gt;It seems I was not explicit enough in my previous comment, my mistake, I meant to ask which device you are using for your connectivity device. I.e which device are you using to do the BLE scanning in the nRF Connect desktop application, or which device have you&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/programming_firmware.html"&gt; programmed with the sniffer&amp;#39;s connectivity hex&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
[quote user="morpho"]the BLE profile (similar to how I connect using nRF Connect using a phone app). Trying to see i there&amp;#39;s something wrong with the phone app[/quote]
&lt;p&gt;Are you trying to connect your nRF Connect desktop application to your nRF Connect smartphone application?&lt;br /&gt;I have not personally tried this before, but you would then have to set the smartphone to act as a peripheral (GATT server) and have it advertise so that it is connectable for the nRF Connect for desktop application.&lt;br /&gt;Is this what you meant, or might I have misunderstood you?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335353?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 16:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c35e00ba-3bac-4794-b755-a9340b2fe634</guid><dc:creator>morpho</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335188#335188"]Could you confirm that you completed&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/installing_sniffer_plugin.html"&gt;the step of the installation that concerns the python files and dependencies&lt;/a&gt;?[/quote]
&lt;p&gt;Yes. Running the script in wireshark/extcap folder does seem to run fine as well. Refreshed the interfaces in Wireshark and still don&amp;#39;t see nRF interface showing up.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; ./nrf_sniffer_ble.sh --extcap-interfaces
extcap {version=3.1.0}{display=nRF Sniffer for Bluetooth LE}{help=https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE}




control {number=0}{type=selector}{display=Device}{tooltip=Device list}
control {number=1}{type=string}{display=Passkey / OOB key}{tooltip=6 digit temporary key or 16 byte Out-of-band (OOB) key in hexadecimal starting with &amp;#39;0x&amp;#39;, big endian format. If the entered key is shorter than 16 bytes, it will be zero-padded in front&amp;#39;}{validation=\b^(([0-9]{6})|(0x[0-9a-fA-F]{1,32}))$\b}
control {number=2}{type=string}{display=Adv Hop}{default=37,38,39}{tooltip=Advertising channel hop sequence. Change the order in which the siffer switches advertising channels. Valid channels are 37, 38 and 39 separated by comma.}{validation=^\s*((37|38|39)\s*,\s*){0,2}(37|38|39){1}\s*$}{required=true}
control {number=3}{type=button}{role=help}{display=Help}{tooltip=Access user guide (launches browser)}
control {number=4}{type=button}{role=restore}{display=Defaults}{tooltip=Resets the user interface and clears the log file}
control {number=5}{type=button}{role=logger}{display=Log}{tooltip=Log per interface}
value {control=0}{value= }{display=All advertising devices}{default=true}
&lt;/pre&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/80855/easy-ways-to-debug-ble-connectivity-issues/335188#335188"]I notice that you are having some issue with the BLE application of nRF Connect also. Which device are you using for the nRF Connect here? Are you getting the prompt to re-program it when you select it in the drop-down menu?[/quote]
&lt;p&gt;I&amp;#39;m using a Mac, and trying to connect to the BLE profile (similar to how I connect using nRF Connect using a phone app). Trying to see i there&amp;#39;s something wrong with the phone app&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335188?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 07:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a434f2d-f482-4fc7-b2e4-04e41eca755a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="morpho"]Alright. It gets frustrating at times when you try to follow along and still don&amp;#39;t make it through. I&amp;nbsp;programmed&amp;nbsp;the nRF Sniffer firmware but in wireshark, I don&amp;#39;t see the nRF Sniffer COM PORT showing up. Plus I can&amp;#39;t seem to get the interface toolbar as shown in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Frunning_sniffer.html"&gt;screenshot&lt;/a&gt;&amp;nbsp;here. I also have the nRF Sniffer API folder which has a bunch of python files but the link you shared doesn&amp;#39;t seem to talk about it.&amp;nbsp;[/quote]
&lt;p&gt;Could you confirm that you completed&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/installing_sniffer_plugin.html"&gt;the step of the installation that concerns the python files and dependencies&lt;/a&gt;?&lt;/p&gt;
[quote user="morpho"]Also, in my case, BLE doesn&amp;#39;t even connect. Do you still think nRF Sniffer tool would be useful? Can I not use nRF Connect on my desktop? Scan devices option is greyed out let alone any scanned devices[/quote]
&lt;p&gt;Yes, if you are able to scan and connect to the device you could use nRF Connect to test that the device works as expected. However, when debugging connection issues the nRF Sniffer is better suited since you may then monitor exactly what is being transferred and negotiated between the two devices.&lt;br /&gt;&lt;br /&gt;I notice that you are having some issue with the BLE application of nRF Connect also. Which device are you using for the nRF Connect here? Are you getting the prompt to re-program it when you select it in the drop-down menu?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy ways to debug BLE connectivity issues</title><link>https://devzone.nordicsemi.com/thread/335175?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 05:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:877e3fee-65ec-4a60-82ed-a58e82e8dd6c</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Alright. It gets frustrating at times when you try to follow along and still don&amp;#39;t make it through. I&amp;nbsp;programmed&amp;nbsp;the nRF Sniffer firmware but in wireshark, I don&amp;#39;t see the nRF Sniffer COM PORT showing up. Plus I can&amp;#39;t seem to get the interface toolbar as shown in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Frunning_sniffer.html"&gt;screenshot&lt;/a&gt;&amp;nbsp;here. I also have the nRF Sniffer API folder which has a bunch of python files but the link you shared doesn&amp;#39;t seem to talk about it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also, in my case, BLE doesn&amp;#39;t even connect. Do you still think nRF Sniffer tool would be useful? Can I not use nRF Connect on my desktop? Scan devices option is greyed out let alone any scanned devices&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_10_2D00_20-at-10.16.05-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Any quick support is appreciated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>