Menu

Device not opened for exclusive access

Help
csp1103
2007-10-03
2012-12-06
  • csp1103

    csp1103 - 2007-10-03

    I am trying to test a USB headset on a intel-based Mac running OS X. I am running the USB View demo app, and can see the device....but when I open the USB Test Application for that device (or for any USB device, it seems) and click the 'Open Device' button, I get a USBException 'Device not opened for exclusive access'. I've googled around for a solution but have yet to come across one....if anybody has any idea how to figure out whats keeping the device from opening and how to fix the problem, please let me know.

    Regards,

    Chris

     
    • csp1103

      csp1103 - 2007-10-08

      Gave up on a Java-based solution to reading the USB port....never could figure out how to solve the exclusive access problem. We decided to go with RealBasic with a plugin that reads human interface devices....worked like a charm!

       
    • Euclides Arcoverde

      I got the following USBException when trying to open a device on a intel-based Mac OS X: LibusbJava.ust_set_configuration: usb_set_configuration(SetConfiguration): device not opened for exclusive access.

      I observed a similar error (not the same) in Ubuntu 7.10 regarding access permission when trying to call the function usb_set_configuration(). I've found some references that point to add a new rule file for udev in order to give permission for a group and it worked fine for me.

      Does someone have any idea how can we solve this problem for Mac OS X ?

      Regards,
      -- Euclides

       
      • andi

        andi - 2008-05-03

        Hi

        Unfortunately I don't know the solution to the problem. You may get some more help on the libusb mailing list http://sourceforge.net/mail/?group_id=1674 as this question is not a problem related to libusbjava but the underlying libusb.

        Regards, Spandi

         

Log in to post a comment.