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]  Send TopicPrint
Hot Topic (More than 8 Replies) OTA update for ESP8266 (Read 26647 times)
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
OTA update for ESP8266
Nov 22nd, 2015 at 11:13pm
Print Post  
Hi,
I'm running on my ESP8266 board OTA firmware. I can Update firmware remotely on my ESP8266 board with Arduino IDE, but when I try to upload OTA via Visual MIcro I get this:

This board does not support network upload
Have you selected the right board and port?

Why this happen?

Regards
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #1 - Nov 23rd, 2015 at 3:01pm
Print Post  
Thanks for the post. This means that esp8266 have not used the standard way to specify a wifi/net upload.

We will take a look over the next week or so and implement their hybrid solution.

Thanks
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #2 - Nov 23rd, 2015 at 3:31pm
Print Post  
Hi,
let me know if you need more detail. I use as board "Generic ESP8266 Module" added to Arduino via Board Manager from this link:
http://arduino.esp8266.com/staging/package_esp8266com_index.json

After this loading an OTA Firmware to ESP Board, the board will send via mDNS it's address to IDE.

Let me know if somethisg else needed.

Regards
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #3 - Nov 23rd, 2015 at 3:35pm
Print Post  
Thanks for the info.

Does the Ip address of the board appear in the Visual Micro Serial/COM port list?
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #4 - Nov 23rd, 2015 at 3:37pm
Print Post  
Yes,
the IP address of the board appear into Serial Port List
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #5 - Nov 23rd, 2015 at 3:56pm
Print Post  
Great. 

Normally the board is marked as supports SSH/Net which is how the network upload happens for the Arduino Yun wifi.

I suspect that esp8266 have made a plugin for the arduino ide in java. I will add the same support and rewrite to c#
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #6 - Nov 23rd, 2015 at 9:05pm
Print Post  
Hi,
to run OTA on ESP Module, python 2.7 is needed.

Marco
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #7 - Nov 23rd, 2015 at 9:14pm
Print Post  
Okay 

The esp guys will have produced something that runs for the windows version of the arduino ide. Questions:-

I notice they have an option to put some files in the sketchbook/tools folder. Is this what you have done?

Can you explain which version of the arduino ide you have installed and provide a list of any other urls or downloads you have used/installed to configure the arduino ide. 

Which board options, upload types, board etc you have selected in the arduino ide.

Sorry if you have already said some of this.
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #8 - Nov 23rd, 2015 at 10:06pm
Print Post  
Hi,
I'm using Arduino 1.6.5
I Installed Python 2.7
I Installed board from board manager from url: http://arduino.esp8266.com/staging/package_esp8266com_index.json

Then to OTA I select:
Board: Generic ESP8266 Module
Flash Mode: QIO
Flash Frequency 40Mhz
Upload Using OTA
CPU Freq: 80 Mhz

I put nothing into sketchbook/tools

Let me know If more information needed
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #9 - Nov 23rd, 2015 at 10:12pm
Print Post  
Oh, okay that sounds neat. 

I just need to relax the check visual micro makes for an ip address so that the std code runs as if passing a COM port to the upload tool. That's easier for Visual Micro than messing with the Yun SSH stuff.

The python code will be used by the exe's of the esp8266 tool chain.
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #10 - Nov 23rd, 2015 at 10:54pm
Print Post  
let me know if you need something else.
Thanks for your work

Marco
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #11 - Nov 23rd, 2015 at 11:12pm
Print Post  
Thanks, there was an update due out so I removed the check for ssh. It should now run whatever is defined in the build esp8266 configuration.

Please install 1511.23 from "tools>extensions and updates" or the gallery

Thanks

edit: sp1 fixes esp8266 ota compile/upload when in debug mode

« Last Edit: Nov 24th, 2015 at 12:00am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #12 - Nov 24th, 2015 at 8:51am
Print Post  
Hi,
this evening I'll give a try. I'm out for work now.

Thanks and regards
  
