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: Getting Vendor ID of a Device.



At 10:59 AM -0800 3/18/05, mohamed rafi wrote:
Hi,

I have a USB Device, which when I connect to the mac
shows only the Vendor Name, and the Product ID of the
Device in System Profiler. It does not show the Vendor
ID. How can I get the Vendor ID for the same ?

Also, can I pass the Vendor Name as well in the
dictionary, when I am trying to do a
IOServiceGetMatchingServices(master_device_port,
matchingDict, &devIter), or should it be only Vendor
ID ?

If you have a USB device attached, you can use the IOServiceMatching call to find the USB device, then ask for the idVendor property. As for the vendor name, IIRC, ASP has a hard-coded table which equates the vendor name with the ID. however, you may find that there is a "USB Vendor Name" property associated with the device, which you can search for. Take a look at the IORegistry page of USBProber to see what properties a specific device has associated with it.
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
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: 
 >Getting Vendor ID of a Device. (From: mohamed rafi <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.