Achronite / energenie-ener314rt

Node module for RaspberryPi energenie ener314-rt board, used by node-red-contrib-energenie-ener314rt
MIT License
4 stars 2 forks source link

BUG: Radio Rx buffer can get out-of-sync when non OpenThings messages are received #23

Closed Achronite closed 1 year ago

Achronite commented 1 year ago

Whilst testing mqtt-energenie-ener314rt I noticed that receiving of messages sometime stops for a while. I believe this is because the buffer on the ENER314-RT does not always get fully emptied when there is a discrepancy between the number of bytes read and the length reported by the message (byte 1).

This can lead to a period where OpenThings messages are lost, until it eventually re-syncs when fully cleared.

Achronite commented 1 year ago

Drivers have been completely rewritten as part of hardware SPI driver implementation. Follow related issue #5 for updates on when this becomes available.