<?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>nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue</link><description>Hi, 
 I&amp;#39;m working through a number of the PCA10040e examples (SDK16 | S112 | nRF52810 - mouse and keyboard to be specific) and have noticed some irregular behavior when waking the peripheral from sleep. After bonding, if you put the peripheral to sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2020 07:51:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue" /><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/272880?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 07:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:175fe1c3-5e36-4d45-9a62-34d2051d8359</guid><dc:creator>Kenneth</dc:creator><description>[quote user="dr9"]Is there any way to detect the failed reconnect on the peripheral end and re-initiate?[/quote]
&lt;p&gt;Your latest screenshot show that the peripheral do establish connection,&amp;nbsp;link is encrypted, and&amp;nbsp;it looks like it also can send battery notifications.&lt;/p&gt;
&lt;p&gt;Maybe you can check if the&amp;nbsp;&lt;span&gt;sd_ble_gatts_hvx() that is sent for button presses are successfully executed? E.g. no error code when calling&amp;nbsp;sd_ble_gatts_hvx(), and that you experience BLE_GATTS_EVT_HVN_TX_COMPLETE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_4_2_4#ga313fe43c2e93267da668572e885945db&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are not&amp;nbsp;&lt;span&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE you could potentially use that as a indicator that the packet is not received, and thereby disconnect, start advertisement and re-connect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/272814?ContentTypeID=1</link><pubDate>Sat, 03 Oct 2020 02:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b094185-5585-4c6a-8c03-efdbced104d0</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;HI Kenneth,&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271942#271942"](e.g. if other phones also show the same, or if it affect normal usage when phone is not in sleep).[/quote]
&lt;p&gt;Tested with an iPhone 11 - same result.&amp;nbsp; Will have results on a couple of androids over the weekend.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I also began to rebuild in SDK14.2 so that I could use S132, but due to memory size constraints, it looks like I&amp;#39;ll be unable to achieve the desired outcome going that route.&amp;nbsp; I&amp;#39;m not expecting any real action from Apple.&amp;nbsp; Is there any way to detect the failed reconnect on the peripheral end and re-initiate?&amp;nbsp; If not, it looks like I&amp;#39;ll be forced to step up to the nRF52832...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/272421?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 07:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f5e2a7-0d0f-42ca-9b20-7de475740488</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Yes, you may find these two links useful:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52810_dev_kit.html"&gt;https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52810_dev_kit.html&lt;br /&gt;&lt;/a&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52810/COMP/nrf52810/nrf52810_ble_qdid_qual_matrix.html"&gt;https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52810/COMP/nrf52810/nrf52810_ble_qdid_qual_matrix.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/272386?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 17:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32fb0ecd-6d64-4990-b380-9d217c7e2a1c</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Is there any chance that I can use SDK16 and S132 and the nRF52810?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/272122?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 15:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595879ae-a3f0-4b98-9f30-e47b346dba36</guid><dc:creator>dr9</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271942#271942"]so doing a full clear cache on the phone side[/quote]
&lt;p&gt;Unfortunately this made no difference.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking for a newer iPhone to see if the behavior is any different there.&amp;nbsp; If its not, I may be stuck going to a nRF52832 chip or completely rebuilding my application in SDK14.2.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271942#271942"]or if it affect normal usage when phone is not in sleep[/quote]
&lt;p&gt;If the phone is not asleep, there is no issue at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271942?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 07:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:094b35b6-f303-4aa2-b9d1-9020365c00fb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The way I see this is that the phone in this case have a bug of some sort (could be an internal race condition of some sort). It may be triggered by the content of the LL_FEATURE_RSP, since that is slightly different between S112 and S132.&lt;/p&gt;
&lt;p&gt;It can also be that the actual issue is triggered from the very first time the two devices bonded (e.g. some data not stored as it should be), so doing a full clear cache on the phone side (e.g. remove device from the BT listing and turn off/on BT) and re-bond could be worth a try. Just make sure that re-bonding is done without the&amp;nbsp;&lt;span&gt;pm_handler_secure_on_connection()/pm_handler_on_pm_evt() on the peripheral device.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know if you have any new findings (e.g. if other phones also show the same, or if it affect normal usage when phone is not in sleep).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271890?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 21:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25594aea-cac6-44a1-ad03-00372470f837</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;For what its worth, I grabbed a copy of SDK 14.2 and followed the instructions &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/the-s132-v5-1-0-is-now-production-tested-on-nrf52810?CommentId=ab313a46-4b1c-46f3-bb3c-8528194b47bb"&gt;here&lt;/a&gt; to convert the emulated keyboard project from S112 to S132 (v5.1). This resulted in as-expected reconnection behavior.&amp;nbsp; I&amp;#39;m considering reworking my application (developed in SDK 16) in SDK14.2, but would rather see this function in SDK 16.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271885?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 19:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ccfc42-11c6-463b-8fd6-013b8b881453</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;That took care of the &lt;em&gt;Rcvd Security Request: AuthReq: Bonding &lt;/em&gt;packet shown in the sniffer, but did not help with the re-connection issue.&lt;/p&gt;
&lt;p&gt;Connects:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601323045974v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Doesn&amp;#39;t connect:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601323029154v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271884?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 19:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7669dbed-3fed-48f4-a908-5f48891cea1f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Seems this can be called from two places, please comment out&amp;nbsp;pm_handler_on_pm_evt() in&amp;nbsp;pm_evt_handler().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271883?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 19:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9149b2e6-f140-426e-b251-89641085db7c</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Its being called in security_dispatcher.c&amp;nbsp; &lt;/p&gt;
&lt;p&gt;snapshot of the call stack:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601320714920v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271881?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 19:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ea424ac-3746-4422-a1df-5ac56464a029</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you try to trace back in your code to where sd_ble_gap_authenticate() may be called? I assume setting a breakpoint may help, since it shouldn&amp;#39;t be called here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271879?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 18:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2dcc6de-6a63-4c96-a7fb-187e0525bed3</guid><dc:creator>dr9</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271877#271877"]But neither working or failing log show any key presses (that should trigger a notification for the key press), only battery level notification is shown:[/quote]
&lt;p&gt;EDIT: peripheral on, not connected to central:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601320359188v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;peripheral on, connected to central:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601320452603v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-----end_edit&lt;/p&gt;
&lt;p&gt;Yes - just did a clean build and capture:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601319293007v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1601319311279v2.png" /&gt;&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271877#271877"]Are you sure? Because the trace do show SMP request on both 12646 and 11661, then something else must be calling the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v7.2.0/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___r_e_q___m_s_c.html"&gt;security request&lt;/a&gt;&amp;nbsp;in your code.[/quote]
&lt;p&gt;edit: I only found pm_handler_secure_on_connection() being called in peer_manager_handler.c&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271877#271877"]What iPhone and ios version was[/quote]
&lt;p&gt;iPhone 8, iOS 14.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271877?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 18:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe6304d-ef70-45b7-adca-5826fd098b6b</guid><dc:creator>Kenneth</dc:creator><description>[quote user="dr9"]was commented out in peer_manager_handler.c for the build associated with that trace.[/quote]
&lt;p&gt;Are you sure? Because the trace do show SMP request on both 12646 and 11661, then something else must be calling the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v7.2.0/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___r_e_q___m_s_c.html"&gt;security request&lt;/a&gt;&amp;nbsp;in your code.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6758.pastedimage1601318150570v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="dr9"]As expected, pressing a key yields no response from the central.&amp;nbsp;[/quote]
&lt;p&gt;But neither working or failing log show any key presses (that should trigger a notification for the key press), only battery level notification is shown:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8311.pastedimage1601318587420v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: Something is not as it should be here: the central is writing multiple write requests with the value of 00 to the same handle (0x001e). This isn&amp;#39;t really an issue and is allowed to do, but seems&amp;nbsp;unnecessary. What iPhone and ios version was &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0871.20200925-_2D00_-full-capture.pcapng"&gt;20200925 - full capture.pcapng&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271856?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 15:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e2c5ac-e558-420a-ae53-699e894ac675</guid><dc:creator>dr9</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271778#271778"]&amp;nbsp;&lt;span&gt;pm_handler_secure_on_connection()&lt;/span&gt;[/quote]
&lt;p&gt;was commented out in peer_manager_handler.c for the build associated with that trace.&lt;/p&gt;
&lt;p&gt;When I wake the central after waking the peripheral, the peripheral shows as &amp;quot;not connected&amp;quot; in the central&amp;#39;s Bluetooth devices list.&amp;nbsp; As expected, pressing a key yields no response from the central.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I compile and build this to a nRF52832 using S112, the same behavior is observed.&amp;nbsp; If I build with S132, the peripheral reconnects in the background without an issue. By elimination, it looks like the differences in S112 and S132 somehow contribute to the difference in behavior.&amp;nbsp;&amp;nbsp; Thoughts?&lt;/p&gt;
&lt;p&gt;And yes, I&amp;#39;ll reach out to Apple, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271778?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 12:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4410aec-4931-4760-a46e-9fac523e79d4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Please comment out&amp;nbsp;&lt;span&gt;pm_handler_secure_on_connection(), since that break with the apple guidelines chapter 35.10.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not sure if I understand what is actually failing, because both instances show that the peers do connect, they encrypt, and for instance the battery level is notified from the peripheral to the central every 2 seconds. So I guess the question is, what is not working here? What happens if you for instance press a key?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is nothing in the logs that indicate an issue with the peripheral, so if the phone behave differently then I suggest contacting apple on this issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The logs do show that the phone for one of the connections do also execute a write to the CCCD&amp;#39;s, however the application on the peripheral do not require this, as the CCCD&amp;#39;s are already stored from previous connection and thereby restored on connection (which is why the battery level notification works in both cases).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271612?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 23:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06d80b2-7440-4e0c-a669-e23c01ad6be3</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Finally got this working.&amp;nbsp; Lines 11659-12577 represent a failed reconnect effort.&amp;nbsp; Lines 12642-13580 represent a successful one.&amp;nbsp; The firs obvious difference is that an MTU exchange is not happening.&amp;nbsp; Beyond that, I&amp;#39;m unsure where to look for clues as to what is not working properly.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200925-_2D00_-full-capture.pcapng"&gt;devzone.nordicsemi.com/.../20200925-_2D00_-full-capture.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271467?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 09:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c6b25fd-2147-4ff1-8862-1fc8f3b1840b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The LTK should be:&lt;br /&gt;uint8_t&amp;nbsp; &amp;nbsp;ltk[BLE_GAP_SEC_KEY_LEN];&amp;nbsp; &amp;nbsp;/**&amp;lt; Long Term Key. */&lt;/p&gt;
&lt;p&gt;You may set a breakpoint in your project just to read out the LTK, since it doesn&amp;#39;t change you only need to read it once and it will be valid until you re-bond. After reading out the LTK you can then disconnect the debugger and run the application as normal with the nRF Sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271404?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 19:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e918e28-bab5-4bcf-ab95-4469889b6409</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;I have a hex word printing from a debug terminal that I can enter into the passkey field.&amp;nbsp; Is this what you are looking for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271399?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 18:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97f21b0-9f06-4c46-8573-a8438332b201</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Yes - I agree.&amp;nbsp; I&amp;#39;m just surprised that the issue doesn&amp;#39;t present itself with other chips/softdevices.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Tried forcing 1MBPS in the ble_evt_handler() but observed no difference.&amp;nbsp; Will be trying per your edits next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271398?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 18:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebcae6a6-8a35-4380-a711-3aa0375ab32f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t make much sense, sounds like an issue on phone side. But maybe you can change from BLE_GAP_PHY_AUTO to BLE_GAP_PHY_1MBPS in ble_evt_handler() to see if there is any difference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
        {
            NRF_LOG_DEBUG(&amp;quot;PHY update request.&amp;quot;);
            ble_gap_phys_t const phys =
            {
                .rx_phys = BLE_GAP_PHY_1MBPS, // BLE_GAP_PHY_AUTO,
                .tx_phys = BLE_GAP_PHY_1MBPS, // BLE_GAP_PHY_AUTO,
            };
            err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
            APP_ERROR_CHECK(err_code);
        } break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately the sniffer log is encrypted, so difficult to know exactly what is happening, this means we need the LTK to decrypt the data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To output the LTK the easiest may be to call pm_peer_data_bonding_load() to get the LTK, this can for instance be done after&amp;nbsp; PM_EVT_PEER_DATA_UPDATE_SUCCEEDED or PM_EVT_CONN_SEC_SUCCEEDED event in pm_evt_handler() in main.c.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pm_peer_data_bonding_t peer_bonding_data;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pm_peer_data_bonding_load(m_peer_id, peer_bonding_data);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //16byte LTK in peer_bonding_data.own_ltk.enc_info.ltk;&lt;/p&gt;
&lt;p&gt;I believe (hope) that the LTK can be inserted in wireshark the same way as legacy pairing with OOB:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html"&gt;https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/action_paired.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am not sure what is MSB and LSB in this case, so you may need to try both orders of the 16bytes LTK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271386?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 15:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20423704-0817-421c-a0b6-8144b1d2ce43</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Same behavior with pm_handler_secure_on_connection() commented out in peer_manager_handler.c&lt;/p&gt;
&lt;p&gt;Sniffer logs attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200924-_2D00_-sniffer_5F00_doesnt_5F00_connect.pcapng"&gt;devzone.nordicsemi.com/.../20200924-_2D00_-sniffer_5F00_doesnt_5F00_connect.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/20200924-_2D00_-sniffer_5F00_connects.pcapng"&gt;devzone.nordicsemi.com/.../20200924-_2D00_-sniffer_5F00_connects.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if it means anything, but in the log where the connection isn&amp;#39;t established, the PHY shifts from 1M to 2M at line 42.&amp;nbsp; On the log showing a successful connection, it stays in 1M for the duration.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271334?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 12:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8db819c3-bd18-492e-bc57-68869f2acf0b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looks like all logs connect here, and all logs also indicate the link is encrypted. So I guess this point to a different reason than it&amp;#39;s not connecting?&lt;/p&gt;
&lt;p&gt;Can you try to comment out&amp;nbsp;pm_handler_secure_on_connection() in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271200?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 21:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cf44db1-0259-4561-8a00-09e2be69b554</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;adding a second set of traces in case you want to see multiple samples.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200923-_2D00_-sniffer_5F00_connects-_2D00_-2.pcapng"&gt;devzone.nordicsemi.com/.../20200923-_2D00_-sniffer_5F00_connects-_2D00_-2.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200923-_2D00_-sniffer_5F00_doesnt_5F00_connect-_2D00_-2.pcapng"&gt;devzone.nordicsemi.com/.../20200923-_2D00_-sniffer_5F00_doesnt_5F00_connect-_2D00_-2.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271198?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 20:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b77f07-2ea4-4ffd-bdef-c3073180c9a4</guid><dc:creator>dr9</dc:creator><description>[quote userid="88349" url="~/f/nordic-q-a/66239/nrf52810-s112-background-reconnect-issue/271185"]Might be something with the older iOS.&amp;nbsp; I&amp;#39;m updating that phone now, too.[/quote]
&lt;p&gt;Updated to iOS 14 - no change in behavior observed.&lt;/p&gt;
&lt;p&gt;Sniffer traces are attached.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The trace titled &amp;quot;...sniffer_connects&amp;quot; represents what happens when the peripheral wakes up while the central is awake.&amp;nbsp; The trace titled &amp;quot;...sniffer_doesn&amp;#39;t_connect&amp;quot; represents what happens when the peripheral wakes up while the central is asleep.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3681.20200923-_2D00_-sniffer_5F00_connects.pcapng"&gt;devzone.nordicsemi.com/.../3681.20200923-_2D00_-sniffer_5F00_connects.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/6327.20200923-_2D00_-sniffer_5F00_doesnt_5F00_connect.pcapng"&gt;devzone.nordicsemi.com/.../6327.20200923-_2D00_-sniffer_5F00_doesnt_5F00_connect.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 S112 background reconnect issue</title><link>https://devzone.nordicsemi.com/thread/271185?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 17:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08748121-1698-45f4-85a5-25c4f8028ecd</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Getting the sniffer running shortly.&lt;/p&gt;
&lt;p&gt;Initial test phone was an 8 running iOS13.3.1.&amp;nbsp; I just tested it on an iPad Pro running 13.7 and it works fine!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Might be something with the older iOS.&amp;nbsp; I&amp;#39;m updating that phone now, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>