I have several usb devices lying around my table, I can identify them, as my modem, webcam, mouse and so on...
But, Linux impliments another method to identify all the devices connected to it, lets learn a little bit more about it
Press Alt + F2 and type "gnome-terminal"
type lsusb and press enter, my output of the command is as follows
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
Bus 002 Device 002: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 003 Device 002: ID 0a5c:219c Broadcom Corp.
Bus 005 Device 003: ID 12d1:1010 Huawei Technologies Co., Ltd. ETS2252+ CDMA Fixed Wireless Terminal
Note the two blocks of numbers after the word ID eg."1d6b:0001", here 1d6b is the vendor ID and 0001 is the product ID
finding the vendor and product ID of devices is useful for finding a message about a particular device using "dmesg | grep" command.
It is also useful for adding driver modules to the kernel, eg. note the last line of the command output,
"Bus 005 Device 003: ID 12d1:1010 Huawei Technologies Co., Ltd. ETS2252+ CDMA Fixed Wireless Terminal" it is my modem,
how do I add its driver to the kernel?
Being root, you can type "modprobe usbserial vendor=0x12d1 product=0x1010" and press enter. Please note that, you have to replace the vendor and product IDs with that of your own devices and prefix them with "0x"
It can be also used by the "usb_modeswitch" command, the default vendor and product IDs that have to be given in the command,
refers to the same IDs given by the "lsusb" command
But, Linux impliments another method to identify all the devices connected to it, lets learn a little bit more about it
Press Alt + F2 and type "gnome-terminal"
type lsusb and press enter, my output of the command is as follows
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
Bus 002 Device 002: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 003 Device 002: ID 0a5c:219c Broadcom Corp.
Bus 005 Device 003: ID 12d1:1010 Huawei Technologies Co., Ltd. ETS2252+ CDMA Fixed Wireless Terminal
Note the two blocks of numbers after the word ID eg."1d6b:0001", here 1d6b is the vendor ID and 0001 is the product ID
finding the vendor and product ID of devices is useful for finding a message about a particular device using "dmesg | grep" command.
It is also useful for adding driver modules to the kernel, eg. note the last line of the command output,
"Bus 005 Device 003: ID 12d1:1010 Huawei Technologies Co., Ltd. ETS2252+ CDMA Fixed Wireless Terminal" it is my modem,
how do I add its driver to the kernel?
Being root, you can type "modprobe usbserial vendor=0x12d1 product=0x1010" and press enter. Please note that, you have to replace the vendor and product IDs with that of your own devices and prefix them with "0x"
It can be also used by the "usb_modeswitch" command, the default vendor and product IDs that have to be given in the command,
refers to the same IDs given by the "lsusb" command
No comments:
Post a Comment