Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
How to find out which port /dev/## , which the USB use
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Droopy4u" data-source="post: 1772950" data-attributes="member: 327446"><p>MAXOSX : how to find out which port /dev/## the USB use</p><p></p><p>In my case, I try to connect a EspressoBin on my MACintosh, but I'm not able to find which port is using or connected to.</p><p></p><p>But it is for every possible USB, how to detect which port /dev/### it uses</p><p></p><p></p><p>[CODE]$ uname -a</p><p>Darwin MAC-MBP-197.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64</p><p>[/CODE]</p><p>Via command line, I'm able to find back the name of the vendor, the ID of the Vendor and product;</p><p></p><p>[CODE]$ system_profiler </p><p>$ system_profiler SPUSBDataType</p><p></p><p> USB-Serial Controller D:</p><p></p><p> Product ID: 0x2303 / 0x2303(16) = 8963(10)</p><p> Vendor ID: 0x067b (Prolific Technology, Inc.)</p><p> / 0x067b(16) – 1659(10)</p><p> Version: 4.00</p><p> Speed: Up to 12 Mb/sec</p><p> Manufacturer: Prolific Technology Inc. </p><p> Location ID: 0x14100000 / 19 / 0x14100000(16) = 3365928969(10)</p><p> Current Available (mA): 500</p><p> Current Required (mA): 100</p><p> Extra Operating Current (mA): 0[/CODE]</p><p></p><p>or</p><p><a href="https://support.apple.com/en-us/HT202875" target="_blank">https://support.apple.com/en-us/HT202875</a></p><p>1. Press and hold the Option key on your keyboard, and click the Apple menu (). </p><p>2. Choose System Information or System Profiler. </p><p>3. In the window that appears, select USB from the left column. </p><p></p><p>[CODE]$ ioreg -p IOUSB -l -w 0 > testUSB.txt</p><p></p><p></p><p> | "IOClassNameOverride" = "IOUSBDevice"</p><p> | }</p><p> | </p><p> +-o USB-Serial Controller D@14100000 <class AppleUSBDevice, id 0x1000063ae, registered, matched, active, busy 0 (2 ms), retain 17></p><p> {</p><p> "sessionID" = 133574464882554</p><p> "iManufacturer" = 1</p><p> "bNumConfigurations" = 1</p><p> "idProduct" = 8963 / 0x2303(16) = 8963(10)</p><p> "bcdDevice" = 1024</p><p> "Bus Power Available" = 250</p><p> "USB Address" = 15</p><p> "bMaxPacketSize0" = 64</p><p> "iProduct" = 2</p><p> "iSerialNumber" = 0</p><p> "bDeviceClass" = 0</p><p> "Built-In" = No</p><p> "locationID" = 336592896 / 0x14100000(16) = 3365928969(10)</p><p> "bDeviceSubClass" = 0</p><p> "bcdUSB" = 272</p><p> "USB Product Name" = "USB-Serial Controller D"</p><p> "PortNum" = 1</p><p> "non-removable" = "no"</p><p> "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}</p><p> "bDeviceProtocol" = 0</p><p> "IOUserClientClass" = "IOUSBDeviceUserClientV2"</p><p> "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3}</p><p> "kUSBCurrentConfiguration" = 1</p><p> "Device Speed" = 1</p><p> "USB Vendor Name" = "Prolific Technology Inc. "</p><p> "idVendor" = 1659 / 0x067b(16) – 1659(10)</p><p> "IOGeneralInterest" = "IOCommand is not serializable"</p><p> "IOClassNameOverride" = "IOUSBDevice"</p><p> }</p><p>[/CODE]</p><p></p><p>But unfortunately I don't the responding key like discribed in the article</p><p><a href="http://www.planet-rcs.de/article/mac_serial_port/" target="_blank">http://www.planet-rcs.de/article/mac_serial_port/</a></p><p></p><p></p><p>[CODE]$ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle/Contents/Info.plist</p><p></p><p>$ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/Info.plist[/CODE]</p><p></p><p></p><p></p><p> [CODE] 5 <key>BuildMachineOSBuild</key></p><p> 7 <key>CFBundleDevelopmentRegion</key></p><p> 9 <key>CFBundleExecutable</key></p><p> 11 <key>CFBundleGetInfoString</key></p><p> 13 <key>CFBundleIdentifier</key></p><p> 15 <key>CFBundleInfoDictionaryVersion</key></p><p> 17 <key>CFBundleName</key></p><p> 19 <key>CFBundlePackageType</key></p><p> 21 <key>CFBundleShortVersionString</key></p><p> 23 <key>CFBundleSignature</key></p><p> 25 <key>CFBundleSupportedPlatforms</key></p><p> 29 <key>CFBundleVersion</key></p><p> 31 <key>DTCompiler</key></p><p> 33 <key>DTPlatformBuild</key></p><p> 35 <key>DTPlatformVersion</key></p><p> 37 <key>DTSDKBuild</key></p><p> 39 <key>DTSDKName</key></p><p> 41 <key>DTXcode</key></p><p> 43 <key>DTXcodeBuild</key></p><p> 45 <key>IOKitPersonalities</key></p><p> 47 <key>AppleUSBLegacyRoot</key></p><p> 49 <key>CFBundleIdentifier</key></p><p> 51 <key>IOClass</key></p><p> 53 <key>IOProbeScore</key></p><p> 55 <key>IOProviderClass</key></p><p> 59 <key>OSBundleCompatibleVersion</key></p><p> 61 <key>OSBundleLibraries</key></p><p> 63 <key>com.apple.iokit.IOPCIFamily</key></p><p> 65 <key>com.apple.iokit.IOUSBHostFamily</key></p><p> 67 <key>com.apple.kpi.bsd</key></p><p> 69 <key>com.apple.kpi.iokit</key></p><p> 71 <key>com.apple.kpi.libkern</key></p><p> 73 <key>com.apple.kpi.mach</key></p><p> 75 <key>com.apple.kpi.unsupported</key></p><p> 78 <key>OSBundleRequired</key></p><p> 80 <key>OSBundleRequiredPromotion</key></p><p>[/CODE]</p><p></p><p>Is there a possibility to write a similar script to figure out which port is used.</p><p><a href="https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0" target="_blank">https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0</a></p></blockquote><p></p>
[QUOTE="Droopy4u, post: 1772950, member: 327446"] MAXOSX : how to find out which port /dev/## the USB use In my case, I try to connect a EspressoBin on my MACintosh, but I'm not able to find which port is using or connected to. But it is for every possible USB, how to detect which port /dev/### it uses [CODE]$ uname -a Darwin MAC-MBP-197.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64 [/CODE] Via command line, I'm able to find back the name of the vendor, the ID of the Vendor and product; [CODE]$ system_profiler $ system_profiler SPUSBDataType USB-Serial Controller D: Product ID: 0x2303 / 0x2303(16) = 8963(10) Vendor ID: 0x067b (Prolific Technology, Inc.) / 0x067b(16) – 1659(10) Version: 4.00 Speed: Up to 12 Mb/sec Manufacturer: Prolific Technology Inc. Location ID: 0x14100000 / 19 / 0x14100000(16) = 3365928969(10) Current Available (mA): 500 Current Required (mA): 100 Extra Operating Current (mA): 0[/CODE] or [url]https://support.apple.com/en-us/HT202875[/url] 1. Press and hold the Option key on your keyboard, and click the Apple menu (). 2. Choose System Information or System Profiler. 3. In the window that appears, select USB from the left column. [CODE]$ ioreg -p IOUSB -l -w 0 > testUSB.txt | "IOClassNameOverride" = "IOUSBDevice" | } | +-o USB-Serial Controller D@14100000 <class AppleUSBDevice, id 0x1000063ae, registered, matched, active, busy 0 (2 ms), retain 17> { "sessionID" = 133574464882554 "iManufacturer" = 1 "bNumConfigurations" = 1 "idProduct" = 8963 / 0x2303(16) = 8963(10) "bcdDevice" = 1024 "Bus Power Available" = 250 "USB Address" = 15 "bMaxPacketSize0" = 64 "iProduct" = 2 "iSerialNumber" = 0 "bDeviceClass" = 0 "Built-In" = No "locationID" = 336592896 / 0x14100000(16) = 3365928969(10) "bDeviceSubClass" = 0 "bcdUSB" = 272 "USB Product Name" = "USB-Serial Controller D" "PortNum" = 1 "non-removable" = "no" "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"} "bDeviceProtocol" = 0 "IOUserClientClass" = "IOUSBDeviceUserClientV2" "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3} "kUSBCurrentConfiguration" = 1 "Device Speed" = 1 "USB Vendor Name" = "Prolific Technology Inc. " "idVendor" = 1659 / 0x067b(16) – 1659(10) "IOGeneralInterest" = "IOCommand is not serializable" "IOClassNameOverride" = "IOUSBDevice" } [/CODE] But unfortunately I don't the responding key like discribed in the article [url]http://www.planet-rcs.de/article/mac_serial_port/[/url] [CODE]$ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle/Contents/Info.plist $ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/Info.plist[/CODE] [CODE] 5 <key>BuildMachineOSBuild</key> 7 <key>CFBundleDevelopmentRegion</key> 9 <key>CFBundleExecutable</key> 11 <key>CFBundleGetInfoString</key> 13 <key>CFBundleIdentifier</key> 15 <key>CFBundleInfoDictionaryVersion</key> 17 <key>CFBundleName</key> 19 <key>CFBundlePackageType</key> 21 <key>CFBundleShortVersionString</key> 23 <key>CFBundleSignature</key> 25 <key>CFBundleSupportedPlatforms</key> 29 <key>CFBundleVersion</key> 31 <key>DTCompiler</key> 33 <key>DTPlatformBuild</key> 35 <key>DTPlatformVersion</key> 37 <key>DTSDKBuild</key> 39 <key>DTSDKName</key> 41 <key>DTXcode</key> 43 <key>DTXcodeBuild</key> 45 <key>IOKitPersonalities</key> 47 <key>AppleUSBLegacyRoot</key> 49 <key>CFBundleIdentifier</key> 51 <key>IOClass</key> 53 <key>IOProbeScore</key> 55 <key>IOProviderClass</key> 59 <key>OSBundleCompatibleVersion</key> 61 <key>OSBundleLibraries</key> 63 <key>com.apple.iokit.IOPCIFamily</key> 65 <key>com.apple.iokit.IOUSBHostFamily</key> 67 <key>com.apple.kpi.bsd</key> 69 <key>com.apple.kpi.iokit</key> 71 <key>com.apple.kpi.libkern</key> 73 <key>com.apple.kpi.mach</key> 75 <key>com.apple.kpi.unsupported</key> 78 <key>OSBundleRequired</key> 80 <key>OSBundleRequiredPromotion</key> [/CODE] Is there a possibility to write a similar script to figure out which port is used. [url]https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0[/url] [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
How to find out which port /dev/## , which the USB use
Top