-
Notifications
You must be signed in to change notification settings - Fork 132
V3 Upload menu option is not taken into account (for example with esp8266 ) #439
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
esp8266 is not my strongest area but I think this is a duplicate of #333 |
Hi @jantje, I was reading #333 some time ago and concluded it may take a lot of time and effort to get it implemented strictly the Arduino IDE way. There may be a quicker solution. To do OTA for esp8266 that has IP of 192.168.1.112, I need to run the following command from platform.txt flie:
Could you point me to a configuration file of Arduino Eclipse Plugin V3 that I can update to conditionally execute such command?
I hope it is doable to convince plugin to assume esp8266 instead of yun when I select an Ip address and OTA 😄 Krzysztof |
I had a look at this but apart from the forced yun upload there seems to be another bug.
However in my test it is esptool. |
Yes but the bug still needs to be looked at. So I am reopening this. |
Hi @jantje, If by bug you mean any issue with menu options listed above, and you get funding to look into it, please consider the following: After implementation of PR-4107 in Arduino IDE, these options become irrelevant and have been removed from boards.txt of esp8266/Arduino in PR-1747. The latest esp8266/Arduino core release 2.2.0 does not contain them at all. Uploading of esp8266 is executed with the following script entries in platform.txt file: For serial upload:
For network (OTA) upload:
Specifically to facilitate OTA upload above, esp8266 is advertising the following parameters using mDNS:
A sample of all advertised parameters is shown below: To make esp8266 "OTA capable" it has to run ArduinoOTA routines. Esp8266 OTA functionality following this pattern is demonstrated by BasicOTA.ino sketch distributed in esp8266 / Arduino package among examples. Krzysztof |
I have a real difficulty to understand this whole OTA thing. But that is not related to the bug for which I want this issue to remain open. |
What happened what that the boards.txt is processed line by line. In the esp file the upload.tool is specified 3 times for the tested board. Once as upload.tool and 2 times for the upload protocol. Apparently the upload.tool was processed after the menu. So one could say that this is a bug in the boards.txt file. However I catered for this situation.
this is sort of a racing condition What happens is that the boards.txt is processed line by line. In the esp file the upload.tool is specified 3 times for the tested board. Now when selecting ATO (with a com port) it will try to run python as expected. |
I have tried latest nightly build win32.2016-05-05_02-17-24.tar.gz and still see a pop up asking for a login and password as described in first post above. Is 7e68213 included in this nightly build? What particular After implementation of PR-4107 in Arduino IDE, all menu entries like:
become irrelevant and have been removed from boards.txt of esp8266/Arduino in PR-1747. The latest esp8266/Arduino core release 2.2.0 that I see available in win32.2016-05-05_02-17-24.tar.gz does not contain them at all. Krzysztof |
This fix should launch python if you select OTA and a standard com port
It is the trouble caused by the first line that is fixed here. The same can be achieved with modifying boards.txt to
|
to get OTA to work, a new "GenericUploader" is needed to handle commands from the platform.txt, then when a network board is found, a few new properties are added to it that distinguish between which uploader should be selected (SSH or Generic). Nothing else should be required to get it to work (and I have it working in my fork) |
This bug originates from OTA upload but is no longer linked to it. Please discuss OTA in #333 |
Hi @jantje, Your guidance #333 (comment) made the trick and OTA works 😄 Thank you for making OTA for ESP8266 available in V3! Good luck with #333 👍 Krzysztof |
Hi, I am totally new to sloeber together with OTA. I run sloeber on my Windows 10 professional machine. What I am missing is the OTA port in the project properties. I only see the COM3. What I further have to do to see the OTA-Port under the ports? Thanks a lot! |
Uploading of esp8266 from Arduino IDE 1.6.8 using OTA consists of two steps:
This process is easy and simple as uploading with a serial port thanks to ArduinoOTA library and new functionality of Arduino IDE implemented with PR-4107.
Arduino Eclipse Plugin V3 already has functionality of detecting and selection of OTA port.
Unfortunately after attempting to upload using esp8266 OTA port, unlike in Arduino IDE, the following window is displayed:
• Does V3 support OTA uploads for esp8266 with ArduinoOTA library like Arduino IDE does?
• If not, does it provide any other method of OTA uploads for esp8266?
Congratulations on developing really easy to use product.
Integration with Arduino boards and libraries is really seamless.
I was able to make it up and running as quickly as Arduino IDE while getting incomparable wealth of features of Eclipse 👍
Krzysztof
The text was updated successfully, but these errors were encountered: