0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

カメラやUSBWifiなどのデバイスを確認する

Posted at

ハードウェアが認識されているか確認します。

USB/IMPIで接続されているハードウェアを確認

# USBデバイス
$ lsusb
Bus 006 Device 003: ID 0bda:8813 Realtek Semiconductor Corp. RTL8814AU 802.11a/b/g/n/ac Wireless Adapter
Bus 002 Device 003: ID 1395:0601 Sennheiser Communications S6
...

# IMPIデバイス
$ sudo dmesg | grep -i mipi
[    0.377435] Initilizing CustomIPI irq domain
...

# Jetsonデバイスツリー
jetson@nvidia:~$ sudo find /proc/device-tree/ | grep imx219
/proc/device-tree/lens_imx219@RBPCV2
...

カメラが認識されているか確認

$ v4l2-ctl --list-devices
S6 (usb-0000:07:00.1-2):
	/dev/video0
	/dev/video1
	/dev/media0

カメラの設定値や性能情報を確認

$ v4l2-ctl -d /dev/video0 --all
Driver Info:
	Driver name      : uvcvideo
	Card type        : S6
	Bus info         : usb-0000:07:00.1-2
	Driver version   : 6.5.13
	Capabilities     : 0x84a00001
    ...

カメラがサポートするフォーマットや解像度、フレームレートなどの詳細な情報を確認

$ v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'H264' (H.264, compressed)
		Size: Discrete 1920x1080
			Interval: Discrete 0.017s (60.000 fps)
		Size: Discrete 2560x1440
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'MJPG' (Motion-JPEG, compressed)
		Size: Discrete 1920x1080
			Interval: Discrete 0.017s (60.000 fps)
		Size: Discrete 2560x1440
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 3840x2160
			Interval: Discrete 0.033s (30.000 fps)
	[2]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 2560x1440
			Interval: Discrete 0.033s (30.000 fps)
            ...

読み込まれているカーネルドライバを確認

$ lsmod
iwlwifi               598016  1 iwlmvm
cfg80211             1323008  4 iwlmvm,88XXau_ohd,iwlwifi,mac80211
...

dkmsでインストールしたドライバの場合

$ sudo dkms status
nvidia/555.42.06, 6.5.0-41-generic, x86_64: installed
rtl8812au/5.2.20.2, 6.5.0-41-generic, x86_64: installed

$ ls -l /lib/modules/$(uname -r)/updates/dkms/
合計 74076
-rw-r--r-- 1 root root  6819944  7月  3 20:18 88XXau_ohd.ko
-rw-r--r-- 1 root root   238008  7月  2 11:27 nvidia-drm.ko
...

$ ls -l /var/lib/dkms/
合計 12
-rw-r--r-- 1 root root    6 10月  1  2021 dkms_dbversion
drwxr-xr-x 3 root root 4096  7月  2 11:27 nvidia
drwxr-xr-x 3 root root 4096  7月  3 20:18 rtl8812au

認識されているWiFiのインターフェースのみ表示

$ iwconfig
lo        no wireless extensions.

enp6s0    no wireless extensions.

wlp5s0    IEEE 802.11  ESSID:"xxxxxxxxxxxxxxxxx"  
          Mode:Managed  Frequency:5.18 GHz  Access Point: xx:xx:xx:xx:xx:XX  
          Bit Rate=960.7 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
		  ...

wlan0  IEEE 802.11  ESSID:"zzzzzzzzzzzzzzzz"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: xx:xx:xx:xx:xx:XX
          Bit Rate=144.4 Mb/s   Tx-Power=18 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
		  ...

ネットワークインターフェースの情報

$ nmcli device show
GENERAL.DEVICE:                         wlp5s0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         xx:xx:xx:xx:xx:XX
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (接続済み)
...

Wifi管理コマンドでネットワークを検索

$ sudo iwlist wlan0 scan
wlxe0e1a91d6625  Scan completed :
          Cell 01 - Address: xx:xx:xx:xx:xx:XX
                    Channel:3
                    Frequency:2.422 GHz (Channel 3)
                    Quality=68/70  Signal level=-42 dBm  
                    Encryption key:on
                    ESSID:"xxxxxxxxxxxxxxxxx"
					...

WiFiモジュールがサポートする周波数帯(2.4GHzと5GHz)や規格(802.11n/acなど)を確認

$ iw list
Wiphy phy2
	wiphy index: 2
	max # scan SSIDs: 9
	max scan IEs length: 2304 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	Retry short limit: 7
	Retry long limit: 4
	...
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?