<?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>Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109517/is-the-peer-functionality-related-to-rtc</link><description>Hello Nordic Engineer, 
 I used nRF52811 
 nRF5_SDK_17.1.0_ddde560 \ examples \ ble_central_and_peripheral \ experimental \ ble_app_multirole_lesc 
 After attempting to add NUS, NUS_C, and deleting PEER, and porting to 52811, I encountered an RTC error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2024 08:22:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109517/is-the-peer-functionality-related-to-rtc" /><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/476471?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 08:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b950f95-ef16-4eb8-8d77-84f7f2d627a5</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you very much. Your previous responses have taught me a lot. Now, all I need to do is fill in my custom data, and this product will be complete. If possible, I&amp;#39;ll set it to &amp;#39;Verify Answer&amp;#39;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/476466?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 08:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e13fa1-edcd-4061-94ea-1e74ec1f1d87</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Excellent. Yes, most have now returned to the office.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/476455?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c011632-a6ac-4846-b928-9544ff929059</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;Finally, with this code added, I can send the data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_nus_c_on_db_disc_evt(&amp;amp;m_ble_nus_c, p_evt);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Has Easter holiday ended?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No one has answered any questions these days...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/476449?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c0d160-2a59-4427-82ab-2a1d08401972</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What is the &amp;#39;&lt;span&gt;ret_val&amp;#39; value returned by&amp;nbsp;ble_nus_c_string_send? The data will only be sent if it is NRF_SUCCESS (&amp;#39;0&amp;#39;).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/476077?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 09:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca177de3-5ae2-4736-9204-3fca85d9355c</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;Thank you so mush.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &amp;#39;NRF_ERROR_INVALID_LENGTH&amp;#39; issue has been resolved because it requires powers of 2, such as 2, 4, 8, 16, 32, 64.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define UART_TX_BUF_SIZE                32                                         /**&amp;lt; UART TX buffer size. */
