jsonpoindexter / synchrobike

Synchronized mesh-net bike LED polls
19 stars 4 forks source link

Nodes randomly become out of sync #6

Open jsonpoindexter opened 3 months ago

jsonpoindexter commented 3 months ago

Description

I suspect that there is an underlying issue with the LEDs and the mesh network's 'node time' determination that is being causes by interrupts being needed for the mesh networks 'node time' / wifi communication and the WS2811 LEDs probably disabling interrupts via FASTLED_ESP8266_DMA

Investigation

The below log outputs show an instance when a node becomes out of sync (milliseconds in the log are mesh.getNodeTime() / 1000) Node jumps: +5s unknown (4)

Node jumps: -9s unknown

Notes:

Solution

Possible solutions might be:

jsonpoindexter commented 2 months ago

Possible solution to test: https://github.com/FastLED/FastLED/issues/1415