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) Upload over WiFi broken? (Read 7974 times)
KP
Newbies
*
Offline


Posts: 5
Joined: Nov 1st, 2016
Upload over WiFi broken?
Nov 1st, 2016 at 11:09am
Print Post  
I'm using Visual Studio 2015 Community edition and have been successfully uploading sketches to my Mega2560 w/ a Dragino shield for some time.  Then, sometime late September or early October the upload over WiFi stopped working.  The only way to load a sketch is to remove the Dragino from the Mega2560 and upload the sketch to the Mega via USB.  Either something in the Visual Studio/Vmicro world changed or some package I added to the Linino side of the Dragino.   
Has anyone else run into something similar?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload over WiFi broken?
Reply #1 - Nov 1st, 2016 at 1:42pm
Print Post  
please switch on vmicro>compiler>verbose and "show build properties"

then try the upload and post the output as .txt or email to info[at]visualmicro.com
  
Back to top
IP Logged
 
KP
Newbies
*
Offline


Posts: 5
Joined: Nov 1st, 2016
Re: Upload over WiFi broken?
Reply #2 - Nov 1st, 2016 at 10:43pm
Print Post  
Here is the compiler output
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload over WiFi broken?
Reply #3 - Nov 2nd, 2016 at 6:49pm
Print Post  
Thanks for the emailed output

The wifi output shows this which looks okay. what error are you seeing?

Code
Select All
Program size: 18,400 bytes (used 64% of a 28,672 byte maximum) (13.03 secs)
Minimum Memory Usage: 570 bytes (22% of a 2560 byte maximum)

Uploading Thermostat to Arduino Y�n on Sparky2 at 192.168.1.250 (Arduino Y�n)
Connecting ...
Connected
Transfering sketch
Starting Transfer from x' to '/tmp/sketch.hex'
Transferring... (0 of 51776)
Transferring... (20480 of 51776)
Transferring... (40960 of 51776)
Transferring... (51776 of 51776)
Verifying transfer... (51776 of 51776)
Transfer completed successfuly (51776 bytes).
Connection closed
Connecting to Run AVRDUDE
Connected
Exec: merge-sketch-with-bootloader.lua /tmp/sketch.hex

Bootloader stk500v2/stk500boot_v2_mega2560.hex will be added to the sketch

Exec: kill-bridge
Exec: run-avrdude /tmp/sketch.hex '-v'
Connection Closed
	The upload process has finished. 

« Last Edit: Nov 2nd, 2016 at 6:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
KP
Newbies
*
Offline


Posts: 5
Joined: Nov 1st, 2016
Re: Upload over WiFi broken?
Reply #4 - Nov 3rd, 2016 at 9:55pm
Print Post  
I'm not getting an error in VS, but the LED's on the Mega 2560 never flash like they are uploading.  The mega, stops responding to communications from the Dragino.  I've tried pressing the reset switch on the Mega to see if it just hasn't rebooted properly, and I've rebooted the Dragino/Mega combo by removing power.  After attempting the WiFi upload, the Mega is left in an unresponsive state, even when rebooted.  The only way to restore functionality is to remove the Dragino shield from the Mega, and upload the sketch via USB.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload over WiFi broken?
Reply #5 - Nov 3rd, 2016 at 9:59pm
Print Post  
Can you please switch on "file>preferences>compiler verbose" and "upload verbose" in the arduino ide and upload then email or post the output as .txt

Thanks
  
Back to top
IP Logged
 
KP
Newbies
*
Offline


Posts: 5
Joined: Nov 1st, 2016
Re: Upload over WiFi broken?
Reply #6 - Nov 7th, 2016 at 10:26pm
Print Post  
I've done a bit more investigating and think I may have stumbled onto something helpful.  I can successfully upload the sketch to the MegA2560 over the Dragino WiFi if I use the Arduino IDE.  When doing so, the Board is set to Mega2560 and the port set to the WiFi Yun IP address.  Whenever I try to do the same in Visual Studio, setting the board to Mega2560 seems to be unable to send the sketch:
ino6\bin\avrdude rduino6/etc/avrdude.conf" -v -patmega2560 -cwiring -P192.168.1.250 -b115200 -D 2560/Thermostat.ino.hex:i"
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is uino6/etc/avrdude.conf"
         Using Port                    : 192.168.1.250
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "192.168.1.250": The system cannot find the file specified.
avrdude: ser_drain(): read error: The handle is invalid.
Upload failed
avrdude: ser_send(): write error: sorry no info avail
 
The only way the Visual Studio will attempt to load the sketch over WiFi is by choosing a board type of Yun. but then I suspect the compiled code is not compatible w/ the 2560 since it just goes unresponsive.  The attached pic shows the Arduino IDE settings which work every time.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload over WiFi broken?
Reply #7 - Nov 7th, 2016 at 11:02pm
Print Post  
I have tried this and its working okay for me but I notice some parts of your reports that are confusing me.

In visual micro and in the arduino ide you have the standard mega2560 selected. So I don't see how that can work in either ide because you need to select a Dragino board.

I asked previously for a verbose output from the arduino ide. "file>preferences>upload verbose" this would be very helpful if you are saying that the standard mega2560 works for net upload.

I have installed the dragino hardware from their downloads section. You can see below that the board names are different for the Dragino versions of the hardware.

How have you installed Dragino? When does it sit in the Micro explorer and on the arduino ide menus?

Thanks

  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
KP
Newbies
*
Offline


Posts: 5
Joined: Nov 1st, 2016
Re: Upload over WiFi broken?
Reply #8 - Nov 9th, 2016 at 12:07pm
Print Post  
Well, I figured it out thanks to that last post.  It turns out that when I upgraded the Arduino IDE, it deleted all of the installed boards, including the Dragino.  I downloaded and reinstalled the latest Dragino Yun Shield board support files and everything went back to normal.

Thanks for the post which prompted me to look at the installed boards.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload over WiFi broken?
Reply #9 - Nov 9th, 2016 at 12:31pm
Print Post  
Si what did you mean when you reported the Arduino ide was working okay? Where was the confusion?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint