Ignore:
Timestamp:
Nov 1, 2025, 5:29:27 PM (44 hours ago)
Author:
f.jahn
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/SES/src/eeprom.c

    r35 r38  
    223223        /* iBatFull                                     */                                                                                      10,                             // I-batt full 10%, 10A bei 100Ah akku
    224224        /* tBatFull                                     */                                                                                      2,                              // t-batt full 2 Sekunden
    225         /* uBatFull                                     */                                                                                      0,                              // 14V olt Ubatt full, Neu: Bei 0: Erkung von Lipro LVP als 0%
    226         /* uBatEmpty                            */                                                                                      11312,                          // 11,312V Ubatt Empty
     225#if defined SYSTEM_VOLTAGE_12V
     226        /* uBatFull                                     */                                                                                      14000,                          // 14V olt Ubatt full, Neu: Bei 0: Erkung von Lipro LVP als 0%
     227        /* uBatEmpty                            */                                                                                      12400,                          // 11,312V Ubatt Empty
     228#elif defined SYSTEM_VOLTAGE_24V
     229        /* uBatFull                                     */                                                                                      28000,                          // 14V olt Ubatt full, Neu: Bei 0: Erkung von Lipro LVP als 0%
     230        /* uBatEmpty                            */                                                                                      24800,                          // 11,312V Ubatt Empty
     231#elif defined SYSTEM_VOLTAGE_48V
     232        /* uBatFull                                     */                                                                                      56000,                          // 14V olt Ubatt full, Neu: Bei 0: Erkung von Lipro LVP als 0%
     233        /* uBatEmpty                            */                                                                                      49600,                          // 11,312V Ubatt Empty
     234#else
     235  #error "System voltage not defined"
     236#endif
     237
     238
    227239        /* socCalcMode                          */                                                                                      1,                              // SoC calculation mode: 0(default)
    228240        /* cellRatedDischargeTime       */                                                                                      2,                              // cell rated current discharge time [C/x]. For example, if 40Ah cell is rated as 0.5c, then rated discharge time is 2
    229 
     241#if defined SYSTEM_VOLTAGE_12V
    230242        /* lvpStart     */                                                                                                                      12000,                  // uint16_t lvpStart; Spannung ab der die LOW Voltage Protection aktiv wird in mV
    231243        /* lvpStop      */                                                                                                                      12500,                  // uint16_t lvpStop; Spannung ab der die LOW Voltage Protection wieder inaktiv wird
    232244        /* ovpStart     */                                                                                                                      14800,                  // uint16_t  ovpStart; Spannung ab der die OVER Voltage Protection aktiv wird in mV
    233245        /* ovpStop      */                                                                                                                      14000,                  // uint16_t  ovpStop; Spannung ab der die OVER Voltage Protection wieder inaktiv wird
     246#elif defined SYSTEM_VOLTAGE_24V
     247        /* lvpStart     */                                                                                                                      24000,                  // uint16_t lvpStart; Spannung ab der die LOW Voltage Protection aktiv wird in mV
     248        /* lvpStop      */                                                                                                                      25000,                  // uint16_t lvpStop; Spannung ab der die LOW Voltage Protection wieder inaktiv wird
     249        /* ovpStart     */                                                                                                                      29600,                  // uint16_t  ovpStart; Spannung ab der die OVER Voltage Protection aktiv wird in mV
     250        /* ovpStop      */                                                                                                                      28000,                  // uint16_t  ovpStop; Spannung ab der die OVER Voltage Protection wieder inaktiv wird
     251
     252#elif defined SYSTEM_VOLTAGE_48V
     253        /* lvpStart     */                                                                                                                      48000,                  // uint16_t lvpStart; Spannung ab der die LOW Voltage Protection aktiv wird in mV
     254        /* lvpStop      */                                                                                                                      50000,                  // uint16_t lvpStop; Spannung ab der die LOW Voltage Protection wieder inaktiv wird
     255        /* ovpStart     */                                                                                                                      59200,                  // uint16_t  ovpStart; Spannung ab der die OVER Voltage Protection aktiv wird in mV
     256        /* ovpStop      */                                                                                                                      56000,                  // uint16_t  ovpStop; Spannung ab der die OVER Voltage Protection wieder inaktiv wird
     257#else
     258  #error "System voltage not defined"
     259#endif
     260
     261
    234262
    235263#if (DEVICETYPE == 500)
     
    247275        /* chargeStopHighTemperatureStart       */                                                                      6000,                   // 80°C int16_t chargeStopHighTemperatureStart; Abschalttemperatur Ladung wegen zu hoher Temperatur
    248276        /* chargeStopHighTemperatureStop        */                                                                      5500,                   // 75°C int16_t chargeStopHighTemperatureStop;  Wiedereinschalttemperatur
    249         /* chargeStopLowTemperatureStart        */                                                                      -3000,                  // -35°C int16_t chargeStopLowTemperatureStart; Abschalttemperatur Ladung wegen zu niedriger Temperatur
    250         /* chargeStopLowTemperatureStop         */                                                                      -2500,                  // -30°C int16_t chargeStopLowTemperatureStop; Wiedereinschalttemperatur
     277        /* chargeStopLowTemperatureStart        */                                                                      -2500,                  // -35°C int16_t chargeStopLowTemperatureStart; Abschalttemperatur Ladung wegen zu niedriger Temperatur
     278        /* chargeStopLowTemperatureStop         */                                                                      -2000,                  // -30°C int16_t chargeStopLowTemperatureStop; Wiedereinschalttemperatur
    251279        /* dischargeStopHighTemperatureStart*/                                                                  6000,                   // 80°C int16_t dischargeStopHighTemperatureStart; Abschalttemperatur Entladung wegen zu hoher Temperatur
    252280        /* dischargeStopHighTemperatureStop     */                                                                      5500,                   // 75°C int16_t dischargeStopHighTemperatureStop; Wiedereinschalttemperatur
     
    256284        /* uBatEmptyCompStartTemp       */                                                                                      50,                             // 5°C We start calculating uBatEmpty compensations only when cell temperature is lower than this value
    257285        /* uBatEmptyCompStopTemp        */                                                                                      -200,                   // -20°C We stop calculating uBatEmpty compensations when cell temperature is lower than this value
     286#if defined SYSTEM_VOLTAGE_12V
    258287        /* uBatEmptyCompStopVolt        */                                                                                      10000,                  // 10V uBatEmpty voltage at temperatures lower than -20°C
     288#elif defined SYSTEM_VOLTAGE_24V
     289/* uBatEmptyCompStopVolt        */                                                                                              20000,                  // 10V uBatEmpty voltage at temperatures lower than -20°C
     290#elif defined SYSTEM_VOLTAGE_48V
     291/* uBatEmptyCompStopVolt        */                                                                                              40000,                  // 10V uBatEmpty voltage at temperatures lower than -20°C
     292#else
     293  #error "System voltage not defined"
     294#endif
    259295
    260296        /* extraDischargeStrom_mA       */                                                                                      7,                              // mA, current that LiPro consumes itself
     
    262298        /* Battery Empty Detection Mode*/                                                                               1,                              // Auto, from BMS
    263299        /* AUX MODE */                                                                                                                  AUX_MODE_HEATER,// Heizung
     300#if defined SYSTEM_VOLTAGE_12V
    264301        /* AUX SETPOINT ON */                                                                                                   13600,                  // Erkennung Ladegerät ab 13,6V
     302#elif defined SYSTEM_VOLTAGE_24V
     303        /* AUX SETPOINT ON */                                                                                                   27200,                  // Erkennung Ladegerät ab 13,6V
     304#elif defined SYSTEM_VOLTAGE_48V
     305        /* AUX SETPOINT ON */                                                                                                   54400,                  // Erkennung Ladegerät ab 13,6V
     306#else
     307#error No valid device type
     308#endif
    265309        /* AUX SETPOINT OFF */                                                                                                  100,                    // Batterie Entladung wird erkannt bei -100mA
    266310        /* AUX Inverted */                                                                                                              0,                              // Nicht invertiert
Note: See TracChangeset for help on using the changeset viewer.