Alexander, a few quick Google searches for things like "usbkit mac os x" did not yield anything. What is USBKit?
--David On Sun, Jul 17, 2016 at 1:20 AM, Alexander Coers <[email protected]> wrote: > Sorry for late reply, > > but before using any 3rd party lib you can also query USBKit for your device > and store the location ID. > After that you can query USBKit for all connected modems and compare the > location IDs. > > This may not be the most elegant way but it is simple and works :-) > > Regards, > Alexander > > > Am 27.06.2016 um 03:45 schrieb Rick Mann: > >> >>> On Jun 26, 2016, at 18:34 , David Grayson <[email protected]> wrote: >>> >>> Rick, that is a feature of this library: >>> >>> https://github.com/pololu/libusbp >> >> Cool. Could you point me to the specific code that does it, or at least the >> file that contains it? I'll take a look through the mac code later, but I'm >> guessing you know where it is. >> >>> >>> --David >>> >>> On Jun 26, 2016 4:31 PM, "Rick Mann" <[email protected]> wrote: >>> I have an IonMC RoboClaw 2x160 A motor controller. It has a USB interface. >>> When I plug it in, it shows up in USBProber as the following device. Its >>> product string is "USB Roboclaw 2x160A". But the serial port device that >>> appears is "/dev/usbmodem1411". >>> >>> Is there any way for me to find the serial device based on the product >>> string of the USB device that connects? Alternatively, is there a way to >>> determine the USB device corresponding to a serial port device I get from >>> IOServiceAddMatchingNotification(), using a kIOSerialBSDServiceValue >>> matching dictionary? >>> >>> Thanks. >>> >>> Full Speed device @ 16 (0x14100000): >>> ............................................. Communication device: "USB >>> Roboclaw 2x160A" >>> Port Information: 0x001a >>> Not Captive >>> Attached to Root Hub >>> External Device >>> Connected >>> Enabled >>> Number Of Endpoints (includes EP0): >>> Total Endpoints for Configuration 1 (current): 4 >>> Device Descriptor >>> Descriptor Version Number: 0x0200 >>> Device Class: 2 (Communication) >>> Device Subclass: 0 >>> Device Protocol: 0 >>> Device MaxPacketSize: 64 >>> Device VendorID/ProductID: 0x03EB/0x2404 (Atmel Corporation) >>> Device Version Number: 0x0100 >>> Number of Configurations: 1 >>> Manufacturer String: 1 (none) >>> Product String: 2 "USB Roboclaw 2x160A" >>> Serial Number String: 0 (none) >>> Configuration Descriptor >>> Length (and contents): 62 >>> Number of Interfaces: 2 >>> Configuration Value: 1 >>> Attributes: 0x40 (self-powered) >>> MaxPower: 100 ma >>> Interface #0 - Communications-Control >>> Alternate Setting 0 >>> Number of Endpoints 1 >>> Interface Class: 2 (Communications-Control) >>> Interface Subclass; 2 >>> Interface Protocol: 0 >>> Comm Class Header Functional Descriptor >>> Comm Class Abstract Control Management Functional Descriptor >>> Comm Class Union Functional Descriptor >>> Endpoint 0x82 - Interrupt Input >>> Interface #1 - Communications-Data/Unknown Comm Class Model >>> Alternate Setting 0 >>> Number of Endpoints 2 >>> Interface Class: 10 (Communications-Data) >>> Interface Subclass; 0 (Unknown Comm Class Model) >>> Interface Protocol: 0 >>> Endpoint 0x81 - Bulk Input >>> Endpoint 0x01 - Bulk Output >>> >>> >>> -- >>> Rick Mann >>> [email protected] >>> >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Usb mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/usb/davidegrayson%40gmail.com >>> >>> This email sent to [email protected] >> >> >> -- >> Rick Mann >> [email protected] >> >> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Usb mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/usb/alexander.coers%40mac.com >> >> This email sent to [email protected] > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Usb mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/usb/davidegrayson%40gmail.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com This email sent to [email protected]