#define UART_RX_BUF_SIZE                32                                         /**&amp;lt; UART RX buffer size. */&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;d like to ask a new question. I added NUS and NUS_C in ble_app_multirole_lesc and removed HRS. Both devices have downloaded the same program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The connection setup is as follows: Phone -&amp;gt; A -&amp;gt; B. At this point, the phone sends data to A. In the nus_data_handler of A, I receive data from the phone, and inside it, I execute ret_val = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, ReceiveData, 20);. Unfortunately, B did not receive the data sent by A.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void nus_data_handler(ble_nus_evt_t * p_evt)	
{
	uint32_t ret_val;
	uint8_t i;
	
	if (p_evt-&amp;gt;type == BLE_NUS_EVT_RX_DATA)
    {
		uint8_t ReceiveData[20];

		
        NRF_LOG_DEBUG(&amp;quot;Received data from BLE NUS. Writing data on UART.&amp;quot;);
        NRF_LOG_HEXDUMP_DEBUG(p_evt-&amp;gt;params.rx_data.p_data, p_evt-&amp;gt;params.rx_data.length);

        for (uint32_t i = 0; i &amp;lt; p_evt-&amp;gt;params.rx_data.length; i++)
        {
			ReceiveData[i] = p_evt-&amp;gt;params.rx_data.p_data[i];
        }
			
		NRF_LOG_INFO(&amp;quot;data[0] = %d, data[1] = %d, data[2] = %d, data[19] = %d&amp;quot;, ReceiveData[0], ReceiveData[1], ReceiveData[2], ReceiveData[19]);
		
		
		do
		{
			ret_val = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, ReceiveData, 20);
			
			if ( (ret_val != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (ret_val != NRF_ERROR_RESOURCES) )
			{
				APP_ERROR_CHECK(ret_val);
			}
		} while (ret_val == NRF_ERROR_RESOURCES);
		
		
		for (i = 0 ; i &amp;lt; 20 ; i++)
		{
			if(i == 19)
				app_uart_put(0xa0);
			else
				app_uart_put(ReceiveData[i]);
		}
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additionally, there is one more note: if Device B is connected to J-Link, RTT will provide feedback:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; &amp;lt;info&amp;gt; app: CENTRAL: Already connected to this device as PERIPHERAL (handle: 0), disconnecting.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But if Device A is connected to J-Link, RTT will provide feedback:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Already connected to this device as CENTRAL (handle: 1), disconnecting.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to use NUS to send data. Does it conflict with the additional information?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475796?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 05:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c382813-f6bb-4422-9a5b-08ca8b770941</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Is it your advertising start function that returns with&amp;nbsp;NRF_ERROR_INVALID_LENGTH?&amp;nbsp;&lt;/p&gt;
[quote user="tony55723"]First, I asked about the error. Now I ask about the UART. I don’t know if this will violate the rules.[/quote]
&lt;p&gt;This is fine. Thank you for letting me know. The problem with duplicate questions is that we can end up with several engineers working on the same issue, which we want to avoid. However, the question you posted is not really a duplicate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475641?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 12:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e1fb42-8182-497d-b83e-994511a08aba</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;The error I encountered is &amp;#39;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="color:#ff00ff;"&gt;NRF_ERROR_INVALID_LENGTH&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I still feel very sorry, because of two things.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;【1】First, I asked about the error. Now I ask about the UART. I don&amp;rsquo;t know if this will violate the rules.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;【2】Yesterday I submitted a new &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109590/the-problem-encountered-when-adding-uart"&gt;question&lt;/a&gt;, and a few minutes ago the system prompted an engineer to accept it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what should i do now....?（What I mean is, will this cause you trouble?）&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475632?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 12:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10413b38-0547-4aa0-b5b0-322c870c89bf</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="tony55723"]Do you know how much RAM NUS and UART respectively occupy?[/quote]
&lt;p&gt;I don&amp;#39;t have any numbers on this. Generally, fitting a multirole application on the 52811 is challenging due to memory constraints. However, all memory is statically allocated, so you should receive an error at build time if there is insufficient memory. Have you checked the return code from your advertising start function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475615?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 11:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43332d86-aee6-43e3-bbc9-4b9bf63246c9</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;sorry,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I give up on the RTT repetitive printing issue. I only have one J-Link in hand, and I lack experience in firmware upgrades. I fear more problems might arise.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;May I ask a question?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;examples \ ble_central_and_peripheral \ experimental \ ble_app_multirole_lesc&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the example I&amp;#39;ve been using. I tried adding NUS and NUS_C, and deleted HRS and PEER. Finally, I ported it to 52811, all of which were successful. Eventually, I added UART functionality, successfully compiled it, and downloaded the program to 52811. However, after scanning with my phone, I couldn&amp;#39;t find this device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you know how much RAM NUS and UART respectively occupy?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475592?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 10:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6848e6d0-fcbf-474c-aeb4-bfaa6f33ff62</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did this&amp;nbsp;updating the J-link drivers fix&amp;nbsp;the issue with duplicate log messages?&amp;nbsp;&lt;/p&gt;
[quote user="tony55723"] Above that is when 52811 is running. I connected and then disconnected with my phone, then after a short period of time, an &amp;#39;app: Fatal error&amp;#39; occurred.[/quote]
&lt;p&gt;In your debugger, can you read the error information passed to the error handler to find out where the error was raised?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475544?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 07:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33910321-c0ec-43c2-95f7-73d993a298a9</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6562.q1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I installed the new nRF command line tools, and it also asked me if I wanted to install J-Link 7.94e, to which I agreed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The test results are divided into two sections, with the yellow text &amp;#39;&lt;span style="background-color:#ffff00;font-size:150%;"&gt;connection lost&lt;/span&gt;&amp;#39; in the middle. Above that is when 52811 is running. I connected and then disconnected with my phone, then after a short period of time, an &amp;#39;app: Fatal error&amp;#39; occurred.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Below the yellow text is when 52811 is running. I didn&amp;#39;t do anything, and after a short period of time, an &amp;#39;app: Fatal error&amp;#39; also occurred.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475536?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 07:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c961e71-1a2f-44b0-9298-e2517a85c410</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The Softdevice will raise an assert if you start and stop exection as it will break it&amp;#39;s real time requirements. So, this is to be expected. The ble_app_uart will also attempt to enter System OFF mode (deep sleep) when the advertiser times out after 3 minutes. But it is not possible to enter System OFF when the chip is in debug interface mode, so this will also trigger an error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see you are using an old Jlink version. Could you try to update your nRF command line tools package (&lt;a id="" href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download&lt;/a&gt;) and see if that changes anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475535?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 07:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e22e78f2-dc29-4620-9d52-3e541e849acd</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2604.q2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The current breakpoint in this main() function has only been reached once.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1108.q3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Something very strange is happening. When I start debugging, I execute &amp;#39;run&amp;#39;, then I click &amp;#39;stop&amp;#39;, but the code window doesn&amp;#39;t display the current position where it stopped. Then, I repeatedly click &amp;#39;run&amp;#39; and &amp;#39;stop&amp;#39;, and only register R7 is changing in the left register window. Eventually, it ends up in &lt;span style="color:#3366ff;"&gt;NRF_BREAKPOINT_COND&lt;/span&gt; error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I just discovered an issue: after starting debugging, it keeps running continuously without me clicking &amp;#39;stop&amp;#39;. After about 10 to 15 minutes, it also ends up in &lt;span style="color:#3366ff;"&gt;NRF_BREAKPOINT_COND&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additional note: During the &amp;#39;run&amp;#39; period, my phone can scan and receive broadcast information from the device.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475525?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 06:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b871a844-ead3-44a2-a920-70a327a0fae7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I haven&amp;#39;t experienced this issue here. I have a board with the nRF52811 and have tested it using the ble_app_uart pca10056e configuration. Please place a breakpoint at the beginning of main() and&amp;nbsp;see if it is reached again after you&amp;nbsp;start execution. This will help us determine whether the device is rebooting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475389?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 12:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62b4673-9942-400d-b800-3a8fb77cc943</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;I made a significant discovery. After I extracted SDK 17.1.0 and placed it in a new folder, I believe the examples inside have been thoroughly tested by the official team. However, when I found the peripheral/uart example, compiled it, and downloaded it to the chip, I noticed that the RTT still had the issue of repetitive printing. Should we consider focusing on the hardware or perhaps the debugger?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2287.q1.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475385?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 12:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043400f2-e59e-4aa1-9082-13c3f05e54c0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s a bit difficult for me to understand what the log is supposed to look like, as I&amp;#39;m not familiar with your application. However, I agree it could make sense to attempt to address the &amp;quot;Connection handle invalid&amp;quot; warning first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475369?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 11:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4d60bad-bd3e-4cd2-8c24-97ae52b4f528</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;I can still see repeated logs. I just want to find a pattern (if there is one) to see if it can help with the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps I should focus on addressing the issue from the warnings in the RTT logs?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;warning&amp;gt; ble_nus_c: Connection handle invalid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475362?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 10:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a71e6be-c697-436c-b6b8-3363f1fb4240</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;m not sure I understand what you mean. Are you saying that you are not seeing duplicated log messages anymore?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475337?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de9172c-ba0c-4712-a7d4-d0574ef62cea</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4670.q1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m really sorry, but it seems that there is no pattern in the RTT. I just thought it would output a maximum of four commands.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475331?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748e9824-4e7f-4b9b-bc81-b03641af6aeb</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;I don&amp;#39;t know if it executed a reboot or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6560.q2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;data[1]&amp;quot; is a data I defined myself. The mobile app will send different data based on the UI button. But what I want to say is, this RTT seems to only record the last 4 sets of commands.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The left and right sides of the image respectively show the results of two tests. I clicked the UI button on the app several times, and there must be a lot of data in the RTT. However, I cleared the RTT view, then waited for it to repeat printing before capturing the effect.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475320?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a81907-5d52-4fa1-96f7-40fef807664a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Strange. You are also sure that the device is not rebooting?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475316?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b81a77-b22d-42ff-a6ce-5137d2186c4b</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Berg,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1512.q1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I haven&amp;#39;t modified log_init(), so I&amp;#39;m also puzzled why such an issue would occur.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475313?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3fea00-dd11-47d2-9545-4c14bec2f431</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for confirming.&amp;nbsp;Can you also show your implementation of log_init()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475294?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 07:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6b0c39c-7907-4ba5-8c81-c3371f63ee19</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Berg,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the main() function, LOG_INIT() is the first to be called.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5305.q1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I originally intended to count the interval time for repeated printing, but it was irregular. Sometimes it repeats printing after 10 seconds, and sometimes it takes over a minute before repeating.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This time, I won&amp;#39;t use my phone to send data. After the device is powered on, I&amp;#39;ll start RTT, and then I won&amp;#39;t do anything else&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1185.q2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The repetitive issue still occurred. Could you please assist me again? Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the peer functionality related to RTC?</title><link>https://devzone.nordicsemi.com/thread/475280?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 06:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c500ba-0a7c-4a9a-a595-4e7e4bae4a81</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that it fixed the problem. Regarding the duplicated log messages, are you initializing the logger at the very beginning of main()? I have seen instances where the log has been duplicated when LOG_INIT() was called too late.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>