Re: IOKit - USB from Cocoa
Re: IOKit - USB from Cocoa
- Subject: Re: IOKit - USB from Cocoa
- From: Kazutaka "Zak" Sawa <email@hidden>
- Date: Thu, 22 Apr 2004 08:32:38 +0900
Hi Gerriet,
In the normal style, USB modem should be handled by the kernel
extension(KEXT). And MacOS X has a default KEXT for USB modem. So
you can use it via POSIX.
IOUSBCompositeDevice is just like a wildcard for USB devices.
I think this means that the modem you have is not standard USB modem.
That's why the modem is recognized just only IOUSBCompositeDevice.
In other word, the USB modem you have will have a vender-unique
protocol to access. So if you work with the USB modem, you need to
write a vender unique protocol via USB pipe directly. There maybe
some USB pipe and you can access it via IOKit.
The problem is ... there is no information what and how you should
send via USB pipe. Because it's the spec of that vender (or the USB
modem chip vender).
If you still think to develop, I think you should write a KEXT for
the USB modem. I think there are some source code for the standerd
USB modem KEXT in Darwin cvs. Of cource you need to get the
information of the vender unique spec.
Good luck
Zak
>
I have a Cocoa App which tries to use a USB-modem (ZyXEL Omni 56k
>
Plus). This modem does not come with a OS X driver.
>
>
The modem uses something called IOUSBCompositeDevice.
>
When the modem gets a call, my app can read RING, RING, ... (there is
>
some formating information around the data which I get from
>
ReadPipeAsync() ).
>
>
But I cannot write to the modem. Well, I can write, but I do not get
>
any reaction, nor any error code. Probably the data to be written needs
>
some formating information around it - but what?
>
>
Can someone point me to some documentation about this
>
IOUSBCompositeDevice?
--
## from Kazutaka 'Zak' Sawa (ZakLab) ##
## e-Mail:
mailto:email@hidden ##
##
http://homepage1.nifty.com/~zaklab/ ##
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.