LoginSignup
0
0

More than 1 year has passed since last update.

MacでiPhoneが接続されているかをterminal上で確認するにはsystem_profiler SPUSBDataTypeを使おう

Posted at

なんか動作がおかしいiPhoneがったのでUSBに接続して中身を見たかったのだけど、どのレベルで認識されていないのか調べたのでついでにこれもやってみた。

terminal上で確認したい場合system_profiler SPUSBDataTypeで確認する。

(linux系ではlsusbコマンドで表示されるが、Macだと独自コマンドらしい)

出力例:


$ system_profiler SPUSBDataType  

2021-05-16 21:40:22.748 system_profiler[2972:64012] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
USB:

    USB 3.1 Bus:

      Host Controller Driver: AppleUSBXHCIAR
      PCI Device ID: 0x15d4 
      PCI Revision ID: 0x0002 
      PCI Vendor ID: 0x8086 
      Bus Number: 0x01 

    USB 3.1 Bus:

      Host Controller Driver: AppleUSBXHCIAR
      PCI Device ID: 0x15d4 
      PCI Revision ID: 0x0002 
      PCI Vendor ID: 0x8086 
      Bus Number: 0x00 

    USB 3.0 Bus:

      Host Controller Driver: AppleUSBXHCISPTLP
      PCI Device ID: 0x9d2f 
      PCI Revision ID: 0x0021 
      PCI Vendor ID: 0x8086 

        iPhone:

          Product ID: 0xXXXX
          Vendor ID: 0x05ac (Apple Inc.)
          Version: 11.06
          Serial Number: XXXXXXXXXXXXXXXXXXXX
          Speed: Up to 480 Mb/s
          Manufacturer: Apple Inc.
          Location ID: 0x14500000 / 5
          Current Available (mA): 500
          Current Required (mA): 500
          Extra Operating Current (mA): 1900
          Sleep current (mA): 2400

        Apple T1 Controller:

          Product ID: 0xXXXX
          Vendor ID: 0x05ac (Apple Inc.)
          Version: 1.01
          Manufacturer: Apple Inc.
          Location ID: 0x14100000

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0