UWP Firmata example not working

Would you like to see more information or a tutorial about how to do something with LattePanda? Post requests here!
User avatar
pszmyd
Posts: 7
Joined: Sun Jun 05, 2016 8:59 pm

Sun Jun 05, 2016 9:10 pm

Hey guys,

Has anyone successfully ran the Windows Remote Arduino thing (http://www.lattepanda.com/docs/#Windows ... %20Arduino)?
Haven't seen any complaints about it on formus yet but somehow I'm not able to make it to work.

The only difference in my setup is that I use remote deployment from Visual Studio 2015 from my regular dev machine (LP is on my local network). Full VS is too much for the LP to handle so I went the remote deployment/debugging way (which I've done for years). App gets deployed and ran on LP smoothly with full remote debugging et al.

I hooked up the

Code: Select all

RemoteDevice.ConnectionFailed
event to know what's wrong, and it's constantly failing with:

Code: Select all

UsbSerial::connectToDeviceAsync failed with a Platform::Exception type. (message: Catastrophic failure

Unable to initialize the device. Did you forget your USB device capabilities in the manifest? SerialDevice::FromIdAsync returned null.)
Well, that's wrong, as I have DeviceCapabilites set exactly as the LP docs (and MSDN) say. Maybe there is something missing? Not sure if some additional USB device capabilities are required for the Serial-to-USB connection?

User avatar
pszmyd
Posts: 7
Joined: Sun Jun 05, 2016 8:59 pm

Sun Jun 05, 2016 9:20 pm

Oh, and to add - I'm using the latest Arduino 1.6.9 with StandardFirmata sketch deployed to LP (which went flawlessly). Sketches deployed on the Arduino (COM5 in my case) are working entirely fine - tested a few, including serial, blinking etc.

Regarding the Windows side of things - I tried rebuilding and testing with every version of the Windows Remote Arduino libs from 1.2.0 up and now using the ones from NuGet (1.4.0). Same result all the time.

User avatar
tyjjr
Posts: 94
Joined: Thu Apr 21, 2016 5:38 am

Mon Jun 06, 2016 10:26 am


User avatar
pszmyd
Posts: 7
Joined: Sun Jun 05, 2016 8:59 pm

Mon Jun 06, 2016 11:44 pm

Same thing. This blink example is actually exactly what's described in the docs - tried the downloaded one without any modifications and still no luck:/

Just saw on the forums I'm not the only one having issues with the UWP and Firmata.

User avatar
corymp
Posts: 16
Joined: Thu May 19, 2016 11:07 pm

Sat Jun 11, 2016 9:01 pm

I can't get it to work either...

I am new to visual studio but I've managed to complete the setup and run the blink app in VS once it runs, I get one blink on the LP not the pin 13 led but one blue led off to the side as if it tried to upload the program but stopped... I get no errors or warnings in VS...

User avatar
johnkattenhorn
Posts: 2
Joined: Sun Jun 12, 2016 8:53 pm

Sun Jun 12, 2016 8:59 pm

This post is encouraging in itself, I've just received my LattePanda and I'm wondering if I could access the Arduino via Windows Remote.

I'll also have a go at this and see if I can also make it work.

User avatar
corymp
Posts: 16
Joined: Thu May 19, 2016 11:07 pm

Mon Jun 13, 2016 11:03 pm

I have successfully run the blink app using remote arduino.

Just NOT with the builtin Leonardo.

I plugged a arduino uno into the usb port, chaged the VID and PID, ran it and it works perfectly.

Can someone from the LP team explain how to get the builtin Leonardo to work? It seems pretty foolproof using any external arduino...

User avatar
LattePanda
Site Admin
Posts: 2265
Joined: Wed Jan 20, 2016 9:09 am

Tue Jun 14, 2016 7:41 am

Hi bro,
I am sorry for the late reply. What’s going on now?
We think there may be some problem in compatibility of USB driver at UWP.
We are trying to solve this problem. But before this, you can try to use Johnny-Five, which only costs you a little time.
http://johnny-five.io
2016-06-14 3.24.20.png
2016-06-14 3.24.20.png (633.88 KiB) Viewed 5298 times
Enjoy Tinkering with LattePanda ! :lol:

User avatar
corymp
Posts: 16
Joined: Thu May 19, 2016 11:07 pm

Tue Jun 14, 2016 12:35 pm

lattepanda wrote:Hi bro,
I am sorry for the late reply. What’s going on now?
We think there may be some problem in compatibility of USB driver at UWP.
We are trying to solve this problem. But before this, you can try to use Johnny-Five, which only costs you a little time.
http://johnny-five.io
@lattepanda please make this a priority. Node.js and johnny-five does not allow easy connection to windows forms, thus it's not much different from coding via the arduino ide... We need to be able to interface the arduino with windows forms! I would assume this is what a lot of people here purchased the device for! There isn't much any other reason to have a built in arduino! This should have been tested in the design phase of your project... I am unsure why the Leonardo was selected in the first place as it is now retired according to arduino.cc website....

I have johnny-five set up and working... Can someone explain how to interface it with windows forms? according to documentation it's not easy and would be cumbersome to implement

User avatar
peppe.tumino
Posts: 6
Joined: Tue Jun 14, 2016 2:11 pm

Tue Jun 14, 2016 2:15 pm

Hi,
I've same problem
UsbSerial::connectToDeviceAsync failed with a Platform::Exception type. (message: Errore irreparabile
Unable to initialize the device. Did you forget your USB device capabilities in the manifest? SerialDevice::FromIdAsync returned null.)

Please @lattepanda solve this problem. I supported your kickstarter project to make .NET program

Thanks

Post Reply