Can't use FTDI driver

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Can't use FTDI driver

Postby racingmini_mtl » Wed Jan 31, 2018 3:42 pm

I have a problem that started a few days ago: I can no longer use the FTDI D2XX driver. I get the error below when I try to start a project with a serial connection that uses the FTDI driver. I also cannot create a new project that uses the FTDI driver.

ftdi_driver_error.png
TS error message when opening project
ftdi_driver_error.png (9.03 KiB) Viewed 174 times


I'm not sure if this is when it started but I have a new device that uses the recent FTDI chip (FT230X instead of the older FT232R) and Windows updated its drivers when I connected it. I then have tried updating TS, going back to the previous version, deleting the TS folder then re-installing it from the web site file. I also tried to update the FTDI D2XX drivers using the install file from the FTDI web site. None of these things made any difference. I have also done a comm debug log but there is no more information than the error above. And the problems are happening with an adapter that uses the old FTDI chip so it's not limited to the new chip.

I can use the FTDI adapters as COM ports (so the VCP driver works) but it seems that the D2XX driver does not work for some reason. This has always worked in the past. I'm running Win7 and TS beta v3.0.50.23 and v3.0.50.40.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 8041
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: Can't use FTDI driver

Postby LT401Vette » Thu Feb 01, 2018 6:56 am

How did you update the D2XX drivers?

TS has those built in and will use it's own.

I think you are on to something with the updated FTDI drivers you have installed on the PC, maybe there is a new compatibility issue between versions?
On Linux and OS X you can't use D2XX is there is a VCP driver installed as the VCP Driver locks to the hardware on boot. The windows VCP driver plays nice with D2XX, but perhaps not with this new version driver?
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: Can't use FTDI driver

Postby racingmini_mtl » Thu Feb 01, 2018 10:00 am

LT401Vette wrote:How did you update the D2XX drivers?

I simply ran the exe file from FTDI (CDM21228_Setup.exe). I thought TS was using its own but I was trying to eliminate potential issues.

I assume that if this an issue with the latest FTDI VCP driver, you'll be able to replicate it on your end. In the meantime, is there a workaround for my old projects? I can't even go in the comms menu to change it because TS stop responding when the D2XX option is chosen so I can't go back to using a COM port.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 8041
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: Can't use FTDI driver

Postby LT401Vette » Thu Feb 01, 2018 11:25 am

That is a bad reaction..

I will look at putting protection against that in the beta.

In the mean time, you can edit the project.properties file in the projectCfg folder. Delete any line with this string:
"controllerInterfaceId=FTDI - D2XX driver"
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: Can't use FTDI driver

Postby racingmini_mtl » Wed Feb 14, 2018 7:55 pm

Have you been able to reproduce this and confirm if it is related to the new FTDI driver? Or is this something unique to my system? The workaround works but it would be nice to be able to use both the VCP and D2XX drivers.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 8041
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: Can't use FTDI driver

Postby LT401Vette » Thu Feb 15, 2018 7:04 am

Any idea what version VCP driver is on your PC now?

Going to the FTDI VCP Driver site:
http://www.ftdichip.com/ftdichip/Drivers/VCP.htm

The latest driver they have there is 2.0.8.23 from 2011 ?

On my own PC windows has 2.12.24 from 9/28/2016, so apparently there are newer drivers released via different channels.
Perhaps it is only if you use the new chip it updates to a newer driver?

I really can't say for sure if it is specific to your system. I haven't had anyone else report a problems though.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: Can't use FTDI driver

Postby LT401Vette » Thu Feb 15, 2018 7:06 am

I just told Windows to specifically update the FTDI driver, it did update it to 2.12.28 from 8/16/2017.

D2XX still seems fine though.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: Can't use FTDI driver

Postby racingmini_mtl » Thu Feb 15, 2018 10:50 am

I've got the same VCP driver you got from the Windows update (2.12.28). And this is on Win7 Pro. And to be clear, the problem is not only happening with the device with the new chip but with older devices that always worked.

Any idea what I can try to pinpoint the cause?

Thanks,
Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 8041
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: Can't use FTDI driver

Postby LT401Vette » Fri Feb 16, 2018 7:00 am

racingmini_mtl wrote:I've got the same VCP driver you got from the Windows update (2.12.28). And this is on Win7 Pro. And to be clear, the problem is not only happening with the device with the new chip but with older devices that always worked.

Any idea what I can try to pinpoint the cause?

Thanks,
Jean

Interesting. I give it a shot on a windows 7 machine I have here.
I'm still thinking someone else would have run into this if there was a true driver conflict. Unless the new ship you are using is actually using a different driver that is conflicting with D2XX and this chip is not used very broadly yet.

Conflicts between VCP and D2XX are not a new issue. On Linux and OS X you can only use one or the other. If you have a VCP driver in on boot, it will lock the port and D2XX can not use it. Early on Windows did this too, but FTDI made the windows driver play nice. OS X and Linux still no go.
Is it possible the new chip is using a driver that doesn't support switching to D2XX yet?

Have you tried removing the VCP driver, cleaning it and installing an older version?
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: Can't use FTDI driver

Postby racingmini_mtl » Fri Feb 16, 2018 10:39 am

The chip is the FT230X and it's been available for years now but it is more recent than the classic FT232R and it is smaller and cheaper. And the specs do say that you can use VCP and D2XX. I'll see if I can go back to a previous VCP version. I'll also try to see what happens on a cheap Win10 tablet I got lying around (somewhere...).

By the way, is the error message "Error: failed to load Comms Driver: 9" what you'd expect to see if this is indeed the same thing you see on Linux and OS X?

And if you ever want to test this yourself, there are cheap breakout boards with this chip available. But they are for a 3.3V UART so you wouldn't be able to connect them to an MS. However, it may not even be necessary to connect anything on the serial side because I do see the error even if I'm not using the FT230X.

One more point: is it possible that the D2XX version you use in TS needs to be updated?

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 8041
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: Can't use FTDI driver

Postby LT401Vette » Fri Feb 16, 2018 12:01 pm

By the way, is the error message "Error: failed to load Comms Driver: 9" what you'd expect to see if this is indeed the same thing you see on Linux and OS X?

No.. that sounds more like it is failing to load the native driver. It should load the D2XX driver fine, but not find the port as it is already locked by the VCP Driver.

One more point: is it possible that the D2XX version you use in TS needs to be updated?

It is possible, it has been a few years since I have.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10454
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC


Return to Tuner Studio

Who is online

Users browsing this forum: Motoren and 1 guest