<?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>Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56689/central-device-claims-to-have-connected-but-no-connection-event-is-fired-on-the-peripheral</link><description>I&amp;#39;m developing a multirole device to connect to a peripheral device that we developed earlier. 
 The multirole device when acting as a central device it scans for the peripheral and if found it connects, then secure the connection and bond. After several</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 10:53:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56689/central-device-claims-to-have-connected-but-no-connection-event-is-fired-on-the-peripheral" /><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/239065?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 10:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96c0769-15af-4529-bdc9-2e2052cc1d14</guid><dc:creator>Kenneth</dc:creator><description>[quote user="nvelozsavino"]I&amp;#39;ve been noticing that the issue is happening more often now (the battery voltage is lower), I&amp;#39;m not sure if this could be important but we are not using the DC-DC. Is there a minimum voltage to ensure that the flash writes properly?[/quote]
&lt;p&gt;The flash can be read, written and erased over the entire supply voltage range yes. Though you may look into the stability of VDD if you think it is fluctuating a lot, becuse very large ripples (or if VDD step up) this can cause the power on reset to trigger, which will prevent any on-going flash operation or queue to finish.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should also look into if you have any asserts or hardfaults, since those also typically will do a soft reset of the chip (default code of the error handlers), which also will prevent any on-going flash or queue to finish. For instance a flash erase operation can block the CPU execution with ~90ms, which may cause multiple interrupts to be pending for a long period of time.&lt;/p&gt;
&lt;p&gt;Have you tried to dump the entire content of the flash before and after it is failing? Then you can for instance look at the flash page tags and record layout:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds_format.html#lib_fds_format_page"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds_format.html#lib_fds_format_page&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please follow up on the: &amp;quot;&lt;span&gt;Do you have an on-air sniffer log that show bonding between the two peers before the re-connection fails?&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/238474?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 10:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c19b8d5a-274b-4ef7-b2cd-b55dbee2e3c9</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;HI Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t have any logic to make sure the fstorage is not busy before going to sleep. I&amp;#39;ll try to implement something like that to see if it helps.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been noticing that the issue is happening more often now (the battery voltage is lower), I&amp;#39;m not sure if this could be important but we are not using the DC-DC. Is there a minimum voltage to ensure that the flash writes properly?&lt;/p&gt;
&lt;p&gt;If the problem is that the devices are not bonding, then 2 questions arise:&lt;/p&gt;
&lt;p&gt;1. How they lose the bonding information? Both? central and peripheral? or is the central who lose the bonding information, correct me if I&amp;#39;m wrong but this could&amp;nbsp;happen if the flash gets corrupted right?&lt;/p&gt;
&lt;p&gt;2. The bonding information should be replaced when I delete the bonds on the central and reenable the whitelist on both devices, however, just deleting the bonds doesn&amp;#39;t work, you have to do a flash erase in order to work again. As far as I understand deleting bonds is just invalidating the files stored by the peer manager in the fstorage. Again, my hypotesis still holds, if the flash is corrupted somehow, invalidating the files containing the bonds doesn&amp;#39;t seem to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/237774?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21491fb-0b06-492f-82e8-e45dd0911659</guid><dc:creator>Kenneth</dc:creator><description>[quote user="nvelozsavino"]I don&amp;#39;t know if&amp;nbsp;it could be that the central device goes to System OFF if there&amp;#39;s no activity registered by an accelerometer, It might be possible that the device shuts down while a flash operation is in progress and this could cause the corruption, maybe between invalidating a file before adding the new updated one.[/quote]
&lt;p&gt;Do you have any logic that make sure&amp;nbsp;nrf_fstorage_is_busy(NULL) does not return true before you are going to sleep?&amp;nbsp;&lt;/p&gt;
[quote user="nvelozsavino"]My guess is that somehow the flash gets corrupted, something related to the info of the peer saved by the peer manager.[/quote]
&lt;p&gt;The problem with theory is that it would still connect if this was the case, only encryption would fail. I am thinking that the real problem here is that the two devices are not bonding at all. Do you have an on-air sniffer log that show bonding between the two peers before the re-connection fails?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/237656?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c402ec5-fc65-43d0-a510-f6dbbe01a4fc</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Hi Kenneth, I believe that the problem is definetly the Central, and I strongly doubt that there&amp;#39;s something to do with noise, if that&amp;nbsp;were the case, the probability of a successful connection should be higher than 0 after the problem manifest for the first time, what I&amp;#39;ve seen is that once the problem occours once, the central device never reconnects, other centrals can connect successfully to the same peripheral.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested deleting all bonds on the central without success, the only way it can work again without having to re-flash the MCU is doing a clean of all the data on the flash (only data stored by the peer manager, and the app, not the actual running program)&lt;/p&gt;
&lt;p&gt;My guess is that somehow the flash gets corrupted, something related to the info of the peer saved by the peer manager. I don&amp;#39;t know if&amp;nbsp;it could be that the central device goes to System OFF if there&amp;#39;s no activity registered by an accelerometer, It might be possible that the device shuts down while a flash operation is in progress and this could cause the corruption, maybe between invalidating a file before adding the new updated one.&lt;/p&gt;
&lt;p&gt;We had a while ago another issue with another hardware, also a central device, after about 100 different connections to different peripherals (allowing only 1 at the time in the whitelist), the central stop connecting anymore and a clean of the flash was required. We haven&amp;#39;t had any new reports from the user about this problem again, but I don&amp;#39;t know if it&amp;#39;s because we added an option to factory reset the central which solve the issue. Our guess that time was that the flash filled and there was a problem with the garbage collector that damaged the&amp;nbsp;peers information. That time we were using a different sdk and softdevice version (s132 v5) and a different hardware, but now that I remember, it was the same behavior&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/237490?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 14:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8cc589-5960-4927-b644-920eb6e93140</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I assume that the central is&amp;nbsp;f5:c6:75:d8:88:50 and the peripheral is&amp;nbsp;e5:fa:95:ec:dc:61.&lt;/p&gt;
&lt;p&gt;From both logs&amp;nbsp;I can see that the central send several scan request, but none are responded by a scan response by the peripheral. All the scan requests have invalid CRC according to the sniffer logs&amp;nbsp;from the specific central, this lead me to believe you may have marginal hardware and/or some noise in the system. Is there any serial interfaces and/or gpios active with high drive strength that may impact the modulation of the scan request packet on the central? Have you done any DTM testing on your central hardware to verify modulation characteristics etc? Can you use an nRF52-DK for comparison?&lt;/p&gt;
&lt;p&gt;Also&amp;nbsp;I can see that other central devices (e.g. 74:33:b4:05:18:b9 and 76:d6:47:c6:8e:94)&amp;nbsp;seems to be able to send scan request packets successfully (some errors, but not all) and receive scan response from the peripheral during this time. Have you tried to call connect from any of these centrals for comparison?&lt;/p&gt;
&lt;p&gt;The connection request packets don&amp;#39;t have any CRC errors based on the logs, so this leads me to believe that the whitelist on the peripheral may be wrong and/or some noise in the system, but of course difficult to know. Can you set a breakpoint in&amp;nbsp;sd_ble_gap_whitelist_set() just to check that the addr_ptrs contain the central address (f&lt;span&gt;5:c6:75:d8:88:50)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried to call&amp;nbsp;ble_advertising_restart_without_whitelist() to just check?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I find it slightly inconclusive yet if it&amp;#39;s the peripheral or central side that is the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/237177?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 14:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b72ebd-c3e3-4661-804b-468bf0fa02c1</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Hi Kenneth, today I got the error again, I&amp;#39;m attaching the sniffer traces where it fails&lt;/p&gt;
&lt;p&gt;Within the file:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connection_5F00_unsuccessful_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../connection_5F00_unsuccessful_5F00_2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;at line 854 you can see the Central trying to connect and the peripheral doesn&amp;#39;t respond, both using their whitelists&lt;/p&gt;
&lt;p&gt;at line 2012 there&amp;#39;s a connection again but this time both devices has their whitelist disabled, this time I can see that the peripheral is disconnecting, at line 2020&lt;/p&gt;
&lt;p&gt;after that, you will find lots of attemps with the whitelist enabled, Then I did a factory reset (mass erase) on the peripheral and starting line 4163 you can see the connection attempt and the peripheral is disconnecting.&lt;/p&gt;
&lt;p&gt;The problem is solved when I perform a mass erase on the central, as you can see in the successful file&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connection_5F00_successful_5F00_3.pcapng"&gt;devzone.nordicsemi.com/.../connection_5F00_successful_5F00_3.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;as you can see in line 981&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/235256?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 15:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139c5eda-575a-408a-819d-7879441e5a7b</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Hi Kenneth, no, it&amp;#39;s not the same device, I have several peripherals and 4 master devices, it doesn&amp;#39;t seem to be related with a specific hardware, I&amp;#39;ve seen the issue in all combinations.&lt;/p&gt;
&lt;p&gt;However I&amp;#39;ll try to reproduce both a successful connection and the issue with the same pair of devices&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/235248?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 15:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71091474-c7d0-4f40-92d1-1e5e67419894</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;But this is not the same devices?&lt;/p&gt;
&lt;p&gt;Seems both the central and peripheral gap addresses are different between working and failing?&lt;/p&gt;
&lt;p&gt;Are you changing the GAP addresses of peers here?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/234999?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 16:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37e10f88-f15b-4680-bb0e-616e64bb8242</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Here&amp;#39;s the trace when the connection is successful, the packet id of the connection request is 11199&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connection_5F00_successful.pcapng"&gt;devzone.nordicsemi.com/.../connection_5F00_successful.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/234908?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 12:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4030ed09-b5d1-47c0-b52b-45af745c61dd</guid><dc:creator>Kenneth</dc:creator><description>[quote user="nvelozsavino"]I&amp;#39;ve noticed that the problem happens when the central has more than one device in the whitelist,[/quote]
&lt;p&gt;Do you have a sniffer log of failing and working? The next step would be to look at the content of the connection request packet from the central. The peripheral do not have any knowledge of the whitelist that may be present on the central, so this is indeed very odd.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/234828?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 09:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f0cd09-3de5-4f06-8683-e15335a2567c</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;The MTU exchange shouldn&amp;#39;t wait for the connection response?&lt;/p&gt;
&lt;p&gt;The whitelist is enabled on the peripheral, but the central is a known device and it&amp;#39;s within the whitelist of the peripheral&lt;/p&gt;
&lt;p&gt;The peripheral is our own hardware, It&amp;#39;s working just fine with other central using other softdevice s132 6.0.0&lt;/p&gt;
&lt;p&gt;I doubt it has something to do with signal interference, the problem seems to be related with the flash storage on the central, because as soon as you do a&amp;nbsp;mass erase on&amp;nbsp;the central and&amp;nbsp;disable the whitelist on the peripheral to allow the bond to be updated, it connects again. All this without changing anything in the environment.&lt;/p&gt;
&lt;p&gt;Before you ask, I&amp;#39;ve already tried disabling the whitelist on the peripheral, The peripheral doesn&amp;#39;t even know there&amp;#39;s a connection request.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve noticed that the problem happens when the central has more than one device in the whitelist,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/234731?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 16:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29e5b359-ed1c-4212-9a57-ccf86c5fa959</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Everything is pointing to the connection request packet is not received (the advertisement timing indicate that the interval is not stopped at any time). The MTU exchange is just the first packet from the central, so that doesn&amp;#39;t contradict that the connection request packet is not received.&lt;/p&gt;
&lt;p&gt;Presuming that whitelist is not enabled on the peripheral, then the only other explanation is some noise preventing the connection request packet to be received on the peripheral. Is the peripheral here an nRF52-DK or your own hardware? Is there any serial interfaces active near the antenna that may prevent the packet from being received?&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: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/234140?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 09:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:066039ec-2706-49e3-aea2-2e1500d40582</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;I finally was able to get the sniffer traces, I can&amp;#39;t see any connection response from the peripheral, however, the master still tries to negotiate the MTU&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/traces_5F00_with_5F00_issue.pcapng"&gt;devzone.nordicsemi.com/.../traces_5F00_with_5F00_issue.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The peripheral address is:&amp;nbsp;e6:9d:93:ce:2d:c0&lt;/p&gt;
&lt;p&gt;and the master address is:&amp;nbsp;e1:2e:95:29:49:6c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229930?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 16:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32a78757-945f-4bb2-b0e6-bd0c3b4fbd79</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think the next step for debugging is to try download and use the nRF sniffer, so we may see if the connection request packet is indeed sent or not:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the peripheral you may also monitor the whitelist, to see if it&amp;#39;s updated at any time during, before or after advertisement/connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229916?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 15:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a29f7ae6-2c27-42f2-bacc-c14aac42cc4c</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Hello Keneth, yes, I&amp;#39;m using a whitelist on the peripheral, however, that&amp;#39;s not the problem, there&amp;#39;s no other central trying&amp;nbsp;connecting, and if that would be the case, disabling the whitelist on the peripheral would allow the old central to connect again, however, even&amp;nbsp;disabling the whitelist on the peripheral doesn&amp;#39;t work unles I delete all bonds on the central device.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already tested the allowing repair, that&amp;#39;s not the issue, the code doesn&amp;#39;t even reach the event&amp;nbsp;&lt;span&gt;PM_EVT_CONN_SEC_CONFIG_REQ on the peripheral. before getting to that point it requires to fire at least&amp;nbsp;BLE_GAP_EVT_CONNECTED or&amp;nbsp;&lt;/span&gt;&lt;span&gt;PM_EVT_BONDED_PEER_CONNECTED, whitch doesn&amp;#39;t occour. It&amp;#39;s like the connection request is not going out over the air, or the peripheral filter it somehow, is there a way to debug the Softdevice&amp;nbsp;&lt;/span&gt;sd_ble_gap_connect&amp;nbsp;&lt;span&gt;step by step?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229914?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 15:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c40d446-74e7-4700-b606-aec874615ea2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It sounds very much like that you have some whitelist enabled/active on the peripheral, and if for instance the peripheral is bonded with &amp;gt;8 devices, then it is not able to include the &amp;quot;older&amp;quot; centrals in the whitelist. Hence the &amp;quot;old&amp;quot; central will not be able to connect.&lt;/p&gt;
&lt;p&gt;It may also be because the central have deleted or erased it&amp;#39;s bond data, in such case you need to allow re-pairing from the peripheral by adding the following code on the peripheral:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37837/sdk15-paring-problem/145821#145821"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/37837/sdk15-paring-problem/145821#145821&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you are not altering the GAP address on the central or peripheral here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229842?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 12:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23252ad9-959b-4875-a5a6-02b43d16e724</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Hello Kenneth, as I say before, the connection works fine for&amp;nbsp;a while, I can turn off, turn on, disconnect, reconnect several times, then suddenly, it stops working, no more connection to that particular peripheral, I don&amp;#39;t believe it&amp;#39;s something regarding interference, both devices are close, is not like it sometimes connects and sometimes it fail, when the issue happens, it never connect again. However, without moving anything, just deleting bonds or doing a mass erase it starts working again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to try to sniff the packets to check if there&amp;#39;s something wrong that I&amp;#39;m not seeing in the logs, however I need to&amp;nbsp;get the nrf52 DK or the dongle to do it.&lt;/p&gt;
&lt;p&gt;Summarizing:&lt;/p&gt;
&lt;p&gt;1. After a fresh mass erase or a delete bonds, everything works fine, it always find the peripheral, connect, bonds,&amp;nbsp;reconnects if disconnected, you can power off and on several times&amp;nbsp;and everything works&lt;/p&gt;
&lt;p&gt;2. Suddenly the peripheral doesn&amp;#39;t connect anymore, the Central is able to see the advertising packets from the peripheral, however as soon as the central tries to connect, the BLE_GAP_EVT_CONNECTED is received in the Central device but the peripheral doesn&amp;#39;t receive anything, shortly after the central disconnects&lt;/p&gt;
&lt;p&gt;3. The peripheral is connectable through another central&lt;/p&gt;
&lt;p&gt;4. Scanning and connecting for another peripheral works fine (creating and using a new bond and a new peer entry)&lt;/p&gt;
&lt;p&gt;5. Deleting all bonds on the central and allowing the peripheral to refresh the bond information fix the connection issues&lt;/p&gt;
&lt;p&gt;6. Repeat from step 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t count how many times the connection works before getting the issue, however I&amp;#39;m sure that it&amp;#39;s more than at least 10 times, but probably a lot more.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229823?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 12:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d840de64-5888-4174-a344-2c3e500dc70d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You are not writing anything about how frequently this occurs ,&amp;nbsp;but it is possible that the connection request packet from the central to the peripheral from time to time is lost (e.g. due to interference). In such case the central will first get an&amp;nbsp;BLE_GAP_EVT_CONNECTED event, then shortly after get an BLE_GAP_EVT_DISCONNECTED event with disconnect reason BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED.&amp;nbsp;&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: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229678?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 15:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab2116c-e94e-437a-b6a1-bc62534dbfac</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;Deleting the bonds seems to solve the issue, therefore I believe it&amp;#39;s something related to the flash storage?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central device claims to have Connected but no Connection event is fired on the peripheral</title><link>https://devzone.nordicsemi.com/thread/229660?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 14:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af7ec4e8-1f86-420c-93f4-70ccd3f21212</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;I first thought that it was related with this issue:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42384/connection-security-failed-role-central-in-ble_app_rscs_c/229637#229637"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42384/connection-security-failed-role-central-in-ble_app_rscs_c/229637#229637&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However I now believe it&amp;#39;s the other way around, that issue may be caused by this odd behavior&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>