Skip to content
Advertisement

updating product/vendor id on Raspberry Pi (CP210X)

Running “uname -a” on my Raspberry Pi will yield the following: Linux tm-gw 4.4.14-v7+ #896 SMP Sat Jul 2 15:09:43 BST 2016 armv7l GNU/Linux

My problem is that I have a USB device which vendor and product ID isn’t registered in CP210x.c file, which – again – means that even though it can be found, the raspberry will not allow communication with it (/dev/ttyUSB0 doesn’t exist).

I have tried to download the kernel, add the ID pair to the cp210x.c file, rebuild and install, which works. (dmesg will show “usb 1-1.4: cp210x converter now attached to ttyUSB0”)

Since I have to install this program on more than one raspberry it takes too long, so I’d like to know if it is possible to inject the usb ID’s without recompiling the kernel ??

I did try to take the cp210x.ko file from the kernel I build and install it to a new raspberry by typing “sudo insmod cp210x.ko” but that didn’ work.

/Karsten

Advertisement

Answer

Thanks to Ian Abbott for the solution.

Run “sudo modprobe cp210x” then

sudo sh -c ‘echo 10c4 84cc > /sys/bus/usb-serial/drivers/cp210x/new_id’

When plugging in the device it works 🙂

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement