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

Problems encountered by tmp401 drivers #344

Open
philo-micas opened this issue Oct 11, 2023 · 0 comments
Open

Problems encountered by tmp401 drivers #344

philo-micas opened this issue Oct 11, 2023 · 0 comments

Comments

@philo-micas
Copy link
Contributor

philo-micas commented Oct 11, 2023

Code Path:drivers/hwmon/tmp401.c

Issue:We used the TMP411 temperature sensor chip, which occasionally read the Issue of abnormal temperature values (255.2℃).

Regarding this issue, our solution is:

Issue reason:The TMP411 temperature reading exception is caused by the timeout mechanism of TMP411.
The following content is excerpted from the TMP411 data sheet

TIMEOUT FUNCTION
When bit 7 of the Consecutive Alert Register is set high,the TMP411 timeout function is enabled. The TMP411resets the serial interface if either SCL or SDA are held lowfor 30ms (typical) between a START and STOP condition.If the TMP411 is holding the bus low, it releases the busand waits for a START condition. To avoid activating thetimeout function, it is necessary to maintain acommunication speed of at least 1kHz for the SCLoperating frequency. The default state of the timeoutfunction is enabled (bit 7 = high).

At present, this issue can be resolved by modifying the driver and disabling the timeout mechanism of TMP411 when driving probe.

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

1 participant