Skip to content

OTA network ports list repeats names #6094

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

Closed
hsgentry opened this issue Mar 19, 2017 · 9 comments
Closed

OTA network ports list repeats names #6094

hsgentry opened this issue Mar 19, 2017 · 9 comments
Assignees
Labels
On Hold The pull request is blocked from being merged

Comments

@hsgentry
Copy link

I use the OTA update with my ESP8266 projects and I have usually have 8 or more nodes. It works very well except that periodically the list of network ports (TOOLS>PORTS) has duplicate names. The IP addresses are correct, but some of the names are duplicated. This is not always the case, sometimes it is all correct. From time to time the list will change and different names are duplicated. Everything else works perfectly and it only started happening when the list of nodes was more than 4 or 5 items long. This is Adruino IDE version 1.8.1.

otaissue

@facchinm
Copy link
Member

Hi @hsgentry ,
is your local network assigning different IP address to the same mac address between flashes or is the mac software-defined?
The board, once disconnected, will disappear from the list as soon as mDNS reports the disconnection (usually in 5 minutes) or when it's not pingable anymore (few seconds). The latter case will only appear when the board doesn't add tcp_check=no in its mDNS record, and AFAIK the ESP8266 core does add this property, so it's normal for the entry not to disappear immediately.

@hsgentry
Copy link
Author

hsgentry commented Mar 20, 2017 via email

@facchinm
Copy link
Member

So your problem is about the names not being updated, right?

@facchinm facchinm reopened this Mar 20, 2017
@hsgentry
Copy link
Author

hsgentry commented Mar 20, 2017 via email

@facchinm
Copy link
Member

Ok, starting from your example:

c 10.0.0.67
c 10.0.0.23
c 10.0.0.99

only c 10.0.0.99 is the valid entry? All other entries are "fake" (or expired)? If it's the case, it totally depends on the aforementioned tcp_check property, and there is nothing we can do about it (unless waiting tor the mDNS record to expire)

@hsgentry
Copy link
Author

hsgentry commented Mar 20, 2017 via email

@facchinm
Copy link
Member

Thanks for the complete explanation 😄 The relevant code is here https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java#L89, all the info displayed are gathered from the underlying jmdns library, so my guess here is that something is getting confused at network level and that fields are not getting populated properly.
Will try to reproduce it in a controlled setup as soon as I get enough ESP8266 boards to play with.
Anyway, just in case, since you discovered this bug with an ESP8266, try filing an issue on their github repo (https://github.com/esp8266/Arduino) so maybe someone who has already encountered this problem can help debugging it
Thanks!

@facchinm facchinm self-assigned this Mar 20, 2017
@facchinm facchinm added the On Hold The pull request is blocked from being merged label Mar 20, 2017
@hsgentry
Copy link
Author

hsgentry commented Mar 20, 2017 via email

@hsgentry
Copy link
Author

hsgentry commented Mar 29, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Hold The pull request is blocked from being merged
Projects
None yet
Development

No branches or pull requests

2 participants