-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial import of tinydtls as a package #4308
Conversation
nice! how big is it? |
Still too big (additional ~30kB ROM). Haven't looked into optimization yet. |
30kB ROM is tolerable. Whats the RAM usage? |
@@ -14,6 +14,7 @@ | |||
*/ | |||
|
|||
#include <errno.h> | |||
#include "assert.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a stdlib header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it refers to assert.h.
RAM usage seems to be rather low (less than 100 bytes for tinydtls itself or so), but I would have to verify that. Maybe I'll find some time tonight. |
I only took a quick glance at the referenced library and I think there is room for improvements (read: reduced size at the expense of speed). E.g. in sha2/sha2.c I see some places that could use loop un-unrolling. Probably you could find a more optimized version of SHA-2 somewhere in the interwebs. |
The client side seems to work with Linux based server, but the other direction or RIOT-to-RIOT still fails with |
@kaspar030, to finally answer your question: currently 264 bytes RAM for tinydtls itself, where 68 bytes are consumed by |
40ff03f
to
9147916
Compare
For now I have no idea how to build this with RIOT pthreads for native. @authmillenon, @LudwigKnuepfer, @Kijewski, any idea? |
I never used pthreads, but maybe a description of your problem might be helpful ;-) |
Just try building the example without OlegHahm@1712acb. |
#4327 is also required. |
No longer WIP. |
This is ready for review. Any volunteers? @kaspar030, @cgundogan, @haukepetersen, @Kijewski, @emmanuelsearch, @authmillenon, @BytesGalore? |
setup: iotlab-m3 as dtlsserver and samr21-xpro as dtlsclient. I then did |
Superseded by #5395. |
The "problem" (if we want to see it like that) with #5395 is that it is only working with GNRC, right? So why close this one? |
Because I'm not gonna continue to work on this anyway. |
(And I think I basically advised @rfuentes to go for GNRC.) |
Particular the application needs some more work.
Depends on #4326 and #4327 to work.Waiting for #4392.