Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
John-Mark Gurney e70b76111f convert the irrigation project to sysinits... 7 months ago
board convert the irrigation project to sysinits... 7 months ago
loramac add pin description, and use the analog pin to provide randomness.. 1 year ago
mk convert the irrigation project to sysinits... 7 months ago
rs485hid convert the irrigation project to sysinits... 7 months ago
stm32 convert the irrigation project to sysinits... 7 months ago
strobe add the start of the C version for the uC... 1 year ago
.gitignore ignore my standard venv dir name.. 10 months ago
EXCLUDEST.txt add warning about the license excluding use by ST. 8 months ago
LICENSE.txt add warning about the license excluding use by ST. 8 months ago
LINKS.md add some useful reference links.. 8 months ago
LORA-IRR.md comment which pins for programming to save me looking at the pdf.. 7 months ago
Makefile convert the irrigation project to sysinits... 7 months ago
NOTES.md add info on how to debug irq handler issues.. 9 months ago
PROTOCOL.md mention the specific curve/dh used.. 10 months ago
README.md describe board directory.. 8 months ago
RS485HID.md big drop adding the USB HID part of this project... 8 months ago
arch.getxt add some diagrams, and the infrastructure to make them... 1 year ago
board-config.h get tx/rx working between two Node151's.. 1 year ago
board.c convert the irrigation project to sysinits... 7 months ago
box.sh add some diagrams, and the infrastructure to make them... 1 year ago
comms.c if the pending session returns a packet, use it, might be first of neg 8 months ago
comms.h add an include guard... 8 months ago
conns.getxt add some diagrams, and the infrastructure to make them... 1 year ago
hal_generic.c switch to main.h so it pulls in the correct hal headers.. 7 months ago
irr_main.c convert the irrigation project to sysinits... 7 months ago
linker_set.h add framework to get things started... 10 months ago
lora.py big drop adding the USB HID part of this project... 8 months ago
loraserv.py make sure we don't buffer the serial port, we need the packets to 1 year ago
main.c convert the irrigation project to sysinits... 7 months ago
misc.c wrap debugpos when at end of buffer.. 8 months ago
misc.h add memory debug buffer.. Fix FreeBSD by adding a delay.. 1 year ago
multicast.py drop debug print 10 months ago
requirements.txt big drop adding the USB HID part of this project... 8 months ago
si_usb.c make generic, but turns out unneeded on NODE151.. 7 months ago
si_usb.h add wrapper, si_usb.h, clean up si_usb a little, and use wrapper 9 months ago
strobe_rng_init.h big drop adding the USB HID part of this project... 8 months ago
syote_comms.py s/liblora/libsyote/ s/lora_comms/syote_comms/ 10 months ago
sysIrqHandlers.h get tx/rx working between two Node151's.. 1 year ago
sysinit.c convert the irrigation project to sysinits... 7 months ago
sysinit.h add USB, add proper _LAST, and verify range, support void functions 8 months ago
util.py forgot to add the copyright for this file.. 1 year ago
util_load.py change the default to be func.. 1 year ago

README.md

Syote: Secure IoT

This project started off as a project to control an irrigation system via a LoRa radio, but the core architecture of the communication and security can easily be reused for other projects.

The projects that make use of the core protocol are included in this repo to make development easier for now, but if/when the project gets large enough, they will be broken out into their own repositories.

Projects

LoRa Irrigation: Control over LoRa radio.

RS-485 USB HID KVM: USB Keyboard over RS-485

File Layout

Note that things are a mess as they stand right now. The first project was based upon the SemTech reference code which implemented their own HAL on top of ST’s HAL which is partly implemented on top of ARM’s HAL, and in some cases bypasses them. It was also originally written not expecting to be used for another board.

board/ - Board specific code loramac/ - SemTech reference code. Has reference code for LoRa and the Node151 based board. mk/ - Files supporting the build infrastructure. rs485hid/ - Files relating to the RS-485 HID project stm32/ - This is the HAL for ST based parts. It comtains the ARM CMSIS HAL as well, for the parts the ST chose to use. strobe/ - Crypto code that form the basis of the protocol.

Options

Default on: STROBE - This contains all the cryptography parts. SYSINIT - This contains the initalization frmae work, similar to FreeBSD.

Default off: NODE151 - Code necessary for the Heltech Node151 module. RS485FRAME - Code implementing framing tx/rx over RS-485. STM32F103 - Code for a STM32F103 based board. SX1276 - Code necessary for the LoRa Radio. USB_CDC - Code for implementing a USB CDC Endpoint.