<?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>Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106248/conflicts-in-tx-data-thread-cli</link><description>I have prepared several evaluation devices with nrf52840 module and PC connected one-to-one by uart, and are evaluating the communication operation using Thread:CLI. The PC can send any command using the evaluation program. The PC and the nrf52840 module</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Dec 2023 03:19:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106248/conflicts-in-tx-data-thread-cli" /><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/460943?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 03:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed6a36c-9e0c-44e5-9db9-3e93cef1167d</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;br /&gt;I understand that adding a delay as you have advised would solve the problem.&lt;br /&gt;However, I would like to understand the cause of this problem.&lt;br /&gt;Due to my limited knowledge, I could not clearly identify the source code directly involved in the operation of sending messages and echoes to the console.&lt;br /&gt;Therefore, I am also not certain that there is no function involving printk(or LOG_***, etc.).&lt;br /&gt;I would like to know where to find the source code directly involved in the operation of sending messages and echoes to the console.&lt;br /&gt;Besides the &amp;quot;cli_output.cpp&amp;quot; and &amp;quot;cli_output.hpp&amp;quot; files, are there any other files I should check?&lt;br /&gt;Any hints or information you can give me would be appreciated.&lt;br /&gt;Sorry to repeat the same question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/460853?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 14:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d77a0fd-3453-4127-9577-76b1746236ff</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Lets revert back a couple of steps.&lt;/p&gt;
&lt;p&gt;The issue you&amp;#39;re seeing is most likely due to there being too much traffic causing the messages to overlap, which is what I wanted to resolve by changing everything from printk to logging. You&amp;#39;ve stated that there are no functions containing printk, so I guess the issue is not there.&lt;/p&gt;
&lt;p&gt;Could you try to add&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_MODE_DEFERRED"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_MODE_DEFERRED&lt;/a&gt;&amp;nbsp;and see if this helps, and/or to add some delay to reduce the congestion of the messages?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/460724?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 07:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0d5712-bd0d-4bf2-b0fb-bd855a4775b1</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Thanks for the advice.&lt;br /&gt;I would like to reply regarding (1).&lt;br /&gt;I checked the cli_output.cpp and cli_output.hpp files included in the &amp;quot;Openthread CLI sample&amp;quot; for source code that sends echoes or messages to the PC.&lt;br /&gt;I thought there might be functions containing &amp;quot;printk&amp;quot;, but could not find any.&lt;br /&gt;For example, I think the &amp;quot;OutputLine&amp;quot; function would be applicable, but my knowledge is very limited, and I could not find the contents of the source code for these functions.&lt;br /&gt;Can you please advise me where I should check?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2061.v1.JPG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/460600?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:579d9b55-dd3a-43a8-9f30-d52a6f852a61</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Hidemaru"](1) In Thread:CLI, I cannot find the source code that sends the echo or message to the PC.&lt;br /&gt;Therefore, I do not know where to modify printk/logging.&lt;br /&gt;Could you please tell me which source code is applicable?[/quote]
&lt;p&gt;Could you state to me what you&amp;#39;ve done and where you&amp;#39;ve looked?&lt;/p&gt;
[quote user="Hidemaru"](2) If I build Thread:CLI using the following (overlay-logging.conf), will it use &amp;quot;logging&amp;quot;?[/quote]
&lt;p&gt;I&amp;#39;m not sure what you refer to here. Did you you enable the logging message the same way as it is done in lesson 3?&lt;/p&gt;
&lt;p&gt;The overlays you&amp;#39;re referring to is the snippets that is referred to here&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/cli/README.html#snippets"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/cli/README.html#snippets&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/460087?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 10:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88236835-2184-4510-a5e4-4331d9c2a427</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Thanks for the advice.&lt;br /&gt;I have two questions.&lt;br /&gt;(1) In Thread:CLI, I cannot find the source code that sends the echo or message to the PC.&lt;br /&gt;Therefore, I do not know where to modify printk/logging.&lt;br /&gt;Could you please tell me which source code is applicable?&lt;/p&gt;
&lt;p&gt;(2) If I build Thread:CLI using the following (overlay-logging.conf), will it use &amp;quot;logging&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/v2.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, when I build Thread:CLI with &amp;quot;overlay-logging.conf&amp;quot;, the echoes and messages overlap.&lt;/p&gt;
&lt;p&gt;This problem is not improved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/459867?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 09:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1202f91e-e135-4d6e-a8cd-6599316da831</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;No worries, this lesson in the NCS academy course should show you the difference between printk and logging as well as teach you how to use them&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-printing-messages-to-console-and-logging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-printing-messages-to-console-and-logging/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/459737?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 14:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea35a236-c2d2-4c64-8a04-a8a7e95b8b89</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Sorry, I do not know how to configure printk / logging.&lt;br /&gt;Is it set in &amp;quot; prj.conf &amp;quot;?&lt;br /&gt;Please let me know how to configure it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/459715?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 13:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f42243-a81a-4261-8029-aecc07095e26</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the long wait time. It took longer than expected to find someone to discuss this with&lt;/p&gt;
&lt;p&gt;Could you verify if you&amp;#39;re using printk or logging for this? If you&amp;#39;re using printk could you try to use the logging module instead? It looks like the overlapping is caused by either timing or printk related issues&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/459633?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 08:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35253937-b63c-4977-87ef-9f457ab0ce28</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Do you need any more information than what I have already replied to?&lt;/p&gt;
&lt;p&gt;The device that receives a message (AAAAAA) from Decive-00 sends a message (BBBBBBBBB) to Device-00 at irregular timing.&lt;/p&gt;
&lt;p&gt;Therefore, I assume that in Decive-00, there may be a conflict between sending an echo and sending a received message.&lt;/p&gt;
&lt;p&gt;A device that receives a message (AAAAAA) from Decive-00 can resend the message if necessary. However, I would like to solve this problem fundamentally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/459205?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 14:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83ff9a8-2f87-4935-b004-cba0da643fe8</guid><dc:creator>Hidemaru</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;The configuration and operation of the evaluation device is described below.&lt;/p&gt;
&lt;p&gt;I have 6 sets of evaluation devices with nrf52840 module and PC connected one-to-one by uart.&lt;/p&gt;
&lt;p&gt;The IP address of each evaluation device is as follows.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-00: ???&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-01: fe80:0:0:0:8425:5ad8:6f13:2523&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-02: fe80:0:0:0:347b:f155:f16b:cc06&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-03: fe80:0:0:0:dc95:61d8:a2c5:648c&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-04: fe80:0:0:0:74ca:ef31:7d2f:f59f&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Device-05: fe80:0:0:0:2851:8c5d:2f8e:b62c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The PC connected to Device-00 operates as follows using the evaluation program.&lt;/p&gt;
&lt;p&gt;- The PC sends the message (AAAAAA) to Device-01.&lt;/p&gt;
&lt;p&gt;- The PC sends a message (AAAAAA) to Device-02 immediately after confirming that it has received an echo of the send message command.&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;If the PC does not receive the echo, it sends a message to Device-02 after 1 second.&lt;/p&gt;
&lt;p&gt;- In the same process, the PC sends message (AAAAAA) to Devices-03, -04, and -05 in turn.&lt;/p&gt;
&lt;p&gt;The Device that receives the message (AAAAAA) from Device-00 sends the message (BBBBBBBBB) to Device-00.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The following is what is displayed on the terminal of Device-00.&lt;/p&gt;
&lt;p&gt;&amp;quot;PC&amp;gt;&amp;gt;MO&amp;quot; indicates data sent from PC to nrf52840 module.&lt;/p&gt;
&lt;p&gt;&amp;quot;MO&amp;gt;&amp;gt;PC&amp;quot; indicates data sent from the nrf52840 module to the PC.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PC&amp;gt;&amp;gt;MO: ot udp send fe80:0:0:0:8425:5ad8:6f13:2523 1212 AAAAAA\r\n

