AnsweredAssumed Answered

Change camera parameters on the fly (i2c)

Question asked by Janis Coders on Jul 8, 2013
Latest reply on Jul 17, 2013 by Janis Coders

Hi, we are using board based on QSB with camera ov5640, but I think this applies globally.

I would like to change specific camera parameters on the fly, without stopping video camera. For example, I have changed default i2c configuration values in ov5640.c driver, so that it goes into night mode (after reading datasheet on how to do it) when initialized. But now I would like to change one value in one of camera's i2c registers on the fly, but it doesn't work.

I have tried to add a character device interface for camera driver and then from there call the internal ov5640_write_reg() function, but it doesn't work this way. The i2c_master_send() returns -5. Does the driver somehow closes connection after it has sent initial parameters or is it blocking i2c?

Can someone help me please?

 

 

Thank you.

Outcomes