Vehicle-mounted charger control method and vehicle

By acquiring the zero-point offset and gain correction factor of the sampling channel under preset vehicle operating conditions, and correcting the operating parameters of the on-board charger according to real-time operating conditions, the problem of decreased sampling accuracy caused by component aging is solved, achieving higher sampling accuracy and lower false alarm rate.

CN122354259APending Publication Date: 2026-07-10GREAT WALL MOTOR CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GREAT WALL MOTOR CO LTD
Filing Date
2026-04-13
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

The sampling circuit of existing on-board chargers suffers from decreased sampling accuracy due to component aging, which cannot be effectively addressed by static calibration, resulting in a high false alarm rate and low charger performance utilization.

Method used

When the vehicle is under preset operating conditions, the zero-point offset and gain correction factor of each preset sampling channel are obtained. Based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are obtained to correct the real-time operating parameters, thereby obtaining the calibration operating parameters and controlling the on-board charger.

Benefits of technology

By adaptively offsetting sampling errors caused by device aging, sampling accuracy is improved, false alarm rate is reduced, and charger performance utilization is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122354259A_ABST
    Figure CN122354259A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a vehicle-mounted charger control method and a vehicle, and relates to the technical field of vehicle charging control. The vehicle-mounted charger control method comprises: when the vehicle is in a preset working condition, acquiring a zero point offset representing a static deviation and a gain correction factor representing a dynamic deviation respectively; correcting real-time working parameters according to the real-time working condition, the zero point offset and the gain correction factor during vehicle operation; and finally controlling the vehicle-mounted charger based on the calibrated calibration working parameters, so as to adaptively offset the sampling error caused by device aging, improve the sampling accuracy, thereby reducing the false alarm rate, and improving the performance utilization rate of the charger.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of vehicle charging control technology, and in particular to an on-board charger control method and a vehicle. Background Technology

[0002] The on-board charger (OBC) is a key component of electric vehicles, used to convert AC grid power into DC power to charge the battery. The precise control and reliable protection of the on-board charger depend on the accuracy of the front-end sampling circuit. Key sampling parameters include input AC voltage, input AC current, output DC bus voltage, and output DC current.

[0003] Most existing on-board chargers use a one-time calibration method, that is, they are calibrated at a specific temperature point at the factory and a fixed set of compensation coefficients is stored. This static calibration method has the following drawbacks: it cannot cope with the aging of components in the sampling circuit. As the usage time increases, the sampling resistor value drift and the operational amplifier parameters change, which will cause the sampling accuracy to gradually decrease. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides an on-board charger control method and a vehicle.

[0005] A first aspect of this disclosure provides an on-board charger control method, comprising: When the vehicle is under preset operating conditions, the zero-point offset and gain correction factor of each preset sampling channel are obtained respectively. The zero-point offset is used to characterize the static deviation of the preset sampling channel in the no-power state, and the gain correction factor is used to characterize the dynamic deviation of the preset sampling channel in the power transmission state. Based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are obtained, and the real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters. The on-board charger is controlled according to the calibration parameters.

[0006] In some embodiments of this disclosure, the step of acquiring the zero-point offset and gain correction factor of each preset sampling channel under preset operating conditions includes: When the vehicle is under a first preset operating condition, the zero-point offset of each preset sampling channel at different temperatures is obtained. The first preset operating condition is used to characterize that the vehicle meets the preset sleep conditions and all power switching devices are in the off state. When the vehicle is under a second preset operating condition, the gain correction factor of each preset sampling channel at different temperatures is obtained. The second preset operating condition is used to characterize that the charging power of the vehicle is within a preset power range during the charging process.

[0007] In some embodiments of this disclosure, acquiring the zero-point offset of each preset sampling channel at different temperatures when the vehicle is under a first preset operating condition includes: When the vehicle is under the first preset operating condition, the built-in reference voltage source sequentially detects and analyzes each preset sampling channel to obtain the analog-to-digital conversion values ​​of each preset sampling channel at different temperatures. The zero-point offset at different temperatures is obtained by calculating the difference between the analog-to-digital conversion value and the preset theoretical value at different temperatures.

[0008] In some embodiments of this disclosure, the step of sequentially detecting and analyzing each preset sampling channel using a built-in reference voltage source to obtain the analog-to-digital conversion value of each preset sampling channel includes: The built-in reference voltage source is sequentially connected to the analog front end of each preset sampling channel, and a corresponding reference voltage signal is applied to each preset sampling channel through the built-in reference voltage source. The response signals of each preset sampling channel to the reference voltage signal are collected and processed by detection and analysis to obtain the analog-to-digital conversion value of each preset sampling channel.

[0009] In some embodiments of this disclosure, the step of acquiring the gain correction factor of each preset sampling channel at different temperatures when the vehicle is in a second preset operating condition includes: When the vehicle is in the second preset working condition, multi-channel data association is performed on each preset sampling channel through a preset model, and synchronous data acquisition is performed on the associated sampling channels to obtain the first working parameter data at different temperatures. The gain correction factor for each preset sampling channel at different temperatures is calculated based on the zero-point offset corresponding to different temperatures and the first working parameter data after filtering.

[0010] In some embodiments of this disclosure, after obtaining the first operating parameter data, the method further includes: Acquire the second operating parameter data at different temperatures reported by the target electronic control unit; The gain correction factor for each preset sampling channel at different temperatures is calculated based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data.

[0011] In some embodiments of this disclosure, after calculating the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data, the method further includes: If the gain correction factor corresponding to the target sampling channel exceeds the preset safety range, it is determined that the target sampling channel has experienced gain drift. For the target sampling channel, the second operating parameter data is isolated when the gain correction factor is calculated next time.

[0012] In some embodiments of this disclosure, obtaining the corresponding zero-point offset and gain correction factor based on the real-time operating conditions of the vehicle includes: Obtain the real-time temperature of the vehicle under real-time operating conditions; Determine the zero-point offset and the gain correction factor that match the real-time temperature.

[0013] In some embodiments of this disclosure, the method further includes: Within a preset verification period, the zero-point offset and the gain correction factor are monitored and verified to obtain the corresponding verification results. If the verification result shows that the error is within the allowable range, the zero-point offset and the gain correction factor are determined to be correct.

