<?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>Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105113/reasons-for-0x22-error-on-disconnection</link><description>I am seeing many 0x22 error codes on the disconnect event when I connect to an iPhone with 5.2/5.3 BT version. I do not see the 0x22 error when connecting to iPhones with 5.1 BT such as the iPhone XR or Android phones. I am experiencing this in my custom</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Nov 2023 08:56:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105113/reasons-for-0x22-error-on-disconnection" /><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/454361?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 08:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0faaab9-f6c5-44a0-9238-515ae2d328d3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The issue is that when receiving a channel map update as a peripheral, the channel is selected using the old channel map when the instant occurs. So the first packet after a channel map update will be lost and retransmitted. This is not a serious issue (which may be why it has not been found before), but may lead to lightly lower performance due to packet loss&amp;nbsp;when connected to a central that does a lot of channel pap updates.&lt;/p&gt;
&lt;p&gt;This causes the behavior you reported, where&amp;nbsp;the peripheral disconnects, and the ACK from the central to the termination happens at the instant of a channel map update, and is not received due to this bug. This will cause the peripheral to wait the supervision timeout before disconnecting and generate a timeout event (0x22 in this case). This is the same as will happen if there is interference when the ACK from the central is sent, and we get a CRC error.&lt;/p&gt;
&lt;p&gt;This will be fixed in the SoftDevice Controller, but there are no plans to fix the old SoftDevices. The consequences are low as channel map updates are typically not very frequent, and the same behavior can occur doe to packet loss caused by other reasons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/454293?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 18:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc861f8-38c1-408f-b93e-1ac68c36f7a1</guid><dc:creator>jeffdev3</dc:creator><description>&lt;p&gt;I am still able to reproduce the problem after upgrading to iOS 17.1 on an iPhone 12 Mini.&amp;nbsp; Can you explain what the issue is in the SoftDevice and what the consequences are of not fixing it?&amp;nbsp; My product is based on SoftDevice 7.0.1 and doesn&amp;#39;t use the nRF Connect SDK so I will not be able to incorporate the fix.&amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/453738?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a82df260-ae08-4395-9f76-c8a01f1e8acb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have identified an issue in the SoftDevice Controller which we believe is the cause of what you have reported. This will be fixed in a future nRF Connect SDK release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/453574?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 19:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f912992f-4682-42a8-8682-ea084471c391</guid><dc:creator>jeffdev3</dc:creator><description>&lt;p&gt;I have seen the problem on iOS 16.x and 17.0.1 usually within 20 connections.&amp;nbsp; I will update to 17.1 and try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/452971?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4eedf6-a0d0-476d-bfe2-52336205cb7e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;for the project. We have tested your project &lt;span&gt;(with&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT=n) with&lt;/span&gt;&amp;nbsp;an iPhone 12 and and iPhone 15 Pro with iOS 17.1.0, but not been able to reproduce yet. So far we have only seen 0x16 as disconnect reason, which is expected. Which iOS version do you have on the phone you reproduce it with? And do you see it consistently?&lt;/p&gt;
&lt;p&gt;That said, our Bluetooth stack team is looking into this and have spotted a potential&amp;nbsp;issue in the SoftDevice controller that&amp;nbsp;may&amp;nbsp;explain what you are seeing. So we are continuing to look into this.&lt;/p&gt;
&lt;p&gt;Update: We have been able to reproduce on an iPhone (but no longer after updating to iOS 17.1.0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/452846?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 16:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f6815a6-e0a6-4f43-8183-89f68ef6421a</guid><dc:creator>jeffdev3</dc:creator><description>&lt;p&gt;I am using NCS 2.4.2 and iPhone 12 Mini.&amp;nbsp; I attached the project used.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4682.peripheral.zip"&gt;devzone.nordicsemi.com/.../4682.peripheral.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reasons for 0x22 error on disconnection</title><link>https://devzone.nordicsemi.com/thread/452783?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 12:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55fabff3-60b2-4fb3-bee6-5d09d5ad0509</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have&amp;nbsp;started to look into this and have some questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which nRF Connect SDK version are you using?&lt;/li&gt;
&lt;li&gt;Can you share the modified example project you used to reproduce the issue?&lt;/li&gt;
&lt;li&gt;Can&amp;nbsp; you specify the exact iPhone models and iOS versions you have seen this issue with?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>