CoAP in OpenThread

1,031 views
Skip to first unread message

KOUDA MOHAMED AMINE

unread,
Feb 24, 2017, 4:01:14 PM2/24/17
to openthread-users
hello , is there any one who worked on openthread's coap because i need a simple coap example (server + client) 
 

KOUDA MOHAMED AMINE

unread,
Feb 26, 2017, 5:52:06 PM2/26/17
to openthread-users
no one !!!?????? 

Jonathan Hui

unread,
Feb 26, 2017, 7:56:08 PM2/26/17
to KOUDA MOHAMED AMINE, openthread-users
OpenThread provides CoAP Client and Server functionality to the application via the public CoAP APIs in include/openthread-coap.h.  Note that OpenThread's CoAP API is disabled by default.  To enable that feature, you will need to add `--enable-application-coap` to the `./configure` options.  Unfortunately, OpenThread does not yet have a simple example that demonstrates using the OpenThread public CoAP APIs.  Until then, you can look throughout the OpenThread code and see many examples of how CoAP is used internally.

--
Jonathan Hui

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-users+unsubscribe@googlegroups.com.
To post to this group, send email to openthread-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/d524233a-79e0-42ea-9d6c-7b158e494bc3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

ron...@pathpartnertech.com

unread,
Feb 28, 2017, 7:18:12 AM2/28/17
to openthread-users
hi kouda Mohamad Amine ,

if you had find anything about coap in openthread ?  please share it because i am also working on it .

Thanks
ronak

Di Piazza Alain

unread,
Mar 8, 2017, 8:38:00 AM3/8/17
to openthread-users

I have the same request, and I don’t know exactly how to start…

Request :

I want to send a Coap request from a device A (for instance the Leader) to a device B (for instance a Router) and I want the device B being able to get a response back to A.
The request could be to retrieve the temperature value on device B and then display it back to device A.

 

One approach could be to create a new class similar to  NetworkDiagnostic for example named NetworkAppli and use somehow the same architecture/code as what is found inside the NetworkDiagnostic class.

 

It is the good approach ?

 

Of course I don't want to patch the OpenThread code...

Thank you very much
 

 

Jonathan Hui

unread,
Mar 8, 2017, 3:51:48 PM3/8/17
to Di Piazza Alain, openthread-users
Code external to the core OpenThread library should use OpenThread's public API.  OpenThread exposes CoAP via the CoAP API.  Note that to enable this function, you must specify `--enable-application-coap=yes` as part of `./configure`.

--
Jonathan Hui

 

 

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-users+unsubscribe@googlegroups.com.
To post to this group, send email to openthread-users@googlegroups.com.

KOUDA MOHAMED AMINE

unread,
Mar 14, 2017, 8:46:09 AM3/14/17
to openthread-users
i have another problem !! :)
when i create the coap server using the API :   otCoapServerStart(sInstance);
its done without error "kThreadError_None", but when i want to test if the server is running there is nothing ( with coaping or copper )
ps: i set the wpantund and the instance communicate with the pc via ping normally
but coaping returns " no response after 1.0 second"
i dont find the problem

Jonathan Hui

unread,
Mar 14, 2017, 4:30:34 PM3/14/17
to KOUDA MOHAMED AMINE, openthread-users
Nordic recently released an OpenThread-based SDK that includes CoAP examples.

--
Jonathan Hui

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-users+unsubscribe@googlegroups.com.
To post to this group, send email to openthread-users@googlegroups.com.

Krzysztof Loska

unread,
Mar 15, 2017, 9:58:40 AM3/15/17
to openthread-users, kouda...@gmail.com, jon...@nestlabs.com
Hi,

I confirm :). If you would like to try Nordic Semiconductor's platform we provide nRF5 Software Development Kit for Thread based on OpenThread stack. Among others it includes CoAP examples:
"The Thread MTD CoAP Client, Thread Simple CoAP Client, and Thread Simple CoAP Server examples demonstrate interactions between nodes performing different Thread roles with the use of OpenThread and built-in CoAP protocol. Thread Simple CoAP Client and Thread Simple CoAP Server examples demonstrate Full Thread Device functionality (Thread Router role and REED role). Thread MTD CoAP Client example demonstrates Minimal Thread Device functionality (Minimal End Device role and Sleepy End Device role)."


Best regards,
Krzysztof Loska


On Tuesday, March 14, 2017 at 9:30:34 PM UTC+1, Jonathan Hui wrote:
Nordic recently released an OpenThread-based SDK that includes CoAP examples.

--
Jonathan Hui

On Tue, Mar 14, 2017 at 5:46 AM, KOUDA MOHAMED AMINE <kouda...@gmail.com> wrote:
i have another problem !! :)
when i create the coap server using the API :   otCoapServerStart(sInstance);
its done without error "kThreadError_None", but when i want to test if the server is running there is nothing ( with coaping or copper )
ps: i set the wpantund and the instance communicate with the pc via ping normally
but coaping returns " no response after 1.0 second"
i dont find the problem

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To post to this group, send email to openthre...@googlegroups.com.

KOUDA MOHAMED AMINE

unread,
Apr 2, 2017, 3:41:32 AM4/2/17
to openthre...@googlegroups.com
hi,
how can i include the resource description like (ct= , rt , if ...) into the coap resource , do i have to modify the structure of  otCoapResource and add a field ( description ) ?? or there is another way  ??


Le vendredi 24 février 2017 22:01:14 UTC+1, KOUDA MOHAMED AMINE a écrit :
Reply all
Reply to author
Forward
0 new messages