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) yun uploader (Read 3309 times)
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
yun uploader
Sep 22nd, 2020 at 4:00pm
Print Post  
Hi Smiley
I have used VS for some time to program arduino yun  over wifi.
For some time this has not been working (last three weeks) the last error message was:
"
Connecting ...
Algorithm negotiation fail
Connection closed
Upload failed"

Anyone have a idea for a solution?

mvh vegar
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: yun uploader
Reply #1 - Sep 22nd, 2020 at 4:07pm
Print Post  
1)

Thanks for the report, would you be able to attach the build log as shown at the top of the page (with Verbose, and Show Build Properties Enabled?)

If you could also attach the output from an Upload, with the "vMicro > Upload > Verbose"  property enabled as well it will help us see more about the issue.

2)

Please confirm working using the Arduino IDE?

Thanks
« Last Edit: Sep 22nd, 2020 at 4:48pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #2 - Sep 22nd, 2020 at 6:54pm
Print Post  
I am not sure if I completly understand everything you ask for... but yes I am using Arduino IDE. My solution now is copy- paste into the orginal arduino IDE software after writing in VS. The uploader and serial monitor works there Smiley

I have attached pictures with micro build.

vegar
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #3 - Sep 22nd, 2020 at 7:09pm
Print Post  
Okay, please follow the guide in the yellow box above.

Thanks
  
Back to top
WWW  
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #4 - Sep 22nd, 2020 at 8:05pm
Print Post  
Smiley
Ok, sorry. now I understand Smiley
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: yun uploader
Reply #5 - Sep 23rd, 2020 at 9:40am
Print Post  
Thanks for the logs, would it also be possible to attach the Build and Upload logs from the Arduino IDE (with Preferences > Show Verbose Output During Build + Upload Checked)?
« Last Edit: Sep 23rd, 2020 at 2:10pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #6 - Sep 23rd, 2020 at 5:25pm
Print Post  
Yes, this file show the build in Arduno IDE
mvh vegar
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #7 - Sep 23rd, 2020 at 5:42pm
Print Post  
Thanks, that shows the Arduino IDE is using serial upload COMx but in Visual Micro you are using IP address.

Can you give output from the Arduino IDE when uploading using IP address?

Thanks
  
Back to top
WWW  
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #8 - Sep 23rd, 2020 at 6:45pm
Print Post  
No, this was a upload using IP adress...
this file shows the same program uploaded thru usb (com4)

vegar
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #9 - Sep 24th, 2020 at 12:59pm
Print Post  
Thanks, yes I forgot, I think the Yun runs avrdude from the linux processor on the Yun which is why we see it at the end of the arduino output. We will look into this. 

It would be useful if you switch on the Upload Verbose in both arduino and visual micro so we can see the upload commands. It is possible you updated the avr or some other tools that we need to retest with. Strange because the yun isn't developed anymore by arduino and has not changed for years.
« Last Edit: Sep 24th, 2020 at 12:59pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #10 - Sep 24th, 2020 at 1:59pm
Print Post  
Ok. I found it trange to, because I have been using visual Micro with Yun for many years with no problem...

I looked into my last project... tho one I have sendt you, It is a Yun rev2... this one has not been around a long time...?  I could check at work tomorrow with a yun first edition?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #11 - Sep 24th, 2020 at 2:58pm
Print Post  
Useful thank you
  
Back to top
WWW  
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #12 - Sep 24th, 2020 at 5:46pm
Print Post  
Hi Smiley
I could not wait, went to work... got a yun 1. generation... and it works like a charm Smiley No problems with visual micro.
Switch back to Yun rev2 and the problem is back. 
I could not  think the new yun was the problem... and I have ordered Yun rev 2 to my class at work Sad

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #13 - Sep 24th, 2020 at 6:39pm
Print Post  
Can you please give verbose output with build properties from your work. That will help to show if the difference is the tool chain versions. It will be useful to see the working versions.

Thanks
  
Back to top
WWW  
IP Logged
 
vegartb
Newbies
*
Offline


Posts: 8
Joined: Sep 22nd, 2020
Re: yun uploader
Reply #14 - Sep 24th, 2020 at 7:10pm
Print Post  
Hi Smiley
OK, I took the basic example blink. Build and upload success on Yun rev1 (first edition). microbuild in txt file.

The same example build and upload failed on Yun rev2. microbuild in txt file
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #15 - Sep 24th, 2020 at 7:30pm
Print Post  
Thanks, that's really useful. We will come up with a solution during the next week or two. 

In the meantime you should be able to create a .bat file that runs the Arduino CLI to do same...

example: Contents of myproject_upload_release.bat. Note that the build folder can be found in the compiler output and has to be changed for your real project.

Code
Select All
"C:\Program Files (x86)\Arduino\arduino-builder.exe" upload -b arduino:avr:yun --input-dir  "C:\Users\vegar\AppData\Local\Temp\VMBuilds\blink_upload_testing\yun\Release" -p 192.168.38.237 

« Last Edit: Sep 24th, 2020 at 7:34pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Ron_Cdn
Newbies
*
Offline


Posts: 1
Location: Canada
Joined: Oct 8th, 2020
Re: yun uploader
Reply #16 - Oct 9th, 2020 at 6:59pm
Print Post  
Hi,
I recently installed VS Micro and have encountered the same problem.
Hopefully a fix is forthcoming but I wanted to add my two cents worth to help shed some light on the issue.

Originally I connected to a Dragino Yun shield / Uno board and everything worked great.
When I switched to the Arduino Yun Rev 2 programs won't upload and the terminal will not connect either.

With very limited experience in this area  - I did a little sniffing with WireShark and it seems that SharpSSH in VS Micro and Dropbear on the Arduino don't share a common SSH cipher and the connection gets terminated.

Perhaps it's already been fixed but if any more info is needed eg. OpenWrt versions / cipher types etc. I could post them.

Thanks
Ron


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #17 - Oct 10th, 2020 at 1:07am
Print Post  
Thanks, that is useful info. It hasn't been fixed yet but it is in the short term pipeline.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: yun uploader
Reply #18 - Oct 17th, 2020 at 8:02pm
Print Post  
Please try the LATEST release for Visual Studio v20.09.10.11 (not yet in the gallery)

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

The release implements a new SSH library that works with the Yun R2 and other more recent boards that require SSH.

Thanks

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint