<?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>Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113479/out-of-sync-ble-events-causing-disconnects</link><description>Hello, I am trying to debug why my device is failing to work 100% of the time. What happens is an app makes a connection to the device, sends a command to the device, receives a command, sends a command and then disconnects. However, this becomes unstable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2024 12:09:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113479/out-of-sync-ble-events-causing-disconnects" /><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496961?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 12:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e202ddb-1109-416b-abac-c7e22711e54a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not sure about that, you should tell me here which one is the master and which one is the device. If you have flashed peripheral in the nRF Device, then yes, slave is the nRF device in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496532?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 07:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f068c5b9-ca4c-4313-aae1-5eac4c7ee9c2</guid><dc:creator>jerome.sc</dc:creator><description>&lt;p&gt;In&amp;nbsp;what you said above, are you saying the master is the app, and the slave is the device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496520?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6731be3-6c10-4c9a-989c-08d02c145832</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;In the scenario where it is not working I am not able to see the master sending a write response to the request sent by the slave.&lt;/p&gt;
&lt;p&gt;I can see that the slave tries to do the request mutiple times before it gives up due to the lack of response from the Master. I think this is a procedure timeout that kicks in and disconnects the slave. Can you see why the master is not responding to the slave with write response?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496411?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 12:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c840501b-73c1-4d98-a091-6ab352bd80df</guid><dc:creator>jerome.sc</dc:creator><description>&lt;p&gt;Yes, this was my thoughts. The delay is after the connection event on the app. It&amp;#39;s hard to say whether all of the events are being handled as that&amp;#39;s done by someone else. But from the packets sniffed, it the difference in events are clearly part of the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496389?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 10:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5a78d68-e216-485c-b425-6e970ec67783</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Where exactly have you added the delay in the app? Are you handling all the events the application should handle? Have you registered callbacks from libraries and drivers and handling the events from them correctly?&lt;/p&gt;
&lt;p&gt;Adding delay helping most of the time means that your app is doing something fast without waiting for the previous operation to complete.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496337?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 07:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3aabb5f-f461-4081-b0ca-da500c106aea</guid><dc:creator>jerome.sc</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it has a problem with hardware based on the packets, but I guess it could be firmware-related. However, adding a delay on the app has helped reduce the problem, but doesn&amp;#39;t explain what the root cause is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Out of sync ble events causing disconnects</title><link>https://devzone.nordicsemi.com/thread/496104?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 01:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3d639d-d775-4516-ab8a-f43e6b4bbf96</guid><dc:creator>billtsai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ble event 0x57 is&amp;nbsp;BLE_GATTS_EVT_HVN_TX_COMPLETE.&lt;/p&gt;
&lt;p&gt;Ble event 0x12 is&amp;nbsp;BLE_GAP_EVT_CONN_PARAM_UPDATE.&lt;/p&gt;
&lt;p&gt;Ble event 0x11 is&amp;nbsp;BLE_GAP_EVT_DISCONNECTED.&lt;/p&gt;
&lt;p&gt;From first log, the disconnect request is send from your device. Maybe you can find where you send disconnect request.&lt;/p&gt;
&lt;p&gt;In second log, it seems that the device does not response to host.&lt;/p&gt;
&lt;p&gt;It would be good to program your fw to Nordic dk board. This will help figuring out the problem is from hw or fw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>