Back to top
 
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #13 - Nov 24th, 2015 at 6:33pm
Print Post  
Hi,
with this new version it starts to upload, but after few second I got this:
Code
Select All
Compiling 'Souliss_ESP8266_PowerSocket_DHT' for 'Generic ESP8266 Module'
Binary sketch size: 363.982 bytes (used 38% of a 958.448 byte maximum) (1,86 secs)
Minimum Memory Usage: 44458 bytes (54% of a 81920 byte maximum)

Uploading to I/O board using 'USB'
....................19:29:34 [ERROR]:
Error Uploading
Upload failed
 



With Arduino Works fine

Another thing,
During uploadin into Arduino Interface I got something an animation with dots increase while uploading. It would be great to have also on VisuaklMicro

Marco
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #14 - Nov 24th, 2015 at 6:36pm
Print Post  
Hi

We can sort the dots out when its working no prob Smiley

Can you switch on "visual micro>verbose messages", then click upload and post or email the output

info[at]visualmicro.com

Thanks
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #15 - Nov 24th, 2015 at 7:49pm
Print Post  
Email just sent
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #16 - Nov 24th, 2015 at 7:56pm
Print Post  
Thanks for the email. 

Please open arduino ide, switch on verbose compile and verbose upload in "file>preferences" then upload.

Then copy all of the output and email.

Thanks very much
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #17 - Nov 24th, 2015 at 7:57pm
Print Post  
I readed your mind.
Just sent by email
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #18 - Nov 24th, 2015 at 8:22pm
Print Post  
Thanks very much

That's very interesting/confusing. 

The difference is going to be there are quotes around the ip address "192.168.x.x" with visual micro and not with arduino 192.168.x.x

Visual micro doesn't make the commands it reads them from the esp8266 definition files. You can see below what is in the defs (ie: -i "{serial.port}" )

Code
Select All
tools.esptool.upload.network_pattern="{network_cmd}" "{runtime.platform.path}/tools/espota.py" -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin" 



So I have to look into when it might be allowable to clear quote marks (which normally need to remain for all other boards. The arduino ide is managing to work it out so there is obviously a magical bit of logic or a setting somewhere.

It will take a few days but I've got an esp to play with so hope to see it working.

For reference:-

arduino ide upload command (paths edited)
Code
Select All
python.exe C:\Users\[name]/tools/espota.py -i 192.168.1.131 -p 8266 -f C:\Users\[name].cpp.bin  



visual micro build command
Code
Select All
python.exe "C:\Users\[name]/tools/espota.py" -i "192.168.1.131" -p 8266 -f "C:\Users\[name]uliss_ESP8266_PowerSocket_DHT.bin" 

« Last Edit: Nov 24th, 2015 at 8:24pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #19 - Nov 24th, 2015 at 8:36pm
Print Post  
I dont' know if matter
Arduino Ide Upload: Souliss_ESP8266_PowerSocket_DHT.cpp.bin 

Visual Micro: Souliss_ESP8266_PowerSocket_DHT.bin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #20 - Nov 24th, 2015 at 8:42pm
Print Post  
The file name is okay but the quotes around the file name might be a problem.

I see that all quotes have been removed from the upload command yet not from the compiler commands.

Maybe there is a config switch if not I will add one to visual micro for the esp boards. 

It also will mean resolving file paths to the older 8.3 format other spaces in file names will break without quotes. I see this is what the arduino ide does but only for the upload command and not for compiler commands.

It's just weird Smiley
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #21 - Nov 30th, 2015 at 9:04am
Print Post  
  
Back to top
 
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #22 - Dec 21st, 2015 at 11:09am
Print Post  
Hi,
I installed lastest version and seems that remote programming for ESP is working.
I'll do more test and I'll back.
Thanks and regards
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA update for ESP8266
Reply #23 - Dec 21st, 2015 at 2:07pm
Print Post  
Great, thanks for the update.

Another user also posted this guide that might help some people.
http://www.visualmicro.com/forums/YaBB.pl?num=1450299549
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: OTA update for ESP8266
Reply #24 - Dec 21st, 2015 at 4:34pm
Print Post  
Hi,
I did all installing and configuring boards activity from Arduino IDE so I not fall into that issue.

Thanls and regards

Marco
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint