CN106696814A - Car light control method and device - Google Patents
Car light control method and device Download PDFInfo
- Publication number
- CN106696814A CN106696814A CN201510435552.XA CN201510435552A CN106696814A CN 106696814 A CN106696814 A CN 106696814A CN 201510435552 A CN201510435552 A CN 201510435552A CN 106696814 A CN106696814 A CN 106696814A
- Authority
- CN
- China
- Prior art keywords
- light
- light intensity
- vehicle
- car
- car light
- 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.)
- Pending
Links
Landscapes
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
Abstract
一种车灯控制方法和装置,其中,所述车灯控制方法,包括:检测车外的光线强度;获取与所述光线强度对应的预设区间;获取与所述预设区间对应的车灯模式;获取切换到与所述光线强度对应的车灯模式所对应的切换时间;在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式;所述车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。通过所述车灯控制方法和装置,可以更好地满足用户对车灯控制的行驶需求。
A vehicle light control method and device, wherein the vehicle light control method includes: detecting the light intensity outside the vehicle; acquiring a preset interval corresponding to the light intensity; acquiring a vehicle light corresponding to the preset interval mode; obtain the switching time corresponding to switching to the car light mode corresponding to the light intensity; after the switching time, switch the car light mode of the car light to correspond to the preset interval corresponding to the light intensity The car light mode; the car light mode is related to the switch state of the low beam, and the switching time between different car light modes is different. Through the vehicle light control method and device, the user's driving demand for vehicle light control can be better met.
Description
技术领域technical field
本发明涉及车辆控制技术领域,尤其涉及一种车灯控制方法和装置。The invention relates to the technical field of vehicle control, in particular to a method and device for controlling vehicle lights.
背景技术Background technique
汽车在光线较暗时,往往需要打开近光灯,而在光线较强时,则可以通过关闭近光灯以达到节能的目的。现代车辆的灯光自动控制功能可以方便地自动实现该操作功能,而不需要用户频繁的操作近光开关,从而提高了驾驶的便捷性和舒适性。When the light is low, the car often needs to turn on the low beam, and when the light is strong, the low beam can be turned off to achieve the purpose of energy saving. The automatic light control function of modern vehicles can conveniently and automatically realize this operation function, without requiring the user to frequently operate the low beam switch, thereby improving the convenience and comfort of driving.
然而,现有的车辆的灯光自动控制系统存在对所处工况环境反应慢、用户体验差等问题,因此无法满足实际的应用需要。例如,通过当前系统时间进行车灯的开关控制,就不能适用于不同的地区。However, the existing automatic lighting control system of vehicles has problems such as slow response to the working environment and poor user experience, so it cannot meet the actual application needs. For example, the on/off control of the car lights through the current system time cannot be applied to different regions.
发明内容Contents of the invention
本发明实施例解决的问题是如何更好地满足用户对车灯控制的行驶需求。The problem to be solved by the embodiments of the present invention is how to better meet the user's driving requirements for vehicle light control.
为解决上述问题,本发明实施例提供一种车灯控制方法,包括:In order to solve the above problems, an embodiment of the present invention provides a vehicle light control method, including:
检测车外的光线强度;Detect the light intensity outside the car;
获取与所述光线强度对应的预设区间;Acquiring a preset interval corresponding to the light intensity;
获取与所述预设区间对应的车灯模式;Obtaining the vehicle light mode corresponding to the preset interval;
获取切换到与所述光线强度对应的车灯模式所对应的切换时间;Obtain the switching time corresponding to switching to the car light mode corresponding to the light intensity;
在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式;After the switching time, switch the lamp mode of the lamp to the lamp mode corresponding to the preset interval corresponding to the light intensity;
所述车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。The vehicle light mode is related to the switching state of the low beam light, and the switching time between different vehicle light modes is different.
可选的,所述获取与所述光线强度对应的预设区间之后,还包括:判断所述光线强度位于所述对应的预设区间的保持时间是否超过预设保持时间,当所述光线强度位于所述对应的预设区间的保持时间超过预设保持时间时,执行所述获取切换到与所述光线强度对应的车灯模式所对应的切换时间。Optionally, after the acquisition of the preset interval corresponding to the light intensity, it also includes: judging whether the holding time of the light intensity in the corresponding preset interval exceeds the preset holding time, when the light intensity When the holding time in the corresponding preset interval exceeds the preset holding time, the acquisition of the switching time corresponding to the vehicle light mode corresponding to the light intensity is performed.
可选的,所述获取与所述光线强度对应的预设区间包括:Optionally, said obtaining a preset interval corresponding to said light intensity includes:
对所述光线强度进行模数转换,输出与所述光线强度对应的电压信号;performing analog-to-digital conversion on the light intensity, and outputting a voltage signal corresponding to the light intensity;
根据所述电压信号,判断所述光线强度所对应的预设区间。According to the voltage signal, a preset interval corresponding to the light intensity is judged.
可选的,所述输出与所述光线强度对应的电压信号后,还包括:Optionally, after outputting the voltage signal corresponding to the light intensity, it also includes:
判断所述电压信号是否落在预设范围内;judging whether the voltage signal falls within a preset range;
当所述电压信号位于所述预设范围外时,判定光线传感器错误,并开启车辆近光灯;When the voltage signal is outside the preset range, it is determined that the light sensor is wrong, and the low beam headlights of the vehicle are turned on;
当所述电压信号位于所述预设范围内时,执行所述判断所述光线强度所对应的预设区间的操作。When the voltage signal is within the preset range, the operation of judging the preset interval corresponding to the light intensity is performed.
可选的,所述车灯模式包括:明亮模式、白天模式、夜间模式以及黑暗模式;Optionally, the car light modes include: bright mode, day mode, night mode and dark mode;
当将所述车灯模式切换为明亮模式或白天模式时,关闭近光灯;When the vehicle light mode is switched to a bright mode or a daytime mode, turn off the dipped beam;
当将所述车灯模式切换为夜间模式或黑暗模式时,打开近光灯。When the vehicle light mode is switched to night mode or dark mode, the low beam is turned on.
为了解决上述的技术问题,本发明实施例还公开了一种车灯控制装置,包括:In order to solve the above technical problems, the embodiment of the present invention also discloses a vehicle light control device, including:
检测单元,用于检测车外的光线强度;The detection unit is used to detect the light intensity outside the vehicle;
第一获取单元,用于获取与所述光线强度对应的预设区间;a first acquisition unit, configured to acquire a preset interval corresponding to the light intensity;
第二获取单元,用于获取与所述预设区间对应的车灯模式;a second acquiring unit, configured to acquire the vehicle light mode corresponding to the preset interval;
第三获取单元,用于获取切换到与所述光线强度对应的车灯模式所对应的切换时间;The third acquisition unit is used to acquire the switching time corresponding to switching to the vehicle light mode corresponding to the light intensity;
切换单元,用于在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式;A switching unit, configured to switch the light mode of the vehicle light to the vehicle light mode corresponding to the preset interval corresponding to the light intensity after the switching time has elapsed;
所述车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。The vehicle light mode is related to the switching state of the low beam light, and the switching time between different vehicle light modes is different.
可选的,所述车灯控制装置还包括:Optionally, the vehicle light control device also includes:
判断单元,用于判断所述光线强度位于所述对应的预设区间的保持时间是否超过预设保持时间;当所述光线强度位于所述对应的预设区间的保持时间超过预设保持时间时,通过所述切换单元执行所述获取切换到与所述光线强度对应的车灯模式所对应的切换时间。A judging unit, configured to judge whether the holding time of the light intensity in the corresponding preset interval exceeds the preset holding time; when the holding time of the light intensity in the corresponding preset interval exceeds the preset holding time The acquisition of the switching time corresponding to the vehicle light mode corresponding to the light intensity is performed by the switching unit.
可选的,所述第一获取单元包括:Optionally, the first acquisition unit includes:
转换子单元,用于对所述光线强度进行模数转换,输出与所述光线强度对应的电压信号;A conversion subunit, configured to perform analog-to-digital conversion on the light intensity, and output a voltage signal corresponding to the light intensity;
第一判断子单元,用于根据所述电压信号,判断所述光线强度所对应的预设区间。The first judging subunit is configured to judge a preset interval corresponding to the light intensity according to the voltage signal.
可选的,所述车灯控制装置还包括:Optionally, the vehicle light control device also includes:
第二判断子单元,用于判断所述电压信号是否落在预设范围内;The second judging subunit is used to judge whether the voltage signal falls within a preset range;
当所述电压信号位于所述预设范围外时,判定光线传感器错误,并开启车辆近光灯;When the voltage signal is outside the preset range, it is determined that the light sensor is wrong, and the low beam headlights of the vehicle are turned on;
当所述电压信号位于所述预设范围内时,执行所述判断所述光线强度所对应的预设区间的操作。When the voltage signal is within the preset range, the operation of judging the preset interval corresponding to the light intensity is performed.
可选的,所述车灯模式包括:明亮模式、白天模式、夜间模式以及黑暗模式;Optionally, the car light modes include: bright mode, day mode, night mode and dark mode;
当将所述车灯模式切换为明亮模式或白天模式时,关闭近光灯;When the vehicle light mode is switched to a bright mode or a daytime mode, turn off the dipped beam;
当将所述车灯模式切换为夜间模式或黑暗模式时,打开近光灯。When the vehicle light mode is switched to night mode or dark mode, the low beam is turned on.
与现有技术相比,本发明实施例的技术方案具有以下优点:Compared with the prior art, the technical solutions of the embodiments of the present invention have the following advantages:
通过检测光线强度,并获取其对应的车灯模式,可以根据车辆行驶过程中外部的光线条件,选择打开或关闭车灯,因此可以满足车辆的实际行驶工况下的操作需求。同时,通过比较当前车辆的车灯模式以及待切换的车灯模式,可以获取两者之间可以由用户设定的转换时间,因此可以兼顾用户的操作习惯。因此综上,本发明实施例的车灯控制方法可以更好地满足用户对车灯控制的行驶需求。By detecting the light intensity and obtaining the corresponding light mode, the light can be turned on or off according to the external light conditions during the driving of the vehicle, so it can meet the operating requirements of the vehicle under actual driving conditions. At the same time, by comparing the current lamp mode of the vehicle with the lamp mode to be switched, it is possible to obtain the switching time between the two that can be set by the user, so that the user's operating habits can be taken into account. Therefore, in summary, the vehicle light control method of the embodiment of the present invention can better meet the user's driving demand for vehicle light control.
进一步的,通过检测与所述光线强度对应的电压信号是否位于预设范围,判定光线传感器是否存在错误。当所述光线传感器出现错误时,由于此时车辆可能正行驶在路面情况较为昏暗的环境下,因此执行开启车辆近光灯的操作以保证行车安全。Further, by detecting whether the voltage signal corresponding to the light intensity is within a preset range, it is determined whether there is an error in the light sensor. When an error occurs in the light sensor, since the vehicle may be driving in a relatively dark environment on the road surface at this time, the operation of turning on the low beam headlights of the vehicle is performed to ensure driving safety.
进一步的,通过设置所述保持时间,在只有当车辆的外界光线强度在一定时间内处于较稳定的范围内时,才切换到对应的车灯模式,可以有效地避免由于光线强度的突变引起的闪烁现象,提高用户体验和车辆部件的使用寿命。Further, by setting the holding time, only when the external light intensity of the vehicle is within a relatively stable range within a certain period of time, can the vehicle switch to the corresponding vehicle light mode, which can effectively avoid the sudden change of light intensity. Flicker phenomenon, improving user experience and longevity of vehicle components.
附图说明Description of drawings
图1是本发明实施例的一种车灯控制方法的流程图;FIG. 1 is a flow chart of a method for controlling a vehicle light according to an embodiment of the present invention;
图2是本发明实施例中光线强度与输出电压之间预设的对应关系;FIG. 2 is a preset corresponding relationship between light intensity and output voltage in an embodiment of the present invention;
图3是本发明实施例的一种车灯控制方法的流程图;Fig. 3 is a flow chart of a vehicle light control method according to an embodiment of the present invention;
图4是本发明实施例的一种车灯控制装置的结构示意图。Fig. 4 is a schematic structural diagram of a vehicle light control device according to an embodiment of the present invention.
具体实施方式detailed description
现代车辆的灯光自动控制功能可以方便地自动实现对近光灯的开关控制,免除了用户频繁的操作近光开关,因此提高了驾驶的便捷性和舒适性。然而,由于汽车工况比较复杂,在不同的路况,或者在不同的地域,对于汽车灯光自动控制的要求都不同。然而,现有的车辆的灯光自动控制系统存在对所处工况环境反应慢、用户体验差等问题,因此无法满足实际的应用需要。例如,通过当前系统时间进行车灯的开关控制,就不能适用于不同的地区。同时灯光控制系统的打开和关闭又具有很强的主观性,不同的用户对于何时打开灯光何时关闭灯光又有自己不同的操作习惯和要求。这就要求车辆的灯光自动控制系统能够快速准确的自动打开或者关闭灯光同时兼顾不同的行驶工况以及不同用户的特殊需求。The automatic light control function of modern vehicles can conveniently and automatically realize the switch control of the low beam headlights, which saves the user from frequently operating the low beam switch, thus improving the convenience and comfort of driving. However, due to the complex working conditions of automobiles, the requirements for automatic control of automobile lights are different in different road conditions or in different regions. However, the existing automatic lighting control system of vehicles has problems such as slow response to the working environment and poor user experience, so it cannot meet the actual application needs. For example, the on/off control of the car lights through the current system time cannot be applied to different regions. At the same time, the opening and closing of the lighting control system is highly subjective, and different users have their own different operating habits and requirements for when to turn on the light and when to turn off the light. This requires the vehicle's automatic lighting control system to be able to automatically turn on or off the lights quickly and accurately while taking into account different driving conditions and the special needs of different users.
本发明实施例通过检测光线强度,并获取其对应的车灯模式,可以根据车辆行驶中外部的光线条件,选择打开或关闭车灯,因此满足了车辆的实际行驶工况下的操作需求。同时,通过比较当前车辆的车灯模式以及待切换的车灯模式,可以获取两者之间可以由用户设定的转换时间,因此兼顾了用户的操作习惯。In the embodiment of the present invention, by detecting the light intensity and obtaining the corresponding vehicle light mode, the vehicle light can be turned on or off according to the external light conditions while the vehicle is running, thus meeting the operating requirements of the vehicle under actual driving conditions. At the same time, by comparing the current vehicle light mode and the vehicle light mode to be switched, the switching time between the two can be obtained, which can be set by the user, thus taking into account the user's operating habits.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明实施例提供了一种车灯控制方法。参照图1,所述车灯控制方法可以包括如下步骤:An embodiment of the present invention provides a method for controlling a vehicle light. Referring to FIG. 1, the vehicle light control method may include the following steps:
步骤S101,检测车外的光线强度。Step S101, detecting the light intensity outside the vehicle.
在具体实施中,可以通过光线传感器检测车外的光线强度。所述光线传感器通过采样和模数转换,将检测到的光线强度的数值转换为与之相对应的电压信号,不同的电压信号表征不同的光线强度。In a specific implementation, the light intensity outside the vehicle may be detected by a light sensor. The light sensor converts the value of the detected light intensity into a corresponding voltage signal through sampling and analog-to-digital conversion, and different voltage signals represent different light intensities.
在上述的具体实施中,为了消除所述光线传感器的个体差异,使不同的光线传感器在相同的车外光线强度下,输出的电压信号相同,可以根据预设的光线强度与输出电压之间标准的对应关系,对所述光线传感器进行检测和校正。例如,如图2所示为所述标准的光线强度与输出电压的对应关系:y=kx+b,其中,k为图2所示曲线的斜率,b为图示曲线与y轴的交点。通过采样测量在不同标准光源下,所述光线传感器的电压输出值,并将其与图2所示曲线进行拟合,即可得到参数k,b,从而使所述光线传感器在不同光线强度下的电压输出值与图2所示曲线相同,消除光线传感器的个体差异。In the above specific implementation, in order to eliminate the individual differences of the light sensors, so that different light sensors output the same voltage signal under the same light intensity outside the vehicle, it can be based on the standard between the preset light intensity and the output voltage. The corresponding relationship of the light sensor is detected and corrected. For example, as shown in FIG. 2 is the corresponding relationship between the standard light intensity and output voltage: y=kx+b, where k is the slope of the curve shown in FIG. 2, and b is the intersection point of the graph and the y-axis. By sampling and measuring the voltage output value of the light sensor under different standard light sources, and fitting it with the curve shown in Figure 2, the parameters k and b can be obtained, so that the light sensor can operate under different light intensities The voltage output value is the same as the curve shown in Figure 2, eliminating individual differences in light sensors.
步骤S102,获取与所述光线强度对应的预设区间。Step S102, acquiring a preset interval corresponding to the light intensity.
在具体实施中,可以是将所述光线传感器输出的电压信号划分为对应多个所述预设区间,进而通过判定所述电压信号所对应的预设区间得到光线强度所对应的预设区间。In a specific implementation, the voltage signal output by the light sensor may be divided into a plurality of corresponding preset intervals, and then the preset interval corresponding to the light intensity may be obtained by determining the preset interval corresponding to the voltage signal.
在上述的具体实施中,当所述电压信号位于所述预设范围外时,此时可以判定光线传感器错误。当所述光线传感器出现错误时,由于此时车辆可能正行驶在路面情况较为昏暗的环境下,因此执行开启车辆近光灯的操作以保证行车安全。当所述电压信号位于所述预设范围内时,执行根据所述电压信号,判断所述光线强度所对应的预设区间的操作。In the above specific implementation, when the voltage signal is outside the preset range, it may be determined that the light sensor is faulty. When an error occurs in the light sensor, since the vehicle may be driving in a relatively dark environment on the road surface at this time, the operation of turning on the low beam headlights of the vehicle is performed to ensure driving safety. When the voltage signal is within the preset range, an operation of determining a preset interval corresponding to the light intensity according to the voltage signal is performed.
步骤S103,获取与所述预设区间对应的车灯模式。Step S103, acquiring the vehicle light mode corresponding to the preset interval.
在具体实施中,上述的车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。例如,所述车灯模式可以包括四种:明亮模式、白天模式、夜间模式以及黑暗模式。其中,在明亮模式和白天模式下,车辆的近光灯关闭,在夜间模式和黑暗模式下,车辆的近光灯打开。In a specific implementation, the above-mentioned vehicle light modes are related to the switch state of the low beam light, and the switching time between different vehicle light modes is different. For example, the car light modes may include four types: bright mode, day mode, night mode and dark mode. Among them, in the bright mode and the day mode, the low beam of the vehicle is turned off, and in the night mode and the dark mode, the low beam of the vehicle is turned on.
如表1所示,为上述四种车灯模式所对应的光线强度:As shown in Table 1, the light intensity corresponding to the above four car light modes:
表1Table 1
其中,C为当前检测到的光线强度,C1、C2、C3以及C4为预设的光线强度阈值。Wherein, C is the currently detected light intensity, and C1, C2, C3, and C4 are preset light intensity thresholds.
如表2所示,为上述四种车灯模式相互之间的切换时间:As shown in Table 2, it is the switching time between the above four car light modes:
表2Table 2
其中,t1、t2以及t3为预设的切换时间。Wherein, t1, t2 and t3 are preset switching times.
在上述的具体实施中,上述四种车灯模式所对应的光线强度阈值C1、C2、C3以及C4以及相互之间的切换时间t1、t2以及t3可以由用户通过相应的终端控制设备自定义设置,以满足用户的操作习惯和实际应用需求。In the above specific implementation, the light intensity thresholds C1, C2, C3, and C4 corresponding to the above four car light modes and the switching times t1, t2, and t3 between them can be customized by the user through the corresponding terminal control device. , to meet the user's operating habits and practical application needs.
可以理解的是,所述车灯模式可以包括其他数量,其所对应的光线强度的范围划分以及相互之间的切换时间也可以根据实际应用的需要另行设定。本具体实施中的四种车灯模式仅仅只是一种示例,用以说明本实施例的设计思想,其并不限定本发明实施例的保护范围。It can be understood that the vehicle light modes may include other numbers, and the range division of the corresponding light intensities and the switching time between them may also be set separately according to the needs of practical applications. The four car light modes in this specific implementation are just an example, which is used to illustrate the design idea of this embodiment, and it does not limit the protection scope of this embodiment of the present invention.
步骤S104,获取切换到与所述光线强度对应的车灯模式所对应的切换时间。Step S104, acquiring the switching time corresponding to switching to the vehicle light mode corresponding to the light intensity.
步骤S105,在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式。Step S105, after the switching time elapses, switch the light mode of the vehicle light to the vehicle light mode corresponding to the preset interval corresponding to the light intensity.
采用上述的车灯控制方法,通过检测车外的光线强度判断车辆的行驶环境,更符合车辆实际行驶工况的需求。同时通过设置对应不同光线强度的车灯模式,以及在不同模式下车灯开启或关闭的切换时间不同,使得车辆在外部环境发生变化时,近光灯开关的灵敏度不同。由于所述切换时间可以由用户自定义设置,因此可以兼顾用户的操作习惯和使用需求。Using the above-mentioned vehicle light control method, the driving environment of the vehicle is judged by detecting the light intensity outside the vehicle, which is more in line with the requirements of the actual driving conditions of the vehicle. At the same time, by setting the light modes corresponding to different light intensities, and the switching time of turning on or off the lights in different modes is different, so that when the external environment of the vehicle changes, the sensitivity of the low beam switch is different. Since the switching time can be customized by the user, it can take into account the user's operating habits and usage requirements.
本发明实施例还公开了另一种车灯控制方法。如图3所示,所述车灯控制方法可以包括如下步骤:The embodiment of the invention also discloses another vehicle light control method. As shown in Figure 3, the vehicle light control method may include the following steps:
步骤S201,检测车外的光线强度。Step S201, detecting the light intensity outside the vehicle.
在具体实施中,可以通过光线传感器检测车外的光线强度。所述光线传感器通过采样和模数转换,将检测到的光线强度的数值转换为与之相对应的电压信号,不同的电压信号表征不同的光线强度。In a specific implementation, the light intensity outside the vehicle may be detected by a light sensor. The light sensor converts the value of the detected light intensity into a corresponding voltage signal through sampling and analog-to-digital conversion, and different voltage signals represent different light intensities.
在上述的具体实施中,为了消除所述光线传感器的个体差异,使不同的光线传感器在相同的车外光线强度下,输出的电压信号相同,可以根据预设的光线强度与输出电压之间标准的对应关系,对所述光线传感器进行检测和校正。例如,如图2所示为所述标准的光线强度与输出电压的对应关系:y=kx+b,其中,k为图2所示曲线的斜率,b为图示曲线与y轴的交点。通过采样测量在不同标准光源下,所述光线传感器的电压输出值,并将其与图2所示曲线进行拟合,即可得到参数k,b,从而使所述光线传感器在不同光线强度下的电压输出值与图2所示曲线相同,消除光线传感器的个体差异。In the above specific implementation, in order to eliminate the individual differences of the light sensors, so that different light sensors output the same voltage signal under the same light intensity outside the vehicle, it can be based on the standard between the preset light intensity and the output voltage. The corresponding relationship of the light sensor is detected and corrected. For example, as shown in FIG. 2 is the corresponding relationship between the standard light intensity and output voltage: y=kx+b, where k is the slope of the curve shown in FIG. 2, and b is the intersection point of the graph and the y-axis. By sampling and measuring the voltage output value of the light sensor under different standard light sources, and fitting it with the curve shown in Figure 2, the parameters k and b can be obtained, so that the light sensor can operate under different light intensities The voltage output value is the same as the curve shown in Figure 2, eliminating individual differences in light sensors.
步骤S202,获取与所述光线强度对应的预设区间。Step S202, acquiring a preset interval corresponding to the light intensity.
在具体实施中,可以是将所述光线传感器输出的电压信号划分为对应多个所述预设区间,进而通过判定所述电压信号所对应的预设区间得到光线强度所对应的预设区间。In a specific implementation, the voltage signal output by the light sensor may be divided into a plurality of corresponding preset intervals, and then the preset interval corresponding to the light intensity may be obtained by determining the preset interval corresponding to the voltage signal.
在上述的具体实施中,当所述电压信号位于所述预设范围外时,此时可以判定光线传感器错误。当所述光线传感器出现错误时,由于此时车辆可能正行驶在路面情况较为昏暗的环境下,因此执行开启车辆近光灯的操作以保证行车安全。当所述电压信号位于所述预设范围内时,执行根据所述电压信号,判断所述光线强度所对应的预设区间的操作。In the above specific implementation, when the voltage signal is outside the preset range, it may be determined that the light sensor is faulty. When an error occurs in the light sensor, since the vehicle may be driving in a relatively dark environment on the road surface at this time, the operation of turning on the low beam headlights of the vehicle is performed to ensure driving safety. When the voltage signal is within the preset range, an operation of determining a preset interval corresponding to the light intensity according to the voltage signal is performed.
步骤S203,获取与所述预设区间对应的车灯模式。Step S203, acquiring the vehicle light mode corresponding to the preset interval.
在具体实施中,上述的车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。例如,所述车灯模式可以包括四种:明亮模式、白天模式、夜间模式以及黑暗模式。其中,在明亮模式和白天模式下,车辆的近光灯关闭,在夜间模式和黑暗模式下,车辆的近光灯打开。In a specific implementation, the above-mentioned vehicle light modes are related to the switch state of the low beam light, and the switching time between different vehicle light modes is different. For example, the car light modes may include four types: bright mode, day mode, night mode and dark mode. Among them, in the bright mode and the day mode, the low beam of the vehicle is turned off, and in the night mode and the dark mode, the low beam of the vehicle is turned on.
如上文的表1和表2所示,分别为上述四种车灯模式所对应的光线强度,以及上述四种车灯模式相互之间的切换时间:其中,C为当前检测到的光线强度,C1、C2、C3以及C4为预设的光线强度阈值;t1、t2以及t3为预设的切换时间。As shown in Table 1 and Table 2 above, they are the light intensities corresponding to the above four car light modes, and the switching time between the above four car light modes: where, C is the currently detected light intensity, C1, C2, C3 and C4 are preset light intensity thresholds; t1, t2 and t3 are preset switching times.
在上述的具体实施中,上述四种车灯模式所对应的光线强度阈值C1、C2、C3以及C4以及相互之间的切换时间t1、t2以及t3可以由用户通过相应的终端控制设备自定义设置,以满足用户的操作习惯和实际应用需求。In the above specific implementation, the light intensity thresholds C1, C2, C3, and C4 corresponding to the above four car light modes and the switching times t1, t2, and t3 between them can be customized by the user through the corresponding terminal control device. , to meet the user's operating habits and practical application needs.
可以理解的是,所述车灯模式可以包括其他数量,其所对应的光线强度的范围划分以及相互之间的切换时间也可以根据实际应用的需要另行设定。本具体实施中的四种车灯模式仅仅只是一种示例,用以说明本实施例的设计思想,其并不限定本发明实施例的保护范围。It can be understood that the vehicle light modes may include other numbers, and the range division of the corresponding light intensities and the switching time between them may also be set separately according to the needs of practical applications. The four car light modes in this specific implementation are just an example, which is used to illustrate the design idea of this embodiment, and it does not limit the protection scope of this embodiment of the present invention.
步骤S204,判断所述光线强度位于所述对应的预设区间的保持时间是否超过预设保持时间。Step S204, judging whether the holding time for which the light intensity is in the corresponding preset interval exceeds a preset holding time.
如表3所示,为所述车灯模式与所述保持时间的对应关系:As shown in Table 3, it is the corresponding relationship between the lamp mode and the holding time:
表3table 3
其中,T1、T2、T3以及T4为预设的保持时间。在具体实施中,所述预设的保持时间可以由使用者通过相应的设备自定义设置。Wherein, T1, T2, T3 and T4 are preset holding times. In a specific implementation, the preset holding time can be customized by the user through a corresponding device.
当所述光线强度位于所述对应的预设区间的保持时间超过上述的预设保持时间时,执行步骤S205;当所述光线强度位于所述对应的预设区间的保持时间未超过预设保持时间时,返回所述步骤S201,重新执行检测车外的光线强度。When the holding time of the light intensity in the corresponding preset interval exceeds the above-mentioned preset holding time, perform step S205; when the holding time of the light intensity in the corresponding preset interval does not exceed the preset holding time time, return to the step S201, and re-execute the detection of the light intensity outside the vehicle.
在车辆实际的行驶过程中,光线强度可能存在突变。例如,在白天,车辆驶入一段隧道或者驶入一片树林,此时车辆可以通过光线传感器感应到外界光线强度的突然有较大程度地变暗,并根据光线强度得到对应车灯模式而打开车辆的近光灯。然而这段隧道或者树林的路程有时可能非常短,因此在经过这些路段后,车辆又感应到外界的光线强度突然变强,又需要通过对应的车灯模式关闭近光灯。此时近光灯频繁的开关所引起的闪烁现象会影响驾乘人员的行车体验,也会影响车灯总成中部件的使用寿命。在具体实施中,通过设置所述保持时间,只有当车辆的外界光线强度在一定时间内处于较稳定的范围内时,才切换到对应的车灯模式,可以有效地避免这种问题,提高用户体验和车辆部件的使用寿命。During the actual driving process of the vehicle, there may be sudden changes in the light intensity. For example, in the daytime, when the vehicle enters a tunnel or enters a forest, the vehicle can sense the sudden dimming of the external light intensity through the light sensor, and obtain the corresponding light mode according to the light intensity to turn on the vehicle. low beams. However, the distance of this tunnel or woods may be very short sometimes, so after passing through these road sections, the vehicle senses that the light intensity of the outside world suddenly becomes stronger, and it needs to turn off the low beam headlights through the corresponding car light mode. At this time, the flicker phenomenon caused by frequent switching of the low beam will affect the driving experience of the driver and passengers, and will also affect the service life of the components in the car light assembly. In the specific implementation, by setting the holding time, only when the external light intensity of the vehicle is within a relatively stable range within a certain period of time, it will switch to the corresponding car light mode, which can effectively avoid this problem and improve user performance. Experience and service life of vehicle components.
步骤S205,获取切换到与所述光线强度对应的车灯模式所对应的切换时间。Step S205, acquiring the switching time corresponding to switching to the vehicle light mode corresponding to the light intensity.
在具体实施中,上述的车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。例如,车灯模式A和车灯模式B定义了近光灯的开关状态为关,而车灯模式B定义了近光灯的开光状态为开,并且车灯模式A、车灯模式B与车灯模式C相互之间的切换时间各不相同,因此车辆可以判定对应当前车外实际光线强度的车灯模式,从而根据当前车灯模式与所述对应当前车外实际光线强度的车灯模式之间的切换时间,做相应的车灯模式之间的切换。In a specific implementation, the above-mentioned vehicle light modes are related to the switch state of the low beam light, and the switching time between different vehicle light modes is different. For example, car light mode A and car light mode B define the switch state of the low beam headlight as off, and car light mode B defines the light state of the low beam headlight as on, and car light mode A, car light mode B and car light mode The switching time between the lamp modes C is different, so the vehicle can determine the lamp mode corresponding to the current actual light intensity outside the vehicle, and then according to the difference between the current lamp mode and the lamp mode corresponding to the current actual light intensity outside the vehicle Switching time between them, do the switching between the corresponding light modes.
步骤S206,在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式。Step S206, after the switching time elapses, switch the light mode of the vehicle light to the vehicle light mode corresponding to the preset interval corresponding to the light intensity.
本发明实施例还公开了一种车灯控制装置。如图4所示,所述车灯控制装置40可以包括:The embodiment of the invention also discloses a vehicle light control device. As shown in FIG. 4, the vehicle light control device 40 may include:
检测单元401,用于检测车外的光线强度;A detection unit 401, configured to detect the light intensity outside the vehicle;
第一获取单元402,用于获取与所述光线强度对应的预设区间;A first acquiring unit 402, configured to acquire a preset interval corresponding to the light intensity;
第二获取单元403,用于获取与所述预设区间对应的车灯模式;The second acquiring unit 403 is configured to acquire the vehicle light mode corresponding to the preset interval;
第三获取单元404,用于获取切换到与所述光线强度对应的车灯模式所对应的切换时间;The third acquiring unit 404 is configured to acquire the switching time corresponding to switching to the vehicle light mode corresponding to the light intensity;
切换单元405,用于在经过所述切换时间后,将车灯的车灯模式切换为与所述光线强度对应的预设区间所对应的车灯模式;A switching unit 405, configured to switch the light mode of the vehicle light to the vehicle light mode corresponding to the preset interval corresponding to the light intensity after the switching time elapses;
所述车灯模式与近光灯的开关状态相关,且不同的车灯模式之间的切换时间不同。The vehicle light mode is related to the switching state of the low beam light, and the switching time between different vehicle light modes is different.
在具体实施中,所述车灯控制装置还可以包括:In a specific implementation, the vehicle light control device may also include:
判断单元406,用于判断所述光线强度位于所述对应的预设区间的保持时间是否超过预设保持时间;当所述光线强度位于所述对应的预设区间的保持时间超过预设保持时间时,通过所述切换单元405执行所述获取切换到与所述光线强度对应的车灯模式所对应的切换时间。A judging unit 406, configured to judge whether the holding time of the light intensity in the corresponding preset interval exceeds the preset holding time; when the holding time of the light intensity in the corresponding preset interval exceeds the preset holding time , the acquisition of the switching time corresponding to switching to the vehicle light mode corresponding to the light intensity is performed by the switching unit 405 .
在具体实施中,所述第一获取单元402可以包括:In a specific implementation, the first acquiring unit 402 may include:
转换子单元,用于对所述光线强度进行模数转换,输出与所述光线强度对应的电压信号;A conversion subunit, configured to perform analog-to-digital conversion on the light intensity, and output a voltage signal corresponding to the light intensity;
第一判断子单元,用于根据所述电压信号,判断所述光线强度所对应的预设区间。The first judging subunit is configured to judge a preset interval corresponding to the light intensity according to the voltage signal.
在具体实施中,所述车灯控制装置还可以包括:In a specific implementation, the vehicle light control device may also include:
第二判断子单元,用于判断所述电压信号是否落在预设范围内;The second judging subunit is used to judge whether the voltage signal falls within a preset range;
当所述电压信号位于所述预设范围外时,判定光线传感器错误,并开启车辆近光灯;When the voltage signal is outside the preset range, it is determined that the light sensor is wrong, and the low beam headlights of the vehicle are turned on;
当所述电压信号位于所述预设范围内时,执行所述判断所述光线强度所对应的预设区间的操作。When the voltage signal is within the preset range, the operation of judging the preset interval corresponding to the light intensity is performed.
在具体实施中,所述车灯模式可以包括:明亮模式、白天模式、夜间模式以及黑暗模式;当将所述车灯模式切换为明亮模式或白天模式时,关闭近光灯;当将所述车灯模式切换为夜间模式或黑暗模式时,打开近光灯。In a specific implementation, the car light mode may include: bright mode, day mode, night mode and dark mode; when the car light mode is switched to bright mode or day mode, the low beam is turned off; when the Turn on low beam when the light mode is switched to night mode or dark mode.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM , RAM, disk or CD, etc.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, so the protection scope of the present invention should be based on the scope defined in the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510435552.XA CN106696814A (en) | 2015-07-22 | 2015-07-22 | Car light control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510435552.XA CN106696814A (en) | 2015-07-22 | 2015-07-22 | Car light control method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106696814A true CN106696814A (en) | 2017-05-24 |
Family
ID=58894601
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510435552.XA Pending CN106696814A (en) | 2015-07-22 | 2015-07-22 | Car light control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106696814A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109819563A (en) * | 2019-01-24 | 2019-05-28 | 吉利汽车研究院(宁波)有限公司 | A kind of vehicle light control method, device and equipment |
| CN114379450A (en) * | 2020-10-06 | 2022-04-22 | 英飞凌科技股份有限公司 | Redundancy of light function control when changing pixelated car headlight intensity |
| CN114435233A (en) * | 2022-02-21 | 2022-05-06 | 重庆长安汽车股份有限公司 | Vehicle headlamp user-defined control system and user-defined method |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1404448A (en) * | 2000-03-23 | 2003-03-19 | 罗伯特·博施有限公司 | Device for automatically switching Lighting installations of motor vehicles |
| CN1415505A (en) * | 2001-09-04 | 2003-05-07 | 中华研升科技股份有限公司 | Photoresponse control device and method for controlling vehicle headlights and sunshades |
| CN1431112A (en) * | 2003-01-27 | 2003-07-23 | 中华研升科技股份有限公司 | Lighting system applied to outdoor vehicle and control method thereof |
| JP2007022127A (en) * | 2005-07-12 | 2007-02-01 | Koito Mfg Co Ltd | Lighting control device of lighting fixture for vehicle |
| US20130335984A1 (en) * | 2012-06-15 | 2013-12-19 | Robert Bosch Gmbh | Method and Device for Operating a Headlamp for a Motor Vehicle |
| WO2015020207A1 (en) * | 2013-08-09 | 2015-02-12 | 矢崎総業株式会社 | Lamp unit control device |
-
2015
- 2015-07-22 CN CN201510435552.XA patent/CN106696814A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1404448A (en) * | 2000-03-23 | 2003-03-19 | 罗伯特·博施有限公司 | Device for automatically switching Lighting installations of motor vehicles |
| CN1415505A (en) * | 2001-09-04 | 2003-05-07 | 中华研升科技股份有限公司 | Photoresponse control device and method for controlling vehicle headlights and sunshades |
| CN1431112A (en) * | 2003-01-27 | 2003-07-23 | 中华研升科技股份有限公司 | Lighting system applied to outdoor vehicle and control method thereof |
| JP2007022127A (en) * | 2005-07-12 | 2007-02-01 | Koito Mfg Co Ltd | Lighting control device of lighting fixture for vehicle |
| US20130335984A1 (en) * | 2012-06-15 | 2013-12-19 | Robert Bosch Gmbh | Method and Device for Operating a Headlamp for a Motor Vehicle |
| WO2015020207A1 (en) * | 2013-08-09 | 2015-02-12 | 矢崎総業株式会社 | Lamp unit control device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109819563A (en) * | 2019-01-24 | 2019-05-28 | 吉利汽车研究院(宁波)有限公司 | A kind of vehicle light control method, device and equipment |
| CN109819563B (en) * | 2019-01-24 | 2021-10-26 | 吉利汽车研究院(宁波)有限公司 | Vehicle lamp control method, device and equipment |
| CN114379450A (en) * | 2020-10-06 | 2022-04-22 | 英飞凌科技股份有限公司 | Redundancy of light function control when changing pixelated car headlight intensity |
| CN114435233A (en) * | 2022-02-21 | 2022-05-06 | 重庆长安汽车股份有限公司 | Vehicle headlamp user-defined control system and user-defined method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109819563B (en) | Vehicle lamp control method, device and equipment | |
| CN103895564B (en) | Car light distance-light automatic exchanger and method thereof during nighttime meeting | |
| US8310357B2 (en) | After market sequential turn signal | |
| CN106696814A (en) | Car light control method and device | |
| RU2016116259A (en) | POWER MANAGEMENT FOR VEHICLE SAFETY | |
| WO2017190111A1 (en) | Controlling dimming of mirrors or displays using dual-function lighting | |
| CN102848968A (en) | Control device and control method for vehicular high-beam and low-beam lights | |
| CN105459884B (en) | A kind of automobile lamp intelligent controlling device | |
| GB2532742A (en) | Apparatus and method for controlling a vehicle system | |
| CN103381769B (en) | A kind of control method of automatically shutting down automobile big lamp and device | |
| CN106409269A (en) | Fully-automatic adjustment system and method for display effect of automobile multimedia display screen | |
| JP2012171393A (en) | Vehicle light control device | |
| CN201347021Y (en) | Car high-low beam light automatic switching device | |
| JP7052216B2 (en) | Light sensor | |
| EP2103484A3 (en) | Left/right turn indicator for vehicle | |
| CN206579543U (en) | Dazzle light automatic monitoring device | |
| CN108040405B (en) | Automobile lamp light control method and device | |
| JP4490293B2 (en) | In-vehicle power saving device | |
| CN204279215U (en) | A kind of car bulb adaptive controller based on CAN | |
| CN106658836A (en) | Single chip microcomputer control-based flowing steering lamp system | |
| KR101360071B1 (en) | Auto light system for vehicle and controlling method thereof | |
| CN116872831A (en) | A brake light failure compensation control method and system | |
| CN202782860U (en) | On-board intelligent light control device based on CAN bus technique | |
| KR101406560B1 (en) | Method for controlling of rear lamp | |
| CN116572824B (en) | Vehicle lighting control methods, devices, vehicles, and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |