<?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>Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest</link><description>Hello Team, 
 I am using the ble_app_hrs_rscs_relay example where NRF52 acts both as a central and peripheral. My question is that when I remove the heart sensor Polar H10( which is a peripheral) from the chest, it doesn&amp;#39;t disconnect from NRF52 immediately</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2022 07:04:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest" /><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360667?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 07:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2503b65b-b305-4c1c-ba84-83261fa1ebd3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Sami&lt;br /&gt;&lt;br /&gt;I am glad to hear that you have familiarized with the sniffer tool and have been able to use it, great!&lt;br /&gt;This is a powerful tool to wield when developing BLE application.&lt;/p&gt;
[quote user="Sami Ul Haq"]came to the conclusion that the Polar H10 does not stop advertising upon the removal but take some time and then the advertising stopped after some time. What will be the possible solution in this case?[/quote]
&lt;p&gt;Then this becomes much harder. Do I understand it correctly that you have no way to reprogram the H10 sensor? If so, you will need to figure out an event on the central side to terminate the connection, and this event should only ever happen when the sensor is removed.&lt;br /&gt;Perhaps there is a drop in the data sent when the sensor is removed, could you perhaps apply a filter to this?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360509?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 11:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda48c30-9740-4dd9-abc4-d9cdd1bd45c0</guid><dc:creator>Sami Ul Haq</dc:creator><description>&lt;p&gt;Hello, again Karl sir,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest/360265#360265"]When you have the sniffer tool up and running you can monitor the on-air BLE transmissions, so that you can see whether or not the peripheral just stops sending (turns off)[/quote]
&lt;p&gt;I have gone through the process of the nRF Snipper tool and I have tested the Polar H10 by capturing its packet in Wireshark and came to the conclusion that the Polar H10 does not stop advertising upon the removal but take some time and then the advertising stopped after some time. What will be the possible solution in this case?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sami&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360413?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 05:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f69fd53e-c8a3-4c8d-838f-0389a046098f</guid><dc:creator>Sami Ul Haq</dc:creator><description>&lt;p&gt;Thank you Karl Sir,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest/360265#360265"]You can &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;download the nRF Sniffer tool from here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;read about how to install and use it here&lt;/a&gt;[/quote]
&lt;p&gt;I am going through these links and will be back if I didn&amp;#39;t understand something.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sami Ul Haq&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360265?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac7b61a-ee8a-4b3e-b28b-2f32f3ba502f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Sami&lt;br /&gt;&lt;br /&gt;Yes, absolutely, no problem :)&amp;nbsp;&lt;br /&gt;You can &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;download the nRF Sniffer tool from here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;read about how to install and use it here&lt;/a&gt;.&lt;br /&gt;When you have the sniffer tool up and running you can monitor the on-air BLE transmissions, so that you can see whether or not the peripheral just stops sending (turns off), or whether it tries to terminate the connection.&lt;br /&gt;In case of the former you will have to reduce the connection supervision timeout connection parameter of your connection, but this might cause link instability if packets often are lost between the central and peripheral.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360261?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9cadb9-3743-4582-a776-313fcb9d960b</guid><dc:creator>Sami Ul Haq</dc:creator><description>&lt;p&gt;Thank you, sir.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest/360251#360251"]You can check whether or not this is the case by using the nRF Sniffer tool, to see if the peripheral properly terminates the connection when it is removed.[/quote]
&lt;p&gt;Sir can you please suggest to me a tutorial on how to use the nRF Sniffer tool as I have never used it before and don&amp;#39;t know about it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sami&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360251?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f32063f-0bcd-4d3d-8a6b-c064b20c9042</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Sami,&lt;/p&gt;
[quote user="Sami Ul Haq"]I am not sure, or maybe it&amp;#39;s the NRF52 microcontroller that doesn&amp;#39;t call disconnect event immediately after removing the polar H10.&amp;nbsp;[/quote]
&lt;p&gt;This is probably because the nRF52 is acting as a central, and does not know if the sensor is removed or not.&lt;br /&gt;For example, if the peripheral just stops functioning, it will take the duration of the connection supervision timeout before the central terminates the connection.&lt;br /&gt;You can check whether or not this is the case by using the nRF Sniffer tool, to see if the peripheral properly terminates the connection when it is removed.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360226?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 10:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc08223-7429-4137-af20-e55b1e6af18c</guid><dc:creator>Sami Ul Haq</dc:creator><description>&lt;p&gt;Hello Karl sir, Thank you for coming to help.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/86247/polar-h10-peripheral-do-not-immediately-disconnect-from-nrf52-both-central-and-peripheral-after-removing-from-the-chest/360205#360205"]In order to achieve this you will need a mechanism to sense that the sensor is removed from the body, to trigger the disconnect.[/quote]
&lt;p&gt;The disconnect Event Is calling upon the removal of Polar H10(peripheral) but not immediately after the removal of Polar H10 but take some time and then got disconnected. Maybe the Heart sensor is still advertising for some time after removal but I am not sure, or maybe it&amp;#39;s the NRF52 microcontroller that doesn&amp;#39;t call disconnect event immediately after removing the polar H10.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Sami&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Polar H10(peripheral) do not immediately disconnect from NRF52(both central and peripheral) after removing from the chest.</title><link>https://devzone.nordicsemi.com/thread/360205?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 09:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc41e11-7657-4e32-a9be-f2b6d932a0fa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Sami Ul Haq,&lt;br /&gt;&lt;br /&gt;In order to achieve this you will need a mechanism to sense that the sensor is removed from the body, to trigger the disconnect.&lt;br /&gt;You may then trigger the disconnect as part of the handling of the event for when the sensor is removed from the body.&lt;br /&gt;Please keep in mind that I have no prior experience with the Polar H10 sensor, so I do not know how you can measure this event exactly, you will need to check the sensor&amp;#39;s datasheet for this.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>