Next Article in Journal
MambaReID: Exploiting Vision Mamba for Multi-Modal Object Re-Identification
Previous Article in Journal
Student Motivation Analysis Based on Raising-Hand Videos
Previous Article in Special Issue
Driver Drowsiness Multi-Method Detection for Vehicles with Autonomous Driving Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

How Do We Calibrate a Battery Electric Vehicle Model Based on Controller Area Network Bus Data?

1
Department of Automotive Technologies, Budapest University of Technology and Economics, 1111 Budapest, Hungary
2
Robert Bosch Kft., 1103 Budapest, Hungary
*
Authors to whom correspondence should be addressed.
Sensors 2024, 24(14), 4637; https://doi.org/10.3390/s24144637
Submission received: 12 June 2024 / Revised: 2 July 2024 / Accepted: 13 July 2024 / Published: 17 July 2024
(This article belongs to the Special Issue Intelligent Sensors for Smart and Autonomous Vehicles)

Abstract

:
Transforming an up-to-date vehicle into a measurement system is a rewarding task due to the large number of different sensors in the onboard control and diagnostic systems. These procedures are not performed by a single control unit; it is necessary to share the signal values over a communication network, to which an external device can be connected to record the real traffic. The paper aims to use these recorded data for 1 DOF longitudinal vehicle and powertrain model validation. For repeatability, three city routes are selected: plain road, smaller road grade, and higher road grade in both directions. Therefore, the drivetrain system is tested in a high load range, even with long-term recuperation. The altitude changes are recorded with a DGPS system. By the recorded measurements, the vehicle and the drivetrain model can be calibrated, such as the air drag parameters, the rolling resistances, and the efficiencies of the drivetrain. The validation criteria are defined for speed tracking, and the relative tolerance of the cumulated energy should be below 10%. At the end of the day, a developed model is ready for energetic analysis or control strategy design. The energy balance of the applied cycles is also presented to prove that.

1. Introduction

In recent years, sustainability has strongly influenced the automotive industry and mobility in design and manufacturing processes. Tighter emission standards are supporting the development of alternative fuel powertrains [1]. The electric powertrain control module had to process a large number of sensor values simultaneously, such as the voltage levels of the cells in the high-voltage (HV) battery and the inverter and motor temperatures, to ensure that they were within the appropriate range before damage or overheating occurred. These can be prevented by reducing power. Measuring stator temperature is typically challenging, as the sensor only measures the temperature at one point. The temperature can be determined based on a model for the rest of the surface. Determining the temperature of the rotor is an even more complicated problem because of its rotating motion. Furthermore, the actual State of Charge (SoC) and State of Health (SoH) of the HV battery is also a complex task, usually based on a battery model [2,3,4,5].
The inputs to these models are quantities measured by different sensors. An electric car powertrain needs 1 or 2 speed and position sensors, 15–20 current sensors, and 20–30 temperature sensors, usually NTCs [6]. The values of these sensors are required by several electronic control units (ECUs); therefore, they can be found on the vehicle’s communication network. Based on these, it was obvious for us to log these data from the car for the simulation instead of installing new sensors in the vehicle.
Modeling and simulating the vehicle and drivetrain operation helps check the measured signals, estimate unmeasurable signals, and diagnose faults in the systems. It is also useful to improve the sampled and measured signals for better resolution.
Implementing battery electric vehicle (BEV) models is simpler than conventional drivetrains [7]. The lack of clutch and gear selection strategies makes the modeling process more accurate; it is easier to reproduce real-world driving [8].
Modern BEVs appeared less than two decades ago, and their development is a very focused area even today. The “optimal” BEV layout is not yet formed; there will be significant developments in efficiency, range, dynamics, and thermal management [9].
The paper will present a model that can be used for energetic analysis and control strategy development. The energy transformation is deeply understandable through model verification and validation, and the key development areas can be found.

2. Measurement Strategy

The powertrain of an electric car has significantly fewer components than an internal combustion version. However, much more information is available on the EVs’ in-vehicle communication network. There are several reasons for this: First, the number of ECUs in the vehicle continuously increases due to more advanced driver assistance systems and comfort functions [10]. Another reason is that in an electric car, the drive-related control systems must monitor many more parameters, from battery output current through inverter temperature to rotor position. It is also essential to maximize efficiency and lifetime, for example, by constantly monitoring the battery cell voltages to ensure that none of the cells are discharged below a threshold value, as this would permanently damage them. The development of ECUs has brought the Functional Safety Standard [11], which regulates the safe operation of safety-related electrical/electronic systems and broadly defines the hardware and software features of modern ECUs.
The complex monitoring system requires numerous sensors whose measured values can be retrieved from the vehicle’s communication network, as multiple ECUs typically require these. In most cases, the in-vehicle communication is unknown, so the data are only interpretable after complex reverse engineering. However, retrieving data from specific ECUs using a diagnostic protocol is possible.

2.1. Protocols

