[Ovmsdev] General trip & grid log proposal
Michael Balzer
dexter at expeedo.de
Mon Jan 25 00:08:20 HKT 2021
Everyone,
the trip & grid logs are now implemented as proposed.
I've made a small change to the trip log to include min/max values of
the tyre temperatures, pressures and health levels.
Documentation:
* https://docs.openvehicles.com/en/latest/userguide/notifications.html#grid-history-log
* https://docs.openvehicles.com/en/latest/userguide/notifications.html#trip-history-log
Note: both logs are disabled by default.
Regards,
Michael
Am 12.01.21 um 19:49 schrieb Michael Balzer:
> Everyone,
>
> followup to my previous mail, these are the record structures for the
> general trip & grid logs I would like to add.
>
> I'm going to implement this with configurable server hold times, with
> 0 = no server storage at all.
>
> As this has more potential for data privacy impact as the standard 24
> hour storage of telemetry records, I wouldn't enable the logs by
> default, but leave this decision to the user.
>
> Please check & provide feedback.
>
> Regards,
> Michael
>
>
> ====================================================================================================
>
> History type "*-LOG-Trip"
> Notification type "data", subtype "log.trip"
>
> OvmsMetricBool* ms_v_pos_gpslock;
> OvmsMetricFloat* ms_v_pos_latitude;
> OvmsMetricFloat* ms_v_pos_longitude;
> OvmsMetricFloat* ms_v_pos_altitude;
> OvmsMetricString* ms_v_pos_location; // Name of
> current location if defined
>
> OvmsMetricFloat* ms_v_pos_odometer;
>
> OvmsMetricFloat* ms_v_pos_trip; // Trip distance
> OvmsMetricInt* ms_v_env_drivetime; // Trip duration
> OvmsMetricInt* ms_v_env_drivemode; // Active drive
> profile number [1]
>
> OvmsMetricFloat* ms_v_bat_soc; // State of
> charge [%]
> OvmsMetricFloat* ms_v_bat_range_est; // Estimated
> range [km]
> OvmsMetricFloat* ms_v_bat_range_ideal; // Ideal range [km]
> OvmsMetricFloat* ms_v_bat_range_full; // Ideal range
> at 100% SOC & current conditions [km]
>
> OvmsMetricFloat* ms_v_bat_energy_used; // Main battery
> energy used on trip [kWh]
> OvmsMetricFloat* ms_v_bat_energy_recd; // Main battery
> energy recovered on trip [kWh]
> OvmsMetricFloat* ms_v_bat_coulomb_used;
> OvmsMetricFloat* ms_v_bat_coulomb_recd;
>
> OvmsMetricFloat* ms_v_bat_soh; // State of
> health [%]
> OvmsMetricString* ms_v_bat_health; // General
> textual description of battery health
> OvmsMetricFloat* ms_v_bat_cac; // Calculated
> capacity [Ah]
>
> OvmsMetricFloat* ms_v_bat_energy_used_total; // Battery
> energy used total (life time) [kWh]
> OvmsMetricFloat* ms_v_bat_energy_recd_total; // Battery
> energy recovered total (life time) [kWh]
> OvmsMetricFloat* ms_v_bat_coulomb_used_total; // Battery
> coulomb used total (life time) [Ah]
> OvmsMetricFloat* ms_v_bat_coulomb_recd_total; // Battery
> coulomb recovered total (life time) [Ah]
>
> OvmsMetricFloat* ms_v_env_temp; // Ambient
> temperature [°C]
> OvmsMetricFloat* ms_v_env_cabintemp; // Cabin
> temperature [°C]
> OvmsMetricFloat* ms_v_bat_temp; // Battery
> temperature [°C]
> OvmsMetricFloat* ms_v_inv_temp; // Inverter
> temperature [°C]
> OvmsMetricFloat* ms_v_mot_temp; // Motor
> temperature [°C]
> OvmsMetricFloat* ms_v_charge_12v_temp; // Temperature
> of DC/DC-converter [°C]
>
> OvmsMetricFloat* MAX(ms_v_tpms_temp); // Maximum tyre
> temperature
> OvmsMetricFloat* MIN(ms_v_tpms_pressure); // Minimum tyre
> pressure
> OvmsMetricFloat* MIN(ms_v_tpms_health); // Minimum tyre
> health
>
>
> ====================================================================================================
>
> History type "*-LOG-Grid"
> Notification type "data", subtype "log.grid"
>
> OvmsMetricBool* ms_v_pos_gpslock;
> OvmsMetricFloat* ms_v_pos_latitude;
> OvmsMetricFloat* ms_v_pos_longitude;
> OvmsMetricFloat* ms_v_pos_altitude;
> OvmsMetricString* ms_v_pos_location; // Name of current
> location if defined
>
> OvmsMetricFloat* ms_v_pos_odometer;
>
> OvmsMetricString* ms_v_charge_type; // Grid
> connection type
> OvmsMetricString* ms_v_charge_state; // charging,
> topoff, done, prepare, …
> OvmsMetricString* ms_v_charge_substate; //
> scheduledstop, scheduledstart, …
> OvmsMetricString* ms_v_charge_mode; // standard,
> range, performance, storage
> OvmsMetricFloat* ms_v_charge_climit; // Maximum
> charger output current [A]
> OvmsMetricFloat* ms_v_charge_limit_range; // Sufficient
> range limit for current charge [km]
> OvmsMetricFloat* ms_v_charge_limit_soc; // Sufficient
> SOC limit for current charge [%]
>
> OvmsMetricString* ms_v_gen_type; // Grid
> connection type
> OvmsMetricString* ms_v_gen_state; // TBD
> OvmsMetricString* ms_v_gen_substate; // TBD
> OvmsMetricString* ms_v_gen_mode; // TBD
> OvmsMetricFloat* ms_v_gen_climit; // Maximum
> battery output current [A]
> OvmsMetricFloat* ms_v_gen_limit_range; // Min range [km]
> OvmsMetricFloat* ms_v_gen_limit_soc; // Min SOC [%]
>
> OvmsMetricInt* ms_v_charge_time; // Duration of
> running charge session [sec]
> OvmsMetricFloat* ms_v_charge_kwh; // Energy
> charged into battery for running session [kWh]
> OvmsMetricFloat* ms_v_charge_kwh_grid; // Energy drawn
> from grid during running session [kWh]
> OvmsMetricFloat* ms_v_charge_kwh_grid_total; // Energy drawn
> from grid total (life time) [kWh]
>
> OvmsMetricInt* ms_v_gen_time; // Duration of
> running generator session [sec]
> OvmsMetricFloat* ms_v_gen_kwh; // Energy taken
> from battery for running session [kWh]
> OvmsMetricFloat* ms_v_gen_kwh_grid; // Energy sent
> to grid during running session [kWh]
> OvmsMetricFloat* ms_v_gen_kwh_grid_total; // Energy sent
> to grid total (life time) [kWh]
>
> OvmsMetricFloat* ms_v_bat_soc; // State of
> charge [%]
> OvmsMetricFloat* ms_v_bat_range_est; // Estimated
> range [km]
> OvmsMetricFloat* ms_v_bat_range_ideal; // Ideal range [km]
> OvmsMetricFloat* ms_v_bat_range_full; // Ideal range
> at 100% SOC & current conditions [km]
>
> OvmsMetricFloat* ms_v_bat_voltage; // Main battery
> momentary voltage [V]
> OvmsMetricFloat* ms_v_bat_temp; // Battery
> temperature [°C]
>
> OvmsMetricFloat* ms_v_charge_temp; // Charger
> temperature [°C]
> OvmsMetricFloat* ms_v_charge_12v_temp; // Temperature
> of DC/DC-converter [°C]
> OvmsMetricFloat* ms_v_env_temp; // Ambient
> temperature [°C]
> OvmsMetricFloat* ms_v_env_cabintemp; // Cabin
> temperature [°C]
>
> OvmsMetricFloat* ms_v_bat_soh; // State of
> health [%]
> OvmsMetricString* ms_v_bat_health; // General
> textual description of battery health
> OvmsMetricFloat* ms_v_bat_cac; // Calculated
> capacity [Ah]
>
> OvmsMetricFloat* ms_v_bat_energy_used_total; // Battery
> energy used total (life time) [kWh]
> OvmsMetricFloat* ms_v_bat_energy_recd_total; // Battery
> energy recovered total (life time) [kWh]
> OvmsMetricFloat* ms_v_bat_coulomb_used_total; // Battery
> coulomb used total (life time) [Ah]
> OvmsMetricFloat* ms_v_bat_coulomb_recd_total; // Battery
> coulomb recovered total (life time) [Ah]
>
>
>
>
>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210124/718334ad/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210124/718334ad/attachment-0001.sig>
More information about the OvmsDev
mailing list