VS Arduino
>> >> yun uploader
https://www.visualmicro.com/forums/YaBB.pl?num=1600790424

Message started by vegartb on Sep 22nd, 2020 at 4:00pm

Title: yun uploader
Post by vegartb on Sep 22nd, 2020 at 4:00pm
Hi :-)
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

Title: Re: yun uploader
Post by Simon@Visual Micro on Sep 22nd, 2020 at 4:07pm
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

Title: Re: yun uploader
Post by vegartb on Sep 22nd, 2020 at 6:54pm
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 :-)

I have attached pictures with micro build.

vegar
vsDump1.JPG ( 187 KB | 3 Downloads )
vsDump2_JPG.png ( 178 KB | 1 Download )

Title: Re: yun uploader
Post by Visual Micro on Sep 22nd, 2020 at 7:09pm
Okay, please follow the guide in the yellow box above.

Thanks

Title: Re: yun uploader
Post by vegartb on Sep 22nd, 2020 at 8:05pm
:)
Ok, sorry. now I understand :-)
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_013.txt ( 54 KB | 4 Downloads )

Title: Re: yun uploader
Post by Simon@Visual Micro on Sep 23rd, 2020 at 9:40am
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)?

Title: Re: yun uploader
Post by vegartb on Sep 23rd, 2020 at 5:25pm
Yes, this file show the build in Arduno IDE
mvh vegar
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=arduinoIdeBuild.txt ( 20 KB | 8 Downloads )

Title: Re: yun uploader
Post by Visual Micro on Sep 23rd, 2020 at 5:42pm
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

Title: Re: yun uploader
Post by vegartb on Sep 23rd, 2020 at 6:45pm
No, this was a upload using IP adress...
this file shows the same program uploaded thru usb (com4)

vegar
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=arduinoIdeBuildUSB.txt ( 22 KB | 7 Downloads )

Title: Re: yun uploader
Post by Visual Micro on Sep 24th, 2020 at 12:59pm
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.

Title: Re: yun uploader
Post by vegartb on Sep 24th, 2020 at 1:59pm
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

Title: Re: yun uploader
Post by Visual Micro on Sep 24th, 2020 at 2:58pm
Useful thank you

Title: Re: yun uploader
Post by vegartb on Sep 24th, 2020 at 5:46pm
Hi :-)
I could not wait, went to work... got a yun 1. generation... and it works like a charm :-) 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 :-(

mvh vegar

Title: Re: yun uploader
Post by Visual Micro on Sep 24th, 2020 at 6:39pm
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

Title: Re: yun uploader
Post by vegartb on Sep 24th, 2020 at 7:10pm
Hi :-)
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
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=blink_yun_rev1_sucsess.txt ( 36 KB | 4 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=blink_yun_rev2_error_upload.txt ( 35 KB | 3 Downloads )

Title: Re: yun uploader
Post by Visual Micro on Sep 24th, 2020 at 7:30pm
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]"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[/code]

Title: Re: yun uploader
Post by Ron_Cdn on Oct 9th, 2020 at 6:59pm
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



Title: Re: yun uploader
Post by Visual Micro on Oct 10th, 2020 at 1:07am
Thanks, that is useful info. It hasn't been fixed yet but it is in the short term pipeline.

Title: Re: yun uploader
Post by Visual Micro on Oct 17th, 2020 at 8:02pm
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


VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.