Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) ESP8266 OTA Upload (Read 36417 times)
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
ESP8266 OTA Upload
Mar 27th, 2016 at 10:48pm
Print Post  
Version 1.1603.20

In earlier versions there was an option in the menu to select if I want to upload using serial or OTA
This is now missing and when I select an OTA port in the "Serial port" selection it tries to upload using serial.

Code
Select All
Uploading to I/O board using '192.168.31.211'
The uploader returned an error
error: Failed to open 192.168.31.211
error: espcomm_open failed
error: espcomm_upload_mem failed 



Is this an error or how does it work now?

Thanks in advance
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #1 - Mar 27th, 2016 at 11:00pm
Print Post  
Hi,

I am not sure how old your previous version was but the esp option should be on the "Visual Micro" menu.

Can you select "Option 6: Upload using OTA" on the "Visual Micro" menu?
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #2 - Mar 27th, 2016 at 11:07pm
Print Post  
I have only Option 1, 2 and 3
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #3 - Mar 27th, 2016 at 11:11pm
Print Post  
what is the version of the esp hardware you have installed in board manager?
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #4 - Mar 27th, 2016 at 11:13pm
Print Post  
Latest trunk from today.
Ohh, perhaps it was not the VisulMicro-update but the update of the arduino core I did today?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #5 - Mar 27th, 2016 at 11:18pm
Print Post  
More likely, the esp is a moving target Smiley it's good but always changing.

I am using this board support url and the board manager show I have "2.1.0-rc2" installed
http://arduino.esp8266.com/staging/package_esp8266com_index.json

It's important to be clear about your version because the location of esp cores also changes. The last info  had was that staging was most current  Smiley
« Last Edit: Mar 27th, 2016 at 11:19pm by Tim@Visual Micro »  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #6 - Mar 27th, 2016 at 11:24pm
Print Post  
I gues I found what they did.
The removed this from boards.txt:
nodemcuv2.menu.UploadTool.esptool=Serial
nodemcuv2.menu.UploadTool.esptool.upload.tool=esptool
nodemcuv2.menu.UploadTool.esptool.upload.verbose=-vv
nodemcuv2.menu.UploadTool.espota=OTA
nodemcuv2.menu.UploadTool.espota.upload.tool=espota
  
Back to top
 
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #7 - Mar 27th, 2016 at 11:31pm
Print Post  
At the top of the file
menu.UploadTool=Upload Using

and in the nocemcuv2 part
nodemcuv2.menu.UploadTool.esptool=Serial
nodemcuv2.menu.UploadTool.esptool.upload.tool=esptool
nodemcuv2.menu.UploadTool.esptool.upload.verbose=-vv
nodemcuv2.menu.UploadTool.espota=OTA
nodemcuv2.menu.UploadTool.espota.upload.tool=espota 

and I have the menu item back and OTA update is working
  
Back to top
 
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #8 - Mar 27th, 2016 at 11:40pm
Print Post  
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #9 - Mar 28th, 2016 at 11:08am
Print Post  
Thanks for the update.

I think there is some confusion somewhere. Maybe you have "visual micro>always use programmer for upload" checked. In early esp8266 versions they made use of the arduino programmer system which was fine for VS but cumbersome in the arduino ide.

Recent esp version have 9 options on the visual micro board options menu. One of the options switches between serial upload and OTA.

The same also applies to the nodeMCU board.

Did you install your esp using the board manager or by unzipping into the sketchbook/hardware folder?
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #10 - Mar 28th, 2016 at 1:52pm
Print Post  
Check out this version: https://github.com/esp8266/Arduino/trunk
It is the upcoming next version

copy it to <ArduinoIDE>\hardware\esp8266com\esp8266\

and you will see that the option "Upload using: ..." is gone

"visual micro>always use programmer for upload" is not checked.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #11 - Mar 28th, 2016 at 2:07pm
Print Post  
Thanks for the info. 

Last question. Was the Arduino Ide was also missing the OTA feature until you added it?
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #12 - Mar 28th, 2016 at 2:26pm
Print Post  
Sorry, I never used the Arduino Ide because VisualMicro is better  Wink
So I can't tell.

Arduino Ide is 1.6.5

OK, did a test, reverted my change in Boards.txt and it disappeared in Arduino Ide
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #13 - Mar 28th, 2016 at 8:28pm
Print Post  
Thanks, I guess the version you installed is work in progress
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: ESP8266 OTA Upload
Reply #14 - Mar 28th, 2016 at 8:33pm
Print Post  
Yes.

But perhaps it's good to see what your next problem will be when it becomes a release.  Wink
  
Back to top
 
IP Logged
 
Germán Martín
Newbies
*
Offline


Posts: 8
Joined: Apr 6th, 2016
Re: ESP8266 OTA Upload
Reply #15 - Apr 6th, 2016 at 9:43pm
Print Post  
Hello,

I have exactly the same error. Using Arduino IDE I can do OTA update without problems.

Regards,

HCS wrote on Mar 27th, 2016 at 10:48pm:
Version 1.1603.20

In earlier versions there was an option in the menu to select if I want to upload using serial or OTA
This is now missing and when I select an OTA port in the "Serial port" selection it tries to upload using serial.

Code
Select All
Uploading to I/O board using '192.168.31.211'
The uploader returned an error
error: Failed to open 192.168.31.211
error: espcomm_open failed
error: espcomm_upload_mem failed 



Is this an error or how does it work now?

Thanks in advance

  
Back to top
 
IP Logged
 
testato
Junior Member
**
Offline


Posts: 48
Joined: Feb 11th, 2014
Re: ESP8266 OTA Upload
Reply #16 - Apr 6th, 2016 at 9:57pm
Print Post  
On arduino IDE, when an ota firmware is running in the ESP, under SerialPort appear a NetworkPort.

for me is it not present the Network port, so if you do not select the Network Port the OTA use the COM port and it do not work.

You have the networkport present ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #17 - Apr 6th, 2016 at 10:01pm
Print Post  
Hi,

You can install "Apple Bonjour for Windows" then the ports will automatically appear. It's quite a commonly used app but I don't bother with it ....

OR easier ...

You can enter a known IP address in the Visual Micro "Project Properties>Upload Port".

« Last Edit: Apr 6th, 2016 at 10:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
testato
Junior Member
**
Offline


Posts: 48
Joined: Feb 11th, 2014
Re: ESP8266 OTA Upload
Reply #18 - Apr 6th, 2016 at 10:11pm
Print Post  
whit Arduino IDE it is not necessary the Apple sw, it is only necessary phyton 2.7.1.1 installed

VisualMicro cannot work in the same way ?

p.s. thanks for the manual tip
« Last Edit: Apr 6th, 2016 at 10:18pm by testato »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA Upload
Reply #19 - Apr 6th, 2016 at 10:20pm
Print Post  
No visual micro doesn't use python that's new for the esp8266. 

We use C# and historically it's only been the Arduino Yun that required ip discovery. The Arduino Ide also requires "Apple Bonjour for Windows" to be installed when uploading to the Yun.

It is the esp8266 guys who have released the python alternative and in the not too distant future it it probably makes sense for Visual Micro to use python which is becoming very popular.

It's quite easy to find the ip addresses on a network and hopefully you read my note about adding the Ip address to the "Upload Port" property and your OTA is working?
« Last Edit: Apr 6th, 2016 at 10:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint