Martin Preuss
a3d5b33105
mainly built-fixes.
2025-01-01 19:33:32 +01:00
Martin Preuss
433720525d
aqhome: handle types for CO2 and TVOC.
2024-12-15 18:17:35 +01:00
Martin Preuss
061438b7c8
avr, aqhome: added modality MOTION.
2024-10-28 23:41:27 +01:00
Martin Preuss
a624331166
aqhome: add constructor for VALUE3 messages.
2024-09-22 21:23:53 +02:00
Martin Preuss
4548b3c225
aqhome: discard data on bad messages, make socket non-blocking.
...
still doesn't seem to recover from bad messages.
2024-09-20 01:28:54 +02:00
Martin Preuss
0f98ed87a4
aqhome: improved error handling.
2024-09-13 01:11:11 +02:00
Martin Preuss
50546799dc
aqhome: add new msg codes to type group "VALUES".
2024-09-09 15:46:48 +02:00
Martin Preuss
9bc837249e
aqhome: fixed a minor bug.
2024-09-09 15:46:08 +02:00
Martin Preuss
5f2da242c5
aqhome: adapted to latest changes.
2024-09-07 14:57:40 +02:00
Martin Preuss
9b724d5a5f
aqhome: adapted to latest changes in node firmware.
2024-09-06 22:52:25 +02:00
Martin Preuss
9b7d043682
Started working on aqhome-nodes which will replace aqhomed.
2023-09-13 23:31:02 +02:00
Martin Preuss
0fd58567fe
adapted to latest changes in gwen (msgio API v2 becomes v1).
2023-07-12 19:30:53 +02:00
Martin Preuss
c7f232dd98
decreased verbosity, send MQTT ping every 2 minutes to avoid disconnect.
2023-07-12 16:45:20 +02:00
Martin Preuss
08c3875a26
aqhome: completed adapting to msgio2 interface.
2023-07-12 13:33:04 +02:00
Martin Preuss
39987b31c7
aqhome: re-implemented aqhomed.
...
- added IPC endpoint2
2023-07-12 01:45:24 +02:00
Martin Preuss
43b23b2636
msg: added endpoint for tty.
2023-07-10 21:38:22 +02:00
Martin Preuss
efcab6f38d
aqhome: only say "open" instead of "fully open".
2023-05-13 00:38:51 +02:00
Martin Preuss
9f32f206b3
aqhome: improved "write" module.
...
- write window status as string translated from value
- reduced code duplication
2023-05-13 00:15:07 +02:00
Martin Preuss
6a22fb9956
aqhome: write values also to file "value".
...
- if valueType is known write value into the given file
- always write raw value into file "value"
2023-05-13 00:00:17 +02:00
Martin Preuss
226922d3e4
avr/reed: implemented tilt detection mode
...
- implemented tilt detection mode
- added docu
- change the way a VALUE2 message is printed when value type is "door"
2023-05-12 23:19:01 +02:00
Martin Preuss
bcf1674b3b
Fixed a bug (hanging process).
2023-05-02 00:03:01 +02:00
Martin Preuss
d7ac2c74fb
aqhome: added plugin which writes received values into files. used by munin.
2023-04-26 17:33:44 +02:00
Martin Preuss
5ba0bdff55
aqhome: fixed memory leaks.
2023-04-26 02:07:00 +02:00
Martin Preuss
1c09127235
aqhome: fixed a bug.
2023-04-22 14:46:40 +02:00
Martin Preuss
97016b21b9
Rebooting and flashing a node now works!
2023-04-21 23:38:44 +02:00
Martin Preuss
02b934c080
aqhome: fixed typos/bugs (in part copy'n'paste errrors)
2023-04-20 23:58:09 +02:00
Martin Preuss
82c7626783
flashing a device via boot loader works now!!
...
- use a simple rjmp to start main firmware
- add buffer size as a parameter for com2ReceivePacketRaw
- fixed bugs in
- Flash_StartPage
- Flash_FinishPage
- Flash_ReadPageIntoPageBuffer
- assume irqs disabled in flash routines
- increase flash receive buffer size to 128
2023-04-20 23:57:13 +02:00
Martin Preuss
c65bd60bc5
avr: added flash-related messages.
2023-04-20 00:43:07 +02:00
Martin Preuss
fd2c4da9ce
aqhome: added FLASH_READY msg.
2023-04-19 15:39:51 +02:00
Martin Preuss
93e89e801e
aqhome: added defines for FLASH messages.
2023-04-17 01:14:18 +02:00
Martin Preuss
d53b061aed
aqhome: implemented IPC client, fixed some bugs.
...
sending a PING request and retrieving the PONG response works now.
2023-04-16 23:22:03 +02:00
Martin Preuss
c00b90bf28
more work on switching to new COM and TIMER stack.
2023-04-13 21:16:51 +02:00
Martin Preuss
ded08b8c47
avr: new com2 and timer stack basically works again.
2023-04-12 21:46:34 +02:00
Martin Preuss
13ccefdd23
add missing include.
2023-04-11 21:18:25 +02:00
Martin Preuss
d54ab25571
change order of calls.
2023-04-11 21:18:13 +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
04ab31ca3d
added message MEMSTATS.
2023-04-10 01:01:48 +02:00
Martin Preuss
b51941cc5a
aqhome: removed unneeded code.
2023-04-09 18:50:30 +02:00
Martin Preuss
c8afd7eb74
aqhome: use new type GWEN_ConnectableMsgEndpoint.
...
This allows for reconnect of endpoints if necessary.
2023-04-09 00:35:17 +02:00
Martin Preuss
4ba7b49cdd
simplified message handling, switch from XOR checksum to CRC8 with polynomial 0x97.
...
0x97 allows for detection of all 1-3 bit errors in a message of up to
119 bytes
(see https://www.faa.gov/aircraft/air_cert/design_approvals/air_software/media/TC-14-49.pdf )
2023-04-07 23:22:40 +02:00
Martin Preuss
090122a192
reworked com stack.
...
- prepared for use of CRC8
- organized code in more files
- recv stats message now contains crc errors and io errors
2023-04-07 19:14:05 +02:00
Martin Preuss
b606eff3f8
adapted to latest changes in gwen.
2023-03-30 00:41:06 +02:00
Martin Preuss
ce899896bf
aqhome: fixed compiler warnings.
2023-03-20 22:49:39 +01:00
Martin Preuss
8712958228
aqhome: moved code from msg/endpointmgr to /msgmanager.
...
This simplified further development.
2023-03-20 22:48:58 +01:00
Martin Preuss
fecf4ab79c
aqhome: implemented new node messages, adapted to firmware changes.
2023-03-19 23:23:14 +01:00
Martin Preuss
d1c21322b8
More work on IPC code, added aqhomed daemon.
2023-03-18 23:25:21 +01:00
Martin Preuss
12d197dae2
aqhome: fixed endpoint code. Now works again.
2023-03-18 01:57:20 +01:00
Martin Preuss
6507f3896f
aqhome: started reworking message code to use gwen's new msgio code.
2023-03-18 00:57:03 +01:00