Menu

Devices not found in linux

Help
anderruiz
2008-02-27
2012-12-06
  • anderruiz

    anderruiz - 2008-02-27

    I'm using libusb-java to detect usb devices on linux and windows. I've tested on windows and everything looks fine, but I'm having problems with UsbView in linux. All Usb busses work ok and I can view them, but when I plug an usb device the library doesn't create it.

    The call to the method LibusbJava.usb_find_devices() returns 1, so the device is detected but I think that something is not properly configured but I can't guess what it is. I've run the script as root but there is no difference.

    The output with LibusbTest.cpp is:

    usb_set_debug: Setting debugging level to 255 (on)
    initialize libraray, find busses and devices
    usb_os_init: Found USB VFS at /dev/bus/usb
    usb_os_find_busses: Found 005
    usb_os_find_busses: Found 004
    usb_os_find_busses: Found 003
    usb_os_find_busses: Found 002
    usb_os_find_busses: Found 001
    usb_os_find_busses: Skipping non bus directory devices
    usb_os_find_devices: Found 004 on 005
    skipped 1 class/vendor specific interface descriptors
    usb_os_find_devices: Found 001 on 005
    error obtaining child information: Inappropriate ioctl for device
    usb_os_find_devices: Found 001 on 004
    usb_os_find_devices: Found 001 on 003
    usb_os_find_devices: Found 002 on 002
    skipped 1 class/vendor specific interface descriptors
    usb_os_find_devices: Found 001 on 002
    error obtaining child information: Inappropriate ioctl for device
    usb_os_find_devices: Found 001 on 001
    log devices...
    Search for device with idVendor 0x8235 and idProduct 0x200
    Found bus 005
    Found bus 004
    Found bus 003
    Found bus 002
    Found bus 001
    sh: PAUSE: command not found

    But with TestLibUsbJava there is no output because the five hubs have "null" devices and "null" rootDev. Any ideas?

    Thanks in advance

    Ander

     
    • andi

      andi - 2008-03-09

      Hi

      To me this looks like a permission problem which is not related to libusbjava. Maybe the guys on the libusb mailing list can help you.

      Regards, Spandi

       
    • anderruiz

      anderruiz - 2008-03-10

      But how can it be a permissions problem if I'm running the script as root??

       
    • andi

      andi - 2008-03-10

      I missed the root sentence. It sometimes happen to be a problem.
      Anyway, does your device show up in the output of the test program? From the output above this doesn't look like. It should look something like the output in this post https://sourceforge.net/forum/forum.php?thread_id=1784658&forum_id=660151
      If that's not the case it is definitely a libusb problem. Libusbjava creates its bus, device and descriptor objects based on the information provided by libusb.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.