Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error accessing USB device when run with multiple applications.



Hi,
 
I am developing user level driver for "USB BULK device" on Mac OS X 10.4.5 using IOKitFramework, CoreFoundation, XCode 2.2.
 
The primary requirement is that Multiple applications can have access to the device at a time. I am encountering following situation when run with multiple applications:
 
///////
The driver works fine with the single app but when I start 2nd application, and return back to first application, the driver is able to
 
1. Open the device, but fails to Open the Interface i.e
  USBInterfaceOpen returns 2c0 error which means "No such device"
 
2. And when I revert back to first application , the driver fails to Open the device, i.e
  USBDeviceOpen returns error 2c5 which means "exclusive access and device already open"
/////////
 
I am using USBDeviceOpen to open the device and USBInterfaceOpen to open the interface.
 
Thinking that there may be problem of synchronization, i also applied lock and unlock but still the problem remains the same.
 
also, i tried with USBDeviceOpenSeize and USBInterfaceOpenSeize, but still the problem remains the same.
 
 
What can be the issue ? All suggestions / comments are welcome.
Thanks and Regards,
Rohit Dhamija
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.