Mathias Gottschlag
ddf7753ec6
display: Display the data received from the base station.
5 роки тому
Mathias Gottschlag
15c840dd9d
rust-protocol: Implement decoding/encoding for the remaining packet types.
5 роки тому
Mathias Gottschlag
9c1a9bf784
display: Do not set zero-filled packets if a packet cannot be encoded.
5 роки тому
Mathias Gottschlag
72e4b09b3e
display: Fix timeouts.
5 роки тому
Mathias Gottschlag
3d8c6f36cd
Fix crashes after a packet was received.
5 роки тому
Mathias Gottschlag
9f462d41b3
base-station: Return the local time for ValueType::Time requests.
5 роки тому
Bernd Gottschlag
b0cfbc928f
Remove unneeded TODOs
5 роки тому
Bernd Gottschlag
045873b1ca
Add another sensor to the base station for testing
5 роки тому
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 роки тому
Mathias Gottschlag
815f41c7d9
First part of UI refactoring (with proper quick refresh).
5 роки тому
Bernd Gottschlag
ddb99093ec
Move the nrf24l01 to improve reception
5 роки тому
Mathias Gottschlag
5fdb6c2b02
display: First part of fetching values from the base station.
5 роки тому
Mathias Gottschlag
b82214e974
display: Implement fast refresh (WIP, requires better UI code).
5 роки тому
Bernd Gottschlag
9cc2488996
Put send functions into a separate file
5 роки тому
Bernd Gottschlag
4f83ec8bef
Add handling of the salt
On start-up the sensor sends a Get_Salt-message to the base station. The
base station responds and sends the salt, which the sensor uses from
there on.
5 роки тому
Bernd Gottschlag
b31efd8359
Fix decryption function
5 роки тому
Bernd Gottschlag
08546c2e36
Re-enable dynamic packet length
The nrf24l01 used on the boards is probably a counterfeit chip. It
cannot acknowledge received packets (probably a bit flip of the NO_ACK
bit described here:
https://ncrmnt.org/2015/03/13/how-do-i-cost-optimize-nrf24l01/ ) if the
dynamic packet length is disabled.
5 роки тому
Bernd Gottschlag
fe5cd5fc86
Add delay after setting the pull ups for pin programming
Without it the bits are sometimes read incorrectly.
5 роки тому
Bernd Gottschlag
9694fa3913
Fix the rx0 address
The address was set for the wrong address and thus the module could not
receive acks from the base station
5 роки тому
Bernd Gottschlag
f78e2f65c6
Disable the dynamic packet length
The packet length is now fixed to 32 bytes.
5 роки тому
Bernd Gottschlag
608a6ee253
Fix generation of the salt
5 роки тому
Mathias Gottschlag
5a5f722287
display: Add update timer.
5 роки тому
Mathias Gottschlag
d0b4b5b256
base-station: Fix NRF24L01 initialization errors.
The power cycling needs to be performed with CS high.
5 роки тому
Mathias Gottschlag
71e2b5083d
display: Disable dynamic packet lengths.
Improves compatibility with counterfeit "NRF24L01" chips.
5 роки тому
Mathias Gottschlag
223442b0a6
Implement RX interrupt handling using gpio-cdev.
Sending still uses busy waiting, using interrupts there requires some
additional restructuring.
5 роки тому
Mathias Gottschlag
50f4c6efb6
base-station: Enable dynamic packet length.
Improves compatibility with counterfeit "NRF24L01" chips.
5 роки тому
Bernd Gottschlag
ab498f16eb
WIP: rebuild assembly
5 роки тому
Bernd Gottschlag
9070abc2b0
Increase the thickness of the acryl glass pane
5 роки тому
Bernd Gottschlag
35242eeffd
Redesign the enclosure based on the finished pcb design
5 роки тому
Bernd Gottschlag
e0f89a4867
Add first version of the enclosure
5 роки тому
Mathias Gottschlag
42de2d686c
display: Fix reported humidity.
5 роки тому
Mathias Gottschlag
1344ba308b
base-station: Reimplement radio code.
5 роки тому
Mathias Gottschlag
c4e88e5549
base-station: Add documentation comments.
5 роки тому
Mathias Gottschlag
2325b6e49c
base-station: Implement storing/retrieving the most recent set of values.
5 роки тому
Mathias Gottschlag
20571080a3
rust-protocol: More #[derive]s (for hashing/comparison).
5 роки тому
Mathias Gottschlag
ea8a5e0b04
rust-protocol: Add functions to convert between Value and (ValueType, i64).
5 роки тому
Mathias Gottschlag
6491884eba
display: Cargo.lock
5 роки тому
Mathias Gottschlag
b098fa1ee4
Place keys in .gitignore.
5 роки тому
Mathias Gottschlag
4afb52c5be
base-station: First part of refactoring to use tokio and InfluxDB.
5 роки тому
Mathias Gottschlag
f5e23486a9
base-station: Power-cycle module until it responds.
5 роки тому
Mathias Gottschlag
5a62bd1299
display: Add some radio code to fetch a salt and send the first report.
5 роки тому
Mathias Gottschlag
65664d2b93
rust-protocol: Fix return value.
5 роки тому
Mathias Gottschlag
e36c766458
rust-protocol: Fix value in Salt packets.
5 роки тому
Mathias Gottschlag
9aefb20f2c
rust-protocol: Fix checksum.
5 роки тому
Mathias Gottschlag
b2dfe684f6
rust-protocol: Implement a simple unit test.
5 роки тому
Mathias Gottschlag
ce0896f5c0
rust-protocol: Let decode functions return errors for easier debugging.
5 роки тому
Mathias Gottschlag
c9795dd80a
base-station: Fix NRF24 driver version.
5 роки тому
Mathias Gottschlag
4a0d41a764
base-station: Fix RX address.
5 роки тому
Mathias Gottschlag
c1ffd88f6b
rust-protocol: Implement encoding report packets.
5 роки тому
Mathias Gottschlag
367cbe1267
base-station: Reply to GetSalt requests.
5 роки тому