Commit Graph

60 Commits

Author SHA1 Message Date
Martin Preuss
b4c0ab273d avr: new com2 and timer stack basically works again. 2023-04-12 21:46:34 +02:00
Martin Preuss
d14649df0e add draft of value type. 2023-04-11 21:19:35 +02:00
Martin Preuss
ca1cc87484 add missing include. 2023-04-11 21:18:25 +02:00
Martin Preuss
8c4fcee966 change order of calls. 2023-04-11 21:18:13 +02:00
Martin Preuss
c16fba0cf0 removed idle time calculation (doesn't work so far). 2023-04-10 23:48:24 +02:00
Martin Preuss
e440746ab5 avr: try calculating idle times. 2023-04-10 23:33:24 +02:00
Martin Preuss
c84f12a228 added message MEMSTATS. 2023-04-10 01:01:48 +02:00
Martin Preuss
f49a3ad4e6 follow renaming of endpoint_node_ipc_tcp.* 2023-04-09 18:51:02 +02:00
Martin Preuss
737d3bc51e aqhome: removed unneeded code. 2023-04-09 18:50:30 +02:00
Martin Preuss
be806e0867 aqhome: renamed endpoint_node_ipc_tcp to endpoint_node_ipc_tcpd. 2023-04-09 18:49:13 +02:00
Martin Preuss
27a4993f5c aqhome: use new type GWEN_ConnectableMsgEndpoint.
This allows for reconnect of endpoints if necessary.
2023-04-09 00:35:17 +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
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
a6748b431f nodeinfo: add timestamp field. 2023-03-28 21:44:34 +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
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
c247687bf9 aqhome: added IPC messages (FORWARD, VALUE) 2023-03-19 23:21:02 +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
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
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
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
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
6fe2f893f0 aqhome: Added parser for needaddr message. 2023-02-04 16:02:40 +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
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
97d8fc7308 libtest: fixed a bug. 2023-01-30 01:03:24 +01:00