Author Topic: FTDI driver kills fake FTDI FT232??  (Read 756371 times)

0 Members and 5 Guests are viewing this topic.

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1554
  • Country: de
Re: FTDI driver kills fake FTDI FT232??
« Reply #1650 on: January 15, 2015, 06:29:12 pm »
There was a perl script posted in October and I used it to check my devices under Win7 back then:
https://www.eevblog.com/forum/reviews/ftdi-driver-kills-fake-ftdi-ft232/msg539237/#msg539237
Trying is the first step towards failure - Homer J. Simpson
 

Offline Rubi

  • Contributor
  • Posts: 22
  • Country: at
Re: FTDI driver kills fake FTDI FT232??
« Reply #1651 on: March 24, 2015, 08:29:03 am »
I run in this trap recently while building a Elektor LCR meter.

I reflowed the chip and it worked.
The I reflowed the micro controller and the ft232 did not enumerate correctly anymore.
It cost me hours to find out what was wrong, this is so emberassing.
Howe could thery do that without warning ?
On the other hand I learned a lot about how to figure out usb troubles and how to use an usb event viewer.
In my onw designs I will only use the cp210x. I liked to use them since they have an integrated 3V3 regulator and are easier to reflow since they have no pins.

Cheers
Michael
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 844
  • Country: 00
Re: FTDI driver kills fake FTDI FT232??
« Reply #1652 on: March 24, 2015, 10:20:19 am »
Rubi: Before we suspect that the chip is fake, are you sure that the test pin is grounded on the board? A trap for young players, as a certain crazy Aussie would put it.
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline Rubi

  • Contributor
  • Posts: 22
  • Country: at
Re: FTDI driver kills fake FTDI FT232??
« Reply #1653 on: March 25, 2015, 12:36:12 pm »
Hi

Yes the test pin is grounded.
I checked the enumeration process and it is perfectly ok, except the pid is 0.
I then found a workaround for the problem and could assign the driver directly accepting a pid of 0.
Since then the chip works great, programmed the uc and works with the assigned programm.

So it was definitley a fake chip and thanks to the internet I could find a description how to get around it.

