<?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>openthread Coap Client and Coap Server Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94682/openthread-coap-client-and-coap-server-example</link><description>Hi, 
 I am having some issues with the Co AP Client and Server on n rf Connect SDK v 2 . 1 . 2 . 
 I have flashed two n rf 528 40 dev kits with the examples , one with the Co AP Client and the other with the Co AP Server . If I understand the example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2022 15:29:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94682/openthread-coap-client-and-coap-server-example" /><item><title>RE: openthread Coap Client and Coap Server Example</title><link>https://devzone.nordicsemi.com/thread/399980?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 15:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e090a5-ae38-45b8-8196-154854068107</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;That fixed my issue, our custom board only has an internal LF clock and I forgot you need to tell the SD to use it. The client example on our custom board can now control the led on the server.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Doesn&amp;#39;t the log that you attached come from UART on your custom board?&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I was using the dev kit for the serial so had access to UART and on the client I was using RTT logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread Coap Client and Coap Server Example</title><link>https://devzone.nordicsemi.com/thread/399954?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 13:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a61be9e9-3ff4-4b37-85eb-57958be8519d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does your custom board have an external 32KHz XTAL? If not, can you please try to add this line to your prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="hugzy123"]Do you know why these uart pins are&amp;nbsp;needed if the there is no console for the &amp;quot;sleep end device&amp;quot; version?&amp;nbsp;[/quote]
&lt;p&gt;I am not sure about this. Not my area of expertise. I suggest you create a separate ticket with this question. Doesn&amp;#39;t the log that you attached come from UART on your custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread Coap Client and Coap Server Example</title><link>https://devzone.nordicsemi.com/thread/399947?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 13:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c31b35-249c-48df-88c1-804bccc6f0ea</guid><dc:creator>hugzy123</dc:creator><description>&lt;p style="margin:0cm 0cm 12.0pt 0cm;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Thanks for your quick reply. After seeing it ran ok on your machine I decided to uninstall and reinstall the nrf connect sdk and it works ok on the development kits.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;However, I&amp;#39;m still having issues when trying to run the client on my custom board and the server on a development kit.&amp;nbsp;&lt;br /&gt; &lt;br /&gt; My custom board pcb contains an&amp;nbsp;raytac mdbt50Q&amp;nbsp;module and some other hardware, I have tested it with another application firmware that uses Bluetooth and it works correctly.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;I am using the &amp;quot;overlay-logging.conf&amp;quot; to run the application as a &amp;quot;sleepy end device&amp;quot;. Again this works ok on the development kits but not on the custom board/&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;I&amp;#39;ve attached a .txt file of the server logs with additional logging enabled&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/coap_5F00_server_5F00_custom.log"&gt;devzone.nordicsemi.com/.../coap_5F00_server_5F00_custom.log&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;On line 78 you can see a log for &amp;quot;Child timeout expired&amp;quot;, this line doesn&amp;#39;t appear in the logs of the server on the development kit (I can attach these too if needed)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;I&amp;#39;ve also included a screenshot of the RTT logs from the client running on the custom board below (again I can include the non custom board if needed too)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&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/pastedimage1670592194983v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;When I run the same example on the development kit the example runs attached ok, confirmed by typing ot childip and responding with the child&amp;#39;s ip.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Below I&amp;#39;ve included my dts file for the custom board (I&amp;#39;ve had to change the extension to .txt so the upload would work)&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/custom_5F00_board.txt"&gt;devzone.nordicsemi.com/.../custom_5F00_board.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;One thing i wanted to ask was; i&amp;#39;ve had to add uart pins so the firmware will compile even though my board doesn&amp;#39;t have uart. Do you know why these uart pins are&amp;nbsp;needed if the there is no console for the &amp;quot;sleep end device&amp;quot; version?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread Coap Client and Coap Server Example</title><link>https://devzone.nordicsemi.com/thread/399869?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 09:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b025c29-e91b-44c7-adfa-c0116f2b0bb5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That looks strange. I tried the unmodified samples just now, using NCS v2.1.2, and this was my result:&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/pastedimage1670578241405v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;using the &amp;quot;ot state&amp;quot; command also verifies that they have the roles that they claim during the startup. I started by erasing the flash (nrfjprog -e) before programming the samples, so no network data was stored before programming these boards.&lt;/p&gt;
[quote user=""]&lt;span&gt;However&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; if&lt;/span&gt;&lt;span&gt; I&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; the&lt;/span&gt;&lt;span&gt; Co&lt;/span&gt;&lt;span&gt;AP&lt;/span&gt;&lt;span&gt; CLI&lt;/span&gt;&lt;span&gt; example&lt;/span&gt;&lt;span&gt; first&lt;/span&gt;&lt;span&gt; and&lt;/span&gt;&lt;span&gt; go&lt;/span&gt;&lt;span&gt; through&lt;/span&gt;&lt;span&gt; the&lt;/span&gt;&lt;span&gt; Thread&lt;/span&gt;&lt;span&gt; network&lt;/span&gt;&lt;span&gt; initiation&lt;/span&gt;&lt;span&gt; commands&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;ot&lt;/span&gt;&lt;span&gt; channel&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; PAN&lt;/span&gt;&lt;span&gt;ID&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; etc&lt;/span&gt;&lt;span&gt;.),&lt;/span&gt;&lt;span&gt; and&lt;/span&gt;&lt;span&gt; then&lt;/span&gt;&lt;span&gt; flash&lt;/span&gt;&lt;span&gt; the&lt;/span&gt;&lt;span&gt; Co&lt;/span&gt;&lt;span&gt;AP&lt;/span&gt;&lt;span&gt; client&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;server&lt;/span&gt;&lt;span&gt; examples&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; it&lt;/span&gt;&lt;span&gt; will&lt;/span&gt;&lt;span&gt; work&lt;/span&gt;&lt;span&gt; okay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt; &lt;/span&gt;[/quote]
&lt;p&gt;That is probably because the network data is not deleted when you reprogram the board (because it uses a different region of the flash). But you should not need to run the CLI sample first to store the network data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you try to erase the flash, program the client/server samples, and run these commands on both boards:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ot state
ot panid
ot extpanid
ot networkkey
ot channel
ot psck&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do they report the same values on all of them?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>