Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
yids
avr-pager
Commits
aa013437
Commit
aa013437
authored
Dec 06, 2015
by
hark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huh
parent
07176ba4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
2 deletions
+52
-2
LORAWAN
LORAWAN
+10
-0
README
README
+5
-0
arduino-rx/Makefile
arduino-rx/Makefile
+2
-0
base-tx/packets.h
base-tx/packets.h
+35
-2
No files found.
LORAWAN
View file @
aa013437
...
...
@@ -8,4 +8,14 @@ In the multicast slot pager messages can be send to a multicast group that is al
In that way receive only devices can receive messages.
"
Messages can be ―unicast‖ or ―multicast‖. Unicast messages are sent to a single end-device
and multicast messages are sent to multiple end-devices. All devices of a multicast group
must share the same multicast address and associated encryption keys. The LoRaWAN
Class B specification does not specify means to remotely setup such a multicast group or
securely distribute the required multicast key material. This must either be performed during
the node personalization or through the application layer.
"
http://thethingsnetwork.org/wiki/Hardware/OverviewNodes
README
View file @
aa013437
...
...
@@ -6,3 +6,8 @@ to try it out:
apt-get install arduino arduino-mk
- get the required libraries from https://gitlab.net.020wireless.nl/yids/arduino-build
some things on ECC:
http://www.infosecwriters.com/Papers/Anoopms_ECC.pdf
http://www.johannes-bauer.com/compsci/ecc/
arduino-rx/Makefile
View file @
aa013437
USER_LIB_PATH
=
../arduino-build/libraries/
BOARD_TAG
=
atmega328
ARDUINO_LIBS
=
RadioHead SPI AESLib Wire LCDI2C_LK162
include
/usr/share/arduino/Arduino.mk
...
...
base-tx/packets.h
View file @
aa013437
...
...
@@ -4,10 +4,43 @@
struct
pagermessage
{
// there is no space to store all pubkeys of possible senders, so need to be send
EccPoint
senderPubkey
;
//Will be filled in with the compressed public key. Must be at least
// (curve size + 1) bytes long; for example, if the curve is secp256r1,
// compressed must be 33 bytes long.
uint8_t
senderpubkey
[
33
];
//
// address is SHA1 hash of publickey
int
address
;
// maybe use 7bit ascii, or even smaller characters (only letters + numbers)
char
msg
[
127
];
}
/* subjectPublicKeyInfo field
* in X.509 certificates [PKI]
* https://www.ietf.org/rfc/rfc5480.txt
* https://tools.ietf.org/html/rfc5915
*/
/*
* gpg
* A V4 fingerprint is the 160-bit SHA-1 hash of the octet 0x99,
* followed by the two-octet packet length, followed by the entire
* Public-Key packet starting with the version field. The Key ID is the
* low-order 64 bits of the fingerprint. Here are the fields of the
* hash material, with the example of a DSA key:
*/
/* lorawan
Rate Max payload size
0 51
1 51
2 51
3 115
4 222
5 222
6 222
7 222
8:15 not defined
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment