view charging/pirelli/manual @ 9:f316294a3ad0 default tip

batteries/pirelli: add battery bars thresholds
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 05 Nov 2020 20:53:29 +0000
parents bcc8f3cf1bc1
children
line wrap: on
line source

# This charging config is intended for those usage scenarios in which your
# Pirelli phone runs FreeCalypso fw only occasionally, with manual loading
# via fc-xram for every session, and when you desire to have the ability
# to charge when running FC fw, but not have charging happen automatically
# on every fc-xram run.  With this config charging will only happen when
# explicitly requested via AT@CHG=1.

start-threshold			never
restart-threshold		3900	# mV

# Constant Voltage charging magic following Pirelli's fw

ci2cv-threshold			4250	# mV
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

# current settings, all in ADC/DAC native units

ci-current			610	# DAC units
end-current			122	# ADC units
ichg-max-spike			35	# ADC units
ichg-low-samples-needed		30

i2v-offset			0x18	# register setting