I am writing an application which opens USB devices and transfer some data. I am following the UsbSimpleNotificationExample from the Developer Examples. The example adds notifications and assigns callbacks for a unique Vendor ID and Product ID. But for my application I have multiple PIDs and a single VIDs. How can I add a dictionary entry with single Vid and more than one PIDs? If I use CFDictionarySetValue with 2 PIDs, the 2nd Pid call overwrites the first dictionary value. I am not able to match IOServiceAddMatchingNotification callbacks properly due to this. What are the other options I can try?
A:
If you don't get an answer here, I suggest you use Apple's mailing list for USB, here: http://lists.apple.com/mailman/listinfo/usb
Thomas Tempelmann
2008-12-08 16:49:58
+1
A:
Why don't you try only adding the vendor ID?
Then your matches should include all the product IDs.
Rhythmic Fistman
2009-02-07 02:13:18
This is correct. Broaden your search and iterate through the results.
Azeem.Butt
2009-10-19 00:53:20