Commit Graph

95 Commits

Author SHA1 Message Date
Martin Preuss
2b2ec8a0d7 Fixed a bug. 2023-03-08 23:01:48 +01:00
Martin Preuss
4b3c7a0fa0 aqhome: Added node db. 2023-02-22 21:25:10 +01:00
Martin Preuss
b2138af652 aqhome: More work on endpoint system. Basically works. 2023-02-22 17:54:17 +01:00
Martin Preuss
3803afbdea added AQH_MsgEndpoint_SetFd(). 2023-02-21 06:19:28 +01:00
Martin Preuss
b6e506e30b Fixed a bug. 2023-02-21 06:19:08 +01:00
Martin Preuss
7dbe3a8e74 avr: started working on flash module. 2023-02-20 23:48:17 +01:00
Martin Preuss
f631d462c1 TIMER: improved module, added some callbacks. 2023-02-20 23:47:56 +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
f9f52d786a Work on now deprecated module AQH_Serial. 2023-02-20 23:45:39 +01:00
Martin Preuss
4c942d2584 More work on node/pc interface.
- added AQH_MSG_ENDPOINT
- added AQH_MsgEndpointLog
- added AQH_MsgEndpointTcp
- added AQH_MsgEndpointTty
- added AQH_MsgEndpointMgr
2023-02-20 23:45:10 +01:00
Martin Preuss
0fb76d384c Decreased verbosity. 2023-02-06 21:55:49 +01:00
Martin Preuss
5cfdaf5ffe Removed code no longer needed. 2023-02-06 21:55:36 +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
7e3dfa12fa comproto: Fixed a bug.
Was not saving low byte of value.
2023-02-06 21:54:04 +01:00
Martin Preuss
f0e4ac5595 Always use new shortened address assignment protocol if possible. 2023-02-06 21:11:24 +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
d56cbd6f25 AVR: More work on address assignment procedure. 2023-02-06 21:09:38 +01:00
Martin Preuss
7eaea20d12 aqhome: fixed a bug. 2023-02-05 23:43:53 +01:00
Martin Preuss
42ebb11a99 aqhome: added more parsers. 2023-02-05 23:43:43 +01:00
Martin Preuss
716248c4e1 Implemented address assignment protocol. 2023-02-05 23:43:16 +01:00
Martin Preuss
c1aee1e2c5 Renamed i2c to twi. 2023-02-05 15:39:15 +01:00
Martin Preuss
a2e2bb23ff aqhome: Add debug output for invalid messages. 2023-02-05 15:38:55 +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
1adb74aaef comproto: simplified some enqueue routines. Renamed i2c to twi.
- simplified CPRO_EnqueueComSendStats
- simplified CPRO_EnqueueValue
- renamed i2c to twi
2023-02-05 15:37:47 +01:00
Martin Preuss
5a2de1df18 comproto: started simplifying code to prepare and enqueue packets. 2023-02-05 14:57:38 +01:00
Martin Preuss
b6cba69da8 0BUILD: Set fuses to allow for self programming. 2023-02-04 16:02:59 +01:00
Martin Preuss
6fe2f893f0 aqhome: Added parser for needaddr message. 2023-02-04 16:02:40 +01:00
Martin Preuss
29e2054ab9 Call UID generator (if necessary). 2023-02-04 16:02:18 +01:00
Martin Preuss
11c167171a COMPROTO: Added CPRO_EnqueueNeedAddress 2023-02-04 16:01:48 +01:00
Martin Preuss
e36d06d00d Added tests for pseudo random generator. 2023-02-04 16:01:32 +01:00
Martin Preuss
369ad2a27e Timer: Added callback onSystemStart 2023-02-04 16:01:09 +01:00
Martin Preuss
40710a003a Utils: Added pseudo random generator. 2023-02-04 16:00:50 +01:00
Martin Preuss
1620e4c0e5 aqhome: Improved serial port handling, added parsers for different msg types. 2023-02-04 00:58:28 +01:00
Martin Preuss
7ac88f3fb9 base: Started working on maintenance system. 2023-02-04 00:57:31 +01:00
Martin Preuss
f3630835f2 Utils: added code to write FLASH (bot tested, yet). 2023-02-04 00:56:59 +01:00
Martin Preuss
e0d392c895 Moved protocol stuff into comproto.asm. 2023-02-04 00:56:29 +01:00
Martin Preuss
ea2b592406 main: Fixed a bug.
Need to save R22 if you use it..
2023-02-02 00:54:44 +01:00
Martin Preuss
67bf1515e9 More TODO stuff. 2023-02-02 00:45:52 +01:00
Martin Preuss
6c69e98ebc libtest: Parse "value" packets. 2023-02-02 00:45:42 +01:00
Martin Preuss
2bff1c1493 lib: Minor change. 2023-02-02 00:45:21 +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
5f14b1f74d Timer: Add callback "onEvery30s". 2023-02-02 00:42:28 +01:00
Martin Preuss
e8ae7be6c4 TWI master: Added remarks. 2023-02-02 00:42:04 +01:00
Martin Preuss
d2fa4dfb86 LCD: Minor changes. 2023-02-02 00:41:35 +01:00
Martin Preuss
8082fe5226 Added module for SI7021 temp/humidity sensor. 2023-02-02 00:39:57 +01:00
Martin Preuss
6bdecd7cc9 COM: Added routine COM_EnqueueValue.
This sends a message with a sensor value.
2023-02-02 00:39:29 +01:00
Martin Preuss
97d8fc7308 libtest: fixed a bug. 2023-01-30 01:03:24 +01:00
Martin Preuss
a7b09dc1be main: init bmp280. cleanup. 2023-01-30 01:03:02 +01:00
Martin Preuss
cf7598fc92 twi_master: add routine twiReceiveByteSendAck. 2023-01-30 01:02:31 +01:00
Martin Preuss
84c63f5651 LCD: moved address definition to main file. 2023-01-30 01:02:04 +01:00