CN114701453B - Control method and system for windscreen wiper, electronic equipment and vehicle - Google Patents
Control method and system for windscreen wiper, electronic equipment and vehicle Download PDFInfo
- Publication number
- CN114701453B CN114701453B CN202110592186.4A CN202110592186A CN114701453B CN 114701453 B CN114701453 B CN 114701453B CN 202110592186 A CN202110592186 A CN 202110592186A CN 114701453 B CN114701453 B CN 114701453B
- Authority
- CN
- China
- Prior art keywords
- preset
- signal value
- condition
- sum
- differences
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60S—SERVICING, CLEANING, REPAIRING, SUPPORTING, LIFTING, OR MANOEUVRING OF VEHICLES, NOT OTHERWISE PROVIDED FOR
- B60S1/00—Cleaning of vehicles
- B60S1/02—Cleaning windscreens, windows or optical devices
- B60S1/04—Wipers or the like, e.g. scrapers
- B60S1/06—Wipers or the like, e.g. scrapers characterised by the drive
- B60S1/08—Wipers or the like, e.g. scrapers characterised by the drive electrically driven
- B60S1/0818—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like
- B60S1/0822—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like characterized by the arrangement or type of detection means
- B60S1/0833—Optical rain sensor
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60S—SERVICING, CLEANING, REPAIRING, SUPPORTING, LIFTING, OR MANOEUVRING OF VEHICLES, NOT OTHERWISE PROVIDED FOR
- B60S1/00—Cleaning of vehicles
- B60S1/02—Cleaning windscreens, windows or optical devices
- B60S1/04—Wipers or the like, e.g. scrapers
- B60S1/06—Wipers or the like, e.g. scrapers characterised by the drive
- B60S1/08—Wipers or the like, e.g. scrapers characterised by the drive electrically driven
- B60S1/0818—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like
- B60S1/0822—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like characterized by the arrangement or type of detection means
- B60S1/0862—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like characterized by the arrangement or type of detection means including additional sensors
- B60S1/087—Wipers or the like, e.g. scrapers characterised by the drive electrically driven including control systems responsive to external conditions, e.g. by detection of moisture, dirt or the like characterized by the arrangement or type of detection means including additional sensors including an ambient light sensor
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Mechanical Engineering (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
Abstract
The embodiment of the application provides a method and a device for controlling a windscreen wiper and electronic equipment, and belongs to the technical field of control of a wiper. The method specifically comprises the following steps: acquiring analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by a rainfall monitoring device; determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value; determining whether a wiper condition is met or not based on a preset difference threshold and the sum of differences between a target electric signal value and the preset electric signal value in each period; and under the condition that the windscreen wiper conditions are not met, prohibiting the sending of a wiping instruction. According to the method and device for controlling the windscreen wiper and the electronic equipment, which are provided by the application, the situation that the windscreen wiper does not have rainwater, but the windscreen wiper still performs erroneous operation of wiping is avoided.
Description
Technical Field
The embodiment of the application relates to the technical field of brush hanging device control, in particular to a rainfall wiper control method, a rainfall wiper control system, electronic equipment and a vehicle.
Background
The rain sensor is an important part of the vehicle for sweeping out rain on the windshield that obstructs the view. When no rainwater exists on the windshield, a large amount of light rays can be reflected into the rainfall sensor; when the windshield has rainwater, a part of light rays are refracted, so that the light rays received by the rainfall sensor are reduced, the rainfall sensor can generate a shaking PWM signal (Pulse Width Modulation, pulse width modulation signal), and the vehicle controller can judge that the vehicle runs in a rainy environment according to the shaking PWM signal, and then a scraping request is sent out to request the windscreen wiper to scrape the glass.
However, under the condition that the vehicle shakes, the vehicle controller still can misjudge that the vehicle runs in a rainy environment according to the shaking PWM signal, and then a scraping request is sent, and the wrong operation that the windshield does not have rainwater but the wiper still scrapes occurs.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling a windscreen wiper and electronic equipment, and aims to solve the problem of misoperation of the windscreen wiper.
The first aspect of the embodiment of the application provides a control method for a windscreen wiper, which comprises the steps of obtaining analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by a rainfall monitoring device;
Determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value;
determining whether a wiper condition is met or not based on a preset difference threshold and the sum of differences between a target electric signal value and the preset electric signal value in each period;
And under the condition that the windscreen wiper conditions are not met, prohibiting the sending of a wiping instruction.
Optionally, determining whether the wiper condition is met based on a preset difference threshold and a sum of differences between the target electrical signal value and the preset electrical signal value in each period includes:
determining a number of cycles in which a sum of differences between the target electrical signal value and the preset electrical signal value exceeds the preset difference threshold;
And under the condition that the period number is smaller than a preset number, determining that the windscreen wiper condition is not met.
Optionally, acquiring the analog signal of a plurality of periods within the first preset time includes:
and in each period of the plurality of periods, receiving the electric signals sent by the rainfall monitoring device every preset time to obtain analog signals of the plurality of periods.
Optionally, a wiping instruction is issued when the wiper condition is met.
Optionally, when the wiper condition is met, sending the wiper instruction includes:
And under the condition that the windscreen wiper conditions are met, according to the sum of the difference values between the target electric signal value and the preset electric signal value in each period and the preset difference value threshold, a corresponding wiping instruction is sent out.
Optionally, the preset difference threshold includes a first threshold, a second threshold, and a third threshold;
According to the sum of the difference between the target electric signal value and the preset electric signal value in each period and the preset difference threshold, a corresponding scraping instruction is sent out, and the method comprises the following steps:
Issuing a first scraping instruction when the sum of the differences is greater than a first threshold value and less than a second threshold value;
when the sum of the differences is larger than or equal to a second threshold value and smaller than or equal to a third threshold value, a second scraping instruction is sent out;
and when the sum of the differences is larger than a third threshold value, a third scraping instruction is sent out.
Optionally, the method further comprises:
And under the condition that the sum of the differences between the target electric signal value and the preset electric signal value does not exceed the preset difference threshold value, determining that the windscreen wiper condition is not met.
Optionally, the method further comprises:
under the condition that the period number is smaller than the preset number, converting the driving mode of the vehicle into an economic mode;
And converting the driving mode of the vehicle into a movement mode under the condition that the sum of the difference values does not exceed the preset difference value threshold value.
A second aspect of the embodiment of the present application provides a rainfall hanging brush control device, including:
the signal acquisition module is used for acquiring analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by the rainfall monitoring device;
A calculation module for determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value;
The condition judging module is used for determining whether the windscreen wiper condition is met or not based on a preset difference threshold value and the sum of the difference between the target electric signal value and the preset electric signal value in each period;
And the prohibition module is used for prohibiting the sending of a wiping instruction under the condition that the windscreen wiper condition is not met.
A third aspect of the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for controlling a wiper according to the first aspect of the embodiment.
According to the windscreen wiper control method provided by the embodiment of the application, the analog signal sent by the rainfall monitoring device in the period of the first preset time can be received in real time, the target electric signal value is obtained from each period of the analog signal, the sum of absolute values of differences between the target electric signal values and the corresponding preset electric signal values is calculated, whether the current environment of the vehicle is a rainy environment or not is determined based on the sum of the absolute values of the differences, if the vehicle is in the rainy environment, the windscreen wiper condition is met, if the vehicle is not in the rainy environment, the condition that the vehicle does not meet the windscreen wiper condition is indicated, the shaking condition of the vehicle is judged, the wiping command is forbidden to be sent, and the windscreen wiper is prevented from executing the wiping operation under the condition that no rainwater exists.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart illustrating steps of a method for controlling a wiper according to an embodiment of the present application;
Fig. 2 is a flowchart illustrating steps of a method for controlling a wiper according to another embodiment of the present application;
FIG. 3 is a waveform diagram of a periodic analog signal according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a wiper blade control method according to still another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Example 1
Referring to fig. 1, a method for controlling a wiper according to an embodiment of the present application is applied to a vehicle controller, and includes the following steps:
Step 101: and acquiring analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by a rainfall monitoring device.
In this step, one period is a time period, and the first preset time may be composed of a plurality of periods, for example, the first preset time is 5min, and the time of one period is 40ms, and then the first preset time is composed of 7500 periods, and the analog signal of the first preset time is composed of a plurality of periods of analog signals.
The analog signals may be PWM signals, and the analog signals of the plurality of periods may be the same or different. In the case that the analog signals of the plurality of periods are the same, the vehicle is characterized as possibly being in the same rainfall state or in a rainless state; in the case where the analog signals of the plurality of periods are different, it is indicated that the vehicle may be in a state of different rainfall or in a bumpy state.
The rainfall detection device can be a rainfall sensor, and a light sensor is arranged in the rainfall sensor. When no rainwater exists on the windshield of the vehicle, a large amount of light rays can be reflected into the rainfall sensor, and the rainfall sensor can output a stable analog signal; when the windshield has rainwater, a part of light rays are refracted, so that the light rays received by the rainfall sensor are reduced, and the rainfall sensor outputs a shaking analog signal.
For example, the rain sensor may output an analog signal containing a plurality of periodic changes when it detects that the vehicle is in a raining state or a jittering state.
Step 102: determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value.
In this step, the preset electric signal value is an electric signal value preset by a developer according to an empirical value, and may be 148mv and-148 mv as shown in fig. 3. The preset electric signal value is a boundary for representing whether the analog signal shakes, the analog signal is represented to shake when the preset electric signal value is exceeded, and the default analog signal is not dithered when the preset electric signal value is not exceeded.
Wherein, the target electric signal value may be a voltage value greater than 148mv, for example, 200mv, 250mv, etc.; the target electrical signal value may also be a voltage value less than-148 mv, such as-200 mv, -250mv, and so on. When the target electric signal value exceeds the preset electric signal value, for example, 200mv and 250mv are more than 148mv, or-200 mv and-250 mv are less than-148 mv, the analog signal representing the current period is dithered; when the target electrical signal value does not exceed the preset electrical signal value, for example 130mv is in the range of-108 mv,148mv, the analog signal representing the current period is not dithered.
The sum of the differences between the target electric signal value and the preset electric signal value is the sum of absolute values of the differences between each target electric signal value and the corresponding preset electric signal value in each period.
For example, the analog signal in the current period has four target electric signal values of 200mv, 250mv, -200mv and, -250mv, the difference between the target electric signal difference and the corresponding preset electric signal value is the difference between the two target electric signal differences of 200mv and 250mv and 148mv, and the difference between the two target electric signal differences of-200 mv and, -250mv and 148mv, so that four differences are 42mv, 92mv, -42mv and, -92mv, respectively, the sum of the differences is 42mv+92 mv+42|mv+| -92|mv=268 mv, and the sum of the differences is the sum of the differences of one period, and the sum of the differences of all subsequent periods can be calculated according to the calculation mode of the sum of the differences.
Step 103: and determining whether the windscreen wiper condition is met or not based on a preset difference threshold value and the sum of the difference between the target electric signal value and the preset electric signal value in each period.
In this step, a preset difference threshold is used to determine the amount of rain, or to determine the degree of vehicle shake.
The preset difference threshold value comprises a first threshold value, a second threshold value and a third threshold value which are sequentially increased; the first threshold is 15000mv, the second threshold is 35000mv, and the third threshold is 50000mv.
When the sum of the differences of the current period is less than or equal to 15000mv, it is indicated that the vehicle is in an external environment with little rain or that there is extremely slight shake of the vehicle, for example, passing through a flat road.
When the sum of the differences of the current period is greater than 15000mv and less than 35000mv, it is indicated that the vehicle is in an external environment with less rainfall or that there is a slight shake of the vehicle, for example, passing through a road with a smaller curve amplitude.
When the sum of the differences of the current period is equal to or greater than 35000mv and equal to or less than 50000mv, it is indicated that the vehicle is in an external environment with moderate rainfall or that the vehicle has moderate shake, for example, passing through a road with moderate bending amplitude.
When the sum of the differences of the current period is greater than 50000mv, it is indicated that the vehicle is in an external environment with a large rainfall or that there is a large shake of the vehicle, for example, passing through a road with a large bending amplitude.
The windscreen wiper condition refers to whether the windscreen wiper is in accordance with the condition of opening the windscreen wiper.
Step 104: and under the condition that the windscreen wiper conditions are not met, prohibiting the sending of a wiping instruction.
In the step, under the condition that the windscreen wiper is not opened, the fact that the vehicle is shaking when passing through a curved road or an obstacle area is determined, a wiping instruction is not sent out, and the windscreen wiper does not receive the wiping instruction.
According to the windscreen wiper control method provided by the embodiment of the application, the analog signal sent by the rainfall monitoring device in the period of the first preset time can be received in real time, the target electric signal value is obtained from each period of the analog signal, the sum of absolute values of differences between the target electric signal values and the corresponding preset electric signal values is calculated, whether the current environment of the vehicle is a rainy environment or not is determined based on the sum of the absolute values of the differences, if the vehicle is in the rainy environment, the windscreen wiper condition is met, if the vehicle is not in the rainy environment, the condition that the vehicle does not meet the windscreen wiper condition is indicated, the shaking condition of the vehicle is judged, the wiping command is forbidden to be sent, and the windscreen wiper is prevented from executing the wiping operation under the condition that no rainwater exists.
Example two
Based on the same inventive concept, another embodiment of the present application provides a wiper control method, referring to fig. 2, the method includes:
Step 201: and in each period of the plurality of periods, receiving the electric signals sent by the rainfall monitoring device every preset time to obtain analog signals of the plurality of periods.
In this step, the rainfall monitoring device may collect the optical signal at intervals of 1ms and output an analog signal based on the collected optical signal. If the time of each period is 40ms, then the rainfall monitoring device needs to collect 40 times continuously in the period to obtain an analog signal of one period.
Wherein the analog signal of the plurality of periods is continuous and is an analog signal within a preset time.
Step 202: determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value.
This step is similar to step 102 and will not be described in detail herein.
Step 203: and determining whether the windscreen wiper condition is met or not based on a preset difference threshold value and the sum of the difference between the target electric signal value and the preset electric signal value in each period.
Wherein, step 203 specifically comprises the following sub-steps:
Step 2031: determining a number of cycles in which a sum of differences between the target electrical signal value and the preset electrical signal value exceeds the preset difference threshold.
In this step, it may be determined whether the vehicle is in a raining state or a jittering state according to a relationship between a sum of differences between the target voltage signal value and the preset electric signal and a preset difference threshold value.
Specifically, under the condition that the sum of the differences between the target electric signal value and the preset electric signal value does not exceed the preset difference threshold value, the analog signal output by the rainfall sensor is in a continuous and stable state, the vehicle is in a state without rain or shake, and the vehicle is determined to be not in accordance with the windscreen wiper condition.
Wherein, the case that the sum of the differences between the target electrical signal value and the preset electrical signal value does not exceed the preset difference threshold may include: 1. the sum of the difference between the target electric signal value and the preset electric signal value is smaller than a first threshold value; 2. in the case where the target voltage value is within the range of the preset electric signal value, for example, within the range of [ -108mv,148mv ], the range of [ -108mv,148mv ] is a range of 20mv fluctuating up and down on the basis of 128 mv. In both cases, it is indicated that the vehicle is in a state of neither raining nor shaking, for example in an environmental state in which the vehicle is traveling on a flat road without raining weather.
In the case where the sum of the differences between the target voltage value and the preset electrical signal value exceeds the preset difference threshold value, the analog signal output by the rain sensor may be continuously dithered or may be intermittently dithered. Under the condition that the analog signal continuously shakes, the vehicle is indicated to be in a raining environment, and the vehicle is determined to accord with the windscreen wiper condition; and under the condition that the analog signal is in interval shaking, indicating that the vehicle is in a shaking state, and determining that the vehicle does not accord with the windscreen wiper condition.
The method comprises the steps of calculating the period number of which the sum of the difference values exceeds a preset difference value threshold value through a counter, so that whether an analog signal output by a rainfall sensor continuously shakes or shakes at intervals is determined, and whether the shaking analog signal is generated by vehicle shake or raining is judged.
It should be noted that the number of periods in which the sum of the differences between the target electrical signal value and the preset electrical signal value exceeds the preset difference threshold value means the number of periods in which the sum of the differences between the target electrical signal value and the preset electrical signal value is greater than a first threshold value of the preset difference threshold values, and since the values of the first threshold value, the second threshold value, and the third threshold value are sequentially increased, the sum of the differences exceeds the second threshold value and the third threshold value, which are both the cases in which the first threshold value is exceeded.
For example, if the first preset time is 5min, each period is 40ms, and the preset time is divided into 7500 periods, if the sum of the differences between the target electric signal values and the preset electric signal values in 1500 periods is within the range of [0, 15000mv ], the sum of the differences between the target electric signal values and the preset electric signal values in 2000 periods is within the range of (15000 mv,35000 mv), the sum of the differences between the target electric signal values and the preset electric signal values in 3000 periods is within the range of [35000mv,50000mv ], and the sum of the differences between the target electric signal values and the preset electric signal values in 1000 periods is within the range of (50000 mv, ++) or more; then a total of 6000 cycles out of 7500 cycles are in excess of the first threshold 1500 mv.
Step 2032: under the condition that the period number is smaller than a preset number, determining that the windscreen wiper condition is not met; and under the condition that the period number is larger than or equal to the preset number, determining to accord with the windscreen wiper condition.
In this step, the preset number may be 5000 preset periods, and in the case that the number of periods exceeds 5000, it is indicated that in most of the first preset time, the analog signal is in a state of constantly maintaining variation and continuously shaking, which characterizes that the vehicle is in a raining environment; in the case of not more than 5000 cycles, it is indicated that the analog signal is in a steady and sporadically jittered state for a majority of the first preset time, indicating that the vehicle is in a sporadically jittered state.
For example, in step 2031, it is detected that 6000 periods in total exceed the first threshold for a first preset time, and 6000 periods are greater than 5000 preset periods, indicating that the vehicle is in a raining environment, and a majority of periods of the analog signal remain continuously dithered.
It is noted that, in a rainy environment, since rainwater continuously falls on a windshield, the raindrops refract light of the external environment, so that the light entering the rain sensor is reduced, and then the rain monitoring device outputs a continuous and jittery analog signal based on the continuously reduced light signal; when the vehicle shakes, the light entering the rainfall sensor is reduced due to the change of the included angle between the windshield and the light, and then the rainfall sensor outputs intermittent and shaking analog signals based on the intermittent reduced light.
In the embodiment of the application, when the period number that the sum of the difference value between the target electric signal value and the preset electric signal value exceeds the preset difference value threshold value within the first preset time is detected to be larger than the preset number, the analog signal can be judged to be continuously dithered, the vehicle is in a rainy environment, at the moment, the condition that the vehicle accords with the windscreen wiper condition can be determined, and a wiper command can be sent out to wipe the rainwater on the windshield.
When the period number that the sum of the difference between the target electric signal value and the preset electric signal value exceeds the preset difference threshold value within the first preset time is detected to be smaller than the preset number, the fact that the analog signal is intermittently dithered can be judged, the vehicle is in a dithered state, at the moment, the fact that the vehicle does not accord with the windscreen wiper condition can be determined, the windscreen wiper is forbidden to send out a wiping instruction, the windscreen wiper does not execute wiping operation, and the fact that the windscreen wiper executes wiping operation under the condition that the vehicle dithers is avoided.
Step 204: and under the condition that the windscreen wiper conditions are not met, prohibiting the sending of a wiping instruction.
This step is similar to step 104 and will not be described again.
Step 205: and under the condition that the windscreen wiper conditions are met, a wiping instruction is sent out.
In this step, since the preset difference threshold includes a first threshold, a second threshold and a third threshold that are sequentially increased, in order to send out the wiping instructions with different frequencies for different rainfall, under the condition that the wiper condition is met, a corresponding wiping instruction is sent out according to the sum of the differences between the target electric signal value and the preset electric signal value in each period and the preset difference threshold. The method specifically comprises the following steps:
step 2051: and sending out a first scraping instruction when the sum of the differences is larger than a first threshold value and smaller than a second threshold value.
The first wiping instruction is a control instruction for controlling the wiper to wipe at a low frequency, for example, controlling the wiper to wipe at a frequency of 1 time per minute.
Step 2052: and when the sum of the differences is larger than or equal to a second threshold value and smaller than or equal to a third threshold value, a second scraping instruction is sent out.
The second wiping instruction is a control instruction for controlling the wiper to wipe at a medium frequency, for example, controlling the wiper to wipe at a frequency of 5 times per minute.
Step 2053: and when the sum of the differences is larger than a third threshold value, a third scraping instruction is sent out.
The first wiping instruction is a control instruction for controlling the wiper to wipe at a low frequency, for example, controlling the wiper to wipe at a frequency of 10 times per minute.
In the step, different frequency scraping instructions can be sent out according to different rainfall amounts, and when the rainfall amount is large, the scraping instructions with the large frequency are adopted for scraping so as to prevent rainwater from shielding the sight of a driver; when the rainfall is smaller, the smaller frequency scraping instruction is adopted to scrape, so that energy is saved, and the requirements of scraping the windshield can be met.
In addition, in steps 201 to 205, in order to adapt to the road surface environment and the driving habit of the user, the following two cases are included:
in case 1, when the number of cycles is smaller than the preset number, the driving mode of the vehicle is converted into the economy mode.
Specifically, when the sum of the differences between the target electric signal value and the preset electric signal value exceeds the cycle number of the preset difference threshold value and is smaller than the preset number, the rainfall sensor outputs an intermittent shake analog signal, the vehicle is in a rainless environment and is driven on a bump shake road surface, and at the moment, the driving mode of the vehicle can be switched to the economic mode because the vehicle cannot drive on the bump road surface faster, so that the vehicle can drive in a power-saving mode.
And 2, converting the driving mode of the vehicle into a movement mode under the condition that the sum of the difference values does not exceed the preset difference value threshold value.
Specifically, when the sum of the differences between the target electric signal value and the preset electric signal value does not exceed the preset difference threshold value, it is indicated that the rainfall sensor outputs a continuous and stable analog signal, it is indicated that the vehicle is in a rainless environment and is running on a flat road surface, and at the moment, the driving mode of the vehicle can be switched to the movement mode, so that the requirement of a user for fast running is met.
The method steps in steps 201 to 205 will be described in detail below by way of an example. Referring to a waveform diagram corresponding to an analog signal of one cycle shown in fig. 3, the rainfall sensor first acquires 7000 cycles, and each cycle is an analog signal of 40 ms; obtaining four target electric signal values of 200mv, 250mv, -200mv and-250 mv on the analog signal; sequentially calculating the difference between 200mv, 250mv and 148mv and the difference between-200 mv, -250mv and-148 mv to obtain four differences of 42mv, 92mv, -42mv and-92 mv; and calculating the sum of absolute values of the four differences to obtain a sum of differences of 268mv, circularly calculating the sum of differences of the following 6999 cycles by the calculation method, finally counting how many differences of 7000 sums of the 7000 cycles are larger than 15000mv, comparing the number of the cycles/the sum of the differences larger than 15000mv with the preset number of 5000, if the number of the cycles/the sum of the differences is larger than 5000, determining that the vehicle is in a raining environment, and if the number of the cycles/the sum of the differences is smaller than 5000, determining that the vehicle is in a shaking state.
According to the windscreen wiper control method provided by the embodiment of the application, the analog signal sent by the rainfall monitoring device in the period of the first preset time can be received in real time, the target electric signal value is obtained from each period of the analog signal, the sum of absolute values of differences between the target electric signal values and the corresponding preset electric signal values is calculated, whether the current environment of the vehicle is a rainy environment or not is determined based on the sum of the absolute values of the differences, if the vehicle is in the rainy environment, the windscreen wiper condition is met, if the vehicle is not in the rainy environment, the condition that the vehicle does not meet the windscreen wiper condition is indicated, the shaking condition of the vehicle is judged, the wiping command is forbidden to be sent, and the windscreen wiper is prevented from executing the wiping operation under the condition that no rainwater exists.
Example III
Based on the same inventive concept, an embodiment of the present application provides a wiper control apparatus, referring to fig. 4, the apparatus includes:
the signal acquisition module is used for acquiring analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by the rainfall monitoring device;
A calculation module for determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value;
The condition judging module is used for determining whether the windscreen wiper condition is met or not based on a preset difference threshold value and the sum of the difference between the target electric signal value and the preset electric signal value in each period;
And the prohibition module is used for prohibiting the sending of a wiping instruction under the condition that the windscreen wiper condition is not met.
In one possible embodiment, the condition judgment module includes:
A number judging module, configured to determine the number of periods in which the sum of the differences between the target electrical signal value and the preset electrical signal value exceeds the preset difference threshold;
the first determining module is used for determining that the windscreen wiper condition is not met under the condition that the period number is smaller than a preset number.
In one possible implementation, the signal acquisition module includes:
And the sub-acquisition module is used for receiving the electric signals sent by the rainfall monitoring device in each period of the plurality of periods at preset time intervals to obtain analog signals of the plurality of periods.
In one possible embodiment, the apparatus further comprises:
and the command output module is used for sending out a wiping command under the condition that the wiper condition is met.
In one possible implementation, the instruction output module includes:
And the sub-output module is used for sending out corresponding wiping instructions according to the sum of the difference value between the target electric signal value and the preset electric signal value in each period and the preset difference value threshold under the condition that the wiper condition is met.
In a possible implementation manner, the preset difference threshold includes a first threshold, a second threshold and a third threshold;
The sub-output module includes:
The first output module is used for sending out a first scraping instruction when the sum of the differences is larger than a first threshold value and smaller than a second threshold value;
The second output module is used for sending a second scraping instruction when the sum of the differences is larger than or equal to a second threshold value and smaller than or equal to a third threshold value;
and the third output module is used for sending out a third scraping instruction under the condition that the sum of the difference values is larger than a third threshold value.
In one possible embodiment, the apparatus further comprises:
And the second determining module is used for determining that the windscreen wiper condition is not met under the condition that the sum of the difference values between the target electric signal value and the preset electric signal value does not exceed the preset difference value threshold value.
In one possible embodiment, the apparatus further comprises:
a first mode conversion module for converting a driving mode of the vehicle into an economy mode in the case that the number of periods is smaller than a preset number;
And the second mode conversion module is used for converting the driving mode of the vehicle into the movement mode under the condition that the sum of the difference values does not exceed the preset difference value threshold value.
Example IV
Based on the same inventive concept, a fourth embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for controlling a wiper according to the first embodiment or the second embodiment when executing the method.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The above description of the method, the device and the electronic equipment for controlling the windscreen wiper provided by the application applies specific examples to explain the principle and the implementation mode of the application, and the description of the above examples is only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (8)
1. The control method of the windscreen wiper is characterized by obtaining analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by a rainfall monitoring device;
Determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value;
Determining a number of cycles in which a sum of differences between the target electrical signal value and the preset electrical signal value exceeds a preset difference threshold;
Under the condition that the period number is smaller than the preset number, determining that the windscreen wiper condition is not met;
Determining that the windscreen wiper condition is not met under the condition that the sum of the differences between the target electric signal value and the preset electric signal value does not exceed the preset difference threshold value;
And under the condition that the windscreen wiper conditions are not met, prohibiting the sending of a wiping instruction.
2. The method of claim 1, wherein obtaining analog signals for a plurality of periods within a first preset time includes:
and in each period of the plurality of periods, receiving the electric signals sent by the rainfall monitoring device every preset time to obtain analog signals of the plurality of periods.
3. The method according to claim 1, wherein a wiping instruction is issued when the wiper condition is satisfied.
4. The method according to claim 3, wherein, in the case where the wiper condition is satisfied, issuing a wiper instruction includes:
And under the condition that the windscreen wiper conditions are met, according to the sum of the difference values between the target electric signal value and the preset electric signal value in each period and the preset difference value threshold, a corresponding wiping instruction is sent out.
5. The method according to claim 4, wherein the preset difference threshold includes a first threshold, a second threshold, and a third threshold;
According to the sum of the difference between the target electric signal value and the preset electric signal value in each period and the preset difference threshold, a corresponding scraping instruction is sent out, and the method comprises the following steps:
Issuing a first scraping instruction when the sum of the differences is greater than a first threshold value and less than a second threshold value;
when the sum of the differences is larger than or equal to a second threshold value and smaller than or equal to a third threshold value, a second scraping instruction is sent out;
and when the sum of the differences is larger than a third threshold value, a third scraping instruction is sent out.
6. The method of controlling a wiper blade according to claim 1, characterized in that the method further comprises:
under the condition that the period number is smaller than the preset number, converting the driving mode of the vehicle into an economic mode;
And converting the driving mode of the vehicle into a movement mode under the condition that the sum of the difference values does not exceed the preset difference value threshold value.
7. A rainfall hanging brush control device, characterized in that the device comprises:
the signal acquisition module is used for acquiring analog signals of a plurality of periods in a first preset time, wherein the analog signals of the plurality of periods are sent by the rainfall monitoring device;
A calculation module for determining a target electrical signal value exceeding a preset electrical signal value in each of the plurality of cycles, and a sum of differences between the target electrical signal value and the preset electrical signal value;
a number judging module, configured to determine the number of periods in which the sum of the differences between the target electrical signal value and the preset electrical signal value exceeds a preset difference threshold;
The first determining module is used for determining that the windscreen wiper condition is not met under the condition that the period number is smaller than the preset number;
the second determining module is used for determining that the windscreen wiper condition is not met under the condition that the sum of the difference values between the target electric signal value and the preset electric signal value does not exceed the preset difference value threshold value;
And the prohibition module is used for prohibiting the sending of a wiping instruction under the condition that the windscreen wiper condition is not met.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executed implementing the wiper control method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110592186.4A CN114701453B (en) | 2021-05-28 | 2021-05-28 | Control method and system for windscreen wiper, electronic equipment and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110592186.4A CN114701453B (en) | 2021-05-28 | 2021-05-28 | Control method and system for windscreen wiper, electronic equipment and vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114701453A CN114701453A (en) | 2022-07-05 |
CN114701453B true CN114701453B (en) | 2024-08-09 |
Family
ID=82165986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110592186.4A Active CN114701453B (en) | 2021-05-28 | 2021-05-28 | Control method and system for windscreen wiper, electronic equipment and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114701453B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119096149A (en) * | 2022-12-16 | 2024-12-06 | 宁德时代(上海)智能科技有限公司 | Reliability detection method of electrical components, related device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103786687A (en) * | 2014-02-10 | 2014-05-14 | 江苏日盈电子股份有限公司 | Slide control method of automobile rain light sensor |
CN107933509A (en) * | 2017-11-27 | 2018-04-20 | 南京航空航天大学 | A kind of automobile automatic wiper control system and anti-erroneous judgement method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080013285A (en) * | 2006-08-08 | 2008-02-13 | 기아자동차주식회사 | Wiper Control System and Its Operation Method |
JP6766714B2 (en) * | 2017-03-22 | 2020-10-14 | 株式会社デンソー | Rain sensor |
CN110103893B (en) * | 2019-04-16 | 2021-05-25 | 北京汽车股份有限公司 | Automobile windshield wiper control device, automobile windshield wiper control equipment and automobile windshield wiper control method and automobile |
CN110208882B (en) * | 2019-05-10 | 2021-09-10 | 北京汽车股份有限公司 | Rainfall data processing method and device, vehicle and equipment |
CN111572497A (en) * | 2020-05-27 | 2020-08-25 | 常州信息职业技术学院 | Automatic control system of windscreen wiper |
-
2021
- 2021-05-28 CN CN202110592186.4A patent/CN114701453B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103786687A (en) * | 2014-02-10 | 2014-05-14 | 江苏日盈电子股份有限公司 | Slide control method of automobile rain light sensor |
CN107933509A (en) * | 2017-11-27 | 2018-04-20 | 南京航空航天大学 | A kind of automobile automatic wiper control system and anti-erroneous judgement method |
Also Published As
Publication number | Publication date |
---|---|
CN114701453A (en) | 2022-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114701453B (en) | Control method and system for windscreen wiper, electronic equipment and vehicle | |
CN111505623B (en) | Method and system for detecting obstacle in driving process of unmanned vehicle and vehicle | |
US11912293B2 (en) | Method, system, and computer program product for determining a blockage of a sensor of a plurality of sensors of an ego vehicle | |
US8169178B2 (en) | Detection of the angular position of the rotor of a brush motor without using sensors | |
CN107060566B (en) | Car window electric machine control method, system and automobile | |
CN111194287A (en) | Methods and apparatus for controlling vehicles and autonomously driving vehicles | |
JP2005075340A (en) | Wiper control system for vehicle and its control method | |
CN112026529B (en) | Vehicle output torque control method and device | |
CN113470314A (en) | Fatigue early warning control method, device, equipment and automobile | |
CN110531339B (en) | Lidar detection method, device and computer-readable storage medium | |
CA1245747A (en) | Windscreen wiper control | |
CN104883158A (en) | Filtering method and filtering device for acceleration pedal signals of electric automobile | |
CN111661005A (en) | Windscreen wiper control method based on rainfall sensor | |
US20100101040A1 (en) | Windshield wiper control unit and windshield wiper control method | |
CN115507867A (en) | Target trajectory prediction method, target trajectory prediction device, electronic device, and storage medium | |
CN117985018A (en) | Road flatness detection method and device, computer equipment and storage medium | |
CN114545383A (en) | High-anti-interference-capability X-band adjustable radar sensing method and system | |
JPWO2003076240A1 (en) | WIPER CONTROL METHOD AND WIPER CONTROL DEVICE | |
CN109946708B (en) | A method and device for lane line detection based on lidar scanning | |
CN112511063B (en) | Anti-pinch self-adaptive learning method and device for vehicle partition system | |
CN113492801B (en) | Driving vision enhancement method, device and storage medium when it rains | |
JP2661171B2 (en) | Raindrop-sensitive automatic wiper controller | |
CN102289600A (en) | Software filtering method of vehicle mileage pulse | |
WO2022193154A1 (en) | Windshield wiper control method, automobile, and computer-readable storage medium | |
CN101867788A (en) | Monitoring method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |