FTDI driver kills fake FTDI FT232?? - Page 1
Forum section: electronics / general

author: nctnico
author_rank: Super Contributor
timestamp: October 21, 2014, 11:59:23 pm
content: I bought some RS485 boards from Ebay with an FTDI FT232 chip on them. Appearantly the chips are fake. I used them with Linux and they work fine. After plugging them into a Windows PC with the latest drivers they quit working (even with Linux). I think the FTDI driver somehow kills the fake FTDI chip. Not nice if you got a lot of these boards in the field

author: BradC
author_rank: Super Contributor
timestamp: October 22, 2014, 02:13:35 am
content: Are they dead altogether (fail to enumerate on the USB bus) or have they just stopped working with the FTDI driver? I wonder if there is an eeprom or similar in there that the windows driver messes with?

author: Monkeh
author_rank: Super Contributor
timestamp: October 22, 2014, 03:17:05 am
content: The driver reprograms the product ID so it won't work.Price of buying fake chips.

author: ve7xen
author_rank: Super Contributor
timestamp: October 22, 2014, 03:34:36 am
content: Quote from: Monkeh on October 22, 2014, 03:17:05 amIf that is the case you can easily bind the new VID/PID to the correct driver in Linux and it should still work:Code:A vid/pid pair can be added dynamically using sysfs, for example:echo 0403 1234 >/sys/bus/usb-serial/drivers/ftdi_sio/new_idAgain, if that is the only "damage" done, lsusb should help you find the device, or just monitoring dmesg as you attach it.

author: edavid
author_rank: Super Contributor
timestamp: October 22, 2014, 03:46:25 am
content: The new Windows driver reprograms the PID to 0.More info here:http://forum.arduino.cc/index.php?topic=270175.0

author: ve7xen
author_rank: Super Contributor
timestamp: October 22, 2014, 03:58:22 am
content: Funny, the clone devices used to use counterfeit Prolific chips, and Prolific did something very similar, though not quite as nasty. The driver would just BSOD the machine constantly when used with a counterfeit chip.I'm not sure this strategy is actually to their advantage, or frankly, even legal.Anyway the workaround will likely still work in Linux.

author: Alexei.Polkhanov
author_rank: Frequent Contributor
timestamp: October 22, 2014, 04:07:22 am
content: FT232 allow you to change IDs to anything you want using config tool from FTDI website. If you change IDs default FTDI driver will stop recognizing the chip - I think they warn you about it in their documentation.What does FTDIconfig say in windows? screenshot?

author: edavid
author_rank: Super Contributor
timestamp: October 22, 2014, 04:19:44 am
content: Quote from: Alexei.Polkhanov on October 22, 2014, 04:07:22 amRead the discussion - it's not so simple.The new Windows driver changes the PID to 0, and then the driver won't recognize the device (even if you edit the INF file), and you can't use the config tool.The workaround is to use a Windows XP or Linux system to change the PID back, and then don't use the new driver.

author: Kjelt
author_rank: Super Contributor
timestamp: October 22, 2014, 09:18:02 am
content: Thats awfull Nico did you have many of these fake boards?I would take my loss remove the fake ics and replace with real ones from trustworthy dealer, they cost around €4.- , it could be worse.Quote from: ve7xen on October 22, 2014, 03:58:22 amSo who is going to sue them, not the manfacturer of the illegal copied devices who is the real villain in this storyIf only there was a good way to tell which is fake and which not, in front. Till then no ebay buys.

author: Psi
author_rank: Super Contributor
timestamp: October 22, 2014, 09:27:54 am
content: Quote from: ve7xen on October 22, 2014, 03:58:22 amSeriously?lol, i was wondering why i kept getting a BSOD randomly when using this prolific usb-uart adapter that came with some china RC model gear.

author: ve7xen
author_rank: Super Contributor
timestamp: October 22, 2014, 09:48:25 am
content: Quote from: Psi on October 22, 2014, 09:27:54 amYep, apparently if you get an old enough driver it should work fine for you. It might be "legitimate" breakage due to missing features or something in the counterfeits, but it appears it was common after a certain driver version. Or just use Linux and they all work fine...Edit: Some discussion here:https://www.eevblog.com/forum/reviews/note-how-to-not-get-scammed-with-prolific-%28pl2303%29-usb-serial-adapters/including identifying working version numbers.Quote from: mojo-chan on October 22, 2014, 09:45:09 amI have some in the parts bin but haven't actually tried them yet. They're implemented using the USB CDC though so should be no drivers required on most OSs and no opportunity or need to do stuff like this. Not sure why this isn't more widely used, but it does seem like the right way to do things to me.

author: nctnico
author_rank: Super Contributor
timestamp: October 22, 2014, 10:00:30 am
content: Quote from: Kjelt on October 22, 2014, 09:18:02 amFrom Ebay.http://www.ebay.nl/itm/201116513817?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649I'll provide some negative feedback.QuoteI have about 12 but I also have a bunch of real FT232s lying around for another product so I just replaced the chips. Reworking the boards is easy. Looking closer at the dmesg output from Linux it seems the Windows driver has reprogrammed the Pid indeed.

author: Kjelt
author_rank: Super Contributor
timestamp: October 22, 2014, 12:26:40 pm
content: Quote from: mojo-chan on October 22, 2014, 09:45:09 amFor this purpose it would be ok i guess, might try it in the near future.For a lot of other applications such as any I2C bridge or I/O peripheral I personally do not trust a standard PIC with software. I rather have a hardware statemachine solution for that. But thats just my 2 cents.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 22, 2014, 12:51:22 pm
content: Actively damaging a "fake" device is overkill, and possibly illegal - just refusing to work and showing a message would be more than enough.IANAL but I'm not sure this statement on their website (linked from, not actually on the driver download page) would be enough to avoid legal liabilityQuoteAn obvious issue is that a user may well not know than a device containing a component is non-genuine, and damaging it without warning would seem to be way beyond the bounds of what is reasonable.

author: linux-works
author_rank: Super Contributor
timestamp: October 22, 2014, 01:13:09 pm
content: interesting. a week ago, I bought some ftdi dongles from ebay and most were ok but one of them had a PID of all 0's (as seen on linux). I reported it to ebay, the vendor contacted me and sent me 2 new ones which were ok.I did report the first one as fake and that's what got the vendor (sunfounder) to step in.now, was the chip tried on windows and then returned? maybe that's what happened. or they tried it on windows at the factory and it zero'd out the pid before they shipped it.I did try patching the linux driver to accept 0 as the pid but was not successful (the module wouldn't load, so maybe I had the wrong kernel version and was not about to spend a lot of time tracking down the exact kernel tree for my running system).

author: nctnico
author_rank: Super Contributor
timestamp: October 22, 2014, 01:37:41 pm
content: Quote from: mikeselectricstuff on October 22, 2014, 12:51:22 pmI think I'll re-design my boards that use the FTDI FT232. What if the driver makes a mistake and renders a genuine FT232 useless? I don't want to take that chance. Like you said it would be much better if the driver just refuses to load or shows a warning. It would take unplugging/inserting to fix such a temporary hickup on a genuine device.

author: nctnico
author_rank: Super Contributor
timestamp: October 22, 2014, 02:29:53 pm
content: I acknowledge that people and companies have the right to defend their copyrights. I can't however condone destroying counterfeit products which where purchased in good faith. The proper way is taking legal action against entities selling counterfeit chips.The problem is that you can't know if a product contains counterfeit chips or not. After all you buy a black box. Secondly I really don't want to use software which has a self destruct mechanism. I'll take the FT232 out of all my designs because I don't want to be in the middle of an argument between a chip maker and counterfeiters.

author: jeremy
author_rank: Super Contributor
timestamp: October 22, 2014, 02:43:52 pm
content: Quote from: nctnico on October 22, 2014, 02:29:53 pmFwiw, as a long time ftdi user (in my designs, and in purchased devices), I completely agree. Error message, fine. Driver doesn't load, fine. But brick the device? Not ok. It's a shame, because I really like the chips. Oh well, have to vote with your wallet I suppose.Luckily I have recently discovered the cypress fx2/3, what a brilliant idea. Cypress here I come!

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 22, 2014, 02:48:34 pm
content: I've never encountered one but are the chips actually counterfeit or just driver-compatible?If the latter, then seems to me FTDI are on very dangerous ground.Are these drivers going to be included in distributions of Windows etc. as previous ones have been ?A user could upgrade Windows , not see any warnings about this, and find their hardware has been broken.It is not a crime to own a counterfeit item. However I'd be surprised if there aren't any jurisdictions where destroying counterfeit items was illegal.As FTDI provide no way for the user to tell if a device is genuine or not, the warning in the license agreement (even supposing anyone reads it) is probably not a good defence.Maybe I own a device with a fake FTDI device inside and installed drivers back when the license conditions didn't include this warning.I then buy a new, genuine device that needs the newer driver - will installing the newer driver kill the old device as well?

author: AndyC_772
author_rank: Super Contributor
timestamp: October 22, 2014, 02:50:45 pm
content: I completely agree. If I buy a USB-to-serial cable in good faith, it's because I have a need for that functionality, not because I have any interest in what's inside the box or what IP disputes there might be between IC manufacturers over its contents.The FTDI driver doesn't need to be compatible with chips which it identifies as possible counterfeits, but actively disabling access to them is a malicious act, and not acceptable.This reminds me of the software that Sony shipped on music CDs some years ago, which tried to disable features on a user's CD drive in an attempt to prevent copying. That particular idiotic decision backfired, spectacularly, and quite rightly so.

author: amyk
author_rank: Super Contributor
timestamp: October 22, 2014, 02:55:24 pm
content: QuoteThe FX2/LP is not really cheaper than an FT232 and has far more functionality, but Cypress do make the cheaper CY7C65213 whichis pin-compatibleand doesn't require proprietary drivers.Quote from: nctnico on October 22, 2014, 01:37:41 pmDefinitely agreed. All these extra checks are doing is providing incentive for the cloners to make their product even closer to the real one, or just provide patched drivers that bypass this "bomb" (if they're already making fakes, do you think they care at all about what your license agreement says?) Or someone else will... that is, if they haven't already.It's not like a USB-UART bridge is super-secret new technology anyway - there's plenty of other companies making them so vote with your wallet:http://www.microchip.com/forums/m376186.aspxMuch better if we move to ICs that work with the standard CDC drivers - and there areplentyof them.

