cp210x-program icon indicating copy to clipboard operation
cp210x-program copied to clipboard

Readme should advise on how to distinguish CP210{1..4}

Open mk-pmb opened this issue 1 year ago • 2 comments

First, thanks for your effort! The tables with the vendor and product IDs all list CP210{1..4} the same, so the readme should advise on how to distinguish them. Even a negative acknowledgement like

There's currently no known way to distinguish them via software, so you have to rely on the seller's product descriptions and packaging.

would help the reader save time in research.

mk-pmb avatar Apr 21 '24 15:04 mk-pmb

when you do lsusb, you get something like this:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 008: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 003 Device 009: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

and I suppose 10c4:ea60 is a specific model, e.g. CP2102

here are other model refs:


product SILABS	CP2102		0xea60	SILABS USB UART
product SILABS	CP210X_2	0xea61	CP210x Serial
product SILABS	CP210X_3	0xea70	CP210x Serial
product SILABS	CP210X_4	0xea80	CP210x Serial

there is also this:

https://github.com/VCTLabs/cp210x-program/blob/c1fd7a3b734d7db49af301aa5ce88cc3d239f92d/cp210x/cp210x.py#L298-L306

adminy avatar May 02 '24 09:05 adminy

Yes, my lsusb has the exact same entry, ID 10c4:ea60 Silicon Labs CP210x UART Bridge, so maybe that get_part_number could work for me. How do I use that?

mk-pmb avatar May 04 '24 01:05 mk-pmb