<?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>nrf52832 RTT log printing problem encountered by pairing and binding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69136/nrf52832-rtt-log-printing-problem-encountered-by-pairing-and-binding</link><description>Hi, 
 today I adjusted the LOG printing level to DEBUG during the pairing and binding test, and found that the pairing and binding password RTT could not be printed during the pairing. When I input a password at will, the RTT will print the password after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Jan 2021 10:45:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69136/nrf52832-rtt-log-printing-problem-encountered-by-pairing-and-binding" /><item><title>RE: nrf52832 RTT log printing problem encountered by pairing and binding</title><link>https://devzone.nordicsemi.com/thread/287188?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 10:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20d99324-db52-4f52-95d3-90a493846004</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the very late reply. If you are stil struggling with this can you try to add NRF_LOG_FLUSH() after NRF_LOG_INFO() and see if that helps? &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_LOG_INFO(&amp;quot;Passkey: %s&amp;quot;, nrf_log_push(passkey));
NRF_LOG_FLUSH();
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 RTT log printing problem encountered by pairing and binding</title><link>https://devzone.nordicsemi.com/thread/284766?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 12:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07509206-683c-4c8f-99bc-e528ac27b811</guid><dc:creator>Pea Wang</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Thanks for the reply, I was in main.c do this.This code is normal, but when I only use LOG to print the pairing key, the key will not be printed during pairing. Uart does not have this problem.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 RTT log printing problem encountered by pairing and binding</title><link>https://devzone.nordicsemi.com/thread/284765?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 12:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a0dde5-df1d-435c-9a6e-c2792d8530e7</guid><dc:creator>Pea Wang</dc:creator><description>&lt;p&gt;case BLE_GAP_EVT_PASSKEY_DISPLAY:&lt;br /&gt; {&lt;br /&gt; char passkey[PASSKEY_LENGTH + 1];&lt;br /&gt; memcpy(passkey, p_ble_evt-&amp;gt;evt.gap_evt.params.passkey_display.passkey, PASSKEY_LENGTH);&lt;br /&gt; passkey[PASSKEY_LENGTH] = 0;&lt;br /&gt; // Don&amp;#39;t send delayed Security Request if security procedure is already in progress.&lt;br /&gt; err_code = app_timer_stop(m_sec_req_timer_id);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; printf(&amp;quot;Passkey:&amp;quot;);&lt;br /&gt; for(int i=0;i&amp;lt;6;i++)&lt;br /&gt; {&lt;br /&gt; printf(&amp;quot;%c&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.passkey_display.passkey[i]);&lt;br /&gt; }&lt;br /&gt; printf(&amp;quot;\r\n&amp;quot;);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;Passkey: %s&amp;quot;, nrf_log_push(passkey));&lt;br /&gt; }break;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 RTT log printing problem encountered by pairing and binding</title><link>https://devzone.nordicsemi.com/thread/284741?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 10:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a5a4da-3bb0-4754-896b-e9d3ed9b37bd</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Can you post the code you are using to print the pairing key? Are you doing this in main.c or in another file?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>