Automotive protocols can be divided into two main categories: communication and diagnostic protocols. The former defines the rules for transmitting information, such as the number of wires and voltage levels, while the latter defines the structure of the information packages, i.e., messages.
Despite the increased amount of in-vehicle information in EVs, the well-known Controller Area Network (CAN) 2.0 [12] protocol is generally used by car manufacturers for communication between ECUs due to its low cost and simplicity. However, some Advanced Driver-Assistance Systems (ADAS) functions already require Automotive Ethernet [13] or FlexRay [14] for higher bandwidth.
An essential property of CAN is that it provides serial asynchronous data transmission. Therefore, the data recorded from the vehicle are very close in time (~50 ms), but there is still a time offset. This is a not negligible issue because if the data are not transformed to a shared time axis, there may be operating points where the vehicle speed is still increasing compared to the previous time point, but braking has already started.
The onboard diagnostic (OBD) standard [15] was the first official diagnostic standard, introduced in California in 1988. The purpose of this was to ensure that the vehicle constantly monitored the operation of the emission control systems. Later, the more specific OBD-II [16] standard was released, mandatory in the US since 1996 [17], for European petrol vehicles since 2001, and for European diesel vehicles since 2004 [18].
The OBD-II standard further includes that in the event of a malfunction or incorrect values, the vehicle must store the fault with the environmental parameters, which must be readable later. So, it has to support not only onboard but also off-board diagnostics, i.e., external devices must also be able to access the vehicle’s communication network. If an external device can be connected to the car, it seems evident that the values of the sensors monitored by the vehicle should be accessible to external devices. This enabled data logging.
The OBD-II diagnostic protocol is public so that the parameters can be recorded and tested in the same form on all vehicles. This means only general information can be checked, such as speed, engine speed, or throttle position. Due to the growth of hybrid cars, OBD-II has been extended to provide not only emission-relevant data, for example, the hybrid battery pack’s remaining life or the high-voltage battery SoC value.
For vehicle fault detection, not only the emission-relevant components are important, so the KeyWord Protocol 2000 (KWP) [19] was created as an extension of the OBD-II diagnostic standard, initially using the K-line bus system, and only a few ECUs were available with it. In the OBD-II standard, there was a connector [20] where SAE J1850 [21], K-line [22], and CAN bus systems are accessible, so KWP uses this connector as well.
KWP is not a generalized diagnostic, so it provides much more detailed data, such as steering wheel angle or brake system pressure. As a result, each vehicle has different ECU access addresses (identifiers) and values by which specific parameters can be accessed (local identifiers). Therefore, data logging is much more difficult with this protocol, as the software has to be parameterized for each vehicle.
The disadvantage of the K-line is that the maximum data rate is 10.4 Kbit/s, while with CAN, 1 Mbit/s is available. Therefore, the KWP2000 on CAN [23] standard has extended the diagnostic possibilities, such as flash programming of ECUs.
Unified diagnostic services (UDSs) [24] were created based on the KWP–CAN model to harmonize diagnostic standards. One of the advantages of UDS is that it is independent of the bus system, i.e., it works not only on CAN but also on Ethernet or FlexRay. Furthermore, in contrast to previous standards, periodic data requests are possible, so if continuous data logging is required, there is no need to send continuous data request messages to the ECUs.

2.2. Test Vehicle

The test vehicle was a 2011 Mitsubishi MiEV, produced from 2009 to 2021. The MiEV is one of the original first-generation electric vehicles, despite only around 32,000 being produced. The main parameters of the vehicle are shown in Table 1. The 47 kW power output may seem low, but the electric drive’s characteristics and low weight make it dynamic to drive [25].

2.3. Data Logging and Devices

As can be seen in Figure 1, the components of the test vehicle’s powertrain communicate with each other via the CAN bus so that the relevant parameters can be retrieved via the OBD II connector using the KWP diagnostic protocol [26].
A CSS CANedge 1 [27] standalone CAN bus data logger was used for data logging, for which the software was written by ourselves. Since gradient resistance has a major impact on consumption, the route must also be recorded. For this purpose, a u-blox NEO-M9V sensor module was used for the data logger, which has an accuracy of 2 m circular error probability and a sampling rate of 5 Hz.
The inputs of the vehicle model detailed in Section 3 are the parameters that the driver has direct control over; these are the accelerator, brake pedal, and steering wheel. Considering the additional driving resistance forces, the curvature resistance is negligible compared to the road resistance, so in this model, the curvature is not considered.
For data logging, it is important to note that for CAN 2.0, communication messages can be up to 8 bytes long, of which the diagnostics reserve 2–3 bytes as special values. In the case of KWP, typically, a local identifier can be used to retrieve data for an entire group of components, so the vehicle can send multiple response messages for a single data request; this is multi-frame messaging. However, in most cases, the sensor values are reduced to as few bytes as possible. For example, vehicle speed can be defined as an integer in 1 byte, from 0 to 255. In this example, the resolution of the speed is 1, since the minimum value change is 1. The SoC value can be from 0% up to 100%, so from 0 to 200 can be stored on 1 byte, and the minimum value difference, i.e., resolution, can be 0.5%.
The accelerator and brake pedals can be used to obtain the desired speed, but the test car’s exact pedal characteristics were unknown, so the vehicle speed was used as a reference signal. The speed can be extracted from the test vehicle with a resolution of 1 km/h, so—taking advantage of the fixed-ratio non-disconnectable drive—the speed calculated from the engine speed was used instead of the vehicle speed, which has a much higher resolution converted back to km/h. The data retrieved from the vehicle are given in Table 2.
The status of the state of charge was also monitored to investigate energy consumption. Similar to the speed, the resolution of the charge is not sufficient because the minimum value change for the test car is 0.5%. Therefore, the current and voltage of the high-voltage battery were also retrieved from the CAN bus.

3. Model Structure

The measurement system development aims to verify and validate a longitudinal vehicle and powertrain model that can present the energetics of a battery electric vehicle (BEV). A new approach can be introduced in BEVs because there are three in-vehicle main onboard energy storage systems: the battery, the kinetic energy of the vehicle, and the gravitational potential energy of the vehicle. The novelty of these vehicles is that the energies can be converted back and forth in any way.

3.1. Vehicle Model

