Author Topic: Using Chinese controllers (WCH etc.) in production volumes?  (Read 4119 times)

0 Members and 2 Guests are viewing this topic.

Offline sgnkaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
We use the new series of tiny-AVRs to make our products, in a few-100k quantity range. Nothing too fancy required from the chip itself, we just use the ADC, a few timers, USART etc, but the product stays on 24x7 continuously. We've been using Microchip for probably 15 years now and while their parts are good and reliable, they're pretty expensive for what they are.

I've been looking closely at all the new Chinese microcontrollers, especially the RISC-V ones from WCH (CH32 line). They seem pretty solid and feature-rich for a good price, and I've been considering these for using in our products. What does worry me is reliability. While we don't require any sort of medical/automotive grade specs, we do need our microcontrollers to not conk out on a whim. I know WCH isn't a no-name brand and they sell a lot of chips (CH340 comes to mind), but I would like get some outside opinions on this. And yes, buying the $0.5 part from Microchip instead of the $0.2 WCH part won't bankrupt us, but an extra $50k isn't nothing for a company of our size.

What are your thoughts - would/do you guys use these parts in actual products and not just hobby projects?
Also, what would be a good way to try and test these out for reliability failures?
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 9375
  • Country: gb
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #1 on: July 27, 2023, 12:37:21 pm »
An important consideration if you want reliable longer term supply is the target market for the part. If its made primarily for consumer applications it will only be available for as long as its selling well. This is pretty much the case for all vendors. If its an industrially oriented part, from a vendor known in that market, they will generally do their best to serve customers at EOL. e.g. arranging lifetime buys before cancellation, producing infrequent batches, etc.
 

Offline sgnkaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #2 on: July 27, 2023, 12:57:25 pm »
Agreed, and I've asked WCH about a longevity guarantee - waiting for a reply.
However, given that the code isn't super complicated and that we're fairly nimble with development and moving to production, this isn't the biggest concern for me right now. We also stock up on microcontrollers typically for a year or so in advance. Saved my butt during the great chip shortage of 2021 - we made it through with mere days' worth of ICs left, down to our last reel when we got our IC orders after a ~50 week delay.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4463
  • Country: nz
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #3 on: July 27, 2023, 01:52:36 pm »
Agreed, and I've asked WCH about a longevity guarantee - waiting for a reply.
However, given that the code isn't super complicated and that we're fairly nimble with development and moving to production, this isn't the biggest concern for me right now. We also stock up on microcontrollers typically for a year or so in advance. Saved my butt during the great chip shortage of 2021 - we made it through with mere days' worth of ICs left, down to our last reel when we got our IC orders after a ~50 week delay.

Assuming you're buying at least 3000 chips at a time (that's how many fit on one wafer for typical microcontrollers), WCH can have the fab pull out the existing masks and run one (or more) wafers at any time. The masks are never thrown out.

Assuming they're not doing a run regularly anyway.
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 9375
  • Country: gb
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #4 on: July 27, 2023, 01:55:51 pm »
Agreed, and I've asked WCH about a longevity guarantee - waiting for a reply.
However, given that the code isn't super complicated and that we're fairly nimble with development and moving to production, this isn't the biggest concern for me right now. We also stock up on microcontrollers typically for a year or so in advance. Saved my butt during the great chip shortage of 2021 - we made it through with mere days' worth of ICs left, down to our last reel when we got our IC orders after a ~50 week delay.

Assuming you're buying at least 3000 chips at a time (that's how many fit on one wafer for typical microcontrollers), WCH can have the fab pull out the existing masks and run one (or more) wafers at any time. The masks are never thrown out.

Assuming they're not doing a run regularly anyway.
The costs are way higher for a single wafer, and trying to get an A&T house to process such a small batch of dies can be a big problem.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13969
  • Country: gb
    • Mike's Electric Stuff
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #5 on: July 27, 2023, 02:24:15 pm »
Do they have a viable production programming solution, or a service to supply chips pre-programmed?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 529
  • Country: sk
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #6 on: July 27, 2023, 04:37:14 pm »
Agreed, and I've asked WCH about a longevity guarantee - waiting for a reply.
However, given that the code isn't super complicated and that we're fairly nimble with development and moving to production, this isn't the biggest concern for me right now. We also stock up on microcontrollers typically for a year or so in advance. Saved my butt during the great chip shortage of 2021 - we made it through with mere days' worth of ICs left, down to our last reel when we got our IC orders after a ~50 week delay.

Assuming you're buying at least 3000 chips at a time (that's how many fit on one wafer for typical microcontrollers), WCH can have the fab pull out the existing masks and run one (or more) wafers at any time. The masks are never thrown out.

Assuming they're not doing a run regularly anyway.
The costs are way higher for a single wafer, and trying to get an A&T house to process such a small batch of dies can be a big problem.
Back more decades than I'm willing to admit, I attended a conference, where a researcher from an unnamed semi giant unemotionally explained to a crowd of drooling scientists that they always process a whole batch of wafers, typically 25, at once, as that's how the furnaces are designed; although for research they use the "cheap" 4" wafers instead of the production 6" (that gives away the decade). He explained that there's no way you use the furnaces with less wafers as that would spoil the painstakingly adjusted temperature&gas-flow profiles. So, they do the process with 25 wafers, then take the middle one, chip off 1 square centimeter of it to make the tests, and throw the rest away.

In our (admittedly cheap) lab we were using 2" wafers (not Si but GaAs, that's difference too) for the important experiments, and we still had some stock of 1.5" wafers to use for some less important stuff...

JW

PS. Masksets don't get thrown away but processes for those masksets do get phased out.
« Last Edit: July 27, 2023, 04:39:23 pm by wek »
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 9375
  • Country: gb
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #7 on: July 27, 2023, 06:37:47 pm »
Agreed, and I've asked WCH about a longevity guarantee - waiting for a reply.
However, given that the code isn't super complicated and that we're fairly nimble with development and moving to production, this isn't the biggest concern for me right now. We also stock up on microcontrollers typically for a year or so in advance. Saved my butt during the great chip shortage of 2021 - we made it through with mere days' worth of ICs left, down to our last reel when we got our IC orders after a ~50 week delay.

Assuming you're buying at least 3000 chips at a time (that's how many fit on one wafer for typical microcontrollers), WCH can have the fab pull out the existing masks and run one (or more) wafers at any time. The masks are never thrown out.

Assuming they're not doing a run regularly anyway.
The costs are way higher for a single wafer, and trying to get an A&T house to process such a small batch of dies can be a big problem.
Back more decades than I'm willing to admit, I attended a conference, where a researcher from an unnamed semi giant unemotionally explained to a crowd of drooling scientists that they always process a whole batch of wafers, typically 25, at once, as that's how the furnaces are designed; although for research they use the "cheap" 4" wafers instead of the production 6" (that gives away the decade). He explained that there's no way you use the furnaces with less wafers as that would spoil the painstakingly adjusted temperature&gas-flow profiles. So, they do the process with 25 wafers, then take the middle one, chip off 1 square centimeter of it to make the tests, and throw the rest away.

In our (admittedly cheap) lab we were using 2" wafers (not Si but GaAs, that's difference too) for the important experiments, and we still had some stock of 1.5" wafers to use for some less important stuff...

JW

PS. Masksets don't get thrown away but processes for those masksets do get phased out.
You are confusing wafers in a production batch with what those wafers contain. Its normal practice for each step of the process to have a mix of wafer types. Obviously they have to be wafers being subjected to the exact same processing, but every wafer might contain a different design. Mixing one or more niche wafers into a large run of another is perfectly normal practice. Its usually for test wafers - either testing a new design, or experimenting with techniques - but it can be for niche production requirements. The problem is not really making a niche wafer. Its doing small scale assembly and test. Most of the test wafers don't need to go through a normal assembly and test house. They are handled as specialist items.

Masks don't phase out, but processes do. Most masks are only suitable for making devices in one or two specific fabs, running the right process with the right equipment. If that process is shut down at all fabs, your masks are useless.
« Last Edit: July 27, 2023, 06:46:51 pm by coppice »
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 529
  • Country: sk
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #8 on: July 27, 2023, 06:53:22 pm »
> Its normal practice for each step of the process to have a mix of wafer types.

I believe you, especially these days when production is highly automated. Back then, things were more manual and tracking a mixed batch might've been more laborious.

Besides, the unnamed chip giant tended to churn out a small number of designs in huge volumes anyway...

Nonetheless, I can imagine that costs for small volume add up at all points. Also, IIRC, OP mentioned cutting cents and a tiny chip...

JW
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #9 on: July 27, 2023, 07:49:24 pm »
We use the new series of tiny-AVRs to make our products, in a few-100k quantity range. Nothing too fancy required from the chip itself, we just use the ADC, a few timers, USART etc, but the product stays on 24x7 continuously. We've been using Microchip for probably 15 years now and while their parts are good and reliable, they're pretty expensive for what they are.

I've been looking closely at all the new Chinese microcontrollers, especially the RISC-V ones from WCH (CH32 line). They seem pretty solid and feature-rich for a good price, and I've been considering these for using in our products. What does worry me is reliability. While we don't require any sort of medical/automotive grade specs, we do need our microcontrollers to not conk out on a whim. I know WCH isn't a no-name brand and they sell a lot of chips (CH340 comes to mind), but I would like get some outside opinions on this. And yes, buying the $0.5 part from Microchip instead of the $0.2 WCH part won't bankrupt us, but an extra $50k isn't nothing for a company of our size.

What are your thoughts - would/do you guys use these parts in actual products and not just hobby projects?
Also, what would be a good way to try and test these out for reliability failures?

The CH340 is exactly the reason why I will not include any of their parts in a design I build.  I started using USB/serial port cables with the CH340 chip exclusively in our test fixtures.  But the guys running the test sets complained they had to reboot the computers periodically, around once per hour or so.  The problem was traced to the CH340.  We switched to a much more expensive name brand cable and the crashes stopped.  Seems they are crap at designing drivers for their chips.  I can't say if the chips were a problem or not, but others reported the drivers as a problem.

Why would I want to use any of their chips in a product I'm going to put my name on?
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Offline zilp

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: de
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #10 on: July 27, 2023, 08:03:32 pm »
I can't say if the chips were a problem or not, but others reported the drivers as a problem.

I mean, no idea what you were doing with them, but I have a bunch of stuff running on ch340s 24/7, with years of non-stop uptime, and never had them crash (or cause any other noticeable problems, for that matter), so my guess would be that it's a driver problem (this is on Linux, so not affected by their driver quality).
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7176
  • Country: pl
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #11 on: July 27, 2023, 08:12:59 pm »
Okay, but if you need to use Windows for any reason then there are (probably) no 3rd party drivers and you are at the mercy of the vendor.

If you put the chip in a product, some of your customers may want to use Windows too and have the same problems.


Regarding CH341 and Linux, I observed a different oddity: in a loopback test, characters were being buffered somewhere and appeared on the screen in groups. I don't know if it's the driver or the chip, the receiving or transmitting side, and if it can be disabled. It simply took me by surprise, I have never seen anything like that with other chips, I had a work to do at that time so I picked a UART cable with different chip.
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #12 on: July 27, 2023, 08:39:22 pm »
I can't say if the chips were a problem or not, but others reported the drivers as a problem.

I mean, no idea what you were doing with them, but I have a bunch of stuff running on ch340s 24/7, with years of non-stop uptime, and never had them crash (or cause any other noticeable problems, for that matter), so my guess would be that it's a driver problem (this is on Linux, so not affected by their driver quality).

Then who writes the driver for the CH340 under Linux?
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Offline zilp

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: de
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #13 on: July 27, 2023, 09:14:17 pm »
Then who writes the driver for the CH340 under Linux?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/usb/serial/ch341.c

