News for hackers. Stuff that matters.
Re:Have FTDI kicked-off round 2 of the clone wars? by Tomte on Monday February 01, 2016 @08:22AM (#11011551)
And the real solution is to get a grip on your supply chain.

Somehow with FTDI chips it's "normal", "okay" and expected to get counterfeit goods. And heaven forbid the original manufacturer doesn't support you in your innocence.

But if someone ships you a fake ATtiny all hell breaks loose and the Chinese ebay seller must be punished, hours and hours are spent communicating with ebay, with PayPal, with other users' on web forums.

Hobbyist electronics people are strange. Wake up and give Mouser hell if they send you faked goods!

Re:Have FTDI kicked-off round 2 of the clone wars? by leoedin on Monday February 01, 2016 @08:45AM (#11011638)
I've purchased what I thought was an industrial spec microcontroller board from a legitimate and respected supplier, through Farnell, and it had a counterfeit FTDI chip on it.

I built that board into a piece of test equipment that's likely to be used for 5 or 10 years. Fortunately this whole saga happened while I was still developing it - if their chip bricking driver had been released a year later, I'd probably not have known about it. Someone would connect the test PC to Windows Update in 3 years time, and the device would stop working.

Counterfeit chips are a reality, and not one that people building devices on a small scale can properly mitigate against. Not buying chips on alibaba is common sense, but not buying pre-built modules from Farnell? If you're not going to buy them from Farnell, where are you going to buy them from?

Re:Have FTDI kicked-off round 2 of the clone wars? by Tomte on Monday February 01, 2016 @08:49AM (#11011673)
I'm not disputing that you can easily get a counterfeit chip without it being your fault.

But why do you simply accept that? Have you even complained to Farnell?

Read the sundry web forums, very few people complain to their distributor. Everyone bitches about FTDI.

And that's what's really bugging me here. In the FTDI case the problem has obviously gotten out of hand. I can totally understand that the manufacturer wants to get tougher.

Re:Have FTDI kicked-off round 2 of the clone wars? by raphman_ on Monday February 01, 2016 @09:02AM (#11011754)
The problem is that FTDI ist taking it out on the customer, and hoping that "the FTDI driver bricked my board" somehow gets those customers to (1) realize that the problem is a counterfeit chip, (2) work their way up the supply chain until they find the party at fault (or get the supply chain to take care of the problem), and (3) manage to get a replacement for the product which uses genuine FTDI chips.

Why not just pop up a small window with a message "Hey, this product seems to contain counterfeit chips. Please tell us where you bought it so that _we_ can take care of the problem."

Re:Have FTDI kicked-off round 2 of the clone wars? by jnky on Monday February 01, 2016 @10:49AM (#11012402)
Just FYI, but displaying a Message Box from the context of a Windows device driver is not trivial and would add significant overhead to the driver.

I'd prefer it if FTDI weren't utter douchebags around this whole ordeal. I understand they have to make money, but since when is it a problem when devices are API-compatible with existing device drivers? As far as I'm concerned, this is a rather common and generally beneficial thing.

Re:Have FTDI kicked-off round 2 of the clone wars? by hueving on Monday February 01, 2016 @10:56AM (#11012461)
That's because FTDI has taken the approach of fucking as many people that didn't actually do anything wrong to somehow punish the counterfeiters. How does bricking something sold 4 years ago do anything helpful?
Re:Have FTDI kicked-off round 2 of the clone wars? by kabdib on Monday February 01, 2016 @08:39AM (#11011619)
Frankly, I don't think about counterfeit chips. If I did, and had a meaningful way to determine a counterfeit, then I'd not buy products with them.

But there's no way for an end-user to do this. And since they're the ones being punished by the bricking (any supply chain movement is a second-order effect driven by upset customers), and since I lack the technical capacity to identify a knock-off, then my most rational course of action is to avoid anything that might be counterfeit . . . by insisting on a totally different chip.

Not having FTDI in your design is a feature. And that's easily checked by plugging the device into a USB port and looking at the VID/PID.

FTDI has a death wish.

Re:Have FTDI kicked-off round 2 of the clone wars? by jdietrich on Monday February 01, 2016 @09:03AM (#11011763)
Nobody has total control over their supply chain. Substitution of counterfeit parts can happen at many points in the supply chain. Until resilient die-level traceability is universal, the best you can hope for is to minimise the risk.

FTDI do not provide any useful traceability systems. Rather than providing their customers with a reliable means to identify genuine parts, they have hugely increased the risk posed to their customers by counterfeit parts.

http://www.publicintegrity.org/2011/11/07/7323/counterfeit-c... http://spectrum.ieee.org/computing/hardware/counterfeit-chip...

Re:Have FTDI kicked-off round 2 of the clone wars? by kefka on Monday February 01, 2016 @08:31AM (#11011578)
But that's the rub: FTDI doesn't have any good process to identify fake chips, other than "install it in your board and wait and see". And if you've tried ordering from FTDI themselves, they routinely have shortages and backlogs going from 3-6 months out. Meaning you lean on reputable places like Mouser or Digikey.

And you also glossed over "FTDI compatible" chips. They too exist, and do not claim to be a legit FTDI (the markings on the case are what make a counterfeit, not the underlying silicon). Yet the FTDI driver disables them all, in one way or another.

You assume I'm talking purely about the hobbyist market: anyone who pays for a usb FTDI adapter at $1.50 should know it's likely a counterfeit.

Re:Have FTDI kicked-off round 2 of the clone wars? by daphreak on Monday February 01, 2016 @08:42AM (#11011631)
3-6 months is not that bad. Especially if it means you can guarantee that you get genuine parts. Most real projects can easily handle this lead time for production.
Re:Have FTDI kicked-off round 2 of the clone wars? by DanBC on Monday February 01, 2016 @09:01AM (#11011740)
6 months would be tolerated for a hard to get specialist part - a particular connector that's made in smaller batches twice a year, perhaps.

But for a normal part? It's lousy.

Re:Have FTDI kicked-off round 2 of the clone wars? by rhinoceraptor on Monday February 01, 2016 @08:30AM (#11011575)
And what if the fake FTDI is in a piece of medical equipment keeping someone alive? Surely FTDI has no culpability in bricking it, they should have gotten a grip on their supply chain!
Re:Have FTDI kicked-off round 2 of the clone wars? by kefka on Monday February 01, 2016 @09:13AM (#11011809)
That's the wrong question to ask.

Instead, 'How do I know that the devices I bought up to 3 years ago don't have a "detected counterfeit" chip and get nuked by a future FTDI driver update?'

Or, 'How do I keep from getting malware and other bad actor software in via Windows Updates?'

Re:Have FTDI kicked-off round 2 of the clone wars? by Tomte on Monday February 01, 2016 @08:33AM (#11011597)
Yes, they should have. And tested the function. The applicable standards actually demand it.

Safety development is serious business. You cannot justify your "I want everything as cheap as possible, counterfeit or not" attitude with some hallucinated safety risk.

Re:Have FTDI kicked-off round 2 of the clone wars? by rhinoceraptor on Monday February 01, 2016 @08:53AM (#11011700)
The problem I'm pointing out is the device makes it through QA, testing and is in production in a hospital. Then, one day a Windows driver update comes down and bricks the device.

That is indefensible, regardless of whether it's right or wrong to use counterfeit parts.

Re:Have FTDI kicked-off round 2 of the clone wars? by nradov on Monday February 01, 2016 @09:27AM (#11011883)
Medical devices don't run Windows Update. Changes are tested and controlled, exactly for scenarios like this.
Re:Have FTDI kicked-off round 2 of the clone wars? by chillingeffect on Monday February 01, 2016 @10:11AM (#11012108)
The fact that your have/had net downvotes for your comment demonstrates that consensus reality is not always reality.

As an embedded medical devices engineer, I know you are exactly right. For safety-critical devices, control of the supply chain is beyond good practice, it's required by federal law, precisely so bad actors can't interfere with peoples' lives. The long list of requirements around approving a vendor are tiring and result in epic stories like the $500 toilet seat, etc., but they prevent stuff like this FTDI debacle from happening. You know it's going to be a toilet seat when the box arrives.

The medical device industry is a massive cultural shift from the majority of the HN crowd (e.g. startups and cloud services). In the world of PCs and servers, disruption is, literally, the name of the game. In IEC62304 land though, everything has to be on the straight, narrow and predictable path. This is why medical devices are expensive, laggy and not very startup-compatible. The FDA's system is actually more secure than Europe's. Take that, socialized medicine!

So it's not always wild and fun here in medical-land. It's like being a cop vs. a cowboy. You're not paid to sling your guns, but to de-escalate. But thank the conservative practices next time your elderly or congenitally defective family members found themselves in the hospital!

Re:Have FTDI kicked-off round 2 of the clone wars? by kalleboo on Monday February 01, 2016 @02:31PM (#11014665)
I can only imagine the military has the same stringent requirements on their vendors, yet it still happens there http://abcnews.go.com/Blotter/counterfeit-chinese-parts-slip...
Re:Have FTDI kicked-off round 2 of the clone wars? by kalleboo on Monday February 01, 2016 @02:30PM (#11014652)
Re:Have FTDI kicked-off round 2 of the clone wars? by tremon on Monday February 01, 2016 @11:47AM (#11012916)
The medical device doesn't need to run Windows Update. The medical device might still be bricked if the computer accessing the device runs Windows Update.

We already have fitness devices that can communicate with a PC. Is it really unthinkable that the next batch of medical devices will do something similar? For example, a wearable sensor to continuously measure your insulin levels?

Will you be using an FTDI chip in such consumer devices?

Re:Have FTDI kicked-off round 2 of the clone wars? by Lagged2Death on Monday February 01, 2016 @02:56PM (#11014875)
The medical device doesn't need to run Windows Update. The medical device might still be bricked if the computer accessing the device runs Windows Update.

Yes, exactly.

I used to work at a sub-contractor for a large manufacturer of medical equipment, and all the systems we dealt with were like that. The device would run a very small embedded OS but would have a serial port for talking to a PC for firmware development, firmware updates, logging, diagnostics, etc. Their older stuff used real hardware serial ports, but their newer systems (~6-7 years ago now) were moving to virtual USB/FTDI serial ports, with an FTDI chip included in the embedded system.

These tricky FTDI drivers would absolutely have the potential to brick and/or alter the operation of such a device; it's not far-fetched or a flight of fancy at all.

I have a special interest in this thread/issue because I have recently been contacted by that manufacturer regarding one of these FTDI-using systems which has recently begun to exhibit new problems. I haven't started looking into that yet, and I don't know where it will lead, but I'll have to bear in mind the possibility of deliberate driver-based monkey-business now.

Re:Have FTDI kicked-off round 2 of the clone wars? by malka on Monday February 01, 2016 @09:19AM (#11011837)
I'd say the problem is pushing updates to a life critical system without testing it on a pre-production system that will behave the exact same way.
Re:Have FTDI kicked-off round 2 of the clone wars? by fennecfoxen on Monday February 01, 2016 @10:19AM (#11012184)
> a pre-production system that will behave the exact same way

So what if all of your preproduction systems have a genuine FTDI chip in them, and many of your millions of deployed production systems have counterfeits that you don't know about? That'll be exciting.

Quality is a matter of defense in depth. You can't rely on your preproduction system running the exact same way as production. You strive for consistency, but ultimately each chip in each computer is a unique physical object made with different silicon crystals, and being identical is impossible. You want a system that's robust against a variety of subtle differences.

FTDI is just doing their small bit to make everything just a little more fragile and unpredictable where their chips are concerned, and as such their products ought to be shunned.

Re:Have FTDI kicked-off round 2 of the clone wars? by malka on Monday February 01, 2016 @11:12AM (#11012585)
I see your point, and, well, agree with it. The only opposition I could see would be to make sure all your system incorporating FDTI chips comes from the same batch, and to change them all when you change one. Not realistically doable imo.
Re:Have FTDI kicked-off round 2 of the clone wars? by HeyLaughingBoy on Monday February 01, 2016 @04:20PM (#11015559)
It's entirely doable and manufacturers of safety critical equipment the world over are doing it daily and recording the batch information Just In Case.
Re:Have FTDI kicked-off round 2 of the clone wars? by HeyLaughingBoy on Monday February 01, 2016 @04:18PM (#11015535)
That'll be exciting.

I agree with your premise, but in this case, for a medical device it would also be a Quality Systems failure. Any change in a component is scrutinized and analyzed for impact. You have no idea how many times (as a software dev for medical devices), I've had someone from Manufacturing or Purchasing come to ask me "if we change (trivial part X) to a new vendor, what can go wrong and how can we test it?" as a precursor to executing a Change Plan.

I'm not kidding. Even something as seemingly trivial as changing the type of paint used on an enclosure can trigger weeks or months of analysis depending on what's in that enclosure.

Re:Have FTDI kicked-off round 2 of the clone wars? by Tomte on Monday February 01, 2016 @09:24AM (#11011864)
Again: installing non-validated Windows updates is indefensible!

Safety-critical and safety-related applications are a totally different game than what most HNers are used to!

Re:Have FTDI kicked-off round 2 of the clone wars? by rhinoceraptor on Monday February 01, 2016 @09:31AM (#11011898)
I don't disagree, it's also indefensible to ship counterfeit parts. But it's likely to happen anyways.

It's clearly unsafe to not wear a seatbelt, but it's also clearly wrong to build a device into cars that kills occupants that get in a crash if they aren't wearing one.

Re:Have FTDI kicked-off round 2 of the clone wars? by kefka on Monday February 01, 2016 @08:40AM (#11011625)
> Yes, they should have. And tested the function. The applicable standards actually demand it.

I agree. I don't want to put counterfeits in my product.

Now, show me FTDI's standards documents that indicate how to identify and test for fakes. (Hint: they don't)

Re:Have FTDI kicked-off round 2 of the clone wars? by Tomte on Monday February 01, 2016 @08:44AM (#11011635)
In this case it's obviously simple: you are not allowed to update drivers unless you have validated them.

As far as I understand, this "behaviour" is totally deterministic and certain. You immediately notice the problem in any test system.

Don't believe that safety-critical devices are allowed to install some drivers willy-nilly!

Re:Have FTDI kicked-off round 2 of the clone wars? by jerf on Monday February 01, 2016 @09:19AM (#11011839)
"you are not allowed to update drivers unless you have validated them."

And when QA validates them on a set of systems that happen to be legit and ships it to systems that happen to have counterfeits?

You seem to be arguing in this thread with a false dilemma between EITHER we must accept counterfeiting OR we must brick the chips, but there are in between measures that are way safer.

Prior art: Several versions of Windows have been able to detect if they were "genuine". Non-genuine windows did not brick their machine, or destroy themselves. Quick googling suggests it blocks you from getting updates, and pops up with links to a page on Microsoft where you could properly license it with some discount. That exact solution may not apply here, but there are options other than destroying hardware that is carrying your name.

(I mean, this isn't even good for FTDI... how many customers will never find out about this and simply learn that "FTDI chips spontaneously die a lot"? Not the brand experience I'm looking for!)

Re:Have FTDI kicked-off round 2 of the clone wars? by creshal on Monday February 01, 2016 @08:58AM (#11011725)
> As far as I understand, this "behaviour" is totally deterministic and certain. You immediately notice the problem in any test system.

FTDI does not provide any guide lines to third parties how to test whether their chips are counterfeit or not.

The only way to test it is trying to use it with FTDI's Windows driver, and FTDI randomly changes the both the detection criteria, and the action done on detecting a counterfeit chip – sometimes it bricks them, sometimes it sends gibberish, you have no way of knowing beforehand. FTDI doesn't even guarantee that this behaviour is deterministic!

Re:Have FTDI kicked-off round 2 of the clone wars? by drzaiusapelord on Monday February 01, 2016 @10:37AM (#11012311)
>Hobbyist electronics people are strange.

Popular moralism in a nutshell. "I can steal from big companies because they're evil! But if someone even samples one of my songs I'm lawyering up!"

There's something almost psychopathic about how people just rationalize amorality because the entity they're attacking from is "big" or "different" Or "the other." I guess the mp3 wars are over with Google Music, Spotify, Apple Music, etc but for a long time it was creepy to hear these justifications from otherwise normal adults. It made you think, "What if they see me and my interests as 'the other'? What would they do without a conscience to stop them?"

Re:Have FTDI kicked-off round 2 of the clone wars? by quadrature on Monday February 01, 2016 @08:28AM (#11011567)
Well, that's kind of what FTDI is trying to accomplish. You won't buy from the same supplier again after getting a counterfeit.
Re:Have FTDI kicked-off round 2 of the clone wars? by deelowe on Monday February 01, 2016 @10:17AM (#11012164)
LOL! Don't buy from farnell, mouser, or digikey? They've all had issues with fakes getting into the supply. Are we supposed to just up and boycott them all? And, once I've exhausted the top 3 distributors, now where do I go? I'm sure I can just call up FTDI and order 10k chips on a weekly basis right?

Actually, that's a pretty good idea. Anyone who works in supply chain, switch to ordering directly from FTDI. They'll soon realize the folly in this decision.

Re:Have FTDI kicked-off round 2 of the clone wars? by st3v3r on Monday February 01, 2016 @01:59PM (#11014301)
It's their responsibility to make sure that they're selling me what they promised me. If they can't do that, then maybe I shouldn't be purchasing from them.
Re:Have FTDI kicked-off round 2 of the clone wars? by deelowe on Monday February 01, 2016 @02:08PM (#11014403)
Ok fine. Link me the spec that allows me to determine whether an FTDI part is genuine and I'll gladly inform the supply chain, manufacturing and testing teams I work with to reference that spec moving forward. Until then, we have to avoid anything with an FTDI brand as there's no way to be sure. Going with whomever I think is the most reputable supplier and then praying my products aren't bricked at some point in the future isn't the solution.
Re:Have FTDI kicked-off round 2 of the clone wars? by st3v3r on Monday February 01, 2016 @04:50PM (#11015781)
Again, that is all their responsibility.
Re:Have FTDI kicked-off round 2 of the clone wars? by deelowe on Monday February 01, 2016 @08:17PM (#11017072)
Who is this they you are referring to? If ftdi doesn't provide specs, resellers can't create them out of thin air. My only option is to not buy ftdi.
Re:Have FTDI kicked-off round 2 of the clone wars? by quadrature on Monday February 01, 2016 @06:21PM (#11016477)
I didn't say it was effective, its a tricky problem to curb.
Re:Have FTDI kicked-off round 2 of the clone wars? by kefka on Monday February 01, 2016 @08:35AM (#11011603)
Or better yet, you just stay away from FTDI, knowing that their capriciousness can lead to customers' devices being bricked or disabled in various ways.

The CH340G is really a nice and cheap chip. And I'm starting to see it in more established American designs too (as opposed to Chinese designed electronics).

Re:Have FTDI kicked-off round 2 of the clone wars? by gvb on Monday February 01, 2016 @09:44AM (#11011955)
For FTDI, their battle is becoming (has become?) a Pyrrhic victory.

https://en.wikipedia.org/wiki/Pyrrhic_victory

Re:Have FTDI kicked-off round 2 of the clone wars? by lultimouomo on Monday February 01, 2016 @08:34AM (#11011600)
I probably won't by FTDI either!