TI E2E Community
usb webcam can't work on DM365
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 camera found.(ZC3XX)/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca5xx_probe:4275] Camera type JPEG/home/pencil722/獢/DM365/useful/gspcav1-20071224/Vimicro/zc3xx.h: [zc3xx_config:669] Find Sensor HV7131R(c)/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca5xx_getcapability:1249] maxw 640 maxh 480 minw 160 minh 120usbcore: registered new driver gspca/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: gspca driver01.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: usb_submit_urb(0) ret -28/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 6/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: init isoc: usb_submit_urb(0) ret -28/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 5/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca50x_move_data:1611] ISOC data error:  len=0, status=-18
/home/pencil722/獢/DM365/useful/gspcav1-20071224/gspca_core.c: [spca50x_move_data:1611] ISOC data error:  len=0, status=-18I don't know what happened? Is the sample code wrong? Or the driver can't work for dm365?can anyone help solving the problems.
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:
18.104.22.168.3 Error HandlingIf a CRC or bit-stuff error occurs during the reception of a packet, the packet will still be stored in the FIFObut the DATAERR_NAKTIMEOUT bit of HOST_RXCSR (bit 3) is set to indicate that the data may becorrupt
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
DM365 doesn't support high bandwidth iso transfer.
If my reply answers your question then please click on the green button "Verify Answer"
yes,you are right.
it was confirmed with the FAE.
Is high bandwidth iso transfer not possible because of hardware limitation or is it a s/w problem ? After going through SPRUFH9A document section (22.214.171.124 ), i feel that it could be a s/w problem. Rx buffer size can be between 1 to 64k size
As per section 126.96.36.199 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 isaccomplished by breaking the larger packet into smaller packets, not larger than USB MaxPktSize. Thisimplies that multiple USB packets of MaxPktSize will be received and transferred together as a singlelarge DMA packet and the DMA interrupt is generated only at the end of the complete reception of DMApacket.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
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.
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
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.