Someone wanted to use the chip or a device containing the chip or something, so they wrote the driver, presumably.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4463
  • Country: nz
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #14 on: July 27, 2023, 11:01:05 pm »
Masks don't phase out, but processes do. Most masks are only suitable for making devices in one or two specific fabs, running the right process with the right equipment. If that process is shut down at all fabs, your masks are useless.

Sure, but processes are used for a long time.

A year ago, TSMC asked customers to do new designs on 28nm or smaller, as they didn't intend to increase capacity of their 40nm or 65nm lines.

But they're not shutting them down!

It's no problem to do 180nm still, and that's from 1998 -- 25 years and counting.

I believe other fabs still have and even specialise in even larger nodes.
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #15 on: July 28, 2023, 12:08:41 am »
Then who writes the driver for the CH340 under Linux?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/usb/serial/ch341.c

Someone wanted to use the chip or a device containing the chip or something, so they wrote the driver, presumably.

It would be a neat trick, since the data sheet doesn't have adequate info.  Maybe they got factory support?
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Offline sgnkaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #16 on: July 28, 2023, 04:51:30 am »
*looks on helplessly as discussion goes off topic...*
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4083
  • Country: gb
  • Doing electronics since the 1960s...
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #17 on: July 28, 2023, 09:11:45 am »
The short answer to the OP is: consider the political risk :)

However, from here
https://www.eevblog.com/forum/chat/china-ban-on-germanium-and-gallium/
it looks like nobody is using LEDs ;)

I've been doing business with china for 20-30 years (even used to get whole products made there) and nowadays it is largely a fly-by-night gangster culture. Many firms there don't give a sh*t about anything, are happy to shaft you over, go bust every few years (and then somebody contacts you offering to sell you your property which they stole from the closed factory), they steal your tooling, if they can't steal it they will smash it up, etc.

Before somebody posts the usual comment ("same as the West then") it is actually nothing like the West. People here are not a whole lot more honest but they have a far more limited scope for criminal behaviour without repercussions. If something blows up here, you can go there. If something blows up in china, yeah you get a flight there, get off the plane, meet up with an interpreter, go to some totally obscure address, floor 1234, suite 5678, and there you find... an empty room. You ask around and are told there was never any company there, just one guy who was buying the stuff from ... nobody knows, another building, floor 3455, suite 9876, and they don't know nuffink because they were never told who the customer (you) was.

I buy cables and PCBs from there. On about the 5th PCB company in 10 years. The others did various totally crazy things like destroying €400 tooling after it was not used for 1 year, the one person in 500 who could speak English leaving (people leave every 6-12 months)...

I buy enough cables for 2 years, and consider it good luck if the company is still there for the next batch :)

If you buy a few hundred k a year, that is quite a lot. You must be making lots of $$$. If they are dirt cheap, buy enough for a few years. I am sitting on a 5-10 year stock of a Hitachi H8; essential for a key product. And out of production for > 10 years.

« Last Edit: July 28, 2023, 09:15:32 am by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline zilp

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: de
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #18 on: July 28, 2023, 09:16:42 am »
Okay, but if you need to use Windows for any reason then there are (probably) no 3rd party drivers and you are at the mercy of the vendor.

Yeah, all I'm saying is that it's maybe not saying much about the design quality of their chips.

Regarding CH341 and Linux, I observed a different oddity: in a loopback test, characters were being buffered somewhere and appeared on the screen in groups. I don't know if it's the driver or the chip, the receiving or transmitting side, and if it can be disabled. It simply took me by surprise, I have never seen anything like that with other chips, I had a work to do at that time so I picked a UART cable with different chip.

That sounds a bit like df7b16d1c00e, maybe? Though I don't think that got into a release?!

I have looped back CH340s before and haven't seen anything weird, so I'd guess that was either some driver regression like the above (which is a bit of a smell WRT the chip, though ...), or possibly a chip revision that wasn't supported by the driver yet?
 

Offline zilp

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: de
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #19 on: July 28, 2023, 09:28:17 am »
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/usb/serial/ch341.c

Someone wanted to use the chip or a device containing the chip or something, so they wrote the driver, presumably.

