register value ov5640_read_reg(0x5587,&value) is zero

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

register value ov5640_read_reg(0x5587,&value) is zero

919件の閲覧回数
gbiradar
Contributor IV

Hi Guys,

I have first set the value in ioctl_s_ctrl --> V4L2_CID_BRIGHTNESS --> ov5640_write_reg(0x5587,0x40) --> 100millisecond delay -->  ov5640_read_reg(0x5587,&value) --> value = 64.

then i'm trying to read bright value from contrast register in ioctl_g_ctrl --> V4L2_CID_BRIGHTNESS --> ov5640_read_reg(0x5587,&value) --> value = 0, but the return value is zero and argument value is zero.

can any one has idea why the values are turning zero.

NOTE: delay of 100ms is just to read whether register value is resetting or not after writing.

regards

Ganesh Biradar

ラベル(5)
0 件の賞賛
返信
3 返答(返信)

696件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

The brightness control is not just writing a value to the 0x5587. You need to write 3 different registers to adjust the brightness. Please contact OmniVision or their supplier (the camera you buying from) to request the OV5640 Application Notes. In the application note, you can find the function to control the brightness.

0 件の賞賛
返信

696件の閲覧回数
gbiradar
Contributor IV

Hi jimmychan

jimmychan wrote:

The brightness control is not just writing a value to the 0x5587. You need to write 3 different registers to adjust the brightness. Please contact OmniVision or their supplier (the camera you buying from) to request the OV5640 Application Notes. In the application note, you can find the function to control the brightness.

yes what you said is correct it has three more register i have the document to set brightness value. but while i'm reading this particular register it returning zero value.

0 件の賞賛
返信

696件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

I am not sure if the value may also affected by other functions such as AEC. You may try to turn off other 'auto' features to test. I think you are better to contact OV for official technical support. Because most of their camera information/document are confidential.

0 件の賞賛
返信