MO&amp;gt;&amp;gt;PC: ot udp send fe80:0:0:0:8425:5ad8:6f13:2523 1212 AAAAAA\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m    

PC&amp;gt;&amp;gt;MO: ot udp send fe80:0:0:0:347b:f155:f16b:cc06 1212 AAAAAA\r\n

MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[Jfe80:0:0:0:8425:5ad8:6f13:2523\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J 1212 
　　　　\x1b[1;32muart:~$ \x1b[mot udp send fe80:0:0:0:347b:f155:f16b:cc06 1212 AAAAAA\r\nBBBBBBBBB\r\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m

MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[Jfe80:0:0:0:347b:f155:f16b:cc06\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J 1212 
　　　　\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[JBBBBBBBBB\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J\r\r\n\x1b[1;32muart:~$ \x1b[m

PC&amp;gt;&amp;gt;MO: ot udp send fe80:0:0:0:dc95:61d8:a2c5:648c 1212 AAAAAA\r\n

MO&amp;gt;&amp;gt;PC: ot udp send fe80:0:0:0:dc95:61d8:a2c5:648c 1212 AAAAAA\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m

PC&amp;gt;&amp;gt;OT: ot udp send fe80:0:0:0:74ca:ef31:7d2f:f59f 1212 AAAAAA\r\n

MO&amp;gt;&amp;gt;PC: ot udp send fe80:0:0:0:74ca:ef31:7d2f:f59f 1212 AAAAAA\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m

PC&amp;gt;&amp;gt;MO: ot udp send fe80:0:0:0:2851:8c5d:2f8e:b62c 1212 AAAAAA\r\n

MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[Jfe80:0:0:0:dc95:61d8:a2c5:648c\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J 1212 
　　　　\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[JBBBBBBBBB\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J\r\r\n\x1b[1;32muart:~$ \x1b[m

MO&amp;gt;&amp;gt;PC: ot udp send fe80:0:0:0:2851:8c5d:2f8e:b62c 1212 AAAAAA\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m

MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[Jfe80:0:0:0:74ca:ef31:7d2f:f59f\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J 1212 
　　　　\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[JBBBBBBBBB\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J\r\r\n\x1b[1;32muart:~$ \x1b[m

MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The data in lines 7 and 8 have overlapping a message and an echo.&lt;/p&gt;
&lt;p&gt;The correct data is as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MO&amp;gt;&amp;gt;PC: \x1b[8D\x1b[J9 bytes from \x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[Jfe80:0:0:0:8425:5ad8:6f13:2523\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J 1212 　
　　　　\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[JBBBBBBBBB\x1b[1;32muart:~$ \x1b[m\x1b[8D\x1b[J\r\r\n\x1b[1;32muart:~$ \x1b[m

MO&amp;gt;&amp;gt;PC: ot udp send fe80:0:0:0:347b:f155:f16b:cc06 1212 AAAAAA\r\nDone\r\r\n\x1b[1;32muart:~$ \x1b[m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can I fix &amp;quot; Thread:CLI &amp;quot; to solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflicts in Tx data (Thread:CLI)</title><link>https://devzone.nordicsemi.com/thread/458912?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 09:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057ca0b0-f84f-4b21-8702-fd7ff66ec993</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the long response time.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Could you post a screen shot showing what you see and what you expect to see in your terminal?&lt;/li&gt;
&lt;li&gt;The two transmissions may be in conflict in this case due to the radio being busy with transmitting its previous command while you expect it to receive Could you verify if this is behavior you see in the CLI sample with modifications you&amp;#39;ve implemented?&lt;/li&gt;
&lt;li&gt;Do you retransmit the message from the evaluation device that overlaps with the message sent to the PC? If so, could you try to increase the interval in between the retransmits&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards;&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>