DPS5315 USB Interface under Linux
I have a DPS5315 from ELV which I bought as a kit together with the optional USB module. However, I had problems using the USB module under Linux. Although the module is based on a CP2102, for which drivers are already available in the kernel, the module did not create a device file, e.g. /dev/ttyUSB0
.
This is probably due to the changed vendor/product ID. The following command helped:
# echo 18ef e031 | sudo tee /sys/bus/usb-serial/drivers/cp210x/new_id
This tells the driver to use devices with the vendor/product ID 18ef:e031
.
To make this persistent, I created another udev rule:
/etc/udev/rules.d/99-dps3515-usb.rules
ACTION==“add”, SUBSYSTEM==“usb”, ATTR{idVendor}==“18ef”, ATTR{idProduct}==“e031”, RUN+="/bin/sh -c ‘echo 18ef e031 > /sys/bus/usb-serial/drivers/cp210x/new_id’”
I also had to load the cp210x
module:
# modprobe cp210x
and to make this persistent as well:
/etc/modules-load.d/cp210x.conf
cp210x
Then either reboot or reload the udev rules:
# udevadm control --reload-rules
# udevadm trigger