Why is the device not matching to the built-in CDC driver? That’s fairly generic and matches on class etc, I’ve stuck a fairly large number of CDC devices into the machine and they’ve pretty much all worked out of the box. If it’s a CDC device that would be the best solution.
If not, you have the io_service / io_object, create an IOUSBInterfaceInterface with it and access the endpoints directly. (https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/USBDevInterfaces.html <https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/USBDevInterfaces.html>) > On 25 Nov 2014, at 8:44 pm, Richard Hood <[email protected]> wrote: > > as I mentioned in my post, the device is not matching to the built-in CDC > driver. > therefore, it was not showing up in /dev > that’s why I wrote a codeless matching kext to keep it from being opened by > the generic USB driver. > > if it is possible I would like to open this as a user-space driver. > if that is not possible I suppose I could try having my codeless kext > redirect the device to the CDC driver. > which might make it accessible via /dev. > (though I am not entirely sure how to get that to work. > do I need to redirect the whole device or can I just redirect the CDC > Comm/Data interfaces? > (it is a composite device)) > > still . . . a user-space driver would be preferred. > > > On 25/11/2014 09:23, "Kustaa Nyholm" <email@hidden> wrote: > >> On 25/11/2014 07:18, "Richard Hood" <email@hidden> wrote: >> >>> can someone point me towards the APIs I should use to open a user-space >>> CDC driver? >> >> Are you talking about CDC ACM class? >> >> If so, that is accessible as standard Unix device at '/dev/tty.*' using >> standard >> Unix file IO... >> >> br Kusti >> > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com This email sent to [email protected]
