LINUX.ORG.RU

Motorola PCS


0

0

Имеется Motorola rokr e6 (мобила), которая может работать в режиме веб
камеры. Но вот вопрос, а можно ли её завести под лиуксом...

Вот что имеем:

# lsusb
...
Bus 005 Device 081: ID 22b8:6006 Motorola PCS
...

# cat /proc/bus/usb/devices
T:  Bus=05 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 81 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(unk. ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=22b8 ProdID=6006 Rev= 0.01
S:  Manufacturer=Motorola Inc.
S:  Product=Motorola USB Camera
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=0e(unk. ) Sub=01 Prot=00 Driver=(none)
I:* If#= 1 Alt= 0 #EPs= 1 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=   0 Ivl=125us
I:  If#= 1 Alt= 1 #EPs= 1 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=3072 Ivl=125us

# dmesg
...
usb 5-6: new high speed USB device using ehci_hcd and address 81
usb 5-6: configuration #1 chosen from 1 choice

Можно ли это как то завести, может дрова какие есть? Честно гуглил, 
но ничего не нашёл :(

Заранее спасибо!!!
★★★★★

С этим вопросом велкам на форум motofan.ru. Я только недавно купил моторолу на линуксе, так что ответить не смогу. А там на форуме много умных людей.

voronaam ★★
()
Ответ на: комментарий от sS

# lsusb -v -d 22b8:6006

Bus 005 Device 005: ID 22b8:6006 Motorola PCS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 Common Class
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x22b8 Motorola PCS
  idProduct          0x6006
  bcdDevice            0.01
  iManufacturer           3 Motorola Inc.
  iProduct                2 Motorola USB Camera
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          315
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          5 Motorola UVC Configuration
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0
      iFunction               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0
      iInterface              0
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength           66
        dwClockFrequency       26.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0
        wObjectiveFocalLengthMin    100
        wObjectiveFocalLengthMax    800
        wOcularFocalLength          100
        bControlSize                  2
        bmControls           0x00000200
          Zoom (Absolute)
      VideoControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             2
        wTerminalType      0x0401 Composite Video
        bAssocTerminal          0
        iTerminal               0
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               0
      VideoControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      4 (SELECTOR_UNIT)
        bUnitID                 4
        bNrInPins               2
        baSource( 0)            1
        baSource( 1)            2
        iSelector               0
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 5
        bSourceID               4
        wMaxMultiplier        800
        bControlSize            2
        bmControls     0x00004001
          Brightness
          Digital Multiplier
        iProcessing             0
        bmVideoStandards     0x 0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              6 VS Class Interface
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormarts                        1
        wTotalLength                    33024
        bEndPointAddress                    0
        bmInfo                              3
        bTerminalLink                       0
        bStillCaptureMethod                 0
        bTriggerSupport                     0
        bTriggerUsage                       1
        bControlSize                        1
        bmaControls( 0)                    27
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        1
        bNumFrameDescriptors                5
        guidFormat                            {32595559-0000-0010-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       4
        bAspectRatioY                       3
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 1 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0

cyclon ★★★★★
() автор топика
Ответ на: комментарий от cyclon

      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            352
        wHeight                           288
        dwMinBitRate                 32440320
        dwMaxBitRate                 32440320
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         500000
        bFrameIntervalType                  1
        dwFrameInterval( 0)            500000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            176
        wHeight                           144
        dwMinBitRate                  8110080
        dwMaxBitRate                  8110080
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         500000
        bFrameIntervalType                  1
        dwFrameInterval( 0)            500000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            640
        wHeight                           480
        dwMinBitRate                 73728000
        dwMaxBitRate                 73728000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  1
        dwFrameInterval( 0)            666666
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         4
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            320
        wHeight                           240
        dwMinBitRate                 24576000
        dwMaxBitRate                 24576000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         500000
        bFrameIntervalType                  1
        dwFrameInterval( 0)            500000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         5
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            160
        wHeight                           120
        dwMinBitRate                  6144000
        dwMaxBitRate                  6144000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         500000
        bFrameIntervalType                  1
        dwFrameInterval( 0)            500000
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              7 VS STD Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1400  3x 0 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 Common Class
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  bNumConfigurations      0
Device Status:     0x0000
  (Bus Powered)

cyclon ★★★★★
() автор топика
Ответ на: комментарий от cyclon

>Не завёлся :(

А в юзерспейсе чем тестил ? luvcview ? V4L2 девайсы сейчас держат декодеры в юзерспайсе и просто у тебя могло не быть нужного.

sS ★★★★★
()
Ответ на: комментарий от sS

у мя он выдал

# dmesg
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
usb 5-6: new high speed USB device using ehci_hcd and address 7
usb 5-6: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device Motorola USB Camera (22b8:6006)
uvcvideo: No valid video chain found.

cyclon ★★★★★
() автор топика
Ответ на: комментарий от cyclon

>uvcvideo: No valid video chain found.

Ну эт тогда к Лаврентию ;)

sS ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.