John-Mark Gurney
0771f6c87b
add notes about unix dgrams..
3 years ago
John-Mark Gurney
de313e6ea6
use a lambda, shorter and "fools" coverage..
3 years ago
John-Mark Gurney
1b41dc63fb
simplify the test code by using the new comms_process_wrap function...
3 years ago
John-Mark Gurney
7c5828e700
spell this a bit better, use the function I created for this..
3 years ago
John-Mark Gurney
7b4f7cf38c
make sure that comms.c enforces handshake messages..
This just makes sure things are a little tighter wrt protocol
compliance, ensuring that a corrupted initiator doesn't do bad
things..
3 years ago
John-Mark Gurney
4024d1d5e4
add support for starting a new session...
This also adds a check to make sure that the allocated structure matches
the C code so that things won't break.
This breaks out the session state into it's own object... allowing a
common function to handle the state machine...
This also adds a new powerful testing tool. It's a Synchronization
primitive that will ensure blocks of code run in the expected order,
and only run when the previous block has fully run... This helps
ensure ordering between many tasks, to cause race conditions that
would otherwise be hard to cause..
3 years ago
John-Mark Gurney
ba052dd160
missed setting up routing for the analog pin..
3 years ago
John-Mark Gurney
550f7392fe
make sure that the initiator code can deal w/ bogus replies and they
are ignored, and it triggers a resent of the previous packet...
3 years ago
John-Mark Gurney
d6c8ef06ab
add pin description, and use the analog pin to provide randomness..
3 years ago
John-Mark Gurney
d0cc4dd2c9
use the radio RSSI for a source... we may want to shorten this as it takes
3-4 seconds to gather all this... need to add a blinking light to this
so it's clear that it's still starting..
3 years ago
John-Mark Gurney
adc9427e22
remove unused parameters..
3 years ago
John-Mark Gurney
20f123cfc9
move _rng_save earlier, drop some register debugging...
3 years ago
John-Mark Gurney
9db30b71f0
add support for saving PRNG state to EEPROM...
This is better than using RAM, as it keeps the state between power
cycles...
3 years ago
John-Mark Gurney
1f22cf570d
output the .map file as well, this helps figure out where things are..
3 years ago
John-Mark Gurney
22f89f5ce6
make sure that the failure is properly propegated..
3 years ago
John-Mark Gurney
0e098d73c2
abstract out deps to allow adding more dep files...
3 years ago
John-Mark Gurney
fbe09e92b7
sort files in the Makefile..
3 years ago
John-Mark Gurney
0415edce83
add copyright statement to various files as needed..
3 years ago
John-Mark Gurney
f9a9ab2bb9
talk about the special ST license..
3 years ago
John-Mark Gurney
58fa06f80c
add some clarification about additional dirs, and expected license...
Also remind people that it's their responsiblity to follow licenses..
3 years ago
John-Mark Gurney
c4b6360695
add support for replying last message if it was lost..
3 years ago
John-Mark Gurney
200a8a4cd1
mark __repr__ as no cover..
3 years ago
John-Mark Gurney
0f83ec169d
add in support for doing the shared key...
3 years ago
John-Mark Gurney
5a0def61d6
ratchet after nonces, this will help prevent leaking the shared key...
3 years ago
John-Mark Gurney
e3843b2e27
print out a little bit more of the messages..
3 years ago
John-Mark Gurney
5ad4088bf8
add the start of the C version for the uC...
Turns out there's a bit of code that isn't compatible w/ the Python version,
eliminate it... This was to support encoding lengths (via negative length
parameters)...
Also, the default C version (which we want to use) is Keccak(800) and not
Keccak(1600), switch Python to 800, as it'll be faster on the 32-bit uC, and
still has plenty of security margin...
3 years ago
John-Mark Gurney
9e56615b43
minor spelling fixes, and explain the command protocol..
3 years ago
John-Mark Gurney
b54265cb2f
minor spelling fixes..
3 years ago
John-Mark Gurney
1ca15a5d34
add documents w/ notes and the start of the protocol definition...
3 years ago
John-Mark Gurney
bfe9840737
update to moving the tag to the end...
3 years ago
John-Mark Gurney
0b580fc32b
now that we support an OBJDIR, fix up the python tests...
3 years ago
John-Mark Gurney
2dda31e4f4
add starting readme for the project..
3 years ago
John-Mark Gurney
01519c05aa
add recommended build dir to be ignored..
3 years ago
John-Mark Gurney
ecec669bf5
fix return to return false, not -1...
3 years ago
John-Mark Gurney
0835e16706
add ability to send arbitrary packets that are hex encoded..
3 years ago
John-Mark Gurney
8a9c2927dc
add framework for properly receiving/handling incoming data..
The old method would introduce a race condition where the buffer
could be overwritten before the data was consumed. For slow, single
character typing this was fine, but w/ packets being generated by
a computer, this would cause corruption of the incoming data..
3 years ago
John-Mark Gurney
36967b2146
init rx/tx from same set of parameters...
3 years ago
John-Mark Gurney
90ff8701a8
get tx/rx working between two Node151's..
3 years ago
John-Mark Gurney
f121e665b4
fix up white space, drop board-config.h so it doesn't collide with the
custom one..
3 years ago
John-Mark Gurney
a808d359e8
Merge commit '247ed3545b7d83a266440e86188d33cf152389aa' as 'loramac'
3 years ago
John-Mark Gurney
247ed3545b
Squashed 'loramac/' content from commit 34f8c272
git-subtree-dir: loramac
git-subtree-split: 34f8c27281
3 years ago
John-Mark Gurney
e0ee973abb
add loramac, and make the subtree stuff generic..
3 years ago
John-Mark Gurney
e5d6a4e73c
make path a parameter as well...
3 years ago
John-Mark Gurney
adafb3a411
print out some randomness when starting up for now.. shows it's
all working...
3 years ago
John-Mark Gurney
a070e6802b
make the linker information work... add an inline to ignore warning..
symbols defined by the linker script are all treated as addresses, so
we need to get the address, and cast it to an integer for the length
case..
The return value must be used, but as we init early on, we don't need
to check it, so just hide the error w/ an inline function..
3 years ago
John-Mark Gurney
df2aac27e6
clang doesn't work yet because there isn't a minimal set of headers for it..
3 years ago
John-Mark Gurney
319e499b68
add fix so that if it's busy we wait and try again...
3 years ago
John-Mark Gurney
ab2637258f
get basic usb CDC working, and basic strobe working...
3 years ago
John-Mark Gurney
c602a3a894
add depend target, and use the depend to make files to pass to entr to run build..
3 years ago
John-Mark Gurney
899679fce4
enable all warnings and error on them.. fix a couple warnings/errors..
3 years ago