Cheers
Michael
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1654 on: April 16, 2015, 02:12:06 am »
Super freaky brick problem. This is NOT a fake FTDI chip (well, at least I assume it's not). The manufacturer of the equipment remotely bricks the chip any time you open their software while connected to the internet (just to be bastards and make more money).

This is what it looked like before the brick:



When the software bricks it, it resets BOTH the PID and VID to 0000 :(



This renders the device completely unusable as you would imagine. I tried using the FTDI Inf generator program to see if I could set the inf's up to use VID 0000 and PID 0000 but no luck getting them working. Using the custom INF files it recognized it as USB Serial Converter instead of "Unknown Device" but it still says "The device cannot start. (Code 10)"



In reading online it appears that windows will refuse to load a driver if the PID and VID are set to the same value, so not sure we can hack the FTDI driver to override that.

I read a few posts about using Linux to reset the PID (but unfortunately not the VID) but when I boot up Ubuntu and do "lsusb" the FTDI converter isn't even listed at all! Does anyone know of a way to get Linux to recognize the VID of 0000 so I can overwrite it? :(

Any help you can provide would be greatly appreciated. There are a LOT of these devices out there that have this problem.

Thanks!

-Jamie M.
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 844
  • Country: 00
Re: FTDI driver kills fake FTDI FT232??
« Reply #1655 on: April 16, 2015, 02:20:02 am »
Jamie, what does dmesg output after you plug in the device in Linux?
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1656 on: April 16, 2015, 02:30:14 am »
Jamie, what does dmesg output after you plug in the device in Linux?
[   69.144050] usb 8-1: new full-speed USB device number 2 using uhci_hcd
[   69.268064] usb 8-1: device descriptor read/64, error -71
[   69.492047] usb 8-1: device descriptor read/64, error -71
[   69.708069] usb 8-1: new full-speed USB device number 3 using uhci_hcd
[   70.036064] usb 8-1: device descriptor read/64, error -71
[   70.260069] usb 8-1: device descriptor read/64, error -71
[   70.476060] usb 8-1: new full-speed USB device number 4 using uhci_hcd
[   70.888039] usb 8-1: device not accepting address 4, error -71
[   71.204082] usb 8-1: new full-speed USB device number 5 using uhci_hcd
[   71.616047] usb 8-1: device not accepting address 5, error -71
[   71.616096] usb usb8-port1: unable to enumerate USB device

-Jamie M.
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: us
    • netstuff
Re: FTDI driver kills fake FTDI FT232??
« Reply #1657 on: April 23, 2015, 03:16:04 pm »
you should be able to use the ftdi fixer (not by ftdi, but by some linux guys) to set the pid and vid.

the key is to have only one dongle plugged in and refer to it by /dev/ttyUSB0.  it will then set the vid and pid for you if you give it both arguments to the CLI.

 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1658 on: April 23, 2015, 04:06:35 pm »
you should be able to use the ftdi fixer (not by ftdi, but by some linux guys) to set the pid and vid.

the key is to have only one dongle plugged in and refer to it by /dev/ttyUSB0.  it will then set the vid and pid for you if you give it both arguments to the CLI.
Do you have a link to the software "by some linux guys"? I've been trying to use ft232r_prog version 1.24 by Mark Lord, but I don't see anywhere I can tell it to write to /dev/ttyUSB0 :(



-Jamie M.
 

Offline neslekkim

  • Super Contributor
  • ***
  • Posts: 1304
  • Country: no
Re: FTDI driver kills fake FTDI FT232??
« Reply #1659 on: April 23, 2015, 04:19:52 pm »
sudo ./ft232r_prog --old-pid 0x0000 --new-pid 0x6001
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: us
    • netstuff
Re: FTDI driver kills fake FTDI FT232??
« Reply #1660 on: April 23, 2015, 04:21:56 pm »
you don't refer to it by ttyUSB0 in mark's program (that's the one I was thinking of).

that's why I said, make sure only ONE ftdi dongle is on your system.  his app will find it and set its pid and vid.  that's why you don't give /dev/ttyUSB0 on the command line.  it would have been sensible to do that, but he makes you have only 1 connected and if he finds it, he writes to it.
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1661 on: April 23, 2015, 04:26:48 pm »
sudo ./ft232r_prog --old-pid 0x0000 --new-pid 0x6001
Tried that the first time, just said it couldn't find the ftdi chip on usb. I had lots of other USB stuff plugged in at the time though.

you don't refer to it by ttyUSB0 in mark's program (that's the one I was thinking of).

that's why I said, make sure only ONE ftdi dongle is on your system.  his app will find it and set its pid and vid.  that's why you don't give /dev/ttyUSB0 on the command line.  it would have been sensible to do that, but he makes you have only 1 connected and if he finds it, he writes to it.
Sweet, I'll give it a go. Before I was booted off USB plus had a USB mouse. I've now got it burnt to DVD and no other USB devices so we'll see if it works! Thanks!

-Jamie M.
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1662 on: April 23, 2015, 04:36:01 pm »
Nope, no go :(

ubuntu@ubuntu:~/ft232r_prog-1.24$ sudo ./ft232r_prog --old-pid 0x0000 --new-pid 0x6001 --old-vid 0x0000 --new-vid 0x0403

ft232r_prog: version 1.24, by Mark Lord.
ftdi_usb_open() failed for 0000:0000: device not found
ubuntu@ubuntu:~/ft232r_prog-1.24$

I think in the source code it's trying to look at it by vid/pid. I wonder if we can edit the source to make it do a blind write of the vid/pid to /dev/ttyUSB0?

-Jamie M.
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: us
    • netstuff
Re: FTDI driver kills fake FTDI FT232??
« Reply #1663 on: April 23, 2015, 04:46:15 pm »
can you omit the 'old' stuff and just feed it the new vid and pid?

maybe even try setting just one at a time?
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1664 on: April 23, 2015, 04:51:29 pm »
can you omit the 'old' stuff and just feed it the new vid and pid?

maybe even try setting just one at a time?
Nope, when you omit either the old vid or pid it uses the default vid and pid to try and read it (0403/6001):

ubuntu@ubuntu:~/ft232r_prog-1.24$ sudo ./ft232r_prog --new-pid 0x6001 --new-vid 0x0403

ft232r_prog: version 1.24, by Mark Lord.
ftdi_usb_open() failed for 0403:6001: device not found
ubuntu@ubuntu:~/ft232r_prog-1.24$ sudo ./ft232r_prog --new-pid 0x6001

ft232r_prog: version 1.24, by Mark Lord.
ftdi_usb_open() failed for 0403:6001: device not found
ubuntu@ubuntu:~/ft232r_prog-1.24$ sudo ./ft232r_prog --new-vid 0x0403

ft232r_prog: version 1.24, by Mark Lord.
ftdi_usb_open() failed for 0403:6001: device not found
ubuntu@ubuntu:~/ft232r_prog-1.24$

I found out that Mark Lord lives not far from me, lol! I sent him an e-mail to see if he can help :)

-Jamie M.
(p.s. here's the relevant source code from Mark's program where it's erroring out on me:

Code: [Select]
ftdi_init(&ftdi);
atexit(&do_deinit);

memset(&ee, 0, sizeof(ee));
ee.old_vid = 0x0403;; /* default; override with --old_vid arg */
ee.old_pid = 0x6001; /* default; override with --old_pid arg */
process_args(argc, argv, &ee); /* handle --help and --old-* args */

if (ftdi_usb_open_desc(&ftdi, ee.old_vid, ee.old_pid, NULL, ee.old_serno)) {
fprintf(stderr, "ftdi_usb_open() failed for %04x:%04x:%s %s\n",
ee.old_vid, ee.old_pid, ee.old_serno ? ee.old_serno : "", ftdi_get_error_string(&ftdi));
exit(ENODEV);
}
atexit(&do_close);
« Last Edit: April 23, 2015, 05:00:53 pm by toysareforboys »
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: us
    • netstuff
Re: FTDI driver kills fake FTDI FT232??
« Reply #1665 on: April 23, 2015, 06:02:09 pm »
maybe your device is just plain BAD (?)

 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1666 on: April 23, 2015, 08:07:07 pm »
maybe your device is just plain BAD (?)
It wasn't bad before the equipment manufacturer bricked it, but they bricked it really good :(

I think I'll smash open the epoxy fill tonight and see if I can find the FTDI chip. If I can I'll order a new one and swap it out.

-Jamie M.
 

Offline toysareforboys

  • Contributor
  • Posts: 11
Re: FTDI driver kills fake FTDI FT232??
« Reply #1667 on: April 24, 2015, 12:19:45 pm »
I heard back from Mark Lord, doesn't sound good :(

Quote
-----Original Message-----
From: Mark Lord
Sent: Thursday, April 23, 2015 6:43 PM
To: Jamie M.
Subject: Re: FTDI chip unbricking, with vid 0000 AND pid 0000 :( plz help!

The device has to show up in "lsusb" for anything on Linux to work with it.
So, do "lsusb" without it plugged in, then plug it in (wait a few secs)
and do "lsusb" again, and compare.  Anything new show up?

--
Mark Lord
Real-Time Remedies Inc.

On that news I've decided to break it open and see if I can find the FTDI chip to replace it. Yikes.



-Jamie M.
 

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: FTDI driver kills fake FTDI FT232??
« Reply #1668 on: April 27, 2015, 03:03:19 pm »


Comment by Nuno Gonçalves: "The driver (2.12) is back on windows update. Clones are getting bricked again."

Any confirmations?
 

Offline MadMike

  • Newbie
  • Posts: 1
  • Country: se
Re: FTDI driver kills fake FTDI FT232??
« Reply #1669 on: May 07, 2015, 10:28:55 am »


Comment by Nuno Gonçalves: "The driver (2.12) is back on windows update. Clones are getting bricked again."

Any confirmations?
It's not back. Unless it was only there for a short time and they've pulled it yet again, which seems unlikely.
http://catalog.update.microsoft.com/v7/site/Search.aspx?q=USB%5cVID_0403%26PID_6001 (IE only, thank you Microsoft  :palm:) Latest FTDI driver update was 2014-08-26.

Edit:
Ignore the above. I'm being stupid. :palm:
I was just told by a coworker that the date listed is when the driver was made, not when it was published to windows update as I had assumed. A quick look at the version number, which I should have done, confirms that 2.12 is indeed on windows update.
« Last Edit: May 07, 2015, 10:37:16 am by MadMike »
 

Offline Macbeth

  • Super Contributor
  • ***
  • Posts: 2562
  • Country: gb
Re: FTDI driver kills fake FTDI FT232??
« Reply #1670 on: May 07, 2015, 11:32:11 am »
NEW LabVIEW Driver for DE-6000 is available for collecting data from the DE-6000. The driver is written in LabVIEW 2013 and requires the optional DE-6000-DTK IR-USB interface adapter.
Everything about the "DE-6000" is dodgy to me. When a seller only lets you know price by "Request a quote" that usually means megabucks and slimy salesmen in the middle. It's just a DE-5000 relabelled and sold for a fortune. No thanks, I got mine from Japan with the tweezers and 4 wire croc clips for $99 delivered.

However, to be fair to IET, the LabVIEW driver is nothing whatsoever to do with the FTDI driver. Think of it more like the front end graphical interface. Does the DE-6000 include this driver, hence the huge markup, or is it another "request a quote" add on?
 

Online rsjsouza

  • Super Contributor
  • ***
  • Posts: 4541
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: FTDI driver kills fake FTDI FT232??
« Reply #1671 on: May 07, 2015, 04:32:19 pm »
Everything about the "DE-6000" is dodgy to me.
No kidding! Image from their page: :palm:

Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2109
  • Country: au
Re: FTDI driver kills fake FTDI FT232??
« Reply #1672 on: May 07, 2015, 10:44:41 pm »
However, to be fair to IET, the LabVIEW driver is nothing whatsoever to do with the FTDI driver. Think of it more like the front end graphical interface. Does the DE-6000 include this driver, hence the huge markup, or is it another "request a quote" add on?

Thanks to a member here and the group he belongs to I managed to get the protocol details for the DE5000 with the express mission of creating my own de5000 labview drivers. Whenever I get around to finishing it I wonder what would happen if I tired release them into labviews online driver repository
 

Offline Macbeth

  • Super Contributor
  • ***
  • Posts: 2562
  • Country: gb
Re: FTDI driver kills fake FTDI FT232??
« Reply #1673 on: May 08, 2015, 12:47:30 am »
However, to be fair to IET, the LabVIEW driver is nothing whatsoever to do with the FTDI driver. Think of it more like the front end graphical interface. Does the DE-6000 include this driver, hence the huge markup, or is it another "request a quote" add on?

Thanks to a member here and the group he belongs to I managed to get the protocol details for the DE5000 with the express mission of creating my own de5000 labview drivers. Whenever I get around to finishing it I wonder what would happen if I tired release them into labviews online driver repository
Don't worry. IET will have put some code in their LabVIEW driver to ensure it only works with their DE6000. I've seen this before with my Siglent SDG1025. This is also sold rebranded as a LeCroy Wavestation and the LeCroy LabVIEW driver does not work with the Siglent (it checks model number using a *IDN? SCPI request. Yeah, piss easy to work around ;) ).

Now I commend you for not wanting to step on IETs toes by ensuring your driver only works with the Japanese DER DE5000. I suggest you collaborate with IETs developers. They are clearly open to this as they must have collaborated with Cyrusteks developers in Taiwan to develop the custom DE6000 firmware, and it is obviously in their interests to let you know how you can perform a check for DE5000 or DE6000 in your LabVIEW driver. I can't see any reason for them to with-hold this information from you  ;), so pop them an email. :-DD
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 10344
  • Country: my
  • reassessing directives...
Re: FTDI driver kills fake FTDI FT232??
« Reply #1674 on: May 08, 2015, 05:13:53 am »
maybe your device is just plain BAD (?)
or maybe linux is not everything in this world... here windows version...
http://www.reddit.com/r/arduino/comments/2k0i7x/watch_that_windows_update_ftdi_drivers_are/clgviyl
(sorry if its been overridden somewhere i didnt read all 100+ pages...

otoh and here some pointer on spotting real vs fake chip (maybe again i didnt read all 100+ pages)...



the most prominent difference is the detent (whats that called), the fake one got sharp detent... i checked all my china purchase arduino, usb-serial, and chip stocks they are all seem similar to the real chip, smoother detent... no?
It's extremely difficult to start life.. one features of nature.. physical laws are mathematical theory of great beauty... You may wonder Why? our knowledge shows that nature is so constructed. We simply have to accept it. One could describe the situation by saying that... (Paul Dirac)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf