Hi Alessandro, Ken

For libcoap, you should be able to just use that package in a project. I
> would try using one of the other examples as a template. Maybe someone else
> can point to a project they have created to get you started.


Currently RIOT has support for tinyDTLS (used by libcoap) but I will
suggest to use PR #7615 [1] instead of the current master. Libcoap is
already included in RIOT as a package, so you can take that as a base for
adding the secured version. However, issue #6038 [2] is of interest.

If you want to save some time you can try Moenoel's work (PR #8610 [3]) as
is already using er-coap (from contiki) and tinyDTLS (again, consider to
use #7615). Yet, this is a LwM2M implementation.
Another alternative, is my old PR #7177 [4] (I think you are already using
it), but the version used for tinyDTLS is not very stable, which is easy to
fix. However,  updating  gcoap would be hard.

Finally and as Ken suggested, there is (the recently released) PR #9450 [5]
which is making use of #7615. Nanocoap is working fine, however is only a
CoAP server. And sadly, I'll not have a client tested soon.

[1]  https://github.com/RIOT-OS/RIOT/pull/7615
[2] https://github.com/RIOT-OS/RIOT/issues/6038
[3] https://github.com/RIOT-OS/RIOT/pull/8610
[4] https://github.com/RIOT-OS/RIOT/pull/7177
[5] https://github.com/RIOT-OS/RIOT/pull/9450

Sincerely, Raul Fuentes


2018-06-28 14:01 GMT+02:00 Ken Bannister <[email protected]>:

> Alessandro, welcome to RIOT!
>
> For CoAPs/DTLS, please check in with @rfuentess or @moenoel. See their PRs
> -- 9446 and 8610, respectively. As I understand it, the goal is to manage
> DTLS at the transport layer.
>
> For libcoap, you should be able to just use that package in a project. I
> would try using one of the other examples as a template. Maybe someone else
> can point to a project they have created to get you started.
>
> RIOT includes a couple of other related implementations, nanocoap and
> gcoap. See the examples folder and my overview [1]. Neither of them include
> specific DTLS adaptations, and I have not tried to use them with the PRs
> above.
>
> Actually, I just noticed PR 9450, which discusses use of nanocoap and
> gcoap with DTLS. I need to follow-up on that PR myself. I'd say the timing
> of your question is pretty good. :-)
>
> Ken
>
> [1] https://github.com/kb2ma/RIOT/wiki/CoAP-Home
>
> On 06/28/2018 03:44 AM, Alessandro Musi wrote:
>
> Hi,
> I wish to study security protocols in IoT and how the impact the
> performance of constrained devices. My goal is to compare CoAP vs CoAPs
> (secured with DTLS). Recently I stumbled upon libcoap and I've tested in my
> Ubuntu the unsecured version
> https://github.com/obgm/libcoap/tree/master
> And the secured version (though it is seems really outdated)
> https://github.com/obgm/libcoap/tree/dtls
>
> I managed to run smoothly both examples following this tutorial
> http://morschi.com/2017/04/04/using-dtls-enabled-coap-clients/
>
> Capturing the traffic using wireshark listening on the loopback interface,
> in the coap example it captured 2 packets the GET and the ACK with the
> resource, in the coaps example it captured a multitude of packets bounded
> to the handshake protocol.
> Now I need to test in a constrained environment, I have some cc2538 motes,
> and the goal is to test using RIOT pushing the code in the motes (1
> client-mote and 1 server-mote) studying the performance.
>
> So basically I'm asking how can I integrate libcoap in RIOT OS and
> replicate the the above coap/coaps client-server example using RIOT (can't
> find any libcoap examples inside RIOT/examples folder, though in RIOT/pkg
> there is the libcoap app).
>
> If libcoap is not fit for the task can you suggest other implementations
> of CoAP client-server and CoAPs client-server? I'm really struggling to
> find DTLS implementation of CoAP.
>
> Thanks
>
>
> _______________________________________________
> users mailing 
> [email protected]https://lists.riot-os.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.riot-os.org/mailman/listinfo/users
>
>


-- 
Ate. Raul FUENTES
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to