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: A rather specific newbie question



refer to the serial port example at
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/Serial/SerialPortSample.htm it has everything you are looking for


What you typically do is use the IOKit API's in your app to find services (AKA the kext) of type kIOSerialBSDTypeKey or kIOSerialBSDModemType then you can query the service for the kIOCalloutDeviceKey (which is the /dev/tty name)

Roger



At 4:29 PM -0700 10/1/03, Nick Sayer wrote:
Hi. This may not be the exact correct list to ask, but it is about a USB device, so I thought I'd try here.

I have an application that talks to a device built around a usb-to-serial adapter. The device has the USB-to-serial thing embedded, so if there were a way to know which kext was behind a particular /dev/usbserial-* device, I'd be able to filter out any serial ports that I know could not possibly be the device I want.

Is there an easy way to query a /dev/ node to determine its kext or, alternatively, ask the kext which devices it controls?

Thanks in advance.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >A rather specific newbie question (From: Nick Sayer <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.