<?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>Connection dropped immediately by peripheral while connecting from nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94420/connection-dropped-immediately-by-peripheral-while-connecting-from-nrf52840</link><description>I try to establish a connection from nRFConnect Desktop using nRF52840DK to some hearing aid peripheral, but connection is immediately dropped after sending the first command. Also using some adjusted examples from nRFSDK in central role, will lead to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Dec 2022 07:43:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94420/connection-dropped-immediately-by-peripheral-while-connecting-from-nrf52840" /><item><title>RE: Connection dropped immediately by peripheral while connecting from nRF52840</title><link>https://devzone.nordicsemi.com/thread/398918?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 07:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df05f9dc-6a0c-4d23-bc77-ec4bcdc002ce</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see, that is good. The next then would probably be to check what the difference is with regards to what you see on air between the nRF Connect SDK central examples and the others to help narrow down what it could be that the peripheral requires. I do not have any more specific advice, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection dropped immediately by peripheral while connecting from nRF52840</title><link>https://devzone.nordicsemi.com/thread/398614?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 17:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5815a1d8-fe57-44a5-8ec2-b09cebdfe7f2</guid><dc:creator>DFisch</dc:creator><description>&lt;p&gt;After spending several hours of analyzing, setting up toolchains and troubleshooting, I found a working setup.&lt;/p&gt;
&lt;p&gt;Not working:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF5 SDK central examples&lt;/li&gt;
&lt;li&gt;nRF Connect Desktop (probably also based on nRF5 SDK / SoftDevice)&lt;/li&gt;
&lt;li&gt;NimBLE open-source bluetooth stack&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Working:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF Connect SDK central examples&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection dropped immediately by peripheral while connecting from nRF52840</title><link>https://devzone.nordicsemi.com/thread/398575?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 14:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ccf463-72e3-450f-a587-28202c0bd39e</guid><dc:creator>DFisch</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. Unfortunately, the peripheral is not our product.&lt;/p&gt;
&lt;p&gt;I tried to compare all traces for working/non-working centrals and try to adjust nRF52840 parameters to eliminate all differences.&lt;/p&gt;
&lt;p&gt;What I did so far:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PHY Flag set to 1M in packet header&lt;/li&gt;
&lt;li&gt;CSA set to #1 in CONNECT_IND header&lt;/li&gt;
&lt;li&gt;Window Size: 2 (2,5 msec)&lt;/li&gt;
&lt;li&gt;Window Offset: 35 (43,75 msec)&lt;/li&gt;
&lt;li&gt;Interval: 40 (50 msec)&lt;/li&gt;
&lt;li&gt;Latency: 0&lt;/li&gt;
&lt;li&gt;Timeout: 500 (5000 msec)&lt;/li&gt;
&lt;li&gt;Sleep clock accuracy: 1 (151ppm to 250ppm)&lt;/li&gt;
&lt;li&gt;Adjust the feature map in LL_FEATURE_REQ&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Attached the wireshark log for nRF52840 central with all parameters adjusted to be the same like in successfull Android 9 connection procedure.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m running out of ideas what else could cause the peripheral to just terminate the connection. Android 9, 11 and Windows central will work just fine.&lt;/p&gt;
&lt;p&gt;As there is same behavior with nRFConnect Desktop app and also for DK and Dongle, it seems to be some general issue. What else could cause differences, that are maybe hidden by the sniffing tool? &lt;br /&gt;Any more timing settings that can be adjusted?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/resized-image/__size/2080x2000/__key/communityserver-discussions-components-files/4/8666.wireshark.png"&gt;wireshark.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF52840_5F00_params.pcapng"&gt;nRF52840_params.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/Android9_5F00_params.pcapng"&gt;Android9_params.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection dropped immediately by peripheral while connecting from nRF52840</title><link>https://devzone.nordicsemi.com/thread/398524?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 12:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27690614-6e63-421c-8318-79c915aaa76b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The disconnect reason in&amp;nbsp;nRF5280_DK.pcapng is 0x13 (Remote user terminated connection), so the peripheral decided to do terminate for some reason which we cannot see from the sniffer trace. If you have developed the peripheral then the&amp;nbsp;simplest would probably be to debug on the peripheral end to see what happens there and why it disconnects. If that is not your product, you don&amp;#39;t really have any other way than to try to compare traces to see the difference in the central behavior, and experiment&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>