Kernel module for CH341 USB-I2C adaptor

Hello everybody,

can anybody tell me, how to use a CH341 USB-I2C adaptor in dietpi?
I’m using DietPi v9.1.1 on a device model RPi B (armv6l).

I’ve already modprobed the i2c-dev and ch341 modules before connecting the adaptor to one of the USB ports, but in the /dev tree only the internal i2c-1 is showing up.

The adaptor itself shows up in the debug messages:

[855727.220757] usb 1-1.3.1: new full-speed USB device number 12 using dwc_otg
[855727.353170] usb 1-1.3.1: New USB device found, idVendor=1a86, idProduct=5512, bcdDevice= 3.04
[855727.353252] usb 1-1.3.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

The adaptor itself is working at another computer with another distro. The USB port at the Pi is OK, too.

Thanks a lot!

is it plugged into the otg port?
Might be able to build it with this?

There is also this

Hi WarHawk,

I’ve made and installed the mentioned driver.
With the ch34x module loaded, the adaptor now seems to be recognized correctly:

[979592.599750] usbcore: registered new interface driver ch34x
[979592.611057] usbserial: USB Serial support registered for ch34x

It also seems to use usbserial


Module Size Used by
ch34x 8850 0
i2c_dev 6915 0
usbserial 30953 1 ch34x

But, in the device tree nothing changed, the only i2c device is the internal i2c-1 .
Do I need a udev rule for this?

unsure…but go to the “Linux” section here…see if the commands help
You might have to add the user to the dialout group then reboot…

does lsusb show the device mapped to a USB port/device?

Other than that…I’m at a loss