Ticket #1181 (closed defect: fixed)
Battery temperature is incorrect [patch]
| Reported by: | andrew.paulsen@… | Owned by: | willie_chen@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | kernel | Version: | 2007.2 |
| Severity: | normal | Keywords: | |
| Cc: | buglog@…, werner@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
The battery temperature measurement currently does not work since it incorrectly
assumes that there is a 10k resistor in parallel with the thermistor. The
attached patch should fix it.
I also recalculated the look-up table so it rounds correctly. e.g. 24.7C would
have been rounded down to 24C before and is now 25C.
Attachments
Change History
comment:2 Changed 5 years ago by andrew.paulsen@…
I guessed B=3380 instead of 3370 so there is a tiny amount of error. I can
regenerate the table if you want, it's only one line in the scilab script.
Changed 5 years ago by andrew.paulsen@…
- Attachment gta01-ntc.patch added
Modifies NTC LUT & resistance calculations
Changed 5 years ago by andrew.paulsen@…
- Attachment ntc_moko.sci added
Scilab script: updated with correct B value
comment:5 Changed 5 years ago by andrew.paulsen@…
- attachments.description changed from Updated with correct B value to Scilab script: updated with correct B value
comment:6 Changed 5 years ago by andrew.paulsen@…
- attachments.description changed from Modified lookup table to match actual thermistor to Patch: Modified LUT, measurement equation, & sane error value
Note: See
TracTickets for help on using
tickets.

The resistor situation is as follows:
B is defined as B = (1/(25+273.15)-1/(50+273.15))-1 * ln(R25/R50)
where R25 = zero-power resistance at 25C, R50 = at 50C
(Nominal: R20 = 12070, R30 = 8320, R40 = 5839, R50 = 4171, R100 = 983)
Is the patch still correct given this information ?