Mailing Lists: Apple Mailing Lists

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

Re: Re: Question for libusb in MacOS X



Hi Fernando Urbina,

     But infact the libusb used IOKit. And I debug my code that it get a error of "another process has device opened for exclusive access" when USBInterfaceOpen called.

can you give me other advice? 
Tanks in advance.
	
	BTW. I debug the sample project in MacOS 10.3.7 /Developer/Examples/IOKit/usb/USBSimple Example/
and get the same error 0xE00002C5 in calling USBInterfaceOpen 


B.rgds,
SYZ
2005-12-08

Xiamen YeaLink Network Technology Co.,Ltd.
E-Mail:email@hidden

======= 2005-12-08 00:19:09  Original Message =======

>Apple did not write libusb and hence we don't support it.  My guess  
>is that perhaps some other driver has claimed your interface.
>
>Good luck,
>
>--
>Fernando Urbina
>USB Technology Team
>Apple Computer, Inc.
>
>On Dec 7, 2005, at 1:37 AM, SYZ wrote:
>
>> Hi all,
>>
>> 	I use libusb under MacOS X10.3.7 and gcc version is 3.3 20030304  
>> (Apple Computer, Inc. build 1666)
>>
>> 	I used a USB Phone named P1K. And I used libusb in below order,  
>> and I get a error in claiming interface.
>> and cann't read data by usb_interrupt_read, but I can write data to  
>> it by usb_control_msg successfully.
>> 		usb_init();
>> 		usb_set_debug(4);
>> 		usb_find_busses();
>> 		usb_find_devices();
>> 		usb_get_busses();
>> 		usb_open(pUSBPhone);
>> 		usb_claim_interface(hPhone, 0x03); // ERROR here
>> 		usb_close(hPhone);
>> 	can you tell me what the trouble with my operaction, or how can I  
>> use libusb in a right way?
>>
>> 	attachment is my example code and debug result. pls read it and  
>> give me some advice.
>> 	If you need any infomation more about my environment, please tell  
>> me ASAP.
>>
>> 	We are also on quite a tight schedule so if you could get back to  
>> me as soon as possible that would be great.
>>
>> B.rgds,
>> SYZ
>> 2005-12-05
>>
>> Xiamen YeaLink Network Technology Co.,Ltd.
>> MSN:email@hidden
>> E-Mail:email@hidden
>> <simpUSB.cpp>
>> <debug.log>
>>  _______________________________________________
>> 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
>
>

= = = = = = = = = = = = = = = = = = = =



 _______________________________________________
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.