Skip to content

No reconnect after loosing connection for a "long" time #177

@HugoMcKinley

Description

@HugoMcKinley

Version: 2.10.1 with EthernetShield(W5100) on Nano and Mega (can't get V3.x to run with ethernet)
Used modules: DigitalInput, DigitalOutput, I2c, OneWire und FirmataExt

If the server(here FHEM) is not responding for a (long) while firmata doesn't reconnect.
If the time is short (i.e. reboot of the Server) firmata reconnects if the Server is back online.

I think the problem is overflowing RAM, because the Mega has more memory so it can "handle" a longer time without connection to the server.
It looks like if firmata can't get out the data and ram is filling. If the reconnect happens before the memory is full, it reconnects to the server, but if the time is too long and the memory is full then the Arduino doesn't reconnect to the Server.

Power off and on, or pressing the reset button fix the problem until the next "long" disconnect.

I implemented the Watchdog of [https://github.com//issues/47], but it didn't help.
I tested the watchdog with a test-sketch and it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions