Skip to content

Nodes randomly become out of sync #6

@jsonpoindexter

Description

@jsonpoindexter

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:

  • No onNodeTimeAdjusted is logged when mesh time changes
  • After disabling all led functionality the issue no longer seems to appear

Solution

Possible solutions might be:

  • Use 2 wire strips to avoid bit banging / process intensive and time sensitive animation writes and would possibly allow us to avoid disabling interrupts
  • Keep track of node time outside of the mesh library and only update it when onNodeTimeAdjusted is called

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions