Digibestさんぱくん外出(US-3POUT)をRaspberry Pi 4 Model B 8GB(Revision:d03114)に認識させた。

 Raspberry Pi 4の場合、セルフパワーのUSBハブが必要でした。PX-W3U4でも思い知りました。その時のことはまたの機会に。
 US-3POUTは3波ではありますが、排他仕様チューナーです。そして、東経110度の人工衛星をキャッチするアンテナには電源供給が必要となります。これもまたの機会に。

グループの確認もしくは作成・登録

 ユーザー名piにグループとしてvideoが登録されているか確認するよ!さんぱくん外出をvideoグループのUSBデバイスとして使えるようにする為だよ!だからpiはvideoのグループに属さないとダメなんだよ!
 確認したら登録済みだったから登録しないよ!もしグループそのものにvideoがなかったり、ユーザーとしてvideoグループに属してなかったらgroupaddやgpasswdで作成・登録してね!

$ groups pi | grep video
pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio
$ cat /etc/group | grep video
video:x:44:pi

さんぱくん外出を接続した結果

 USB3.0のポートにUSBハブとカードリーダーを挿し込んだ状態だよ!

$ lsusb
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp. 
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:0169 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 004: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 さんぱくん外出を挿し込んだよ!

$ lsusb
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp. 
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0511:0045 N'Able (DataBook) Technologies, Inc. 
Bus 001 Device 005: ID 0bda:0169 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 004: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
   |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
       |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
   |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
       |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
           |__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
               |__ Port 1: Dev 5, If 0, Class=Chip/SmartCard, Driver=, 480M
               |__ Port 1: Dev 5, If 1, Class=Mass Storage, Driver=usb-storage, 480M
           |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 480M
lsusb -d 0511:0045 -v 

Bus 001 Device 006: ID 0511:0045 N'Able (DataBook) Technologies, Inc. 
Couldn't open device, some information will be missing
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0 
 bDeviceSubClass         0 
 bDeviceProtocol         0 
 bMaxPacketSize0        64
 idVendor           0x0511 N'Able (DataBook) Technologies, Inc.
 idProduct          0x0045 
 bcdDevice            2.05
 iManufacturer           3 
 iProduct                1 
 iSerial                 2 
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength       0x0029
   bNumInterfaces          1
   bConfigurationValue     1
   iConfiguration          0 
   bmAttributes         0x80
     (Bus Powered)
   MaxPower              500mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       0
     bNumEndpoints           1
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass      0 
     bInterfaceProtocol      0 
     iInterface              0 
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x84  EP 4 IN
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0000  1x 0 bytes
       bInterval               1
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass      0 
     bInterfaceProtocol      0 
     iInterface              0 
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x84  EP 4 IN
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x03ac  1x 940 bytes
       bInterval               1

udevルールを作成して再読み後に再起動する

 videoグループのUSBデバイスとして使えるようにudevルールを作成してudevルールを再読み込みさせて再起動するよ!これでDVBデバイスとしても使えるね♪

$ sudo nano /etc/udev/rules.d/91-tuner.rules
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0511", ATTRS{idProduct}=="0045", MODE="0664", GROUP="video"
$ sudo udevadm control --reload-rules
$ sudo reboot

デバッグ記述子を取得できなかったが
開けたから構わないことにする

 再起動後にデバイスを開くことができたよ!やったね♪

$ lsusb  -v -d 0511:0045 

Bus 001 Device 007: ID 0511:0045 N'Able (DataBook) Technologies, Inc. 
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0 
 bDeviceSubClass         0 
 bDeviceProtocol         0 
 bMaxPacketSize0        64
 idVendor           0x0511 N'Able (DataBook) Technologies, Inc.
 idProduct          0x0045 
 bcdDevice            2.05
 iManufacturer           3 DigiBest
 iProduct                1 ISDB 3 Wave Device
 iSerial                 2 0
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength       0x0029
   bNumInterfaces          1
   bConfigurationValue     1
   iConfiguration          0 
   bmAttributes         0x80
     (Bus Powered)
   MaxPower              500mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       0
     bNumEndpoints           1
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass      0 
     bInterfaceProtocol      0 
     iInterface              0 
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x84  EP 4 IN
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0000  1x 0 bytes
       bInterval               1
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass      0 
     bInterfaceProtocol      0 
     iInterface              0 
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x84  EP 4 IN
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x03ac  1x 940 bytes
       bInterval               1
Device Qualifier (for other device speed):
 bLength                10
 bDescriptorType         6
 bcdUSB               2.00
 bDeviceClass            0 
 bDeviceSubClass         0 
 bDeviceProtocol         0 
 bMaxPacketSize0        64
 bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
 (Bus Powered)

この記事が気に入ったらサポートをしてみませんか?