Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HugoMcKinley opened this issue Feb 4, 2025 · 0 comments
Open

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

HugoMcKinley opened this issue Feb 4, 2025 · 0 comments

Comments

@HugoMcKinley
Copy link

HugoMcKinley commented Feb 4, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant