Martin Preuss
9b7e72c3ad
avr: add an initial wait time before starting the node.
...
This allows for desyncing of nodes to reduce COM collisions.
2023-03-19 13:26:03 +01:00
Martin Preuss
08d6cab1e9
avr: started working on base system vs. main system.
...
base system will be a base system which can be used to flash and start
the main system.
2023-02-20 23:47:30 +01:00
Martin Preuss
4d4bdf3203
main.asm: CLI while measuring and preparing packet. Directly call onSystemStart.
2023-02-06 21:55:10 +01:00
Martin Preuss
e5a4f1b1e6
main: only send value messages if we have an address.
2023-02-06 21:10:41 +01:00
Martin Preuss
716248c4e1
Implemented address assignment protocol.
2023-02-05 23:43:16 +01:00
Martin Preuss
0acb92d3cb
Moved routine sendValueMsg to Main_SendValueMsg in main.asm. Removed debug code.
2023-02-05 15:38:32 +01:00
Martin Preuss
e36d06d00d
Added tests for pseudo random generator.
2023-02-04 16:01:32 +01:00
Martin Preuss
1389ab1953
build: Reorganized code.
...
Most MCU-dependent variable definitions ist now put into node-specific files.
Makes it easier to maintain code for different node types.
2023-02-02 00:44:50 +01:00
Martin Preuss
a7b09dc1be
main: init bmp280. cleanup.
2023-01-30 01:03:02 +01:00
Martin Preuss
ff71ed1718
Main: Write COM stats every 10s.
2023-01-29 18:51:30 +01:00
Martin Preuss
487e877e7e
Started working on LCD module.
2023-01-28 15:29:58 +01:00
Martin Preuss
77c7a78e7d
main: added tests for twi module. COM: added COM_EnqueueI2cBusMember
2023-01-28 00:11:03 +01:00
Martin Preuss
e9541761fd
AVR: Perdiodically send SEND STATs message (debug).
2023-01-26 18:57:48 +01:00
Martin Preuss
7b769807bd
AVR: For debugging purposes, send a ping every 10s.
2023-01-25 21:46:15 +01:00
Martin Preuss
51c0be1754
COM: Transformed to use normal buffers but in kind of a ringbuffer way.
...
There are now fixed buffers which are organized in a ringbuffer. This makes
it easier to access data stored in the buffers, also receiving packets is
now way faster with reduced risk of sync problems.
2023-01-25 16:28:36 +01:00
Martin Preuss
a8a9571a27
avr: enabled COM_Run.
2023-01-22 17:46:46 +01:00
Martin Preuss
df08b98bf3
main: added timer callbacks for 10s and 1m. removed debug code.
2023-01-22 01:06:23 +01:00
Martin Preuss
705562d881
main: added debug code.
2023-01-22 00:17:21 +01:00
Martin Preuss
dcd54d9118
Debugging.
2023-01-21 18:11:23 +01:00
Martin Preuss
ff734192bb
AVR: More work on COM module.
2023-01-19 00:18:27 +01:00
Martin Preuss
6468e76545
Added and simplified COM module.
...
Directly use pins, no complicated redirections.
Router modules will probably use real UARTs or MCUs programmed as UARTs.
2023-01-18 01:09:31 +01:00
Martin Preuss
12b31972be
Started working on COM module.
2023-01-17 20:56:18 +01:00
Martin Preuss
16be96ada9
Initial import.
2023-01-16 23:12:09 +01:00