Detecting attached USB devices under Mac OSX

41,244

Solution 1

You can also use system_profiler SPUSBDataType on a terminal

Solution 2

I found /Developer/Applications/Utilities/USB Prober to be of great use.

Share:
41,244

Related videos on Youtube

janosrusiczki
Author by

janosrusiczki

Just your average (web) developer. Interested in many-a-thing: photography, RC modeling, simracing, etc.

Updated on July 09, 2022

Comments

  • janosrusiczki
    janosrusiczki almost 2 years

    First of all a statement: I'm a newbie when it comes to programming for the Mac. However I have an assignment which requires USB communication with a device so I thought I'll start with something basic.

    I took the code from here, built it and ran it from the Terminal. It starts up and writes:

    Looking for devices matching vendor ID=1351 and product ID=8193.

    Starting run loop.

    However after this, if I plug in and out USB devices (I tried: iPod, GPS, mouse) nothing gets written on the screen, although as much as I understand there should be whenever I connect and disconnect a device.

    What am I doing wrong?

    Thanks in advance.

  • ThomasW
    ThomasW about 11 years
    Unfortunately, it appears that this utility is not in recent versions of the developer tools.
  • user2746401
    user2746401 over 9 years
    There's some links to download it at touch-base.com/documentation/USBMacProber.htm