Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Old clip+ battery: recompile with half CPU frequency ?
« previous next »
  • Print
Pages: [1]

Author Topic: Old clip+ battery: recompile with half CPU frequency ?  (Read 442 times)

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Old clip+ battery: recompile with half CPU frequency ?
« on: December 24, 2022, 02:49:08 AM »
Hi all,

I've a Sansa Clip+ (6 yrs old) which I use mostly for podcast with very low CPU demand (OGG, bitrate 16Kb/s) while I hear music in my "new" FIIO M3k.

Battery in Clip+ is lasting less and less (50% original time):

If I recompile Rockbox with half normal CPU Frequency (19,2 MHz) and half boost CPU frequency (96 MHz) do you think I could save some battery time and still have a usable player (no problem for small lag in starting), hearing podcast or simple music mp3 ?

Thanks for your help
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9215
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #1 on: December 24, 2022, 10:51:03 AM »
I doubt you'd save much. You'll be running at a steady 38 MHz stock so about as low as it gets.

I'd replace the battery if it's failed.
Logged

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #2 on: December 25, 2022, 02:13:50 AM »
So you don't see a lot of battery saving (>10% runtime) if CPU is working @19,2 MHz instead of 38,4 MHz ?
Battery is still usable but with a limited runtime (10 hrs aprox.).  I guess in a year it will be much less.

Thanks for your advice

PS I searched this file firmware/target/arm/as3525/clock-target.h and it seems 38,4 MHz is already the lowest frequency, no 19,2 MHz available.
« Last Edit: December 25, 2022, 02:52:06 AM by g.orlandini »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #3 on: December 25, 2022, 03:21:31 AM »
I did a lot of testing on the clip+ I actually took and added a current shunt inline with the battery
when I was looking to optimize the runtime of the device

Its been a long time but IIRC the biggest driver of power use was the display
the voltage tweaks to the CPU that caused problems for so long were within measurement error

best things to extend the battery life:
backlight exemptions,
codecs that take less RAM and are lightweight for decoding by the CPU
leaving audio processing off

for better battery longevity
don't fully charge or fully discharge the battery liion doesn't like either extreme

Logged

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #4 on: December 25, 2022, 01:13:15 PM »
You're right, thanks for your battery saving's advices. I'll try to save my clip+ as much as possible.
Logged

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #5 on: January 18, 2023, 12:14:08 PM »
I noted the old battery was charging at maximum Voltage (4.18 V) even when starting with a low battery level (30-40%). I guess battery life should be improved with a slower charging current and more important with a lower voltage (of course, at a cost of a longer charging time and a small loss in total battery capacity).

I've found in "/rockbox/firmware/target/arm/as3525/powermgmt-target.h" #define BATT_CHG_V and #define BATT_CHG_I which I guess control battery charging setting.
Is it OK to change default values (CHG_V_4_20V - CHG_I_140MA) with those (CHG_V_4_10V - CHG_I_70MA) written below to lower battery charging to 4,1 V - 70 mA?

#define BATT_CHG_V          CHG_V_4_10V
#define BATT_CHG_I          CHG_I_70MA

Any other settings to control clip+ battery charge to 4,1 V - 70 mA in a safe way?

Thanks to share your opinion (I'm a newbie and I prefer to ask experts)
« Last Edit: January 18, 2023, 12:31:31 PM by g.orlandini »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9215
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #6 on: January 18, 2023, 01:06:38 PM »
Lowering the battery charge voltage won't slow charging, it'll just prevent you from charging to 100%.  You can reduce charging speed by changing the current.
Logged

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #7 on: January 19, 2023, 02:14:02 AM »
Thanks for your answer.

I guess that If I write #define BATT_CHG_V          CHG_V_4_10V in "/rockbox/firmware/target/arm/as3525/powermgmt-target.h" then max charging voltage is 4.1 Volts.

I guess that if I write #define BATT_CHG_I          CHG_I_70MA in "/rockbox/firmware/target/arm/as3525/powermgmt-target.h" then max charging current is 70 mA.

My question as a newbie is:

Are there other files to change other than "/rockbox/firmware/target/arm/as3525/powermgmt-target.h" in order to charge battery @ 4.1V - 70 mA?

Thanks to all
 
Logged

Offline g.orlandini

  • Member
  • *
  • Posts: 30
Re: Old clip+ battery: recompile with half CPU frequency ?
« Reply #8 on: January 20, 2023, 07:20:53 AM »
I've recompiled Rockbox with:

#define BATT_CHG_V          CHG_V_4_05V
#define BATT_CHG_I          CHG_I_55MA

and so far it looks OK (charging limit voltage @ 4,05V and limit current @ 55mA).

Thanks
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Old clip+ battery: recompile with half CPU frequency ?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.048 seconds with 17 queries.