ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
125 stars 71 forks source link

Error when capturing with demo code for python ubuntu 18.04 #78

Closed amchagas closed 5 years ago

amchagas commented 5 years ago

now that I'm able to run the example code, I get the following error:

('Error capture image, rtn_val = ', 65318)

Any ideas or suggestions on what this might be?

thanks!

UCTRONICS commented 5 years ago

@amchagas Don't worry and our engineer will help you solve the problem. Does it keep going wrong or occasionally go wrong? Can you see any images? Please attach me some pictures for your error messages.

amchagas commented 5 years ago

Hi, thanks for the reply, here is a screenshot of the message (note that I tried running the python script as regular user and as su).

Also I get the error all the time, and can't see any images.

screenshot from 2018-10-26 08-12-23

UCTRONICS commented 5 years ago

@amchagas ('open fail,rtn_val = ', 65281) means can't find the USB camera, you can run the 'lsusb' command to check if the camera connects normally. if it connects normally, you will see the ID 52cb:52cb or ID 04b4:03f1. What's more, in order to solve your problem quickly, please tell me the UC number of your bottom board.

amchagas commented 5 years ago

Hey,

So lsusb gives me 52cb:52cb and the board I have is UC-391 rev.b

Thanks!

On Fri, 26 Oct 2018, 08:57 UCTRONICS, notifications@github.com wrote:

@amchagas https://github.com/amchagas ('open fail,rtn_val = ', 65281) means can't find the USB camera, you can run the 'lsusb' command to check if the camera connects normally. if it connects normally, you will see the ID 52cb:52cb or ID 04b4:03f1. What's more, in order to solve your problem quickly, please tell me the UC number of your bottom board.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/issues/78#issuecomment-433321516, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdOJjZGCrSMFF_ixyGCYZC1f5_VhCA0ks5uosBWgaJpZM4X5Il0 .

UCTRONICS commented 5 years ago

@amchagas Does it work normally now? If not, please add sudo to enable superuser permissions.

amchagas commented 5 years ago

no, unfortunately not... I'm adding sudo, but this is what I get: screenshot from 2018-10-26 10-43-42

amchagas commented 5 years ago

One question that might be silly, is the current code compatible with all arducam boards? (v1, v2 etc)

UCTRONICS commented 5 years ago

@amchagas Yes, this code is compatible with all of the Arducam boards. Maybe the camera has not connected normally.

amchagas commented 5 years ago

Hum. You mean the cable from the camera to the arducam board?

On Fri, 26 Oct 2018, 10:56 UCTRONICS, notifications@github.com wrote:

@amchagas https://github.com/amchagas Yes, this code is compatible with all of the Arducam boards. Maybe the camera has not connected normally.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/issues/78#issuecomment-433355107, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdOJu447Kd_YUkTSKDy7DAU3z1ywGc0ks5uotwygaJpZM4X5Il0 .

UCTRONICS commented 5 years ago

@amchagas Yes, If reconnect it and still not work normally, you can try it on windows platform. For the detail operations, please refer to the link https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Windows/GUI/USBTest

amchagas commented 5 years ago

Great, so changing the cable made everything work! Thanks for the support!

Also the cable was flipped on the camera side, (the way it came in the box. Just a heads up, so that other customers don't have the same problem.. )

On Fri, 26 Oct 2018, 11:01 UCTRONICS, notifications@github.com wrote:

@amchagas https://github.com/amchagas Yes, If reconnect it and still not work normally, you can try it on windows platform. For the detail operations, please refer to the link https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Windows/GUI/USBTest

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/issues/78#issuecomment-433356827, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdOJrWSGjp6s3ODrsPKDCYXSCzjLHR_ks5uot1_gaJpZM4X5Il0 .

UCTRONICS commented 5 years ago

@amchagas Great to hear you have solved your problem. Thanks for your advice.