Martin Preuss
9ba94d714b
avr: increased COM buffer size to 24 bytes.
2023-04-05 23:39:45 +02:00
Martin Preuss
e5c06c7640
avr: increased number of COM buffers from 4 to 6.
2023-03-19 23:21:40 +01:00
Martin Preuss
f450ab3e67
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
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
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
5b15b5ef9f
Moved protocol stuff into comproto.asm.
2023-02-04 00:56:29 +01:00
Martin Preuss
93b71099c4
COM: Added routine COM_EnqueueValue.
...
This sends a message with a sensor value.
2023-02-02 00:39:29 +01:00
Martin Preuss
94d81cd46b
COM: Enabled packet-in counter.
2023-01-29 18:51:15 +01:00
Martin Preuss
02b09e9ff7
COM: Added COM_EnqueueDebug
2023-01-28 15:29:43 +01:00
Martin Preuss
4cbcfd6c01
main: added tests for twi module. COM: added COM_EnqueueI2cBusMember
2023-01-28 00:11:03 +01:00
Martin Preuss
4a54c46ba9
COM. TIMER: Fixed a bug (note to self: INC/DEC set Z flag, but not C flag!!)
...
- added COM_EnqueueComSendStats
- check for high ATTN line before sending packets
2023-01-26 18:57:20 +01:00
Martin Preuss
348d808706
COM: Transformed to use normal buffers but in kind of a ringbuffer way.
...
There are now fixed buffers which are organized in a ringbuffer. This makes
it easier to access data stored in the buffers, also receiving packets is
now way faster with reduced risk of sync problems.
2023-01-25 16:28:36 +01:00
Martin Preuss
e364ac0297
com: added field to PIN message (src address)
2023-01-22 01:05:11 +01:00
Martin Preuss
127a6d3b48
com: fixed a bug.
2023-01-22 00:17:11 +01:00
Martin Preuss
a4b7b7fe21
Fixed a few bugs.
2023-01-21 18:11:13 +01:00
Martin Preuss
118d713244
com: added remarks.
2023-01-19 23:16:46 +01:00
Martin Preuss
cde7e4bb74
Added COM_EnqueuePing.
2023-01-19 22:07:45 +01:00
Martin Preuss
ad2ff142c4
AVR: More work on COM module.
2023-01-19 00:18:27 +01:00
Martin Preuss
531cf49a6f
Added and simplified COM module.
...
Directly use pins, no complicated redirections.
Router modules will probably use real UARTs or MCUs programmed as UARTs.
2023-01-18 01:09:31 +01:00
Martin Preuss
4eb9dd8777
Started working on COM module.
2023-01-17 20:56:18 +01:00