[0014] A second aspect of this disclosure provides an on-board charger control device, comprising: The data acquisition module is used to acquire the zero-point offset and gain correction factor of each preset sampling channel when the vehicle is under preset operating conditions. The zero-point offset is used to characterize the static deviation of the preset sampling channel in the no-power state, and the gain correction factor is used to characterize the dynamic deviation of the preset sampling channel in the power transmission state. The parameter correction module is used to obtain the corresponding zero-point offset and gain correction factor according to the real-time operating conditions of the vehicle, and to correct the real-time operating parameters collected by each preset sampling channel based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters. The equipment control module is used to control the on-board charger according to the calibration working parameters.

[0015] A third aspect of this disclosure provides a vehicle, including: processor; Memory, used to store executable instructions; The processor is used to read executable instructions from memory and execute the executable instructions to implement the on-board charger control method provided in the first aspect above.

[0016] A fourth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the on-board charger control method provided in the first aspect.

[0017] A fifth aspect of this disclosure provides a computer program product comprising a computer program or instructions that, when executed by a processor, implement the on-board charger control method of the first aspect described above.

[0018] The technical solution provided in this disclosure has the following advantages: The on-board charger control method and vehicle provided in this disclosure can acquire the zero-point offset and gain correction factor of each preset sampling channel when the vehicle is under preset operating conditions. Then, based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are acquired. The real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and gain correction factor to obtain calibration operating parameters. Finally, the on-board charger is controlled according to the calibration operating parameters. Therefore, by acquiring the zero-point offset representing static deviation and the gain correction factor representing dynamic deviation, and by calling the corresponding parameters to correct the real-time operating parameters according to the real-time operating conditions during vehicle operation, and finally controlling the on-board charger based on the calibrated operating parameters, it is possible to adaptively offset sampling errors caused by device aging, improve sampling accuracy, thereby reducing the false alarm rate and improving the performance utilization rate of the charger. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0020] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of an on-board charger control method provided in an embodiment of this disclosure; Figure 2 This is a flowchart of another on-board charger control method provided in this embodiment of the present disclosure; Figure 3 This is a flowchart of another on-board charger control method provided in this disclosure embodiment; Figure 4This is a schematic diagram of the structure of an on-board charger control device provided in an embodiment of this disclosure; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0022] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0023] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0024] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0026] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0027] The on-board charger (OBC) is a key component of electric vehicles, used to convert AC grid power into DC power to charge the battery. The precise control and reliable protection of the on-board charger depend on the accuracy of the front-end sampling circuit. Key sampling parameters include input AC voltage, input AC current, output DC bus voltage, and output DC current.

[0028] Most existing on-board chargers employ a one-time calibration method, meaning they are calibrated at a specific temperature point at the factory and a fixed set of compensation coefficients is stored. Related technologies involve reading deviation correction values ​​from a storage medium, performing self-learning of these values ​​within a preset time period, updating or maintaining the stored deviation correction values, and calculating the PFC current based on sensor data and the deviation correction values. While this allows the deviation correction values ​​to change with system variations, it cannot address the aging issues of components in the sampling circuit. With increased usage time, factors such as sampling resistor drift and operational amplifier parameter changes lead to a gradual decrease in sampling accuracy.

[0029] Therefore, this disclosure provides an on-board charger control method that, under preset operating conditions, acquires the zero-point offset and gain correction factor of each preset sampling channel. Then, based on the vehicle's real-time operating conditions, it acquires the corresponding zero-point offset and gain correction factor, and corrects the real-time operating parameters collected by each preset sampling channel based on the zero-point offset and gain correction factor to obtain calibration operating parameters. Finally, it controls the on-board charger based on the calibration operating parameters. Thus, by acquiring the zero-point offset representing static deviation and the gain correction factor representing dynamic deviation, and correcting the real-time operating parameters based on the real-time operating conditions during vehicle operation, and finally controlling the on-board charger based on the calibrated operating parameters, it can adaptively offset sampling errors caused by device aging, improve sampling accuracy, reduce false alarm rate, and improve charger performance utilization.

[0030] Figure 1 This is a flowchart of an on-board charger control method provided in an embodiment of this disclosure. The method can be applied to an electronic device, which can be an on-board controller integrating multiple processors. For example, the on-board controller can be a human-machine user terminal (HUT), a vehicle-mounted system, a cockpit domain controller, a body controller, a vehicle controller, etc., and is not limited here.

[0031] like Figure 1 As shown in the embodiments of this disclosure, the on-board charger control method can be applied to electronic devices. The on-board charger control method may include the following steps.

[0032] S110. Under the preset operating conditions of the vehicle, acquire the zero-point offset and gain correction factor of each preset sampling channel.

[0033] In this embodiment of the disclosure, when the vehicle is under preset operating conditions, the electronic device can acquire the zero-point offset and gain correction factor of each preset sampling channel respectively.

[0034] Optionally, the preset operating condition can be a specific time for acquiring calibration data. For example, the preset operating condition can be used to characterize that the vehicle meets preset sleep conditions (such as receiving a sleep command, or having no operation for more than a threshold after the key is removed), at which time all power switching devices are in the off state, the power circuit is completely de-energized, and there is no high voltage present; or it can be used to characterize that the vehicle is in a stable operating state during charging, such as the light load constant current stage, trickle charging stage, or the steady-state range where the system dynamic response has converged. The criteria for judging the stable operating condition include the input voltage fluctuation being less than a preset range and the current change rate being less than a preset threshold.

[0035] Optionally, the preset sampling channel can be a complete signal path in the on-board charger used to collect specific operating parameters (such as voltage and current), including at least a sensor or voltage divider network corresponding to the operating parameter, a signal conditioning circuit, and an analog-to-digital converter input port.

[0036] Optionally, the zero-point offset can be used to characterize the static deviation of the preset sampling channel in a power-free state, such as static factors mainly originating from operational amplifier input offset voltage, analog-to-digital conversion quantization error, etc.

[0037] Optionally, the gain correction factor can be used to characterize the dynamic deviation of the preset sampling channel under power transmission conditions, such as dynamic factors mainly caused by the drift of the sampling resistor value and the change of the operational amplifier gain.

