FreeCalypso > hg > fc-battery-conf
annotate charging/c1xx/permacharge @ 3:21e5933fcc7c
C1xx charging configs created
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 16 Dec 2017 17:55:16 +0000 |
parents | |
children |
rev | line source |
---|---|
3
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # This charging config is intended for those usage scenarios in which the |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # phone has the charging power source permanently connected 24x7x365, |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # e.g., if it is used as a pseudo-modem connected to a server. |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # This config maintains the battery at a lower charge level in order to |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # prolong its life; on-battery runtime is not relevant when the phone is |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # permanently connected to a server or somesuch. |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 start-threshold 3750 # mV |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 restart-threshold 3750 # mV |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 charge-to-voltage 3920 # mV |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 overvoltage 4000 # mV |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 # For the current settings, keep in mind that C1xx phones use a current |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 # measurement resistor of 0.15R instead of TI's "canonical" value of 0.20R, |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 # hence the conversion factor between mA and ADC/DAC numbers changes |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 # accordingly. The CI current setting is based on what Motorola's fw |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 # has been observed to set, but the end current setting is our own. |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 ci-current 280 # DAC units, about 320 mA |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 end-current 88 # ADC units, about 100 mA |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 # Motorola's fw does not seem to use the I2V offset mechanism, |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 # but we use the same setting as Pirelli. |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
21e5933fcc7c
C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 i2v-offset 0x18 # register setting |