tags:

views:

590

answers:

2

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
+1  A: 

Why don't you try only adding the vendor ID?

Then your matches should include all the product IDs.

Rhythmic Fistman
This is correct. Broaden your search and iterate through the results.
Azeem.Butt