<?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>Why is there no log displayed when connecting to BLE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95410/why-is-there-no-log-displayed-when-connecting-to-ble</link><description>nrf52832 (s132 v7.0.1, SDK v17.0.0) is under development as peripheral and central device. 
 PM_EVT_CONN_SEC_FAILED may occur on the central side when a BLE connection is made. In that case, BLE_GAP_EVT_CONNECTED did not occur on the peripheral side.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2023 13:33:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95410/why-is-there-no-log-displayed-when-connecting-to-ble" /><item><title>RE: Why is there no log displayed when connecting to BLE?</title><link>https://devzone.nordicsemi.com/thread/403597?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 13:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937d1876-a918-4ef3-a0c5-a72087363859</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kei,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I know,&amp;nbsp;&lt;span&gt;PM_EVT_CONN_SEC_FAILED&amp;nbsp;can&amp;nbsp;happen even when the connection is not established.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When a central send a connect request, it assumes that the peer has received the connection request and proceed to send the first packet in the next connection event. If the first packet in the next connection event is a security request and if the packet is never receive by the peripheral, then the central will receive connection request failed and the peripheral will not&amp;nbsp;have&amp;nbsp;BLE_GAP_EVT_CONNECTED&amp;nbsp;callback.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the following screenshot, you can see that the Connect Request was ignored (or not received) by the peripheral, and the central assuming the connection is established, continued to send 6 retransmission&amp;nbsp;packets of LL_FEATURE_REQ before giving up. The peripheral, doesn&amp;#39;t receive the connect request, continue to advertise as normal.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:96px;max-width:559px;" height="96" src="https://devzone.nordicsemi.com/resized-image/__size/1118x192/__key/communityserver-discussions-components-files/4/pastedimage1673011952636v1.png" width="559" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s just my hypothesis. We would need to capture a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;sniffer trace &lt;/a&gt;to verify that. Could you please capture a sniffer trace when the issue happen ? How often do you see the problem ?&amp;nbsp;&lt;br /&gt;Did you reproduce the issue with one of the example ? I assume before the problem appeared, you bonded the two devices ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>