The motion Equation (1) of the vehicle represents the sum of the forces acting on the vehicle [28], considering the rolling weights with λ. The traction, the brake, and the resistances can change the vehicle’s speed.
λ m v e h a v e h = F t r a c F b r a k e F r e s .
Due to the regenerative charging in electric vehicles, the traction force can be negative. Thus, the brake force, which is a loss, has a minor role in vehicles with combustion engines.
The resistance forces can be handled as follows: (2) They are the sum of the road and the drag resistances.
F r e s = F r o a d + F d r a g .
Furthermore, road resistance has two parts: rolling and grade resistance, where α is the road grade and f is the rolling resistance factor:
F r o a d = F r o l l + F g r a d e = m v e h g sin α + f cos α
The drag resistance can be handled in the following well-known way:
F d r a g = 1 2 ρ a i r c w A v e h v v e h 2 .
The vehicle also has a conventional hydraulic brake system. Ignoring the geometrical parameters of the wheel brake systems, the brake force can be modeled as a function of the brake pressure multiplied by a constant coefficient:
F b r a k e = k b r a k e p b r a k e m g .
Due to the dual braking opportunity, the brake control should have a strategy:
  • The regenerative braking does not operate below 10 km/h;
  • The hydraulic brake system does not generate force on the stopped vehicle;
  • In battery electric vehicles, during emergency braking, the regenerative braking also does not operate; finally, this function was unnecessary because emergency braking was not tested.

3.2. Powertrain Model

In a BEV, the powertrain system has two parts: an electric machine and a gearbox. Due to regenerative braking, the energy flow can go back and forth in them. The losses always decrease energy flow. Thus, there are two forms of the equations.
The connection between the electric machine’s torque and the traction force on the wheels can be estimated in the following way, with positive torque:
F t r a c = M m o t η m e c h i p t r w h e e l .
During regenerative braking, mechanical efficiency should be applied with its reciprocal:
F t r a c = M m o t 1 η m e c h i p t r w h e e l .
The mechanical efficiency represents the mechanical losses in the gearbox. In this paper, it is modeled as a constant. Without measurements, it can be estimated with the following equation [28]:
η m e c h = 0.9 8 a 0.9 7 b 0.9 9 c .
A throttle input controls the actual torque of the electric machine:
M m o t = u t h r o t t l e M m o t m a x
This throttle with a negative sign can also operate as an input for regenerative braking. The power consumption of the electric motor can be estimated by considering its efficiency map. The equations are also different with positive and negative torque. With positive torque:
P m o t = M m o t ω m o t 1 η m o t ( M m o t , ω m o t ) .
And with negative torque, i.e., with regenerative braking:
P m o t = M m o t ω m o t η m o t ( M m o t , ω m o t ) .
The model does not consider the actual temperature of the electric machine. This would change its torque characteristics. Based on the measurements, it was not necessary to implement them into the model.

3.3. Inverter and Battery Model

The equation logic of the energy flow through the inverter is similar to the previous ones: the losses always decrease. Up-to-date inverters have high efficiencies. In this model, it is estimated as a constant.
With positive engine torque, it can be estimated as follows:
P i n v = P m o t 1 η i n v .
Also, with negative engine torque, it is changed in the following way:
P i n v = P m o t η i n v .
The current consumption of the inverter can be calculated by the battery voltage:
I i n v = P i n v U b a t .
The battery’s main parameter is its state of charge. It can be estimated by the following equation [8]:
S o C = C 0 0 t P i n v ( t ) d t C 0 .
The model does not consider the battery’s SoC-dependent charging behavior. The measurements did not start with a fully charged battery.
Other major in-vehicle energy consumers near the powertrain system include cabin heating/cooling systems, power steering systems, and other onboard electric consumers. The energy consumption of these systems can be at a wide interval. The heating/cooling system was turned off during the measurements, and only the necessary current consumers were used. Thus, the power demand of these systems was estimated to be constant.

3.4. Model Inputs and Driver Model

The longitudinal vehicle-end powertrain model has the following inputs:
  • Vehicle speed demand, Matlab
  • Hydraulic brake system actual pressure,
  • Road grade.
The model can be calibrated and validated by the following signals:
  • Electric motor’s actual torque and actual speed,
  • Inverter actual current consumption,
  • Battery’s actual voltage and state of charge.
Matlab Simulink’s (version 2023b) longitudinal driver model was applied from the Powertrain Blockset in the control loop. It was set as a PI driver.
For the logically right operation, some complement functions have to be implemented into the model. At the same time, there should not be throttling or mechanical braking. Additionally, below 10 km/h, there should not be any regenerative braking. The block scheme of the model can be seen in Figure 2.

4. Measurements

For the model development, three routes were selected in Budapest. All of them are city roads, i.e., the maximum legal speed is 50 km/h. However, thanks to Budapest’s topography, smaller and higher road grades can be selected. The vehicle’s high load and regenerative braking can be analyzed by these.
The first applied route is called the “Erzsébet” cycle because it is between the BME University and the Erzsébet bridge along the river Duna. The route does not contain high elevation changes. The road grade changes are nearly negligible. The length is 4.7 km, and the maximum road grade is below 4%. Due to the traffic control lights, the cycle has several stops. The map of the route can be seen in Figure 3.
The second route is called the “Citadella” cycle; the route connects the university and the Citadella castle on the top of Szent Gellért hill. The elevation change is 91 m, and the maximum road grade is 12%. The length is 5 km. The vehicle runs to the top of the cycle and then partially returns. Therefore, the cycle contains a higher load, as does the recuperation part. The map of the route can be seen in Figure 4.
The third and fourth routes are called “Normafa Up” and “Normafa Down”. Normafa is one of Budapest’s highest points. In “Normafa Up”, the vehicle is driven to the hill. The way back on the same route is “Normafa Down”. The altitude change is 326 m, and the maximum road grade is 11%. The length is nearly 6 km. The map of the route can be seen in Figure 5.
The road grade differences between the three routes are depicted in Figure 6. Moreover, Table 3 summarizes the main properties of the selected routes.
Several data were recorded during the measurements. For the longitudinal EV model validation, the following signals are necessary in function of time:
  • High-voltage battery state-of-charge (SoC),
  • Inverter input power (the voltage and the current can also be measured),
  • Motor speed,
  • Motor torque, which is an estimated value by the ECU,
  • Vehicle speed,
  • Hydraulic brake pressure,
  • Route’s longitude, latitude, and altitude coordinates for estimating the elevation.
