-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266 After BasicOTA OTA network port not showing up #2415
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
Comments
Hi @SrikanthBala, Regarding your particular concerns:
Python is required to load the module over the OTA port. Since you do not see the port, you could not use / see it in action yet.
If you are able to load these modules using serial port and they operate correctly, including HelloServer.ino sketch, then OTA will work as well. Please verify if this sketch is working for you.
No, you do not. Proceed according to latest OTA documentation, use latest Arduino IDE and stable esp8266 / Arduino core. I have just loaded Arduino 1.6.11 portable and BasicOTA.ino is working for me. Network port is showing up and I am able to load the module. I am using Windows 7. Later I will try my other PC with Windows 10. Basing on you description you have already made the standard checks (tried another PC, tried another router, disabled firewall and successfully ping the module). I propose three actions:
Krzysztof |
At the beginning I thank you very much for a prompt and detailed reply. My problem is still not solved but I see the following -
Ok. That said, when I tried to search for a file "C:-----------\WebUpdater.cpp.bin using the path provided by the verbose output, I could not find the file but instead found WebUpdater.ino.bin, there was no 'cpp' file. Does that indicate some setting problem on my Arduino IDE ? Once again my sincere thanks for the support I am receiving |
One more thing. My Install directory in Preferences shows as C:\Users********\Documents\Arduino but I don't see my ESP2866 directory there under libraries. I don't know if this means anything. Its probably someplace else as my HelloServer and several other ESP sketches work. In fact OTA was the first sketch which failed. FTP server, SD card server all work well. Thanks. |
This is normal / not the problem. ESP8266 libraries are in directory you can check under File > Preferences as marked below |
OK. Thanks again for the promptness I tried a few things.
Also when I was looking at my router's 'attached devices' to correctly identify the ESP's IP, the ESP is showing as ESP_F531CC and not ESP8266 as expected. Is it something to do with the underscore character not being acceptable as I read on the forum? How do I change the name of the device ? Thanks in advance |
One more comment. I also own a Linkit Smart 7688 Duo which is like an Arduino Yun somewhat. LAst week while playing with it I found that OTA was easy and I could see my port. That was I think IDE 1.6.7 or was it (1.6.9 ?) Anyway on connecting that I cannot see that OTA port either. It was definitely working back then. It also had underscores on its name. Is that the problem ? |
Ok. I added WiFi.hostname("ESP826612E") thinking this would make a difference. It didn't. |
This is great that WebUpdate.ino example finally worked for you! Bonjour on Windows is required to be able to use address like http://esp8266-webupdate.local/update in web browser instead of IP address I have checked BasicOTA.ino on my Windows 10 PC and sure enough it works. Arduino OTA is advertised using mDNS. Arduino IDE is able to recognise it starting from release 1.6.7 when PR-4107 was merged. Now I would check if your PC is getting mDNS packets sent by ESP. You can do it with http://hobbyistsoftware.com/bonjourBrowser. On my PC I see it as below: |
Installed Bonjour Browser. On flashing BasicOTA It does not show any running services though I can still web update. How Do I get my PC to see the mDNS packages ? Does this isolate the problem to my PC or my Router ? Also tried a portable install of IDE 1.6.7 with ESP ver 2.3.0 without success Thanks |
Please post a picture of your board. Maybe somebody else can comment.
Given you have tried couple of routers I guess the problems is rather with your PC blocking mDNS packets. As you can ping your module I would try to run Arduino OTA update manually. Assuming that IP of your module is 192.168.1.12,, you can run the the following:
Replace When I am back home later today, I will try to check what else you can do to diagnose why Bonjour Browser and Arduino IDE are unable to discover module advertising OTA. |
OK ! OTA is working !!!! The port shows up !!! A zillion thanks !! Now the truth is I'm not sure how but it is something to do with my router. Yes I had tried another router at my workplace too and it was a different company (TP-link) but I did not work so long and so intensely on it (maybe it has a similar problem which I need to look into) . Great to have it working. Would have been greater for me and others to know why ? Dear krzychb to quote you from last year "This is great! If I were a woman I would give you a kiss Thanks a zillion again. From a week of struggle you solved my problem in less than a day ! |
Thanks a lot for feedback and nice words! |
Hi !. Just reopened this issue to tell you that the problem reappeared and I figured out what was wrong but not why. Then I flashed a mDNS webserver example which again worked only when I typed in the IP address. and not when I typed http://esp8266sd.local/ . Then it suddenly struck me to check the running windows Services and sure enough Bonjour had been listed as stopped, though I don't know why. So for some reason Windows 10 had switched off bonjour services and, since, during my entire week of trouble OTAing, I shut down my system just once, bonjour services was probably off. The one time it worked was when I think I rebooted , but it slipped by notice then. So you were right. It was a problem with my Windows system and not the router. Just thought I will share this, as it may help someone else. Sorry to have taken so much of your time last week. Thanks and Regards. |
Hi @SrikanthBala, I am happy to hear beck from you with the follow up and update. Such very issues pop up every couple of weeks on esp8266 forum or here. Thanks to your persistence this is first case I see it pined down to weird router settings or bonjour service not being restarted by Windows. Thanks a lot! Krzysztof |
Ok. Regards. Am closing the issue. |
Hi,
My issue occurred after an upgrade of McAfee "Total protection" which apparently switched on its firewall(I did n't know it had..) I already switched off the OSX firewall but this didn't solve the problem. Firewall rule for incoming traffic mdns/Bpnjour |
Hi I'm having issue with not seeing OTA devices. This is the first time I've tried OTA so i'm never seen this work on my setup. I'm running Ardunio IDE on Windows 10 Virtual machine hosted on Windows 10 host. I've have NodeMCU board with a sketch that has ArdunioOTA library and config, the NodeMCU has connected to the network and I can ping its IP from all devices. I'm glad to find this thread and so done the following: Ardunio IDE 1.8.2 installed on Windows 10 Is there a way I can confirm he NodeMCU is listening on the OTA ports, so that isolate this from the issue? |
Basic Infos
Hardware: ESP-12 on Node MCU Tried V0.9 and V1.0 (12E)
Core Version: 2.3.0
Arduino IDE version 1.6.11
As per instructions (latest) for OTA I have been attempting to set it up for a week without success. Tried BasicOTA. Flashes well via serial port. Shows IP address. I can ping the port and get a reply. But no OTA port seen. I switched off my Windows firewall (Using Windows 10), without effect. I checked my Router settings (Netgear N600). Nothing seems to be set to block anything, but being a novice, I may be missing something here.
Still no success. The port just does not show up. Tried with another PC and another router (TP Link) with no success. One more thing, when looking at the verbose output whilst programming I don't find python 2.7 being used anywhere. It says something about espttool. Why do we need to download python 2.7 then ? Am I missing something ? Do I need a different firmware on my ESP to support OTA ? Also I don't think either of the NodeMCU 0.9 or 1.0 are origionals. They seem to be clones. However all other sketches work and I tried a plain ESP8266 12 module too using FTDI for programming without OTA success. Please help.
Module: ESP8266 12 and 12 E on Node MCU 0.9 and 1.0
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Frequency: 40Mhz?
Upload Using: OTA Not possible / SERIAL 115200
Reset Method: nodemcu Tried V0.9 and 1.0
The text was updated successfully, but these errors were encountered: