On 05.02.2019 20:54, Tamás Kovács wrote:
What's the good implement for this. 1) Create a config, and user can set it 2) Automatically get from VIN number and set it.
You can set config value, but set the default value by calculating the voltage. There are no overlap of the voltage of the 88cell pack and the 80 cell pack. 80 cells at 4.10V = 328.0V (target voltage while charging (CV)) 80 cells at 4.12V = 329.6V (max volt when regen) 88 cells at 3.00V = 264.0V In order to get close to the max of the 80 cell the 88 cell pack have to have an average cell-volt of 2.61V, while the BMS reports in my logs reports 8.5%SOC at a average cell voltage of 3.09. if (StandardMetrics.ms_v_bat_voltage->AsFloat() > 340 ) { // set gauge for 88 cell back } else { //set gauge for 80 cell pack }