[0038] Specifically, when the vehicle is detected to be in a preset operating condition (such as about to go into hibernation, stable operation, etc.), the electronic device can obtain the zero-point offset corresponding to each preset sampling channel, which is used to characterize the static deviation of the preset sampling channel in the no-power state, and the gain correction factor used to characterize the dynamic deviation of the preset sampling channel in the power transmission state.

[0039] S120. Based on the real-time operating conditions of the vehicle, obtain the corresponding zero-point offset and gain correction factor, and correct the real-time operating parameters collected by each preset sampling channel based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters.

[0040] In this embodiment of the disclosure, the electronic device can obtain the corresponding zero-point offset and gain correction factor according to the real-time operating conditions of the vehicle, and correct the real-time operating parameters collected by each preset sampling channel based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters.

[0041] Optionally, real-time operating conditions can refer to the operating status of the vehicle during real-time operation.

[0042] Specifically, during vehicle operation, the electronic equipment can determine the vehicle's real-time operating condition and the corresponding zero-point offset and gain correction factor. Then, based on the zero-point offset and gain correction factor, the real-time operating parameters collected by each preset sampling channel are corrected to obtain the calibration operating parameters. This can be calculated using the formula: Calibration operating parameters = (Real-time operating parameters - Zero-point offset) × Gain correction factor; however, this is not a limitation here.

[0043] S130. Control the on-board charger according to the calibration working parameters.

[0044] In this embodiment of the disclosure, the electronic device can control the on-board charger according to the calibration operating parameters.

[0045] Specifically, after obtaining the calibration parameters, the electronic device can control the on-board charger according to these parameters. For example, it can adjust the duty cycle of the power switch to control the charging voltage or charging current; determine whether to trigger overvoltage protection, overcurrent protection, or undervoltage protection based on the comparison between the calibration parameters and preset protection thresholds; calculate the input power, output power, and charging efficiency based on the calibration parameters, and optimize the charging strategy or evaluate the system health status based on the calculation results. By applying the calibrated real values ​​to scenarios such as closed-loop control, fault protection, and status monitoring, precise control and reliable operation of the on-board charger are achieved.

[0046] Therefore, under preset operating conditions, the zero-point offset and gain correction factor of each preset sampling channel can be obtained. Then, based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are obtained. The real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and gain correction factor to obtain calibration operating parameters. Finally, the on-board charger is controlled according to the calibration operating parameters. Thus, by obtaining the zero-point offset representing static deviation and the gain correction factor representing dynamic deviation, and by calling the corresponding parameters to correct the real-time operating parameters according to the real-time operating conditions during vehicle operation, and finally controlling the on-board charger based on the calibrated operating parameters, it is possible to adaptively offset sampling errors caused by device aging, improve sampling accuracy, thereby reducing the false alarm rate and improving the performance utilization rate of the charger.

[0047] Optionally, S110 may specifically include: when the vehicle is in a first preset operating condition, acquiring the zero-point offset of each preset sampling channel at different temperatures, the first preset operating condition being used to characterize that the vehicle meets preset sleep conditions and all power switching devices are in the off state; when the vehicle is in a second preset operating condition, acquiring the gain correction factor of each preset sampling channel at different temperatures, the second preset operating condition being used to characterize that the target operating state parameters of the vehicle are within a preset range during the charging process.

[0048] In this embodiment of the disclosure, when the vehicle is under a first preset operating condition, the electronic device can acquire the zero-point offset of each preset sampling channel at different temperatures.

[0049] Optionally, the first preset operating condition is used to characterize that the vehicle meets preset sleep conditions, and all power switching devices are in the off state.

[0050] Specifically, when the vehicle is in the first preset operating condition, such as when the vehicle meets the preset hibernation conditions (about to hibernate or the vehicle will hibernate after charging is complete), all power switching devices are in the off state, i.e., in a no-power state. Each preset sampling channel is in a zero-input state, which is beneficial for accurately obtaining static deviation and avoids interference from power signals on zero-point measurement. The electronic equipment can obtain the zero-point offset of each preset sampling channel at different temperatures.

[0051] In this embodiment of the disclosure, when the vehicle is under a second preset operating condition, the electronic device can acquire the gain correction factor of each preset sampling channel at different temperatures.

[0052] Optionally, the second preset operating condition is used to characterize that the charging power of the vehicle is within a preset range during the charging process.

[0053] Specifically, when the vehicle is in the second preset operating condition, such as when the vehicle is in a stable operating state during charging, i.e., the charging capacity is within a preset range (e.g., charging capacity less than 10%, charging capacity greater than 90%, etc., not limited here), the charging current is stable and small, the system heat loss is low, and the sampling values ​​of each channel fluctuate little, which is beneficial for accurately calculating the gain correction factor. The electronic device can obtain the gain correction factor of each preset sampling channel at different temperatures.

[0054] Therefore, by acquiring calibration parameters under different operating conditions and in different dimensions, the purity and accuracy of each parameter acquisition process are ensured. Zero-point offset is acquired under no-power conditions, avoiding interference from power signals on static error measurements; gain correction factors are acquired under stable operating conditions, utilizing the physical constraints between associated channels to improve parameter identification accuracy. This operating condition-specific acquisition strategy provides high-quality reference parameters for subsequent real-time calibration.

[0055] Optionally, when the vehicle is under a first preset operating condition, the zero-point offset of each preset sampling channel at different temperatures is obtained, including: when the vehicle is under the first preset operating condition, each preset sampling channel is sequentially detected and analyzed by a built-in reference voltage source to obtain the analog-to-digital conversion value of each preset sampling channel at different temperatures; the difference between the analog-to-digital conversion value corresponding to different temperatures and the preset theoretical value is calculated to obtain the zero-point offset at different temperatures.

[0056] In this embodiment of the present disclosure, when the vehicle is under a first preset operating condition, the electronic device can sequentially detect and analyze each preset sampling channel through a built-in reference voltage source to obtain the analog-to-digital conversion values ​​of each preset sampling channel at different temperatures.

[0057] Optionally, the built-in reference voltage source can be a high-precision, low-temperature-drift voltage source with a precisely known output voltage value (e.g., 2.5V, accuracy 0.1%).

[0058] Specifically, when the vehicle is in the first preset operating condition, the electronic device can sequentially connect the built-in reference voltage source to each preset sampling channel. After the channel is connected, wait for the signal to stabilize before detection, analysis and processing. The analog-to-digital converter (ADC) is used to obtain the analog-to-digital conversion values ​​of each preset sampling channel at different temperatures.

[0059] Furthermore, the electronic device can calculate the difference between the analog-to-digital conversion value corresponding to different temperatures and the preset theoretical value to obtain the zero-point offset at different temperatures.

[0060] Optionally, the preset theoretical value can be the analog-to-digital conversion value corresponding to the reference voltage source under ideal conditions. For example, for a 12-bit ADC system with a reference voltage of 5V, the theoretical value corresponding to 2.5V is 2048.

[0061] Specifically, after obtaining the analog-to-digital conversion value, due to static errors such as operational amplifier offset and ADC bias, the actual reading value may deviate from the theoretical value. This deviation is the zero-point offset. The difference between the analog-to-digital conversion value corresponding to different temperatures and the preset theoretical value is calculated, and temperature sensor data is read simultaneously to obtain the zero-point offset at different temperatures. Finally, the corresponding temperature, channel identifier, and zero-point offset are stored as a related data point in the calibration table.

[0062] Therefore, by using a built-in reference voltage source as a known standard, the response of the sampling channel to this standard is measured, thereby deduce the channel's inherent static error. This method can accurately quantify the inherent static error of each sampling channel in a power-free state, providing accurate reference parameters for subsequent real-time correction.

[0063] Optionally, the analog-to-digital conversion value of each preset sampling channel is obtained by sequentially detecting and analyzing each preset sampling channel through a built-in reference voltage source, including: sequentially connecting the built-in reference voltage source to the analog front end of each preset sampling channel, and applying a corresponding reference voltage signal to each preset sampling channel through the built-in reference voltage source; collecting the response signal of each preset sampling channel to the reference voltage signal and performing detection and analysis to obtain the analog-to-digital conversion value of each preset sampling channel.

[0064] In this embodiment of the present disclosure, the electronic device can sequentially connect the built-in reference voltage source to the analog front end of each preset sampling channel, and apply a corresponding reference voltage signal to each preset sampling channel through the built-in reference voltage source.

[0065] Specifically, the electronic device can sequentially connect the built-in reference voltage source to the analog front end of each preset sampling channel. For example, if it is connected to the operational amplifier front end, the built-in reference voltage source applies the corresponding reference voltage signal to each preset sampling channel. The reference voltage signal will pass through the entire signal conditioning circuit, including the operational amplifier and filter, before reaching the ADC; or it can be connected to the ADC reference terminal to apply the corresponding reference voltage signal to the ADC reference terminal.

[0066] Furthermore, the electronic device can collect the response signals of each preset sampling channel to the reference voltage signal and perform detection, analysis and processing to obtain the analog-to-digital conversion value of each preset sampling channel.

[0067] Specifically, after the electronic device sequentially connects the built-in reference voltage source to the analog front end of each preset sampling channel, it waits for a preset stabilization time (e.g., 100 microseconds) to ensure that the switching transient disappears, the circuit charging and discharging is completed, and the operational amplifier output is stable. The response signals of each preset sampling channel to the reference voltage signal are acquired multiple times by the ADC and the average value is taken as the analog-to-digital conversion value of that channel, thereby obtaining the analog-to-digital conversion value of each preset sampling channel.

[0068] Therefore, by connecting the reference voltage source to the analog front end, the reference signal passes through the entire signal conditioning link completely, thus the measured error includes the sum of the static errors of all stages. By waiting for stabilization and averaging multiple samples, the accuracy and reliability of the measurement are further improved.

[0069] Optionally, when the vehicle is in a second preset operating condition, obtaining the gain correction factor of each preset sampling channel at different temperatures includes: when the vehicle is in the second preset operating condition, performing multi-channel data association on each preset sampling channel through a preset model, and synchronously acquiring data from the associated sampling channels to obtain first operating parameter data at different temperatures; and calculating the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures and the filtered first operating parameter data.

[0070] In this embodiment of the disclosure, when the vehicle is in a second preset operating condition, the electronic device can perform multi-channel data association on each preset sampling channel through a preset model, and synchronously collect data on the associated sampling channels to obtain first operating parameter data at different temperatures.

[0071] Optionally, the preset model is a mathematical model based on physical constraints, including but not limited to dynamic conservation models or circuit topology correlation models. For example, a dynamic conservation model is the power conservation relationship between input AC power and output DC power, and a circuit topology correlation model is the turns ratio relationship between the primary current and secondary current of a transformer in a resonant converter.

[0072] Specifically, when the vehicle is in the second preset operating condition, i.e., when the vehicle is detected to have entered a stable operating condition, the electronic device can perform multi-channel data association on each preset sampling channel through a preset model, and synchronously acquire data from the associated sampling channels. For example, each associated sampling channel starts acquiring data simultaneously at a preset sampling frequency (e.g., 10kHz), continuously acquiring a preset number of sampling points (e.g., 1000). After the acquisition is completed, the original sampling data is digitally filtered, including gross error removal (e.g., Laida criterion), median filtering, mean filtering, etc., to obtain the first operating parameter data at different temperatures.

[0073] Furthermore, the electronic device can calculate the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures and the filtered first operating parameter data.

[0074] Specifically, the electronic device can substitute the zero-point offset corresponding to different temperatures and the filtered first working parameter data into the preset model, and use parameter identification algorithms such as the least squares method to solve the problem, thereby obtaining the gain correction factor of each preset sampling channel at different temperatures, and storing the temperature and gain correction factor in the calibration table.

[0075] Therefore, by utilizing the physical constraints between the associated channels under stable operating conditions and combining the acquired zero-point offset, the gain correction factor of each channel is derived through multi-channel data correlation analysis. Synchronous high-speed acquisition ensures the temporal correspondence of the data from each channel, filtering eliminates random noise interference, and the parameter identification algorithm can accurately solve for the gain deviation from redundant data.

[0076] Optionally, after obtaining the first operating parameter data, the method further includes: acquiring the second operating parameter data reported by the target electronic control unit at different temperatures; and calculating the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data.

[0077] In this embodiment of the disclosure, the electronic device can acquire second operating parameter data at different temperatures reported by the target electronic control unit.

[0078] Optionally, the target electronic control unit (ECU) may include a battery management system, a vehicle controller, a motor controller, etc. For example, it can acquire secondary operating parameter data such as the total battery pack voltage and charging current at different temperatures reported by the battery management system. These data typically come from independent sampling circuits, have different error characteristics, and can serve as valuable references.

[0079] Furthermore, the electronic device can calculate the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data.

[0080] Specifically, after obtaining the second working parameter data from the external reference, its validity is first verified, including verifying the data's timeliness (whether the timestamp is up-to-date), reasonableness (whether the data values ​​are within the physical range), and consistency (whether it matches the internal data in terms of magnitude). After successful verification, the second working parameter data and the internal first working parameter data are substituted into a preset model to construct an extended overdetermined system of equations. These equations are then jointly solved to obtain the gain correction factor after incorporating the second working parameter data from the external reference. During the solution process, different weighting coefficients can be assigned based on the credibility of each data source; data sources with higher credibility have a greater influence.

[0081] Therefore, by introducing sampling data from other electronic control units as an external reference, data redundancy and constraints are increased, which helps to improve the accuracy and robustness of parameter identification. Especially when the internal channels have good consistency but there is an overall systemic deviation, the external reference can provide an absolute benchmark and effectively correct the overall offset.

[0082] Optionally, after calculating the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset, the filtered first operating parameter data, and the second operating parameter data, the method further includes: if the gain correction factor corresponding to the target sampling channel exceeds a preset safety range, then determining that the target sampling channel has experienced gain drift; and for the target sampling channel, isolating the second operating parameter data when calculating the gain correction factor again.

[0083] In this embodiment of the disclosure, if the gain correction factor corresponding to the target sampling channel exceeds a preset safety range, the electronic device can determine that the target sampling channel has experienced gain drift.

[0084] Optionally, the preset safety range can be a pre-defined range, such as ±10%.

[0085] Specifically, when the gain correction factor corresponding to the target sampling channel is detected to exceed the preset safety range (±10%), it can be determined that the target sampling channel has experienced gain drift, that is, the sampling value of the channel has seriously deviated from the true value, and the reliability of the external reference calculated based on the channel data also decreases.

[0086] Furthermore, the electronic device can isolate the second operating parameter data for the target sampling channel when calculating the gain correction factor again.

[0087] Specifically, after determining that a gain drift has occurred in the target sampling channel, the electronic device can record the drift event of that channel and report a fault code to the vehicle controller via the vehicle network. In the subsequent gain correction factor self-learning calibration, external reference data from other electronic control units is forcibly shielded, and independent calibration is performed solely based on the zero-point offset and gain correction factor within the on-board charger.

[0088] Therefore, by employing gain drift detection and external reference isolation mechanisms, the contamination of calibration results by unreliable external data is avoided, ensuring that basic calibration functions are maintained even in the event of channel anomalies. This mechanism improves the robustness and security of the system, preventing overall calibration failure due to a single channel anomaly.

[0089] Optionally, S120 may specifically include: acquiring the real-time temperature of the vehicle under real-time operating conditions; and determining the zero-point offset and the gain correction factor that match the real-time temperature.

[0090] In this embodiment of the disclosure, the electronic device can acquire the real-time temperature of the vehicle under real-time operating conditions.

[0091] Furthermore, the electronic device can determine the zero-point offset and the gain correction factor that match the real-time temperature.

[0092] Specifically, the electronic device can determine the real-time temperature of the vehicle during operation and determine the zero-point offset and gain correction factor corresponding to the real-time temperature in the calibration table obtained above. For example, the calibration table adopts a multi-dimensional data structure and includes at least fields such as temperature range index, channel identifier, zero-point offset, and gain correction factor. The temperature range is divided into multiple intervals according to a preset interval (e.g., 5°C), and each interval stores the calibration parameters (i.e., the zero-point offset and the gain correction factor) of the corresponding channel.

[0093] Therefore, by determining the zero-point offset and gain correction factor for real-time temperature matching through the calibration table, the lookup can be performed quickly and easily, achieving segmented and accurate compensation for sampling errors across the entire temperature range.

[0094] Optionally, the on-board charger control method may further include: monitoring and verifying the zero-point offset and the gain correction factor within a preset verification period to obtain corresponding verification results; and determining that the zero-point offset and the gain correction factor are correct when the verification results show that the error is within the allowable range.

[0095] In this embodiment of the disclosure, within a preset verification period, the electronic device can monitor and verify the zero-point offset and the gain correction factor to obtain the corresponding verification results. If the verification result shows that the error is within the allowable range, the zero-point offset and the gain correction factor are determined to be correct.

[0096] Specifically, the electronic device can temporarily store the gain correction factor to be verified in a temporary working area and mark it as "to be verified". Within a preset verification period (e.g., 10 control cycles), the sampled values ​​calibrated using the gain correction factor to be verified will only be used for monitoring, display, and fault diagnosis functions, and will not participate in the closed-loop control loop of the power converter. Simultaneously, the calibrated sampled values ​​are compared in real time with the measured values ​​of redundant reference channels (e.g., independent high-precision sampling circuits or reference values ​​estimated based on the system model), and the system operation status is monitored for control anomalies or protection malfunctions caused by abnormal calibration values. If the deviation between the calibration value and the redundant reference value is consistently less than the preset verification threshold within the verification period, and no control anomalies occur, the gain correction factor is confirmed as correct, its status is updated to "effective," and it is officially used for real-time control. If any anomaly occurs, it automatically reverts to the previous version of the gain correction factor and records the verification failure information.

[0097] This prevents incorrect calibration parameters caused by calculation errors, abnormal operating conditions, or other factors from affecting system control, thereby improving system safety and reliability.

[0098] Figure 2This is a flowchart of another on-board charger control method provided in this embodiment of the present disclosure. like Figure 2 As shown, the on-board charger control method may include the following steps.

[0099] S210. When the vehicle is in the first preset working condition, the built-in reference voltage source sequentially detects and analyzes each preset sampling channel to obtain the analog-to-digital conversion value of each preset sampling channel, and calculates the difference between the analog-to-digital conversion value and the preset theoretical value to obtain the zero-point offset at different temperatures.

[0100] In this embodiment, when the vehicle is in a first preset operating condition, the electronic device can sequentially connect its built-in reference voltage source to each preset sampling channel. After the channel is connected, it waits for the signal to stabilize before performing detection and analysis. The analog-to-digital converter (ADC) is used to obtain the analog-to-digital conversion value of each preset sampling channel. After obtaining the ADC value, due to static errors such as operational amplifier offset and ADC bias, the actual reading may deviate from the theoretical value. This deviation is the zero-point offset. The difference between the ADC value and the preset theoretical value is calculated, and temperature sensor data is read simultaneously to obtain the zero-point offset at different temperatures. Finally, the corresponding temperature, channel identifier, and zero-point offset are stored as a correlation data point in the calibration table.

[0101] S220. When the vehicle is in the second preset working condition, multi-channel data association is performed on each preset sampling channel through the preset model, and synchronous data acquisition is performed on the associated sampling channels to obtain the first working parameter data at different temperatures. Based on the zero-point offset corresponding to different temperatures and the first working parameter data after filtering, the gain correction factor of each preset sampling channel at different temperatures is calculated.

[0102] In this embodiment, when the vehicle is in a second preset operating condition, i.e., when the vehicle is detected to have entered a stable operating condition, the electronic device can perform multi-channel data association on each preset sampling channel through a preset model, and synchronously acquire data from the associated sampling channels. For example, each associated sampling channel starts acquiring data simultaneously at a preset sampling frequency (e.g., 10kHz), continuously acquiring a preset number of sampling points (e.g., 1000). After acquisition, the original sampling data is digitally filtered, including gross error removal (e.g., Laida criterion), median filtering, mean filtering, etc., to obtain the first operating parameter data. The zero-point offset and the filtered first operating parameter data are substituted into the preset model, and parameter identification algorithms such as the least squares method are used to solve the model, thereby obtaining the gain correction factor of each preset sampling channel at different temperatures, and storing the temperature and gain correction factor in a calibration table.

[0103] S230: Obtain the second operating parameter data at different temperatures reported by the target electronic control unit, and calculate the gain correction factor of each preset sampling channel at different temperatures based on the zero offset corresponding to different temperatures, the filtered first operating parameter data and the second operating parameter data.

[0104] In this embodiment, the electronic device can acquire second operating parameter data collected by the target electronic control unit and verify its validity, including verifying the data's timeliness (whether the timestamp is up-to-date), reasonableness (whether the data value is within the physical range), and consistency (whether it matches the internal data in terms of magnitude). After successful verification, the second operating parameter data and the internal first operating parameter data are substituted into a preset model to construct an extended overdetermined system of equations, and the gain correction factor after incorporating the second operating parameter data from external references is obtained through joint solution. During the solution process, different weight coefficients can be assigned according to the credibility of each data source, with data sources with higher credibility having greater influence.

[0105] S240. If the gain correction factor corresponding to the target sampling channel exceeds the preset safety range, it is determined that the target sampling channel has experienced gain drift. For the target sampling channel, the second working parameter data is isolated when calculating the gain correction factor next time.

[0106] In this embodiment, when the gain correction factor corresponding to the target sampling channel is detected to exceed a preset safety range (±10%), it can be determined that the target sampling channel has experienced gain drift, meaning that the sampled value of the channel has significantly deviated from the true value, and the reliability of the external reference calculated based on the channel data also decreases. The electronic device can record the drift event of the channel and report a fault code to the vehicle controller via the vehicle network. In the subsequent gain correction factor self-learning calibration, external reference data from other electronic control units is forcibly shielded, and independent calibration is performed only based on the zero-point offset and gain correction factor inside the on-board charger.

[0107] S250: Obtain the real-time temperature of the vehicle under real-time operating conditions, and determine the zero-point offset and gain correction factor that match the real-time temperature.

[0108] In this embodiment of the disclosure, the electronic device can determine the real-time temperature of the vehicle during operation and determine the zero-point offset and the gain correction factor corresponding to the real-time temperature in the calibration table obtained above. For example, the calibration table adopts a multi-dimensional data structure and includes at least fields such as temperature range index, channel identifier, zero-point offset, and gain correction factor. The temperature range is divided into multiple intervals according to a preset interval (e.g., 5°C), and each interval stores the calibration parameters (i.e., the zero-point offset and the gain correction factor) of the corresponding channel.

[0109] S260: Based on the zero-point offset and gain correction factor, the real-time working parameters collected by each preset sampling channel are corrected to obtain calibration working parameters, and the on-board charger is controlled according to the calibration working parameters.

[0110] In this embodiment, the real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and gain correction factor to obtain calibration operating parameters. The on-board charger is controlled according to these calibration operating parameters, such as adjusting the duty cycle of the power switch to control the charging voltage or charging current; determining whether overvoltage protection, overcurrent protection, or undervoltage protection is triggered based on the comparison between the calibration operating parameters and preset protection thresholds; calculating the input power, output power, and charging efficiency based on the calibration operating parameters, and optimizing the charging strategy or evaluating the system health status based on the calculation results. By applying the calibrated true values ​​to scenarios such as closed-loop control, fault protection, and status monitoring, precise control and reliable operation of the on-board charger are achieved.

[0111] Figure 3 This is a flowchart of another on-board charger control method provided in this disclosure. like Figure 3 As shown, in some embodiments, if the vehicle meets preset sleep conditions, all power switching devices are in the off state, indicating that the vehicle is in a first preset operating condition. The electronic device can sequentially detect and analyze each preset sampling channel through a built-in reference voltage source to obtain the analog-to-digital conversion value of each preset sampling channel at different temperatures. Then, it calculates the difference between the analog-to-digital conversion value corresponding to different temperatures and the preset theoretical value to obtain the zero-point offset at different temperatures. Finally, it stores the corresponding temperature, channel identifier, and zero-point offset in a calibration table.

[0112] In other embodiments, if the target operating state parameters are within a preset range during vehicle charging, the vehicle is determined to be in a second preset operating condition. The electronic device can perform multi-channel data association on each preset sampling channel using a preset model, and synchronously acquire data from the associated sampling channels to obtain first operating parameter data at different temperatures. Then, it acquires second operating parameter data reported by the target electronic control unit at different temperatures. Based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data, it calculates the gain correction factor for each preset sampling channel at different temperatures. Finally, it stores the corresponding temperature, channel identifier, and gain correction factor in a calibration table.

