comparison charging/c1xx/standard @ 1:fa09662fe3e2

batteries, charging: import from fc-battery-conf repository
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 04 Apr 2022 07:56:53 +0000
parents
children
comparison
equal deleted inserted replaced
0:6ef2edd7ab6d 1:fa09662fe3e2
1 # This is the "standard" charging config for Mot C1xx phones running
2 # FreeCalypso fw. The key points are:
3 #
4 # 1) The battery is charged to the full 4.2 V, not a lower voltage,
5 # for traditional mobile phone usage patterns in which the user charges
6 # the battery fully before going out.
7 #
8 # 2) The start threshold is set fairly high on the reasoning that if
9 # the user connects the charging power source (which is not USB and thus
10 # not required for computer connection), it means that she actually intends
11 # to charge the battery, but it is set to 4100 mV instead of "always"
12 # so that if the battery is really full, an explicit AT@CHG=1 command
13 # or a future UI equivalent will be needed to force a charging start.
14 #
15 # 3) The restart threshold is a reasonable setting so if the phone is left
16 # plugged into the charger for a long time, the user won't be surprised
17 # with a battery that has run down significantly after the completion
18 # of the initial charging cycle.
19
20 start-threshold 4100 # mV
21 restart-threshold 3900 # mV
22
23 # Constant Voltage charging parameters mostly copied from Pirelli
24
25 ci2cv-threshold 4245 # mV, lowered from Pirelli's 4250
26 cv-initial-setpoint 4220 # mV
27 cv-ctrl-loop-high 4236 # mV
28 cv-ctrl-loop-low 4170 # mV, bumped up from Pirelli's 4160
29 cv-dac-max-incr 8 # DAC units
30 cv-dac-max-decr 50 # DAC units
31 cv-ctrl-loop-sample-count 6 # our logic is simpler than Pirelli's
32 overvoltage 4280 # mV, bumped up from Pirelli's 4270
33
34 # For the current settings, keep in mind that C1xx phones use a current
35 # measurement resistor of 0.15R instead of TI's "canonical" value of 0.20R,
36 # hence the conversion factor between mA and ADC/DAC numbers changes
37 # accordingly. The CI current setting is based on what Motorola's fw
38 # has been observed to set, but the end current setting is our own,
39 # chosen empirically.
40
41 ci-current 280 # DAC units, about 320 mA
42 end-current 60 # ADC units, about 68 mA
43 ichg-max-spike 26 # ADC units, about 30 mA
44 ichg-low-samples-needed 30 # sample count
45
46 # The apppropriate charging time limit and restart delay have yet to be
47 # determined; for now we give it a super-generous 6 h charging time limit
48 # and 2 h restart delay.
49
50 charging-time-limit 21600
51 restart-delay 7200
52
53 # Motorola's fw does not seem to use the I2V offset mechanism,
54 # but we use the same setting as Pirelli.
55
56 i2v-offset 0x18 # register setting