FreeCalypso > hg > ffs-data-bundle
view charging/c1xx/standard @ 6:cd0641c3611a
add README
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 06 Apr 2022 05:26:36 +0000 |
parents | fa09662fe3e2 |
children |
line wrap: on
line source
# This is the "standard" charging config for Mot C1xx phones running # FreeCalypso fw. The key points are: # # 1) The battery is charged to the full 4.2 V, not a lower voltage, # for traditional mobile phone usage patterns in which the user charges # the battery fully before going out. # # 2) The start threshold is set fairly high on the reasoning that if # the user connects the charging power source (which is not USB and thus # not required for computer connection), it means that she actually intends # to charge the battery, but it is set to 4100 mV instead of "always" # so that if the battery is really full, an explicit AT@CHG=1 command # or a future UI equivalent will be needed to force a charging start. # # 3) The restart threshold is a reasonable setting so if the phone is left # plugged into the charger for a long time, the user won't be surprised # with a battery that has run down significantly after the completion # of the initial charging cycle. start-threshold 4100 # mV restart-threshold 3900 # mV # Constant Voltage charging parameters mostly copied from Pirelli ci2cv-threshold 4245 # mV, lowered from Pirelli's 4250 cv-initial-setpoint 4220 # mV cv-ctrl-loop-high 4236 # mV cv-ctrl-loop-low 4170 # mV, bumped up from Pirelli's 4160 cv-dac-max-incr 8 # DAC units cv-dac-max-decr 50 # DAC units cv-ctrl-loop-sample-count 6 # our logic is simpler than Pirelli's overvoltage 4280 # mV, bumped up from Pirelli's 4270 # For the current settings, keep in mind that C1xx phones use a current # measurement resistor of 0.15R instead of TI's "canonical" value of 0.20R, # hence the conversion factor between mA and ADC/DAC numbers changes # accordingly. The CI current setting is based on what Motorola's fw # has been observed to set, but the end current setting is our own, # chosen empirically. ci-current 280 # DAC units, about 320 mA end-current 60 # ADC units, about 68 mA ichg-max-spike 26 # ADC units, about 30 mA ichg-low-samples-needed 30 # sample count # The apppropriate charging time limit and restart delay have yet to be # determined; for now we give it a super-generous 6 h charging time limit # and 2 h restart delay. charging-time-limit 21600 restart-delay 7200 # Motorola's fw does not seem to use the I2V offset mechanism, # but we use the same setting as Pirelli. i2v-offset 0x18 # register setting