Martin Preuss
67bf1515e9
More TODO stuff.
2023-02-02 00:45:52 +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
1389ab1953
build: Reorganized code.
...
Most MCU-dependent variable definitions ist now put into node-specific files.
Makes it easier to maintain code for different node types.
2023-02-02 00:44:50 +01:00
Martin Preuss
5f14b1f74d
Timer: Add callback "onEvery30s".
2023-02-02 00:42:28 +01:00
Martin Preuss
e8ae7be6c4
TWI master: Added remarks.
2023-02-02 00:42:04 +01:00
Martin Preuss
d2fa4dfb86
LCD: Minor changes.
2023-02-02 00:41:35 +01:00
Martin Preuss
8082fe5226
Added module for SI7021 temp/humidity sensor.
2023-02-02 00:39:57 +01:00
Martin Preuss
6bdecd7cc9
COM: Added routine COM_EnqueueValue.
...
This sends a message with a sensor value.
2023-02-02 00:39:29 +01:00
Martin Preuss
97d8fc7308
libtest: fixed a bug.
2023-01-30 01:03:24 +01:00
Martin Preuss
a7b09dc1be
main: init bmp280. cleanup.
2023-01-30 01:03:02 +01:00
Martin Preuss
cf7598fc92
twi_master: add routine twiReceiveByteSendAck.
2023-01-30 01:02:31 +01:00
Martin Preuss
84c63f5651
LCD: moved address definition to main file.
2023-01-30 01:02:04 +01:00
Martin Preuss
df3f1595da
bmp280: more work on module.
2023-01-30 01:01:19 +01:00
Martin Preuss
3d1dd00911
bmp280: started working on module.
2023-01-30 00:29:39 +01:00
Martin Preuss
ff71ed1718
Main: Write COM stats every 10s.
2023-01-29 18:51:30 +01:00
Martin Preuss
8a395cf9c3
COM: Enabled packet-in counter.
2023-01-29 18:51:15 +01:00
Martin Preuss
857e358836
Utils: Dixed Utils_IncrementCounter32, added Utils_IncrementCounter16.
2023-01-29 18:50:41 +01:00
Martin Preuss
d560691a97
LCD: Cleanup.
2023-01-29 18:50:15 +01:00
Martin Preuss
adfbd73964
LCD: Completed, works now.
2023-01-29 15:47:12 +01:00
Martin Preuss
153ba88c08
Increased I2C speed. Added twiSendByteExpectAck.
2023-01-29 15:46:58 +01:00
Martin Preuss
487e877e7e
Started working on LCD module.
2023-01-28 15:29:58 +01:00
Martin Preuss
656cbdd7d4
COM: Added COM_EnqueueDebug
2023-01-28 15:29:43 +01:00
Martin Preuss
a075136920
aqhome: added some parsing for COM messages.
2023-01-28 00:11:23 +01:00
Martin Preuss
77c7a78e7d
main: added tests for twi module. COM: added COM_EnqueueI2cBusMember
2023-01-28 00:11:03 +01:00
Martin Preuss
76ff30ddf1
TWIMASTER: Added two-wire-master code (bitbang).
2023-01-28 00:10:10 +01:00
Martin Preuss
f5a501f9dd
Updated TODO.
2023-01-26 18:59:39 +01:00
Martin Preuss
d33b9339e6
Parse SEND STATS message.
2023-01-26 18:58:51 +01:00
Martin Preuss
53716b37d5
serial: Set ATTN line high on start. Added checks.
2023-01-26 18:58:32 +01:00
Martin Preuss
e9541761fd
AVR: Perdiodically send SEND STATs message (debug).
2023-01-26 18:57:48 +01:00
Martin Preuss
87b31a4a4b
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
22d96dbab0
AqHome: Added a test for sending/receiving asynchronously.
2023-01-25 21:47:06 +01:00
Martin Preuss
7b769807bd
AVR: For debugging purposes, send a ping every 10s.
2023-01-25 21:46:15 +01:00
Martin Preuss
fbe2ae246c
aqhome: Added test for sending packets to MCU.
2023-01-25 16:29:36 +01:00
Martin Preuss
5750a26c2a
aqhome: Use baudrate of 19200 bps.
2023-01-25 16:29:16 +01:00
Martin Preuss
51c0be1754
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
e550b0dcee
Changes in TODO.
2023-01-22 17:48:05 +01:00
Martin Preuss
9e31dc2160
aqhome: Fixed a bug.
2023-01-22 17:47:42 +01:00
Martin Preuss
c0fca3bf98
aqhome: Added test for serial interface, added api.h.
2023-01-22 17:47:30 +01:00
Martin Preuss
a8a9571a27
avr: enabled COM_Run.
2023-01-22 17:46:46 +01:00
Martin Preuss
6fd216e83d
avr: added routines to read/write EEPROM.
2023-01-22 17:46:16 +01:00
Martin Preuss
df08b98bf3
main: added timer callbacks for 10s and 1m. removed debug code.
2023-01-22 01:06:23 +01:00
Martin Preuss
31a10b2c70
timer: Added callbacks for every 10s and every minute.
2023-01-22 01:05:39 +01:00
Martin Preuss
9b27bb4921
com: added field to PIN message (src address)
2023-01-22 01:05:11 +01:00
Martin Preuss
705562d881
main: added debug code.
2023-01-22 00:17:21 +01:00
Martin Preuss
a9ff8d2277
com: fixed a bug.
2023-01-22 00:17:11 +01:00
Martin Preuss
9c92995d00
ringbuffer: Fixed a few bugs.
2023-01-22 00:16:42 +01:00
Martin Preuss
dcd54d9118
Debugging.
2023-01-21 18:11:23 +01:00
Martin Preuss
b27b1b7301
Fixed a few bugs.
2023-01-21 18:11:13 +01:00
Martin Preuss
69c13ab3c5
ringbuffer: alloc no less than 2 bytes.
...
This protects against race conditions. We can now preset the first two
bytes which are used for size and flags by the COM module (currently the
only user of the ringbuffer module).
2023-01-19 23:18:28 +01:00