<?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>Testing OpenThread COAP Server and COAP Client</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116827/testing-openthread-coap-server-and-coap-client</link><description>Hi. 
 I&amp;#39;m playing with an scenario based on two nrf52840dk and a dongle. 
 I have deployed a OTBR on a Linux Ubuntu22.04 and flashed the dk with OT COAP Server and Client respectively. ( https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/openthread</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2024 14:09:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116827/testing-openthread-coap-server-and-coap-client" /><item><title>RE: Testing OpenThread COAP Server and COAP Client</title><link>https://devzone.nordicsemi.com/thread/514766?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 14:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8494c4b5-6cb8-4399-b8e7-f3ac3c216020</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy is out of the office, so I picked up this case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The mentioned tools is not developed and provided by us, Nordicsemic. Please open an issue in the OTBR/libcoap repository.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing OpenThread COAP Server and COAP Client</title><link>https://devzone.nordicsemi.com/thread/513692?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 16:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4157b00b-4168-475e-8144-a30932bc9eb3</guid><dc:creator>gabilm</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have tested it form the coap client (another nrf52840dk node) and it works (note that the OpenThread COAP Client example doesn&amp;#39;t include the CONFIG_OPENTHREAD_COAP directive in order to allow ot coap in the node, you have to enable it and to run &amp;quot;ot coap start&amp;quot; on the node before the test).&lt;/p&gt;
&lt;p&gt;However, I still can not connect from the host. I have ping from the host, but trying the examples:&lt;/p&gt;
&lt;p&gt;coap-client-gnutls coap://[&lt;span style="font-family:monospace;"&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(0, 0, 0, 1);"&gt;fd11:22:0:0:0:0:0:100&lt;/span&gt;&lt;/span&gt;]/provisioning&lt;/p&gt;
&lt;p&gt;coap-client-gnutils -m put -N -e &amp;quot;2&amp;quot; coap://[&lt;span style="font-family:monospace;"&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(0, 0, 0, 1);"&gt;fd11:22:0:0:0:0:0:100&lt;/span&gt;&lt;/span&gt;]/light&lt;/p&gt;
&lt;p&gt;I get a timeout.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing OpenThread COAP Server and COAP Client</title><link>https://devzone.nordicsemi.com/thread/513638?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 13:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b834c121-d815-46fe-b9dc-06e7a77b325c</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Gabriel,&lt;/p&gt;
&lt;p&gt;You can send GET only to &amp;quot;provisioning&amp;quot; resource when server is in provisioning state (button4). You can also send PUT to &amp;quot;light&amp;quot; resource to trigger LED.&lt;br /&gt;For example after attaching with coap server and other OT CLI device, get IP addres from coap server and press button 4.&lt;br /&gt;when LED3 is blinking, on other device send:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ ot coap get fdde:ad00:beef:0:4632:8245:46a9:8af8 provisioning
Done
coap response from fdde:ad00:beef:0:4632:8245:46a9:8af8 with payload:
fddead00beef00004632824546a98af8&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And to toggle LED4, from the other device, send:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;ot coap put fdde:ad00:beef:0:28cd:59c5:d0a3:66bd light non-con 2&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;where &amp;quot;2&amp;quot; is toggle command. see: &lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/openthread/coap_server/interface/coap_server_client_interface.h" href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/openthread/coap_server/interface/coap_server_client_interface.h" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/openthread/coap_server/interface/coap_server_client_interface.h&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>