Rockbox General > Rockbox General Discussion

Change rockbox battery reading

(1/2) > >>

Jimbone:
Hi there, I just finished this build and have posted a instructable at http://www.instructables.com/id/I-Sore-2000GB-2tb-Ipod
But I have used a patch from beyond winds msata mod to get it running or I will get a error and also my battery is running 2 things at once so I am getting the wrong reading.
What I have found is after a few minutes it settles out but when starting up it is low and sometimes will misread the battery and shut off the player before it needs to be.
I have gotten 100 hours if I just let it run non stop but only say 50 or so if I use it by turning it off and on since it takes a bit for it to get a proper reading so reads zero percentage right away and shuts off.
How would I go about fixing this and also what is it that makes beyond winds msata patch work over the rockbox default files?

[Saint]:
The aforementioned patch wasn't ever sought for inclusion (as memory recalls) because although it "fixed" the issue with some modified devices, it does so in a really inelegant state-dependent way.

It basically just keeps trying a few more times, to put it simply. That's the inelegant part. The state-dependant part is that the timing of it assumes the device won't be boosted at that moment, which is a pretty huge assumption.

If someone were to write and submit the right fix, instead of just a fix, and doing so didn't cause any undue distress to anyone without modified hardware then I sincerely doubt there would be any problems getting it upstream.


[Saint]

dreamlayers:
Regarding battery shutoff, probably the drive uses a lot of power while spinning up and this drives battery voltage down because of battery internal resistance and other factors. Then the battery recovers. Later on, Rockbox averages battery voltage and skips such dips, but at startup if it takes a measurement that's low, it may behave as if the battery is low.

I have the same problem on my Archos Recorder V2. I'm not sure if that is just because the battery is old, so it has increased internal resistance.

You might want to try something like delaying at the Start of power_thread() or returning a higher percent from init_battery_percent()

Jimbone:
That looks exactly what I need to get the full use of my battery thanks. I will look into how to edit the firmware on this site and adjusting the delay. Just wondering if any risk to the player if I delay the power reading?

dreamlayers:
Lithium ion and lithium polymer batteries get damaged if discharged too deeply. If you're simply messing with readings at startup, that should be fine unless you abuse it and keep turning on the player repeatedly once the battery has gotten dangerously low.

A 5th gen iPod has hardware-based low battery shutdown controlled via the PCF chip. In the past with an old battery it definitely worked and cut power unexpectedly during demand peaks when the battery is low. This feature can be customized and even disabled I think, and Rockbox leaves it configured properly.

Since you're building something larger, you could also use a battery protection board. Those are inexpensive and easily available.

Navigation

[0] Message Index

[#] Next page

Go to full version