Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to attach USB device but WSL distribution cannot see serial port? #1074

Open
Jibun-no-Kage opened this issue Nov 27, 2024 · 3 comments
Open

Comments

@Jibun-no-Kage
Copy link

Jibun-no-Kage commented Nov 27, 2024

I was able to attached the USB device to WSL just fine...

PS C:\Users\jibun> usbipd list
Connected:
BUSID  VID:PID    DEVICE                                                        STATE
2-2    1a86:7523  USB-SERIAL CH340 (COM7)                         Attached
# lsusb
Bus 001 Device 002: ID 1a86:7523 QinHeng Electronics CH340 serial converter

In WSL distirbution is this right?

# dmesg
[   96.639128] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)
[   96.639710] vhci_hcd vhci_hcd.0: devid(131074) speed(2) speed_str(full-speed)
[   96.640077] vhci_hcd vhci_hcd.0: Device attached
[   96.910447] vhci_hcd: vhci_device speed not set
[   96.980600] usb 1-1: new full-speed USB device number 2 using vhci_hcd
[   97.060497] vhci_hcd: vhci_device speed not set
[   97.130531] usb 1-1: SetAddress Request (2) to port 0
[   97.174031] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice=81.33
[   97.174486] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   97.174754] usb 1-1: Product: USB Serial

But I see no serial port device? Expecting /dev/ttyUSB0 or something comparable no?

# find /dev | grep -i tty | grep -i usb
[No Output]
@Jibun-no-Kage
Copy link
Author

Was expecting more to be reported by dmesg.... For example on a Linux system...

[ 4097.193782] usbcore: registered new interface driver usbserial_generic
[ 4097.193802] usbserial: USB Serial support registered for generic
[ 4097.194265] usbcore: registered new interface driver ch341
[ 4097.194278] usbserial: USB Serial support registered for ch341-uart
[ 4097.194340] ch341 6-1.3:1.0: ch341-uart converter detected
[ 4097.195539] usb 6-1.3: ch341-uart converter now attached to ttyUSB0

@dorssel
Copy link
Owner

dorssel commented Dec 1, 2024

It looks like your WSL kernel does not have a driver for this device. What is the output of:

zcat /proc/config.gz | grep CH341

If it says CONFIG_USB_SERIAL_CH341=m, then the driver is a module and you may have to load it manually with modprobe...

@Jibun-no-Kage
Copy link
Author

Jibun-no-Kage commented Dec 1, 2024

The instructions make no reference to this issue? But yes, appears module based...

# zcat /proc/config.gz | grep CH341
CONFIG_USB_SERIAL_CH341=m

Loading...

# modprobe ch341
# lsmod | grep ch341
ch341                  20480  0
usbserial              36864  1 ch341

I will test again, see if this resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants