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 list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users