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: Porting timexdr to Mac.



Hello all,
I have been working to compile /Developer/Examples/Kernel/IOKit/usb/VendorSpecific Driver. It did not create an executable. I managed to get out executable out by making a new project and adding in the pieces form . . . /VendorSpecific Driver. It successfully loads into the kernel. When I plug in my device the driver is loaded but then is goes away and the HID drivers takes control over my device. I assume the executable fails. Does any one have a simple example like . . /VendorSpecific Driver that they are sure compiles correctly?


Thank you,
Pat

On Feb 21, at 1:40 AM, Rob Yepez wrote:

Hi Pat,

What does ioreg output for the Interface?

From what I recall the Timex heart rate monitor presents itself as a vendor specific HID device. If so, the exclusive access issue you are experiencing is the IOUSBHIDDriver matching to IOUSBInterface. You can choose to use the HID Manager talk to the device, or setup a code-less kext that prevents the IOUSBHIDDriver from matching on the interface. There are plenty of messages in the archives that explain how to accomplish this.

- Rob

On Feb 20, 2006, at 6:43 PM, Pat Murray wrote:

I am trying to port timexdr, http://developer.berlios.de/projects/timexdr/, to a mac. A Timex Data Recorder is an EEPROM USB device from timex that records GPS and Heart Rate Data. My problem is with usb_claim_interface or as it is called in IOKit framework USBInterfaceOpen and/or USBInterfaceOpenSeize. I can not figure out how to take control of the interface or the device. I get a-536870203 or - 0xE00002C5 error ((USBInterfaceOpen): another process has device opened for exclusive access). How can I find out what process has control of it? Since it is an EEPROM does the kernel just take control of it? How can I get data off it?

Thank you.
USB Probe Logger says:
33.379 [1] IOUSBInterface[0x2a82400]::handleOpen failing because super::handleOpen failed (someone already has it open)
33.379 [1] IOUSBInterface[0x2a82400]::open super::open failed (0x0)


output from "ioreg -l" for the device:
| | | +-o Timex Data Recorder@3b100000 <class IOUSBDevice, registered, matched, active, busy 0, retain count 9>
| | | | {
| | | | "PortNum" = 1
| | | | "IOGeneralInterest" = ("_IOServiceInterestNotifier is not serializable")
| | | | "Device Speed" = 0
| | | | "iSerialNumber" = 0
| | | | "bNumConfigurations" = 1
| | | | "IOUserClientClass" = "IOUSBDeviceUserClient"
| | | | "bDeviceClass" = 0
| | | | "USB Product Name" = "Timex Data Recorder"
| | | | "iManufacturer" = 1
| | | | "USB Vendor Name" = "Timex Corporation"
| | | | "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/ PlugIns/IOUSBLib.bundle"}
| | | | "bcdDevice" = 256
| | | | "bDeviceSubClass" = 0
| | | | "iProduct" = 2
| | | | "sessionID" = 241291698245461
| | | | "bMaxPacketSize0" = 8
| | | | "locationID" = 990904320
| | | | "Bus Power Available" = 250
| | | | "idProduct" = 50944
| | | | "USB Address" = 2
| | | | "bDeviceProtocol" = 0
| | | | "idVendor" = 3266
| | | | }



_______________________________________________ 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
References: 
 >Porting timexdr to Mac. (From: Pat Murray <email@hidden>)
 >Re: Porting timexdr to Mac. (From: Rob Yepez <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.