Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature Measurement Support for the IMX477 #19

Closed
meawoppl opened this issue May 18, 2022 · 4 comments
Closed

Temperature Measurement Support for the IMX477 #19

meawoppl opened this issue May 18, 2022 · 4 comments

Comments

@meawoppl
Copy link
Contributor

I am interested in adding this support. I have a few hints about the process, but what is the obvious starting point?

@kbingham
Copy link
Collaborator

@6by9
Copy link
Collaborator

6by9 commented May 19, 2022

Adding V4L2_CID_TEMPERATURE vs using the hwmon API is debated in that thread, so not a resolved question.

Reg 0x0138 bit 0 to enable(1)/disable(0).
Reg 0x013A as a signed 8 bit value for the temperature. Range -20 to +80.
Regs 0x0136/0x0137 need to be written with the correct clock setup before reading.
21ms is required after enabling via 0x0138 before reading if not streaming, or 8 frames if it is streaming.

It relies on correct calibration data to be set in the OTP. If not written then 0x013a will report a fixed value. I don't know if the modules we produce have appropriate calibration or not. The value I'm getting back of 0x1b-0x1d look vaguely plausible.

@pinchartl
Copy link
Collaborator

@meawoppl What do you need the temperature for ? Is this something you would expect would be exposed to applications, or used internally by the algorithms to adapt image processing parameters ?

@naushir
Copy link
Collaborator

naushir commented Jun 23, 2022

I'll close this one, and we can track the progress of the patches at raspberrypi/rpicam-apps#306

@naushir naushir closed this as completed Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants