• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » usb webcam can't work on DM365
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

usb webcam can't work on DM365

This question is not answered
Peter Chen14428
Posted by Peter Chen14428
on Jul 23 2010 03:12 AM
Prodigy245 points

Hello :

I have a problem with usb webcam working on dm365.
I load usbcore and musb_hdrc modules first, then I plug in the usb webcam.
After that I load the usb webccam driver module gspca.ko, I got the following messages:

/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: USB GSPCA cam
era found.(ZC3XX)
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca5xx_prob
e:4275] Camera type JPEG
/home/pencil722/獢/DM365/useful/gspcav1-20071224/Vimicro/zc3xx.h: [zc3xx_con
fig:669] Find Sensor HV7131R(c)
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca5xx_getc
apability:1249] maxw 640 maxh 480 minw 160 minh 120
usbcore: registered new driver gspca
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: gspca driver
01.00.20 registered

I think this message means the usb webcam devices is working with the driver.
And I can see the /dev/video.
But When I ran the DVSDK sample code encode, I got the following error message:

/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: init isoc: us
b_submit_urb(0) ret -28
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [gspca_set_is
oc_ep:945] ISO EndPoint found 0x81 AlternateSet 6
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: init isoc: us
b_submit_urb(0) ret -28
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [gspca_set_is
oc_ep:945] ISO EndPoint found 0x81 AlternateSet 5
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca50x_move
_data:1611] ISOC data error: [1] len=0, status=-18

/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca50x_move
_data:1611] ISOC data error: [2] len=0, status=-18

I don't know what happened? Is the sample code wrong? Or the driver can't work for dm365?
can anyone help solving the problems.

Peter. 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • zanget
    Posted by zanget
    on Sep 07 2011 21:34 PM
    Expert1840 points

    there seems to no sample way to get it work with the high-bandwidth iso mode except hack the source code, cus i found the hardware handle:

    3.2.4.1.3 Error Handling
    If a CRC or bit-stuff error occurs during the reception of a packet, the packet will still be stored in the FIFO
    but the DATAERR_NAKTIMEOUT bit of HOST_RXCSR (bit 3) is set to indicate that the data may be
    corrupt

    if we donot take care of the NAKTIMEOUT errror, what will happen with more then 1kb data package? is it the only way to make it works ?

    Thanks in advance

    Regards, Mike

    usb webcam usb camera DM365 High-bandwidth ISO mode
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ajay
    Posted by Ajay
    on Sep 16 2011 07:39 AM
    Genius9470 points

    Mike,

    DM365 doesn't support high bandwidth iso transfer.

    Regards,

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zanget
    Posted by zanget
    on Sep 16 2011 08:49 AM
    Expert1840 points

    hi, Ajay

     

    yes,you are right.

     it was confirmed with the FAE.

    regards,Mike

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pradeep Acharya
    Posted by Pradeep Acharya
    on Apr 15 2012 04:53 AM
    Intellectual930 points

    Hi  Ajay,

    Is  high bandwidth iso transfer not possible because of hardware limitation or is it a s/w problem ? After going through SPRUFH9A  document section (3.3.2.1 ), i feel that it could be a s/w problem. Rx buffer size can be between 1 to 64k size

    As per section 3.3.2.7 i,,e Transparent Mode and RNDIS Mode Receive DMA Operation

    RNDIS mode DMA is used to receive DMA packets which are larger than USB MaxPktSize. This is
    accomplished by breaking the larger packet into smaller packets, not larger than USB MaxPktSize. This
    implies that multiple USB packets of MaxPktSize will be received and transferred together as a single
    large DMA packet and the DMA interrupt is generated only at the end of the complete reception of DMA
    packet.

    From the above definition enabling RNDIS mode DMA, the usb host should be able to receive the packets with larger size in isochronous transfer. Is there any patch which fixes the issue ?

    The same problem was seen on DM 8148 but got fixed after applying the patch. I feel the same should be the case with DM 368

    regards

    pradeep

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ajay
    Posted by Ajay
    on Apr 15 2012 07:18 AM
    Genius9470 points

    Pradeep,

    It depends on platform in use. TI platforms DM365, DM644x, DM646x don't support high bandwidth iso tramsfer in hardware but AM35x, DM37x, TI814x, TI816x and AM335x do support it.

    You can refer to latest kernel tree for TI814x at http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/TI814XPSP_04.01.00.07 which gets updated as and when there is a fix available.

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vipul mahajan
    Posted by vipul mahajan
    on Nov 01 2012 07:06 AM
    Intellectual860 points

    Hi Ajay,

    As stated by you "DM365 doesn't support high bandwidth iso transfer.", does it means usb wifi modules will also not work properly?

    Actually right now we are struggling with RTL8187L and RTL8188RU based USB wifi modules. Driver is ported successfully but after sometimes when load increases the Wifi modules behaves weird with  disconnections and it can only be reconnected after reboot.


    I am using DM365EVM with DVSDK 4.02  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use