Figure 7 shows the recorded data during the measurements. In further research, the vehicle’s thermal and lateral behavior can also be analyzed.
The pressure measurement of the hydraulic brake is a key moment in the model validation; it makes it easier. Electric vehicles at slow speeds (typically below 10 km/h) do not use recuperative braking due to weak motor efficiency. In this speed range, the conventional brake system does all the braking. During the deceleration, a pre-defined strategy gradually switches between the two braking possibilities. This strategy can be analyzed by the measurements, but it is not the aim of this research. By recording the brake pressure, the braking force on the vehicle can be estimated, and the driver controller should only complement it (if necessary) by the drivetrain.
In electric vehicles, while it stays and there are no pedal commands, there is some traction torque on the drivetrain. It can be ceased by putting the gear selector on neutral or pushing the brake pedal harder This behavior should have been applied during the measurements for more accessible model validation.

5. Model Verification and Validation Strategy

For the first approach, most parameters can be set by the literature. The most uncertain parameters are the rolling resistance factor, the frontal area, the rotational mass factor, and the efficiency maps. With enough measurement results, these parameters can be more accurate: rolling resistance can be determined at low speeds, and air drag parameters can be set at higher vehicle speeds. Electric vehicles typically have a one-speed gearbox; its mechanical efficiency can be estimated by the number of connected gear pairs [28].
The efficiency map of the electric motor is unknown. However, the efficiency map of synchronous electric motors is not as varied as it is for internal combustion engines [29]. For this aim, the efficiency map of the first-generation Nissan Leaf’s motor characteristics [30] is used with smaller modifications: changing the speed, torque, and power range. Furthermore, smaller tuning was necessary at higher speeds and in the recuperation zone.
The wind magnitude and direction, as well as the road surface changes, are neglected in the model due to measuring issues. The measurements were made in September in good and calm weather. The most significant uncertainty is the road grade estimation. The altitudes are known from the DGPS recordings, but their accuracy is only 1 m. The data should be filtered (smoothed), and linear interpolation was used between the equidistant distances. In the presented model, the distance between two road grade points is 10 m to avoid high oscillation.
The driver model is a PI controller based on Matlab’s built-in driver controller [31]. Validation criteria can be defined for speed tracking. The root mean square (RMS) error was selected for this purpose. The aim is to keep them below 10% [32].
R M S = 1 T 0 T x m e a s x s i m x m e a s 2 d t .
Tuning the P and I parameters of the driver model typically results in two things. With strict requirements for speed tracking, the controller will give us nervous throttle and brake commands, i.e., the torque signal cannot be validated due to the high peak values. The torque maximums can be decreased by reducing the strict speed track requirements with lower P and I parameters in the controller. In this case, the speed track will have a small delay, as will the torque input. Thus, the torque tracking cannot be validated by the RMS error. The case of the inverter input power is the same. After several iterations, the p value was selected at 10, and the I value was selected at 3. In further research, more complex driver controllers can be tested; however, it is not the aim of this paper—for parameter identification, the PI controller is the right choice [33].
Considering that the modeling aim is an energetic analysis of the electric vehicle, another validation criterion can be the relative tolerance of the cumulative input energy of the inverter, i.e., the consumed energy during the cycle:
x r e l _ e r r = 0 T x s i m d t 0 T x m e a s d t 0 T x m e a s d t .
The validation criteria can also be to keep this value below 10%.
The measured signals are used to check the energy transformation in three places in the chain:
  • Vehicle speed,
  • Electric motor output: speed and torque,
  • Inverter input: power, voltage, and current,
  • Battery SoC.
The model calibration and validation processes can be simplified by dividing the model along these chain links. For example, the electric motor’s efficiency can be checked by its inputs and outputs without the driver and drivetrain models.
Considering these, the parameter calibration was conducted using the following steps:
  • Battery nominal capacity calibration is conducted using the inverter input power. Additionally, the non-drivetrain consumer’s consumption can also be set at a constant value.
  • Electric motor efficiency map calibration is conducted using the input of the inverter and the motor output power (speed and torque). The inverter efficiency is estimated by a constant.
  • Vehicle parameter calibration with the measured torque input. The realizable vehicle speed response should fit the measured vehicle speed. Without feedback and driver control, perfect fitting cannot be achieved due to disturbances and uncertainties. However, for parameter calibration, it is the most helpful step because the controller’s behavior can be neglected.
After these steps, the feedback model can be tested and finalized.

6. Model Calibration and Results

