Voltage compensation method and system, electronic equipment and vehicle

By collecting and analyzing the sensor voltage deviation value at a fixed period, we can determine and adaptively compensate for the voltage fluctuation of the sensor 5V power supply system in the car, solving the problems of false alarms and malfunctions caused by sensor power supply fluctuations, and improving the system's immunity and stability. .

CN118810652APending Publication Date: 2024-10-22GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410802780.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The poor voltage stability of the 5V power supply system for sensors in automobiles can easily lead to power supply fluctuations and crosstalk and wiring harness coupling crosstalk, resulting in sensor voltage fluctuations, which in turn can cause false alarms or malfunctions in the vehicle.

Method used

Collect the voltage value of the sensor power supply circuit at a fixed period, calculate the voltage deviation value and its feasible solution, determine whether there is a periodic voltage fluctuation, and calculate the voltage compensation amount required at the time to be predicted based on the feasible solution and the fixed period to perform adaptive voltage compensation. .

Benefits of technology

Accurately determine whether there are periodic voltage fluctuations in the sensor's 5V power supply system, adaptively predict the voltage compensation amount, actively eliminate periodic pulse interference, improve electromagnetic interference characteristics, and avoid vehicle false alarms or malfunctions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118810652A_ABST
    Figure CN118810652A_ABST
Patent Text Reader

Abstract

The invention provides a voltage compensation method and system, electronic equipment and a vehicle, the vehicle comprises a plurality of sensors and a sensor 5V power supply system, the sensor 5V power supply system is connected with each sensor through a sensor power supply circuit, the voltage of the sensor power supply circuit on the vehicle is collected in a fixed period, and voltage values at a plurality of moments are obtained; calculating a voltage deviation value of each moment according to the voltage value of each moment, and determining a feasible solution of the voltage deviation value of each moment according to the voltage deviation value of each moment; if the feasible solutions of the voltage deviation values at the continuous m moments are the same, whether periodic voltage fluctuation exists in the sensor 5V power supply system or not is determined according to the voltage deviation values at the continuous m moments and the feasible solutions of the voltage deviation values, and the voltage amount needing to be compensated at the moment to be predicted is calculated according to the feasible solutions and the fixed period; and when the time on the vehicle reaches the to-be-predicted moment, compensating the voltage of the 5V power supply system of the sensor according to the voltage quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobiles, and more specifically, to a voltage compensation method, system, electronic equipment and vehicle. Background Art

[0002] As the level of automobile electrification and intelligence continues to improve, the number of on-board sensors on vehicles continues to increase, and these sensors are often powered by their controller sensor 5V power supply system. However, with the continuous deepening of automobile integration and modularization, especially the increasing integration of domain controllers, the density of sensor installation is also increasing.

[0003] Based on the above situation, the number of sensors on the vehicle that are powered by the port of the same sensor 5V power supply system is increasing. The weak current performance and the voltage stability of the controller's 5V power conversion module are relatively poor. It is very easy for power fluctuation crosstalk to occur between multiple sensors, or because the sensor link is long and the sensor is co-wired with the power control system, wiring harness coupling crosstalk may occur, causing sensor voltage fluctuations, resulting in the sensor not being able to work properly, and then causing the vehicle to false alarm or malfunction.

[0004] Therefore, how to provide a voltage compensation method to ensure the normal operation of the sensor when there is voltage fluctuation and avoid false alarms or malfunctions of the vehicle is a problem that urgently needs to be solved in this application. Summary of the invention

[0005] In view of this, the present invention provides a voltage compensation method, system, electronic device and vehicle, so as to ensure the normal operation of the sensor and avoid false alarms or malfunctions of the vehicle when there is voltage fluctuation.

[0006] A first aspect of the present invention provides a voltage compensation method, which is applicable to a vehicle, wherein the vehicle comprises a plurality of sensors and a sensor 5V power supply system, wherein the sensor 5V power supply system is connected to each of the sensors through a sensor power supply circuit, and the method comprises:

[0007] The voltage of the sensor power supply circuit on the vehicle is collected at a fixed period to obtain voltage values ​​at multiple moments; wherein the time interval between two adjacent moments is the fixed period;

[0008] Calculating the voltage deviation value at each moment according to the voltage value at each moment, and determining a feasible solution for the voltage deviation value at each moment according to the voltage deviation value at each moment;

[0009] If there are m consecutive voltage deviation values ​​at the same time and feasible solutions, determine whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same time and their feasible solutions; wherein m is greater than a preset threshold;

[0010] If the 5V power supply system of the sensor has periodic voltage fluctuations, the voltage amount that needs to be compensated at the time to be predicted is calculated according to the feasible solution and the fixed period;

[0011] When the time on the vehicle reaches the predicted time, the voltage of the sensor 5V power supply system is compensated according to the voltage amount.

[0012] Optionally, the calculating the voltage deviation value at each moment according to the voltage value at each moment, and determining a feasible solution for the voltage deviation value at each moment according to the voltage deviation value at each moment, includes:

[0013] Calculating a voltage deviation value at each moment according to the voltage value at each moment;

[0014] For each voltage deviation value at the moment, a feasible solution for the voltage deviation value at the moment is determined from a plurality of natural numbers, wherein the feasible solution enables the voltage deviation value at the moment to simultaneously satisfy a preset voltage deviation condition and a preset voltage accuracy condition.

[0015] Optionally, the preset voltage deviation condition indicates that the absolute value of the voltage deviation value at the moment is not less than each deviation threshold within the allowable deviation range of the sensor voltage; the preset voltage accuracy condition indicates that the absolute value of the voltage accuracy value at the moment is less than or equal to a preset voltage identification accuracy threshold; wherein, the voltage accuracy value at the moment is calculated based on the voltage deviation value at the moment and the feasible solution.

[0016] Optionally, if there are m consecutive voltage deviation values ​​at the same moment and the feasible solutions are the same, judging whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same moment and the feasible solutions thereof includes:

[0017] If there are m consecutive voltage deviation values ​​at the same time that have the same feasible solutions, determine whether the m consecutive voltage deviation values ​​at the same time can form a voltage deviation value set; wherein the voltage deviation value set includes a plurality of voltage deviation value groups, each of which includes voltage deviation values ​​at two time points whose serial number difference is equal to the feasible solution and the voltage deviation values ​​at the two time points are equal;

[0018] If the voltage deviation values ​​at m consecutive moments can form the voltage deviation value set, it is determined that periodic voltage fluctuations exist in the 5V power supply system of the sensor.

[0019] Optionally, calculating the voltage amount that needs to be compensated at the time to be predicted according to the feasible solution and the fixed period includes:

[0020] Determining a time period to be predicted based on the current time of the vehicle and the time to be predicted;

[0021] Calculating a quotient of the time period to be predicted and a fixed period, and determining whether the quotient is a natural number;

[0022] If the quotient is a natural number, the compensation time is determined according to the product of the time period to be predicted and the fixed period and the feasible solution, and the voltage deviation value corresponding to the compensation time is determined as the voltage amount to be compensated at the time to be predicted.

[0023] Optionally, the method further includes:

[0024] If the quotient is not a natural number, determining a first compensation time and a second compensation time according to the quotient, the fixed period and the feasible solution; wherein the first compensation time and the second compensation time are two adjacent times;

[0025] The voltage amount that needs to be compensated at the predicted moment is determined according to the voltage deviation value at the first compensation moment and the voltage deviation value at the second compensation moment.

[0026] A second aspect of the present invention provides a voltage compensation system, which is applicable to a vehicle, wherein the vehicle comprises a plurality of sensors and a sensor 5V power supply system, wherein the sensor 5V power supply system is connected to each of the sensors through a sensor power supply circuit, and the voltage compensation system comprises:

[0027] An interference voltage acquisition module is used to collect the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments; wherein the time interval between two adjacent moments is the fixed period;

[0028] A voltage fluctuation calculation module, used to calculate the voltage deviation value at each moment according to the voltage value at each moment, and determine the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive voltage deviation values ​​at the same moment, judging whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same moment and their feasible solutions; wherein m is greater than a preset threshold;

[0029] A voltage compensation module, used to calculate the voltage amount to be compensated at the time to be predicted according to the feasible solution and the fixed period;

[0030] A signal decision module is used to compensate the voltage of the sensor 5V power supply system according to the voltage amount when the time on the vehicle reaches the predicted moment.

[0031] Optionally, the voltage fluctuation calculation module includes:

[0032] A voltage deviation value calculation unit, used for calculating the voltage deviation value at each moment according to the voltage value at each moment;

[0033] A feasible solution determining unit is used to determine, for each voltage deviation value at the moment, a feasible solution for the voltage deviation value at the moment from a plurality of natural numbers, wherein the feasible solution enables the voltage deviation value at the moment to simultaneously satisfy a preset voltage deviation condition and a preset voltage accuracy condition.

[0034] The third aspect of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement the voltage compensation method provided in the first aspect of the present invention.

[0035] A fourth aspect of the present invention provides a vehicle, comprising the electronic device provided by the third aspect of the present invention, wherein the electronic device is used to execute the voltage compensation method provided by the first aspect of the present invention.

[0036] The present invention provides a voltage compensation method, system, electronic device and vehicle, which collect the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments; calculate the voltage deviation value at each moment according to the voltage value at each moment, and determine the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive voltage deviation values ​​at the same moment, determine whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the voltage deviation values ​​at the m consecutive moments and their feasible solutions; wherein m is greater than a preset threshold; if there is periodic voltage fluctuation in the 5V power supply system of the sensor, calculate the voltage amount to be compensated at the predicted moment according to the feasible solution and the fixed period. It can be seen that the technical solution provided by the present invention can accurately determine whether there is periodic voltage fluctuation in the sensor 5V power supply system according to the voltage deviation value at each moment collected in a fixed period, and the feasible solution when the sensor 5V power supply system has periodic voltage fluctuation can be used to adaptively predict the amount of voltage that needs to be supplemented at any time in the future, thereby realizing the use of data-driven thinking to adaptively compensate the voltage of the sensor 5V power supply system, actively eliminate periodic pulse interference, and improve the electromagnetic anti-interference characteristics of the sensor 5V power supply system. In addition, by adaptively compensating the voltage of the sensor 5V power supply system, it is also possible to ensure the normal operation of the sensor when there is voltage fluctuation, thereby avoiding false alarms or malfunctions of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 A schematic flow chart of a voltage compensation method provided by an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of the structure of a voltage compensation system provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0043] It should be noted that the concepts such as "first" and "second" mentioned in the disclosure of the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0044] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0045] See also Figure 1 , shows a flow chart of a voltage compensation method provided by an embodiment of the present invention, the voltage compensation method is applicable to a vehicle, the vehicle includes a plurality of sensors and a controller, the controller includes a sensor 5V power supply system, the sensor 5V power supply system is connected to each sensor through a sensor power supply circuit, the voltage compensation method specifically includes the following steps:

[0046] S101: collecting the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments, wherein the time interval between two adjacent moments is the fixed period.

[0047] In the specific process of executing step S101, a corresponding fixed period may be preset, for example, the fixed period may be set to 5ms, 6ms, 8ms, etc., which is not limited in this embodiment of the present invention. After the fixed period is set, the voltage of the sensor power supply circuit on the vehicle may be collected at a fixed period, that is, the voltage of the sensor power supply circuit on the vehicle may be periodically collected to obtain voltage values ​​at multiple moments, wherein the time interval between each two adjacent moments is the fixed period.

[0048] It should be noted that the multiple moments are multiple consecutive moments sorted in the order of collection.

[0049] S102: Calculate the voltage deviation value at each moment according to the voltage value at each moment.

[0050] In the specific process of executing step S102, the corresponding preset voltage threshold can be set in advance according to the supply voltage of the sensor 5V power system, so that when the voltage values ​​at multiple consecutive moments are collected, the voltage value at each moment is subtracted from the preset voltage threshold to obtain the voltage deviation value at each moment.

[0051] For example, if the supply voltage of the sensor's 5V power supply system is 5V, the preset voltage threshold can be set to 5, and then the voltage value at a certain moment can be subtracted from 5 to obtain the voltage deviation value at that moment, as shown in formula (1).

[0052] E v (k) = v(k) - 5 (1)

[0053] Where k is a certain moment in a fixed period, v(k) is the voltage value at the kth moment, and E v (k) is the voltage deviation value at the kth moment.

[0054] S103: Determine a feasible solution for the voltage deviation value at each moment according to the voltage deviation value at each moment.

[0055] In the specific process of executing step S103 , after obtaining the voltage deviation value at each moment, a feasible solution of the voltage deviation value at each moment is determined according to the voltage deviation value at each moment, the preset voltage deviation condition and the preset voltage accuracy condition.

[0056] It should be noted that in the prior art, the voltage value at a certain moment is generally collected, and the voltage deviation value at that moment is calculated based on the collected voltage value. If the voltage deviation value at that moment is not 0, it can be determined that there is voltage fluctuation in the system. However, this method has low anti-interference ability and high false alarm rate. The present invention determines a feasible solution based on the voltage deviation value at each moment, the preset voltage deviation condition, and the preset voltage accuracy condition, and then uses the feasible solution of the determined voltage deviation value at each moment and the voltage deviation value at each moment to determine whether there is periodic voltage fluctuation in the sensor 5V power supply system. It not only has strong anti-interference ability but also low false alarm rate.

[0057] Optionally, the process of calculating the voltage deviation value at each moment according to the voltage value at each moment, and determining the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment can be specifically as follows: calculating the voltage deviation value at each moment according to the voltage value at each moment; for the voltage deviation value at each moment, determining a feasible solution of the voltage deviation value at the moment from multiple natural numbers, wherein the feasible solution makes the voltage deviation value at the moment satisfy both a preset voltage deviation condition and a preset voltage accuracy condition.

[0058] In some embodiments, for the voltage deviation value at each moment, a feasible solution that can make the voltage deviation value at that moment satisfy both the preset voltage deviation condition and the preset voltage accuracy condition can be determined from various natural numbers by exhaustive enumeration.

[0059] Optionally, the preset voltage deviation condition indicates that the absolute value of the voltage deviation value at the moment is not less than each deviation threshold value within the allowable deviation range of the sensor voltage, as shown in formula (2); the preset voltage accuracy condition indicates that the absolute value of the voltage accuracy value at the moment is less than or equal to a preset voltage recognition accuracy threshold value, wherein the voltage accuracy value at the moment is calculated based on the voltage deviation value at the moment and a feasible solution, as shown in formula (3).

[0060]

[0061] Among them, |E v (k)| is the absolute value of the voltage deviation at the kth moment, is the allowable deviation range of the sensor voltage. It can be seen from formula (2) that for the voltage deviation value at each moment, if the absolute value of the voltage deviation value at that moment is greater than or equal to the various deviation thresholds of the allowable deviation range of the sensor voltage, then it can be considered that the voltage deviation value at that moment meets the preset voltage deviation condition.

[0062]

[0063] in, is the voltage accuracy value at the kth moment, is a feasible solution, is a natural number, E A It is the preset voltage recognition accuracy.

[0064] It should be noted that, for the voltage deviation value at each moment, after the voltage deviation value at that moment is simultaneously substituted into formula (2) and formula (3), the exhaustive method is used to sequentially substitute each natural number from small to large into formula (2) and formula (3) into which the voltage deviation value has been substituted. When it is detected that formula (2) and formula (3) are simultaneously established, the natural number that makes formula (2) and formula (3) simultaneously established is determined as a feasible solution for the voltage deviation value at that moment.

[0065] It should also be noted that by comparing the absolute value of the voltage deviation value at any moment with the various deviation thresholds within the allowable deviation range of the sensor voltage, and comparing the absolute value of the voltage accuracy value at that moment with the preset voltage recognition accuracy, the feasible solution at each moment can be determined more accurately, thereby achieving the purpose of improving the accuracy of determining the periodic voltage fluctuations of the system.

[0066] S104: Determine whether there are m consecutive voltage deviation values ​​at each moment with the same feasible solution; if there are m consecutive voltage deviation values ​​at each moment with the same feasible solution, execute step S105.

[0067] In the specific process of executing step S104, after determining the feasible solution of the voltage deviation value at each moment, it can be determined whether there are multiple voltage deviation values ​​at the same and continuous moments with the same feasible solution in each moment. If so, it can be further determined whether the number of multiple voltage deviation values ​​at the same and continuous moments with the same feasible solution is greater than a preset threshold value M; if greater, it can be determined that there are m voltage deviation values ​​at the same and continuous moments with the same feasible solution in each moment, and then step S105 can be executed; if there are no voltage deviation values ​​at the same and continuous moments with the same feasible solution or the number of voltage deviation values ​​at the same and continuous moments with the same feasible solution is not greater than M, it can return to execute step S101. Among them, m is the number of voltage deviation values ​​at multiple continuous moments with the same feasible solution.

[0068] In some embodiments, the preset threshold M of the system compensation strategy can be defined from the perspective of the duration of the disturbance voltage, so that after the feasible solution of the voltage deviation value at each moment, the voltage deviation values ​​of m consecutive moments with the same feasible solution can be determined from each moment, and then the voltage deviation values ​​of m consecutive moments with the same feasible solution and their feasible solutions can be used to determine whether there is periodic voltage fluctuation in the sensor 5V power supply system, which not only has strong anti-interference ability but also low false alarm rate; if the number m of multiple consecutive target moments is not greater than M, the sensor 5V power supply system can be determined. Wherein, M∈N is a natural number.

[0069] S105: Based on the voltage deviation values ​​at m consecutive moments and their feasible solutions, determine whether the 5V power supply system of the sensor has periodic voltage fluctuations. If the 5V power supply system of the sensor has periodic voltage fluctuations, execute step S106.

[0070] In the specific process of executing step S105, when it is determined that there are voltage deviations at m consecutive moments that are the same as feasible solutions, it is determined whether the voltage deviation values ​​at m consecutive moments can constitute a voltage deviation value set; wherein the voltage deviation value set includes multiple voltage deviation value groups, each voltage deviation value group includes voltage deviation values ​​at two moments whose serial number difference is equal to the feasible solution and the voltage deviation values ​​at these two moments are equal; if the voltage deviation values ​​at m consecutive moments can constitute a voltage deviation value set, it can be considered that there are periodic voltage fluctuations in the sensor 5V power supply system; if the voltage deviation values ​​at m consecutive moments cannot constitute a voltage deviation value set, it can be considered that there are no periodic voltage fluctuations in the sensor 5V power supply system, and then the process can return to executing step S101, and re-collect the voltage of the sensor power supply circuit on the vehicle at a fixed period.

[0071] In some embodiments, when it is determined that there are voltage deviations at m consecutive moments with the same feasible solution, the m consecutive moments can be sorted, and multiple voltage deviation value groups can be determined from the m consecutive moments according to the feasible solution, wherein the serial number difference between the two moments in each voltage deviation value group is equal to the feasible solution; it is judged whether the voltage deviation values ​​at the two moments in each voltage deviation value group are equal; if the voltage deviation values ​​at the two moments in each voltage deviation value group are the same, it can be considered that the voltage deviation values ​​at the m consecutive moments can constitute a voltage deviation value set, that is, it can be determined that there are periodic voltage fluctuations in the sensor 5V power supply system.

[0072] It is worth mentioning that, through research by the applicant, it was found that, compared with setting a fixed cycle, by combining the voltage deviation values ​​at two moments with a serial number difference equal to a feasible solution, and then comparing the voltage deviation values ​​at two moments of each combination, it is possible to more accurately determine whether there is periodic voltage fluctuation in the sensor 5V power supply system.

[0073] It should be noted that if there are feasible solutions with equal and continuous voltage deviation values ​​at m moments, where m is greater than M, then a set {E v (k0), E v (k0+t0),...,E v (k0+mt0)}.

[0074] It is worth mentioning that the applicant has found that in the prior art, the voltage value at a certain moment is generally collected, and the voltage deviation value at that moment is calculated based on the collected voltage value. If the voltage deviation value at that moment is not 0, it can be determined that there is voltage fluctuation in the system. However, this method has low anti-interference ability and high false alarm rate. The present invention considers that there is periodic voltage fluctuation in the system only when it is determined that there are multiple continuous voltage deviation values ​​at the moments that simultaneously meet the preset voltage deviation condition and the preset voltage accuracy condition, and the multiple continuous voltage deviation values ​​can form a voltage deviation set. This method not only has high accuracy but also strong anti-interference ability.

[0075] S106: Calculate the voltage amount that needs to be compensated at the predicted time according to the feasible solution and the fixed period, and compensate the voltage of the sensor 5V power supply system according to the voltage amount when the time on the vehicle reaches the predicted time.

[0076] In the process of specifically executing step S105, in order to ensure that the voltage amount that needs to be compensated at any time in the future can be calculated, when it is determined that there are periodic voltage fluctuations in the sensor 5V power supply system, the time period to be predicted can be determined based on the current time of the vehicle and the time to be predicted, and the quotient of the time period to be predicted and the fixed period can be calculated, so that the voltage amount that needs to be compensated at the time to be predicted can be determined based on the quotient, the fixed period and the feasible solution, so that when the time on the vehicle reaches the time to be predicted, the voltage of the sensor 5V power supply system can be compensated according to the voltage amount. In this way, the periodic voltage fluctuations of the 5V sensor power supply port of the sensor 5V power supply system can be focused on, and the voltage of the sensor 5V power supply system can be adaptively compensated in real time using the data-driven idea, periodic pulse interference can be actively eliminated, and the robustness of the 5V sensor system can be improved.

[0077] It should be noted that after calculating the voltage amount that needs to be compensated at the predicted moment, the time on the vehicle can be detected in real time. When it is detected that the time on the vehicle reaches the predicted moment, the voltage amount corresponding to the predicted moment can be used to adjust the voltage amount output by the sensor 5V power supply system; specifically, when the time on the vehicle reaches the predicted moment, if the calculated voltage amount corresponding to the predicted moment is a positive number, the sensor 5V power supply system is controlled to reduce the target voltage amount (the absolute value of the voltage amount corresponding to the predicted moment) on the basis of the original output voltage amount, so that the final output voltage amount of the sensor 5V power supply system approaches 5V or is equal to 5V; if the calculated voltage amount corresponding to the predicted moment is a negative number, the sensor 5V power supply system is controlled to increase the target voltage amount (the absolute value of the voltage amount corresponding to the predicted moment) on the basis of the original output voltage amount, so that the final output voltage amount of the sensor 5V power supply system approaches 5V or is equal to 5V.

[0078] Optionally, the process of calculating the voltage amount that needs to be compensated at the predicted moment based on the feasible solution and the fixed period can be specifically as follows: based on the current time of the vehicle and the predicted moment, determine the time period to be predicted; calculate the quotient of the time period to be predicted and the fixed period, and determine whether the quotient is a natural number; if the quotient is a natural number, determine the compensation moment based on the product of the time period to be predicted and the fixed period with the feasible solution, and determine the voltage deviation value corresponding to the compensation moment as the voltage amount that needs to be compensated at the predicted moment.

[0079] If the quotient is not a natural number, determine the first compensation moment and the second compensation moment based on the quotient, the fixed period and the feasible solution; wherein the first compensation moment and the second compensation moment are two adjacent moments; determine the voltage amount that needs to be compensated at the predicted moment based on the voltage deviation value at the first compensation moment and the voltage deviation value at the second compensation moment.

[0080] It is worth noting that, from the above content, it can be seen that if the quotient belongs to a natural number, it means that there is a certain periodicity between the predicted moment and a certain moment of the previously calculated voltage deviation value. Therefore, when the quotient belongs to a natural number, the voltage deviation value corresponding to the determined compensation moment can be directly used as the voltage amount to be compensated at the predicted moment; if the quotient does not belong to a natural number, it means that there is no certain periodicity between the predicted moment and any moment of the previously calculated voltage deviation value. In order to improve the accuracy of the voltage amount to be compensated at the determined predicted moment, the first compensation moment and the second compensation moment can be determined according to the quotient, the fixed period and the feasible solution, and then the voltage amount to be compensated at the predicted moment can be determined according to the voltage deviation value at the first compensation moment and the voltage deviation value at the second compensation moment. It can be seen that the discrete acquisition determination method is used to determine the periodic voltage fluctuation of the sensor 5V power supply system, and the sampling point numerical discrete compensation combined with the linear interpolation method is used to compensate for the continuous and discontinuous voltage compensation, thereby realizing the adaptive compensation of the voltage of the sensor 5V power supply system.

[0081] In the embodiment of the present invention, when it is determined that there is periodic voltage fluctuation in the 5V power supply system of the sensor, the voltage amount to be compensated at any time within k~k+Nt0 can be calculated according to formula (4). Specifically, if the quotient is a natural number, the product of the time period to be predicted and the fixed period and the feasible solution is calculated, the difference between the time period to be predicted and the product is calculated, and the compensation time is determined according to the difference, as shown in formula (4), and finally the voltage deviation value at the compensation time can be determined as the voltage amount to be compensated at the time to be predicted. If the quotient is not a natural number, the quotient can be rounded up and down respectively, and the first compensation time and the second compensation time are determined according to the numbers obtained by the pre-fixed period, the feasible solution, the rounding up and the rounding down, and the average value of the sum of the voltage deviation value at the first compensation time and the voltage deviation value at the second compensation time is calculated, as shown in formula (4), and finally the average value obtained is used as the voltage amount to be compensated at the time to be predicted.

[0082]

[0083] Among them, V c (k+t) is the voltage amount to be compensated at the time to be predicted, k+t is the time to be predicted and the time to be predicted is any time within k~k+Nt0, To compensate for the time, It can be the first compensation moment or the second compensation moment. To round down, correspondingly, is the first compensation moment or is the second compensation moment, To round up.

[0084] The present invention provides a voltage compensation method, which collects the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments; calculates the voltage deviation value at each moment according to the voltage value at each moment, and determines the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive moments with the same feasible solution of the voltage deviation value, judge whether there is periodic voltage fluctuation in the sensor 5V power supply system according to the voltage deviation values ​​at the m consecutive moments and their feasible solutions; wherein m is greater than a preset threshold; if there is periodic voltage fluctuation in the sensor 5V power supply system, calculate the voltage amount to be compensated at the predicted moment according to the feasible solution and the fixed period, which shows that the present invention provides a method for compensating the voltage at each moment; The technical solution provided can accurately determine whether there is periodic voltage fluctuation in the sensor's 5V power supply system according to the voltage deviation values ​​at each moment collected in a fixed period, and use the feasible solution when the sensor's 5V power supply system has periodic voltage fluctuation to adaptively predict the amount of voltage that needs to be supplemented at any moment in the future, thereby realizing adaptive compensation of the voltage of the sensor's 5V power supply system by data-driven thinking, actively eliminating periodic pulse interference, and improving the electromagnetic anti-interference characteristics of the sensor's 5V power supply system. In addition, by adaptively supplementing the voltage of the sensor's 5V power supply system, the normal operation of the sensor can be guaranteed when the sensor voltage fluctuates, thereby avoiding false alarms or malfunctions of the vehicle.

[0085] Based on the voltage compensation method provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a voltage compensation system, such as Figure 2 As shown, it is suitable for vehicles, the vehicle includes multiple sensors and controllers, the controller includes a sensor 5V power supply system, and the sensor 5V power supply system is connected to each sensor through a sensor power supply circuit; the voltage compensation system includes an interference voltage acquisition module, a voltage fluctuation calculation module, a voltage compensation module and a signal decision module, the input end of the interference voltage acquisition module is connected to the sensor power supply circuit, the output end of the interference voltage acquisition module is connected to the input end of the voltage fluctuation calculation module, the output end of the voltage fluctuation calculation module is connected to the input end of the voltage compensation module, the output end of the voltage compensation module is connected to the input end of the signal decision module, and the output end of the signal decision module is connected to the sensor power supply circuit;

[0086] The interference voltage acquisition module is used to collect the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments; wherein the time interval between two adjacent moments is a fixed period;

[0087] A voltage fluctuation calculation module is used to calculate the voltage deviation value at each moment according to the voltage value at each moment, and determine the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive moments with the same feasible solution of the voltage deviation value, according to the m consecutive moments of voltage deviation values ​​and their feasible solutions, it is judged whether there is periodic voltage fluctuation in the sensor 5V power supply system; wherein m is greater than a preset threshold value;

[0088] The voltage compensation module is used to calculate the voltage amount that needs to be compensated at the time to be predicted based on the feasible solution and the fixed period;

[0089] The signal decision module is used to compensate the voltage of the sensor's 5V power supply system according to the voltage amount when the time on the vehicle reaches the predicted moment.

[0090] The specific principles and execution processes of each unit in the voltage compensation system disclosed in the above embodiment of the present invention are the same as the voltage compensation method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the voltage compensation method disclosed in the above embodiment of the present invention, and will not be repeated here.

[0091] The present invention provides a voltage compensation method system, which obtains voltage values ​​at multiple moments; calculates the voltage deviation value at each moment according to the voltage value at each moment, and determines the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive moments with the same feasible solution of the voltage deviation value, judge whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the voltage deviation values ​​at the m consecutive moments and their feasible solutions; wherein m is greater than a preset threshold; if there is periodic voltage fluctuation in the 5V power supply system of the sensor, calculate the voltage amount to be compensated at the time to be predicted according to the feasible solution and the fixed period. It can be seen that the technical solution provided by the present invention can be used according to the following The voltage deviation values ​​collected at each moment in a fixed period can be used to accurately determine whether there are periodic voltage fluctuations in the sensor's 5V power supply system. The feasible solution when the sensor's 5V power supply system has periodic voltage fluctuations can be used to adaptively predict the amount of voltage that needs to be supplemented at any time in the future, thereby realizing the use of data-driven thinking to adaptively compensate for the voltage of the sensor's 5V power supply system, actively eliminate periodic pulse interference, and improve the electromagnetic anti-interference characteristics of the sensor's 5V power supply system. In addition, by adaptively compensating the voltage of the sensor's 5V power supply system, the normal operation of the sensor can be guaranteed when there are voltage fluctuations, thereby avoiding false alarms or malfunctions of the vehicle.

[0092] Optional, voltage fluctuation calculation module, including:

[0093] A voltage deviation value calculation unit, used to calculate the voltage deviation value at each moment according to the voltage value at each moment;

[0094] The feasible solution determining unit is used to determine a feasible solution of the voltage deviation value at each moment from a plurality of natural numbers, wherein the feasible solution enables the voltage deviation value at the moment to simultaneously satisfy a preset voltage deviation condition and a preset voltage accuracy condition.

[0095] Optionally, the preset voltage deviation condition indicates that the absolute value of the voltage deviation value at the moment is not less than each deviation threshold within the allowable deviation range of the sensor voltage; the preset voltage accuracy condition indicates that the absolute value of the voltage accuracy value at the moment is less than or equal to a preset voltage identification accuracy threshold; wherein, the voltage accuracy value at the moment is calculated based on the voltage deviation value at the moment and a feasible solution.

[0096] Optional, voltage fluctuation calculation module, including:

[0097] A judging unit, used for judging whether the voltage deviation values ​​at the consecutive m moments can form a voltage deviation value set if there are the same feasible solutions for the voltage deviation values ​​at the consecutive m moments; wherein the voltage deviation value set includes a plurality of voltage deviation value groups, each voltage deviation value group includes voltage deviation values ​​at two moments whose sequence number difference is equal to the feasible solution and the voltage deviation values ​​at the two moments are equal;

[0098] The periodic voltage fluctuation determination unit is used to determine that the sensor 5V power supply system has periodic voltage fluctuations if the voltage deviation values ​​at m consecutive moments can form a voltage deviation value set.

[0099] Optional, voltage compensation module, including:

[0100] A sixth determining unit, configured to determine a time period to be predicted based on the current time of the vehicle and the time to be predicted;

[0101] a sixth judgment unit, configured to calculate a quotient of the time period to be predicted and the fixed period, and to judge whether the quotient is a natural number;

[0102] The first voltage compensation determination unit is used to determine the compensation time according to the product of the time period to be predicted and the fixed period and the feasible solution if the quotient is a natural number, and determine the voltage deviation value corresponding to the compensation time as the voltage amount to be compensated at the time to be predicted.

[0103] Optionally, the voltage compensation module also includes:

[0104] A seventh determining unit, configured to determine, if the quotient value is not a natural number, a first compensation moment and a second compensation moment according to the quotient value, the fixed period and the feasible solution; wherein the first compensation moment and the second compensation moment are two adjacent moments;

[0105] The second voltage compensation determination unit is used to determine the voltage amount that needs to be compensated at the time to be predicted according to the voltage deviation value at the first compensation time and the voltage deviation value at the second compensation time.

[0106] The present application embodiment provides an electronic device, such as Figure 3 As shown, the electronic device includes a processor 301 and a memory 302, the memory 302 is used to store program codes and data of the voltage compensation method, and the processor 301 is used to call the program instructions in the memory to execute the steps shown in the voltage compensation method in the above embodiment.

[0107] An embodiment of the present invention provides a vehicle, the vehicle includes the electronic device provided by the above-mentioned embodiment of the present application, and the electronic device is used to execute the voltage compensation method disclosed in the embodiment of the present application.

[0108] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0109] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0110] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0111] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A voltage compensation method, It is characterized in that Applicable to a vehicle, the vehicle comprising a plurality of sensors and a sensor 5V power supply system, the sensor 5V power supply system being connected to each of the sensors via a sensor power supply circuit, the method comprising: The voltage of the sensor power supply circuit on the vehicle is collected at a fixed period to obtain voltage values ​​at multiple moments; wherein the time interval between two adjacent moments is the fixed period; Calculating the voltage deviation value at each moment according to the voltage value at each moment, and determining a feasible solution for the voltage deviation value at each moment according to the voltage deviation value at each moment; If there are m consecutive voltage deviation values ​​at the same time and feasible solutions, determine whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same time and their feasible solutions; wherein m is greater than a preset threshold; If the 5V power supply system of the sensor has periodic voltage fluctuations, the voltage amount that needs to be compensated at the time to be predicted is calculated according to the feasible solution and the fixed period; When the time on the vehicle reaches the predicted time, the voltage of the sensor 5V power supply system is compensated according to the voltage amount.

2. The method according to claim 1, It is characterized in that The step of calculating the voltage deviation value at each moment according to the voltage value at each moment, and determining a feasible solution for the voltage deviation value at each moment according to the voltage deviation value at each moment, comprises: Calculating a voltage deviation value at each moment according to the voltage value at each moment; For each voltage deviation value at the moment, a feasible solution for the voltage deviation value at the moment is determined from a plurality of natural numbers, wherein the feasible solution enables the voltage deviation value at the moment to simultaneously satisfy a preset voltage deviation condition and a preset voltage accuracy condition.

3. The method according to claim 2, It is characterized in that The preset voltage deviation condition indicates that the absolute value of the voltage deviation value at the moment is not less than the various deviation thresholds within the allowable deviation range of the sensor voltage; the preset voltage accuracy condition indicates that the absolute value of the voltage accuracy value at the moment is less than or equal to the preset voltage identification accuracy threshold; wherein, the voltage accuracy value at the moment is calculated based on the voltage deviation value at the moment and a feasible solution.

4. The method according to claim 1, It is characterized in that If there are m consecutive voltage deviation values ​​at the same time and feasible solutions, judging whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same time and their feasible solutions, including: If there are m consecutive voltage deviation values ​​at the same time that have the same feasible solutions, determine whether the m consecutive voltage deviation values ​​at the same time can form a voltage deviation value set; wherein the voltage deviation value set includes a plurality of voltage deviation value groups, each of which includes voltage deviation values ​​at two time points whose serial number difference is equal to the feasible solution and the voltage deviation values ​​at the two time points are equal; If the voltage deviation values ​​at m consecutive moments can form the voltage deviation value set, it is determined that periodic voltage fluctuations exist in the 5V power supply system of the sensor.

5. The method according to claim 1, It is characterized in that Calculating the voltage amount to be compensated at the time to be predicted according to the feasible solution and the fixed period, including: Determining a time period to be predicted based on the current time of the vehicle and the time to be predicted; Calculating a quotient of the time period to be predicted and a fixed period, and determining whether the quotient is a natural number; If the quotient is a natural number, the compensation time is determined according to the product of the time period to be predicted and the fixed period and the feasible solution, and the voltage deviation value corresponding to the compensation time is determined as the voltage amount to be compensated at the time to be predicted.

6. The method according to claim 5, It is characterized in that The method further comprises: If the quotient is not a natural number, determining a first compensation time and a second compensation time according to the quotient, the fixed period and the feasible solution; wherein the first compensation time and the second compensation time are two adjacent times; The voltage amount that needs to be compensated at the predicted moment is determined according to the voltage deviation value at the first compensation moment and the voltage deviation value at the second compensation moment.

7. A voltage compensation system, It is characterized in that Applicable to a vehicle, the vehicle includes a plurality of sensors and a sensor 5V power supply system, the sensor 5V power supply system is connected to each of the sensors through a sensor power supply circuit, and the voltage compensation system includes: An interference voltage acquisition module is used to collect the voltage of the sensor power supply circuit on the vehicle at a fixed period to obtain voltage values ​​at multiple moments; wherein the time interval between two adjacent moments is the fixed period; A voltage fluctuation calculation module, used to calculate the voltage deviation value at each moment according to the voltage value at each moment, and determine the feasible solution of the voltage deviation value at each moment according to the voltage deviation value at each moment; if there are m consecutive voltage deviation values ​​at the same moment, judging whether there is periodic voltage fluctuation in the 5V power supply system of the sensor according to the m consecutive voltage deviation values ​​at the same moment and their feasible solutions; wherein m is greater than a preset threshold; A voltage compensation module, used to calculate the voltage amount to be compensated at the time to be predicted according to the feasible solution and the fixed period; A signal decision module is used to compensate the voltage of the sensor 5V power supply system according to the voltage amount when the time on the vehicle reaches the predicted moment.

8. The system according to claim 7, It is characterized in that The voltage fluctuation calculation module comprises: A voltage deviation value calculation unit, used for calculating the voltage deviation value at each moment according to the voltage value at each moment; A feasible solution determining unit is used to determine, for each voltage deviation value at the moment, a feasible solution for the voltage deviation value at the moment from a plurality of natural numbers, wherein the feasible solution enables the voltage deviation value at the moment to simultaneously satisfy a preset voltage deviation condition and a preset voltage accuracy condition.

9. An electronic device, It is characterized in that include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement the voltage compensation method according to any one of claims 1 to 6.

10. A vehicle, It is characterized in that The electronic device comprises the electronic device described in claim 9, wherein the electronic device is used to execute the voltage compensation method described in any one of claims 1-6.