Jark / FTDISample

Note: As of version 10556.0 the ftdi driver does no longer seem to work. A sample application showcasing the FTDI D2XX driver use in Windows Universal projects (UWP). This sample is tested on the Raspberry PI 2 with Windows IOT installed and a FTDI FT232R usb-to-serial adapter.
Apache License 2.0
22 stars 3 forks source link

There are Fake FTDI chips around #11

Open mterwoord opened 7 years ago

mterwoord commented 7 years ago

Are you sure you're using official FTDI hardware, and not clones? We had a clone and it stopped working at some point. We ordered some real FTDI ones (which were hardly more expensive) and it worked. Didn't test recently....

Jark commented 7 years ago

Yup, a 100% sure. That there's many clones out there which sometimes don't work properly is a well known fact.

This sample was originally specific for the winRT FTDI d2xx driver, that you had to manually install onto Windows IOT on the Raspberry PI and were only able to use through the FTDI library.

That installation process stopped working after Windows IOT got support for the FTDI chipsets out of the box. Sadly the default apis are not as fast as the FTDI driver direct driver support.

mterwoord commented 7 years ago

So that means that the FTDI stuff is still usable, but only using the built-in drivers?

Jark commented 7 years ago

You can use this sample with the built-in drivers that support FTDI by uncommenting/commenting the lines at https://github.com/Jark/FTDISample/blob/master/src/FTDISample/MainPage.xaml.cs#L17

The fast FTDI library from http://www.ftdichip.com/Drivers/D2XX.htm does no longer work so you can't use that approach.

mterwoord commented 7 years ago

Cool. Thanks for clarifying: Was scared with the possibility of serial communications not working at all.. :)

wimdevriendt commented 6 years ago

Hi I have bought a FTDI cable (original one) and when i run the sample i got NON GENUINE DEVICE DETECTED How can i get the sample working ?

Jark commented 6 years ago

Hi @wimdevriendt,

This sample was originally specific for the winRT FTDI d2xx driver, that you had to manually install onto Windows IOT on the Raspberry PI and were only able to use through the FTDI library.

That installation process stopped working after Windows IOT got support for the FTDI chipsets out of the box.

Microsoft have since then added built-in support for FTDI devices, so if you uncomment / comment the lines at https://github.com/Jark/FTDISample/blob/master/src/FTDISample/MainPage.xaml.cs#L17 it should work for you.

I'll add it to my todo list to make the SerialDeviceManager the standard way of doing things.

Hope this helps,

Jark

wimdevriendt commented 6 years ago

Hi, if i uncomment is nothing is working. I have installed the drivers so maybe i should reimage the windows iot and not copy the drivers ? right ?

Jark commented 6 years ago

That might be worth a try, let me know if that fixes it for you.

Unfortunately I don't have any working testing setup, so I can't verify for you if the sample is still working, the last time I tested this sample was around the same time last year.

However, I would expect some very clear exceptions if anything wasn't working :)

wimdevriendt commented 6 years ago

Hi I created new image, indeed i see the usb ttl ftdi in devices without installing drivers but i get device = null on line var device = await ftManager.OpenByDeviceId(deviceNode.Id); when i select the device

Jark commented 6 years ago

Seems like you need to add some device capabilities to the appxmanifest file to get it to work now: https://social.msdn.microsoft.com/Forums/en-US/b9633593-377e-4d6f-b3a9-838de0555371/serialdevicefromidasync-always-returns-null-unless-the-serial-adapter-is-plugged-in-after-boot?forum=WindowsIoT

Give that a go.

wimdevriendt commented 6 years ago

Also it’s not working It’s already in the package From: Jark [mailto:notifications@github.com] Sent: dinsdag 10 oktober 2017 11:30 To: Jark/FTDISample FTDISample@noreply.github.com Cc: Wim De Vriendt wim@pureautomation.be; Mention mention@noreply.github.com Subject: Re: [Jark/FTDISample] There are Fake FTDI chips around (#11)

Seems like you need to add some device capabilities to the appxmanifest file to get it to work now: https://social.msdn.microsoft.com/Forums/en-US/b9633593-377e-4d6f-b3a9-838de0555371/serialdevicefromidasync-always-returns-null-unless-the-serial-adapter-is-plugged-in-after-boot?forum=WindowsIoT

Give that a go.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Jark/FTDISample/issues/11#issuecomment-335415991, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAw6D7TqUU8iiQwgYRi0rdQoJ8pUESutks5sqzksgaJpZM4KD6eA.

Jark commented 6 years ago

Just to be clear: the specific DeviceCapability mentioned in that link are not the same as the package manifest file supplied with the sample code in this repository.

If it's still not working it's possible that you've got a revision that's too new / different from the drivers that are supplied with Windows 10 iot or you've got a fake FTDI chip. You would have to either contact Microsoft directly or contact FTDI to find out if your usb serial device is supported or not.