LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   question about libusb?!! (https://www.linuxquestions.org/questions/linux-software-2/question-about-libusb-534019/)

nesta 03-02-2007 03:28 PM

question about libusb?!!
 
hi all,
i m using SUSE 10.2 distro.
libusb is installed by default @ my labtop.

the strange thing that when i run the simple test program which is
libusbtest.c in the folder of tests i got the following output:

Code:

Dev#1 OHCI Hsost controller
Dev#2 Broadcom Corp - Acer Module
Dev#1 OHCI Host controller
Dev#1 EHCI Host controller
Dev#3 USB20 Camera

Although i did not connect any device to any of my usb ports.
Does anyone know how can this happen?
or do i have these devices internally on my labtop?


thanks in advance.

colucix 03-04-2007 10:12 AM

Quote:

Originally Posted by nesta
Although i did not connect any device to any of my usb ports.
Does anyone know how can this happen?
or do i have these devices internally on my labtop?

The second you've spoken about!
It lists the USB controllers mounted on the mother board (the EHCI and OHCI stuff), the integrated camera and some other device maybe related to networking.
On my SuSE 10.2 I installed the utility hwinfo, a simple program that lists results from the hardware detection library. Here is what it gives about usb stuff on my laptop (without USB devices attached, except for wireless usb mouse)
Code:

> hwinfo --usb

03: USB 00.0: 10a00 Hub
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_7_if0
  Unique ID: k4bc.svvaPNStqwC
  SysFS ID: /devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
  SysFS BusID: 1-0:1.0
  Hardware Class: hub
  Model: "Linux 2.6.18.2-34-default ehci_hcd EHCI Host Controller"
  Hotplug: USB
  Vendor: "Linux 2.6.18.2-34-default ehci_hcd"
  Device: "EHCI Host Controller"
  Revision: "2.06"
  Serial ID: "0000:00:1d.7"
  Driver: "hub"
  Driver Modules: "usbcore"
  Speed: 480 Mbps
  Module Alias: "usb:v0000p0000d0206dc09dsc00dp01ic09isc00ip00"
  Driver Info #0:
    Driver Status: usbcore is active
    Driver Activation Cmd: "modprobe usbcore"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

04: USB 00.0: 10a00 Hub
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_0_if0
  Unique ID: pBe4.+SlVeP8a1eC
  SysFS ID: /devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0
  SysFS BusID: 2-0:1.0
  Hardware Class: hub
  Model: "Linux 2.6.18.2-34-default uhci_hcd UHCI Host Controller"
  Hotplug: USB
  Vendor: "Linux 2.6.18.2-34-default uhci_hcd"
  Device: "UHCI Host Controller"
  Revision: "2.06"
  Serial ID: "0000:00:1d.0"
  Driver: "hub"
  Driver Modules: "usbcore"
  Speed: 12 Mbps
  Module Alias: "usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00"
  Driver Info #0:
    Driver Status: usbcore is active
    Driver Activation Cmd: "modprobe usbcore"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

05: USB 00.0: 10a00 Hub
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_if0
  Unique ID: uIhY.mBq40AxH_v3
  SysFS ID: /devices/pci0000:00/0000:00:1d.1/usb3/3-0:1.0
  SysFS BusID: 3-0:1.0
  Hardware Class: hub
  Model: "Linux 2.6.18.2-34-default uhci_hcd UHCI Host Controller"
  Hotplug: USB
  Vendor: "Linux 2.6.18.2-34-default uhci_hcd"
  Device: "UHCI Host Controller"
  Revision: "2.06"
  Serial ID: "0000:00:1d.1"
  Driver: "hub"
  Driver Modules: "usbcore"
  Speed: 12 Mbps
  Module Alias: "usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00"
  Driver Info #0:
    Driver Status: usbcore is active
    Driver Activation Cmd: "modprobe usbcore"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

06: USB 00.0: 10a00 Hub
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_2_if0
  Unique ID: zPk0.XwufNwj+wBB
  SysFS ID: /devices/pci0000:00/0000:00:1d.2/usb4/4-0:1.0
  SysFS BusID: 4-0:1.0
  Hardware Class: hub
  Model: "Linux 2.6.18.2-34-default uhci_hcd UHCI Host Controller"
  Hotplug: USB
  Vendor: "Linux 2.6.18.2-34-default uhci_hcd"
  Device: "UHCI Host Controller"
  Revision: "2.06"
  Serial ID: "0000:00:1d.2"
  Driver: "hub"
  Driver Modules: "usbcore"
  Speed: 12 Mbps
  Module Alias: "usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00"
  Driver Info #0:
    Driver Status: usbcore is active
    Driver Activation Cmd: "modprobe usbcore"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

07: USB 00.0: 10a00 Hub
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_3_if0
  Unique ID: 2XnU.IfzElgWjtT2
  SysFS ID: /devices/pci0000:00/0000:00:1d.3/usb5/5-0:1.0
  SysFS BusID: 5-0:1.0
  Hardware Class: hub
  Model: "Linux 2.6.18.2-34-default uhci_hcd UHCI Host Controller"
  Hotplug: USB
  Vendor: "Linux 2.6.18.2-34-default uhci_hcd"
  Device: "UHCI Host Controller"
  Revision: "2.06"
  Serial ID: "0000:00:1d.3"
  Driver: "hub"
  Driver Modules: "usbcore"
  Speed: 12 Mbps
  Module Alias: "usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00"
  Driver Info #0:
    Driver Status: usbcore is active
    Driver Activation Cmd: "modprobe usbcore"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

08: USB 00.0: 0000 Unclassified device
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_ac8_c002_noserial_if0
  Unique ID: zFuK.gis0z58GZE6
  Parent ID: k4bc.svvaPNStqwC
  SysFS ID: /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0
  SysFS BusID: 1-8:1.0
  Hardware Class: unknown
  Model: "Vimicro USB2.0 Web Camera"
  Hotplug: USB
  Vendor: usb 0x0ac8 "Vimicro Corp."
  Device: usb 0xc002 "USB2.0 Web Camera"
  Revision: "1.00"
  Speed: 480 Mbps
  Module Alias: "usb:v0AC8pC002d0100dcFFdscFFdpFFicFFisc00ip00"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #3 (Hub)

09: USB 00.0: 10503 USB Mouse
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_5fe_11_noserial_if0
  Unique ID: KRJj.IcjLUUSGEl3
  Parent ID: uIhY.mBq40AxH_v3
  SysFS ID: /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0
  SysFS BusID: 3-1:1.0
  Hardware Class: mouse
  Model: "Chic Browser Mouse"
  Hotplug: USB
  Vendor: usb 0x05fe "Chic Technology Corp."
  Device: usb 0x0011 "Browser Mouse"
  Revision: "1.01"
  Compatible to: int 0x0210 0x0015
  Driver: "usbhid"
  Driver Modules: "usbhid"
  Device File: /dev/input/mice (/dev/input/mouse2)
  Device Files: /dev/input/mice, /dev/input/mouse2, /dev/input/event4, /dev/input/by-id/usb-Wireless_Mouse_Wireless_Mouse-event-mouse, /dev/input/by-path/pci-0000:00:1d.1-usb-0:1:1.0-event-mouse, /dev/input/by-id/usb-Wireless_Mouse_Wireless_Mouse-mouse, /dev/input/by-path/pci-0000:00:1d.1-usb-0:1:1.0-mouse
  Device Number: char 13:63 (char 13:34)
  Speed: 1.5 Mbps
  Module Alias: "usb:v05FEp0011d0101dc00dsc00dp00ic03isc01ip02"
  Driver Info #0:
    Buttons: 5
    Wheels: 1
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #5 (Hub)

Edit: The second you've spoken about! was a famous italian gag in the early 90's. Everyone in Italy used this expression for at least one decade! :)


All times are GMT -5. The time now is 07:10 PM.