This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Capturing USB 5M Camera from USB 2.0 port

Other Parts Discussed in Thread: AM1808

Hi,

I am working on AM1808 platform. I have two USB ports available in my  target. One USB configured as host
and using this port for loading and copying the files from AM1808 target to Pendrive using main USB.
I have another min USB(USB2.0 OTG) available, i want to use this port for connecting my USB based 5M Camera(OV5640).


how can i configure this miniUSB functional for accessing the camera port. i want to use the both USBs(Pendrive & Camera) simultaneous usage.

Please suggest the steps to configure the driver selection under Linux menuconfig. what are the gadgets need to include in Linux. Please help me

Thanks,
Lofna

  • Moving this to the AM1X forum.

  • Hi

    When i used the VGA webcam with usb 1.1 Host one it is detected the driver and i am able to capture the images.

    The same camera i plugged to mini USB 2.0 (OTG) then it recognized the driver, but when i run my application it shows the below warning. 

    [video4linux2,v4l2 @ 0xfa2470] The driver changed the time per frame from 1/25 to 1/30
    uvcvideo: Failed to submit URB 0 (-90).
    [video4linux2,v4l2 @ 0xfa2470] ioctl(VIDIOC_STREAMON): Message too long
    /dev/video0: Message too long

    why this is happening USB 1.1 and USB 2.0.

    Please help me.

    Thanks,

    Francis 

  • Hi Lofna,

    Lofna says said:
    Please suggest the steps to configure the driver selection under Linux menuconfig. what are the gadgets need to include in Linux.

    It seems to me, you are using both the USB ports ( USB 1.1 and OTG USB 2.0 ) as Host ports to detect USB devices, pendrives and USB webcams, then it must be simple.

    For configuring the USB 2.0 as Host, in Linux Menuconfig, do the selection as below.

    Device Drivers --->
    
        USB support --->
            <*> Support for Host-side USB
            --- Miscellaneous USB options
            [*] USB device class-devices
            --- USB Host Controller Drivers
            <*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)
            --- Platform Glue Layer
            [*] DA8xx/OMAP-L1x
                 <*>     MUSB DMA mode (TI CPPI4.1)  --->
                 [ ]     Disable DMA (always use PIO)
     


    For UVC class (webcams),

    Device Drivers ---> Multimedia support ---> Video capture adapters ---> V4L USB devices ---> <*> USB Video Class (UVC) [*] UVC input events device support  

    For UAC class, (Speakers, Microphone etc.) choose the following

    Sound card support ---> Advanced Linux Sound Architecture ---> USB sound devices ---> <*> USB Audio/MIDI driver  

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi,

     

    In my kernel tree this driver “MUSB DMA mode (TI CPPI4.1)” option is not available to my platform.

     

    I have changed some code in under uvc drivers. When I run my Camera application the below error got it.

     

    It has identified the external USB camera driver and created the node under /dev/video0. But there is no display and got the below error message.

     

    usb 1-1: new high speed USB device using musb_hdrc and address 3

    uvcvideo: Found UVC 1.00 device 5M Web Camera     (04f2:b355)

    input: 5M Web Camera     as /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input3

     

    root@am180x-evm:/home# ./camera

    frame width=272

    frame height=480

    uvcvideo: Failed to submit URB 0 (-90).

    Start Capture: Message too long

    VIDIOC_STREAMON: Message too long

    Snapshot

     

    Please suggest me.

     

    Thanks,

    Lofna

  • Hi Lofna,

    So, it seems to me that the USB (UVC) driver works and it detects the USB camera.

    Now it is the problem with capturing the image. Please check the type of resolution that the USB camera supports.

    And also give it a try with other manufacturer's camera.

     

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,

    Thanks for your response.

    I have tried with another Quick cam VGA web camera using USB 1.1 slot them I am able to capture the images.

     

    But the same camera I want to plug to USB 2.0 slot and expecting the same result using my application, but

    But my USB 2.0 slot is working with PenDrive concept.

     

    it gives the sames below warning:

    uvcvideo: Failed to submit URB 0 (-90).

    Start Capture: Message too long

    VIDIOC_STREAMON: Message too long

    Please give any suggestions to modifying the uvc driver.

    Thanks,

    Lofna

  • Hi Shankari,

    Any suggestions could you update on my issue.

    Thanks,

    Francis