author: edavid
author_rank: Super Contributor
timestamp: October 22, 2014, 02:56:23 pm
content: Quote from: mikeselectricstuff on October 22, 2014, 02:48:34 pmCounterfeit:http://zeptobars.ru/en/read/FTDI-FT232RL-real-vs-fake-superealQuoteYes, they pushed the killer driver out in Windows Update, which is why the issue has come up now.QuoteI don't think there are any new features in the driver, so no one actually needs it.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 22, 2014, 02:59:42 pm
content: Quote from: FTDI Chip on October 22, 2014, 02:03:33 pmThat's all very fine for people buying chips but in most cases people are buying devices with chips inside. How do they know?Why don't FTDI post info on devices known to contain fake chips?

author: linux-works
author_rank: Super Contributor
timestamp: October 22, 2014, 03:01:59 pm
content: Quote from: FTDI Chip on October 22, 2014, 02:03:33 pmyou guys could have a meltdown (public relations wise) if you don't control this new 'driver' of yours, and very quickly, too!I used to be a big fan of ftdi. but given your current hostility towards innocent end-users, I may have to rethink my choice of uart chips.I also now know NEVER to accept windows updates or YOUR updates and use only the previous version of the driver, for when I have no choice but to use your chips.if you want to go after people, go after SELLERS. punishing USERS is borderline illegal. if you brick a chip in a product that people depend on, I think you'll find some lawyers hungry to fight you in a class-action suit.do you REALLY want that hassle, mr. ftdi?you better rethink this before its too late. we understand your position, but you have taken a hostile action toward end users and this will Not End Well(tm), mark my words.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 22, 2014, 03:02:57 pm
content: Quote from: edavid on October 22, 2014, 02:56:23 pmAnd how were users warned that it might kill their stuff?If it was buried in a ton of other legalese crap I'd imagine there would be good grounds for legal actionQuoteUnless the new device contains, say, a newer chip like the FT232H and my old driver pre-dated this chip.