<?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>DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100349/devacademy-bluetooth-le-connection-problems</link><description>Hi, 
 I am going through the DevAcademy Bluetooth LE lessons, using nRF5 DK. But I run into problems directly in the exercise of the first lesson. Everything goes fine to step 4.2, but connecting doesn’t work. Connection is established, but almost immediately</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2024 01:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100349/devacademy-bluetooth-le-connection-problems" /><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/511393?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 01:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd988bfe-cc2a-43f9-9d76-56ca3b603879</guid><dc:creator>EdSwarthout</dc:creator><description>&lt;p&gt;Just to add another data point, on a Samsung Note20,I was seeing the immediate disconnect too:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:01:36.259,674] &amp;lt;inf&amp;gt; Lesson3_Exercise1: Connected
[00:01:36.637,481] &amp;lt;inf&amp;gt; Lesson3_Exercise1: Disconnected. Reason 42&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On a 2nd phone (Samsung S24 Ultra), it did stay connected once, but then stopped.&lt;/p&gt;
&lt;p&gt;I rebooted both phones and now all is working fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/464063?ContentTypeID=1</link><pubDate>Sun, 14 Jan 2024 23:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe80fc1-10b8-4aee-83d3-1fa8283e9f24</guid><dc:creator>Jas39</dc:creator><description>&lt;p&gt;This might be worth mentioning in the excersice FAQ as the Samsung S21 is a rather common device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any knowledge if this is resolved in later bt-stacks from Samsung?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/464062?ContentTypeID=1</link><pubDate>Sun, 14 Jan 2024 23:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98895f7e-265e-4d67-95bd-35989224219b</guid><dc:creator>Jas39</dc:creator><description>&lt;p&gt;I have also stumbled into this issue with a Samsung 21. Works fine with a Sony Experia.&lt;/p&gt;
&lt;p&gt;I have tried Lars approach of setting:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_PHY_UPDATE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;But to no avail. I got the same behaviour on the Samsung regardless.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
But alas, removing the bond and restarting the phone makes it work!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Hopefully this can save someone else some time...&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/436602?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2023 20:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e04c86-2e03-435f-a4c3-adb0acd1ec4c</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Thanks a lot Einar for your help! This makes sense.&lt;br /&gt;&lt;br /&gt;I try to find the name of the chipset, but I&amp;#39;m not sure if I&amp;#39;m successful. Do you know if it is BCM4389? It seems to be for the Ultra-version of S21, but maybe it&amp;#39;s also for the one just named S21 (SM-G991B/DS).&lt;/p&gt;
&lt;p&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/436432?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 09:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f2374cd-675e-4a80-93ff-b2549f479fec</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;The way it doesn&amp;#39;t follow the standard has to do with the timing and sequencing of these update procedures.&lt;/p&gt;
&lt;p&gt;In this specific case, LL_CONNECTION_UPDATE_IND is a procedure that takes several BLE events to complete, but when the phone receives the LL_PHY_REQ from the peripheral it responds to this immediately instead of waiting for LL_CONNECTION_UPDATE_IND to complete first. That&amp;#39;s where it violates the specification.&lt;/p&gt;
&lt;p&gt;The phones that are affected are the ones with the same Broadcom Bluetooth controller chipset as your Samsung phone. Possibly&amp;nbsp;devices other than Samsung with the same chipset also.&lt;/p&gt;
&lt;p&gt;This firmware bug has actually been fixed by Broadcom, but Samsung has yet to push this fix to their phones.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/436083?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 19:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699d765c-33d0-4cde-af15-9ca921a31e8c</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;In what way does Samsung not follow the standard? It seems it is LL_CONNECTION_UPDATE_IND with 7.5 ms that is the problem. But the information about CONFIG_BT_PERIPHERAL_PREF_MIN_INT says that the connection interval can be 7.5 ms. So why does it not work?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m wondering what could be expected if I develop a device that will be used by a lot of customers. Then for sure some will get connection problem. It would not be pleasant if a customer buys a device and his/her phone can&amp;#39;t connect. If this is a known issue for some phones this must have happened a lot of times before. Do you know how that is handled? It feels that the safest way to go is to set CONFIG_BT_PHY_UPDATE=n. But then 2M can&amp;#39;t be used. Or are there other ways?&lt;br /&gt;&lt;br /&gt;Will a problematic phone model always behave the same way? I mean, if I test another Samsung S21 with an unchanged exercise, will it also fail to connect?&lt;br /&gt;&lt;br /&gt;It might be interesting to know what exact models that have problem. But it would be more interesting to know the proportion between problematic phones and those that work. I guess it&amp;#39;s hard to say an exact ratio, but how many phones are known to have connection problems?&lt;br /&gt;&lt;br /&gt;Are there any tablets that also show connection problems?&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t had any problems with with my phone and any Bluetooth devices before. Though, I&amp;#39;m not sure how many that are classic Bluetooth and how many that are BLE.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/435674?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 10:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80837a5-0a0a-45c0-a2d2-133590679bf0</guid><dc:creator>Einarh</dc:creator><description>[quote user="Lars M"]Does any of Samsung or Nordic not follow the BLE standard?[/quote]
&lt;p&gt;Yes exactly, the problem is that some Samsung phones don&amp;#39;t follow the BLE standard.&lt;/p&gt;
&lt;p&gt;So in your specific connection procedure, you end up in an undefined state and time out. Once you&amp;#39;ve established the first successful connection, your phone will remember the connection parameters, and the connection procedure will be different which means the error does not occur anymore.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure exactly what phones are affected, only that it&amp;#39;s a known issue with some Samsung phones right now. There have also been similar issues with iPhones previously. If it&amp;#39;s important to you I could look into more specifically what phones are affected.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/435605?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 05:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3a368f-dddc-44f9-8608-0a169985493d</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;By setting CONFIG_BT_PHY_UPDATE=n I get connection in the exercises working, great! At least those exercises in lesson 4. But now I can&amp;#39;t use 2M, doesn&amp;#39;t feel good.&lt;br /&gt;&lt;br /&gt;After I set CONFIG_BT_PHY_UPDATE=n, I also tested to set back to CONFIG_BT_PHY_UPDATE=y. Then connection works. Strange. And 2M is used with 50 ms communication interval. The LL_CONNECTION_UPDATE_IND is missing this time.&lt;br /&gt;&lt;br /&gt;Testing connection for another unaltered exercise from lesson 4 does not work, just as before. But setting CONFIG_BT_PHY_UPDATE=n makes it work. And connection works after setting it back to &amp;quot;y&amp;quot;. Just as the scenario for previous exercise. This holds for all three exercises in lesson 4.&lt;br /&gt;&lt;br /&gt;It feels like my phone recognizes the various projects. Can it be like that?&lt;br /&gt;&lt;br /&gt;I have captured some logfiles, I attach four files from lesson 4 exercise 2. In the first file the exercise is unchanged, and connection doesn&amp;#39;t work. The second file has CONFIG_BT_PHY_UPDATE=n. There is an LL_CONNECTION_UPDATE_IND with 7.5 ms as before, but then a lot of &amp;quot;new&amp;quot; communicaton goes on before the connection is established. Can you get some interesting information from this? Right before the connection is established there is a new LL_CONNECTION_UPDATE_IND with new parameters.&lt;br /&gt;&lt;br /&gt;In the third file is CONFIG_BT_PHY_UPDATE set to &amp;quot;y&amp;quot; again. As mentioned above, now connection works. The fourth file has CONFIG_BT_PHY_UPDATE=n. Here all the &amp;quot;new&amp;quot; communication is missing.&lt;br /&gt;&lt;br /&gt;Another thing that I don&amp;#39;t understand is that CONFIG_BT_PERIPHERAL_PREF_MIN_INT says that the connection interval can be 7.5 ms, which my phone asks for when the connection doesn&amp;#39;t work. Shouldn&amp;#39;t LL_CONNECTION_UPDATE_IND with 7.5 ms work? Or is there something else that causes connection to not work?&lt;br /&gt;&lt;br /&gt;Does any of Samsung or Nordic not follow the BLE standard?&lt;/p&gt;
[quote userid="111520" url="~/f/nordic-q-a/100349/devacademy-bluetooth-le-connection-problems/435146"]this is a known issue with some Samsung phones related to the PHY update procedure.[/quote]
&lt;p&gt;Do you know which/how many phones from Samsung that have this issue?&lt;br /&gt;&lt;br /&gt;Is it only Samsung?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_y.pcapng"&gt;devzone.nordicsemi.com/.../1-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_y.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_n.pcapng"&gt;devzone.nordicsemi.com/.../2-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_n.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_y.pcapng"&gt;devzone.nordicsemi.com/.../3-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_y.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_n.pcapng"&gt;devzone.nordicsemi.com/.../4-Capture-Samsung-S21-less4-exer2-CONFIG_5F00_BT_5F00_PHY_5F00_UPDATE_3D00_n.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/435146?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 08:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e7c2f67-7ecd-4fb4-96df-206f3b72c2ec</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I just received an update clarifying that this is a known issue with some Samsung phones related to the PHY update procedure.&lt;/p&gt;
&lt;p&gt;It should work if you disable the PHY update from the peripheral side.&lt;/p&gt;
&lt;p&gt;In order for this to work with the PHY update on your Samsung phone, this issue would have to be addressed by Samsung.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432550?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 13:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:979979e5-938e-4401-84dd-553706f9f481</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi, ignore the &amp;quot;suggested answer&amp;quot;, I misclicked..&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve forwarded this internally at Nordic now, and someone is trying to reproduce this with a phone similar to yours.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll let you know if I get any updates.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432371?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 13:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb9d273-3989-4ec4-9866-336b6e8e2056</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;It feels this never comes to an end. Now I have run lesson 4 exercise 1, and now the connection problem is back. Lesson 3 exercise 2 works fine, and also MMS. But when I go back to lesson 4 exercise 1, the connection problem is still there, the phone hasn&amp;#39;t changed behaviour (at least not to make this program work). I also tried lesson 1, and now that works.&lt;br /&gt;&lt;br /&gt;I have captured a lot. I attach the files, numbered in the order they are logged. Though, actually there is nothing new. Every time conenction works, LL_CONNECTION_UPDATE_IND is missing. And every time connection doesn&amp;#39;t work, LL_CONNECTION_UPDATE_IND is present.&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1-Capture-dk-first-phone-less4-exer1-not-working_2C00_-before-less3-exer2.pcapng"&gt;devzone.nordicsemi.com/.../1-Capture-dk-first-phone-less4-exer1-not-working_2C00_-before-less3-exer2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2-Capture-dk-first-phone-MMS-working_2C00_-before-less3-exer2.pcapng"&gt;devzone.nordicsemi.com/.../2-Capture-dk-first-phone-MMS-working_2C00_-before-less3-exer2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3-Capture-dk-first-phone-less4-exer1-not-working_2C00_-before-less3-exer2-after-MMS.pcapng"&gt;devzone.nordicsemi.com/.../3-Capture-dk-first-phone-less4-exer1-not-working_2C00_-before-less3-exer2-after-MMS.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4-Capture-dk-first-phone-less3-exer2-working.pcapng"&gt;devzone.nordicsemi.com/.../4-Capture-dk-first-phone-less3-exer2-working.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5-Capture-dk-first-phone-less4-exer1-not-working_2C00_-after-MMS-after-less3-exer2.pcapng"&gt;devzone.nordicsemi.com/.../5-Capture-dk-first-phone-less4-exer1-not-working_2C00_-after-MMS-after-less3-exer2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6-Capture-dk-first-phone-less1-exer1-working_2C00_-after-MMS-after-less3-exer2.pcapng"&gt;devzone.nordicsemi.com/.../6-Capture-dk-first-phone-less1-exer1-working_2C00_-after-MMS-after-less3-exer2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7-Capture-dk-first-phone-less4-exer1-not-working_2C00_-after-MMS-after-less3-exer2-after-less1.pcapng"&gt;devzone.nordicsemi.com/.../7-Capture-dk-first-phone-less4-exer1-not-working_2C00_-after-MMS-after-less3-exer2-after-less1.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432303?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52a7722-72ce-47a8-8091-60e9eeab5b44</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Hi again,&lt;br /&gt;&lt;br /&gt;Another thing that makes this not really satisfactory is that I had my phone working with my own-made BLE-project at the same time as the phone didn&amp;#39;t work with the DevAcademy-projects. For my project, the phone didn&amp;#39;t send LL_CONNECTION_UPDATE_IND as every other time when the connection works.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="102842" url="~/f/nordic-q-a/100349/devacademy-bluetooth-le-connection-problems/431000"]I have made my own BLE-program (called MMS), which is a light version of NUS. Here the connection works fine. It is also possible to send characters to and receive notifications from my dk, and also disconnect. The only difference in the connection process seems to be the lack of LL_CONNECTION_UPDATE_IND in my project.[/quote]
&lt;p&gt;So maybe there is more to this than just the possibility that the parameter updates have made my phone behave in a new way. It obviously behaved differently depending on project before.&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432258?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 10:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:588042b0-31c0-49da-a87c-dc13e6b71ec0</guid><dc:creator>Lars M</dc:creator><description>[quote userid="111520" url="~/f/nordic-q-a/100349/devacademy-bluetooth-le-connection-problems/432232"]Then it seems like this was the tweaking of parameters needed to make it work, and it also seems like your phone remembers these parameters.[/quote]
&lt;p&gt;Ok, it&amp;#39;s maybe like that. Though, it would be nice to know it for sure. But maybe it&amp;#39;s hard to get to know that.&lt;br /&gt;&lt;br /&gt;But if it is like this, these update of parameters used in lesson 3 exercise 2 should be present in all BLE-programs to prevent a phone to behave like mine.&lt;/p&gt;
&lt;p&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432232?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668ca070-24c4-49a1-b5a3-4af6457f1083</guid><dc:creator>Einarh</dc:creator><description>[quote user="Lars M"]After the last part of lesson 3 exercise 2, connection always works. And that part has to do with some connection parameters (data length and time).[/quote]
&lt;p&gt;Then it seems like this was the tweaking of parameters needed to make it work, and it also seems like your phone remembers these parameters. Hard to say exactly what made the difference without being able to reproduce the error though.&lt;/p&gt;
[quote user="Lars M"]Can you say something about the red mark in packet 214? Why is it red when corresponding packet in another capture is not red? They look pretty much the same, apart from the red-marked comes after LL_CONNECTION_UPDATE_IND.&lt;br /&gt;[/quote]
&lt;p&gt;The red mark seems to indicate an unexpected sequencing of packets yes, the peripheral sending a PHY_REQ when the central expects a reply to its CONNECTION_UPDATE_IND.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/432170?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 06:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59708f32-abe4-433f-b751-83919ea7d536</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Hi again,&lt;br /&gt;&lt;br /&gt;The last part in previous post is solved. I had to restart my computer, and after that there is no automatic connection.&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431928?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 09:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f9df3b-7bdd-4a95-96aa-09fb395cb018</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;That&amp;#39;s the problem, I can&amp;#39;t make it not work anymore. After the last part of lesson 3 exercise 2, connection always works. And that part has to do with some connection parameters (data length and time). Can something in this process have affected my phone to behave differently in coming connections?&lt;br /&gt;&lt;br /&gt;It&amp;#39;s a little while ago so I don&amp;#39;t really remember, but most likely the file &amp;quot;Capture dk and phone, 3 tries.pcapng&amp;quot; is capture from lesson 1. As the two files I attached in previous post.&lt;br /&gt;&lt;br /&gt;Can you say something about the red mark in packet 214? Why is it red when corresponding packet in another capture is not red? They look pretty much the same, apart from the red-marked comes after LL_CONNECTION_UPDATE_IND.&lt;br /&gt;&lt;br /&gt;Another thing that I have encountered is that during these connection problems I have run the desktop program. Every time that I power on the dk that I used with the desktop program (I am playing with two dk:s) the PC automatically connects to it. I go into Windows settings and tell the computer to forget the device. Everything seems to work (the device disappears from the device list), but nonetheless the computer connects to it when it is turned on. I have manually added the dk, and then removed it, but it doesn&amp;#39;t help. The computer connects to the dk no matter if it is in the list or not. The only way that I have found out to prevent my computer to connect to it is to turn off Bluetooth in the computer. Is there anything I can do to make the computer to really forget my dk?&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431821?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 14:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f37322-2ca3-4303-90cc-4c8bec725f83</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hm interesting, yes it seems to be the LL_CONNECTION_UPDATE_IND packet that causes this, but I&amp;#39;m not sure what causes it to appear.&lt;/p&gt;
&lt;p&gt;It would be interesting to see the difference in your configuration for exercise 1 when it works and doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431752?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 11:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:545e0db7-5b0c-4608-b3ca-11ad92ee79e5</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Now I have completed the three first lessons with all exercises. Suddenly on the last part in lesson 3 exercise 2, the connection started to work. After a while when I had palyed around a bit with the configs in prj.conf, I went back to earlier exercises. And now they also work without any updates. So strange! I have captured several wiresharkfiles for lesson 1 exercise 1. They differ a bit, but every time the connection process works. There are some things that differ between these files and &amp;quot;Capture dk and phone, 3 tries.pcapng&amp;quot; that I attached earlier. On packet no 214 (LL_PHY_REQ) in &amp;quot;Capture dk and phone, 3 tries.pcapng&amp;quot;, there is a red mark telling something is wrong. Corresponding packet in a new file where connection works, doesn&amp;#39;t show an error (I attach two files for lesson 1 exercise 1). But I can&amp;#39;t see what causes the red mark in the old file. Is it wrong expected answer on LL_CONNECTION_UPDATE_IND sent just before?&lt;br /&gt;&lt;br /&gt;Another difference is that LL_CONNECTION_UPDATE_IND is not present when connection works. In the exercise where connection suddenly started to work, connection parameters are adjusted. Can something in this process have affected my phone to behave differently in coming connections? Feels a bit strange, but maybe?&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-dk-first-phone-less1-exer1-working.pcapng"&gt;devzone.nordicsemi.com/.../Capture-dk-first-phone-less1-exer1-working.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-dk-first-phone-less1-exer1-working-2.pcapng"&gt;devzone.nordicsemi.com/.../Capture-dk-first-phone-less1-exer1-working-2.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431511?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 13:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78d16aca-6dc1-4757-a3a4-80e739d090d9</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Now I have tested to set 7.5 ms, but with exactly the same behaviour.&lt;br /&gt;&lt;br /&gt;I have tested the project both at my office and at home (the original version, not 7.5 ms). At home there should be much less devices communicating. Now I also have tested lesson 2 exercise 3, lesson 3 exercise 1, and lesson 4 exercise 1, and the same connection problem happens there. The different behaviours between the my project and those I have tested from DevAcademy can be repeated, it doesn&amp;#39;t seem to be depending on the environment.&lt;br /&gt;&lt;br /&gt;The differences I see in Wireshark begins with packets 213/116 during the connection process. Then some more differeces can be seen before only the master sends from packet 219 (where things go wrong), while the master and slave both send when connection works fine. So it seems that something makes my phone behave differently between the projects. Though, I haven&amp;#39;t been able to figure out where the difference is.&lt;br /&gt;&lt;br /&gt;/Lars&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431476?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 11:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a45458a-f293-4c8c-93dd-c4518f275da8</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I stumbled over this case very similar to yours:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76815/disconnect-after-connect-parameters-update"&gt;Disconnect after connect parameters update&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems to indicate that in a noisy radio environments, as your office might be judging by your first capture logs, you might have more luck using a smaller connection interval. So maybe it could be a good idea to request 7.5ms from the peripheral right away.&lt;/p&gt;
&lt;p&gt;This one is similar too, but I&amp;#39;m not sure there is anything directly applicable to your problem there:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70865/ll_connection_update_ind-before-response-to-connection-parameters-update-request-causes-disconnect"&gt;LL_CONNECTION_UPDATE_IND before response to Connection Parameters Update Request causes disconnect&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/431000?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 11:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d062fb-12b1-4d02-8b3e-ea723e0dee7c</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;I have made my own BLE-program (called MMS), which is a light version of NUS. Here the connection works fine. It is also possible to send characters to and receive notifications from my dk, and also disconnect. The only difference in the connection process seems to be the lack of LL_CONNECTION_UPDATE_IND in my project. Instead there is an empty PDU (packet 116 compared to 213). Maybe there is some info from the device that makes the phone want to use 7.5 ms in the first case, but not in my project. I have tried to compare the autoconf.h-files, but haven&amp;rsquo;t yet found something that could be interesting to adjust. Do you see something in the connection process that may cause different behaviours of the phone?&lt;/p&gt;
&lt;p&gt;PHY 2M seems to work, and there is 50 ms connection interval.&lt;/p&gt;
&lt;p&gt;/Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-MMS-first-phone_2C00_-connect-UART-disconnect.pcapng"&gt;devzone.nordicsemi.com/.../Capture-MMS-first-phone_2C00_-connect-UART-disconnect.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/430982?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 11:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e9fbc66-07b2-494a-a80a-26270a1e57b9</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;It&amp;#39;s probably your phone that ignores it yes. The peripheral can state its preferences but in the end it&amp;#39;s up to the central unit to set the connection parameters. You could play around with other parameters and see if they make a difference, maybe you&amp;#39;re able to communicate with your phone if you request to use PHY 1M for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/430945?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 09:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13bef306-e6aa-4c0a-a6d0-bd41764fa1b4</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Interesting suggestion. Now I have tested to set CONFIG_BT_PERIPHERAL_PREF_MIN_INT=39 in prj.conf, but it is the same behaviour. I see in autoconf.h that the setting has taken effect. Without this config in prj.conf, it is CONFIG_BT_PERIPHERAL_PREF_MIN_INT=24 in autoconf.h (should be 30 ms, not 7.5 ms). So even with the default 24 it should be much bigger than 7.5 ms. Is it my phone that doesn&amp;#39;t care about it, or is there something wrong with the config?&lt;/p&gt;
&lt;p&gt;Seems strange to use a red colour when something is correct. But maybe the LED is used that way.&lt;/p&gt;
&lt;p&gt;/Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-dk-and-first-phone_2C00_-CONFIG_5F00_BT_5F00_PERIPHERAL_5F00_PREF_5F00_MIN_5F00_INT-39.pcapng"&gt;devzone.nordicsemi.com/.../Capture-dk-and-first-phone_2C00_-CONFIG_5F00_BT_5F00_PERIPHERAL_5F00_PREF_5F00_MIN_5F00_INT-39.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/430940?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 09:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5feb355-ec25-4c9e-8481-9fec29b57a55</guid><dc:creator>Einarh</dc:creator><description>[quote user="Lars M"]There is an opcode, LL_CONNECTION_UPDATE_IND, that is present in the communication where things don’t work. That is where the 7.5 ms connection interval is set. Can that be the problem?[/quote]
&lt;p&gt;Yes this seems to be the main difference I can see. You could try to set a minimum preferred connection interval in your peripheral&amp;#39;s prj.conf file:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_PERIPHERAL_PREF_MIN_INT=[number]&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You could for instance set it to 39, which seems to be the connection interval with the other phone.&lt;/p&gt;
[quote user="Lars M"]After CONNECT_IND is sent from a phone, the next few opcodes differ in order between the two phones. Why is that? Does It matter?[/quote]
&lt;p&gt;It looks like the phones are doing the same things just in a slightly different order, I don&amp;#39;t think it should matter.&lt;/p&gt;
[quote user="Lars M"]&lt;p&gt;I also notice that the RGB_LED is lit red on my nRF52840 dongle (with the sniffer firmware) as long as the connection is established. Is that correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m not sure what the led is supposed to indicate and I&amp;#39;m not sure where it&amp;#39;s documented, but indicating an established connection would make sense yes.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Bluetooth LE connection problems</title><link>https://devzone.nordicsemi.com/thread/430910?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 07:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639377e2-09fe-4b48-a360-39de1a2dc597</guid><dc:creator>Lars M</dc:creator><description>&lt;p&gt;Now I have tested to connect via another phone, a Samsung Galaxy A13 5G. Everything seems to work fine: connection, reading button status, button notifications, controlling the LED and disconnecting. I have attached the Wireshark file where all these features are tested. Obviously, something differs from my first phone (Samsung Galaxy S21 5G). There is an opcode, LL_CONNECTION_UPDATE_IND, that is present in the communication where things don&amp;rsquo;t work. That is where the 7.5 ms connection interval is set. Can that be the problem?&lt;/p&gt;
&lt;p&gt;After CONNECT_IND is sent from a phone, the next few opcodes differ in order between the two phones. Why is that? Does It matter?&lt;/p&gt;
&lt;p&gt;I also notice that the RGB_LED is lit red on my nRF52840 dongle (with the sniffer firmware) as long as the connection is established. Is that correct?&lt;/p&gt;
&lt;p&gt;/Lars&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-dk-and-second-phone.pcapng"&gt;devzone.nordicsemi.com/.../Capture-dk-and-second-phone.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>