Bernd Gottschlag
59c6b14d5b
Add handling for different encryption keys for the stations
There are eight key files in the common folder. The files are converted
to header files on compile time and the array of the keys is filled with
them. After determining the device id via the pin programming the
corresponding key is chosen.
Each of the keys is
mapped to one station id.
5 anos atrás
Bernd Gottschlag
9cc2488996
Put send functions into a separate file
5 anos atrás
Bernd Gottschlag
3a21aef881
Rework the makefile and optimize the code for flash space
5 anos atrás
Bernd Gottschlag
c86399b66e
Add the calculation of a crc
The algorith used is for the CRC-16-CCITT, also known as CRC-KERMIT.
5 anos atrás
Bernd Gottschlag
30fe01bb9e
Generate an ID according to the dip switches
The ID is used as the last byte of the RX address. It is also sent as a
part of the data packet to allow assigning the sending station to a
packet.
5 anos atrás
Bernd Gottschlag
e7bfca4363
Use the IRQ signal from the nrf24l01 instead of polling the status
This is done to avoid transmission erros as described in
https://forum.mysensors.org/topic/10452/nrf24l01-communication-failure-root-cause-and-solution
5 anos atrás
Bernd Gottschlag
0c03c24fcd
Change the MCU to the Atmega88
The pin definitions are updated and the uart debug interface is removed
as it is not present on the actual board.
5 anos atrás
Bernd Gottschlag
5ee6bbbf1a
Add SPI interface functions
5 anos atrás
Bernd Gottschlag
e5ad15dbfa
Add reading from the BME280 using the official API
Currently the data values are written to the debug output.
5 anos atrás
Bernd Gottschlag
33e1d5e700
WIP tidy up the NRF24L01 code
5 anos atrás
Bernd Gottschlag
347211065c
Add prototyping code for sending a dummy message with the nrf24l01
The firmware is developed using an aduino micro pro with an atmega32u4
as the hardware for the weather station is not ready yet.
5 anos atrás