Rainfall pattern detection method, apparatus, vehicle, and computer program product
By obtaining the current voltage of the vehicle battery, its abnormal state is determined, and voltage compensation is performed using the rainfall pattern and variance value before the abnormal state. This solves the problem of automatic wiper function turning off when the voltage is abnormal, ensuring the normal operation of the wiper function and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING AUTOMOBILE RES GENERAL INST
- Filing Date
- 2024-07-31
- Publication Date
- 2026-04-28
AI Technical Summary
Existing rain pattern detection technology causes automatic wipers to shut down when there is an abnormal voltage, affecting user comfort and convenience.
By obtaining the current voltage of the vehicle's battery, an abnormal state is determined, and the actual rainfall pattern is determined using the rainfall pattern and variance value before the abnormal state. Voltage compensation is then performed to maintain the automatic wiper function.
The automatic wiper function works normally when the voltage is slightly lower or slightly higher than the normal voltage, improving the user's driving comfort and convenience, and enhancing the robustness of the algorithm.
Smart Images

Figure CN119018097B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a method, device, vehicle, and computer program product for detecting rainfall patterns. Background Technology
[0002] The normal operating voltage of the rain and light sensor (RLS) is 9-16V. Below 9V, the RLS is in an undervoltage state; above 16V, it is in an overvoltage state. Both undervoltage and overvoltage states are abnormal and can easily lead to problems such as difficulty initiating wiping, accidental wiping, or inaccurate wiping patterns. This is because the rainfall and light information detected by the RLS in abnormal states is inaccurate. At low voltage, the infrared energy emitted by the infrared emitting diode is lower than that at normal voltage, resulting in a smaller variance in the rainfall received by the receiving tube, which can easily cause rain to be detected as no rain. At high voltage, the infrared energy emitted by the infrared emitting diode is higher than that at normal voltage, resulting in a larger variance in the rainfall received by the receiving tube, which can easily cause no rain to be detected as rain.
[0003] Currently, when low-voltage or over-voltage faults occur, the strategy adopted by various rain sensor manufacturers is to stop sending automatic wiper signals or report the voltage fault to the master node, which then controls the front wipers.
[0004] While the above strategy can prevent the vehicle from still having wiper functionality when the RLS experiences low or high voltage, the automatic wiper function will be unable to continue. However, in actual vehicle use, voltage anomalies can easily occur. If the voltage is slightly lower or slightly higher than normal, and the function is downgraded to disable the automatic wiper function, this method greatly reduces the comfort and convenience of the user. Summary of the Invention
[0005] This application provides a method, device, vehicle, and computer program product for detecting rainfall patterns, in order to solve the problems of existing rainfall pattern detection technologies lacking voltage compensation algorithms, which cause vehicles to need to degrade their functions and turn off the automatic wiper function when voltage is abnormal, thus reducing the comfort and convenience of users.
[0006] The first aspect of this application provides a rainfall pattern detection method, including the following steps: obtaining the current voltage of a vehicle battery; if the vehicle battery is determined to be in an abnormal state based on the current voltage, obtaining a first rainfall pattern of the vehicle battery before it was in the abnormal state, and determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern.
[0007] Optionally, determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern includes: if the battery is in an undervoltage state, obtaining the first rainfall pattern and the corresponding rainfall variance value before the battery is in the undervoltage state, and determining the actual rainfall pattern of the vehicle based on the rainfall variance value before the undervoltage state; if the battery is in an overvoltage state, obtaining the first rainfall pattern and the corresponding rainfall variance value before the battery is in the overvoltage state, and determining the actual rainfall pattern of the vehicle based on the rainfall variance value before the overvoltage state.
[0008] Optionally, determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern includes: if the rainfall variance value corresponding to the first rainfall pattern is within a first threshold range, then the actual rainfall pattern of the vehicle is determined to be a first pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a second threshold range, then the actual rainfall pattern of the vehicle is determined to be a second pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a third threshold range, then the actual rainfall pattern of the vehicle is determined to be a third pattern, wherein the rainfall of the third pattern is greater than the rainfall of the second pattern, which is greater than the rainfall of the first pattern.
[0009] Optionally, after determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the method includes: transmitting the actual rainfall pattern to the vehicle's central control screen for display.
[0010] A second aspect of this application provides a rainfall pattern detection device, comprising: an acquisition module for acquiring the current voltage of a vehicle battery; and a detection module for, if the vehicle battery is determined to be in an abnormal state based on the current voltage, acquiring a first rainfall pattern of the vehicle battery before it is in the abnormal state, and determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern.
[0011] Optionally, the detection module is further configured to: if the battery is in an undervoltage state, acquire a first rainfall pattern and a corresponding rainfall variance value before the battery is in the undervoltage state, and determine the actual rainfall pattern of the vehicle based on the rainfall variance value before the undervoltage state; if the battery is in an overvoltage state, acquire a first rainfall pattern and a corresponding rainfall variance value before the battery is in the overvoltage state, and determine the actual rainfall pattern of the vehicle based on the rainfall variance value before the overvoltage state.
[0012] Optionally, the detection module is further configured to: if the rainfall variance value corresponding to the first rainfall pattern is within a first threshold range, then determine that the actual rainfall pattern of the vehicle is a first pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a second threshold range, then determine that the actual rainfall pattern of the vehicle is a second pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a third threshold range, then determine that the actual rainfall pattern of the vehicle is a third pattern, wherein the rainfall of the third pattern is greater than the rainfall of the second pattern, which is greater than the rainfall of the first pattern.
[0013] Optionally, after determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the detection module is further configured to: transmit the actual rainfall pattern to the central control screen of the vehicle for display.
[0014] A third aspect of this application provides a vehicle comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the rainfall pattern detection method as described in the above embodiments.
[0015] A fourth aspect of this application provides a computer program product having a computer program stored thereon, which is executed by a processor to implement the rainfall pattern detection method as described in the above embodiments.
[0016] In the above implementation, the current voltage of the vehicle battery is obtained. If the vehicle battery is determined to be in an abnormal state based on the current voltage, the first rainfall pattern before the vehicle battery entered the abnormal state is obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall pattern. This solves the problem that existing rainfall pattern detection technologies lack voltage compensation algorithms, leading to vehicle function degradation and automatic wiper disabling when the voltage is abnormal, thus reducing user comfort and convenience. It improves the impact of voltage abnormalities on the automatic wiper function, allowing the automatic wiper function to operate normally when the voltage is slightly lower or slightly higher than normal, avoiding reduced user convenience and giving the algorithm a certain degree of robustness.
[0017] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0018] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0019] Figure 1 This is a flowchart of a rainfall pattern detection method according to an embodiment of this application;
[0020] Figure 2 This is a schematic diagram of the installation of a bench test apparatus according to an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of a rainfall pattern detection device according to an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of a vehicle structure according to an embodiment of this application. Attached image description:
[0024] 10 - Rainfall pattern detection device; 100 - Acquisition module and 200 - Detection module. Detailed Implementation
[0025] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0026] The following description, with reference to the accompanying drawings, outlines a rain pattern detection method, apparatus, vehicle, and computer program product according to embodiments of this application. Addressing the issue mentioned in the background art that existing rain pattern detection technologies lack a voltage compensation algorithm, leading to vehicle functional degradation and automatic wiper disabling when voltage anomalies occur, thus reducing user comfort and convenience, this application provides a rain pattern detection method. In this method, the current voltage of the vehicle battery is obtained. If the vehicle battery is determined to be in an abnormal state based on the current voltage, a first rain pattern before the vehicle battery became abnormal is obtained, and the actual rain pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rain pattern. This solves the problem of existing rain pattern detection technologies lacking a voltage compensation algorithm, leading to vehicle functional degradation and automatic wiper disabling when voltage anomalies occur, thus reducing user comfort and convenience. It improves the impact of voltage anomalies on the automatic wiper function, allowing the automatic wiper function to operate normally when the voltage is slightly lower or slightly higher than normal, avoiding reduced user convenience and giving the algorithm a certain degree of robustness.
[0027] Specifically, Figure 1 This is a flowchart illustrating a rainfall pattern detection method provided in an embodiment of this application.
[0028] like Figure 1 As shown, the rainfall pattern detection method includes the following steps:
[0029] Before detecting actual rainfall patterns, the bench test in this embodiment of the application includes the following items, such as... Figure 2 As shown:
[0030] 1) Automatic nozzles: Simulate rain conditions and control the amount of water sprayed from the nozzles according to the amount of rain, such as light rain, moderate rain, and heavy rain;
[0031] 2) Front windshield or a vehicle with automatic wipers: Install according to the actual light transmittance and cutting angle of the vehicle, with wipers that can work normally when it rains;
[0032] 3) RLS: Installed on the windshield according to the actual vehicle layout;
[0033] 4) Adjustable power supply: Powers the RLS, and the power supply voltage can be continuously adjusted within the range of 0-26V;
[0034] 5) Detection equipment: It can detect the infrared energy emitted by the RLS infrared emitting diode and the infrared energy received by the receiving diode.
[0035] Specifically, the embodiments of this application are in accordance with Figure 2 After setting up the test setup, power on the RLS and confirm that the RLS and wipers are functioning properly. Calculate the variance of rainfall under different battery voltages for light, moderate, and heavy rain.
[0036] 1. Simulate light rain conditions in the vehicle: Set the nozzle to spray light rain and aim it at the RLS detector. Adjust the power supply voltage according to the table below, and record the variance of the battery's light rain under different voltages.
[0037] (1) When the battery voltage is normal, the variance values of rainfall corresponding to different voltages are shown in Table 1:
[0038] Table 1
[0039]
[0040] After the experiment, it can be observed that the values of δ1 to δ15 are very close. Compared with the calibration threshold, they exceed the rainfall amount for light rain but are less than the rainfall amount for moderate rain. That is, during light rain with normal battery power supply, the variance of rainfall detected by RLS is...
[0041] (2) When the battery voltage is undervoltage, the variance of rainfall corresponding to different voltages is shown in Table 2:
[0042] Table 2
[0043]
[0044] After the experiment, it can be observed that the values of δ21 to δ35 are not as close as the values of δ1 to δ15, with δ21 < δ22 < ... < δ35 < δa. That is, the lower the voltage, the smaller the variance of rainfall detected by RLS, and the greater the difference between it and the variance of rainfall under normal power supply conditions.
[0045] (3) When the battery voltage is overvoltage, the variance values of rainfall corresponding to different voltages are shown in Table 3:
[0046] Table 3
[0047]
[0048] After the experiment, it can be observed that the values of δ41 to δ55 are not as close as the values of δ1 to δ15 in Table 1, δa < δ41 < δ42 < ... < δ55. That is, the higher the voltage, the greater the variance of rainfall detected by RLS, and the greater the difference from the variance of rainfall under normal power supply.
[0049] 2. Moderate rain condition: Set the nozzle to the spray volume of moderate rain and point it at the RLS detector. Adjust the power supply voltage according to the table below, and record the variance value of moderate rain under different voltages.
[0050] (1) When the battery voltage is at its normal voltage, the variance values of rainfall corresponding to different voltages are shown in Table 4:
[0051] Table 4
[0052]
[0053] After the experiment, it can be observed that the values of δ1 to δ15 are very close (these δ1 to δ15 are different from those recorded in the light rain mode in Table 1). Compared with the calibration threshold, the rainfall exceeds the amount of moderate rain but is less than the amount of heavy rain. That is, under moderate rain conditions and with normal battery power supply, the variance of the rainfall detected by RLS is...
[0054] (2) When the battery voltage is undervoltage, the variance values of rainfall corresponding to different voltages are shown in Table 5:
[0055] Table 5
[0056]
[0057] After the experiment, it can be observed that the values of δ21 to δ35 are not as close as the values of δ1 to δ15 in Table 4 (the δ21 to δ35 here are different from the δ21 to δ35 recorded in the light rain mode), δ21 < δ22 < ... < δ35 < δb. That is, the lower the voltage, the smaller the variance of the rainfall detected by RLS, and the larger the variance value compared with the rainfall under normal power supply conditions.
[0058] (3) When the voltage of the storage battery is overvoltage, the corresponding rainfall variance values for different voltages are shown in Table 1:
[0059] Table 6
[0060]
[0061] After the test, it can be observed that the values of δ41 - δ55 are not as close as the values of δ1 - δ15 in Table 4, and δb < δ41 < δ42 <... < δ55. That is, the higher the voltage, the greater the rainfall variance detected by RLS, and the greater the difference from the rainfall variance value during normal power supply during calibration.
[0062] 3. Heavy rain situation: Set the nozzle to the water spray volume of heavy rain and spray it towards the detection of RLS. Adjust the power supply voltage according to the following table, and detect and record the variance values of heavy rain at different voltages.
[0063] (1) When the voltage of the storage battery is normal voltage, the corresponding rainfall variance values for different voltages are shown in Table 7:
[0064] Table 7
[0065]
[0066] After the test, it can be observed that the values of δ1 - δ15 are very close. When compared with the calibration threshold, it exceeds the heavy rain rainfall. That is, when heavy rain occurs and the storage battery is under normal power supply, the rainfall variance detected by RLS is
[0067] (2) When the voltage of the storage battery is undervoltage, the corresponding rainfall variance values for different voltages are shown in Table 8:
[0068] Table 8
[0069]
[0070] After the test, it can be observed that the values of δ21 - δ36 are not as close as the values of δ1 - δ15 in Table 7, and δ21 < δ22 <... < δ35 < δc. That is, the lower the voltage, the smaller the rainfall variance detected by RLS, and the greater the difference from the rainfall variance value during normal power supply during calibration.
[0071] (3) When the voltage of the storage battery is overvoltage, the corresponding rainfall variance values for different voltages are shown in Table 9:
[0072] Table 9
[0073]
[0074] After the test, it can be observed that the values of δ41 to δ55 are not as close as the values of δ1 to δ15 in Table 7, and δc < δ41 < δ42 <... < δ55. That is, the higher the voltage, the greater the variance of the rainfall detected by RLS, and the greater the difference from the calibrated heavy rain threshold under normal power supply.
[0075] The above 9 tables detected the rainfall pattern detection of undervoltage and overvoltage at different rainfall levels according to the voltage change of 0.1V. Due to space limitations, the undervoltage mode values were detected from 7.5V to 8.9V, and the overvoltage mode was only detected from 9.1V to 10.5V. During actual testing, the voltage range can be expanded to detect from 6V to 8.9V and from 9.1V to 11V. It should be noted that the voltage detection range should not be expanded too much. When the voltage is too low, the MCU or other chips of RLS cannot work properly. When the voltage is too high, it may affect the normal use of some components, and voltage compensation is also meaningless.
[0076] It should be noted that the calculation method of the rainfall variance value corresponding to different voltages is as follows:
[0077] The underlying software processes the diode signals received by channels A and B and performs filtering. The rate of change adopts a variance processing strategy, that is, sliding filtering processing. The following is an example to illustrate the data processing strategy of channel A.
[0078] Table 10
[0079]
[0080] The underlying software calculates the variance of each group of data arrays in real time. The first 9 points are ignored and not processed, and processing starts from the 10th point. The processing process is as follows:
[0081] δk(1 - 10) = ABS[D10 - SUM(D1:D10) / 10];
[0082] δk + 1(2 - 11) = ABS[D11 - SUM(D2:D11) / 10];
[0083] δk + 2(3 - 12) = ABS[D12 - SUM(D3:D12) / 10];
[0084] And so on.
[0085] Thus, one data is collected every 10ms, and 10 data are taken as a group, denoted as: δk, as the calculated rate of change.
[0086] In step S101, the current voltage of the vehicle battery is obtained.
[0087] In step S102, if the vehicle battery is determined to be in an abnormal state based on the current voltage, the first rainfall pattern before the vehicle battery was in an abnormal state is obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall pattern.
[0088] Abnormal states include undervoltage and overvoltage.
[0089] It should be understood that the vehicle battery is in an abnormal state based on its current voltage. If the vehicle battery is in an abnormal state based on the current voltage, the first rainfall pattern before the vehicle battery was in an abnormal state is obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall pattern.
[0090] The reason for determining the vehicle's actual rainfall pattern based on the rainfall variance value corresponding to the first rainfall pattern before the abnormal state is that:
[0091] Taking the 7.5V voltage compensation strategy as an example, assuming that before the undervoltage occurs, the RLS is in light rain mode, and the variance value calculated by the RLS at 7.5V is δ21, the variance value under normal voltage operation is determined by the rainfall variance value before the undervoltage (δa), and the compensation value a1 = δa - δ21. When the RLS detects that the supply voltage is 7.5V, it retrieves the compensation value a1, adds the compensation value to the detected variance value to obtain the compensated variance δx, δx = δ1 + δ21 = δa - δ21 + δ21 = δa. That is, the compensated variance δx is the same as the variance under normal voltage. Therefore, the first rainfall mode before the abnormal state is used, and the actual rainfall mode of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall mode.
[0092] For example, if the vehicle battery was in light rain mode before it was in a low-voltage state, and the voltage was 9V before the abnormal state, then the vehicle's current actual rain mode is light rain mode, and the controller will control the wipers to perform the wiping function according to the light rain mode.
[0093] Optionally, in some embodiments, determining the vehicle's actual rainfall pattern based on the rainfall variance value corresponding to the first rainfall pattern includes: if the battery is in an undervoltage state, obtaining the first rainfall pattern and the corresponding rainfall variance value before the battery is in an undervoltage state, and determining the vehicle's actual rainfall pattern based on the rainfall variance value before the undervoltage state; if the battery is in an overvoltage state, obtaining the first rainfall pattern and the corresponding rainfall variance value before the battery is in an overvoltage state, and determining the vehicle's actual rainfall pattern based on the rainfall variance value before the overvoltage state.
[0094] For example, if the vehicle battery voltage is 7.5V at this time, it is determined that the vehicle battery is in an undervoltage state. The first rainfall mode before the undervoltage state is obtained as the heavy rain mode, and the battery voltage before the undervoltage state is 9V. The rainfall variance value corresponding to the first rainfall mode is δ1. It is determined that the actual rainfall mode of the vehicle at this time is the heavy rain mode, and the controller controls the windshield wipers to perform the wiping function according to the heavy rain mode.
[0095] Optionally, in some embodiments, determining the vehicle's actual rainfall pattern based on the rainfall variance value corresponding to the first rainfall pattern includes: if the rainfall variance value corresponding to the first rainfall pattern is within a first threshold range, then determining the vehicle's actual rainfall pattern as the first pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a second threshold range, then determining the vehicle's actual rainfall pattern as the second pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a third threshold range, then determining the vehicle's actual rainfall pattern as the third pattern, wherein the rainfall in the third pattern is greater than the rainfall in the second pattern, which is greater than the rainfall in the first pattern.
[0096] Understandably, if the variance value of the rainfall corresponding to the first rainfall pattern before the abnormal state is within the variance value range of the rainfall pattern corresponding to the light rain pattern (i.e., the first threshold range, which is δ1 to δ15 in Table 1), the actual rainfall pattern at this time is determined to be the light rain pattern. If the variance value of the rainfall corresponding to the first rainfall pattern before the abnormal state is within the variance value range of the rainfall pattern corresponding to the moderate rain pattern (i.e., the second threshold range, which is δ1 to δ15 in Table 4), the actual rainfall pattern at this time is determined to be the moderate rain pattern. If the variance value of the rainfall corresponding to the first rainfall pattern before the abnormal state is within the variance value range of the rainfall pattern corresponding to the heavy rain pattern (i.e., the third threshold range, which is δ1 to δ15 in Table 7), the actual rainfall pattern at this time is determined to be the heavy rain pattern.
[0097] Optionally, in some embodiments, after determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the method includes: transmitting the actual rainfall pattern to the vehicle's central control screen for display.
[0098] It should be understood that the actual rainfall pattern information is sent to the vehicle's central control screen to remind the user of the current actual rainfall pattern.
[0099] Therefore, this embodiment of the application determines the actual rainfall pattern through the quantitative relationship between voltage anomaly deviation and rainfall deviation, and the steps are as follows:
[0100] 1) Subtract the variance of different voltages from the variance of normal voltage under the three rainfall patterns to obtain the rainfall compensation value for different voltages, thus obtaining a compensation value database.
[0101] 2) When RLS operates under abnormal voltage conditions, it retrieves the corresponding compensation value based on the voltage value before the abnormal voltage. (Except for being splashed with water, rainfall changes are generally a gradual process. RLS can determine which rainfall condition (light rain, moderate rain, heavy rain) to retrieve based on the variance value at the moment before the voltage abnormality).
[0102] 3) Add the compensation value to the current variance value to obtain the compensated variance value, which is the rainfall variance value corresponding to the first rainfall mode under the normal battery voltage.
[0103] 4) Use the compensated variance value to determine the actual rainfall pattern.
[0104] According to the rainfall pattern detection method proposed in this application, the current voltage of the vehicle battery is obtained. If the vehicle battery is determined to be in an abnormal state based on the current voltage, the first rainfall pattern before the vehicle battery was in an abnormal state is obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall pattern. This solves the problem that existing rainfall pattern detection technologies lack a voltage compensation algorithm, leading to functional degradation of the vehicle and disabling of the automatic wiper function when the voltage is abnormal, thus reducing the comfort and convenience of user use. The method can improve the impact of voltage abnormalities on the automatic wiper function, allowing the automatic wiper function to operate normally when the voltage is slightly lower or slightly higher than the normal voltage, avoiding a reduction in user convenience and giving the algorithm a certain degree of robustness.
[0105] Next, the rainfall pattern detection device according to the embodiments of this application is described with reference to the accompanying drawings.
[0106] Figure 3 This is a block diagram of a rainfall pattern detection device according to an embodiment of this application.
[0107] like Figure 3 As shown, the rainfall pattern detection device 10 includes: an acquisition module 100 and a detection module 200.
[0108] The acquisition module 100 is used to acquire the current voltage of the vehicle battery; the detection module 200 is used to acquire the first rainfall pattern before the vehicle battery was in an abnormal state if the current voltage indicates that the vehicle battery is in an abnormal state, and to determine the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern.
[0109] Optionally, in some embodiments, the detection module 200 is further configured to: if the battery is in an undervoltage state, acquire the first rainfall pattern and the corresponding rainfall variance value before the battery is in an undervoltage state, and determine the actual rainfall pattern of the vehicle based on the rainfall variance value before the undervoltage state; if the battery is in an overvoltage state, acquire the first rainfall pattern and the corresponding rainfall variance value before the battery is in an overvoltage state, and determine the actual rainfall pattern of the vehicle based on the rainfall variance value before the overvoltage state.
[0110] Optionally, in some embodiments, the detection module 200 is further configured to: if the rainfall variance value corresponding to the first rainfall pattern is within a first threshold range, then determine that the actual rainfall pattern of the vehicle is the first pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a second threshold range, then determine that the actual rainfall pattern of the vehicle is the second pattern; if the rainfall variance value corresponding to the first rainfall pattern is within a third threshold range, then determine that the actual rainfall pattern of the vehicle is the third pattern, wherein the rainfall of the third pattern is greater than the rainfall of the second pattern, which is greater than the rainfall of the first pattern.
[0111] Optionally, in some embodiments, after determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the detection module 200 is further configured to: transmit the actual rainfall pattern to the vehicle's central control screen for display.
[0112] It should be noted that the foregoing explanation of the rainfall pattern detection method embodiment also applies to the rainfall pattern detection device of this embodiment, and will not be repeated here.
[0113] According to the rain pattern detection device proposed in this application, the current voltage of the vehicle battery is obtained. If the vehicle battery is determined to be in an abnormal state based on the current voltage, the first rain pattern before the vehicle battery was in an abnormal state is obtained, and the actual rain pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rain pattern. This solves the problem that existing rain pattern detection technologies lack a voltage compensation algorithm, leading to vehicle function degradation and automatic wiper disabling when the voltage is abnormal, thus reducing user comfort and convenience. The device improves the impact of voltage abnormalities on the automatic wiper function, allowing the automatic wiper function to operate normally when the voltage is slightly lower or slightly higher than normal, avoiding reduced user convenience and giving the algorithm a certain degree of robustness.
[0114] Figure 4 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include:
[0115] The memory 401, the processor 402, and the computer program stored on the memory 401 and capable of running on the processor 402.
[0116] When the processor 402 executes the program, it implements the rainfall pattern detection method provided in the above embodiments.
[0117] Furthermore, the vehicle also includes:
[0118] Communication interface 403 is used for communication between memory 401 and processor 402.
[0119] The memory 401 is used to store computer programs that can run on the processor 402.
[0120] The memory 401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0121] If the memory 401, processor 402, and communication interface 403 are implemented independently, then the communication interface 403, memory 401, and processor 402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized into address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0122] Optionally, in a specific implementation, if the memory 401, processor 402, and communication interface 403 are integrated on a single chip, then the memory 401, processor 402, and communication interface 403 can communicate with each other through an internal interface.
[0123] Processor 402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0124] This application also provides a computer program product on which a computer program is stored, which, when executed by a processor, implements the above-described rainfall pattern detection method.
[0125] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0126] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0127] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0128] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequential list of executable instructions for implementing logical functions, and can be specifically implemented in any computer program product for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer program product" can be any means that can contain, store, communicate, propagate, or transmit a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer program products include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Furthermore, the computer program product can even be paper or other suitable medium on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0129] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0130] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer program product, and when executed, it includes one or a combination of the steps of the method embodiments.
[0131] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer program product.
[0132] The aforementioned computer program product may be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for detecting rainfall patterns, characterized in that, Includes the following steps: Obtain the current voltage of the vehicle's battery; If the vehicle battery is determined to be in an abnormal state based on the current voltage, then the first rainfall pattern before the vehicle battery was in the abnormal state is obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value corresponding to the first rainfall pattern. Determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern includes: If the rainfall variance value corresponding to the first rainfall pattern is within the first threshold range, then the actual rainfall pattern of the vehicle is determined to be the first pattern; If the rainfall variance value corresponding to the first rainfall pattern is within the second threshold range, then the actual rainfall pattern of the vehicle is determined to be the second pattern. If the variance of rainfall corresponding to the first rainfall pattern is within the third threshold range, then the actual rainfall pattern of the vehicle is determined to be the third pattern, wherein the rainfall of the third pattern is greater than the rainfall of the second pattern, which is greater than the rainfall of the first pattern.
2. The method according to claim 1, characterized in that, Determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern includes: If the battery is in an undervoltage state, the first rainfall pattern and the corresponding rainfall variance value before the battery is in the undervoltage state are obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value before the undervoltage state. If the battery is in an overvoltage state, the first rainfall pattern and the corresponding rainfall variance value before the battery was in the overvoltage state are obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value before the overvoltage state.
3. The method according to claim 1, characterized in that, After determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the process includes: The actual rainfall pattern is transmitted to the vehicle's central control screen for display.
4. A rainfall pattern detection device, characterized in that, include: The acquisition module is used to acquire the current voltage of the vehicle's battery; The detection module is used to obtain the first rainfall pattern of the vehicle battery before it was in the abnormal state if the vehicle battery is determined to be in an abnormal state based on the current voltage, and to determine the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern. The detection module is also used for: If the rainfall variance value corresponding to the first rainfall pattern is within the first threshold range, then the actual rainfall pattern of the vehicle is determined to be the first pattern; If the rainfall variance value corresponding to the first rainfall pattern is within the second threshold range, then the actual rainfall pattern of the vehicle is determined to be the second pattern. If the variance of rainfall corresponding to the first rainfall pattern is within the third threshold range, then the actual rainfall pattern of the vehicle is determined to be the third pattern, wherein the rainfall of the third pattern is greater than the rainfall of the second pattern, which is greater than the rainfall of the first pattern.
5. The apparatus according to claim 4, characterized in that, The detection module is also used for: If the battery is in an undervoltage state, the first rainfall pattern and the corresponding rainfall variance value before the battery is in the undervoltage state are obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value before the undervoltage state. If the battery is in an overvoltage state, the first rainfall pattern and the corresponding rainfall variance value before the battery was in the overvoltage state are obtained, and the actual rainfall pattern of the vehicle is determined based on the rainfall variance value before the overvoltage state.
6. The apparatus according to claim 4, characterized in that, After determining the actual rainfall pattern of the vehicle based on the rainfall variance value corresponding to the first rainfall pattern, the detection module is further configured to: The actual rainfall pattern is transmitted to the vehicle's central control screen for display.
7. A vehicle, characterized in that, Including memory and processor; The processor reads executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the rainfall pattern detection method as described in any one of claims 1-3.
8. A computer program product, said computer program product storing a computer program, characterized in that, When the program is executed by the processor, it implements the rainfall pattern detection method as described in any one of claims 1-3.
Citation Information
Patent Citations
Wiper level switching processing method, system and automobile
CN104386025A
Rainfall detection system as well as rainfall state detection method and device
CN106772699A
Rain sensor of vehicle, and method of controlling the same
CN107953858A