The achieved model parameters after the validation process are presented in Table 4. Most of them are in the typical range for a passenger vehicle. The rolling resistance factor is slightly lower than its usual value, probably caused by the very narrow wheels. The parameter nomenclature presents the changing parameters during the simulation in Appendix A.
The rotational mass factor is another important parameter that is not easily achievable. Its value is slightly higher than that of conventional (thermal engine) vehicles. The cause can be the different properties of electric drivetrains.
Figure 8 depicts the different cycles’ speed profiles and speed tracking. As can be seen, the “Erzsébet” cycle is typical city driving, with long stays due to the traffic lights. It reaches only once the legal maximum speed. Thus, the dominant property of this cycle are the slow accelerations and decelerations. The motor load is low due to the small road gradients.
The “Citadella” cycle has a smaller rate of staying. It runs through a small-speed residential area, where the legal maximum speed is sometimes 30 km/h. The narrow lanes and the high road grade resulted in a smaller speed cycle with higher motor loads.
Finally, the “Normafa” cycle’s speed results can be seen in Figure 8. For most of the cycle, the legal maximum speed is reachable, and traffic lights do not stop the vehicle too often. “Normafa Up” requires higher motor torques; “Normafa Down” provides more recuperation. It is interesting that “Normafa Down” has lower speeds.
The speed tracking can also be seen in the figure. The biggest differences are during braking. Furthermore, there are some overshoots during every acceleration.
In the following figures, the verification will be demonstrated through examples. The other omitted diagrams can be found in the Appendix B and Appendix C.
Figure 9 shows the measured and simulated torque during the “Erzsébet” cycle. The signal tracking is verifiable; only the peak values have some inaccuracy. It is caused by the PI driver controller’s reaction to the slight speed delay. Thus, the controller’s behavior is more nervous than that of the real driver. In the other measurements, the magnitude is different due to the altitude changes: more significant for positive road grade, more regenerative torque for negative road grade. These results can be seen in Appendix B and Appendix C.
The vehicle has a permanent magnet synchronous motor, which usually has more than 95% top efficiency. In everyday use, it rarely operates at its maximum efficiency; Figure 10 shows the simulation results for the “Normafa Up” cycle. While the motor provides significant torque, its efficiency is never less than 60%. The typical magnitude is between 80 and 90%. During recuperation, it is slightly lower.
In the same measurement, the battery output power is depicted in Figure 11. The behavior is like the torque’s: it is verifiable but has inaccurate peaks and a nervous oscillation. At the last phase of the cycle, while the driving style is more aggressive, this inaccuracy increases. As earlier, the other results can be seen in Appendix C; they have similar properties.
The validation criteria can be checked using the simulated speed and inverter input power results. After the iterative model development, Table 5. contains the values they achieved. All of them are below 10%, i.e., the model is acceptable for powertrain energetics analysis.
The energetic analysis is presented in Table 6. The first three cycles of the four are energy consumers, and the fourth one recuperates more energy than it consumes. Thus, the input energy in the first three cycles is from the battery (inverter input energy). In contrast, in the fourth cycle, road resistance works as an energy source due to the decreasing altitude.
In the “Erzsébet” cycle, the vehicle runs with low loads. This case does not use the electric motor’s good efficiency zones. Thus, nearly half of the invested energy becomes motor losses. In this usage, the gearbox’s losses also occur at a significantly high rate. Due to the low speeds, the air drag does the least work. During the cycle, the recuperated energy is 62% of the traction work, nearly six times higher than the braking work.
In the “Citadella” cycle, the motor load is higher: in the first 2/3, the vehicle runs up to the hill, and then it partially runs down. In these higher loads, the motor’s efficiency is improved, and the losses decreased to 38.3%. In contrast, the road resistance work increases to 35.3%.
In the “Normafa Up” cycle, the traction work is much higher than the recuperated energy due to the high altitude increase. In this high-load motor operation, the electric motor losses decrease to 18%. Nearly 70% of the invested energy is used to overcome road resistance.
In the “Normafa Down” cycle, the behavior is the opposite. Due to the decrease in altitude, the vehicle’s potential energy transforms into losses and recuperated energy. More than 46% of the “invested” energy was recoverable in this cycle. The recuperative braking motor efficiency is lower; thus, motor losses are more than 35%. Additionally, braking loss also increases to 9%. Recuperated energy is more than six times higher than traction work.
Finally, the high-voltage battery’s measured and simulated SoC changes in the different cycles are shown in Figure 12. The results were not used for validation because the battery SoC estimation of the vehicle should not necessarily be linear, as its characteristics are unknown. For instance, it can depend on the actual driving style. Apart from that, the diagrams demonstrate that the model can be calibrated to follow this signal accurately.

7. Conclusions

This paper aims to present a measurement system for BEV modeling and analysis. These vehicles’ energy management, recuperation strategy, and range prediction are important research topics. The paper provides a solution to quickly process the real-world driving cycle’s data and analyze it with simulation tools. The primary outcomes are the experiences with the measurement system and the model calibration. This paper provides the necessary signals for the analysis and gives suggestions for the sample time, too.
Due to the recuperation opportunity, knowing the road grade is particularly important. The only costly part of the measurement system is a GPS system that can record the actual altitude of the vehicle. It can be substituted with, for example, Google-based data, but its accuracy probably will not be enough. The simulation experiences confirmed that road grade accuracy is crucial for the model’s accuracy.
This paper focuses on city driving with higher altitude changes. The simulation model is a longitudinal vehicle-drivetrain model investigating the energy transformation from the high-voltage battery to the vehicle’s motion. Some typically hard-to-reach data also become estimable by the measurements, such as the additional rotational masses or the rolling resistance factor. The degradation of the battery can also be detected by the energy consumption and the HV battery SoC changes—in our case, the implemented nominal battery capacity is also significantly lower than the official data.
The presented measurement system can be the basis for several research studies on BEVs. The driving styles can also be analyzed by recording to develop the pedal characteristics and recuperation strategies for better vehicle efficiency. Additionally, by monitoring the motor and battery temperature signals, the thermal behavior can also be analyzed, and more complex battery models can be implemented. Furthermore, we also recorded the steering angle to investigate the lateral dynamics of the vehicle.

