Hi Joshua,

i2c transfer error:-121
   Description about the problem:     Acknowledgement from the sensor not received successfully.
  
Please Send your application across and let us know the re-creating sequence followed to get the i2c errors from the e-cam camera module.

FYI:
    We came with new type of flex cable for New hardware version of e-CAM boards and it can be ordered through e-con systems website.

Thanks and regards,
Ananth.


On Friday 03 December 2010 12:50 PM, Joshua Hintze wrote:
I know a number of the ECam developers visit and watch these mailing lists and their support email suggested I post questions here.

I have an issue with the ECam board with the 3 Megapixel imager. It works great for the most part and I've written an application to collect image snapshots based off their example.

My problem however is that occasionally (usually after some time has passed) the linux driver will begin throwing a bunch of i2c errors. For example:

ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
omap_v4l_read timeout - Frame count 0
ReadRetVal -1 != pix.sizeimage 6291456


However if I just simply remove the v4l2_driver and add it back in the camera re-initializes and works great for another say 30 minutes. I've already reduced the i2c clock frequency down to 100kHz. I've checked the flex cable and made sure it was seated properly.

Any other suggestions?

Thanks in advance.
------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________ gumstix-users mailing list gumstix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gumstix-users