Commit Graph

45 Commits

Author SHA1 Message Date
Martin Preuss
8aa4143d8a avr: move ds18b20 screen code into module file. 2024-09-29 21:03:12 +02:00
Martin Preuss
23489dd5bf avr: removed unneeded code. 2024-09-29 15:03:36 +02:00
Martin Preuss
9e80636acb avr: enable sk6812 module. 2024-09-18 20:23:16 +02:00
Martin Preuss
7a5900be25 avr: added functions to change speed.
Main code might work at 8 MHz, but boot code is compiled for 1 MHz,
so we need to set speed accordingly when rebooting into boot loader.
2024-09-13 21:41:38 +02:00
Martin Preuss
79afc70b92 avr: include printDs inside #ifdef 2024-09-12 13:04:39 +02:00
Martin Preuss
4a20933397 avr: added debug output to lcd for ds18b20. 2024-09-12 11:45:22 +02:00
Martin Preuss
b0afa98387 avr: change debug position. 2024-09-10 02:57:54 +02:00
Martin Preuss
e70c294d9b avr: added code for missing modules. 2024-09-09 15:49:26 +02:00
Martin Preuss
b70e0e0bc2 avr: moved defs to correct files. 2024-09-05 18:54:14 +02:00
Martin Preuss
84403d07f6 avr: added initial module to handle reed contacts.
Detects and reports opening and closing of a window/door.
Nexts step is to allow for external configuration (e.g. standard mode
with one reed contact versus multi-contact mode to detect tilting of a
window/door).
2023-05-12 21:41:39 +02:00
Martin Preuss
4a093905e8 Started working on CNY70 module (doesn't work, yet). 2023-05-02 00:03:41 +02:00
Martin Preuss
5e12b8ad4e started reorganizing code into subfolders. 2023-04-22 00:04:10 +02:00
Martin Preuss
97016b21b9 Rebooting and flashing a node now works! 2023-04-21 23:38:44 +02:00
Martin Preuss
86b45a58e5 avr: decreased verbosity. minor fixes.
- address claiming modes now work
2023-04-12 23:32:08 +02:00
Martin Preuss
ded08b8c47 avr: new com2 and timer stack basically works again. 2023-04-12 21:46:34 +02:00
Martin Preuss
024d40fc95 avr: started reworking COM module.
- sending and receiving now basically works again, but too often the
  read buffer is in use when trying to receive a message.
2023-04-12 15:30:52 +02:00
Martin Preuss
b5dc704119 removed idle time calculation (doesn't work so far). 2023-04-10 23:48:24 +02:00
Martin Preuss
eca6fc6efc avr: try calculating idle times. 2023-04-10 23:33:24 +02:00
Martin Preuss
7d9f3225ef avr: only include lcd strings if lcs module is used. 2023-04-10 01:02:25 +02:00
Martin Preuss
7490167694 avr: cleanup, added labels to calculate module sizes. 2023-04-08 18:18:19 +02:00
Martin Preuss
56c11b959e avr: add copyright notices. 2023-04-08 13:05:05 +02:00
Martin Preuss
3485449e00 avr: moved code outside of ifdef/endif pair (fixes a bug). 2023-03-19 23:22:08 +01:00
Martin Preuss
a1f700efc1 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
8119cba750 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
d3c279101c main.asm: CLI while measuring and preparing packet. Directly call onSystemStart. 2023-02-06 21:55:10 +01:00
Martin Preuss
b3b5aaba43 main: only send value messages if we have an address. 2023-02-06 21:10:41 +01:00
Martin Preuss
0b1e0ea4d5 Implemented address assignment protocol. 2023-02-05 23:43:16 +01:00
Martin Preuss
2956637605 Moved routine sendValueMsg to Main_SendValueMsg in main.asm. Removed debug code. 2023-02-05 15:38:32 +01:00
Martin Preuss
1c08bcb1ba Added tests for pseudo random generator. 2023-02-04 16:01:32 +01:00
Martin Preuss
0c87d3fc4d 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
b34f3ce2cb main: init bmp280. cleanup. 2023-01-30 01:03:02 +01:00
Martin Preuss
2bfd64a22b Main: Write COM stats every 10s. 2023-01-29 18:51:30 +01:00
Martin Preuss
aac3c16b29 Started working on LCD module. 2023-01-28 15:29:58 +01:00
Martin Preuss
4cbcfd6c01 main: added tests for twi module. COM: added COM_EnqueueI2cBusMember 2023-01-28 00:11:03 +01:00
Martin Preuss
d51eda9604 AVR: Perdiodically send SEND STATs message (debug). 2023-01-26 18:57:48 +01:00
Martin Preuss
3ae1fbbe0d AVR: For debugging purposes, send a ping every 10s. 2023-01-25 21:46:15 +01:00
Martin Preuss
348d808706 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
144ef32252 avr: enabled COM_Run. 2023-01-22 17:46:46 +01:00
Martin Preuss
a978bf9686 main: added timer callbacks for 10s and 1m. removed debug code. 2023-01-22 01:06:23 +01:00
Martin Preuss
53e60c7304 main: added debug code. 2023-01-22 00:17:21 +01:00
Martin Preuss
aeee0c6f64 Debugging. 2023-01-21 18:11:23 +01:00
Martin Preuss
ad2ff142c4 AVR: More work on COM module. 2023-01-19 00:18:27 +01:00
Martin Preuss
531cf49a6f 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
4eb9dd8777 Started working on COM module. 2023-01-17 20:56:18 +01:00
Martin Preuss
112e15e41b Initial import. 2023-01-16 23:12:09 +01:00