usbpid installation and usage

i had no linux so i installed wsl in my windows 11,
to access usb devcies through programs inside wsl then we must install usbpid and an attach busid to wsl while wsl is running

below is full steps explained

install in windows

enter following command in cmd in windwos 11

winget install usbipd

now it is installed ,
next after connecting device to computer by usb we need busid of connected nokia n900.
to get it enter following command in cmd

usbipd list

if no nokia device (Nokia BB5 ADL Loader USB Phone Parent) appeard in that list, that means n900 must be connected when switched off while holding "U" button

now again enter same command in wsl

now you can see following in wsl terminal

Connected:
BUSID  VID:PID    DEVICE                                     STATE
1-1    0421:0105  Nokia BB5 ADL Loader USB Phone Parent      Shared
1-2    0c45:8603  USB Input Device                           Not shared

here you can see busid of nokia device is "1-1"
next we should make it sharable, that means it willbe disconnected from windows and will ber able to attach to wsl

usbipd bind --busid 1-1

next we should attach it to running wsl
to make wsl running i opened a cmd and enterd "wsl" in it,
and enterd following command in another cmd terminal so it willbe attached to wsl

usbipd attach --wsl --busid 1-1

now the usb device connected to computer willbe avaialble in wsl .
you can check it by following command.

lsusb

now usb devices list will appear in wsl terminal, thats it,

Powered by Forestry.md