Page 14 of 26 FirstFirst ... 491011121314151617181924 ... LastLast
Results 261 to 280 of 507
  1. #261  
    Quote Originally Posted by jp99 View Post
    This collaborative thread has been amazing - what we've learned about batteries, charging and their registries has finally taken the guesswork out of them. I appreciate what I've learned from all of you.
    I agree completely. There has been a lot of speculation about batteries ever since the Pre came out, this thread has been great learning experience!
  2.    #262  
    Quote Originally Posted by Xanadu73 View Post
    Same here, man. I'm testing this today to see what happens with my 1350mAh:


    Code:
    cd /sys/devices/w1*/32-*
    echo 0x6a10 > setreg
    echo 0x6be0 > setreg
    reboot
    Your script says that it make the battery "hold" 1317.550mAh. We'll see how long that *REALLY* lasts...


    M.
    ?? What script is telling that ??
    Setting getfull40 to 1350 will tell the battery it is rated as a 1350' even if it isn't. This was a test jp99? did trying to get the 1350 out of his seidio 1350 witch was a 1150'.
    At first it looked as if it worked, but after he recalibrated the battery he unfortunatly got the truth.
    Last edited by somline; 08/15/2010 at 11:49 AM.
  3.    #263  
    Quote Originally Posted by jp99 View Post
    This collaborative thread has been amazing - what we've learned about batteries, charging and their registries has finally taken the guesswork out of them. I appreciate what I've learned from all of you.
    Quote Originally Posted by Trekker View Post
    I agree completely. There has been a lot of speculation about batteries ever since the Pre came out, this thread has been great learning experience!
    Quote Originally Posted by davsalinas View Post
    I enjoyed learning about how the battery gets charged.
    Quote Originally Posted by jbg7474 View Post
    Wow! I'm stunned. Thanks for the great work!
    Yes guys, that was (still is) fun. Thanks for you assistance. I've learned alot about the Seidios and Mugens without even own one ;-)
  4. #264  
    Quote Originally Posted by jp99 View Post
    somline, what are the hex codes to restore getfull40 to 1150?
    has anybody asked what the codes for 1363 and 1183 are?

    Thanks

    Also, how do I set getage back to 100.0000?
  5. #265  
    Quote Originally Posted by e-gadget-guy View Post
    has anybody asked what the codes for 1363 and 1183 are?

    Thanks

    Also, how do I set getage back to 100.0000?
    Also, gee us the code maan! How is hex e60 - to 1350?
  6. #266  
    odd - after setting my ebay 1350 TO 1350 I get this.

    2010-08-16T06:55:11.990631Z [1539] palm-webos-device user.info powerd: {powerd}: BATTERY_IPC: (1166.400024mAh, 89%, 93%_ui, 30C, 70mA, 4201mV, authentic)
    2010-08-16T06:58:26.762908Z [1733] palm-webos-device user.info powerd: {powerd}: BATTERY_IPC: (1169.599976mAh, 89%, 93%_ui, 30C, 28mA, 4196mV, authentic)
    2010-08-16T06:59:23.206542Z [1790] palm-webos-device user.info powerd: {powerd}: BATTERY_IPC: (1315.199951mAh, 100%, 100%_ui, 31C, 40mA, 4201mV, authentic)
    2010-08-16T07:01:08.131652Z [1895] palm-webos-device user.info powerd: {powerd}: BATTERY_IPC: (1310.400024mAh, 99%, 100%_ui, 31C, -249mA, 4157mV, authentic)
    2010-08-16T07:05:13.131622Z [2140] palm-webos-device user.info powerd: {powerd}: BATTERY_IPC: (1300.800049mAh, 98%, 100%_ui, 32C, -102mA, 4148mV, authentic)

    Also, I did get bogus warnings.
    first at 85% and then at 100%

    root@palm-webos-device: cat /var/log/messages | grep "Bogus"
    2010-08-16T06:28:17.496032Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:28:17.506469Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:28:17.517211Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:28:17.527587Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:28:17.537994Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:28:17.548370Z [18994] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 85%
    2010-08-16T06:59:23.072052Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%
    2010-08-16T06:59:23.082489Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%
    2010-08-16T06:59:23.092926Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%
    2010-08-16T06:59:23.103454Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%
    2010-08-16T06:59:23.113708Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%
    2010-08-16T06:59:23.124053Z [1790] palm-webos-device user.warning powerd: {powerd}: w1_battery: Bogus battery level 100%

    So. please help me set it back to 1183.125

    Thanks
  7. Goyena's Avatar
    Posts
    893 Posts
    Global Posts
    894 Global Posts
    #267  
    @somline: do you think you'd be able to program something to make hotswaps doable? I guess by replicating whatever happens on boot up?

    Also: I doubt this is a large part behind the Pre's monumentally long 5-6 boot, but how long do you think the battery initialization takes?
  8.    #268  
    Quote Originally Posted by e-gadget-guy View Post
    Also, gee us the code maan! How is hex e60 - to 1350?
    Come down. This was an completely open investigation. Everything is posted already. Nobody was hiding anything.

    Age: Post #205
    FULL40: post #124
    Fomula: Post #232

    If you had ask more friendly i had given you the explanation of the usage of the formula.
  9.    #269  
    Quote Originally Posted by Goyena View Post
    @somline: do you think you'd be able to program something to make hotswaps doable? I guess by replicating whatever happens on boot up?

    Also: I doubt this is a large part behind the Pre's monumentally long 5-6 boot, but how long do you think the battery initialization takes?
    I'm awaiting a second battery. As soon I get I will test hot swap. There is already code in the kernel. So maybe I'm wrong and you can hot swap already. Since I didn't had more than one I don't know.
    I hot removed the battery once (test for another thread) and got allot of error messages and a very sluggish pre. Will post results soon.

    EDIT: each battery has it's on name (MAC). For each battery a new directory /sys/dev*/w1*/32-<mac of battery> has to be created with all the interface files (full40,getage ....). This is done at boottime.
    EDIT2: It's designed for multiple batteries.

    The linux part of the boot is really quick. You can login with ssh after a couple of seconds after bootup (still seeing the palm logo/or spinning ball). So it seems all the java and luna part is taking the time.
    Last edited by somline; 08/16/2010 at 02:35 AM.
  10. Goyena's Avatar
    Posts
    893 Posts
    Global Posts
    894 Global Posts
    #270  
    @somline Fascinating, all that about battery ID's/MAC addresses and boot directories...also from a law enforcement point of view. Who knew you could pull forensics evidence not only from the app data, but also the battery!!!
  11. #271  
    Hmmmm. Apparently my battery is getting a bit tired. Not sure where I got it from...might have been from a Centro.

    I have another one around here somewhere. Will have to try it out.

    getfull40 = 1183.125
    getage = 78.125
    getcapacity = 923.751
  12. #272  
    Argh, I did something wrong...

    I have one of those cheap 2300mAh batteries, and I couldn't have somline's script to finish charging (Pre was stopping before the full 4.x volt reading. I disabled the charge limiter on the phone and left it charging (and I fell asleep).

    Now I have a phone that maybe holds the full 2300mAh, but it doesn't know as I haven't been able to calibrate.

    It's been about 30 minutes and it's still at 0%. Right now it reads 3717mV.

    It suddenly shut down a while ago (hard shut down), and I plugged it on, left it on 4% and began the script again.

    I'm hoping that at some moment it will get to 3.4v before it sends the shutdown signal to the phone... *sigh*

    Will report when I'm done.

    But from what I saw, my battery really holds more charge than the stock, I just need to find out how much.

    Will it help if I set getfull40 to 2300 and try to calibrate?

    Thanks for all the info!
  13.    #273  
    Quote Originally Posted by NuttyBunny View Post
    Argh, I did something wrong...

    I have one of those cheap 2300mAh batteries, and I couldn't have somline's script to finish charging (Pre was stopping before the full 4.x volt reading. I disabled the charge limiter on the phone and left it charging (and I fell asleep).

    Now I have a phone that maybe holds the full 2300mAh, but it doesn't know as I haven't been able to calibrate.

    It's been about 30 minutes and it's still at 0%. Right now it reads 3717mV.

    It suddenly shut down a while ago (hard shut down), and I plugged it on, left it on 4% and began the script again.

    I'm hoping that at some moment it will get to 3.4v before it sends the shutdown signal to the phone... *sigh*

    Will report when I'm done.

    But from what I saw, my battery really holds more charge than the stock, I just need to find out how much.

    Will it help if I set getfull40 to 2300 and try to calibrate?

    Thanks for all the info!
    Sorry I didn't found a way to keep the pre from stopping calibrating (for some). I think disabling the overcharge fault doesn't help.
    I would increase full40. It doesn't harm (if you get the calibrating to work) as the age will be calculated accordantly.
    Good luck
  14. #274  
    Quote Originally Posted by somline View Post
    Sorry I didn't found a way to keep the pre from stopping calibrating (for some). I think disabling the overcharge fault doesn't help.
    I would increase full40. It doesn't harm (if you get the calibrating to work) as the age will be calculated accordantly.
    Good luck
    I tried to decypher the formula but I couldn't
    Could you explain it please?

    (or I could just ask you for the codes for 2300mAh, which I didn't)

    Thanks!
  15.    #275  
    Quote Originally Posted by NuttyBunny View Post
    I tried to decypher the formula but I couldn't
    Could you explain it please?

    (or I could just ask you for the codes for 2300mAh, which I didn't)

    Thanks!
    No problem ;-)

    Example for 1350mAh:
    Real formula:
    ((1350 * 20000) << 2) / 25000 = 4320 hex 10e0
    In short:
    1350 * 3,2 = 4320 hex 10e0
    echo 0x6a10 > setreg
    echo 0x6be0 > setreg

    Example for 2300mAh
    2300 * 3,2 = 7360 hex 1cc0
    echo 0x6a1c > setreg
    echo 0x6bc0 > setreg

    the "<<" is a bitshift left. One bitshift is *2 so two are *4. So 20000*4/25000=3,2

    AGAIN: Be careful with the 0x6a and 0x6b. Don't mistype them.
    These are adresses to registers you are changing. Mistyping means setting other register which may result in a disaster ;-)

    EDIT: Needs a reboot after changing to get active.
    EDIT2: Since this has to be integer arithmetic the result (before showing as hex) needs to have no decimal places.
    Last edited by somline; 08/17/2010 at 12:57 PM.
  16. #276  
    Excellent.

    I managed to discharge the battery to less than 3.4v after 3 shutdowns, I've disabled the overcharge protection and will try to calibrate w/o changing age40.

    Will post results.

    Thanks
  17. #277  
    somline:

    What is it you use to do the dec --> hex conversion? Just your brain? Or is there something online?


    M.
  18. #278  
    Quote Originally Posted by Xanadu73 View Post
    somline:

    What is it you use to do the dec --> hex conversion? Just your brain? Or is there something online?


    M.
    You can use most scientific calculators to do the conversion
  19.    #279  
    Quote Originally Posted by Xanadu73 View Post
    somline:

    What is it you use to do the dec --> hex conversion? Just your brain? Or is there something online?

    M.
    Sorry,
    I hope I could do in my brain. Probably to old for this. ;-)
    Quote Originally Posted by NuttyBunny View Post
    You can use most scientific calculators to do the conversion
    Thanks NuttyBunny,
    use scientific view for windows pc or programmer view (cmd 3) for mac calculator
    EDIT: Don't know for linux
  20. #280  
    Quote Originally Posted by NuttyBunny View Post
    You can use most scientific calculators to do the conversion

    OK, then I guess I'm confused. It's been quite a number of years since I've had to do this (I have an Associates Degree in Electronics but I honestly haven't need 80% of that knowledge since the mid 90's...)

    If I take one of the numbers you gave me for the 1350mAh: 0x147f

    hex: 147f
    dec: 5247
    Oct: 12177
    Bin: 1010001111111


    How do you get "1350" out of those?


    M.

Tags for this Thread

Posting Permissions