It would be a neat trick, since the data sheet doesn't have adequate info.  Maybe they got factory support?

More likely, they sniffed the USB traffic of the Windows driver to reverse engineer the protocol. I mean, it's possible that WCH helped them out with info, but more often than not, manufacturers aren't interested and reverse engineering is the way to go.
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #20 on: July 28, 2023, 09:33:29 am »
Okay, but if you need to use Windows for any reason then there are (probably) no 3rd party drivers and you are at the mercy of the vendor.

Yeah, all I'm saying is that it's maybe not saying much about the design quality of their chips.

Regarding CH341 and Linux, I observed a different oddity: in a loopback test, characters were being buffered somewhere and appeared on the screen in groups. I don't know if it's the driver or the chip, the receiving or transmitting side, and if it can be disabled. It simply took me by surprise, I have never seen anything like that with other chips, I had a work to do at that time so I picked a UART cable with different chip.

That sounds a bit like df7b16d1c00e, maybe? Though I don't think that got into a release?!

I have looped back CH340s before and haven't seen anything weird, so I'd guess that was either some driver regression like the above (which is a bit of a smell WRT the chip, though ...), or possibly a chip revision that wasn't supported by the driver yet?

You can wave your arms as much as you like, but if it doesn't work, it doesn't work.  I don't give a damn what the root cause is.  The problem is with the CH340/341 and I fixed it by changing to a different brand... a brand with a reputation.
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Offline zilp

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: de
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #21 on: July 28, 2023, 10:05:03 am »
You can wave your arms as much as you like, but if it doesn't work, it doesn't work.  I don't give a damn what the root cause is.  The problem is with the CH340/341 and I fixed it by changing to a different brand... a brand with a reputation.

So, next time the Linux driver for your currently preferred chip has a bug you throw away those chips, too? Yeah, that makes sense!
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4463
  • Country: nz
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #22 on: July 28, 2023, 10:37:13 am »
If something blows up in china, yeah you get a flight there, get off the plane, meet up with an interpreter, go to some totally obscure address, floor 1234, suite 5678, and there you find... an empty room. You ask around and are told there was never any company there, just one guy who was buying the stuff from ... nobody knows, another building, floor 3455, suite 9876, and they don't know nuffink because they were never told who the customer (you) was.

You can find Arthur & Del Boy outfits in every country. There are also serious companies in China, doing their best to serve their customers well and earn an honest buck in the process.
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #23 on: July 28, 2023, 10:38:50 am »
You can wave your arms as much as you like, but if it doesn't work, it doesn't work.  I don't give a damn what the root cause is.  The problem is with the CH340/341 and I fixed it by changing to a different brand... a brand with a reputation.

So, next time the Linux driver for your currently preferred chip has a bug you throw away those chips, too? Yeah, that makes sense!

If the driver can't be fixed, or is going to be a problem because the defective driver is dominant in the wild, then yes.  I need devices that work.

If there is an easy path to upgrade, then fine, that's workable.  With the CH340/341, I had the latest driver from WCN and it was nearly impossible to get anyone to talk to me about the problem.  It's not a company well known for its support. 

Is this not obvious to you?  What part of this is hard to understand?
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Offline gnuarm

  • Super Contributor
  • ***
  • Posts: 2247
  • Country: pr
Re: Using Chinese controllers (WCH etc.) in production volumes?
« Reply #24 on: July 28, 2023, 10:39:46 am »
If something blows up in china, yeah you get a flight there, get off the plane, meet up with an interpreter, go to some totally obscure address, floor 1234, suite 5678, and there you find... an empty room. You ask around and are told there was never any company there, just one guy who was buying the stuff from ... nobody knows, another building, floor 3455, suite 9876, and they don't know nuffink because they were never told who the customer (you) was.

You can find Arthur & Del Boy outfits in every country. There are also serious companies in China, doing their best to serve their customers well and earn an honest buck in the process.

Please let us know which two these are. 
Rick C.  --  Puerto Rico is not a country... It's part of the USA
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf