rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

USB camera interface with raspberry pi

Wed Sep 21, 2016 2:33 pm

hello there i want to interface usb camera interface with raspberry pi.
can any usb camera work with it??

this command sudo apt-get install fswebcam with any usb camera??

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14861
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: USB camera interface with raspberry pi

Wed Sep 21, 2016 2:38 pm

Almost all USB Video Class (UVC) devices should work with the standard kernel driver (uvcvideo.ko), and show up as a standard V4L2 device.
fswebcam is one of many V4L2 client apps that should be able to view the images.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Wed Sep 21, 2016 3:28 pm

thanks for support

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Mon Nov 07, 2016 7:05 am

hello there i brought http://www.amazon.in/Quantum-QHM495LM-2 ... B00L5AWKUM usbcamera. lsusb shows me usbcamera. but when i tried to capture image using fswebcam test.jpg, i got images which is completely black.

i have ubuntu on my laptop. i tried fswebcam on it. it gives me images. but very unclear images. i am getting good images in cheese in ubuntu.

can anyone tell me how to capture good images with raspberry pi and usb webcam??

User avatar
RaTTuS
Posts: 10829
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: USB camera interface with raspberry pi

Mon Nov 07, 2016 8:25 am

what does
lsusb -v
say
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Mon Nov 07, 2016 5:19 pm

hello i got long output . i have uploaded text file here.
Attachments
output.rar
(2.96 KiB) Downloaded 357 times

User avatar
RaTTuS
Posts: 10829
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: USB camera interface with raspberry pi

Tue Nov 08, 2016 12:31 pm

post it here inside code tags
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Tue Nov 08, 2016 1:15 pm

Code: Select all

pi@raspberrypi:~ $ lsusb -v

Bus 001 Device 004: ID 18ec:3399 Arkmicro Technologies Inc.
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x18ec Arkmicro Technologies Inc.
  idProduct          0x3399
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          667
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              200mA
    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           1
      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           51
        dwClockFrequency       48.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3
        bmControls           0x00000000
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 2
        bSourceID               1
        wMaxMultiplier          0
        bControlSize            2
        bmControls     0x0000063f
          Brightness
          Contrast
          Hue
          Saturation
          Sharpness
          Gamma
          Gain
          Power Line Frequency
        iProcessing             0
        bmVideoStandards     0x 9
          None
          SECAM - 625/50
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               2
        iTerminal               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         1
        wTotalLength                      284
        bEndPointAddress                  131
        bmInfo                              0
        bTerminalLink                       3
        bStillCaptureMethod                 2
        bTriggerSupport                     1
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    27
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        1
        bNumFrameDescriptors                5
        guidFormat                            {59555932-0000-1000-8000-00aa00389                                                                                        b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  4
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            160
        wHeight                           120
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  4
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            176
        wHeight                           144
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  4
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            320
        wHeight                           240
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  4
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         5
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            352
        wHeight                           288
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  4
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns               5
        wWidth( 0)                        640
        wHeight( 0)                       480
        wWidth( 1)                        160
        wHeight( 1)                       120
        wWidth( 2)                        176
        wHeight( 2)                       144
        wWidth( 3)                        320
        wHeight( 3)                       240
        wWidth( 4)                        352
        wHeight( 4)                       288
        bNumCompressionPatterns             5
        bCompression( 0)                    1
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     0 (Unspecified)
        bTransferCharacteristics            0 (Unspecified)
        bMatrixCoefficients                 0 (Unspecified)
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0180  1x 384 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0280  1x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0320  1x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x03c0  1x 960 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0a80  2x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       8
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0b20  2x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       9
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0be0  2x 992 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      10
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1380  3x 896 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      11
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x13e8  3x 1000 bytes
        bInterval               1
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         2
      bInterfaceCount         2
      bFunctionClass          1 Audio
      bFunctionSubClass       1 Control Device
      bFunctionProtocol       0
      iFunction               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0
      iInterface              4
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           40
        bInCollection           1
        baInterfaceNr( 0)       3
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               2
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 2
        bSourceID               1
        bControlSize            1
        bmaControls( 0)      0x00
        bmaControls( 1)      0x03
          Mute Control
          Volume Control
        bmaControls( 2)      0x03
          Mute Control
          Volume Control
        iFeature                0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0
      iInterface              4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0
      iInterface              4
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0060  1x 96 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast                                                                                         Ethernet Adapter
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0xec00 SMSC9512/9514 Fast Ethernet Adapter
  bcdDevice            2.00
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol    255
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               4

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0x9514
  bcdDevice            2.00
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      1 Single TT
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 TT per port
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.04
  iManufacturer           3
  iProduct                2
  iSerial                 1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Wed Nov 09, 2016 11:19 am

i see it in output

Couldn't open device, some information will be missing.

can you tell me how to open device??

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14861
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: USB camera interface with raspberry pi

Wed Nov 09, 2016 2:41 pm

There are any number of V4L2 apps.
The normal GUI testing tool is qv4l2 (sudo apt-get install qv4l2). fswebcam would normally work, but may have something quirky with your camera.
Yavta?
Are you wanting a command line app of GUI? Does Cheese work for you on the Pi?
Too many questions and options.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Wed Nov 09, 2016 5:53 pm

when i type lusb -v in ubuntu latop, it can open usb camera device

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Thu Nov 10, 2016 8:13 am

so don't you think there is problem with os??

User avatar
RaTTuS
Posts: 10829
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: USB camera interface with raspberry pi

Thu Nov 10, 2016 9:16 am

viewtopic.php?f=63&t=160433#p1065641
basically give us more info

any error messages
show images from your laptop / the rpi
and all command lines etc
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14861
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: USB camera interface with raspberry pi

Thu Nov 10, 2016 9:43 am

The output of "dmesg" would be useful too to see whether the kernel driver has logged any issues as it discovered the camera, or when you started streaming.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Thu Nov 10, 2016 6:08 pm

Code: Select all

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.26-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #915 SMP Thu Oct 20 17:08:44 BST 2016
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3a800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 808c2f80, node_mem_map b9fa6000
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 13 pages/cpu @b9f62000 s22592 r8192 d22464 u53248
[    0.000000] pcpu-alloc: s22592 r8192 d22464 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
[    0.000000] Kernel command line: 8250.nr_uarts=0 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa02082 bcm2709.serial=0xf3426d1d smsc95xx.macaddr=B8:27:EB:42:6D:1D bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait ip=192.168.2.10
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939072K/966656K available (6348K kernel code, 432K rwdata, 1716K rodata, 476K init, 764K bss, 19392K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
    lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x807e8584   (8066 kB)
      .init : 0x807e9000 - 0x80860000   ( 476 kB)
      .data : 0x80860000 - 0x808cc290   ( 433 kB)
       .bss : 0x808cf000 - 0x8098e1ec   ( 765 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000026] Switching to timer-based delay loop, resolution 52ns
[    0.000292] Console: colour dummy device 80x30
[    0.001348] console [tty1] enabled
[    0.001393] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001461] pid_max: default: 32768 minimum: 301
[    0.001799] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001842] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002797] Disabling cpuset control group subsystem
[    0.002855] Initializing cgroup subsys io
[    0.002907] Initializing cgroup subsys memory
[    0.002970] Initializing cgroup subsys devices
[    0.003013] Initializing cgroup subsys freezer
[    0.003056] Initializing cgroup subsys net_cls
[    0.003127] CPU: Testing write buffer coherency: ok
[    0.003216] ftrace: allocating 21225 entries in 63 pages
[    0.052815] CPU0: update cpu_capacity 1024
[    0.052883] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.052916] [bcm2709_smp_prepare_cpus] enter
[    0.053071] Setting up static identity map for 0x8240 - 0x8274
[    0.054723] [bcm2709_boot_secondary] cpu:1 started (0) 18
[    0.054940] [bcm2709_secondary_init] enter cpu:1
[    0.054984] CPU1: update cpu_capacity 1024
[    0.054990] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.055365] [bcm2709_boot_secondary] cpu:2 started (0) 17
[    0.055530] [bcm2709_secondary_init] enter cpu:2
[    0.055551] CPU2: update cpu_capacity 1024
[    0.055557] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.055916] [bcm2709_boot_secondary] cpu:3 started (0) 18
[    0.056046] [bcm2709_secondary_init] enter cpu:3
[    0.056067] CPU3: update cpu_capacity 1024
[    0.056073] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.056133] Brought up 4 CPUs
[    0.056231] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.056261] CPU: All CPU(s) started in HYP mode.
[    0.056287] CPU: Virtualization extensions available.
[    0.056929] devtmpfs: initialized
[    0.067882] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.068251] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.069012] pinctrl core: initialized pinctrl subsystem
[    0.069548] NET: Registered protocol family 16
[    0.074748] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081819] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.081869] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.082046] Serial: AMBA PL011 UART driver
[    0.082200] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.082435] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.144943] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
[    0.145551] SCSI subsystem initialized
[    0.145761] usbcore: registered new interface driver usbfs
[    0.145873] usbcore: registered new interface driver hub
[    0.145993] usbcore: registered new device driver usb
[    0.152364] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-10-20 14:57
[    0.179533] clocksource: Switched to clocksource arch_sys_counter
[    0.224779] FS-Cache: Loaded
[    0.225077] CacheFiles: Loaded
[    0.237281] NET: Registered protocol family 2
[    0.238163] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.238302] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.238512] TCP: Hash tables configured (established 8192 bind 8192)
[    0.238625] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.238693] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.238942] NET: Registered protocol family 1
[    0.239283] RPC: Registered named UNIX socket transport module.
[    0.239316] RPC: Registered udp transport module.
[    0.239344] RPC: Registered tcp transport module.
[    0.239372] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.240498] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.241839] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.255134] VFS: Disk quotas dquot_6.6.0
[    0.255469] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.257722] FS-Cache: Netfs 'nfs' registered for caching
[    0.258652] NFS: Registering the id_resolver key type
[    0.258713] Key type id_resolver registered
[    0.258742] Key type id_legacy registered
[    0.261132] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.261303] io scheduler noop registered
[    0.261344] io scheduler deadline registered (default)
[    0.261420] io scheduler cfq registered
[    0.263932] BCM2708FB: allocated DMA memory fac00000
[    0.263979] BCM2708FB: allocated DMA channel 0 @ f3007000
[    0.272683] Console: switching to colour frame buffer device 82x26
[    1.150018] bcm2835-rng 3f104000.rng: hwrng registered
[    1.152491] vc-cma: Videocore CMA driver
[    1.154869] vc-cma: vc_cma_base      = 0x00000000
[    1.157244] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.159544] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.161912] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.180861] brd: module loaded
[    1.191533] loop: module loaded
[    1.194447] vchiq: vchiq_init_state: slot_zero = 0xbac80000, is_master = 0
[    1.197991] Loading iSCSI transport class v2.0-870.
[    1.200824] usbcore: registered new interface driver smsc95xx
[    1.203090] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.405567] Core Release: 2.80a
[    1.407657] Setting default values for core params
[    1.409827] Finished setting default values for core params
[    1.612381] Using Buffer DMA mode
[    1.614547] Periodic Transfer Interrupt Enhancement - disabled
[    1.616789] Multiprocessor Interrupt Enhancement - disabled
[    1.619090] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.621368] Dedicated Tx FIFOs mode
[    1.623876] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024
[    1.628513] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    1.640348] dwc_otg: Microframe scheduler enabled
[    1.640402] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x804476e0
[    1.642836] WARN::hcd_init_fiq:414: FIQ ASM at 0x80447a50 length 36
[    1.645207] WARN::hcd_init_fiq:439: MPHI regs_base at 0xbb9a8000
[    1.647564] dwc_otg 3f980000.usb: DWC OTG Controller
[    1.649893] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.652250] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    1.654565] Init: Port Power? op_state=1
[    1.656819] Init: Power Port (0)
[    1.659193] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.661525] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.663828] usb usb1: Product: DWC OTG Controller
[    1.666075] usb usb1: Manufacturer: Linux 4.4.26-v7+ dwc_otg_hcd
[    1.668346] usb usb1: SerialNumber: 3f980000.usb
[    1.671405] hub 1-0:1.0: USB hub found
[    1.673607] hub 1-0:1.0: 1 port detected
[    1.676302] dwc_otg: FIQ enabled
[    1.676312] dwc_otg: NAK holdoff enabled
[    1.676320] dwc_otg: FIQ split-transaction FSM enabled
[    1.676354] Module dwc_common_port init
[    1.676594] usbcore: registered new interface driver usb-storage
[    1.678981] mousedev: PS/2 mouse device common for all mice
[    1.681889] bcm2835-cpufreq: min=600000 max=1200000
[    1.684352] sdhci: Secure Digital Host Controller Interface driver
[    1.686614] sdhci: Copyright(c) Pierre Ossman
[    1.689144] sdhost: log_buf @ bac13000 (fac13000)
[    1.749563] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.754079] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.756376] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.809645] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.812274] ledtrig-cpu: registered to indicate activity on CPUs
[    1.814655] hidraw: raw HID events driver (C) Jiri Kosina
[    1.817094] usbcore: registered new interface driver usbhid
[    1.819413] usbhid: USB HID core driver
[    1.822210] Initializing XFRM netlink socket
[    1.824468] NET: Registered protocol family 17
[    1.826783] Key type dns_resolver registered
[    1.829468] Registering SWP/SWPB emulation handler
[    1.832457] registered taskstats version 1
[    1.834793] vc-sm: Videocore shared memory driver
[    1.837019] [vc_sm_connected_init]: start
[    1.839698] [vc_sm_connected_init]: end - returning 0
[    1.843194] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    1.847886] of_cfs_init
[    1.850076] of_cfs_init: OK
[    1.851566] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.854720] mmc0: new high speed SDHC card at address aaaa
[    1.855264] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
[    1.858449]  mmcblk0: p1 p2
[    1.869653] Indeed it is in host mode hprt0 = 00021501
[    1.876362] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.880095] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.883735] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.888525] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.980671] mmc1: new high speed SDIO card at address 0001
[    2.049563] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.051739] Indeed it is in host mode hprt0 = 00001101
[    2.249814] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.251968] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.254821] hub 1-1:1.0: USB hub found
[    2.257071] hub 1-1:1.0: 5 ports detected
[    2.539558] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.639795] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.641955] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.646880] smsc95xx v1.0.4
[    2.712837] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:42:6d:1d
[    2.931770] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    4.375347] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x5DE1
[    4.409553] IP-Config: Guessing netmask 255.255.255.0
[    4.412001] IP-Config: Complete:
[    4.414269]      device=eth0, hwaddr=b8:27:eb:42:6d:1d, ipaddr=192.168.2.10, mask=255.255.255.0, gw=255.255.255.255
[    4.419291]      host=192.168.2.10, domain=, nis-domain=(none)
[    4.422052]      bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
[    4.432429] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    4.435309] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    4.450298] EXT4-fs (mmcblk0p2): recovery complete
[    4.455195] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.460822] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    4.467345] devtmpfs: mounted
[    4.470990] Freeing unused kernel memory: 476K (807e9000 - 80860000)
[    4.489566] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    4.592948] usb 1-1.3: New USB device found, idVendor=18ec, idProduct=3399
[    4.595973] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.598952] usb 1-1.3: Product: USB2.0 PC CAMERA
[    4.601807] usb 1-1.3: Manufacturer: ARKMICRO
[    4.752589] random: systemd: uninitialized urandom read (16 bytes read, 86 bits of entropy available)
[    4.764816] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    4.771161] systemd[1]: Detected architecture 'arm'.
[    4.895591] NET: Registered protocol family 10
[    4.900412] systemd[1]: Inserted module 'ipv6'
[    4.907511] systemd[1]: Set hostname to <raspberrypi>.
[    5.031868] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 89 bits of entropy available)
[    5.165658] random: systemd: uninitialized urandom read (16 bytes read, 91 bits of entropy available)
[    5.172624] random: systemd: uninitialized urandom read (16 bytes read, 91 bits of entropy available)
[    5.179755] random: systemd: uninitialized urandom read (16 bytes read, 91 bits of entropy available)
[    5.208264] random: systemd: uninitialized urandom read (16 bytes read, 92 bits of entropy available)
[    5.215312] random: systemd: uninitialized urandom read (16 bytes read, 92 bits of entropy available)
[    5.221568] random: systemd: uninitialized urandom read (16 bytes read, 92 bits of entropy available)
[    5.264592] random: systemd: uninitialized urandom read (16 bytes read, 92 bits of entropy available)
[    5.275262] random: systemd: uninitialized urandom read (16 bytes read, 93 bits of entropy available)
[    5.383612] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    5.390970] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.398024] systemd[1]: Starting Remote File Systems (Pre).
[    5.405603] systemd[1]: Reached target Remote File Systems (Pre).
[    5.409221] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    5.420218] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.427022] systemd[1]: Starting Encrypted Volumes.
[    5.433984] systemd[1]: Reached target Encrypted Volumes.
[    5.437288] systemd[1]: Starting Swap.
[    5.443793] systemd[1]: Reached target Swap.
[    5.446844] systemd[1]: Expecting device dev-mmcblk0p1.device...
[    5.453035] systemd[1]: Starting Root Slice.
[    5.458963] systemd[1]: Created slice Root Slice.
[    5.461768] systemd[1]: Starting User and Session Slice.
[    5.467491] systemd[1]: Created slice User and Session Slice.
[    5.470243] systemd[1]: Starting Delayed Shutdown Socket.
[    5.475818] systemd[1]: Listening on Delayed Shutdown Socket.
[    5.478442] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    5.483944] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    5.486517] systemd[1]: Starting Journal Socket (/dev/log).
[    5.491978] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.494581] systemd[1]: Starting udev Control Socket.
[    5.500071] systemd[1]: Listening on udev Control Socket.
[    5.502723] systemd[1]: Starting udev Kernel Socket.
[    5.508150] systemd[1]: Listening on udev Kernel Socket.
[    5.510858] systemd[1]: Starting Journal Socket.
[    5.516365] systemd[1]: Listening on Journal Socket.
[    5.519081] systemd[1]: Starting System Slice.
[    5.524617] systemd[1]: Created slice System Slice.
[    5.527246] systemd[1]: Starting File System Check on Root Device...
[    5.570141] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    5.576172] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.578807] systemd[1]: Starting system-autologin.slice.
[    5.584462] systemd[1]: Created slice system-autologin.slice.
[    5.587142] systemd[1]: Starting Increase datagram queue length...
[    5.595365] systemd[1]: Starting Restore / save the current clock...
[    5.605351] systemd[1]: Mounted Huge Pages File System.
[    5.608520] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    5.644319] systemd[1]: Starting Load Kernel Modules...
[    5.679119] systemd[1]: Started Set Up Additional Binary Formats.
[    5.682684] systemd[1]: Mounting Debug File System...
[    5.691597] systemd[1]: Starting udev Coldplug all Devices...
[    5.700817] systemd[1]: Mounting POSIX Message Queue File System...
[    5.710191] systemd[1]: Starting Slices.
[    5.716447] systemd[1]: Reached target Slices.
[    5.726767] systemd[1]: Started Increase datagram queue length.
[    5.738533] fuse init (API version 7.23)
[    5.750466] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    5.759948] systemd[1]: Mounted Debug File System.
[    5.766308] systemd[1]: Mounted POSIX Message Queue File System.
[    5.790532] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 83) (baudrate 100000)
[    5.799866] systemd[1]: Started Restore / save the current clock.
[    5.800037] i2c /dev entries driver
[    5.810581] systemd[1]: Started Load Kernel Modules.
[    5.885203] systemd[1]: Started File System Check on Root Device.
[    5.896757] systemd[1]: Time has been changed
[    5.930029] systemd[1]: Started udev Coldplug all Devices.
[    6.037870] systemd[1]: Mounting Configuration File System...
[    6.079939] systemd[1]: Starting Apply Kernel Variables...
[    6.088910] systemd[1]: Mounting FUSE Control File System...
[    6.097810] systemd[1]: Starting Create Static Device Nodes in /dev...
[    6.107191] systemd[1]: Starting Syslog Socket.
[    6.113550] systemd[1]: Listening on Syslog Socket.
[    6.116280] systemd[1]: Starting Journal Service...
[    6.127874] systemd[1]: Started Journal Service.
[    6.305047] systemd-udevd[140]: starting version 215
[    6.625998] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    6.664756] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    6.899320] media: Linux media interface: v0.10
[    6.922770] Linux video capture interface: v2.00
[    6.981604] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[    6.985368] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.991317] usb 1-1.3: Warning! Unlikely big volume range (=11903), cval->res is probably wrong.
[    6.991345] usb 1-1.3: [2] FU [Mic Capture Volume] ch = 2, val = 384/12287/1
[    6.992294] usbcore: registered new interface driver snd-usb-audio
[    6.998598] usbcore: registered new interface driver brcmfmac
[    7.063852] uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (18ec:3399)
[    7.072589] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[    7.073833] input: USB2.0 PC CAMERA as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
[    7.074139] usbcore: registered new interface driver uvcvideo
[    7.074142] USB Video Class driver (1.1.1)
[    7.135108] random: nonblocking pool is initialized
[    7.145757] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    7.179459] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    7.312610] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    7.312639] cfg80211: World regulatory domain updated:
[    7.312648] cfg80211:  DFS Master region: unset
[    7.312657] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.312671] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.312684] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.312696] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    7.312711] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    7.312726] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    7.312739] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    7.312751] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.312764] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    7.732032] systemd-journald[137]: Received request to flush runtime journal from PID 1
[    8.499867] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[    8.499891] brcmfmac: brcmf_add_if: ignore IF event
[    8.505253] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    8.505279] brcmfmac: power management disabled
[    8.852254] uart-pl011 3f201000.uart: no DMA platform data
[    8.924176] cfg80211: Regulatory domain changed to country: GB
[    8.924200] cfg80211:  DFS Master region: ETSI
[    8.924209] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.924224] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.924240] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.924255] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    8.924268] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
[    8.924280] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[    9.225585] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[    9.613289] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   13.510718] Bluetooth: Core ver 2.21
[   13.510821] NET: Registered protocol family 31
[   13.510832] Bluetooth: HCI device and connection manager initialized
[   13.510855] Bluetooth: HCI socket layer initialized
[   13.510873] Bluetooth: L2CAP socket layer initialized
[   13.510907] Bluetooth: SCO socket layer initialized
[   13.531017] Bluetooth: HCI UART driver ver 2.3
[   13.531040] Bluetooth: HCI UART protocol H4 registered
[   13.531050] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.531228] Bluetooth: HCI UART protocol BCM registered
[   13.847200] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.847222] Bluetooth: BNEP filters: protocol multicast
[   13.847245] Bluetooth: BNEP socket layer initialized
[   17.671237] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[   17.671847] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[   17.875562] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[   17.875870] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[  746.790146] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[  746.790556] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[  746.940993] usb 1-1.3: 3:1: cannot get freq at ep 0x82
[  746.941388] usb 1-1.3: 3:1: cannot get freq at ep 0x82

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Thu Nov 10, 2016 6:09 pm

hello i have uploaded dmesg

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Fri Nov 11, 2016 1:15 pm

can you tell me what is my problem??

User avatar
RaTTuS
Posts: 10829
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: USB camera interface with raspberry pi

Fri Nov 11, 2016 2:45 pm

not directly
however
cannot get freq at ep 0x82
may mean that the camera is not getting enough power - do its LEDs come on when plugged in ?
what PSU are you powering the system by ?
do you get brown outs ?
I suspect the camera ..
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Fri Nov 11, 2016 3:15 pm

hi, camera have leds. and flash light. it work well. besides camera works very well with windows 7,ubuntu pc.
and it is usb camera.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14861
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: USB camera interface with raspberry pi

Fri Nov 11, 2016 4:25 pm

"cannot get freq at ep 0x82" is actually an audio error
https://github.com/raspberrypi/linux/bl ... ock.c#L317
I'm assuming your camera also has a mic built in. Seeing as the comment 2 lines later says "some devices don't support reading" I'm suspecting that doesn't actually matter.

RaTTuS is quite correct that it could be a power issue. Your camera may well work off Windows 7 and Ubuntu on a PC - neither of those are running off a 5V power adapter.
You don't say which variant of the Pi you are using. If it is anything other than an original model A or B, then the power LED also doubles as a brownout indicator. Does the power LED go out or flash at all on your Pi? If so then get a better power supply, or connect the camera via a powered USB hub.

You still haven't answered the question as to what you have actually tried on the Pi. fswebcam is one tool you mention and say it gave black images. What else? qv4l2 would be my suggestion.
You mention cheese worked on Ubuntu - have you tried that on the Pi?
What resolutions are you trying? The spec claims up to 25MPix (heavily upscaled), and that is almost guaranteed to fail.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Sat Nov 12, 2016 10:14 am

(1)my camera has built in mic
(2) my laptop is working on battery and i have powered on raspberry pi using usb plug. and when i am using web camera with raspberry pi, i have connected with it usb port of raspberry pi
(3)i have this raspberry pi .https://www.raspberrypi.org/products/ra ... 3-model-b/
(4) i have installed qv4l2 on raspberry pi. but i don't know how to use it. can you tell me how to use it??
(5) i am facing problem in installation in cheese

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Sat Nov 12, 2016 11:19 am

after installing cheese
when i run command cheese, i am getting this error

Code: Select all

Xlib:  extension "RANDR" missing on display ":1.0".
Xlib:  extension "RANDR" missing on display ":1.0".

(cheese:7773): GModule-CRITICAL **: g_module_close: assertion 'module->ref_coun$

(cheese:7773): Clutter-CRITICAL **: Unable to initialize Clutter: Failed to con$

** (cheese:7773): ERROR **: cheese-application.vala:86: Unable to initialize li$
Trace/breakpoint trap
i am using vnc server

rushin010
Posts: 70
Joined: Mon Sep 19, 2016 8:02 am

Re: USB camera interface with raspberry pi

Tue Nov 15, 2016 8:43 am

can anyone tell me about this problem??

or should i change my camera??

User avatar
RaTTuS
Posts: 10829
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: USB camera interface with raspberry pi

Tue Nov 15, 2016 10:17 am

how are you powering the RPI ?
what PSU are you using ?
what are it's specs ?
post a link to it
do you get brown outs ?
are you using a decent Micro USB lead ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 14861
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: USB camera interface with raspberry pi

Tue Nov 15, 2016 10:59 am

OK, so if Cheese isn't installing then ignore it.

Qv4l2. Boot or otherwise start the GUI. Open a terminal window and enter "qv4l2". It'll open a GUI window which allows you to select V4L2 device, resolution, frame rate, and any other parameter that the device advertises that it supports.
There's a start button somewhere on the top bar (seem to recall it being a red circle as per normal video record symbol, but could be wrong). That'll open the selected device and start it streaming. That's about the lowest level test app with a GUI that exists.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “General discussion”