<?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>How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116889/how-to-check-if-softdevice-is-alive</link><description>Hello. How can I monitor that SoftDevice is working properly? I am trying to monitor using Radio notification, but RADIO Active does not guarantee that the SoftDevice is working properly , and the interrupt frequency is high. There is also a way to monitor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Dec 2024 20:19:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116889/how-to-check-if-softdevice-is-alive" /><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513934?ContentTypeID=1</link><pubDate>Sun, 08 Dec 2024 20:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cca985e-0fd7-4fbd-a38f-5a6080941d63</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;can try sd_ble_gap_rssi_start(conn_handle, 0, 0)-&amp;gt;receive BLE_GAP_EVT_RSSI_CHANGED-&amp;gt;sd_ble_gap_rssi_stop(conn_handle)&lt;/p&gt;
&lt;p&gt;&lt;a title="https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_g_a_p_r_s_s_i_f_i_l_t_m_s_c.html" href="https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_g_a_p_r_s_s_i_f_i_l_t_m_s_c.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_g_a_p_r_s_s_i_f_i_l_t_m_s_c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That will only work if:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;they have at least one active connection&lt;/li&gt;
&lt;li&gt;peer sends something (even an empty packet). That makes RSSI sample available.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But the radio active&amp;nbsp;solution is likely a better option for you use case.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="hiroiwas"]If such an API exists, it would be possible to monitor the response of SD events by calling it periodically.[/quote]
&lt;p&gt;Sadly it does not.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513734?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 01:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68c41a23-b6fb-4bef-a24b-12557523b03d</guid><dc:creator>hiroiwas</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Hello Jonathan&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&amp;gt; There is no good way to monitor this,&lt;/p&gt;
&lt;p&gt;Hmm, that was a disappointing result.&lt;/p&gt;
&lt;p&gt;So are there any harmless requests for which the SD will return an event?&lt;/p&gt;
&lt;p&gt;This refers to events that are responded to as events but do not affect BLE operation.&lt;/p&gt;
&lt;p&gt;One thing that came to mind is sd_flash_write, but you cannot write a size of 0, and it will stop the CPU for up to one word (41us).&lt;/p&gt;
&lt;p&gt;If such an API exists, it would be possible to monitor the response of SD events by calling it periodically.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513615?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 12:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2cef03-b53d-44ed-84d6-3fd7d85610b9</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;There is no good way to monitor this,&amp;nbsp;what can be done si check that the SD is responding to requests and have a timeout in events pulling loops. So using the radio active is one way to do it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513522?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 23:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a40ad7-7512-4b10-a542-8efdc4099a16</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="hiroiwas"]&lt;p&gt;What I want to do is have the main loop monitor for any abnormal behavior in the soft device and reset the device.&lt;/p&gt;
&lt;p&gt;Believe it or not, this is actually happening, and the reasons why are under investigation.&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for the info&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="hiroiwas"]I don&amp;#39;t want to know if it&amp;#39;s enabled, I just want to know if it&amp;#39;s working.[/quote]
&lt;p&gt;I will check if the is enabled function is possible to use as an indicator to if the SD is ok or not. It might be that it would fail to return a value and that way you can use it to see if the SD is ok or not. Will investigate to see if this is a possible use case.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513209?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 12:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ddd18d-8f0b-493a-8501-13d3e79bd70b</guid><dc:creator>hiroiwas</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Hello Jonathan&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt; What is it that you are trying to achieve with checking if the softdevice is alive?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I want to do is have the main loop monitor for any abnormal behavior in the soft device and reset the device.&lt;/p&gt;
&lt;p&gt;Believe it or not, this is actually happening, and the reasons why are under investigation.&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;See this ticket.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;: &lt;span class="table-cell name"&gt;&lt;a class="ticket-title" href="https://devzone.nordicsemi.com/f/nordic-q-a/111488/beacon-output-suddenly-stops"&gt;Beacon output suddenly stops&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In rare cases, for some reason, events from the SoftDevice are not sent from the start of a BLE connection and the SoftDevice becomes unresponsive to requests, but application processing, including UART, continues to function normally.&lt;/p&gt;
&lt;p&gt;&amp;gt; there is a check if enabled function&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to know if it&amp;#39;s enabled, I just want to know if it&amp;#39;s working.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to check if SoftDevice is alive?</title><link>https://devzone.nordicsemi.com/thread/513199?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 12:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f75af61d-b0e5-4962-ba27-0b37c55723d7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;What is it that you are trying to achieve with checking if the softdevice is alive?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;there is a check if enabled function:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_n_r_f_s_d_m_f_u_n_c_t_i_o_n_s.html#ga830210fec2b272bbd27af26e3b314d35"&gt;https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_n_r_f_s_d_m_f_u_n_c_t_i_o_n_s.html#ga830210fec2b272bbd27af26e3b314d35&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can use that.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But I am not sure I fully understand what you want to do.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>