Author Contributions

Conceptualization, A.G. and M.Z.; methodology, D.T. and Á.N.; software, Á.N. and D.T.; validation, Á.N.; investigation, D.T. and M.S.J.; data curation, D.T.; writing—original draft preparation, M.S.J.; writing—review and editing, Á.N. and D.T.; visualization, Á.N. and D.T.; supervision, A.G. and M.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This study was prepared with the professional support of the doctoral student scholarship program of the co-operative doctoral program of the Ministry for Innovation and Technology from the source of the national research, development, and innovation fund. The research was supported by the European Union within the framework of the National Laboratory for Autonomous Systems (RRF-2.3.1-21-2022-00002).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. Nomenclature.
Table A1. Nomenclature.
NameUnit
Battery state of chargeSoC%
Battery voltageUbat
Braking forceFbrake
Drag resistanceFdrag
Electric machine angular velocityωmot
Electric machine’s efficiency mapηmot
Electric machine’s powerPmot
Electric machine’s torqueMmot
Hydraulic brake pressurepbrake
Inverter current consumptionIinv
Inverter powerPinv
Powertrain control inpututhrottle
Resistance forcesFres
Road grade resistanceFgrade
Rolling resistanceFroll
Traction forceFtrac
Vehicle accelerationaveh
Vehicle speedvveh

Appendix B

Measured and simulated motor torque results that were omitted from the discussion.
Figure A1. Measured and simulated the torque of the electric motor during the cycles.
Figure A1. Measured and simulated the torque of the electric motor during the cycles.
Sensors 24 04637 g0a1

Appendix C

Measured and simulated battery output power results that were omitted from the discussion.
Figure A2. Measured and simulated battery output power during the cycles.
Figure A2. Measured and simulated battery output power during the cycles.
Sensors 24 04637 g0a2

References

  1. Zoldy, M.; Szalmane Csete, M.; Kolozsi, P.P.; Bordas, P.; Torok, A. Cognitive Sustainability. Cogn. Sustain. 2022, 1, 1. [Google Scholar] [CrossRef]
  2. Bhushan, N.; Mekhilef, S.; Tey, K.S.; Shaaban, M.; Seyedmahmoudian, M.; Stojcevski, A. Overview of Model- and Non-Model-Based Online Battery Management Systems for Electric Vehicle Applications: A Comprehensive Review of Experimental and Simulation Studies. Sustainability 2022, 14, 15912. [Google Scholar] [CrossRef]
  3. Giordano, G.; Klass, V.; Behm, M.; Lindbergh, G.; Sjöberg, J. Model-Based Lithium-Ion Battery Resistance Estimation from Electric Vehicle Operating Data. IEEE Trans. Veh. Technol. 2018, 67, 3720–3728. [Google Scholar] [CrossRef]
  4. Manriquez-Padilla, C.G.; Cueva-Perez, I.; Dominguez-Gonzalez, A.; Elvira-Ortiz, D.A.; Perez-Cruz, A.; Saucedo-Dorantes, J.J. State of Charge Estimation Model Based on Genetic Algorithms and Multivariate Linear Regression with Applications in Electric Vehicles. Sensors 2023, 23, 2924. [Google Scholar] [CrossRef] [PubMed]
  5. Feng, S.; Wang, A.; Cai, J.; Zuo, H.; Zhang, Y. Health State Estimation of On-Board Lithium-Ion Batteries Based on GMM-BID Model. Sensors 2022, 22, 9637. [Google Scholar] [CrossRef] [PubMed]
  6. Basu, A.K.; Tatiya, S.; Bhattacharya, S. Overview of Electric Vehicles (EVs) and EV Sensors. In Sensors for Automotive and Aerospace Applications; Bhattacharya, S., Agarwal, A., Prakash, O., Singh, S., Eds.; Springer: Singapore, 2019. [Google Scholar]
  7. Nikam, S.P.; Fernandes, B.G. Low cost electric drivetrain for conversion of ICE vehicle into an electric vehicle. In Proceedings of the 2014 IEEE International Conference on Power Electronics, Drives and Energy Systems (PEDES), Mumbai, India, 16–19 December 2014. [Google Scholar]
  8. Nyerges, Á.; Zöldy, M. Longitudinal vehicle model development for range estimation in electric vehicles. Tech. Rev. EMT 2019, 74, 13–22. [Google Scholar]
  9. Kubaisi, R.; Gauterin, F.; Giessler, M. A Method to analyze driver influence on the energy consumption and power needs of electric vehicles. In Proceedings of the 2014 IEEE International Electric Vehicle Conference (IEVC), Florence, Italy, 17–19 December 2014; ISBN 9781479960750. [Google Scholar]
  10. Petri, R.; Springer, M.; Zelle, D.; McDonald, I.; Fuchs, A.; Krauß, C. Evaluation of lightweight TPMs or automotive software updates over the air. In Proceedings of the 4th ESCAR USA, Detroit, MI, USA, 5–6 June 2016. [Google Scholar]
  11. ISO 26262-1; Road Vehicles—Functional Safety. International Organization for Standardization: Geneva, Switzerland, 2018. Available online: https://blog.ansi.org/2019/02/iso-26262-2018-road-vehicle-functional-safety (accessed on 30 June 2024).
  12. Szydlowski, C. CAN Specification 2.0: Protocol and Implementations; SAE Technical Paper 921603; SAE: Warrendale, PA, USA, 1992; Available online: https://www.sae.org/publications/technical-papers/content/921603 (accessed on 30 June 2024).
  13. ISO/IEC/IEEE 8802-3; Information Technology—Telecommunications and Information Exchange between Systems—Requirements for Local and Metropolitan Area Networks—Part 3: Standard for Ethernet. ISO: Geneva, Switzerland, 2021.
  14. ISO 17458-1; Road Vehicles—FlexRay Communications System—Part 1: General Information and Use Case Definition. International Organization for Standardization: Geneva, Switzerland, 2013.
  15. SAE J1979; E/E Diagnostic Test Modes. Society of Automotive Engineers International: Warrendale, PA, USA, 1991.
  16. ISO 15031-5; Road Vehicles—Communication between Vehicle and External Equipment for Emissions-Related Diagnostics—Part 5: Emissions-Related Diagnostic Services. International Organization for Standardization: Geneva, Switzerland, 2006.
  17. 40 CFR 86.305D; Emission Regulations for New Gasoline-Fueled and Diesel-Fueled Heavy-Duty Engines, Gaseous Exhaust Test Procedures, Code of Federal Regulations. Legal Information Institute: Ithaca, NY, USA, 1996.
  18. Directive 98/69/EC; Measures to be Taken against Air Pollution by Emissions from Motor Vehicles and Amending Council Directive 70/220/EEC. European Parliament, Council of the European Union: Brussels, Belgium, 1998.
  19. ISO 14230-4; Road Vehicles—Diagnostic Systems—Keyword Protocol 2000. International Organization for Standardization: Geneva, Switzerland, 2000.
  20. SAE J1962; Diagnostic Connector. Society of Automotive Engineers International: Warrendale, PA, USA, 1992.
  21. SAE J1850; Class B Data Communication Network Interface. Society of Automotive Engineers International: Warrendale, PA, USA, 1988.
  22. ISO 9141-2; Road Vehicles—Diagnostic Systems—Part 2: CARB Requirements for Interchange of Digital Information. International Organization for Standardization: Geneva, Switzerland, 1994.
  23. ISO 15765-4; Road Vehicles—Diagnostics on Controller Area Networks (CAN). International Organization for Standardization: Geneva, Switzerland, 2004.
  24. ISO 14229; Road Vehicles—Unified Diagnostic Services (UDS). International Organization for Standardization: Geneva, Switzerland, 2006.
  25. Eckstein, L.; Göbbels, R.; Wohlecker, R. Benchmarking of the Electric Vehicle Mitsubishi i-MiEV. ATZ Worldw. eMagazine 2011, 113, 48–53. [Google Scholar] [CrossRef]
  26. Kamachi, M.; Miyamoto, H.; Sano, Y. Development of power management system for electric vehicle “i-MiEV”. In Proceedings of the 2010 International Power Electronics Conference—ECCE ASIA, Sapporo, Japan, 21–24 June 2010; pp. 2949–2955. [Google Scholar]
  27. CSS CANedge1. Available online: https://www.csselectronics.com/products/can-logger-sd-canedge1-gnss-imu (accessed on 28 May 2024).
  28. Kádár, L.; Varga, F.; Kőfalusi, P. Construction Theory of Road Vehicles. BME MOGI 2014. Available online: http://www.mogi.bme.hu/TAMOP/kozuti_jarmurendszerek_szerkezettana/book.html (accessed on 30 June 2024).
  29. Pyrhönen, J.; Jokinen, T.; Hrabovcová, V. Design of Rotating Electrical Engines, 2nd ed.; Wiley: Hoboken, NJ, USA, 2014; ISBN 9781118581575. [Google Scholar]
  30. Sato, Y.; Ishikawa, S.; Okubo, T.; Abe, M.; Tamai, K. Development of High Response Motor and Inverter System for the Nissan LEAF Electric Vehicle. SAE Tech. Pap. Ser. 2011, 7, 13. [Google Scholar]
  31. Matlab Library, Powertrain Blockset/Vehicle Scenario Builder: Longitudinal Driver. 2017. Available online: https://ch.mathworks.com/help/vdynblks/ref/longitudinaldriver.html (accessed on 30 June 2024).
  32. Hangos, K.; Bokor, J.; Szederkényi, G. Analysis and Control of Nonlinear Process Systems; Springer: New York, NY, USA, 2004. [Google Scholar]
  33. Mohan, G.; Assadian, F.; Longo, S. Comparative analysis of forward-facing models vs backwardfacing models in powertrain component sizing. In Proceedings of the IET Hybrid and Electric Vehicles Conference 2013 (HEVC 2013), London, UK, 6–7 November 2013; pp. 1–6. [Google Scholar] [CrossRef]
Figure 1. The communication network of the test vehicle.
Figure 1. The communication network of the test vehicle.
Sensors 24 04637 g001
Figure 2. The block scheme of the longitudinal vehicle and powertrain model.
Figure 2. The block scheme of the longitudinal vehicle and powertrain model.
Sensors 24 04637 g002
Figure 3. The route of the “Erzsébet” cycle.
Figure 3. The route of the “Erzsébet” cycle.
Sensors 24 04637 g003
Figure 4. The route of the “Citadella” cycle.
Figure 4. The route of the “Citadella” cycle.
Sensors 24 04637 g004
Figure 5. The route of the “Normafa” cycle.
Figure 5. The route of the “Normafa” cycle.
Sensors 24 04637 g005
Figure 6. Road grade changes on the selected routes.
Figure 6. Road grade changes on the selected routes.
Sensors 24 04637 g006
Figure 7. The recorded data during the measurements.
Figure 7. The recorded data during the measurements.
Sensors 24 04637 g007
Figure 8. Measured and simulated speed profiles and speed tracking of the different cycles.
Figure 8. Measured and simulated speed profiles and speed tracking of the different cycles.
Sensors 24 04637 g008
Figure 9. Measured and simulated torque of the electric motor during the “Erzsébet” cycle.
Figure 9. Measured and simulated torque of the electric motor during the “Erzsébet” cycle.
Sensors 24 04637 g009
Figure 10. Measured and simulated efficiency of the electric motor during the “Erzsébet” cycle.
Figure 10. Measured and simulated efficiency of the electric motor during the “Erzsébet” cycle.
Sensors 24 04637 g010
Figure 11. Measured and simulated battery output power during the “Normafa” cycle.
Figure 11. Measured and simulated battery output power during the “Normafa” cycle.
Sensors 24 04637 g011
Figure 12. High-voltage batteries measured and simulated SoC changes during the cycles.
Figure 12. High-voltage batteries measured and simulated SoC changes during the cycles.
Sensors 24 04637 g012
Table 1. Parameters of the test vehicles.
Table 1. Parameters of the test vehicles.
Main GroupParameterValue
BodyDimensions (L × W × H)3395 × 1475 × 1610 mm
Mass1100 kg
Propulsion typeRear wheel drive
MotorTypePMSM
Max. power47 kW
Max. torque180 Nm
Transmission6.11
BatteryTypeLithium-ion
Nominal voltage330 V
Max. output power60 kW
Nominal/Useable capacity16 kWh/14.5 kWh
RangeEPA95 km
NEDC160 km
ResistanceDrag coefficient0.33
Drag area2.14 m2
Rolling resistance0.011
Table 2. List of logged parameters with the smallest value change.
Table 2. List of logged parameters with the smallest value change.
ParameterUnitResolution
Speedkm/h1 km/h
Engine speedRPM1 RPM
Brake system pressureBar0.0154 Bar
SoC%0.5%
HV battery voltageV2 V
HV battery currentA1 A
TorqueNm0.1 Nm
Height above sea levelm1 m
Table 3. Main properties of the selected routes.
Table 3. Main properties of the selected routes.
“Erzsébet” Cycle“Citadella” Cycle“Normafa” Cycle
Typeessentially flat roaduphill then downhillsame route twice: up and down
Distance4.7 km5 km5.8 km
Time~12 min~17 minup ~9 min, down ~12 min
Road grademaximum 4%maximum 12%maximum 11%
Table 4. The values of the calibrated model parameters.
Table 4. The values of the calibrated model parameters.
NameSignValueUnit
Air density (20 °C)ρair1.188kg/m3
Battery nominal capacityC010kWh
Brake force coefficientkbrake0.0121/bar
Drag coefficientcw0.25-
Electric machine’s maximum powerPmax45kW
Electric machine’s maximum speednmax10,0001/min
Electric machine’s maximum torqueMmax180Nm
Gravitational accelerationg9.81m/s2
Inverter efficiencyηinv0.99-
Number of loaded axle jointsc2-
Number of loaded bevel gearsb0-
Number of loaded spur gearsa2-
Road gradeα0°
Rolling resistance factorf0.005-
Rotational mass factorλ1.2-
Transmission gear ratioipt6.11-
Transmission mechanical efficiencyηmech0.97-
Vehicle frontal areaA2m2
Vehicle massmveh1300kg
Wheel radiusrwheel0.2784m
Table 5. RMS errors and cumulative relative errors for validation checking.
Table 5. RMS errors and cumulative relative errors for validation checking.
“Erzsébet” Cycle“Citadella” Cycle“Normafa Up” Cycle“Normafa Down” Cycle
Speed validation RMS error6.337%5.076%3.052%6.792%
Inverter input power cumulative relative error7.449%2.902%1.956%1.567%
Table 6. Energetic analysis of the pre-defined cycles.
Table 6. Energetic analysis of the pre-defined cycles.
“Erzsébet” Cycle“Citadella” Cycle“Normafa Up” Cycle“Normafa Down” Cycle
kWh%kWh%kWh%kWh%
Inverter input power0.594100.000.612100.001.888100.00−0.524846.28
eMotor losses0.29249.110.23438.300.33917.960.40435.63
Gearbox losses0.08614.470.0518.340.1256.600.03993.52
Braking work0.09115.240.07912.970.0110.560.10219.00
Air resistance work0.0457.590.0203.230.0663.490.06345.59
Road resistance work0.08113.630.21835.631.31069.39−1.134100.00
Traction work0.570 0.543 1.573 0.1783
Recuperated energy0.353 0.217 0.149 1.147
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tollner, D.; Nyerges, Á.; Jneid, M.S.; Geleta, A.; Zöldy, M. How Do We Calibrate a Battery Electric Vehicle Model Based on Controller Area Network Bus Data? Sensors 2024, 24, 4637. https://doi.org/10.3390/s24144637

AMA Style

Tollner D, Nyerges Á, Jneid MS, Geleta A, Zöldy M. How Do We Calibrate a Battery Electric Vehicle Model Based on Controller Area Network Bus Data? Sensors. 2024; 24(14):4637. https://doi.org/10.3390/s24144637

Chicago/Turabian Style

Tollner, Dávid, Ádám Nyerges, Mahmoud Said Jneid, Attila Geleta, and Máté Zöldy. 2024. "How Do We Calibrate a Battery Electric Vehicle Model Based on Controller Area Network Bus Data?" Sensors 24, no. 14: 4637. https://doi.org/10.3390/s24144637

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop