Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, a block diagram of an automobile 100 according to an embodiment of the invention is shown. The automobile 100 includes a rain sensor 110, a sunlight sensor 120, a combination switch 130, a left turn light 140, a right turn light 150, a Body Control Module (BCM) 160, an Airbag controller (airbagcontrol Unit, ACU)11, and a collision sensor 12, wherein the sunlight sensor 120 is electrically connected to the rain sensor 110, the Airbag controller 11 is electrically connected to the collision sensor 12, and the rain sensor 110, the combination switch 130, the left turn light 140, the right turn light 150, and the Airbag controller 11 are electrically connected to the Body Control Module 160.
The sunlight sensor 120 is configured to collect light intensity information and output a corresponding light intensity level to the rainfall sensor 110 according to the light intensity information.
In this embodiment, a plurality of light intensity levels (for example, weak, medium, strong, and extra strong) are calibrated in advance in the solar sensor 120, each light intensity level corresponds to one light intensity range, and the solar sensor 120 determines the corresponding light intensity level according to the light intensity range in which the currently acquired light intensity information is located, and then outputs the light intensity level to the rainfall sensor 110. It should be noted that the light intensity levels calibrated in the solar sensor 120 are not limited to the above five types, and may be increased or decreased during calibration in practical applications; the solar sensor 120 collects light intensity information in real time without a special switch to control the on and off of the light intensity information.
The rainfall sensor 110 is configured to, when the combination switch 130 is in the automatic operating mode, acquire rainfall information and determine a rainfall level corresponding to the rainfall information, determine a visibility level of a current environment according to the rainfall level and the light intensity level, and send a first double flashing light turning-on instruction to the vehicle body control module 160 when the visibility level does not exceed a preset level.
In this embodiment, the combination switch 130 is an integration of a turn light switch and a wiper switch, and when the automobile 100 runs in a rainy day, a driver needs to turn on the wiper switch through the combination switch 130 and adjust the wiper switch to an Automatic (AUTO) operating mode, so as to turn on the rainfall sensor 110, and the rainfall sensor 110 collects rainfall information. The rainfall sensor 110 is also pre-calibrated with a plurality of rainfall levels (e.g., downy rain, light rain, medium rain, heavy rain), each rainfall level corresponds to a rainfall range, and the rainfall sensor 110 determines the corresponding rainfall level according to the rainfall range in which the collected rainfall information is located.
In this embodiment, the rainfall sensor 110 is pre-stored with a visibility rating table, the visibility rating table includes a corresponding relationship between a rainfall level, a light intensity level and a visibility level, and the rainfall sensor 110 is configured to determine a corresponding visibility level in the visibility rating table according to the rainfall level and the light intensity level. As shown in the visibility ranking table in fig. 2, 6 visibility rankings are divided into "0", "1", "2", "3", "4", and "5", respectively. Wherein, the visibility grade is '0' to indicate that the visibility is good, and the corresponding visibility range is x is more than or equal to 10.0 km; the visibility grade is '1' which means that the visibility is better, and the corresponding visibility range is 1.5 km-x < 10 km; the visibility grade is '2' which indicates that the visibility is poor, and the corresponding visibility range is x which is more than or equal to 0.5km and less than 1.5 km; the visibility grade is 3, which indicates poor visibility, and the corresponding visibility range is x which is more than or equal to 0.2km and less than 0.5 km; the visibility grade is '4', which means that the visibility is poor, and the corresponding visibility range is more than or equal to 0.05km and less than or equal to x and less than 0.2 km; a visibility rating of "5" indicates very poor visibility, corresponding to a visibility range of x < 0.05 km. The rainfall sensor 110 periodically (for example, with a period of 100 ms) determines a corresponding visibility level according to the currently obtained rainfall level and the light intensity level, compares the visibility level with a preset level, and sends a first double-flashing-light turning-on instruction to the vehicle body control module 160 if the visibility level does not exceed the preset level. For example, assuming that the preset level is "4", the rainfall sensor 110 sends a first strobe turning-on instruction to the vehicle body control module 160 when the visibility level is "4" or "5".
The airbag controller 11 is configured to determine whether the automobile 100 is collided according to the detection signal sent by the collision sensor 12, and send a second flashing light turning-on instruction to the body control module 160 when it is determined that the automobile 100 is collided.
In the present embodiment, the number of the collision sensors 12 for detecting whether the automobile 100 collides may be 4, and the collision sensors are respectively disposed at different positions on the automobile 100, for example, a front collision sensor, a rear collision sensor, and side collision sensors respectively mounted on left and right door center pillars. When the automobile 100 collides, the collision sensor 12 vibrates or displaces, so as to send a corresponding detection signal to the airbag controller 11; the airbag controller 11 sends a second flashing light turning-on command to the body control module 160 after determining that the vehicle 100 has collided according to the received detection signal.
The vehicle body control module 160 is configured to execute the second dual-flash-lamp turning-on instruction to control the left turn lamp 140 and the right turn lamp 150 to be turned on simultaneously when the vehicle speed of the vehicle 100 is less than or equal to a preset value, execute the turn-lamp turning-on instruction to control the left turn lamp 140 or the right turn lamp 150 to be turned on when the vehicle speed of the vehicle 100 is greater than the preset value and the turn-lamp turning-on instruction is received, and execute the first dual-flash-lamp turning-on instruction to control the left turn lamp 140 and the right turn lamp 150 to be turned on simultaneously when the vehicle speed of the vehicle 100 is greater than the preset value and the turn-lamp turning-on instruction is not received.
In this embodiment, the priority level of the control system for automatically opening the double flashing in case of collision is higher than the priority level of the control system for turning the indicator, and the priority level of the control system for automatically opening the double flashing in rainy days is higher than the priority level of the control system for automatically opening the double flashing in rainy days, so that the control system for automatically opening the double flashing in rainy days can not affect the basic requirements of emergencies when working, namely, when the automobile 100 collides, the control system automatically opens the double flashing, and the basic requirements of normal driving of the automobile 100 can not be affected, namely, the use of the steering function is realized. For example, when the automobile 100 runs in an environment with low visibility in rainy days and a collision occurs, the automobile body control module 160 may receive a first double-flashing-light turning-on instruction and a second double-flashing-light turning-on instruction, and the automobile body control module 160 needs to judge whether the speed of the automobile 100 is less than or equal to 10km/h, and if so, determines that the automobile 100 is currently in a low-speed or stopped state, needs to turn on double flashing, and simultaneously turns off the double-flashing function and the steering function in rainy days, that is, does not execute the first double-flashing-light turning-on instruction and the steering-light turning-on instruction; when the speed of the automobile 100 is greater than 10km/h (i.e., the automobile 100 is not in a low speed or stop state after collision), the second double-flashing-light turning-on instruction does not need to be executed, the function of the automobile 100 that turns to is prioritized is turned on, if the automobile body control module 160 receives the turning-light turning-on instruction at this time, the turning-light turning-on instruction is preferentially executed to turn on the left turning light 140 or the right turning light 150, and if the automobile body control module 160 does not receive the turning-light turning-on instruction at this time, the first double-flashing-light turning-on instruction is executed, so that the function of automatically turning on double flashing when the automobile 100 runs in an environment with low visibility in rainy days is realized.
The vehicle body control module 160 is further configured to execute the turn signal turning-on instruction to control the left turn signal 140 or the right turn signal 150 to be turned on when the first dual flash light turning-on instruction and the second dual flash light turning-on instruction are not received and the turn signal turning-on instruction is received; when the second dual flashing light turning-on command is not received, the turn signal turning-on command is not received, and the first dual flashing light turning-on command is received, the first dual flashing light turning-on command is executed to control the left turn signal 140 and the right turn signal 150 to be turned on simultaneously.
That is, when the automobile 100 is neither collided nor driven in an environment with a low visibility level, the body control module 160 does not receive the first dual flash light turning-on instruction and the second dual flash light turning-on instruction, and if the turn light turning-on instruction is received at this time, the turn light turning-on instruction is executed; when the automobile 100 runs in an environment with low visibility level and no collision occurs, the automobile body control module 160 receives a first double-flashing-light starting instruction, does not receive a second double-flashing-light starting instruction, and executes the first double-flashing-light starting instruction if the turning-light starting instruction is not received; if the turn signal lamp starting instruction is received, the turn signal lamp starting instruction is preferentially executed, and the first double-flash-lamp starting instruction is suspended.
The body control module 160 is further configured to control the left turn light 140 or the right turn light 150 to be turned off when receiving a turn light turn-off command in the process of executing the turn light turn-on command.
For example, when the body control module 160 receives a turn signal turning-on command during execution of a first dual flashing light turning-on command, the turn signal turning-on command is preferentially executed, and execution of the first dual flashing light turning-on command is suspended; when a turn-off command of the turn lights is received, the left turn light 140 or the right turn light 150 is controlled to be turned off, and then the first double flashing light turn-on command is continuously executed.
In the present embodiment, the turn signal on command or the turn signal off command may be obtained by the driver manually operating the turn signal switch in the combination switch 130, or may be automatically generated by the automobile 100 according to the driving state. Next, a principle of automatically generating a turn-on command or a turn-off command of the turn lights will be explained.
The automobile 100 further includes a camera 101, a lane auxiliary control module 102, an Electronic Stability Controller (ESC) 103 and a corner sensor 104, wherein the camera 101 and the ESC 103 are electrically connected to the lane auxiliary control module 102, and the ESC 103 is electrically connected to the corner sensor 104.
The camera 101 is configured to collect lane information of the vehicle 100, and send the lane information to the lane assist control module 102.
In the present embodiment, the camera 101 may detect red, yellow and green traffic lights in front of the automobile 100, lane positions (white lines on roads, arrow lines of turns, etc.), so as to obtain information about the lane where the automobile 100 is currently located.
The electronic stability control device 103 is configured to acquire angle information of a steering wheel of the automobile 100 through the steering angle sensor 104, and send the angle information to the lane assist control module 102.
In the embodiment, the rotation angle sensor 104 is used for detecting the speed and the amplitude of the rotation of the steering wheel, so as to obtain corresponding angle information, and the angle information is sent to the lane assist control module 102 through the electronic stability control device 103.
The lane auxiliary control module 102 is configured to send the turn signal turning-on instruction or the turn signal turning-off instruction to the vehicle body control module 160 according to the lane information and the angle information.
In this embodiment, after receiving the lane information and the angle information, the lane assist control module 102 determines whether the intention of the driver is steering, returning to the right, or deviating according to the lane information and the angle information, and then determines to send a turn-on command or a turn-off command of the turn lights. For example, when it is determined that the vehicle is turning (left-turning or right-turning), a turn signal turn-on command (a command to turn on the left turn signal 140 or a command to turn on the right turn signal 150) is transmitted to the vehicle body control module 160, so that the vehicle body control module 160 controls the left turn signal 140 to be turned on or the right turn signal 150 to be turned on; when it is determined that the lane has been returned, a turn lamp turn-off command is transmitted to the body control module 160, so that the body control module 160 controls the left turn lamp 140 to be turned off or the right turn lamp 150 to be turned off. In this embodiment, when the vehicle 100 is driving, if the driver does not turn on the turn signal, when the vehicle 100 deviates from the current lane, and the system determines that the vehicle 100 deviates from the lane without steering requirement, the lane assist control module 102 may prompt the driver, and after more than 5 seconds, if the driver does not turn on the turn signal, the system automatically turns on the turn signal to prompt the vehicle behind to deviate from the lane, and when the vehicle 100 returns, the control system automatically generates the turn signal turn-on command or the turn signal turn-off command to turn off.
In this embodiment, the automobile 100 further includes a lane departure warning light 105, the lane departure warning light 105 is electrically connected to the lane auxiliary control module 102, the lane departure warning light 105 may be disposed on a rear view mirror of the automobile 100, and when the automobile 100 departs from a lane, the lane auxiliary control module 102 controls the lane departure warning light 105 to light or flash so as to remind a driver of the departure of the automobile from the lane.
In this embodiment, the body control module 160 is configured to determine whether the automobile 100 is in a forward state when receiving the turn signal turning-on instruction, and control the left turn signal 140 or the right turn signal 150 to turn on according to the turn signal turning-on instruction when the automobile 100 is in the forward state. That is, the vehicle 100 does not need to turn on the turn signal when the vehicle is reversing, and therefore, after receiving the turn signal turn-on command, the vehicle body control module 160 needs to further determine whether the vehicle 100 is in the reversing state, and the vehicle body control module 160 will execute the turn signal turn-on command only when the vehicle 100 is not in the reversing state.
It should be noted that, in the present embodiment, the vehicle body control module 160 executes the automatically generated turn-on command only after executing the automatically generated turn-on command, and the vehicle body control module 160 does not automatically turn off by the driver operating the turn light turned on by the turn light switch.
In this embodiment, the rainfall sensor 110 is further configured to send a double flashing light turning-off instruction to the vehicle body control module 160 when the visibility level is increased to exceed the preset level. For example, when the visibility level of the current environment is increased from "4" or "5" to "1", "2", or "3", the rainfall sensor 110 sends a double flashing light off command to the body control module 160.
The vehicle body control module 160 is further configured to control the left turn light 140 and the right turn light 150 to be turned off simultaneously according to the dual flashing light turning-off command when the first dual flashing light turning-on command is executed.
That is, after the automobile 100 starts the double flashing, if the visibility of the current environment is improved to a level that does not satisfy the condition of starting the double flashing, the body control module 160 controls the left turn light 140 and the right turn light 150 to be simultaneously turned off according to the double flashing light turning-off command sent by the rainfall sensor 110, so as to implement the turning-off of the double flashing; of course, if the turn signal turn-on command is received simultaneously with the double flashing light turn-off command, the turn signal turn-on command is preferentially executed, and after the turn signal turn-off operation is completed, the left turn signal 140 and the right turn signal 150 are controlled to be turned off simultaneously according to the double flashing light turn-off command sent by the rainfall sensor 110. In the present embodiment, when the automobile 100 is turned on due to a collision, even if the body control module 160 receives the double flashing light turn-off command sent by the rainfall sensor 110, the double flashing will not be turned off.
Further, the automobile 100 further includes a combination meter 170, the combination meter 170 is electrically connected to the automobile body control module 160, and the automobile body control module 160 is further configured to send a prompt message to the combination meter 170 according to the first double-flashing-light turning-on instruction when receiving the first double-flashing-light turning-on instruction, so as to prompt the driver to reduce the automobile speed.
In this embodiment, the combination meter 170 may also be referred to as a speedometer, and the vehicle body control module 160 sends a prompt message to the combination meter 170 when receiving the first strobe turning-on instruction, and then prompts the driver that the visibility of the current environment is low, the vehicle speed needs to be reduced, and the safety of the vehicle 100 during running in rainy days is improved.
Further, the automobile 100 further includes a dual flashing light switch 180, the dual flashing light switch 180 is electrically connected to the body control module 160, and the body control module 160 is further configured to refuse to execute all instructions sent by the rainfall sensor 110 when receiving a control instruction sent by the dual flashing light switch 180 or when the combination switch 130 is in a non-automatic operation mode.
In this embodiment, the driver can manually operate the dual flash switch 180 to send a control command (e.g., a command to turn on the dual flash or a command to turn off the dual flash) to the body control module 160, and the body control module 160 does not execute all commands (i.e., a first dual flash on command, a dual flash off command) sent from the rainfall sensor 110 when receiving the control command or when the wiper switch in the combination switch 130 is in the non-automatic operating mode, and the control system corresponding to the automatic dual flash on command on the automobile 100 is in the off state.
In the present embodiment, when the automobile 100 turns on the double flashing light due to the safety requirement after the collision, the automobile 100 releases the safety requirement and resumes the steering priority function when the driver manually operates the turn signal switch or manually operates the double flashing light switch 180.
Fig. 3 is a schematic flow chart of a vehicle lamp control method according to an embodiment of the present invention. It should be noted that the control method for the vehicle lamp according to the embodiment of the present invention is not limited by the specific sequence shown in fig. 3 and described below, the basic principle and the generated technical effect are the same as those of the foregoing embodiment, and for the sake of brief description, the corresponding contents in the foregoing embodiment can be referred to for the parts not mentioned in the embodiment. It should be understood that in other embodiments, the sequences of some steps in the vehicle lamp control method according to the present invention may be interchanged according to actual needs, or some steps may be omitted or deleted. The vehicle lamp control method according to the embodiment of the present invention can be applied to the vehicle 100, and the specific process shown in fig. 3 will be described in detail below.
In step S201, the sunlight sensor 120 collects light intensity information and outputs a corresponding light intensity level to the rainfall sensor 110 according to the light intensity information.
Step S202, when the combination switch 130 is in the automatic operating mode, the rainfall sensor 110 collects rainfall information and determines a rainfall level corresponding to the rainfall information, determines a visibility level of the current environment according to the rainfall level and the light intensity level, and sends a first double flashing light turning-on instruction to the vehicle body control module 160 when the visibility level does not exceed a preset level.
In this embodiment, the rainfall sensor 110 stores a visibility grading table in advance, the visibility grading table includes a corresponding relationship between a rainfall grade, a light intensity grade and a visibility grade, and the rainfall sensor 110 determines a corresponding visibility grade in the visibility grading table according to the rainfall grade and the light intensity grade.
In step S203, the airbag controller 11 determines whether the automobile 100 has a collision according to the detection signal sent by the collision sensor 12, and sends a second flashing light turning-on command to the body control module 160 when it is determined that the automobile 100 has a collision.
Step S204, when the vehicle speed of the vehicle 100 is less than or equal to a preset value, the vehicle body control module 160 executes the second dual-flash-lamp turning-on instruction to control the left turn lamp 140 and the right turn lamp 150 to be turned on simultaneously, when the vehicle speed of the vehicle 100 is greater than the preset value and the turn lamp turning-on instruction is received, the turn lamp turning-on instruction is executed to control the left turn lamp 140 or the right turn lamp 150 to be turned on, and when the vehicle speed of the vehicle 100 is greater than the preset value and the turn lamp turning-on instruction is not received, the first dual-flash-lamp turning-on instruction is executed to control the left turn lamp 140 and the right turn lamp 150 to be turned on simultaneously.
In this embodiment, when the first dual flash light turning-on command and the second dual flash light turning-on command are not received and the turn signal turning-on command is received, the vehicle body control module 160 executes the turn signal turning-on command to control the left turn signal 140 or the right turn signal 150 to be turned on; when the second dual flashing light turning-on command is not received, the turn signal turning-on command is not received, and the first dual flashing light turning-on command is received, the first dual flashing light turning-on command is executed to control the left turn signal 140 and the right turn signal 150 to be turned on simultaneously.
In this embodiment, the vehicle body control module 160 determines whether the vehicle 100 is in a forward state when the vehicle speed of the vehicle 100 is greater than the preset value and the turn signal turning-on command is received, and controls the left turn signal 140 or the right turn signal 150 to be turned on according to the turn signal turning-on command when the vehicle 100 is in the forward state.
Further, as shown in fig. 4, the method further includes:
in step S205, when receiving the first dual flash light turning-on instruction, the vehicle body control module 160 sends a prompt message to the combination meter 170 according to the first dual flash light turning-on instruction, so as to prompt the driver to reduce the vehicle speed.
In step S206, when the vehicle body control module 160 receives a turn signal turn-off command during the process of executing the turn signal turn-on command, the left turn signal 140 or the right turn signal 150 is controlled to be turned off.
In step S207, when the visibility level is increased to exceed the preset level, the rainfall sensor 110 sends a double flashing light turn-off command to the vehicle body control module 160.
In step S208, when the first dual flashing light turning-on command is executed, the vehicle body control module 160 controls the left turn light 140 and the right turn light 150 to be turned off simultaneously according to the dual flashing light turning-off command.
In step S209, the vehicle body control module 160 refuses to execute all the instructions sent by the rainfall sensor 110 when receiving the control instruction sent by the dual flashing light switch 180 or when the combination switch 130 is in the non-automatic operating mode.
It is understood that step S209 may be executed before or after any one of steps S201 to S208, which is not limited in the present application.
In summary, the vehicle light control method and the vehicle provided by the embodiment of the invention include a rain sensor, a sunlight sensor, a combination switch, a left turn light, a right turn light, an airbag controller, a collision sensor and a vehicle body control module, wherein the sunlight sensor is electrically connected with the rain sensor, the airbag controller is electrically connected with the collision sensor, the rain sensor, the combination switch, the left turn light, the right turn light and the airbag controller are electrically connected with the vehicle body control module, the sunlight sensor collects light intensity information and outputs corresponding light intensity levels to the rain sensor according to the light intensity information; when the combination switch is in an automatic working mode, the rainfall sensor collects rainfall information and determines a rainfall level corresponding to the rainfall information, the visibility level of the current environment is determined according to the rainfall level and the light intensity level, and when the visibility level does not exceed a preset level, a first double-flashing-light starting instruction is sent to the vehicle body control module; the safety air bag controller judges whether the automobile collides or not according to the detection signal sent by the collision sensor, and sends a second double-flashing light starting instruction to the automobile body control module when the automobile is determined to collide; the vehicle body control module executes the second double-flashing-lamp turning-on instruction to control the left steering lamp and the right steering lamp to be turned on simultaneously when the vehicle speed of the vehicle is smaller than or equal to a preset value, executes the steering-lamp turning-on instruction to control the left steering lamp or the right steering lamp to be turned on when the vehicle speed of the vehicle is larger than the preset value and the steering-lamp turning-on instruction is received, and executes the first double-flashing-lamp turning-on instruction to control the left steering lamp and the right steering lamp to be turned on simultaneously when the vehicle speed of the vehicle is larger than the preset value and the steering-lamp turning-on instruction is not received. In the application, the sunlight sensor can be used for grading according to the intensity of collected light intensity information to obtain a light intensity grade, the rainfall sensor can be used for grading according to the size of the collected rainfall information to obtain a rainfall grade, the visibility grade of the current environment of the automobile is judged by the rainfall sensor according to two dimensions of the light intensity grade and the rainfall grade, the judgment is more scientific and accurate, the rainfall sensor is further used for judging whether the visibility grade exceeds a preset grade, when the visibility grade does not exceed the preset grade, the visibility grade indicates that the visibility of the current environment is low, and a first double-flash-lamp starting instruction is sent to the automobile body control module; when the automobile collides and the speed of the automobile is less than or equal to a preset value, the automobile body control module automatically starts double flashes to ensure the safety requirement of the automobile; when the safety requirement is finished or no safety requirement exists, if a turn signal lamp starting instruction is received, the turn signal lamp starting instruction is preferentially executed to start a left turn signal lamp or a right turn signal lamp, namely, a turn signal priority function is started; if the turn light starting instruction is not received or no safety requirement exists, the vehicle body control module controls the left turn light and the right turn light to be simultaneously started when receiving the first double-flashing light starting instruction so as to remind surrounding vehicles and avoid safety accidents.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.