ArduCAM_USB_Camera_Shield icon indicating copy to clipboard operation
ArduCAM_USB_Camera_Shield copied to clipboard

USB_CAMERA_DATA_LEN_ERROR

Open ldg810 opened this issue 5 years ago • 8 comments

Error log. The error occurs randomly. (Jeton Nano - AR0134)

Error capture image, rtn_val =  65316
Error capture image, rtn_val =  65316
USB_CAMERA_DATA_LEN_ERROR	RECEIVE_LENGTH:971776
Error capture image, rtn_val =  65316
USB_CAMERA_DATA_LEN_ERROR	RECEIVE_LENGTH:185344
Error capture image, rtn_val =  65316
USB_CAMERA_DATA_LEN_ERROR	RECEIVE_LENGTH:971776
Error capture image, rtn_val =  65316

ldg810 avatar Jun 05 '19 06:06 ldg810

Please let me know the USB camera shield board version.

ArduCAM avatar Jun 05 '19 14:06 ArduCAM

I am using usb 2.0 shield(http://m.vctec.co.kr/product/detail.html?product_no=11927&cate_no=65&display_group=1)

ldg810 avatar Jun 05 '19 22:06 ldg810

Thanks for your info, I guess it is old image. The Rev.A and Rev.B has no frame buffer, so the performance is not good, you have to reduce the pixel clock speed by adjust the PLL register settings. For Rev.C and Rev.D camera there is 32Mbyte frame buffer, there is no such issue.

ArduCAM avatar Jun 06 '19 01:06 ArduCAM

How do I adjust the PLL register settings?

stmoon avatar Jun 06 '19 12:06 stmoon

You can try to reduce the pll_multiplier resgister 0x3030 with lower value.

ArduCAM avatar Jun 06 '19 14:06 ArduCAM

I checked my usb camera shield. The Rev was D.

However, I tried to reduce the pixel clock speed as follows. It worked without error. (AR0134_960p_Color.json, "0x0018" => "0x0016" in third line of register_parameter)

"register_parameter" : [	
		["0x3028","0x0010"],
		["0x302e","0x0001"],
		["0x3030","0x0018"],   ==> ["0x3030","0x0016"],

Could you check the situtation? I guess I do not need to change parameter because my usb shield is Rev. D

ldg810 avatar Jun 07 '19 02:06 ldg810

You have to make sure if the USB2 camera shield is connected to the USB root hub, and no other USB device connected to the same root hub, or else they are rush for the USB bandwidth.

ArduCAM avatar Jun 09 '19 15:06 ArduCAM