esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.07k stars 13.33k forks source link

OTA - No Network port is shown ! #5273

Closed HamzaHajeir closed 6 years ago

HamzaHajeir commented 6 years ago

Hi guys. I've worked 2 days ago to flash my esp Over The Air. Uploaded BasicOTA official sketch, All things went fine. Tested file uploading with success.

Today I went to develop the code and merge it in a real project. but after i upload it by serial, Network port won't show anymore (Only Serial) !

So tried back to BasicOTA sketch, with no success.

I've dived into this topic and reached a good point to the final solution.

See @krzychb's response , I tried a similar command below, See results :

image

OTA uploading is success! but until now there's no Network port is shown at Arduino IDE.

Platform

Settings in IDE

image

My esp8266's core is updated (2.4.2)

Thanks in advance Hamza Hajeir

devyte commented 6 years ago

After serial upload, did you physically reset the ESP (e.g.: press the reset button)?

HamzaHajeir commented 6 years ago

@devyte Yes i did many times.

Also tried to re-power it manually by re-plugging its usb cable.

devyte commented 6 years ago

Oh, it's windows. Did you disable the firewall, or at least set up a firewall rule? OTA works with the ESP's MDNS responder, which is UDP.

devyte commented 6 years ago

Also, closing as this is not an issue with the core.

HamzaHajeir commented 6 years ago

Yes I've fully disabled firewall and created rules that works with active firewall. image

If i did not, it wouldn't flash OTA manually.

peros550 commented 5 years ago

Also, closing as this is not an issue with the core.

I'm having the same issue. Where should we report this issue?

devyte commented 5 years ago

It's already fixed post beta1: ArduinoOTA now calls MDNS.update() to maintain it, assuming begin() or begin(true).

peros550 commented 5 years ago

Please forgive my ignorance. I have been working the whole weekend troubleshooting why the OTA mechanism stopped working. It was a long time when I last used OTA and some (esp8266 boards) version updates were made but not tested.

Therefore, I was focusing on what my code did to break the OTA rather than the tools I used.

Finally, I have just found out that all versions (including the latest beta) post 2.3.0 have broken OTA functionality for me.

I am using Wemos D1 mini which has been renamed to Lolin.

HamzaHajeir commented 5 years ago

Hi @peros550, I've tried to search for a solution. I've opened a thread at esp8266 forums.

But i didn't find the solution yet.

Might one approach mentioned there would work well for you.

https://www.esp8266.com/viewtopic.php?f=28&t=18712&p=79014

Please tell me if you get the solution.

devyte commented 5 years ago

@HamzaHajeir ArduinoOTA relies on MDNS, and MDNS was sort of broken before. Try with beta2. Also, your laptop firewall must allow the traffic, try disabling it for testing.

HamzaHajeir commented 5 years ago

@HamzaHajeir ArduinoOTA relies on MDNS, and MDNS was sort of broken before. Try with beta2. Also, your laptop firewall must allow the traffic, try disabling it for testing.

I've reached a point all firewalls are enabled xD

But for me all firewall settings are ok, Because i can upload binary file OTA but by a command via Command Prompt.