ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

'USB transfer data lack error' #98

Open hyoooo2 opened 5 years ago

hyoooo2 commented 5 years ago

I tried 'usb2 camera shield' and OV5642 camera. Installation usb driver on windows 8.1 64bits was successfully done. Open device '0 AU2S-1848-0018' / 'Load OV5642_JPEG_QSXGA.cfg' from usbtest.exe had no problem and it showed 'USB camera init success!' in a message box. But Click play button was failed with error message 'USB transfer data lack error'. SDK guide has no further explanation about this error message. I tried 32bit usbtest.exe. Same result. What is this error? How can i fix it?

ArduCAM commented 5 years ago

Would you please show me the hardware setup photo? Which kind of board version of your USB camera shield? For more info , please read: http://www.arducam.com/docs/camera-breakout-board/5mp-ov5642/software-guide/

hyoooo2 commented 5 years ago

Here is version number of usb board i bought. UV-391 Rev.D

Camera breakout board info from read register is as follow. 0x300A read -> 0x56 0x300B read ->0x42

ArduCAM commented 5 years ago

I uploaded several config files in the guide : http://www.arducam.com/docs/camera-breakout-board/5mp-ov5642/software-guide/ please try it again. Thanks.

hyoooo2 commented 5 years ago

Thanks for quick response and configuration files. All of three configuration are working though 'USB transfer data index error' just after 'play'. But frame rate is terribly limited to 2-3 fps under only 'Display' option. I can hardly think my laptop(i7-3720qm, 16GB ram) has no strength to properly handle this streaming data. Any suggestion/help will be appreciated.

ArduCAM commented 5 years ago

The RAW or YUV data is too big for USB2.0 port at full resolution. I am optimize the frame rate now, will keep update soon. Please be patient.

ArduCAM commented 5 years ago

Using OV5642_RAW_2592x1944.cfg , add extra line REG = 0x3011, 0x18 or manually set from the GUI, you can get 8fps@5MP