[0113] Furthermore, within a preset verification period, the electronic device can monitor and verify the zero-point offset and gain correction factor, obtaining corresponding verification results. If the verification results show that the error is within the allowable range, the zero-point offset and gain correction factor are determined to be correct. The real-time operating parameters are corrected according to the zero-point offset and gain correction factor in the calibration table to obtain calibration operating parameters, and the on-board charger is controlled according to these calibration operating parameters. Specific implementation methods are described above and will not be repeated here.

[0114] Figure 4 This is a schematic diagram of the structure of an on-board charger control device provided in an embodiment of this disclosure.

[0115] In this embodiment of the disclosure, the on-board charger control device can be located in an electronic device. Specifically, the electronic device can be an on-board controller that integrates multiple processors. For example, the on-board controller can be a human-machine interface terminal (HUT), a vehicle-mounted system, a cockpit domain controller, a body controller, a vehicle controller, etc., which are not limited here.

[0116] like Figure 4 As shown, the on-board charger control device 400 may include a data acquisition module 410, a parameter correction module 420, and a device control module 430.

[0117] The data acquisition module 410 can be used to acquire the zero-point offset and gain correction factor of each preset sampling channel when the vehicle is under preset operating conditions. The zero-point offset is used to characterize the static deviation of the preset sampling channel in the no-power state, and the gain correction factor is used to characterize the dynamic deviation of the preset sampling channel in the power transmission state.

[0118] The parameter correction module 420 can be used to obtain the corresponding zero-point offset and gain correction factor according to the real-time operating conditions of the vehicle, and correct the real-time operating parameters collected by each preset sampling channel based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters.

[0119] The device control module 430 can be used to control the on-board charger according to the calibration working parameters.

[0120] Therefore, in this embodiment, under preset operating conditions, the zero-point offset and gain correction factor of each preset sampling channel can be acquired. Then, based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are acquired. The real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and the gain correction factor to obtain calibration operating parameters. Finally, the on-board charger is controlled based on the calibration operating parameters. Thus, by acquiring the zero-point offset representing static deviation and the gain correction factor representing dynamic deviation, and by calling the corresponding parameters to correct the real-time operating parameters based on the real-time operating conditions during vehicle operation, and finally controlling the on-board charger based on the calibrated operating parameters, it is possible to adaptively offset sampling errors caused by device aging, improve sampling accuracy, thereby reducing the false alarm rate and improving the performance utilization rate of the charger.

[0121] In some embodiments of this disclosure, the data acquisition module 410 includes: The first acquisition unit is used to acquire the zero-point offset of each preset sampling channel at different temperatures when the vehicle is in a first preset operating condition. The first preset operating condition is used to characterize that the vehicle meets preset sleep conditions and all power switching devices are in the off state. The second acquisition unit is used to acquire the gain correction factor of each preset sampling channel at different temperatures when the vehicle is in a second preset operating condition. The second preset operating condition is used to characterize that the target operating state parameters of the vehicle are within a preset range during the charging process.

[0122] In some embodiments of this disclosure, the first acquisition unit includes: The first processing subunit is used to detect, analyze and process each preset sampling channel sequentially through a built-in reference voltage source when the vehicle is in a first preset working condition, so as to obtain the analog-to-digital conversion value of each preset sampling channel. The second processing subunit is used to calculate the difference between the analog-to-digital conversion value and the preset theoretical value to obtain the zero-point offset at different temperatures.

[0123] In some embodiments of this disclosure, the first processing subunit is specifically used to sequentially connect the built-in reference voltage source to the analog front end of each preset sampling channel, and apply a corresponding reference voltage signal to each preset sampling channel through the built-in reference voltage source; collect the response signal of each preset sampling channel to the reference voltage signal and perform detection and analysis processing to obtain the analog-to-digital conversion value of each preset sampling channel.

[0124] In some embodiments of this disclosure, the second acquisition unit includes: The third processing subunit is used to perform multi-channel data association on each preset sampling channel through a preset model when the vehicle is in the second preset working condition, and to synchronously collect data on the associated sampling channels to obtain the first working parameter data. The fourth processing subunit is used to calculate the gain correction factor of each preset sampling channel at different temperatures based on the zero offset and the first working parameter data after filtering.

[0125] In some embodiments of this disclosure, the second acquisition unit includes: The fifth processing subunit is used to acquire the second operating parameter data collected by the target electronic control unit; The sixth processing subunit is used to calculate the gain correction factor of each preset sampling channel at different temperatures based on the zero-point offset, the filtered first working parameter data, and the second working parameter data.

[0126] In some embodiments of this disclosure, the second acquisition unit includes: The seventh processing subunit is used to determine that the target sampling channel has experienced gain drift if the gain correction factor corresponding to the target sampling channel exceeds a preset safety range. The eighth processing subunit is used to isolate the second operating parameter data for the target sampling channel when calculating the gain correction factor next time.

[0127] In some embodiments of this disclosure, the parameter correction module 420 includes: A temperature acquisition unit is used to acquire the real-time temperature of the vehicle under real-time operating conditions. A data determination unit is used to determine the zero-point offset and the gain correction factor that match the real-time temperature.

[0128] In some embodiments of this disclosure, the on-board charger control device 400 further includes: The first verification module is used to monitor and verify the zero-point offset and the gain correction factor within a preset verification period, and obtain the corresponding verification results. The second verification module is used to determine that the zero-point offset and the gain correction factor are correct when the verification result shows that the error is within the allowable range.

[0129] It should be noted that, Figure 4 The on-board charger control device 400 shown can execute the various steps in the above method embodiments and realize the various processes and effects in the above method embodiments, which will not be elaborated here.

[0130] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.

[0131] In this embodiment of the disclosure, Figure 5 The electronic devices shown specifically include human-machine interface terminals (HUT), vehicle-mounted systems, cockpit domain controllers, body controllers, and vehicle controllers, etc., but are not limited here.

[0132] like Figure 5 As shown, the electronic device may include a processor 510 and a memory 520 storing computer program instructions.

[0133] Specifically, the processor 510 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this disclosure.

[0134] Memory 520 may include a large-capacity storage device for information or instructions. For example, and not limitingly, memory 520 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 520 may include removable or non-removable (or fixed) media. Where appropriate, memory 520 may be internal or external to the integrated gateway device. In a particular embodiment, memory 520 is a non-volatile solid-state memory. In a particular embodiment, memory 520 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0135] The processor 510 reads and executes computer program instructions stored in the memory 520 to perform the steps of the on-board charger control method provided in this embodiment of the present disclosure.

[0136] In one example, the electronic device may also include a transceiver 530 and a bus 540. Wherein, as... Figure 5As shown, the processor 510, memory 520 and transceiver 530 are connected via bus 540 and communicate with each other.

[0137] Bus 540 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 540 may include one or more buses.

[0138] This disclosure also provides a computer-readable storage medium that can store a computer program. When the computer program is executed by a processor, the processor enables the processor to implement the on-board charger control method provided in this disclosure.

[0139] When the computer program is executed by the processor, it can perform the following steps: under the preset operating conditions of the vehicle, the zero-point offset representing the static deviation and the gain correction factor representing the dynamic deviation are obtained respectively. During vehicle operation, the zero-point offset and the gain correction factor are called to correct the real-time operating parameters according to the real-time operating conditions. Finally, the on-board charger is controlled based on the calibrated operating parameters, so as to adaptively offset the sampling error caused by device aging, improve the sampling accuracy, reduce the false alarm rate, and improve the performance utilization of the charger.

[0140] The aforementioned storage medium may include, for example, a memory 520 containing computer program instructions, which can be executed by a processor 510 of an electronic device to complete the on-board charger control method provided in this embodiment. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a read-only memory (ROM), random access memory (RAM), external cache memory, compact disc ROM (CD-ROM), magnetic tape, floppy disk, flash memory, and optical data storage device. By way of illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0141] This disclosure also provides a vehicle that includes electronic devices that can implement the various processes and effects described in the above embodiments of this disclosure, which will not be elaborated here.

[0142] This disclosure also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the on-board charger control method provided in this disclosure and can achieve the various processes and effects in the above embodiments of this disclosure, which will not be elaborated here.

[0143] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for controlling an on-board charger, characterized in that, The method includes: When the vehicle is under preset operating conditions, the zero-point offset and gain correction factor of each preset sampling channel are obtained respectively. The zero-point offset is used to characterize the static deviation of the preset sampling channel in the no-power state, and the gain correction factor is used to characterize the dynamic deviation of the preset sampling channel in the power transmission state. Based on the real-time operating conditions of the vehicle, the corresponding zero-point offset and gain correction factor are obtained, and the real-time operating parameters collected by each preset sampling channel are corrected based on the zero-point offset and the gain correction factor to obtain the calibration operating parameters. The on-board charger is controlled according to the calibration parameters.

2. The method according to claim 1, characterized in that, The step of acquiring the zero-point offset and gain correction factor of each preset sampling channel under preset operating conditions includes: When the vehicle is under a first preset operating condition, the zero-point offset of each preset sampling channel at different temperatures is obtained. The first preset operating condition is used to characterize that the vehicle meets the preset sleep conditions and all power switching devices are in the off state. When the vehicle is under a second preset operating condition, the gain correction factor of each preset sampling channel at different temperatures is obtained. The second preset operating condition is used to characterize that the charging power of the vehicle is within a preset power range during the charging process.

3. The method according to claim 2, characterized in that, The step of acquiring the zero-point offset of each preset sampling channel at different temperatures under the first preset operating condition of the vehicle includes: When the vehicle is under the first preset operating condition, the built-in reference voltage source sequentially detects and analyzes each preset sampling channel to obtain the analog-to-digital conversion values ​​of each preset sampling channel at different temperatures. The zero-point offset at different temperatures is obtained by calculating the difference between the analog-to-digital conversion value and the preset theoretical value at different temperatures.

4. The method according to claim 3, characterized in that, The process of sequentially detecting and analyzing each preset sampling channel using a built-in reference voltage source to obtain the analog-to-digital conversion value of each preset sampling channel includes: The built-in reference voltage source is sequentially connected to the analog front end of each preset sampling channel, and a corresponding reference voltage signal is applied to each preset sampling channel through the built-in reference voltage source. The response signals of each preset sampling channel to the reference voltage signal are collected and processed by detection and analysis to obtain the analog-to-digital conversion value of each preset sampling channel.

5. The method according to claim 2, characterized in that, The step of acquiring the gain correction factor for each preset sampling channel at different temperatures when the vehicle is in a second preset operating condition includes: When the vehicle is in the second preset working condition, multi-channel data association is performed on each preset sampling channel through a preset model, and synchronous data acquisition is performed on the associated sampling channels to obtain the first working parameter data at different temperatures. The gain correction factor for each preset sampling channel at different temperatures is calculated based on the zero-point offset corresponding to different temperatures and the first working parameter data after filtering.

6. The method according to claim 5, characterized in that, After obtaining the first working parameter data, the method further includes: Acquire the second operating parameter data at different temperatures reported by the target electronic control unit; The gain correction factor for each preset sampling channel at different temperatures is calculated based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data.

7. The method according to claim 6, characterized in that, After calculating the gain correction factor for each preset sampling channel at different temperatures based on the zero-point offset corresponding to different temperatures, the filtered first operating parameter data, and the second operating parameter data, the method further includes: If the gain correction factor corresponding to the target sampling channel exceeds the preset safety range, it is determined that the target sampling channel has experienced gain drift. For the target sampling channel, the second operating parameter data is isolated when the gain correction factor is calculated next time.

8. The method according to claim 1, characterized in that, The step of obtaining the corresponding zero-point offset and gain correction factor based on the real-time operating conditions of the vehicle includes: Obtain the real-time temperature of the vehicle under real-time operating conditions; Determine the zero-point offset and the gain correction factor that match the real-time temperature.

9. The method according to claim 1, characterized in that, The method further includes: Within a preset verification period, the zero-point offset and the gain correction factor are monitored and verified to obtain the corresponding verification results. If the verification result shows that the error is within the allowable range, the zero-point offset and the gain correction factor are determined to be correct.

10. A vehicle, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the on-board charger control method according to any one of claims 1-9.