ArduCAM_USB_Camera_Shield
ArduCAM_USB_Camera_Shield copied to clipboard
USB_CAMERA_DATA_LEN_ERROR
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
Please let me know the USB camera shield board version.
I am using usb 2.0 shield(http://m.vctec.co.kr/product/detail.html?product_no=11927&cate_no=65&display_group=1)
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.
How do I adjust the PLL register settings?
You can try to reduce the pll_multiplier resgister 0x3030 with lower value.
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
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.