Martin Preuss
4467f60645
avr: fixed a bug.
...
answering with a PONG to a PING packet works again.
2023-04-16 23:54:39 +02:00
Martin Preuss
5f4260d605
avr: moved COM and COMPROTO defs and routines into dedicated files.
2023-04-16 23:23:06 +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
eca6fc6efc
avr: try calculating idle times.
2023-04-10 23:33:24 +02:00
Martin Preuss
0600a2d9ab
avr: added memstat message.
2023-04-09 18:49:50 +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
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
981c30602d
avr: adapted to latest changes.
2023-04-05 22:55:01 +02:00
Martin Preuss
c41d6fa45a
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
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
e6390a17ac
comproto: Fixed a bug.
...
Was not saving low byte of value.
2023-02-06 21:54:04 +01:00
Martin Preuss
df70342ff3
AVR: More work on address assignment procedure.
2023-02-06 21:09:38 +01:00
Martin Preuss
0b1e0ea4d5
Implemented address assignment protocol.
2023-02-05 23:43:16 +01:00
Martin Preuss
746cec2d45
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
d4081840e0
comproto: started simplifying code to prepare and enqueue packets.
2023-02-05 14:57:38 +01:00
Martin Preuss
910bb78e52
COMPROTO: Added CPRO_EnqueueNeedAddress
2023-02-04 16:01:48 +01:00
Martin Preuss
5b15b5ef9f
Moved protocol stuff into comproto.asm.
2023-02-04 00:56:29 +01:00