-
Notifications
You must be signed in to change notification settings - Fork 13.3k
DNS_SD_Arduino_OTA No response from device #1196
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
Well.. this is the mac address : Attached you can find wireshark log Thanks for helping ! |
Hi Dario, I have just tried the same set up like yours except I have Windows 7: Sketch uses 342,558 bytes (32%) of program storage space. Maximum is 1,044,464 bytes. Are you able to test it on Windows 7 machine? Krzysztof |
No way... tried on Win 7 64bit with esp 1.6.5 stable core and esp 1.6.5 staging core but same result : 01:41:21 [ERROR]: No response from device What version of phyton are you using? I'm using 2.7.10. What kind of esp ? How is it connected ? I don't have any ideas where to bang my head ! |
Also tried to erase eeprom first.... |
Hi Dario, I can’t believe how close you are to get this working and how simple should be the reason so it is not working 😄 Here is my python:
I am currently using NodeMCU boards, namely LoLin and Amica as well as ESP8266-EVB by Olimex. All are working without any issues with DNS_SD_Arduino_OTA.ino and esp8266/Arduino release 1.6.5-1160-gef26c5f (of Sep 30, 2015). I have been testing OTA back and forth when writing first three chapters of: https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/ota_updates.md and was always getting repeatable results and stable operation of OTA. This is assuming I use compatible s/w on each step. I am wondering if you see anything on serial monitor when OTA fails. If successful, the output on serial monitor looks like below:
If there are no clues on serial monitor and you are not moving any way forward I would put it aside for a while and try other way of doing OTA: https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/ota_updates.md#web-browser. If this fails as well maybe the problem is with your Wi-Fi network / router. Good luck and I am looking forward to seeing how you handle this issue 👍 Krzysztof |
Thank you for prompt answer, i 've forget something..... Serial monitor prompt me a password !!! |
Yes - you mentioned it in your first post 😄 I assume you selected network port to do OTA. You need an external serial monitor. Krzysztof P.S. Remember to close external serial monitor if you decide to flash module using Arduino's serial! |
Ah ok perfect, dunno if I can try this w.e. But I want to find 10min to go in my lab and debug this!!! Thank you for helping |
Ok Krzysztof, with an external serial monitor this error appear : Arduino OTA Test |
|
I test it immediately......thanks for prompt answer |
i can't believe it !!!!!! IT WORKS !!! Thanks a lot to everybody !!!! |
Ok guys, now esp-12 work fine, but esp-01 no.... flash size is correct... i've a Manufacturer: c8 Device: 4013 ESP-01 so 4mbit.... this is serial response : Arduino OTA Test Exception (9): ctx: sys
ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 Wtf ? |
4 Mbit is 512 kbyte. You are telling the compiler that you have 4Mbyte flash, and the application crashes because flash is actually smaller. |
uhmmmmmmm so esp-12 is 32mbit ? |
Yes most of them have 32 Mbit flash. Our "flash size" menu is in megabytes, but flash manufacturers usually list sizes in megabits. Perhaps this leads to some confusion. |
yes ! So i can't use OTA for esp-01 with 512k because ds_sample is bigger ? my esp-01 is a 512k(64spiffs) or 1MB(512k spiffs) ? sorry for misunderstanding....i've a Manufacturer: c8 Device: 4013 ESP-01 ..... |
The new ESP-01 (dark gray/black) are having 1MB (megabytes or 4 MegaBits). Old ESP-01 (blue) are just 512KB (half MB). From arduino IDE, there are four 1MB option's are available to choose from. |
Ok, last thing... what mean spiffs size (ok SPI Flash File System)... if i have an esp-12 and i program it with 4mb(1mb spiffs) would mean that i've 1mbyte of free space for sketch ? spiffs depend from hardware or not ? or can i program esp-12 with 4mb(3mb spiffs) without problems ? thanks |
Hi Dario, I told you that you were very close to resolution and the issue was simple 😄 SPIFFS size is the flash space reserved for your files. If you reserve 1MB on 4MB flash you will have 3MB for your sketch, or 1.5MB if you are using OTA. Please check out flash memory layout -https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md#flash-layout There is also very desriptive picture how new sketch is copied around during OTA process between exisitng sketch and SPIFFS -https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/ota_updates.md#update-process---memory-view Krzysztof |
a sketch can max have 1MB, running code over 1MB is not possible. |
ESP can only map/load first 1MB from flash.. is that right @Links2004. thanks. |
@itsjustvenky yes, the rest can be used for storing the OTA update, SPIFFS, eeprom and so one. |
@Links2004 one more question : How the EEPROM space is allocated ? is it default with a size or it will allocated when we use in sketch "EEPROM.begin(...)". Let me know thanks. |
in flash the eeprom is stored after the SPIFFS. i think we get a bit of topic here. |
Stupid question , i am having ota issues , but my basic ota ino does not give me this debug info like sketch size etc, how to i get this for debugging? Did i not enable something. And yes the space stuff needs to be made simpler for basic users, too much reading to understand what size and chips can support ota... If it can be handled by the ide that would be nice, and i even knnow what mbits are and its still confusing. |
Ok I, I didn't realize the debug flags and memory settings had to be flashed, the board menus are very confusing as to what are runtime settings, compile settings, and what are flashed device settings. I had to switch to esp8266 generic to even get the debug options to show and then change them and and change my esp 12e from 4m/3m to 4m/1m and flash serial first to get ota to work. Hope it helps. sigh |
THANKS for OTA!!!!!! |
I was having the same problem, I enabled debugging
Turns out to be port blocked, and esp could not get back to computer. With no firewall it works. I do not know where you find actual information about how OTA works or where the documentation is, but from what I gather ide sends a UDP packet to ota port 8266 on esp, esp then fetches update from a dynamic port running in python host. No idea how to make this work through firewalls. Or where one find the docs for this mechanism or how to override listening port or use static. |
@tablatronix I don't think this part is documented, but if you run Overriding this port from the IDE hasn't been implemented as the IDE doesn't make it easy to add user-configurable parameters without an exponential blowup of the number of lines in boards.txt. If you find a way to do this though, PR will be welcome. |
I saw that but could not figure out how to pass it from ide or platformio, can espota load an ini file or do a local override from a env var? Some external override at least for now? |
sounds like an arduino IDE bug, like it locks the port up, I would report it to them. Serial monitor does not work with OTA on esp also. |
Hi guys,
i'm using arduino 1.6.5 with staging esp core 1.6.5-1160-gef26c5f
Windows XP
Firewall disabled, antivirus disabled
Python 2.7 in path
Sketch : DNS_SD_Arduino_OTA without any mod (only ssid and pass)
Esp-01 and Esp-12 tested.
Arduino IDE found port when i select Uploading Using OTA
When i try to open serial monitor it ask me for a password
If i open a shell i can ping regularry esp on 192.168.0.211
if i open a telnet client and try to connect to 192.168.0.211 port 8266 it seems to open connection (don't refuse it)
When i try to upload sketch:
python.exe C:\Documents and Settings\Cdj.SERVER\Dati applicazioni\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f/tools/espota.py -i 192.168.0.211 -p 8266 -f c:\temp\build6064416799227852722.tmp/DNS_SD_Arduino_OTA.cpp.bin
16:04:39 [ERROR]: No response from device
Thanks for helping
Dario
The text was updated successfully, but these errors were encountered: