CN113071405B - Daytime running lamp drive control method and device, computer equipment and storage medium - Google Patents
Daytime running lamp drive control method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113071405B CN113071405B CN202110340850.6A CN202110340850A CN113071405B CN 113071405 B CN113071405 B CN 113071405B CN 202110340850 A CN202110340850 A CN 202110340850A CN 113071405 B CN113071405 B CN 113071405B
- Authority
- CN
- China
- Prior art keywords
- driving
- current
- vehicle
- daytime running
- threshold
- 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
- 238000000034 method Methods 0.000 title abstract description 37
- 238000012544 monitoring process Methods 0.000 abstract description 17
- 238000004590 computer program Methods 0.000 description 22
- 238000010586 diagram Methods 0.000 description 6
- 230000001052 transient effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000001939 inductive effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q1/00—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor
- B60Q1/02—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to illuminate the way ahead or to illuminate other areas of way or environments
- B60Q1/04—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to illuminate the way ahead or to illuminate other areas of way or environments the devices being headlights
- B60Q1/06—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to illuminate the way ahead or to illuminate other areas of way or environments the devices being headlights adjustable, e.g. remotely-controlled from inside vehicle
- B60Q1/08—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to illuminate the way ahead or to illuminate other areas of way or environments the devices being headlights adjustable, e.g. remotely-controlled from inside vehicle automatically
- B60Q1/085—Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to illuminate the way ahead or to illuminate other areas of way or environments the devices being headlights adjustable, e.g. remotely-controlled from inside vehicle automatically due to special conditions, e.g. adverse weather, type of road, badly illuminated road signs or potential dangers
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
Abstract
The application relates to a daytime running lamp driving control method and device, computer equipment and a storage medium. The method is applied to a vehicle-mounted controller and comprises the following steps: obtaining the current driving times; if the current driving times are not more than the driving times threshold, outputting driving voltage; monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold; and if the driving current is not greater than the driving current threshold value, keeping electrifying and lighting the daytime running lamp. By setting the driving frequency threshold and the driving current threshold, the driving current of the vehicle-mounted controller chip is controlled within a certain range, the phenomenon that the driving current of the vehicle-mounted controller is too large is avoided, the requirement on the vehicle-mounted controller chip is reduced, and therefore the cost of the vehicle-mounted controller is reduced.
Description
Technical Field
The present application relates to the field of electronic and electrical technologies, and in particular, to a method and an apparatus for driving and controlling a daytime running lamp, a computer device, and a storage medium.
Background
In recent years, related indexes related to daytime running lamps are set by many countries to ensure that the daytime running lamps produced and installed can really play a role in guaranteeing safety, and along with popularization of the daytime running lamps, the daytime running lamps are applied to more and more vehicles. The daytime running light has the function of enabling the vehicle to be more easily identified, and particularly in the case of low visibility, such as rainy fog or dusk, the vehicle which lights the daytime running light is more easily found by traffic participants (vehicles and pedestrians), so that the driving safety of the vehicle is improved.
In the prior art, in the process that a controller drives a daytime running lamp to be turned on, an inductive load is integrated in the lamp, so that a large transient current is generated when the daytime running lamp is turned on, and the transient working current can be changed according to different environmental temperatures and working voltages; under the conditions of room temperature and 28V working voltage, the maximum value of the transient working current can reach 60-70 times of the normal working current. To meet this situation, the driver chip capability of the controller needs to be greatly reserved, which inevitably raises the component cost.
Disclosure of Invention
In view of the above, it is desirable to provide a daytime running light drive control method, apparatus, computer device, and storage medium that can reduce the cost of an onboard controller.
A daytime running lamp driving control method is applied to a vehicle-mounted controller and comprises the following steps:
acquiring the current driving times;
if the current driving times are not more than the driving times threshold, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
if the driving current is not larger than the driving current threshold, the power is kept on, and the daytime running lamp is lightened.
In one embodiment, the method further comprises:
if the current driving times are larger than the driving time threshold, stopping the current driving;
and sending the fault information to corresponding vehicle-mounted equipment.
In one embodiment, before acquiring the current driving times, the method further includes:
and clearing the current driving times.
In one embodiment, acquiring the current driving times includes:
adding 1 to the current driving times;
and acquiring the driving times after adding 1 as new current driving times.
In one embodiment, the method further comprises:
and if the current driving current is larger than the driving current threshold, returning to the step of adding 1 to the current driving times.
In one embodiment, before acquiring the current driving times, the method further includes:
collecting vehicle state information;
and if the vehicle state information is the preset vehicle state, invoking daytime running lamp driving control.
In one embodiment, the preset vehicle state includes at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
A daytime running light drive control device, the device comprising:
the logic starting module is used for acquiring the current driving times;
the frequency counting module is used for outputting driving voltage if the current driving frequency is not greater than the driving frequency threshold;
the current monitoring module is used for monitoring the driving current corresponding to the driving voltage, acquiring the driving current and comparing the driving current with a driving current threshold value;
and the vehicle lamp driving module is used for keeping electrifying and lighting the daytime vehicle lamp if the driving current is not greater than the driving current threshold.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring the current driving times;
if the current driving times are not more than the driving times threshold, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
if the driving current is not larger than the driving current threshold, the power is kept on, and the daytime running lamp is lightened.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring the current driving times;
if the current driving times are not more than the driving times threshold, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
if the driving current is not larger than the driving current threshold, the power is kept on, and the daytime running lamp is lightened.
The daytime running lamp driving control method is applied to an onboard controller, and the current driving times are obtained; if the current driving times are not more than the driving times threshold, outputting driving voltage; monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold; and if the driving current is not greater than the driving current threshold value, keeping electrifying and lighting the daytime running lamp. By setting the driving frequency threshold and the driving current threshold, the driving current of the vehicle-mounted controller chip is controlled within a certain range, the overlarge driving current of the vehicle-mounted controller is avoided, the requirement on the vehicle-mounted controller chip is lowered, and therefore the cost of the vehicle-mounted controller is lowered.
Drawings
FIG. 1 is a schematic flow chart illustrating a daytime running light drive control method according to an embodiment;
FIG. 2 is a schematic flow chart of a daytime running light drive control method in another embodiment;
FIG. 3 is a logic flow diagram of an embodiment of a daytime running light drive control method applied to a two-sided daytime running light;
FIG. 4 is a schematic structural diagram of a daytime running light driving control method applied to two side daytime running lights in one embodiment;
FIG. 5 is a block diagram showing a driving control apparatus for a daytime running light in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a daytime running light driving control method is provided, and this embodiment is exemplified by applying the method to an onboard controller, and it is understood that the method may also be applied to a daytime running light control circuit, and may also be applied to a vehicle body control system including the daytime running light control circuit. In this embodiment, the method includes the steps of:
and 102, acquiring the current driving times.
Specifically, when the vehicle is started, the vehicle-mounted controller selects whether to call the daytime running light drive control or not according to the current vehicle state information. After the daytime running lamp driving control is started to be called, the vehicle-mounted controller firstly clears the driving times, then starts to count the driving times, and adds 1 to the driving times to obtain the current driving times before the daytime running lamp is driven every time so as to count the current driving times of the daytime running lamp.
And step 104, outputting a driving voltage if the current driving frequency is not greater than the driving frequency threshold.
Specifically, a driving frequency threshold is preset in the vehicle-mounted controller, after the current driving frequency is obtained, the current driving frequency is compared with the driving frequency threshold, and if the current driving frequency is not greater than the driving frequency threshold, the vehicle-mounted controller outputs driving voltage to the daytime running lamp driving circuit; and if the current driving times are larger than the driving time threshold, stopping the current driving by the vehicle-mounted controller, and stopping the driving control of the daytime running lamp called at this time.
And 106, monitoring the driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold.
Specifically, a driving current threshold is preset in the vehicle-mounted controller, and the vehicle-mounted controller outputs driving voltage to the daytime running lamp driving circuit, monitors the current driving current of the daytime running lamp driving circuit, and compares the current driving current with the driving current threshold.
And step 108, if the driving current is not larger than the driving current threshold, keeping electrifying, and lighting the daytime running lamp.
Specifically, if the current driving current of the daytime running lamp driving circuit is not greater than the driving current threshold, the vehicle-mounted controller keeps outputting the driving voltage, and the daytime running lamp driving circuit keeps the current driving current to drive and light the daytime running lamp; if the current driving current of the daytime running lamp driving circuit is larger than the driving current threshold value, the driving current at the moment can cause that the transient current of an inductive load in the daytime running lamp is overlarge, and further influences a vehicle-mounted controller, the daytime running lamp driving circuit and other circuits, so that the vehicle-mounted processor stops outputting the driving voltage, interrupts the driving current of the daytime running lamp driving circuit, returns to execute the step of adding 1 to the current driving frequency, and drives once again.
In the daytime running lamp driving control method, the vehicle-mounted controller acquires the current driving times; if the current driving times are not more than the driving times threshold, outputting driving voltage; monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold; and if the driving current is not greater than the driving current threshold value, keeping electrifying and lighting the daytime running lamp. By setting the driving frequency threshold and the driving current threshold, the driving current of the vehicle-mounted controller chip is controlled within a certain range, the overlarge driving current of the vehicle-mounted controller is avoided, the requirement on the vehicle-mounted controller chip is lowered, and therefore the cost of the vehicle-mounted controller is lowered.
In an optional embodiment, if the current driving frequency is greater than the driving frequency threshold, the driving is stopped, and the fault information is sent to the corresponding vehicle-mounted device.
Specifically, if the current driving frequency is greater than the driving frequency threshold, the vehicle-mounted controller stops the driving, terminates the driving control of the daytime running lamp, and uploads the failure information of the daytime running lamp to equipment such as an instrument panel and a display screen of a cab for displaying. When the driving frequency is higher than a normal value, the driving current is higher than a driving current threshold value for many times when the daytime running lamp is tried to be driven every time, the driving current threshold value is a normal maximum current threshold value set according to an actual vehicle-mounted controller chip and a daytime running lamp driving circuit, the driving current is continuously higher than the driving current threshold value for many times, and faults such as short circuit and the like occur in the daytime running lamp driving circuit or a circuit in the daytime running lamp, so when the driving current is higher than the driving current threshold value for many times, the daytime running lamp is stopped to be continuously driven and fault reporting is performed in a mode of counting the driving frequency, and the vehicle-mounted controller chip, the daytime running lamp driving circuit and the like are protected.
In this embodiment, the current driving frequency and the driving frequency threshold are compared by the vehicle-mounted controller, and if the current driving frequency is greater than the driving frequency threshold, the current driving is stopped, and the fault information is sent to the corresponding vehicle-mounted device. The purpose of diagnosing the circuit fault according to the magnitude of the driving current can be achieved, and therefore the vehicle-mounted controller chip, the daytime running lamp driving circuit and the internal circuit of the daytime running lamp are protected.
In one embodiment, before acquiring the current driving times, the method further comprises: and clearing the current driving times. Acquiring the current driving times, including: adding 1 to the current driving times; and acquiring the driving times after adding 1 as new current driving times.
Specifically, when the vehicle performs a new working cycle, the vehicle-mounted controller determines whether to start the daytime running light drive control according to the current vehicle state. If the daytime running lamp driving control is started, the driving frequency is cleared firstly, then the first driving is started, the driving frequency is added with 1 to obtain the current driving frequency, and then the current driving frequency is compared with the driving frequency threshold. The working cycle refers to the working process of the vehicle from the starting of the engine to the flameout of the engine.
Optionally, the step of resetting the driving times may also be executed after the fault information is sent, the vehicle-mounted controller determines that the current driving times is greater than the driving time threshold, stops the current driving, terminates the driving control of the daytime running lamp, uploads the fault information of the daytime running lamp to an instrument panel, a display screen, or other devices of the cab for display, and resets the count of the current driving times.
In one embodiment, if the current driving current is greater than the driving current threshold, the step of adding 1 to the current driving times is returned to be executed.
Specifically, taking daytime running light driving control of one driving cycle as an example for explanation, when the driving frequency is 1, the driving frequency 1 is smaller than a driving frequency threshold (which can be set to 4), at this time, the onboard controller outputs a driving voltage to the monitoring daytime running light driving circuit, the current driving current is monitored to be 20A, the current driving current 20A is greater than a driving current threshold (which can be set to 10A), the step of adding 1 to the current driving frequency is returned to, the onboard controller adds 1 to the current driving frequency to obtain the driving frequency 2, then the driving frequency 2 and the driving frequency threshold 4 are compared again, the driving frequency 2 is smaller than the driving frequency threshold 4, the onboard controller outputs the driving voltage again, and the current driving current is monitored.
In an optional implementation manner, if the driving frequency is 4, the vehicle-mounted controller monitors that the current driving current is 9A, the current is kept on, the daytime running lamp is driven to be turned on, and the driving control of the daytime running lamp is terminated after the daytime running lamp is turned on; if the driving frequency is 4, the vehicle-mounted controller monitors that the current driving current is 22A, the step of adding 1 to the current driving frequency is returned, the vehicle-mounted controller adds 4 to the current driving frequency to obtain a driving frequency 5, at the moment, the driving frequency 5 is greater than a driving frequency threshold value 4, the vehicle-mounted controller stops the driving, the driving control of the daytime running lamp is stopped, and fault information is sent to corresponding vehicle-mounted equipment.
In this embodiment, the current driving current and the driving current threshold are compared by the vehicle-mounted controller, and if the current driving current is greater than the driving current threshold, the step of adding 1 to the current driving frequency is executed. The purpose of controlling and optimizing the driving current of the daytime running lamp can be achieved, and therefore the vehicle-mounted controller chip, the daytime running lamp driving circuit and the internal circuit of the daytime running lamp are protected.
In one embodiment, before acquiring the current driving times, the method further includes: and acquiring vehicle state information, and calling the daytime running lamp driving control if the vehicle state information is a preset vehicle state. The preset vehicle state includes at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
Specifically, each time the vehicle performs a new work cycle, the vehicle-mounted controller starts driving control of the daytime running light according to whether the current vehicle state information satisfies the preset vehicle state. The preset vehicle state specifically includes an ignition switch on, a position light switch off, a left and right turn light switch off, and a hazard alarm switch off, and the vehicle-mounted controller can turn on the daytime running light drive control as long as at least one of the preset vehicle states is satisfied. The working cycle refers to the working process of the vehicle from the starting of the engine to the flameout of the engine.
In one embodiment, as shown in fig. 2, a daytime running light driving control method is provided, where the method specifically includes:
step 202, the vehicle-mounted controller starts driving control of the daytime running lamp.
Specifically, when the current ignition switch of the vehicle is turned on, the position light switch is turned off, the left and right turn light switches are turned off, and the hazard alarm switch is turned off, the vehicle-mounted controller starts the daytime running light drive control.
And step 204, the vehicle-mounted controller performs drive frequency zero clearing.
Specifically, the vehicle-mounted controller clears the driving times.
In step 206, the vehicle-mounted controller obtains the current driving times.
Specifically, the driving times are counted, and before the daytime running lamp is driven each time, 1 is added to the driving times to obtain the current driving times, so that the current daytime running lamp is counted to be driven for the second time.
In step 208, the onboard controller compares the current drive times to a drive times threshold.
Specifically, a driving frequency threshold is preset in the vehicle-mounted controller, and the driving frequency threshold can be set according to needs, for example, 3 times, 5 times, and the like are not limited thereto. And after the current driving times are obtained, comparing the current driving times with a driving time threshold, and if the current driving times are not more than the driving time threshold, outputting a driving voltage to a daytime running lamp driving circuit by the vehicle-mounted controller. If the current driving frequency is larger than the driving frequency threshold value, the vehicle-mounted controller interrupts the current output driving and terminates the driving control of the driving lamp in the daytime.
Step 210, the onboard controller monitors the driving current and compares the driving current to a driving current threshold.
Specifically, a driving current threshold is preset in the vehicle-mounted controller, and the driving current threshold may be set according to needs, for example, 10A, 12A, etc. are not limited thereto. The vehicle-mounted controller outputs driving voltage to the daytime running lamp driving circuit, monitors the current driving current of the daytime running lamp driving circuit, and compares the current driving current with a driving current threshold value.
Further, if the current driving current of the daytime running lamp driving circuit is not larger than the driving current threshold, the vehicle-mounted controller keeps outputting the driving voltage, and the daytime running lamp driving circuit keeps the current driving current to drive the daytime running lamp at a high end, so that the daytime running lamp is lightened. If the current driving current of the daytime running lamp driving circuit is greater than the driving current threshold, the driving current at this time may cause an excessive transient current of the inductive load inside the daytime running lamp, and further affect the vehicle controller, the daytime running lamp driving circuit, and other circuits, so that the vehicle processor stops outputting the driving voltage, interrupts the high-end driving current of the daytime running lamp driving circuit, returns to step 206, and performs driving again.
In step 212, the onboard controller ends the daytime running light drive control.
Specifically, after the vehicle-mounted controller outputs a voltage to light the daytime running lamp, the driving control of the daytime running lamp is finished.
Further, in step 204, when the driving frequency is higher than the driving current threshold, it is described that the driving current is higher than the driving current threshold many times each time the daytime running lamp is attempted to be driven, and a fault such as a short circuit occurs in the daytime running lamp driving circuit or the circuit inside the daytime running lamp, the vehicle-mounted controller stops the current output driving, terminates the current daytime running lamp driving control, and performs fault reporting, thereby protecting the vehicle-mounted controller chip, the daytime running lamp driving circuit, the circuit inside the daytime running lamp, and the like.
In this embodiment, the vehicle-mounted controller starts driving control of the daytime running lamp, first performs drive frequency resetting, then obtains the current drive frequency, compares the current drive frequency with a drive frequency threshold, monitors the drive current, compares the drive current with the drive current threshold, and finally ends driving control of the daytime running lamp. By setting the driving frequency threshold and the driving current threshold, the driving current of the vehicle-mounted controller chip is controlled within a certain range, the phenomenon that the driving current of the vehicle-mounted controller is too large is avoided, the requirement on the vehicle-mounted controller chip is reduced, and therefore the cost of the vehicle-mounted controller is reduced.
In an embodiment, as shown in fig. 3, a daytime running light driving control method is provided, which is exemplified by applying the method to driving left and right daytime running lights, as shown in fig. 4, a vehicle body area controller calls daytime running light driving control for the daytime running lights on the left and right sides, respectively, and simultaneously drives the left and right daytime running lights through the left and right vehicle light controllers, so that the two daytime running lights are synchronously turned on/off, wherein when one side fails or terminates the daytime running light driving control, left or right daytime running light failure information is sent, and the method specifically includes:
the current ignition switch of the vehicle is turned on, the position light switch is turned off, the left and right turn light switches are turned off, the danger alarm switch is turned off, and the vehicle body domain controller simultaneously starts the daytime running light driving control on two sides.
For each side, the body area controller first clears the number of drives n, i.e. n =0.
And counting the driving times for each side, adding 1 to the driving times to obtain the current driving times before driving the daytime running lamp each time, namely n = n +1, so as to count the current time of driving the daytime running lamp.
For each side, a driving number threshold value n _ max is preset in the vehicle body area controller, and n _ max can be set to 4 (times) in the embodiment. After the current driving frequency n is obtained, comparing the current driving frequency with a driving frequency threshold, and if n is less than or equal to n _ max, outputting a driving voltage to the left and right side vehicle lamp controllers by the vehicle body domain controller; and if n is more than n _ max, stopping the driving of the vehicle body domain controller, and stopping the driving control of the driving lamp in the daytime. The vehicle body area controller terminates the daytime running light driving control of the side and sends the fault information of the side to the corresponding vehicle-mounted equipment.
For each side, a driving current threshold I _ max is preset inside the body area controller, and I _ max may be set to 10A (amperes) in this embodiment. And when the vehicle body area controller outputs driving voltage to the left and right side vehicle lamp controllers, monitoring the current driving current I of the left and right side vehicle lamp controllers, and comparing the current driving current with a driving current threshold value. And if the I of the left and right side vehicle lamp controllers is less than or equal to I _ max, the vehicle body domain controller keeps outputting the driving voltage, the left and right side vehicle lamp controllers keep the current driving current to carry out high-end driving on the daytime running lamp, and the left and right daytime running lamps are lightened. If the I of the left and right side lamp controllers is greater than I _ max, the driving current at this time may cause an excessive transient current of an inductive load inside the daytime running lamp, and further affect the vehicle body area controller, the left and right side lamp controllers and other circuits, so the vehicle-mounted processor stops outputting the driving voltage, interrupts the high-end driving current of the left and right side lamp controllers, and returns to execute the step n = n +1 to perform driving again.
And after the vehicle body area controller outputs voltage to light the left and right daytime running lamps, ending the driving control of the daytime running lamp. Or, when the number of times of driving of one side is higher than the driving current threshold, it is described that the driving current is higher than the driving current threshold many times each time the one side tries to drive the daytime running lamp, a fault such as a short circuit occurs in the left and right side lamp controllers of the one side or the circuit inside the daytime running lamp, the body area controller stops the current output driving, terminates the current daytime running lamp driving control, and reports an obstacle to the one side, thereby protecting the body area controller chip, the side lamp controller, the internal circuit of the side daytime running lamp, and the like.
In the embodiment, the current driving times are obtained; if the current driving times are not more than the driving times threshold, outputting driving voltage; monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold; if the driving current is not larger than the driving current threshold, the power is kept on, and the daytime running lamp is lightened. By setting the driving frequency threshold and the driving current threshold, the driving current of the vehicle-mounted controller chip is controlled within a certain range, the phenomenon that the driving current of the vehicle-mounted controller is too large is avoided, the requirement on the vehicle-mounted controller chip is reduced, and therefore the cost of the vehicle-mounted controller is reduced.
It should be understood that although the various steps in the flowcharts of fig. 1-2, 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in fig. 1-2, 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternatively with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 5, there is provided a daytime running light drive control device 500 including: a logic starting module 501, a number counting module 502, a current monitoring module 503 and a vehicle lamp driving module 504, wherein:
a logic starting module 501, configured to obtain current driving times;
a number counting module 502, configured to output a driving voltage if the current driving number is not greater than the driving number threshold;
the current monitoring module 503 is configured to monitor a driving current corresponding to the driving voltage, obtain the driving current, and compare the driving current with a driving current threshold;
and the lamp driving module 504 is used for keeping the power on and lighting the daytime running lamp if the driving current is not greater than the driving current threshold.
In one embodiment, the number-of-times counting module 502 is further configured to stop the driving if the current driving number of times is greater than the driving number threshold; and sending the fault information to corresponding vehicle-mounted equipment.
In one embodiment, the logic enable module 501 is further configured to zero the current driving times.
In one embodiment, the logical enable module 501 includes:
and the driving counting unit is used for adding 1 to the current driving times.
And the number updating unit is used for acquiring the driving number added with 1 as a new current driving number.
In one embodiment, the current monitoring module 503 is further configured to return to the execution driving counting unit if the current driving current is greater than the driving current threshold.
In one embodiment, the logic activation module 501 is further configured to collect vehicle status information; and if the vehicle state information is the preset vehicle state, invoking daytime running lamp driving control. The preset vehicle state comprises at least one of ignition switch state information, position lamp switch state information, left and right steering lamp switch state information and danger alarm switch state information.
For specific limitations of the daytime running light driving control device, reference may be made to the above limitations on the daytime running light driving control method, and details are not described here. Each module in the above-described daytime running light drive control device may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a daytime running light drive control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring the current driving times;
if the current driving times are not more than the driving times threshold, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
if the driving current is not larger than the driving current threshold, the power is kept on, and the daytime running lamp is lightened.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the current driving times are larger than the driving time threshold, stopping the current driving;
and sending the fault information to corresponding vehicle-mounted equipment.
In one embodiment, the processor when executing the computer program further performs the steps of:
and clearing the current driving times.
In one embodiment, the processor when executing the computer program further performs the steps of:
adding 1 to the current driving times;
and acquiring the driving times after adding 1 as new current driving times.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the current driving current is larger than the driving current threshold, returning to the step of adding 1 to the current driving times.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
collecting vehicle state information;
and if the vehicle state information is the preset vehicle state, invoking daytime running lamp driving control.
In one embodiment, the processor, when executing the computer program, further comprises:
the preset vehicle state includes at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring the current driving times;
if the current driving times are not more than the driving times threshold, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
and if the driving current is not greater than the driving current threshold value, keeping electrifying and lighting the daytime running lamp.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the current driving times are larger than the driving time threshold, stopping the driving;
and sending the fault information to corresponding vehicle-mounted equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and clearing the current driving times.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adding 1 to the current driving times;
and acquiring the driving times after adding 1 as new current driving times.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the current driving current is larger than the driving current threshold, returning to the step of adding 1 to the current driving times.
In one embodiment, the computer program when executed by the processor further performs the steps of:
collecting vehicle state information;
and if the vehicle state information is the preset vehicle state, invoking daytime running lamp driving control.
In one embodiment, the computer program when executed by the processor further comprises:
the preset vehicle state includes at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (10)
1. A daytime running lamp driving control method is applied to an on-board controller, and comprises the following steps:
clearing the current driving times;
adding 1 to the current driving frequency, and acquiring the driving frequency added with 1 as a new current driving frequency;
if the current driving times are not greater than the driving times threshold value, outputting driving voltage;
monitoring a driving current corresponding to the driving voltage, acquiring the driving current, and comparing the driving current with a driving current threshold;
if the driving current is not larger than the driving current threshold, keeping electrifying, and lighting the daytime running lamp;
and if the driving current is greater than the driving current threshold, adding 1 to the current driving frequency, acquiring the driving frequency added with 1 as a new current driving frequency, and returning to the step of outputting the driving voltage if the current driving frequency is not greater than the driving frequency threshold.
2. The method of claim 1, further comprising:
if the current driving times are larger than the driving time threshold, stopping the driving;
and sending the fault information to corresponding vehicle-mounted equipment.
3. The method according to claim 1, wherein before adding 1 to the current driving times and obtaining the driving times after adding 1 as a new current driving times, the method further comprises:
collecting vehicle state information;
and if the vehicle state information is a preset vehicle state, invoking daytime running lamp driving control.
4. The method of claim 3, wherein the preset vehicle state comprises at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
5. A daytime running light drive control device, characterized by comprising:
the logic starting module is used for resetting the current driving times; adding 1 to the current driving times, and acquiring the driving times after adding 1 as new current driving times;
the frequency counting module is used for outputting driving voltage if the current driving frequency is not greater than a driving frequency threshold;
the current monitoring module is used for monitoring the driving current corresponding to the driving voltage, acquiring the driving current and comparing the driving current with a driving current threshold value;
the vehicle lamp driving module is used for keeping electrifying and lighting a daytime vehicle lamp if the driving current is not greater than the driving current threshold; and if the driving current is greater than the driving current threshold, adding 1 to the current driving times, acquiring the driving times added with 1 as new current driving times, and returning to the execution of the times counting module.
6. The device of claim 5, wherein the number counting module is further configured to stop the driving if the current driving number is greater than the driving number threshold; and sending the fault information to corresponding vehicle-mounted equipment.
7. The apparatus of claim 5, wherein the logic activation module is further configured to collect vehicle status information; and if the vehicle state information is the preset vehicle state, invoking daytime running lamp driving control.
8. The apparatus of claim 7, wherein the preset vehicle state comprises at least one of ignition switch state information, position light switch state information, left and right turn light switch state information, and hazard warning switch state information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110340850.6A CN113071405B (en) | 2021-03-30 | 2021-03-30 | Daytime running lamp drive control method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110340850.6A CN113071405B (en) | 2021-03-30 | 2021-03-30 | Daytime running lamp drive control method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113071405A CN113071405A (en) | 2021-07-06 |
CN113071405B true CN113071405B (en) | 2022-12-09 |
Family
ID=76611663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110340850.6A Active CN113071405B (en) | 2021-03-30 | 2021-03-30 | Daytime running lamp drive control method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113071405B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007015654A (en) * | 2005-07-11 | 2007-01-25 | Calsonic Kansei Corp | Correction method of directional light disconnection detection threshold of control device of directional light for vehicle |
CN103379714A (en) * | 2012-04-20 | 2013-10-30 | 株式会社小糸制作所 | Semiconductor light source lighting circuit |
JP2014040142A (en) * | 2012-08-21 | 2014-03-06 | Rohm Co Ltd | Leak current detection circuit, semiconductor device, led lighting device, and vehicle |
CN104661876A (en) * | 2012-09-27 | 2015-05-27 | 矢崎总业株式会社 | Brake light drive control device |
JP2017070004A (en) * | 2015-09-28 | 2017-04-06 | ルネサスエレクトロニクス株式会社 | Semiconductor device |
CN106564424A (en) * | 2016-10-28 | 2017-04-19 | 马瑞利汽车零部件(芜湖)有限公司 | Control circuit for conducting switching between automobile daytime running lamps and position lamp |
CN206498558U (en) * | 2016-11-16 | 2017-09-15 | 重庆莱锐达科技有限责任公司 | LED car lamp intelligent control drive circuit system |
CN206821047U (en) * | 2017-05-18 | 2017-12-29 | 科博达技术股份有限公司 | The dummy load circuit of LED controller for daytime running light |
CN108116308A (en) * | 2018-01-10 | 2018-06-05 | 东风商用车有限公司 | Control system for replacing brake lamp with rear fog lamp and use method of control system |
CN110371149A (en) * | 2019-08-12 | 2019-10-25 | 中车株洲电力机车有限公司 | The method and device of the malfunction monitoring of locomotive headlamp |
CN111315065A (en) * | 2018-12-11 | 2020-06-19 | 株式会社小糸制作所 | Lighting circuit and vehicle lamp |
CN211209981U (en) * | 2019-11-05 | 2020-08-07 | 华域视觉科技(上海)有限公司 | Constant current driving structure for automobile signal lamp |
CN111976584A (en) * | 2020-08-25 | 2020-11-24 | 中国第一汽车股份有限公司 | Control method, device and equipment of car lamp and car |
CN112291888A (en) * | 2020-09-11 | 2021-01-29 | 深圳市天微电子股份有限公司 | LED open circuit detection circuit and method, LED drive chip and drive method |
CN112423450A (en) * | 2020-11-13 | 2021-02-26 | 上海耀通电子仪表有限公司 | Vehicle lamp control device and vehicle lamp control method |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000185593A (en) * | 1998-12-22 | 2000-07-04 | Stanley Electric Co Ltd | Vehicle lamp control device |
JP2010235109A (en) * | 2009-03-12 | 2010-10-21 | Autonetworks Technologies Ltd | Load drive device and load drive system |
KR101079904B1 (en) * | 2009-10-07 | 2011-11-04 | 대성전기공업 주식회사 | An apparatus for extending a durability of vehicle lamp and control method thereof |
TWI571172B (en) * | 2013-12-20 | 2017-02-11 | 凌通科技股份有限公司 | Integrated light emitting diode lamp and synchronization circuit and data transmission circuit thereof |
JP6396160B2 (en) * | 2014-10-02 | 2018-09-26 | 株式会社小糸製作所 | Vehicle lamp and its lighting circuit |
JP6817574B2 (en) * | 2016-09-30 | 2021-01-20 | パナソニックIpマネジメント株式会社 | Solid light source lighting device, lighting device, in-vehicle lighting equipment and two-wheeled vehicle |
CN107901856A (en) * | 2017-10-26 | 2018-04-13 | 中国第汽车股份有限公司 | Halogen lamp input voltage optimal control method |
JP2020098718A (en) * | 2018-12-18 | 2020-06-25 | 株式会社デンソー | Vehicle light controller |
TWI711337B (en) * | 2019-05-07 | 2020-11-21 | 益力半導體股份有限公司 | Self-adaptive dimming drive system |
JPWO2021010325A1 (en) * | 2019-07-12 | 2021-01-21 | ||
CN113940142A (en) * | 2019-08-01 | 2022-01-14 | 株式会社小糸制作所 | Lamp module and lighting circuit thereof |
CN111516698A (en) * | 2020-04-08 | 2020-08-11 | 中国第一汽车股份有限公司 | Driving assistance system control method, driving assistance system, vehicle, and storage medium |
-
2021
- 2021-03-30 CN CN202110340850.6A patent/CN113071405B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007015654A (en) * | 2005-07-11 | 2007-01-25 | Calsonic Kansei Corp | Correction method of directional light disconnection detection threshold of control device of directional light for vehicle |
CN103379714A (en) * | 2012-04-20 | 2013-10-30 | 株式会社小糸制作所 | Semiconductor light source lighting circuit |
JP2014040142A (en) * | 2012-08-21 | 2014-03-06 | Rohm Co Ltd | Leak current detection circuit, semiconductor device, led lighting device, and vehicle |
CN104661876A (en) * | 2012-09-27 | 2015-05-27 | 矢崎总业株式会社 | Brake light drive control device |
JP2017070004A (en) * | 2015-09-28 | 2017-04-06 | ルネサスエレクトロニクス株式会社 | Semiconductor device |
CN106564424A (en) * | 2016-10-28 | 2017-04-19 | 马瑞利汽车零部件(芜湖)有限公司 | Control circuit for conducting switching between automobile daytime running lamps and position lamp |
CN206498558U (en) * | 2016-11-16 | 2017-09-15 | 重庆莱锐达科技有限责任公司 | LED car lamp intelligent control drive circuit system |
CN206821047U (en) * | 2017-05-18 | 2017-12-29 | 科博达技术股份有限公司 | The dummy load circuit of LED controller for daytime running light |
CN108116308A (en) * | 2018-01-10 | 2018-06-05 | 东风商用车有限公司 | Control system for replacing brake lamp with rear fog lamp and use method of control system |
CN111315065A (en) * | 2018-12-11 | 2020-06-19 | 株式会社小糸制作所 | Lighting circuit and vehicle lamp |
CN110371149A (en) * | 2019-08-12 | 2019-10-25 | 中车株洲电力机车有限公司 | The method and device of the malfunction monitoring of locomotive headlamp |
CN211209981U (en) * | 2019-11-05 | 2020-08-07 | 华域视觉科技(上海)有限公司 | Constant current driving structure for automobile signal lamp |
CN111976584A (en) * | 2020-08-25 | 2020-11-24 | 中国第一汽车股份有限公司 | Control method, device and equipment of car lamp and car |
CN112291888A (en) * | 2020-09-11 | 2021-01-29 | 深圳市天微电子股份有限公司 | LED open circuit detection circuit and method, LED drive chip and drive method |
CN112423450A (en) * | 2020-11-13 | 2021-02-26 | 上海耀通电子仪表有限公司 | Vehicle lamp control device and vehicle lamp control method |
Non-Patent Citations (1)
Title |
---|
一种汽车转向灯双闪控制方法的研究;钱田义等;《陕西理工学院学报(自然科学版)》;20151015(第05期);第30-34页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113071405A (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102012018338B4 (en) | Device, vehicle, method and computer program for deactivating high-voltage components of a vehicle | |
JP6652103B2 (en) | Automatic driving control system for vehicles | |
CN109808682B (en) | Unmanned vehicle parking method and device and terminal | |
CN104742822A (en) | Method of recognizing trailer of tractor vehicle | |
CN112630572A (en) | Vehicle load drive failure diagnosis method and device, storage medium, and electronic device | |
CN113071405B (en) | Daytime running lamp drive control method and device, computer equipment and storage medium | |
CN111993954A (en) | Vehicle battery control method, vehicle battery control device, storage medium and vehicle | |
CN107804314A (en) | A kind of processing method and system of motor vehicle driven by mixed power battery communication failure | |
CN103166185A (en) | Pulse width modulation controller | |
CN109739145A (en) | Vehicle control unit control method and device | |
CN102107631B (en) | Car bus system and control method for emergency driving | |
CN111976489B (en) | Method for operating an electrically driven motor vehicle and the motor vehicle | |
CN114919411A (en) | Method and device for driving double batteries of vehicle steering system, vehicle and storage medium | |
KR20130113743A (en) | Vehicle breakdown notice method and device | |
CN110758233A (en) | Automobile brake lamp control circuit, method and device and automobile | |
CN117985099B (en) | Electric power steering control method, medium, electronic device and vehicle | |
CN115610346B (en) | Automobile risk control method, automobile, computer equipment and storage medium | |
US12289008B2 (en) | Technologies for providing contingency vehicular caution/emergency signaling | |
CN118068678A (en) | Remote control parking control method and device, vehicle and storage medium | |
CN115348712B (en) | Lighting control method and control device for vehicle starting | |
CN114755959B (en) | Method and device for controlling vehicle-mounted functions, computer equipment and storage medium | |
KR20250055084A (en) | Control apparatus and method for controlling power supply of vehicle | |
CN116006682A (en) | A high-speed gear control method and device for a new energy vehicle | |
CN118953249A (en) | Vehicle control system, vehicle | |
KR960002582B1 (en) | Microcomputer initialization check circuit of car controller |
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 |