• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re[2]: IOKit - USB from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: IOKit - USB from Cocoa


  • Subject: Re[2]: IOKit - USB from Cocoa
  • From: Kazutaka "Zak" Sawa <email@hidden>
  • Date: Thu, 22 Apr 2004 10:36:05 +0900

Hi James,

Yes, you are right. But if the USB device is recognized "ONLY"
IOUSBCompositeDevice, mostly I think it's vender unique device in my
experience. If the device has standard USB modem interface in it, I
beleive it should be recognized IOUSBCompositeDevice with child node
for USB modem.

One other thing is that some devices are recognized
IOUSBCompositeDevice even if they have just one functionality. So I
understand IOUSBCompositeDevice does not mean 2 or more functionality
in that device under MacOS X.

In my experience, many USB devices that were released very early (
like an first iMac) were vender unique device and were recognized
IOUSBCompositeDevice.

That's why I said "IOUSBCompositeDevice only" is just like a wildcard.
It means there is no standard functionality.


Zak


>Usually the term "composite" device means that a USB device has more
>than one USB node in it. For example a USB printer/fax machine might
>have one device as a printer and one device as a fax machine - two
>separate devices, in one box with one interface. Hence the term
>"composite" device. Usually such devices require a "composite driver"
>- a driver capable of recognizing and communicating with each
>discreet device in the one box.
>
>Check the Mindshare USB book and the USB spec - they both talk about
>composite devices.
>
>James Masasaki
>Orbital Launch & Lift, Inc.
>The MacOS X privileged helper tool experts
>http://www.orbitallaunch.com
>
>At 8:32 AM +0900 4/22/04, Kazutaka "Zak" Sawa wrote:
>>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.
>_______________________________________________
>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.


--

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


References: 
 >IOKit - USB from Cocoa (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: IOKit - USB from Cocoa (From: Kazutaka "Zak" Sawa <email@hidden>)
 >Re: IOKit - USB from Cocoa (From: OL&L Dev 2 <email@hidden>)

  • Prev by Date: Re: IOKit - USB from Cocoa
  • Next by Date: Re: Custom Views and Dragging ... [ with attitude ]
  • Previous by thread: Re: IOKit - USB from Cocoa
  • Next by thread: Custom Views and Dragging ...
  • Index(es):
    • Date
    • Thread