Commit Graph

137 Commits

Author SHA1 Message Date
Martin Preuss
4a915a3c85 avr: add copyright notices. 2023-04-08 13:05:05 +02:00
Martin Preuss
a7928e0dbf avr: added timer entry for every5s
This will be used for the window check module.
2023-04-08 03:09:12 +02:00
Martin Preuss
2a53ad9ede avr: removed unneeded defs. 2023-04-08 02:49:24 +02:00
Martin Preuss
5175ca7dfd avr: improved timer module.
- simplified timer handling. still using cascading counters but in an
  extendable way
- added onEvery5m while on it
- renamed everyMinute to every1m (unifies routine names)
- send network stats every 5m, not every minute
2023-04-08 02:23:34 +02:00
Martin Preuss
7eb462173c 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
4e1f08b567 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
3bb867ed21 aqhome: report handled messages. 2023-04-06 00:50:52 +02:00
Martin Preuss
604a85d54b avr: increased COM buffer size to 24 bytes. 2023-04-05 23:39:45 +02:00
Martin Preuss
dc19b84fba avr: added message format descriptions. 2023-04-05 22:56:11 +02:00
Martin Preuss
dfd0f3b092 avr: started working on flash protocol. 2023-04-05 22:55:21 +02:00
Martin Preuss
c1efe538b0 avr: adapted to latest changes. 2023-04-05 22:55:01 +02:00
Martin Preuss
ca53a02516 aqhomed: added debug message. 2023-04-03 23:20:17 +02:00
Martin Preuss
dc00aae06b make db file a config option. 2023-03-30 00:41:29 +02:00
Martin Preuss
9ae7a8032e adapted to latest changes in gwen. 2023-03-30 00:41:06 +02:00
Martin Preuss
2417c46638 mqtt: publish messages for recv stats. 2023-03-29 22:02:55 +02:00
Martin Preuss
bb3d194b5a aqhomed, aqhome: added MQTT endpoint, publish value changes via MQTT. 2023-03-29 16:46:32 +02:00
Martin Preuss
40c3a3ee4e mqtt: added more message types, added test for them. 2023-03-29 00:42:49 +02:00
Martin Preuss
a104b78f62 some formatting. 2023-03-28 21:45:16 +02:00
Martin Preuss
a6748b431f nodeinfo: add timestamp field. 2023-03-28 21:44:34 +02:00
Martin Preuss
c503132234 si7021: disable si7021ReadFirmwareRevision (doesn't work anyway). 2023-03-28 21:44:10 +02:00
Martin Preuss
562b3d863d aqhome: started working on MTQQ client. 2023-03-28 21:43:01 +02:00
Martin Preuss
8d89d7a1a3 aqhome, aqhomed: Adapted to latest changes. 2023-03-28 21:42:28 +02:00
Martin Preuss
99aacd5e85 aqhome: started parsing messages and extract info for node db. 2023-03-24 21:16:25 +01:00
Martin Preuss
1a07353aba ipc: fixed compiler warnings. 2023-03-24 21:15:28 +01:00
Martin Preuss
c24734115a build: added debug option. 2023-03-20 22:50:07 +01:00
Martin Preuss
a34af518b0 aqhome: fixed compiler warnings. 2023-03-20 22:49:39 +01:00
Martin Preuss
e0c291b3cb aqhome: moved code from msg/endpointmgr to /msgmanager.
This simplified further development.
2023-03-20 22:48:58 +01:00
Martin Preuss
29bf52bfdb aqhome: implemented new node messages, adapted to firmware changes. 2023-03-19 23:23:14 +01:00
Martin Preuss
4cc2e21a79 avr: moved code outside of ifdef/endif pair (fixes a bug). 2023-03-19 23:22:08 +01:00
Martin Preuss
e5401ee060 avr: increased number of COM buffers from 4 to 6. 2023-03-19 23:21:40 +01:00
Martin Preuss
c247687bf9 aqhome: added IPC messages (FORWARD, VALUE) 2023-03-19 23:21:02 +01:00
Martin Preuss
0db8a14972 avr: added code and messages for device information.
- send firmware information in DEVICE message
- introduced new version of VALUE message (sending UID now instead of
  timestamp)
- make SENDSTATS and RECVSTATS messages also send UID instead of timestamp
2023-03-19 23:20:16 +01:00
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
a0e45034fe avr: setup module mask to be later reported to a host. 2023-03-19 13:24:21 +01:00
Martin Preuss
ef6625d421 Shortened blink pattern. 2023-03-19 12:43:52 +01:00
Martin Preuss
267b2e83ff COM: Check for collisions after half a bit length.
Especially with longer cables we need to give the line some time to safely
raise the signal to high.
2023-03-19 12:43:33 +01:00
Martin Preuss
118f7605fa aqhome: added modules field to nodeinfo. 2023-03-18 23:25:48 +01:00
Martin Preuss
5e510ea748 More work on IPC code, added aqhomed daemon. 2023-03-18 23:25:21 +01:00
Martin Preuss
61e82c5d66 aqhome: removed uneeded files. 2023-03-18 01:58:57 +01:00
Martin Preuss
7c775be3da aqhome: fixed endpoint code. Now works again. 2023-03-18 01:57:20 +01:00
Martin Preuss
9dacf5e5c5 aqhome: started reworking message code to use gwen's new msgio code. 2023-03-18 00:57:03 +01:00
Martin Preuss
5612e20e11 Improved seeding for random number generation. 2023-03-08 23:02:20 +01:00
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