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 роки тому
Mathias Gottschlag
44ef7e57c5
rust-protocol: Add first part of packet encoding.
5 роки тому
Mathias Gottschlag
a93ab30bb9
base-station: Restructure radio code.
5 роки тому
Mathias Gottschlag
42981822eb
.gitignore: Ignore rust-protocol library compiler output.
5 роки тому
Mathias Gottschlag
eccba895bf
base-station: Use rust-protocol library for packet handling.
5 роки тому
Mathias Gottschlag
255cb55f3c
README: Document GetSalt packet.
5 роки тому
Mathias Gottschlag
0ef7cc7216
rust-protocol: Add GetSalt, fix decoding, derive Debug.
5 роки тому
Mathias Gottschlag
50c643ebfa
Add a library for packet encoding/decoding in Rust.
5 роки тому
Mathias Gottschlag
f3e2e2ccb6
display: Use write!() in display code.
Only 100-200 bytes more flash usage.
5 роки тому
Bernd Gottschlag
05696f7e74
Fix decryption bug
5 роки тому
Bernd Gottschlag
1381cb6634
Add encryption for the sent packet
5 роки тому
Bernd Gottschlag
3a21aef881
Rework the makefile and optimize the code for flash space
5 роки тому
Bernd Gottschlag
8a49c011c9
Update packet protocoll
5 роки тому
Bernd Gottschlag
58a48e5230
Fix order of the element count and packet type bit field
5 роки тому