WO2024087954A1 - Lamplight control method and apparatus, computer device, and computer-readable storage medium - Google Patents

Lamplight control method and apparatus, computer device, and computer-readable storage medium Download PDF

Info

Publication number
WO2024087954A1
WO2024087954A1 PCT/CN2023/120108 CN2023120108W WO2024087954A1 WO 2024087954 A1 WO2024087954 A1 WO 2024087954A1 CN 2023120108 W CN2023120108 W CN 2023120108W WO 2024087954 A1 WO2024087954 A1 WO 2024087954A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
electric energy
vehicle speed
parking time
input
Prior art date
Application number
PCT/CN2023/120108
Other languages
French (fr)
Chinese (zh)
Inventor
孙敏
胡翔
Original Assignee
南京懂玫驱动技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 南京懂玫驱动技术有限公司 filed Critical 南京懂玫驱动技术有限公司
Publication of WO2024087954A1 publication Critical patent/WO2024087954A1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J6/00Arrangement of optical signalling or lighting devices on cycles; Mounting or supporting thereof; Circuits therefor
    • B62J6/02Headlights
    • B62J6/028Headlights specially adapted for rider-propelled cycles with or without additional source of power
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present application relates to the field of electronic technology, and in particular to a lighting control method, device, computer equipment and computer-readable storage medium.
  • these electric vehicles are generally equipped with lights for lighting, and the lights are powered by batteries installed on the electric vehicles.
  • the lights can be divided into high beam lights and low beam lights.
  • the low beam lights When the low beam lights are turned on, the environment and road surface in the near distance in front of the electric vehicle can be illuminated, while when the high beam lights are turned on, the environment and road surface in the far distance in front of the electric vehicle can be illuminated. In this way, it can help users to observe the road conditions clearly in a dim environment.
  • the purpose of this application is to provide a lighting control method that can provide users with effective lighting assistance and save electricity.
  • a lighting control method which is applied to a controller in a vehicle, and the method includes:
  • the controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction
  • the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device, the starting time of the parking time is the time when the vehicle speed was not 0 last time, and the ending time of the parking time is the current time;
  • the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed to adjust the brightness of the light emitted by the vehicle light device.
  • the controller adjusts the amount of electrical energy input to the vehicle lamp device according to the parking time of the vehicle, including:
  • the target power signal electric energy of a target power level is input into the vehicle light device.
  • the parking time linear model includes: a parking time and a pulse control signal duty cycle linear model
  • the determining, based on the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
  • obtaining a value of the duty cycle of the pulse control signal corresponding to the parking time from a linear model of the parking time and the duty cycle of the pulse control signal;
  • the step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
  • a target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
  • the parking time linear model includes: a parking time and electric energy linear model
  • the determining, based on the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
  • the parking time obtaining a target electric energy amount corresponding to the parking time from a linear model of the parking time and electric energy amount;
  • the step of inputting the electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
  • the electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
  • the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
  • the target power signal electric energy of a target power level is input into the vehicle light device.
  • the vehicle speed linear model includes: a vehicle speed and pulse control signal duty cycle linear model
  • Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
  • the step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
  • a target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
  • the vehicle speed linear model includes: a vehicle speed and electric energy size linear model
  • Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
  • obtaining a target electric energy amount corresponding to the parking time from a linear model of the vehicle speed and electric energy amount;
  • the step of inputting the electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
  • the electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
  • the vehicle further comprises: an acceleration detection device;
  • the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
  • the amount of electrical energy input to the vehicle light device is not adjusted
  • the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
  • a second aspect of an embodiment of the present application provides a lighting control device, which is applied to a controller in a vehicle, and the device includes:
  • a control module for controlling the vehicle light device on the vehicle to start and emit light in response to a light-on instruction
  • a first adjustment module for adjusting the amount of electric energy input to the headlight device according to the parking time of the vehicle when the vehicle speed is 0, so as to adjust the brightness of the light emitted by the headlight device, wherein the starting time of the parking time is the time when the vehicle speed is not 0 last time, and the ending time of the parking time is the current time;
  • the second adjustment module is used for, when the vehicle speed is not zero, the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, so as to adjust the brightness of the light emitted by the vehicle light device.
  • a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the lighting control method described in the first aspect is implemented.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the lighting control method described in the first aspect is implemented.
  • a lighting control method provided in an embodiment of the present application controls a lighting device on a vehicle to start and emit light by responding to a lighting on command through the controller. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the lighting device according to the parking time of the vehicle to adjust the brightness of the light emitted by the lighting device. If the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the lighting device according to the vehicle speed to adjust the brightness of the light emitted by the lighting device.
  • the controller responds to the light-on command to control the headlight device on the vehicle to start and emit light.
  • the controller can accurately and timely control the headlight device or the headlight in the headlight device to emit light when the user inputs the light-on command, so as to provide the user with a light source for lighting in time, and can provide the user with effective lighting assistance.
  • the headlight device When the headlight device emits light, the greater or more electrical energy is input into the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device. Therefore, when the vehicle speed is 0, the amount of electrical energy input into the headlight device is adjusted according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. Specifically, the greater the parking time, the smaller the amount of electrical energy input into the headlight device. In this way, the headlight device can be adjusted to have a lower brightness when the vehicle is parked for a long time. In this case, the brightness of the light emitted by the vehicle lamp device is reduced, and the power consumed by the vehicle lamp device when the vehicle is in a stationary or parked state is reduced.
  • the vehicle speed When the vehicle speed is not 0, it can be determined that the vehicle is in a moving state, and the greater the speed, the greater the amount of electric energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and when the vehicle speed is high, it can be ensured that the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user.
  • the speed is lower, the smaller the amount of electric energy input to the headlight device is adjusted, the smaller the brightness of the light emitted by the headlight device, reducing the electric energy consumed by the headlight device when the vehicle speed is low. In this way, the flexibility of the headlight device in emitting light can be improved.
  • FIG1 is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application.
  • FIG2 is a flow chart of a first lighting control method provided in an embodiment of the present application.
  • FIG3 is a flow chart of a second lighting control method provided in an embodiment of the present application.
  • FIG4 is a flow chart of a third lighting control method provided in an embodiment of the present application.
  • FIG5 is a flow chart of a fourth lighting control method provided in an embodiment of the present application.
  • FIG6 is a flow chart of a fifth lighting control method provided in an embodiment of the present application.
  • FIG7 is a flow chart of a sixth lighting control method provided in an embodiment of the present application.
  • FIG8 is a flow chart of a seventh lighting control method provided in an embodiment of the present application.
  • FIG9 is a flow chart of an eighth lighting control method provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of the structure of a lighting control device provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.
  • these electric vehicles are generally equipped with lights for lighting, and the batteries installed on the electric vehicles are used to generate electricity. Power the lights.
  • lights can be divided into high beam and low beam. When low beam is turned on, it can illuminate the environment and road surface in the near distance in front of the electric vehicle, while when high beam is turned on, it can illuminate the environment and road surface in the far distance in front of the electric vehicle. In this way, it can help users see the road conditions clearly in a dim environment.
  • an embodiment of the present application provides a lighting control method, wherein the controller responds to a lighting on command to control the headlight device on the vehicle to start and emit light. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. If the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the headlight device according to the vehicle speed to adjust the brightness of the light emitted by the headlight device, thereby providing users with effective lighting assistance and saving electricity.
  • the embodiment of the present application is described by taking the light control method applied in a vehicle as an example, but it does not mean that the embodiment of the present application can only be applied to light control in a vehicle.
  • Figure 1 is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
  • (a) in Figure 1 provides a first possible structural schematic diagram of a vehicle.
  • the vehicle includes a controller K, a lighting device C, a speed detection device S, and an acceleration detection device J.
  • the first end of the controller K is connected to the first end of the vehicle light device C
  • the second end of the controller K is connected to the second end of the vehicle light device C
  • the third end of the controller K is connected to the speed detection device S
  • the fourth end of the controller K is connected to the acceleration detection device J.
  • the speed detection device S may be a speed sensor
  • the acceleration detection device J may be an acceleration sensor or a gyroscope, which is not limited in the embodiment of the present application.
  • the controller K may include a power supply unit G1, a signal processing unit X, and a microcontroller unit (MCU).
  • G1 a power supply unit G1
  • X a signal processing unit X
  • MCU microcontroller unit
  • the vehicle lamp device C includes a switch control circuit Z, a vehicle lamp power supply circuit G2, and a vehicle lamp D.
  • the first end of the signal processing unit X is connected to the speed detection device S
  • the second end of the signal processing unit X is connected to the acceleration detection device J
  • the third end of the signal processing unit X is linked to the first end of the MCU
  • the second end of the MCU is connected to the first end of the switch control circuit Z.
  • the second end of the switch control circuit Z is connected to the first end of the vehicle lamp power supply circuit G2 , and the second end of the vehicle lamp power supply circuit G2 is connected to the vehicle lamp D.
  • a first end of the power supply unit G1 is connected to a fourth end of the signal processing unit X, a second end of the power supply unit G1 is connected to a third end of the MCU, and a third end of the power supply unit G1 is connected to a third end of the vehicle light power supply circuit G2.
  • the power supply unit G1 supplies power to the signal processing unit X, the MCU, and the headlight power supply circuit G2 respectively.
  • the switch control circuit Z is used to control the light power supply circuit G2 to turn on or off under the control of the MCU, and to control the light power supply circuit The magnitude of the current flowing when G2 is turned on.
  • the lamp power supply circuit G2 is used to output electric energy to the lamp D when it is turned on, so as to power the lamp D. When the lamp D is powered on, it can emit light matching the electric energy output by the lamp power supply circuit G2.
  • the vehicle lamp device C may further include an overcurrent protection circuit B.
  • a first end of the overcurrent protection circuit B is connected to the fourth end of the vehicle light power supply circuit G2 , and a second end of the overcurrent protection circuit B is connected to the third end of the switch control circuit Z.
  • the overcurrent protection circuit B is used to protect the headlight device C when the control signal output by the MCU to the overcurrent protection circuit B suddenly increases, causing the current of the switch control circuit Z or the headlight power supply circuit G2 to suddenly increase.
  • FIG1 provides a schematic diagram of a second possible vehicle structure.
  • the vehicle includes a controller K, a lighting device C, a speed detection device S, and an acceleration detection device J.
  • the first end of the controller K is connected to the first end of the vehicle light device C
  • the second end of the controller K is connected to the speed detection device S
  • the third end of the controller K is connected to the acceleration detection device J.
  • the vehicle lamp device C includes a vehicle lamp power supply circuit G2 and a vehicle lamp D.
  • the first end of the signal processing unit X is connected to the speed detection device S
  • the second end of the signal processing unit X is connected to the acceleration detection device J
  • the third end of the signal processing unit X is linked to the first end of the MCU
  • the second end of the MCU is connected to the first end of the power supply unit G1.
  • the second end of the power supply unit G1 is connected to the signal processing unit X, the third end of the power supply unit G1 is connected to the third end of the MCU, and the fourth end of the power supply unit G1 is connected to the first end of the vehicle light power supply circuit G2.
  • the power supply unit G1 supplies power to the signal processing unit X, the MCU, and the headlight power supply circuit G2 respectively.
  • the second end of the vehicle lamp power supply circuit G2 is connected to the vehicle lamp D.
  • the power supply unit G1 can also be used to control the amount of electric energy output to the headlight power supply circuit G2 under the control of the MCU, thereby controlling the on or off of the headlight power supply circuit G2 and controlling the amount of current flowing through the headlight power supply circuit G2.
  • the vehicle lamp power supply circuit G2 is used for outputting electric energy to the vehicle lamp D to supply power to the vehicle lamp D when being turned on.
  • FIG2 is a flow chart of a lighting control method provided by the present application, which can be applied to the controller in the above-mentioned vehicle, and when the controller executes the corresponding steps, it can be specifically executed by the MCU in the controller.
  • an embodiment of the present application provides a lighting control method, including:
  • Step 1001 The controller controls the vehicle light device to start and emit light in response to a light-on instruction.
  • the light-on instruction may be an instruction input by a user through an operation input device to instruct the controller to supply power to the vehicle light device and control the vehicle light device to emit light.
  • the controller may confirm that it is necessary to supply power to the vehicle light device or control the vehicle light in the vehicle light device to emit light.
  • the input device may be a button installed on the vehicle or a touch-operated electronic screen, which is not limited in the embodiments of the present application.
  • the vehicle light device may be any of the vehicle light devices mentioned above.
  • Starting the vehicle light device may refer to the controller supplying power to the vehicle light device, and specifically may refer to the controller outputting electrical energy to the vehicle light device according to a default current or a default voltage to supply power to the vehicle light device, so that the vehicle light in the vehicle light device emits light.
  • the controller can accurately and timely control the vehicle light device or the vehicle light in the vehicle light device to emit light, so as to provide the user with a light source for lighting in a timely manner, and can provide the user with effective lighting assistance.
  • Step 1002 If the speed of the vehicle is 0, the controller adjusts the amount of electrical energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device.
  • the starting time of the parking time is the time when the vehicle speed was last not 0, and the ending time of the parking time is the current time.
  • the amount of electric energy input to the headlight device may refer to the amount of electric energy input by the power supply unit in the controller to the headlight power supply circuit G2 in the headlight device, or it may refer to the electric energy flowing through the headlight power supply circuit G2 in the headlight device when the headlight power supply circuit G2 is turned on.
  • the speed of the vehicle can be detected by the speed detection device S.
  • a speed signal for the speed of the vehicle can be output to the signal processing unit X, and the signal processing unit X outputs the speed signal to the MCU so that the MCU can parse and identify the speed signal to determine the speed of the vehicle.
  • the brightness of the light emitted by the headlight device is determined by the amount of electrical energy input to the headlight device. Generally, the greater or more electrical energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device.
  • the vehicle speed is 0, it can be considered that the vehicle is in a stationary or parked state, and the longer the vehicle speed is 0, that is, the longer the parking time, the longer the vehicle is in a stationary or parked state.
  • the longer the parking time the smaller the electric energy input to the headlight device can be adjusted, and the lower the brightness of the light emitted by the headlight device. In this way, the brightness of the light emitted by the headlight device can be reduced in the case of long-term parking, reducing the electric energy consumed by the headlight device when the vehicle is in a stationary or parked state.
  • Step 1003 If the vehicle speed is not zero, the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed to adjust the brightness of the light emitted by the vehicle light device.
  • the vehicle speed is not 0, it can be considered that the vehicle is in a moving state, and the greater the speed of the vehicle, the faster the vehicle moves. In the case of faster movement, the braking distance of the vehicle will become longer, so the user needs to observe a farther field of view. In a dim environment, the vehicle is required to provide lighting for the user. Therefore, the greater the amount of electrical energy input to the headlight device, the greater the brightness of the light emitted by the headlight device. In the case of a lower speed, the smaller the amount of electrical energy input to the headlight device, the smaller the brightness of the light emitted by the headlight device. In this way, the flexibility of the light emitted by the headlight device can be improved.
  • the vehicle speed is low, the braking distance of the vehicle is short, so the user can stop the vehicle within a short distance.
  • a smaller range or lower brightness lighting can be provided to the user, so the brightness of the light emitted by the headlight device can be reduced, and the power consumed by the headlight device when the vehicle is at a lower speed can be reduced.
  • the vehicle is at a higher speed, the user needs to stop the vehicle at a longer distance due to the longer braking distance of the vehicle.
  • a larger range or higher brightness lighting can be provided to the user, so that when the vehicle is at a higher speed, the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user. In this way, the effect of providing the user with effective lighting assistance and saving power can be achieved.
  • the controller responds to a light-on command to control the headlight device on the vehicle to start and emit light. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device; if the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the headlight device according to the vehicle speed to adjust the brightness of the light emitted by the headlight device.
  • the controller responds to the light-on command to control the headlight device on the vehicle to start and emit light.
  • the controller can accurately and timely control the headlight device or the headlight in the headlight device to emit light when the user inputs the light-on command, so as to provide the user with a light source for lighting in time, and can provide the user with effective lighting assistance.
  • the headlight device When the headlight device emits light, the greater or more electric energy is input to the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device. Therefore, when the vehicle speed is 0, the amount of electric energy input to the headlight device is adjusted according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. Specifically, the greater the parking time, the smaller the amount of electric energy input to the headlight device. In this way, the brightness of the light emitted by the headlight device can be reduced in the case of long-term parking, and the electric energy consumed by the headlight device when the vehicle is in a stationary or parking state can be reduced.
  • the vehicle speed When the vehicle speed is not 0, it can be determined that the vehicle is in a moving state, and the greater the speed, the greater the amount of electric energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and when the vehicle speed is high, it can be ensured that the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user.
  • the speed is lower, the smaller the amount of electric energy input to the headlight device is adjusted, the smaller the brightness of the light emitted by the headlight device, reducing the electric energy consumed by the headlight device when the vehicle speed is low. In this way, the flexibility of the headlight device in emitting light can be improved.
  • the controller adjusts the amount of electric energy input to the vehicle lamp device according to the parking time of the vehicle, including:
  • Step 1004 Determine a target electric energy signal corresponding to the parking duration according to a pre-established parking duration linear model and the parking duration.
  • the parking duration linear model may be a linear model established by relevant technical personnel according to actual needs.
  • the parking time linear model may be used to indicate a target electric energy signal corresponding to the parking time. That is, the target electric energy signal corresponding to the parking time may be determined by the parking time linear model.
  • the target power signal can be used to indicate the amount of power that the controller needs to output to the vehicle lamp device, or the amount of power that the vehicle lamp device needs to output to the vehicle lamp device.
  • the target power signal can be a signal including a duty cycle of a pulse control signal or a target power size.
  • the controller can output the pulse control signal to the switch control circuit in the headlight device to control the on or off of the switch control circuit, thereby controlling the on or off of the headlight power supply circuit in the headlight device, and the magnitude of the current flowing through the headlight power supply circuit when it is on.
  • the duty cycle can be used to indicate the proportion of the power-on time of the pulse control signal within a complete pulse cycle or pulse period. That is to say, pulse control signals with different duty cycles can control the controller to output different amounts of electrical energy to the headlight device, and then pulse control signals with different duty cycles can be used to control the switch control circuit and/or the headlight power supply circuit differently.
  • the parking time linear model may include: a parking time and a pulse control signal duty cycle linear model, or a parking time and electric energy size linear model.
  • the parking duration and pulse control signal duty cycle linear model can be used to indicate the duty cycle of the pulse control signal corresponding to the parking duration.
  • the parking duration and electric energy size linear model can be used to indicate the electric energy size corresponding to the parking duration.
  • the target electric energy signal corresponding to the parking time can be accurately determined to accurately control the electric energy input into the vehicle lamp device by the controller.
  • Step 1005 According to the target power signal, input power of the target power level into the vehicle light device.
  • the target electric energy magnitude may be used to indicate a current value, a voltage value, a power value and/or any other possible physical parameter of the electric energy input into the vehicle lamp device, which is not limited in the embodiment of the present application.
  • the headlight device Since the brightness of the light emitted by the headlight device is determined by the amount of electric energy input into the headlight device, after the target amount of electric energy is input into the headlight device, the headlight device will emit electric energy matching the target amount of electric energy.
  • the parking time linear model may include: a parking time and a pulse control signal duty cycle linear model.
  • determining a target electric energy signal corresponding to the parking time includes:
  • Step 1006 According to the parking time, a value of the duty cycle of the pulse control signal corresponding to the parking time is obtained from a linear model of the parking time and the duty cycle of the pulse control signal.
  • the linear model of parking duration and pulse control signal duty cycle may include multiple duty cycles with different values, and the duty cycles with different values may respectively correspond to a parking duration.
  • the determined duty cycle value will definitely change. Then, when the pulse control signal is output to the headlight device, it can be ensured that the electrical energy input by the controller to the headlight device also changes continuously.
  • the corresponding duty cycle value is 60%
  • the corresponding duty cycle value is 59.9%
  • the corresponding duty cycle value is 10%
  • the corresponding duty cycle value is 10%.
  • the corresponding duty cycle value is 0%.
  • Different duty ratios may also correspond to a parking time interval, which may be an interval set by relevant technicians.
  • the duty ratio is constant, that is, the target electric energy input to the vehicle lamp device is constant, and the brightness of the light emitted by the vehicle lamp device is constant within the parking time interval.
  • four parking time intervals can be set in the parking time and pulse control signal duty cycle linear model, the first parking time interval is 0-3 minutes, the second parking time interval is 3-30 minutes, the third parking time interval is 30-60 minutes, and the fourth parking time interval is greater than 60 minutes.
  • the duty cycle value corresponding to the first parking time interval is the duty cycle value of the pulse control signal currently output by the controller to the vehicle light device or 50%
  • the duty cycle value corresponding to the second parking time interval is 40%
  • the duty cycle value corresponding to the third parking time interval is 30%
  • the duty cycle value corresponding to the fourth parking time interval is 20%.
  • More parking time intervals can also be set, and the duty cycle values corresponding to each parking time interval can be adjusted according to actual needs.
  • the value of the duty cycle of the pulse control signal corresponding to the parking time can be accurately obtained in the linear model of the parking time and the duty cycle of the pulse control signal.
  • Inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
  • Step 1007 Input a target pulse control signal having the duty cycle to a control circuit of the vehicle light device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle light device.
  • the target pulse control signal may refer to a pulse control signal having the value of the duty cycle determined above.
  • the control circuit of the vehicle lamp device C may include a switch control circuit Z, a vehicle lamp power supply circuit G2 and/or an overcurrent protection circuit B.
  • Inputting the target pulse control signal having the value of the duty cycle into the control circuit of the headlight device can specifically be inputting the target pulse control signal into the switch control circuit Z to turn on the switch control circuit Z and the headlight power supply circuit G2 to control the current flowing through the headlight power supply circuit G2 to match the target electric energy.
  • the power supply unit G1 can also output electric energy to the headlight power supply circuit G2 in the headlight device to ensure that the headlight power supply circuit G2 can output electric energy to the headlight in the headlight device so that the headlight can emit light.
  • the control circuit is triggered to input electric energy of the target amount to the headlight device.
  • the switch control circuit Z can control the headlight power supply circuit G2 to be turned on, and control the amount of current flowing through the headlight power supply circuit G2, so that the electric energy input by the controller to the headlight device can flow into the headlight power supply circuit G2, and the headlight power supply circuit G2 can output electric energy of the target amount to the headlight in the headlight device.
  • step 1006 and step 1007 are applicable to the vehicle provided in (a) of Figure 1. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
  • the target electric energy input to the headlight device is different, and the brightness of the light emitted by the headlight in the headlight device is also different.
  • the duty cycle is 40%
  • the brightness of the light emitted by the headlight in the headlight device is 40% of the maximum brightness
  • the duty cycle is 30%
  • the brightness of the light emitted by the headlight in the headlight device is 30% of the maximum brightness. This embodiment of the application does not limit this.
  • the parking time linear model may include: a parking time and electric energy linear model, in a possible implementation, referring to FIG. 5 , according to the pre-established parking time linear model and the parking time, determining the target electric energy signal corresponding to the parking time includes:
  • Step 1008 According to the parking time, a target electric energy level corresponding to the parking time is obtained from a linear model of the parking time and the electric energy level.
  • the linear model of parking duration and electric energy size may include multiple different electric energy sizes, and each electric energy size may correspond to a parking duration.
  • the determined target electric energy size will definitely change. Then, when the electric energy of the target electric energy size is output to the headlight device, it can be ensured that the electric energy input by the controller to the headlight device is continuously changing.
  • the corresponding current is 5A of electric energy
  • the corresponding current is 4.99A of electric energy
  • the corresponding current is 2A of electric energy
  • the corresponding current is 0A of electric energy.
  • Each electric energy level may also correspond to a parking time interval.
  • the target electric energy level is constant, that is, the electric energy input to the vehicle lamp device of the target electric energy level is constant, and then within this parking time interval, the brightness of the light emitted by the vehicle lamp device is constant.
  • the first parking time interval is 0-3 minutes
  • the second parking time interval is 3-30 minutes
  • the third parking time interval is 30-60 minutes
  • the first parking time interval is an interval greater than 60 minutes.
  • the first parking time interval corresponds to an electric energy with a current of 5A
  • the second parking time interval corresponds to an electric energy with a current of 4A
  • the third parking time interval corresponds to an electric energy with a current of 3A
  • the fourth parking time interval corresponds to an electric energy with a current of 2A.
  • the target electric energy amount corresponding to the parking time can be accurately obtained in the linear model of parking time and electric energy amount.
  • Inputting electric energy of the target electric energy amount into the vehicle lamp device comprises:
  • Step 1009 Inputting electric energy having the target electric energy level into the control circuit of the vehicle lamp device to trigger the control circuit to input electric energy having the target electric energy level into the vehicle lamp device.
  • the target pulse control signal may refer to a pulse control signal having the value of the duty cycle determined above.
  • control circuit of the vehicle lamp device C may include a vehicle lamp power supply circuit G2 .
  • Inputting electric energy having the target electric energy magnitude into the control circuit of the vehicle lamp device may specifically be inputting electric energy having the target electric energy magnitude into the vehicle lamp power supply circuit G2 .
  • the vehicle lamp power supply circuit G2 When electric energy with the target electric energy level is input to the control circuit of the vehicle lamp device, the vehicle lamp power supply circuit G2 can be turned on, and the vehicle lamp power supply circuit G2 can fully input the electric energy with the target electric energy level into the vehicle lamp in the vehicle lamp device.
  • the control circuit is triggered to input electric energy of the target amount to the headlight device, specifically, the electric energy input by the controller to the headlight device can flow into the headlight power supply circuit G2, and the headlight power supply circuit G2 outputs electric energy of the target amount to the headlight in the headlight device.
  • step 1008 and step 1009 are applicable to the vehicle provided in (b) of Figure 1. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different.
  • the input current is 3A of electric energy
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 40% of the maximum brightness
  • the input current is 2A of electric energy
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 30% of the maximum brightness. This embodiment of the present application does not limit this.
  • the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, including:
  • Step 1010 Determine a target electric energy signal corresponding to the vehicle speed based on a pre-established vehicle speed linear model and the vehicle speed.
  • the vehicle speed linear model may be a linear model established by relevant technical personnel according to actual needs.
  • the vehicle speed linear model may be used to indicate a target electric energy signal corresponding to the vehicle speed, that is, the target electric energy signal corresponding to the vehicle speed may be determined by the vehicle speed linear model.
  • the vehicle speed linear model may include: a vehicle speed and pulse control signal duty cycle linear model, or a vehicle speed and electric energy size linear model.
  • the vehicle speed and pulse control signal duty cycle linear model can be used to indicate the duty cycle value of the pulse control signal corresponding to the vehicle speed.
  • the vehicle speed and electric energy linear model can be used to indicate the electric energy required to be input to the vehicle light device corresponding to the vehicle speed.
  • the target electric energy signal corresponding to the vehicle speed can be accurately determined to accurately control the electric energy input into the vehicle light device by the controller.
  • Step 1011 According to the target power signal, input power of a target power level into the vehicle light device.
  • the headlight device Since the brightness of the light emitted by the headlight device is determined by the amount of electric energy input into the headlight device, after the target amount of electric energy is input into the headlight device, the headlight device will emit electric energy matching the target amount of electric energy.
  • the parking time linear model may include: a linear model of vehicle speed and pulse control signal duty cycle, in a possible implementation, referring to FIG. 7 , according to a pre-established vehicle speed linear model and the vehicle speed, determining a target electric energy signal corresponding to the vehicle speed includes:
  • Step 1012 According to the vehicle speed, a value of the duty cycle of the pulse control signal corresponding to the vehicle speed is obtained from a linear model of the vehicle speed and the duty cycle of the pulse control signal.
  • the vehicle speed and pulse control signal duty cycle linear model may include a plurality of duty cycles with different values, and different The duty cycle value can correspond to a vehicle speed respectively. In this case, as long as the vehicle speed changes, the determined duty cycle value will definitely change. Then, when the pulse control signal is output to the headlight device, it can be ensured that the electrical energy input by the controller to the headlight device also changes continuously.
  • the corresponding duty cycle value when the vehicle speed is 3km/h is 10%
  • the corresponding duty cycle value when the vehicle speed is 6km/h is 20%
  • the corresponding duty cycle value when the vehicle speed is 35km/h is 100%.
  • the duty cycle of different values may also correspond to a vehicle speed range, which may be a range set by relevant technicians.
  • vehicle speed range which may be a range set by relevant technicians.
  • the determined duty cycle is unchanged, that is, the target electric energy input to the vehicle lamp device is unchanged, and then within this vehicle speed range, the brightness of the light emitted by the vehicle lamp device is unchanged.
  • the first speed interval is 0-15km/h
  • the second speed interval is 16-20km/h
  • the third speed interval is 21-25km/h
  • the fourth speed interval is 26-30km/h
  • the fifth speed interval is 31-35km/h.
  • the duty cycle value corresponding to the first speed interval is 50%
  • the duty cycle value corresponding to the second speed interval is 60%
  • the duty cycle value corresponding to the third speed interval is 70%
  • the duty cycle value corresponding to the fourth speed interval is 85%
  • the duty cycle value corresponding to the fourth speed interval is 100%.
  • More speed intervals can also be set, and the duty cycle values corresponding to each speed interval can be adjusted according to actual needs.
  • the value of the duty cycle of the pulse control signal corresponding to the vehicle speed can be accurately obtained in the linear model of the vehicle speed and the duty cycle of the pulse control signal.
  • Inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
  • Step 1013 Input a target pulse control signal having the duty cycle to a control circuit of the vehicle light device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle light device.
  • step 1012 and step 1013 are applicable to the vehicle provided in (a) of FIG. 1 , and the input of the target pulse control signal having the above-determined duty cycle value to the control circuit of the vehicle lamp device can refer to the specific description in the above-mentioned embodiment, which will not be repeated here. In this way, it can be ensured that the controller can accurately input the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the target electric energy size.
  • the target pulse control signal with the determined duty cycle value is input to the control circuit of the vehicle lamp device, the target electric energy input to the vehicle lamp device is also different, and the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different.
  • the duty cycle value is 100%
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 100% of the maximum brightness
  • the duty cycle value is 85%
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 85% of the maximum brightness. This embodiment of the present application does not limit this.
  • the vehicle speed linear model includes: a vehicle speed and electric energy linear model.
  • a target electric energy signal corresponding to the vehicle speed is determined, including:
  • Step 1014 According to the vehicle speed, a target electric energy amount corresponding to the parking time is obtained from a linear model of the vehicle speed and electric energy amount.
  • the linear model of vehicle speed and electric energy size may include multiple different electric energy sizes, and each electric energy size may correspond to a vehicle speed.
  • the determined target electric energy size will definitely change. Then, when the electric energy of the target electric energy size is output to the headlight device, it can be ensured that the electric energy input by the controller to the headlight device is continuously changing.
  • the corresponding current is 0.5A of electric energy
  • the corresponding current is 1A of electric energy
  • the corresponding current is 5A of electric energy
  • Each electric energy level may also correspond to a vehicle speed range.
  • the target electric energy level is constant, that is, the electric energy input to the vehicle lamp device of the target electric energy level is constant, and then within this vehicle speed range, the brightness of the light emitted by the vehicle lamp device is constant.
  • five speed intervals can be set in the linear model of the speed and pulse control signal duty cycle, the first speed interval is 0-15km/h, the second speed interval is 16-20km/h, the third speed interval is 21-25km/h, the fourth speed interval is 26-30km/h, and the fifth speed interval is 31-35km/h.
  • the first speed interval corresponds to an electric energy with a current of 1A
  • the second speed interval corresponds to an electric energy with a current of 2A
  • the third speed interval corresponds to an electric energy with a current of 3A
  • the fourth speed interval corresponds to an electric energy with a current of 4A
  • the fifth speed interval corresponds to an electric energy with a current of 5A.
  • the target electric energy size corresponding to the vehicle speed can be accurately obtained in the linear model of vehicle speed and electric energy size.
  • Inputting an electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
  • Step 1015 Inputting electric energy having the target electric energy level into the control circuit of the vehicle light device to trigger the control circuit to input electric energy having the target electric energy level into the vehicle light device.
  • step 1014 and step 1015 are applicable to the vehicle provided in (b) of FIG. 1 .
  • the input of electric energy having the target electric energy size to the control circuit of the vehicle lamp device can refer to the specific description in the above embodiment, which will not be repeated here. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
  • the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different. For example, when the input current is 1A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 20% of the maximum brightness, and when the input current is 5A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 100% of the maximum brightness. This embodiment of the present application does not limit this.
  • the vehicle further includes: an acceleration detection device.
  • the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
  • Step 1016 Receive and analyze the acceleration signal output by the acceleration detection device to obtain the acceleration of the vehicle indicated by the acceleration signal.
  • the signal processing unit X may receive the acceleration signal and output the acceleration signal to the MCU.
  • the MCU analyzes the acceleration signal.
  • Step 1017 Determine whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed.
  • Step 1018 If they are the same, adjust the amount of electrical energy input to the vehicle lighting device according to the vehicle speed.
  • the direction of the acceleration is the same as the direction of the vehicle speed, it indicates that the vehicle is accelerating, and if the value of the acceleration is greater than the preset threshold, it indicates that the vehicle is in a state of rapid acceleration, and the amount of electrical energy input to the headlight device needs to be adjusted according to the vehicle speed.
  • Step 1019 If not, determine whether the acceleration value is greater than a preset threshold.
  • the preset threshold may be a threshold set in advance by relevant technical personnel.
  • the preset threshold may be an absolute value of acceleration.
  • the preset threshold may be set larger, and the present application does not limit this.
  • the direction of the acceleration is opposite to the direction of the vehicle speed, it indicates that the vehicle is decelerating, and if the value of the acceleration is greater than the preset threshold, it indicates that the vehicle is in a state of rapid deceleration. If the vehicle is in a state of rapid deceleration, it indicates that the user may have encountered a more urgent situation, and at this time, a higher brightness light is needed to illuminate the surrounding environment, so the amount of power input to the vehicle light device may not be adjusted.
  • Step 1020 If the acceleration value is greater than the preset threshold, then the amount of electrical energy input to the vehicle light device is not adjusted.
  • the acceleration value is greater than the preset threshold, it can be determined that the vehicle is in a state of rapid acceleration or rapid deceleration. Then, it is necessary to determine whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed.
  • Step 1021 If the acceleration value is not greater than the preset threshold, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
  • the acceleration value when the acceleration value is not greater than the preset threshold, it can be determined that the vehicle is not in a state of rapid acceleration or deceleration. Then, the amount of electrical energy input to the headlight device can be adjusted according to the vehicle speed, thereby adjusting the brightness of the light emitted by the headlight device.
  • the amount of electric energy input to the vehicle light device may be adjusted by executing the following steps:
  • the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
  • the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
  • the flexibility of light control can be improved.
  • the brightness of the light emitted by the vehicle lamp device according to the direction of the acceleration and the speed of the vehicle, as well as the magnitude of the acceleration, more effective lighting assistance can be provided to the user according to actual conditions.
  • the magnitude of the electric energy input to the vehicle light device may be adjusted to a preset magnitude of electric energy, which may be set in advance by relevant technicians. After the preset magnitude of electric energy is input to the vehicle light device, the vehicle light device may emit a signal matching the preset magnitude of electric energy. Light.
  • the brightness of the light that matches the preset electric energy level may be greater than 50% of the maximum brightness of the vehicle light device, which is not limited in the embodiment of the present application.
  • the controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction, including:
  • the controller generates a preset pulse control signal in response to a light-on instruction, and outputs the preset pulse control signal to a control circuit of the vehicle light device, so that the control circuit inputs electric energy of a preset electric energy amount to the vehicle light device.
  • the preset pulse control signal is a pulse control signal with a preset duty cycle, which is used to indicate a preset amount of electric energy.
  • the preset duty cycle is also used to indicate the degree of conduction of a headlight power supply circuit in the headlight device, and the amount of current that can flow through the headlight power supply circuit when it is turned on.
  • the preset pulse control signal is specifically used to control the conduction of the headlight power supply circuit in the headlight device and output electric energy of a preset electric energy amount to the headlight in the headlight device.
  • the method before the controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction, the method further includes:
  • the controller receives the status information output by the status information detection device.
  • the status information detection device may be any device installed on the vehicle for detecting status information, which is not limited in this embodiment of the present application.
  • the status information may include information such as the voltage and current output by the battery of the vehicle, the remaining power of the battery, the temperature of the battery, the temperature of the motor, the speed of the motor, etc.
  • the controller determines whether the vehicle is powered on and working normally according to the status information.
  • the controller If not, the controller outputs a prompt message.
  • the prompt information may be in various forms of information such as light, sound, text, image, etc.
  • the prompt information is used to indicate that the vehicle cannot be powered on and work normally, so as to promptly inform the user to troubleshoot or repair the vehicle.
  • the controller executes the step of obtaining the vehicle speed.
  • the purpose of automatically adjusting the brightness of the lights can be achieved according to the real-time status of the vehicle.
  • FIG. 10 is a schematic diagram of the structure of a lighting control device provided in an embodiment of the present application.
  • a controller applied to the above-mentioned vehicle includes:
  • the control module 201 is used to control the vehicle light device to start and emit light in response to the light on instruction;
  • the first adjustment module 202 is used to adjust the amount of electric energy input to the headlight device according to the parking time of the vehicle when the vehicle speed is 0, so as to adjust the brightness of the light emitted by the headlight device.
  • the starting time of the parking time is the last time when the vehicle speed is not 0.
  • the end time of the parking time is the current time;
  • the second adjustment module 203 is used for, when the vehicle speed is not zero, the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, so as to adjust the brightness of the light emitted by the vehicle light device.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors, or one or more field programmable gate arrays (FPGA).
  • ASIC application specific integrated circuits
  • FPGA field programmable gate arrays
  • the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code.
  • CPU central processing unit
  • these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • Fig. 11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.
  • the computer device 300 includes: a memory 301 and a processor 302.
  • the memory 301 stores a computer program that can be run on the processor 302.
  • the processor 302 executes the computer program, the steps in any of the above method embodiments are implemented.
  • An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program.
  • the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
  • the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute any of the above-mentioned lighting control method embodiments when executed by a processor.
  • a program product such as a computer-readable storage medium, including a program, which is used to execute any of the above-mentioned lighting control method embodiments when executed by a processor.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application.
  • the aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory Random Access Memory (RAM), magnetic disk, CD, or other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

A lamplight control method and apparatus, a computer device, and a computer-readable storage medium, belonging to the technical field of electronics. The method comprises: in response to a lamplight turn-on instruction, a controller controls a vehicle lamp apparatus on a vehicle to start and to emit light rays; if the vehicle speed of the vehicle is zero, the controller adjusts, according to a parking duration of the vehicle, the magnitude of electric energy input to the vehicle lamp apparatus, so as to adjust the brightness of the light rays emitted by the vehicle lamp apparatus, the starting moment of the parking duration being a moment when the vehicle speed is not zero for the last time, and the stop moment of the parking duration being the current moment; and if the vehicle speed is not zero, the controller adjusts, according to the vehicle speed, the magnitude of electric energy input to the vehicle lamp apparatus, so as to adjust the brightness of the light rays emitted by the vehicle lamp apparatus. Effects of providing effective lighting assistance for users and saving electric energy can be thus achieved.

Description

灯光控制方法、装置、计算机设备和计算机可读存储介质Lighting control method, device, computer equipment and computer readable storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2022年10月28日提交中国国家知识产权局的申请号为202211337568.3、名称为“灯光控制方法、装置、计算机设备和计算机可读存储介质”的中国专利申请的优先权,该专利申请的全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202211337568.3 filed with the State Intellectual Property Office of China on October 28, 2022, and entitled “Lighting control method, device, computer equipment and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application.
技术领域Technical Field
本申请涉及电子技术领域,具体而言,涉及一种灯光控制方法、装置、计算机设备和计算机可读存储介质。The present application relates to the field of electronic technology, and in particular to a lighting control method, device, computer equipment and computer-readable storage medium.
背景技术Background technique
随着科学技术的发展,电动自行车、电动助力车等电动交通工具已经进入到人们的生活中,为人们的出行带来了巨大的便利。With the development of science and technology, electric vehicles such as electric bicycles and electric assisted bicycles have entered people's lives, bringing great convenience to people's travel.
相关技术中,这些电动交通工具上一般都会安装车灯来照明,并由电动交通工具上安装的蓄电池为车灯供电。一般地,车灯可以分为远光灯和近光灯,在开启近光灯时可以照亮电动交通工具前方较近距离的环境和路面,而开启远光灯时,可以照亮电动交通工具前方较远距离的环境和路面。这样,就可以帮助用户在昏暗的环境中观察清楚路况。In the related art, these electric vehicles are generally equipped with lights for lighting, and the lights are powered by batteries installed on the electric vehicles. Generally, the lights can be divided into high beam lights and low beam lights. When the low beam lights are turned on, the environment and road surface in the near distance in front of the electric vehicle can be illuminated, while when the high beam lights are turned on, the environment and road surface in the far distance in front of the electric vehicle can be illuminated. In this way, it can help users to observe the road conditions clearly in a dim environment.
然而,相关技术的方案在开启车灯之后,车灯只能按照预设的光照强度提供光源,而无法随着车辆实时状态实现自动调节车灯亮度的功能。因此,这种方案存在难以为用户提供有效的照明辅助、浪费电能的问题。However, after the lights are turned on, the lights can only provide light according to the preset light intensity, and cannot automatically adjust the brightness of the lights according to the real-time status of the vehicle. Therefore, this solution has the problem of being difficult to provide effective lighting assistance to users and wasting electricity.
发明内容Summary of the invention
本申请的目的在于提供一种灯光控制方法,可以达到为用户提供有效的照明辅助、节省电能的效果。The purpose of this application is to provide a lighting control method that can provide users with effective lighting assistance and save electricity.
本申请的实施例是这样实现的:The embodiment of the present application is implemented as follows:
本申请实施例的第一方面,提供一种灯光控制方法,应用于车辆中的控制器,所述方法包括:In a first aspect of an embodiment of the present application, a lighting control method is provided, which is applied to a controller in a vehicle, and the method includes:
所述控制器响应于灯光开启指令,控制所述车辆上的车灯装置启动并发射光线;The controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction;
若所述车辆的车速为0,所述控制器则根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度,所述停车时长的起始时刻为所述车速上一次不为0的时刻,所述停车时长的终止时刻为当前时刻;If the speed of the vehicle is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device, the starting time of the parking time is the time when the vehicle speed was not 0 last time, and the ending time of the parking time is the current time;
若所述车速不为0,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度。If the vehicle speed is not zero, the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed to adjust the brightness of the light emitted by the vehicle light device.
可选地,所述控制器则根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,包括:Optionally, the controller adjusts the amount of electrical energy input to the vehicle lamp device according to the parking time of the vehicle, including:
根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号;Determining a target electric energy signal corresponding to the parking time according to a pre-established parking time linear model and the parking time;
根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能。 According to the target power signal, electric energy of a target power level is input into the vehicle light device.
可选地,所述停车时长线性模型包括:停车时长与脉冲控制信号占空比线性模型;Optionally, the parking time linear model includes: a parking time and a pulse control signal duty cycle linear model;
所述根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号,包括:The determining, based on the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
根据所述停车时长,从所述停车时长与脉冲控制信号占空比线性模型中获取所述停车时长对应的脉冲控制信号的占空比的数值;According to the parking time, obtaining a value of the duty cycle of the pulse control signal corresponding to the parking time from a linear model of the parking time and the duty cycle of the pulse control signal;
所述根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能,包括:The step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
向所述车灯装置的控制电路输入具有所述占空比的目标脉冲控制信号,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。A target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
可选地,所述停车时长线性模型包括:停车时长与电能大小线性模型;Optionally, the parking time linear model includes: a parking time and electric energy linear model;
所述根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号,包括:The determining, based on the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
根据所述停车时长,从所述停车时长与电能大小线性模型中获取所述停车时长对应的目标电能大小;According to the parking time, obtaining a target electric energy amount corresponding to the parking time from a linear model of the parking time and electric energy amount;
所述向所述车灯装置输入所述目标电能大小的电能信号,包括:The step of inputting the electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
向所述车灯装置的控制电路输入具有所述目标电能大小的电能,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。The electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
可选地,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,包括:Optionally, the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号;Determining a target electric energy signal corresponding to the vehicle speed according to a pre-established vehicle speed linear model and the vehicle speed;
根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能。According to the target power signal, electric energy of a target power level is input into the vehicle light device.
可选地,所述车速线性模型包括:车速与脉冲控制信号占空比线性模型;Optionally, the vehicle speed linear model includes: a vehicle speed and pulse control signal duty cycle linear model;
所述根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号,包括:Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
根据所述车速,从所述车速与脉冲控制信号占空比线性模型中获取所述车速对应的脉冲控制信号的占空比的数值;According to the vehicle speed, obtaining a value of the duty cycle of the pulse control signal corresponding to the vehicle speed from a linear model of the vehicle speed and the duty cycle of the pulse control signal;
所述根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能,包括:The step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
向所述车灯装置的控制电路输入具有所述占空比的目标脉冲控制信号,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。A target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
可选地,所述车速线性模型包括:车速与电能大小线性模型;Optionally, the vehicle speed linear model includes: a vehicle speed and electric energy size linear model;
所述根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号,包括:Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
根据所述车速,从所述车速与电能大小线性模型中获取所述停车时长对应的目标电能大小;According to the vehicle speed, obtaining a target electric energy amount corresponding to the parking time from a linear model of the vehicle speed and electric energy amount;
所述向所述车灯装置输入所述目标电能大小的电能信号,包括:The step of inputting the electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
向所述车灯装置的控制电路输入具有所述目标电能大小的电能,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。The electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
可选地,所述车辆中还包括:加速度检测装置; Optionally, the vehicle further comprises: an acceleration detection device;
所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,包括:The controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
接收并解析所述加速度检测装置输出的加速度信号,以得到所述加速度信号指示的所述车辆的加速度;receiving and analyzing the acceleration signal output by the acceleration detection device to obtain the acceleration of the vehicle indicated by the acceleration signal;
确定所述加速度的方向与所述车速的方向相反或相同;determining whether a direction of the acceleration is opposite to or the same as a direction of the vehicle speed;
若相同,则根据所述车速调整输入至所述车灯装置的电能大小;If they are the same, adjusting the amount of electrical energy input to the vehicle light device according to the vehicle speed;
若相反,则确定所述加速度的值是否大于预设阈值;If the opposite is true, determining whether the value of the acceleration is greater than a preset threshold;
若所述加速度的值大于所述预设阈值,则不调整输入至所述车灯装置的电能大小;If the acceleration value is greater than the preset threshold, the amount of electrical energy input to the vehicle light device is not adjusted;
若所述加速度的值不大于所述预设阈值,则根据所述车速调整输入至所述车灯装置的电能大小。If the value of the acceleration is not greater than the preset threshold, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
本申请实施例的第二方面,提供了一种灯光控制装置,应用于车辆中的控制器,所述装置包括:A second aspect of an embodiment of the present application provides a lighting control device, which is applied to a controller in a vehicle, and the device includes:
控制模块,用于响应于灯光开启指令,控制所述车辆上的车灯装置启动并发射光线;A control module, for controlling the vehicle light device on the vehicle to start and emit light in response to a light-on instruction;
第一调整模块,用于在所述车辆的车速为0的情况下,根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度,所述停车时长的起始时刻为所述车速上一次不为0的时刻,所述停车时长的终止时刻为当前时刻;a first adjustment module, for adjusting the amount of electric energy input to the headlight device according to the parking time of the vehicle when the vehicle speed is 0, so as to adjust the brightness of the light emitted by the headlight device, wherein the starting time of the parking time is the time when the vehicle speed is not 0 last time, and the ending time of the parking time is the current time;
第二调整模块,用于在所述车速不为0的情况下,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度。The second adjustment module is used for, when the vehicle speed is not zero, the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, so as to adjust the brightness of the light emitted by the vehicle light device.
本申请实施例的第三方面,提供了一种计算机设备,所述计算机设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第一方面所述的灯光控制方法。According to a third aspect of an embodiment of the present application, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the lighting control method described in the first aspect is implemented.
本申请实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面所述的灯光控制方法。According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the lighting control method described in the first aspect is implemented.
本申请实施例的有益效果包括:The beneficial effects of the embodiments of the present application include:
本申请实施例提供的一种灯光控制方法,通过该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,若该车辆的车速为0,该控制器则根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,若该车速不为0,该控制器则根据该车速调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度。A lighting control method provided in an embodiment of the present application controls a lighting device on a vehicle to start and emit light by responding to a lighting on command through the controller. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the lighting device according to the parking time of the vehicle to adjust the brightness of the light emitted by the lighting device. If the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the lighting device according to the vehicle speed to adjust the brightness of the light emitted by the lighting device.
其中,该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,这样,该控制器就可以在用户输入该灯光开启指令的情况下,准确、及时地控制该车灯装置或该车灯装置中的车灯发射光线,以便及时为用户提供照明的光源,可以为用户提供有效的照明辅助。Among them, the controller responds to the light-on command to control the headlight device on the vehicle to start and emit light. In this way, the controller can accurately and timely control the headlight device or the headlight in the headlight device to emit light when the user inputs the light-on command, so as to provide the user with a light source for lighting in time, and can provide the user with effective lighting assistance.
由于在该车灯装置发射光线时,输入该车灯装置的电能越大或越多,那么该车灯装置发射光线的亮度就越大,反之,该车灯装置发射光线的亮度就越小,那么,在该车辆的车速为0的情况下,根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,具体,可以在该停车时长越大的情况下,将输入至该车灯装置的电能大小调整的越小。这样,就可以在长时间停车的情 况下,降低该车灯装置发射光线的亮度,减少该车灯装置在该车辆处于静止状态或停车状态时消耗的电能。When the headlight device emits light, the greater or more electrical energy is input into the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device. Therefore, when the vehicle speed is 0, the amount of electrical energy input into the headlight device is adjusted according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. Specifically, the greater the parking time, the smaller the amount of electrical energy input into the headlight device. In this way, the headlight device can be adjusted to have a lower brightness when the vehicle is parked for a long time. In this case, the brightness of the light emitted by the vehicle lamp device is reduced, and the power consumed by the vehicle lamp device when the vehicle is in a stationary or parked state is reduced.
在该车辆的车速不为0的情况下,可以确定该车辆处于移动状态,并且,可以在车速越大的情况下,将输入至该车灯装置的电能大小调整的越大,那么该车灯装置发射光线的亮度就越大,可以在该车辆的车速较大时确保可以给用户提供能照亮更大范围或更远距离的光线,进而可以确保用户的安全性。在车速越小的情况下,将输入至该车灯装置的电能大小调整的越小,那么该车灯装置发射光线的亮度就越小,减少该车灯装置在该车辆的车速较小时消耗的电能。这样,可以提高该车灯装置发射光线的灵活性。When the vehicle speed is not 0, it can be determined that the vehicle is in a moving state, and the greater the speed, the greater the amount of electric energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and when the vehicle speed is high, it can be ensured that the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user. When the speed is lower, the smaller the amount of electric energy input to the headlight device is adjusted, the smaller the brightness of the light emitted by the headlight device, reducing the electric energy consumed by the headlight device when the vehicle speed is low. In this way, the flexibility of the headlight device in emitting light can be improved.
如此,可以达到为用户提供有效的照明辅助、节省电能的效果。In this way, it is possible to provide users with effective lighting assistance and save electricity.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
图1为本申请实施例提供的车辆的结构示意图;FIG1 is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application;
图2为本申请实施例提供的第一种灯光控制方法的流程图;FIG2 is a flow chart of a first lighting control method provided in an embodiment of the present application;
图3为本申请实施例提供的第二种灯光控制方法的流程图;FIG3 is a flow chart of a second lighting control method provided in an embodiment of the present application;
图4为本申请实施例提供的第三种灯光控制方法的流程图;FIG4 is a flow chart of a third lighting control method provided in an embodiment of the present application;
图5为本申请实施例提供的第四种灯光控制方法的流程图;FIG5 is a flow chart of a fourth lighting control method provided in an embodiment of the present application;
图6为本申请实施例提供的第五种灯光控制方法的流程图;FIG6 is a flow chart of a fifth lighting control method provided in an embodiment of the present application;
图7为本申请实施例提供的第六种灯光控制方法的流程图;FIG7 is a flow chart of a sixth lighting control method provided in an embodiment of the present application;
图8为本申请实施例提供的第七种灯光控制方法的流程图;FIG8 is a flow chart of a seventh lighting control method provided in an embodiment of the present application;
图9为本申请实施例提供的第八种灯光控制方法的流程图;FIG9 is a flow chart of an eighth lighting control method provided in an embodiment of the present application;
图10为本申请实施例提供的一种灯光控制装置的结构示意图;FIG10 is a schematic diagram of the structure of a lighting control device provided in an embodiment of the present application;
图11为本申请实施例提供的一种计算机设备的结构示意图。FIG. 11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
在相关技术中,这些电动交通工具上一般都会安装车灯来照明,并由电动交通工具上安装的蓄电池 为车灯供电。一般地,车灯可以分为远光灯和近光灯,在开启近光灯时可以照亮电动交通工具前方较近距离的环境和路面,而开启远光灯时,可以照亮电动交通工具前方较远距离的环境和路面。这样,就可以帮助用户在昏暗的环境中观察清楚路况。In the related art, these electric vehicles are generally equipped with lights for lighting, and the batteries installed on the electric vehicles are used to generate electricity. Power the lights. Generally, lights can be divided into high beam and low beam. When low beam is turned on, it can illuminate the environment and road surface in the near distance in front of the electric vehicle, while when high beam is turned on, it can illuminate the environment and road surface in the far distance in front of the electric vehicle. In this way, it can help users see the road conditions clearly in a dim environment.
然而,相关技术的方案在开启车灯之后,车灯只能按照预设的光照强度提供光源,而无法随着车辆实时状态实现自动调节车灯亮度的功能。因此,这种方案存在难以为用户提供有效的照明辅助、浪费电能的问题。However, after the lights are turned on, the lights can only provide light according to the preset light intensity, and cannot automatically adjust the brightness of the lights according to the real-time status of the vehicle. Therefore, this solution has the problem of being difficult to provide effective lighting assistance to users and wasting electricity.
为此,本申请实施例提供了灯光控制方法,通过该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,若该车辆的车速为0,该控制器则根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,若该车速不为0,该控制器则根据该车速调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,可以达到为用户提供有效的照明辅助、节省电能的效果。To this end, an embodiment of the present application provides a lighting control method, wherein the controller responds to a lighting on command to control the headlight device on the vehicle to start and emit light. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. If the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the headlight device according to the vehicle speed to adjust the brightness of the light emitted by the headlight device, thereby providing users with effective lighting assistance and saving electricity.
本申请实施例以应用在车辆中的灯光控制方法为例进行说明。但不表明本申请实施例仅能应用于车辆中进行灯光控制。The embodiment of the present application is described by taking the light control method applied in a vehicle as an example, but it does not mean that the embodiment of the present application can only be applied to light control in a vehicle.
图1是本申请实施例提供的车辆的结构示意图,一种可能的方式中,图1中的(a)提供了第一种可能的车辆结构示意图,参见图1中的(a),该车辆中包括控制器K、车灯装置C、速度检测装置S、加速度检测装置J。Figure 1 is a structural schematic diagram of a vehicle provided in an embodiment of the present application. In one possible manner, (a) in Figure 1 provides a first possible structural schematic diagram of a vehicle. Referring to (a) in Figure 1, the vehicle includes a controller K, a lighting device C, a speed detection device S, and an acceleration detection device J.
可选地,控制器K的第一端与车灯装置C的第一端连接,控制器K的第二端与车灯装置C的第二端连接,控制器K的第三端与速度检测装置S连接,控制器K的第四端与加速度检测装置J连接。Optionally, the first end of the controller K is connected to the first end of the vehicle light device C, the second end of the controller K is connected to the second end of the vehicle light device C, the third end of the controller K is connected to the speed detection device S, and the fourth end of the controller K is connected to the acceleration detection device J.
速度检测装置S可以是速度传感器,加速度检测装置J可以是加速度传感器或陀螺仪,本申请实施例对此不做限定。The speed detection device S may be a speed sensor, and the acceleration detection device J may be an acceleration sensor or a gyroscope, which is not limited in the embodiment of the present application.
在这种情况下,控制器K可以包括供电单元G1、信号处理单元X、微控制单元(Microcontroller Unit,简称MCU)。In this case, the controller K may include a power supply unit G1, a signal processing unit X, and a microcontroller unit (MCU).
车灯装置C包括开关控制电路Z、车灯供电电路G2、车灯D。The vehicle lamp device C includes a switch control circuit Z, a vehicle lamp power supply circuit G2, and a vehicle lamp D.
其中,信号处理单元X的第一端与速度检测装置S连接,信号处理单元X的第二端与加速度检测装置J连接,信号处理单元X的第三端与MCU的第一端链接,MCU的第二端与开关控制电路Z的第一端连接。Among them, the first end of the signal processing unit X is connected to the speed detection device S, the second end of the signal processing unit X is connected to the acceleration detection device J, the third end of the signal processing unit X is linked to the first end of the MCU, and the second end of the MCU is connected to the first end of the switch control circuit Z.
开关控制电路Z的第二端与车灯供电电路G2的第一端连接,车灯供电电路G2的第二端与车灯D连接。The second end of the switch control circuit Z is connected to the first end of the vehicle lamp power supply circuit G2 , and the second end of the vehicle lamp power supply circuit G2 is connected to the vehicle lamp D.
供电单元G1的第一端与信号处理单元X的第四端连接,供电单元G1的第二端与MCU的第三端连接,供电单元G1的第三端与车灯供电电路G2的第三端连接。A first end of the power supply unit G1 is connected to a fourth end of the signal processing unit X, a second end of the power supply unit G1 is connected to a third end of the MCU, and a third end of the power supply unit G1 is connected to a third end of the vehicle light power supply circuit G2.
供电单元G1分别为信号处理单元X、MCU、车灯供电电路G2供电。The power supply unit G1 supplies power to the signal processing unit X, the MCU, and the headlight power supply circuit G2 respectively.
开关控制电路Z用于在MCU的控制下,控制车灯供电电路G2导通或关断,并控制车灯供电电路 G2导通时流过的电流大小。The switch control circuit Z is used to control the light power supply circuit G2 to turn on or off under the control of the MCU, and to control the light power supply circuit The magnitude of the current flowing when G2 is turned on.
车灯供电电路G2用于在导通的情况下,向车灯D输出电能,以给车灯D供电。在车灯D上电工作的情况下,即可发射与车灯供电电路G2输出的电能匹配的光线。The lamp power supply circuit G2 is used to output electric energy to the lamp D when it is turned on, so as to power the lamp D. When the lamp D is powered on, it can emit light matching the electric energy output by the lamp power supply circuit G2.
可选地,继续参见图1中的(a),该车灯装置C还可以包括过流保护电路B。Optionally, referring to (a) in FIG. 1 , the vehicle lamp device C may further include an overcurrent protection circuit B.
过流保护电路B的第一端与车灯供电电路G2的第四端连接,过流保护电路B的第二端与开关控制电路Z的第三端连接。A first end of the overcurrent protection circuit B is connected to the fourth end of the vehicle light power supply circuit G2 , and a second end of the overcurrent protection circuit B is connected to the third end of the switch control circuit Z.
过流保护电路B用于当MCU向过流保护电路B输出的控制信号突然增大而导致开关控制电路Z或车灯供电电路G2的电流突然增加时对车灯装置C进行保护。The overcurrent protection circuit B is used to protect the headlight device C when the control signal output by the MCU to the overcurrent protection circuit B suddenly increases, causing the current of the switch control circuit Z or the headlight power supply circuit G2 to suddenly increase.
一种可能的方式,图1中的(b)提供了第二种可能的车辆结构示意图,参见图1中的(b),该车辆中包括控制器K、车灯装置C、速度检测装置S、加速度检测装置J。As a possible method, (b) in FIG1 provides a schematic diagram of a second possible vehicle structure. Referring to (b) in FIG1 , the vehicle includes a controller K, a lighting device C, a speed detection device S, and an acceleration detection device J.
可选地,控制器K的第一端与车灯装置C的第一端连接,控制器K的第二端与速度检测装置S连接,控制器K的第三端与加速度检测装置J连接。Optionally, the first end of the controller K is connected to the first end of the vehicle light device C, the second end of the controller K is connected to the speed detection device S, and the third end of the controller K is connected to the acceleration detection device J.
在这种情况下,车灯装置C包括车灯供电电路G2、车灯D。In this case, the vehicle lamp device C includes a vehicle lamp power supply circuit G2 and a vehicle lamp D.
其中,信号处理单元X的第一端与速度检测装置S连接,信号处理单元X的第二端与加速度检测装置J连接,信号处理单元X的第三端与MCU的第一端链接,MCU的第二端与供电单元G1的第一端连接。Among them, the first end of the signal processing unit X is connected to the speed detection device S, the second end of the signal processing unit X is connected to the acceleration detection device J, the third end of the signal processing unit X is linked to the first end of the MCU, and the second end of the MCU is connected to the first end of the power supply unit G1.
供电单元G1的第二端与信号处理单元X连接,供电单元G1的第三端与MCU的第三端连接,供电单元G1的第四端与车灯供电电路G2的第一端连接。The second end of the power supply unit G1 is connected to the signal processing unit X, the third end of the power supply unit G1 is connected to the third end of the MCU, and the fourth end of the power supply unit G1 is connected to the first end of the vehicle light power supply circuit G2.
供电单元G1分别为信号处理单元X、MCU、车灯供电电路G2供电。The power supply unit G1 supplies power to the signal processing unit X, the MCU, and the headlight power supply circuit G2 respectively.
车灯供电电路G2的第二端与车灯D连接。The second end of the vehicle lamp power supply circuit G2 is connected to the vehicle lamp D.
供电单元G1还可以用于在MCU的控制下,控制输出到车灯供电电路G2的电能大小,进而控制车灯供电电路G2导通或关断,以及控制车灯供电电路G2时流过的电流大小。The power supply unit G1 can also be used to control the amount of electric energy output to the headlight power supply circuit G2 under the control of the MCU, thereby controlling the on or off of the headlight power supply circuit G2 and controlling the amount of current flowing through the headlight power supply circuit G2.
车灯供电电路G2用于在导通的情况下,向车灯D输出电能,以给车灯D供电。The vehicle lamp power supply circuit G2 is used for outputting electric energy to the vehicle lamp D to supply power to the vehicle lamp D when being turned on.
下面对本申请实施例提供的灯光控制方法进行详细地解释说明。The lighting control method provided in the embodiment of the present application is explained in detail below.
图2为本申请提供的一种灯光控制方法的流程图,该方法可以应用于上述车辆中的控制器,在该控制器执行相应的步骤时,具体可以是由该控制器中的MCU来执行的。参见图2,本申请实施例提供一种灯光控制方法,包括:FIG2 is a flow chart of a lighting control method provided by the present application, which can be applied to the controller in the above-mentioned vehicle, and when the controller executes the corresponding steps, it can be specifically executed by the MCU in the controller. Referring to FIG2, an embodiment of the present application provides a lighting control method, including:
步骤1001:该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线。Step 1001: The controller controls the vehicle light device to start and emit light in response to a light-on instruction.
可选地,该灯光开启指令可以是由用户通过操作输入装置输入的用于指示该控制器为该车灯装置供电,并控制该车灯装置发射光线的指令。Optionally, the light-on instruction may be an instruction input by a user through an operation input device to instruct the controller to supply power to the vehicle light device and control the vehicle light device to emit light.
在该控制器接收到该灯光开启指令的情况下,该控制器则可以确认需要为该车灯装置供电或者控制该车灯装置中的车灯发射光线。 When the controller receives the light-on instruction, the controller may confirm that it is necessary to supply power to the vehicle light device or control the vehicle light in the vehicle light device to emit light.
该输入装置可以是安装在该车辆上的按键或可触摸操控的电子屏幕,本申请实施例对此不做限定。The input device may be a button installed on the vehicle or a touch-operated electronic screen, which is not limited in the embodiments of the present application.
可选地,该车灯装置可以是上述任一种车灯装置。Optionally, the vehicle light device may be any of the vehicle light devices mentioned above.
该车灯装置启动可以是指该控制器为该车灯装置供电,具体可以是指该控制器按照默认电流或默认电压向该车灯装置输出电能为该车灯装置供电,以使得该车灯装置中的车灯发射光线。Starting the vehicle light device may refer to the controller supplying power to the vehicle light device, and specifically may refer to the controller outputting electrical energy to the vehicle light device according to a default current or a default voltage to supply power to the vehicle light device, so that the vehicle light in the vehicle light device emits light.
这样,该控制器就可以在用户输入该灯光开启指令的情况下,准确、及时地控制该车灯装置或该车灯装置中的车灯发射光线,以便及时为用户提供照明的光源,可以为用户提供有效的照明辅助。In this way, when the user inputs the light-on command, the controller can accurately and timely control the vehicle light device or the vehicle light in the vehicle light device to emit light, so as to provide the user with a light source for lighting in a timely manner, and can provide the user with effective lighting assistance.
步骤1002:若该车辆的车速为0,该控制器则根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度。Step 1002: If the speed of the vehicle is 0, the controller adjusts the amount of electrical energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device.
可选地,该停车时长的起始时刻为该车速上一次不为0的时刻,该停车时长的终止时刻为当前时刻。Optionally, the starting time of the parking time is the time when the vehicle speed was last not 0, and the ending time of the parking time is the current time.
可选地,输入至该车灯装置的电能的大小可以是指该控制器中的供电单元向该车灯装置中的车灯供电电路G2输入的电能大小,也可以是指该车灯装置中的车灯供电电路G2导通时,车灯供电电路G2中流过的电能。Optionally, the amount of electric energy input to the headlight device may refer to the amount of electric energy input by the power supply unit in the controller to the headlight power supply circuit G2 in the headlight device, or it may refer to the electric energy flowing through the headlight power supply circuit G2 in the headlight device when the headlight power supply circuit G2 is turned on.
示例性地,具体可以通过上述的速度检测装置S来检测该车辆的车速,在速度检测装置S检测到该车辆的车速的情况下,可以将用于该车辆的车速的速度信号输出到上述信号处理单元X中,并由信号处理单元X将速度信号输出到MCU,以供MCU解析识别该速度信号以确定该车辆的车速。Exemplarily, the speed of the vehicle can be detected by the speed detection device S. When the speed detection device S detects the speed of the vehicle, a speed signal for the speed of the vehicle can be output to the signal processing unit X, and the signal processing unit X outputs the speed signal to the MCU so that the MCU can parse and identify the speed signal to determine the speed of the vehicle.
值得注意的是,在该车灯装置发射光线时,是根据输入该车灯装置的电能大小来决定该车灯装置发射光线的亮度的。一般地,输入该车灯装置的电能越大或越多,那么该车灯装置发射光线的亮度就越大,反之,该车灯装置发射光线的亮度就越小。It is worth noting that when the headlight device emits light, the brightness of the light emitted by the headlight device is determined by the amount of electrical energy input to the headlight device. Generally, the greater or more electrical energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device.
值得说明的是,如果该车辆的车速为0,就可以认为该车辆处于静止状态或停车状态,并且,该车辆车速为0的时间越长,也即该停车时长越大,就代表该车辆处于静止状态或停车状态的时间越长,那么为了节省电能,就可以在该停车时长越大的情况下,将输入至该车灯装置的电能大小调整的越小,那么该车灯装置发射光线的亮度就越低。这样,就可以在长时间停车的情况下,降低该车灯装置发射光线的亮度,减少该车灯装置在该车辆处于静止状态或停车状态时消耗的电能。It is worth noting that if the vehicle speed is 0, it can be considered that the vehicle is in a stationary or parked state, and the longer the vehicle speed is 0, that is, the longer the parking time, the longer the vehicle is in a stationary or parked state. In order to save electric energy, the longer the parking time, the smaller the electric energy input to the headlight device can be adjusted, and the lower the brightness of the light emitted by the headlight device. In this way, the brightness of the light emitted by the headlight device can be reduced in the case of long-term parking, reducing the electric energy consumed by the headlight device when the vehicle is in a stationary or parked state.
步骤1003:若该车速不为0,该控制器则根据该车速调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度。Step 1003: If the vehicle speed is not zero, the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed to adjust the brightness of the light emitted by the vehicle light device.
值得注意的是,如果该车辆的车速不为0,就可以认为该车辆处于移动状态,并且,该车辆的车速越大,就代表该车辆的移动速度越快,而在移动速度越快的情况下,该车辆的制动距离就会变得越长,那么用户就需要观察到更远的视野。而在昏暗的环境中,就需要该车辆为用户提供照明的光线,那么,就可以在车速越大的情况下,将输入至该车灯装置的电能大小调整的越大,那么该车灯装置发射光线的亮度就越大,在车速越小的情况下,将输入至该车灯装置的电能大小调整的越小,那么该车灯装置发射光线的亮度就越小。这样,可以提高该车灯装置发射光线的灵活性。It is worth noting that if the vehicle speed is not 0, it can be considered that the vehicle is in a moving state, and the greater the speed of the vehicle, the faster the vehicle moves. In the case of faster movement, the braking distance of the vehicle will become longer, so the user needs to observe a farther field of view. In a dim environment, the vehicle is required to provide lighting for the user. Therefore, the greater the amount of electrical energy input to the headlight device, the greater the brightness of the light emitted by the headlight device. In the case of a lower speed, the smaller the amount of electrical energy input to the headlight device, the smaller the brightness of the light emitted by the headlight device. In this way, the flexibility of the light emitted by the headlight device can be improved.
值得说明的是,在车速较小时,由于车辆的制动距离较短,用户可以在较短距离内将该车辆刹停, 在这种情况下,可以为用户提供较小范围或较低亮度的照明,那么就可以降低该车灯装置发射光线的亮度,减少该车灯装置在该车辆的车速较小时消耗的电能。在车速较大时,由于车辆的制动距离较大,用户需要在较长的距离才能将该车辆刹停,在这种情况下,可以为用户提供较大范围或较高亮度的照明,那么就可以在该车辆的车速较大时确保可以给用户提供能照亮更大范围或更远距离的光线,进而可以确保用户的安全。如此,即可达到为用户提供有效的照明辅助、节省电能的效果。It is worth noting that when the vehicle speed is low, the braking distance of the vehicle is short, so the user can stop the vehicle within a short distance. In this case, a smaller range or lower brightness lighting can be provided to the user, so the brightness of the light emitted by the headlight device can be reduced, and the power consumed by the headlight device when the vehicle is at a lower speed can be reduced. When the vehicle is at a higher speed, the user needs to stop the vehicle at a longer distance due to the longer braking distance of the vehicle. In this case, a larger range or higher brightness lighting can be provided to the user, so that when the vehicle is at a higher speed, the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user. In this way, the effect of providing the user with effective lighting assistance and saving power can be achieved.
在本申请实施例中,通过该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,若该车辆的车速为0,该控制器则根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度;若该车速不为0,该控制器则根据该车速调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度。In an embodiment of the present application, the controller responds to a light-on command to control the headlight device on the vehicle to start and emit light. If the vehicle speed is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device; if the vehicle speed is not 0, the controller adjusts the amount of electric energy input to the headlight device according to the vehicle speed to adjust the brightness of the light emitted by the headlight device.
其中,该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,这样,该控制器就可以在用户输入该灯光开启指令的情况下,准确、及时地控制该车灯装置或该车灯装置中的车灯发射光线,以便及时为用户提供照明的光源,可以为用户提供有效的照明辅助。Among them, the controller responds to the light-on command to control the headlight device on the vehicle to start and emit light. In this way, the controller can accurately and timely control the headlight device or the headlight in the headlight device to emit light when the user inputs the light-on command, so as to provide the user with a light source for lighting in time, and can provide the user with effective lighting assistance.
由于在该车灯装置发射光线时,输入该车灯装置的电能越大或越多,那么该车灯装置发射光线的亮度就越大,反之,该车灯装置发射光线的亮度就越小,那么,在该车辆的车速为0的情况下,根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,具体,可以在该停车时长越大的情况下,将输入至该车灯装置的电能大小调整的越小。这样,就可以在长时间停车的情况下,降低该车灯装置发射光线的亮度,减少该车灯装置在该车辆处于静止状态或停车状态时消耗的电能。When the headlight device emits light, the greater or more electric energy is input to the headlight device, the greater the brightness of the light emitted by the headlight device, and vice versa, the smaller the brightness of the light emitted by the headlight device. Therefore, when the vehicle speed is 0, the amount of electric energy input to the headlight device is adjusted according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device. Specifically, the greater the parking time, the smaller the amount of electric energy input to the headlight device. In this way, the brightness of the light emitted by the headlight device can be reduced in the case of long-term parking, and the electric energy consumed by the headlight device when the vehicle is in a stationary or parking state can be reduced.
在该车辆的车速不为0的情况下,可以确定该车辆处于移动状态,并且,可以在车速越大的情况下,将输入至该车灯装置的电能大小调整的越大,那么该车灯装置发射光线的亮度就越大,可以在该车辆的车速较大时确保可以给用户提供能照亮更大范围或更远距离的光线,进而可以确保用户的安全性。在车速越小的情况下,将输入至该车灯装置的电能大小调整的越小,那么该车灯装置发射光线的亮度就越小,减少该车灯装置在该车辆的车速较小时消耗的电能。这样,可以提高该车灯装置发射光线的灵活性。When the vehicle speed is not 0, it can be determined that the vehicle is in a moving state, and the greater the speed, the greater the amount of electric energy input to the headlight device, the greater the brightness of the light emitted by the headlight device, and when the vehicle speed is high, it can be ensured that the user can be provided with light that can illuminate a larger range or a longer distance, thereby ensuring the safety of the user. When the speed is lower, the smaller the amount of electric energy input to the headlight device is adjusted, the smaller the brightness of the light emitted by the headlight device, reducing the electric energy consumed by the headlight device when the vehicle speed is low. In this way, the flexibility of the headlight device in emitting light can be improved.
如此,可以达到为用户提供有效的照明辅助、节省电能的效果。In this way, it is possible to provide users with effective lighting assistance and save electricity.
一种可能的实现方式中,参见图3,该控制器则根据该车辆的停车时长调整输入至该车灯装置的电能大小,包括:In a possible implementation, referring to FIG. 3 , the controller adjusts the amount of electric energy input to the vehicle lamp device according to the parking time of the vehicle, including:
步骤1004:根据预先建立的停车时长线性模型以及该停车时长,确定该停车时长对应的目标电能信号。Step 1004: Determine a target electric energy signal corresponding to the parking duration according to a pre-established parking duration linear model and the parking duration.
可选地,该停车时长线性模型可以是由相关技术人员根据实际需要建立的线性模型。Optionally, the parking duration linear model may be a linear model established by relevant technical personnel according to actual needs.
该停车时长线性模型可以用于指示与该停车时长对应的目标电能信号,也就是说,可以通过该停车时长线性模型确定出与该停车时长对应的目标电能信号。The parking time linear model may be used to indicate a target electric energy signal corresponding to the parking time. That is, the target electric energy signal corresponding to the parking time may be determined by the parking time linear model.
可选地,该目标电能信号可以用于指示该控制器需要向该车灯装置输出的电能大小,或者该车灯装 置中的车灯供电电路导通时流过的电能大小。具体地,该目标电能信号可以是包括脉冲控制信号的占空比或者目标电能大小的信号。Optionally, the target power signal can be used to indicate the amount of power that the controller needs to output to the vehicle lamp device, or the amount of power that the vehicle lamp device needs to output to the vehicle lamp device. The target power signal can be a signal including a duty cycle of a pulse control signal or a target power size.
该控制器可以将该脉冲控制信号输出到该车灯装置中的开关控制电路,以控制该开关控制电路的导通或关断,进而控制该车灯装置中的车灯供电电路的导通或关断,以及在该车灯供电电路导通时流过的电流大小。The controller can output the pulse control signal to the switch control circuit in the headlight device to control the on or off of the switch control circuit, thereby controlling the on or off of the headlight power supply circuit in the headlight device, and the magnitude of the current flowing through the headlight power supply circuit when it is on.
该占空比可以用于指示该脉冲控制信号在一个完整的脉冲循环或脉冲周期内,通电时间所占的比例,也就是说,不同占空比的脉冲控制信号可以控制该控制器向该车灯装置输出不同大小的电能,进而可以通过不同占空比的脉冲控制信号来对该开关控制电路和/或该车灯供电电路进行不同的控制。The duty cycle can be used to indicate the proportion of the power-on time of the pulse control signal within a complete pulse cycle or pulse period. That is to say, pulse control signals with different duty cycles can control the controller to output different amounts of electrical energy to the headlight device, and then pulse control signals with different duty cycles can be used to control the switch control circuit and/or the headlight power supply circuit differently.
示例性地,该停车时长线性模型可以包括:停车时长与脉冲控制信号占空比线性模型,或停车时长与电能大小线性模型。Exemplarily, the parking time linear model may include: a parking time and a pulse control signal duty cycle linear model, or a parking time and electric energy size linear model.
该停车时长与脉冲控制信号占空比线性模型可以用于指示与该停车时长对应的脉冲控制信号的占空比。该停车时长与电能大小线性模型可以用于指示与该停车时长对应的电能大小。The parking duration and pulse control signal duty cycle linear model can be used to indicate the duty cycle of the pulse control signal corresponding to the parking duration. The parking duration and electric energy size linear model can be used to indicate the electric energy size corresponding to the parking duration.
这样,就可以准确地确定出该停车时长对应的目标电能信号,以准确地控制该控制器输入该车灯装置的电能。In this way, the target electric energy signal corresponding to the parking time can be accurately determined to accurately control the electric energy input into the vehicle lamp device by the controller.
步骤1005:根据该目标电能信号,向该车灯装置输入目标电能大小的电能。Step 1005: According to the target power signal, input power of the target power level into the vehicle light device.
可选地,该目标电能大小可以用于指示输入该车灯装置的电能的电流值、电压值、功率值和/或其他任意可能的物理参数,本申请实施例对此不做限定。Optionally, the target electric energy magnitude may be used to indicate a current value, a voltage value, a power value and/or any other possible physical parameter of the electric energy input into the vehicle lamp device, which is not limited in the embodiment of the present application.
由于该车灯装置发射光线时,是根据输入该车灯装置的电能大小来决定该车灯装置发射光线的亮度的,那么在向该车灯装置输入目标电能大小的电能之后,该车灯装置就会发出与该目标电能大小匹配的电能。Since the brightness of the light emitted by the headlight device is determined by the amount of electric energy input into the headlight device, after the target amount of electric energy is input into the headlight device, the headlight device will emit electric energy matching the target amount of electric energy.
如此,即可实现根据该停车时长来调整该车灯装置发射光线的亮度的目的。In this way, the purpose of adjusting the brightness of the light emitted by the vehicle lamp device according to the parking time can be achieved.
由于该停车时长线性模型可以包括:停车时长与脉冲控制信号占空比线性模型。一种可能的实现方式中,参见图4,根据预先建立的停车时长线性模型以及该停车时长,确定该停车时长对应的目标电能信号,包括:Since the parking time linear model may include: a parking time and a pulse control signal duty cycle linear model. In a possible implementation, referring to FIG. 4 , according to a pre-established parking time linear model and the parking time, determining a target electric energy signal corresponding to the parking time includes:
步骤1006:根据该停车时长,从该停车时长与脉冲控制信号占空比线性模型中获取该停车时长对应的脉冲控制信号的占空比的数值。Step 1006: According to the parking time, a value of the duty cycle of the pulse control signal corresponding to the parking time is obtained from a linear model of the parking time and the duty cycle of the pulse control signal.
示例性地,该停车时长与脉冲控制信号占空比线性模型中可以包括多个不同数值的占空比,并且,不同数值的占空比可以分别对应一个停车时长,在这种情况下,只要该停车时长发生变化,确定出的占空比的数值就一定会发生变化,那么,在将该脉冲控制信号输出到该车灯装置时,就可以确保该控制器输入到该车灯装置的电能也是持续变化的。Exemplarily, the linear model of parking duration and pulse control signal duty cycle may include multiple duty cycles with different values, and the duty cycles with different values may respectively correspond to a parking duration. In this case, as long as the parking duration changes, the determined duty cycle value will definitely change. Then, when the pulse control signal is output to the headlight device, it can be ensured that the electrical energy input by the controller to the headlight device also changes continuously.
例如,在该停车时长为1秒时对应的占空比的数值为60%、在该停车时长为2秒时对应的占空比的数值为59.9%、…在该停车时长为500秒时对应的占空比的数值为10%、…在该停车时长为600秒时对 应的占空比的数值为0%。For example, when the parking time is 1 second, the corresponding duty cycle value is 60%, when the parking time is 2 seconds, the corresponding duty cycle value is 59.9%, ... when the parking time is 500 seconds, the corresponding duty cycle value is 10%, ... when the parking time is 600 seconds, the corresponding duty cycle value is 10%. The corresponding duty cycle value is 0%.
不同数值的占空比也可以分别对应一个停车时长区间,该停车时长区间可以是由相关技术人员设置的区间。在这种情况下,该停车时长处于同一停车时长区间时,确定的该占空比是不变的,也即,向该车灯装置输入目标电能大小的电能是不变的,那么在这个停车时长区间内,该车灯装置发射出的光线的亮度就是不变的。Different duty ratios may also correspond to a parking time interval, which may be an interval set by relevant technicians. In this case, when the parking time is in the same parking time interval, the duty ratio is constant, that is, the target electric energy input to the vehicle lamp device is constant, and the brightness of the light emitted by the vehicle lamp device is constant within the parking time interval.
又例如,比如可以在该停车时长与脉冲控制信号占空比线性模型中设置四个停车时长区间,第一个停车时长区间为0-3分钟、第二个停车时长区间为3-30分钟、第三个停车时长区间为30-60分钟、第四个停车时长区间为大于60分钟的区间。第一个停车时长区间对应的占空比的数值为该控制器当前向该车灯装置输出的脉冲控制信号的占空比的数值或者50%,第二个停车时长区间对应的占空比的数值为40%,第三个停车时长区间对应的占空比的数值为30%,第四个停车时长区间对应的占空比的数值为20%。也可以设置更多的停车时长区间,并且各停车时长区间对应的占空比的数值可以根据实际需要进行调整。For another example, four parking time intervals can be set in the parking time and pulse control signal duty cycle linear model, the first parking time interval is 0-3 minutes, the second parking time interval is 3-30 minutes, the third parking time interval is 30-60 minutes, and the fourth parking time interval is greater than 60 minutes. The duty cycle value corresponding to the first parking time interval is the duty cycle value of the pulse control signal currently output by the controller to the vehicle light device or 50%, the duty cycle value corresponding to the second parking time interval is 40%, the duty cycle value corresponding to the third parking time interval is 30%, and the duty cycle value corresponding to the fourth parking time interval is 20%. More parking time intervals can also be set, and the duty cycle values corresponding to each parking time interval can be adjusted according to actual needs.
这样,可以准确地在停车时长与脉冲控制信号占空比线性模型中获取到该停车时长对应的脉冲控制信号的占空比的数值。In this way, the value of the duty cycle of the pulse control signal corresponding to the parking time can be accurately obtained in the linear model of the parking time and the duty cycle of the pulse control signal.
根据该目标电能信号,向该车灯装置输入目标电能大小的电能,包括:Inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
步骤1007:向该车灯装置的控制电路输入具有该占空比的目标脉冲控制信号,以触发该控制电路向该车灯装置输入目标电能大小的电能。Step 1007: Input a target pulse control signal having the duty cycle to a control circuit of the vehicle light device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle light device.
可选地,该目标脉冲控制信号可以是指具有上述确定出的占空比的数值的脉冲控制信号。Optionally, the target pulse control signal may refer to a pulse control signal having the value of the duty cycle determined above.
可选地,继续参见图1中的(a),该车灯装置C的控制电路可以包括开关控制电路Z、车灯供电电路G2和/或过流保护电路B。Optionally, referring to (a) in FIG. 1 , the control circuit of the vehicle lamp device C may include a switch control circuit Z, a vehicle lamp power supply circuit G2 and/or an overcurrent protection circuit B.
向该车灯装置的控制电路输入具有该占空比的数值的目标脉冲控制信号具体可以是向开关控制电路Z输入该目标脉冲控制信号,以导通开关控制电路Z和车灯供电电路G2,以控制车灯供电电路G2中流过的电流大小与该目标电能大小匹配。Inputting the target pulse control signal having the value of the duty cycle into the control circuit of the headlight device can specifically be inputting the target pulse control signal into the switch control circuit Z to turn on the switch control circuit Z and the headlight power supply circuit G2 to control the current flowing through the headlight power supply circuit G2 to match the target electric energy.
并且在向开关控制电路Z输入该目标脉冲控制信号的同时,还可以由上述的供电单元G1向该车灯装置中的车灯供电电路G2输出电能,以确保车灯供电电路G2可以向该车灯装置中的车灯输出电能,以供该车灯发射光线。While inputting the target pulse control signal to the switch control circuit Z, the power supply unit G1 can also output electric energy to the headlight power supply circuit G2 in the headlight device to ensure that the headlight power supply circuit G2 can output electric energy to the headlight in the headlight device so that the headlight can emit light.
触发该控制电路向该车灯装置输入目标电能大小的电能,具体可以是由开关控制电路Z控制车灯供电电路G2导通,并控制车灯供电电路G2中流过的电流大小,以使得该控制器为该车灯装置输入的电能可以流入车灯供电电路G2,并由车灯供电电路G2向该车灯装置中的车灯输出目标电能大小的电能。The control circuit is triggered to input electric energy of the target amount to the headlight device. Specifically, the switch control circuit Z can control the headlight power supply circuit G2 to be turned on, and control the amount of current flowing through the headlight power supply circuit G2, so that the electric energy input by the controller to the headlight device can flow into the headlight power supply circuit G2, and the headlight power supply circuit G2 can output electric energy of the target amount to the headlight in the headlight device.
值得注意的是,步骤1006和步骤1007适应于图1中的(a)提供的车辆。这样,可以确保该控制器可以准确地为该车灯装置输入目标电能大小的电能,进而确保该车灯装置中的车灯可以发射出与该目标电能大小的电能匹配的光线。It is worth noting that step 1006 and step 1007 are applicable to the vehicle provided in (a) of Figure 1. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
另外,由于在向该车灯装置的控制电路输入具有该占空比的数值的目标脉冲控制信号的情况下,为 该车灯装置输入目标电能大小的电能也不同,该车灯装置中的车灯发射出光线的亮度也不相同。比如,在该占空比的数值为40%时,该车灯装置中的车灯发射出光线的亮度为最大亮度的40%,该占空比的数值为30%时,该车灯装置中的车灯发射出光线的亮度为最大亮度的30%。本申请实施例对此不做限定。In addition, when a target pulse control signal having a value of the duty ratio is input to the control circuit of the vehicle lamp device, The target electric energy input to the headlight device is different, and the brightness of the light emitted by the headlight in the headlight device is also different. For example, when the duty cycle is 40%, the brightness of the light emitted by the headlight in the headlight device is 40% of the maximum brightness, and when the duty cycle is 30%, the brightness of the light emitted by the headlight in the headlight device is 30% of the maximum brightness. This embodiment of the application does not limit this.
由于该停车时长线性模型可以包括:停车时长与电能大小线性模型,一种可能的实现方式中,参见图5,根据预先建立的停车时长线性模型以及该停车时长,确定该停车时长对应的目标电能信号,包括:Since the parking time linear model may include: a parking time and electric energy linear model, in a possible implementation, referring to FIG. 5 , according to the pre-established parking time linear model and the parking time, determining the target electric energy signal corresponding to the parking time includes:
步骤1008:根据该停车时长,从该停车时长与电能大小线性模型中获取该停车时长对应的目标电能大小。Step 1008: According to the parking time, a target electric energy level corresponding to the parking time is obtained from a linear model of the parking time and the electric energy level.
示例性地,该停车时长与电能大小线性模型中可以包括多个不同的电能大小,并且,每个电能大小可以分别对应一个停车时长,在这种情况下,只要该停车时长发生变化,确定出的目标电能大小就一定会发生变化,那么,在将该目标电能大小的电能输出到该车灯装置时,就可以确保该控制器输入到该车灯装置的电能是持续变化的。Exemplarily, the linear model of parking duration and electric energy size may include multiple different electric energy sizes, and each electric energy size may correspond to a parking duration. In this case, as long as the parking duration changes, the determined target electric energy size will definitely change. Then, when the electric energy of the target electric energy size is output to the headlight device, it can be ensured that the electric energy input by the controller to the headlight device is continuously changing.
例如,在该停车时长为1秒时对应的是电流为5A的电能、在该停车时长为2秒时对应的是电流为4.99A的电能、…、在该停车时长为300秒时对应的是电流为2A的电能、…、在该停车时长为500秒时对应的是电流为0A的电能。For example, when the parking time is 1 second, the corresponding current is 5A of electric energy, when the parking time is 2 seconds, the corresponding current is 4.99A of electric energy,..., when the parking time is 300 seconds, the corresponding current is 2A of electric energy,..., when the parking time is 500 seconds, the corresponding current is 0A of electric energy.
每个电能大小也可以分别对应一个停车时长区间。在这种情况下,该停车时长处于同一停车时长区间时,确定的该目标电能大小是不变的,也即,向该车灯装置输入目标电能大小的电能是不变的,那么在这个停车时长区间内,该车灯装置发射出的光线的亮度就是不变的。Each electric energy level may also correspond to a parking time interval. In this case, when the parking time is in the same parking time interval, the target electric energy level is constant, that is, the electric energy input to the vehicle lamp device of the target electric energy level is constant, and then within this parking time interval, the brightness of the light emitted by the vehicle lamp device is constant.
又例如,比如可以在该停车时长与脉冲控制信号占空比线性模型中设置四个停车时长区间,第一个停车时长区间为0-3分钟、第二个停车时长区间为3-30分钟、第三个停车时长区间为30-60分钟、第一个停车时长区间为大于60分钟的区间。第一个停车时长区间对应的是电流为5A的电能,第二个停车时长区间对应的是电流为4A的电能,第三个停车时长区间对应的是电流为3A的电能,第四个停车时长区间对应的是电流为2A的电能。For another example, four parking time intervals can be set in the parking time and pulse control signal duty cycle linear model, the first parking time interval is 0-3 minutes, the second parking time interval is 3-30 minutes, the third parking time interval is 30-60 minutes, and the first parking time interval is an interval greater than 60 minutes. The first parking time interval corresponds to an electric energy with a current of 5A, the second parking time interval corresponds to an electric energy with a current of 4A, the third parking time interval corresponds to an electric energy with a current of 3A, and the fourth parking time interval corresponds to an electric energy with a current of 2A.
这样,可以准确地在停车时长与电能大小线性模型中获取到该停车时长对应的目标电能大小。In this way, the target electric energy amount corresponding to the parking time can be accurately obtained in the linear model of parking time and electric energy amount.
向该车灯装置输入该目标电能大小的电能,包括:Inputting electric energy of the target electric energy amount into the vehicle lamp device comprises:
步骤1009:向该车灯装置的控制电路输入具有该目标电能大小的电能,以触发该控制电路向该车灯装置输入目标电能大小的电能。Step 1009: Inputting electric energy having the target electric energy level into the control circuit of the vehicle lamp device to trigger the control circuit to input electric energy having the target electric energy level into the vehicle lamp device.
可选地,该目标脉冲控制信号可以是指具有上述确定出的占空比的数值的脉冲控制信号。Optionally, the target pulse control signal may refer to a pulse control signal having the value of the duty cycle determined above.
可选地,继续参见图1中的(b),该车灯装置C的控制电路可以包括车灯供电电路G2。Optionally, referring to (b) in FIG. 1 , the control circuit of the vehicle lamp device C may include a vehicle lamp power supply circuit G2 .
向该车灯装置的控制电路输入具有该目标电能大小的电能具体可以是向车灯供电电路G2输入具有该目标电能大小的电能。Inputting electric energy having the target electric energy magnitude into the control circuit of the vehicle lamp device may specifically be inputting electric energy having the target electric energy magnitude into the vehicle lamp power supply circuit G2 .
并且向该车灯装置的控制电路输入具有该目标电能大小的电能时,就可以导通车灯供电电路G2,并使得车灯供电电路G2可以将具有该目标电能大小的电能完全输入到该车灯装置中的车灯。 When electric energy with the target electric energy level is input to the control circuit of the vehicle lamp device, the vehicle lamp power supply circuit G2 can be turned on, and the vehicle lamp power supply circuit G2 can fully input the electric energy with the target electric energy level into the vehicle lamp in the vehicle lamp device.
触发该控制电路向该车灯装置输入目标电能大小的电能,具体可以是使得该控制器为该车灯装置输入的电能可以流入车灯供电电路G2,并由车灯供电电路G2向该车灯装置中的车灯输出目标电能大小的电能。The control circuit is triggered to input electric energy of the target amount to the headlight device, specifically, the electric energy input by the controller to the headlight device can flow into the headlight power supply circuit G2, and the headlight power supply circuit G2 outputs electric energy of the target amount to the headlight in the headlight device.
值得注意的是,步骤1008和步骤1009适应于图1中的(b)提供的车辆。这样,可以确保该控制器可以准确地为该车灯装置输入目标电能大小的电能,进而确保该车灯装置中的车灯可以发射出与该目标电能大小的电能匹配的光线。It is worth noting that step 1008 and step 1009 are applicable to the vehicle provided in (b) of Figure 1. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
另外,若向该车灯装置的控制电路输入具有该目标电能大小的电能不同,该车灯装置中的车灯发射出光线的亮度也不相同。比如,在输入电流为3A的电能时,该车灯装置中的车灯发射出光线的亮度为最大亮度的40%,在输入电流为2A的电能时,该车灯装置中的车灯发射出光线的亮度为最大亮度的30%。本申请实施例对此不做限定。In addition, if different electric energies having the target electric energy magnitude are input to the control circuit of the vehicle lamp device, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different. For example, when the input current is 3A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 40% of the maximum brightness, and when the input current is 2A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 30% of the maximum brightness. This embodiment of the present application does not limit this.
一种可能的实现方式中,参见图6,该控制器则根据该车速调整输入至该车灯装置的电能大小,包括:In a possible implementation, referring to FIG. 6 , the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, including:
步骤1010:根据预先建立的车速线性模型以及该车速,确定该车速对应的目标电能信号。Step 1010: Determine a target electric energy signal corresponding to the vehicle speed based on a pre-established vehicle speed linear model and the vehicle speed.
可选地,该车速线性模型可以是由相关技术人员根据实际需要建立的线性模型。Optionally, the vehicle speed linear model may be a linear model established by relevant technical personnel according to actual needs.
该车速线性模型可以用于指示与该车速对应的目标电能信号,也就是说,可以通过该车速线性模型确定出与该车速对应的目标电能信号。The vehicle speed linear model may be used to indicate a target electric energy signal corresponding to the vehicle speed, that is, the target electric energy signal corresponding to the vehicle speed may be determined by the vehicle speed linear model.
示例性地,该车速线性模型可以包括:车速与脉冲控制信号占空比线性模型,或车速与电能大小线性模型。Exemplarily, the vehicle speed linear model may include: a vehicle speed and pulse control signal duty cycle linear model, or a vehicle speed and electric energy size linear model.
该车速与脉冲控制信号占空比线性模型可以用于指示与该车速对应的脉冲控制信号的占空比的数值。该车速与电能大小线性模型可以用于指示与该车速对应的需要输入到该车灯装置的电能大小。The vehicle speed and pulse control signal duty cycle linear model can be used to indicate the duty cycle value of the pulse control signal corresponding to the vehicle speed. The vehicle speed and electric energy linear model can be used to indicate the electric energy required to be input to the vehicle light device corresponding to the vehicle speed.
这样,就可以准确地确定出该车速对应的目标电能信号,以准确地控制该控制器输入该车灯装置的电能。In this way, the target electric energy signal corresponding to the vehicle speed can be accurately determined to accurately control the electric energy input into the vehicle light device by the controller.
步骤1011:根据该目标电能信号,向该车灯装置输入目标电能大小的电能。Step 1011: According to the target power signal, input power of a target power level into the vehicle light device.
由于该车灯装置发射光线时,是根据输入该车灯装置的电能大小来决定该车灯装置发射光线的亮度的,那么在向该车灯装置输入目标电能大小的电能之后,该车灯装置就会发出与该目标电能大小匹配的电能。Since the brightness of the light emitted by the headlight device is determined by the amount of electric energy input into the headlight device, after the target amount of electric energy is input into the headlight device, the headlight device will emit electric energy matching the target amount of electric energy.
如此,即可实现根据该车速长来调整该车灯装置发射光线的亮度的目的。In this way, the purpose of adjusting the brightness of the light emitted by the vehicle lamp device according to the vehicle speed can be achieved.
由于该停车时长线性模型可以包括:车速与脉冲控制信号占空比线性模型。一种可能的实现方式中,参见图7,根据预先建立的车速线性模型以及该车速,确定该车速对应的目标电能信号,包括:Since the parking time linear model may include: a linear model of vehicle speed and pulse control signal duty cycle, in a possible implementation, referring to FIG. 7 , according to a pre-established vehicle speed linear model and the vehicle speed, determining a target electric energy signal corresponding to the vehicle speed includes:
步骤1012:根据该车速,从该车速与脉冲控制信号占空比线性模型中获取该车速对应的脉冲控制信号的占空比的数值。Step 1012: According to the vehicle speed, a value of the duty cycle of the pulse control signal corresponding to the vehicle speed is obtained from a linear model of the vehicle speed and the duty cycle of the pulse control signal.
示例性地,该车速与脉冲控制信号占空比线性模型中可以包括多个不同数值的占空比,并且,不同 数值的占空比可以分别对应一个车速,在这种情况下,只要该车速发生变化,确定出的占空比的数值就一定会发生变化,那么,在将该脉冲控制信号输出到该车灯装置时,就可以确保该控制器输入到该车灯装置的电能也是持续变化的。Exemplarily, the vehicle speed and pulse control signal duty cycle linear model may include a plurality of duty cycles with different values, and different The duty cycle value can correspond to a vehicle speed respectively. In this case, as long as the vehicle speed changes, the determined duty cycle value will definitely change. Then, when the pulse control signal is output to the headlight device, it can be ensured that the electrical energy input by the controller to the headlight device also changes continuously.
例如,假设该车辆的最大速度为35千米每小时(km/h),在该车速为3km/h时对应的占空比的数值为10%、在该车速为6km/h时对应的占空比的数值为20%、…在该车速为35km/h时对应的占空比的数值为100%。For example, assuming that the maximum speed of the vehicle is 35 kilometers per hour (km/h), the corresponding duty cycle value when the vehicle speed is 3km/h is 10%, the corresponding duty cycle value when the vehicle speed is 6km/h is 20%,... and the corresponding duty cycle value when the vehicle speed is 35km/h is 100%.
不同数值的占空比也可以分别对应一个车速区间,该车速区间可以是由相关技术人员设置的区间。在这种情况下,该车速处于同一车速区间时,确定的该占空比是不变的,也即,向该车灯装置输入目标电能大小的电能是不变的,那么在这个车速区间内,该车灯装置发射出的光线的亮度就是不变的。The duty cycle of different values may also correspond to a vehicle speed range, which may be a range set by relevant technicians. In this case, when the vehicle speed is in the same speed range, the determined duty cycle is unchanged, that is, the target electric energy input to the vehicle lamp device is unchanged, and then within this vehicle speed range, the brightness of the light emitted by the vehicle lamp device is unchanged.
又例如,假设该车辆的最大速度为35km/h,可以在该车速与脉冲控制信号占空比线性模型中设置五个车速区间,第一个车速区间为0-15km/h、第二个车速区间为16-20km/h、第三个车速区间为21-25km/h、第四个车速区间为26-30km/h、第五个车速区间为31-35km/h。第一个车速区间对应的占空比的数值为50%,第二个车速区间对应的占空比的数值为60%,第三个车速区间对应的占空比的数值为70%,第四个车速区间对应的占空比的数值为85%,第四个车速区间对应的占空比的数值为100%。也可以设置更多的车速区间,并且各车速区间对应的占空比的数值可以根据实际需要进行调整。For another example, assuming that the maximum speed of the vehicle is 35km/h, five speed intervals can be set in the linear model of the speed and pulse control signal duty cycle, the first speed interval is 0-15km/h, the second speed interval is 16-20km/h, the third speed interval is 21-25km/h, the fourth speed interval is 26-30km/h, and the fifth speed interval is 31-35km/h. The duty cycle value corresponding to the first speed interval is 50%, the duty cycle value corresponding to the second speed interval is 60%, the duty cycle value corresponding to the third speed interval is 70%, the duty cycle value corresponding to the fourth speed interval is 85%, and the duty cycle value corresponding to the fourth speed interval is 100%. More speed intervals can also be set, and the duty cycle values corresponding to each speed interval can be adjusted according to actual needs.
这样,可以准确地在车速与脉冲控制信号占空比线性模型中获取到该车速对应的脉冲控制信号的占空比的数值。In this way, the value of the duty cycle of the pulse control signal corresponding to the vehicle speed can be accurately obtained in the linear model of the vehicle speed and the duty cycle of the pulse control signal.
根据该目标电能信号,向该车灯装置输入目标电能大小的电能,包括:Inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
步骤1013:向该车灯装置的控制电路输入具有该占空比的目标脉冲控制信号,以触发该控制电路向该车灯装置输入目标电能大小的电能。Step 1013: Input a target pulse control signal having the duty cycle to a control circuit of the vehicle light device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle light device.
值得注意的是,步骤1012和步骤1013适应于图1中的(a)提供的车辆,向该车灯装置的控制电路输入具有上述确定出的占空比的数值的目标脉冲控制信号可以参见上述实施例中的具体描述,在此不做赘述。这样,可以确保该控制器可以准确地为该车灯装置输入目标电能大小的电能,进而确保该车灯装置中的车灯可以发射出与该目标电能大小的电能匹配的光线。It is worth noting that step 1012 and step 1013 are applicable to the vehicle provided in (a) of FIG. 1 , and the input of the target pulse control signal having the above-determined duty cycle value to the control circuit of the vehicle lamp device can refer to the specific description in the above-mentioned embodiment, which will not be repeated here. In this way, it can be ensured that the controller can accurately input the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the target electric energy size.
另外,由于在向该车灯装置的控制电路输入具有确定出的占空比的数值的目标脉冲控制信号的情况下,为该车灯装置输入目标电能大小的电能也不同,该车灯装置中的车灯发射出光线的亮度也不相同。比如,在该占空比的数值为100%时,该车灯装置中的车灯发射出光线的亮度为最大亮度的100%,该占空比的数值为85%时,该车灯装置中的车灯发射出光线的亮度为最大亮度的85%。本申请实施例对此不做限定。In addition, since the target pulse control signal with the determined duty cycle value is input to the control circuit of the vehicle lamp device, the target electric energy input to the vehicle lamp device is also different, and the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different. For example, when the duty cycle value is 100%, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 100% of the maximum brightness, and when the duty cycle value is 85%, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 85% of the maximum brightness. This embodiment of the present application does not limit this.
一种可能的实现方式中,参见图8,该车速线性模型包括:车速与电能大小线性模型。In a possible implementation, referring to FIG8 , the vehicle speed linear model includes: a vehicle speed and electric energy linear model.
根据预先建立的车速线性模型以及该车速,确定该车速对应的目标电能信号,包括:According to a pre-established vehicle speed linear model and the vehicle speed, a target electric energy signal corresponding to the vehicle speed is determined, including:
步骤1014:根据该车速,从该车速与电能大小线性模型中获取该停车时长对应的目标电能大小。 Step 1014: According to the vehicle speed, a target electric energy amount corresponding to the parking time is obtained from a linear model of the vehicle speed and electric energy amount.
示例性地,该车速与电能大小线性模型中可以包括多个不同的电能大小,并且,每个电能大小可以分别对应一个车速,在这种情况下,只要该车速发生变化,确定出的目标电能大小就一定会发生变化,那么,在将该目标电能大小的电能输出到该车灯装置时,就可以确保该控制器输入到该车灯装置的电能是持续变化的。Exemplarily, the linear model of vehicle speed and electric energy size may include multiple different electric energy sizes, and each electric energy size may correspond to a vehicle speed. In this case, as long as the vehicle speed changes, the determined target electric energy size will definitely change. Then, when the electric energy of the target electric energy size is output to the headlight device, it can be ensured that the electric energy input by the controller to the headlight device is continuously changing.
例如,假设该车辆的最大速度为30千米每小时(km/h),在该车速3km/h时对应的是电流为0.5A的电能、在该车速为6km/h时对应的是电流为1A的电能、…在该车速为30km/h时对应的是电流为5A的电能。For example, assuming that the maximum speed of the vehicle is 30 kilometers per hour (km/h), when the vehicle speed is 3km/h, the corresponding current is 0.5A of electric energy, when the vehicle speed is 6km/h, the corresponding current is 1A of electric energy, and... when the vehicle speed is 30km/h, the corresponding current is 5A of electric energy.
每个电能大小也可以分别对应一个车速区间。在这种情况下,该车速处于同一车速区间时,确定的该目标电能大小是不变的,也即,向该车灯装置输入目标电能大小的电能是不变的,那么在这个车速区间内,该车灯装置发射出的光线的亮度就是不变的。Each electric energy level may also correspond to a vehicle speed range. In this case, when the vehicle speed is in the same vehicle speed range, the target electric energy level is constant, that is, the electric energy input to the vehicle lamp device of the target electric energy level is constant, and then within this vehicle speed range, the brightness of the light emitted by the vehicle lamp device is constant.
又例如,比如可以在该车速与脉冲控制信号占空比线性模型中设置五个车速区间,第一个车速区间为0-15km/h、第二个车速区间为16-20km/h、第三个车速区间为21-25km/h、第四个车速区间为26-30km/h、第五个车速区间为31-35km/h。第一个车速区间对应的是电流为1A的电能,第二个车速区间对应的是电流为2A的电能,第三个车速区间对应的是电流为3A的电能,第四个车速区间对应的是电流为4A的电能,第五个车速区间对应的是电流为5A的电能。For another example, five speed intervals can be set in the linear model of the speed and pulse control signal duty cycle, the first speed interval is 0-15km/h, the second speed interval is 16-20km/h, the third speed interval is 21-25km/h, the fourth speed interval is 26-30km/h, and the fifth speed interval is 31-35km/h. The first speed interval corresponds to an electric energy with a current of 1A, the second speed interval corresponds to an electric energy with a current of 2A, the third speed interval corresponds to an electric energy with a current of 3A, the fourth speed interval corresponds to an electric energy with a current of 4A, and the fifth speed interval corresponds to an electric energy with a current of 5A.
这样,可以准确地在车速与电能大小线性模型中获取到该车速对应的目标电能大小。In this way, the target electric energy size corresponding to the vehicle speed can be accurately obtained in the linear model of vehicle speed and electric energy size.
向该车灯装置输入该目标电能大小的电能信号,包括:Inputting an electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
步骤1015:向该车灯装置的控制电路输入具有该目标电能大小的电能,以触发该控制电路向该车灯装置输入目标电能大小的电能。Step 1015: Inputting electric energy having the target electric energy level into the control circuit of the vehicle light device to trigger the control circuit to input electric energy having the target electric energy level into the vehicle light device.
值得注意的是,步骤1014和步骤1015适应于图1中的(b)提供的车辆,向该车灯装置的控制电路输入具有该目标电能大小的电能可以参见上述实施例中的具体描述,在此不做赘述。这样,可以确保该控制器可以准确地为该车灯装置输入目标电能大小的电能,进而确保该车灯装置中的车灯可以发射出与该目标电能大小的电能匹配的光线。It is worth noting that step 1014 and step 1015 are applicable to the vehicle provided in (b) of FIG. 1 . The input of electric energy having the target electric energy size to the control circuit of the vehicle lamp device can refer to the specific description in the above embodiment, which will not be repeated here. In this way, it can be ensured that the controller can accurately input electric energy of the target electric energy size to the vehicle lamp device, thereby ensuring that the vehicle lamp in the vehicle lamp device can emit light matching the electric energy of the target electric energy size.
另外,若向该车灯装置的控制电路输入具有该目标电能大小的电能不同,该车灯装置中的车灯发射出光线的亮度也不相同。比如,在输入电流为1A的电能时,该车灯装置中的车灯发射出光线的亮度为最大亮度的20%,在输入电流为5A的电能时,该车灯装置中的车灯发射出光线的亮度为最大亮度的100%。本申请实施例对此不做限定。In addition, if different electric energies having the target electric energy magnitude are input to the control circuit of the vehicle lamp device, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is also different. For example, when the input current is 1A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 20% of the maximum brightness, and when the input current is 5A of electric energy, the brightness of the light emitted by the vehicle lamp in the vehicle lamp device is 100% of the maximum brightness. This embodiment of the present application does not limit this.
一种可能的实现方式中,参见图9,由于该车辆中还包括:加速度检测装置。该控制器则根据该车速调整输入至该车灯装置的电能大小,包括:In a possible implementation, referring to FIG9 , since the vehicle further includes: an acceleration detection device. The controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
步骤1016:接收并解析该加速度检测装置输出的加速度信号,以得到该加速度信号指示的该车辆的加速度。Step 1016: Receive and analyze the acceleration signal output by the acceleration detection device to obtain the acceleration of the vehicle indicated by the acceleration signal.
可选地,可以由上述信号处理单元X接收该加速度信号,并将该加速度信号输出至上述MCU,由 MCU解析该加速度信号。Optionally, the signal processing unit X may receive the acceleration signal and output the acceleration signal to the MCU. The MCU analyzes the acceleration signal.
步骤1017:确定该加速度的方向与该车速的方向相反或相同。Step 1017: Determine whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed.
步骤1018:若相同,则根据该车速调整输入至该车灯装置的电能大小。Step 1018: If they are the same, adjust the amount of electrical energy input to the vehicle lighting device according to the vehicle speed.
一般地,若该加速度的方向与该车速的方向相同则表明该车辆加速,而该加速度的值大于该预设阈值,就表明该车辆处于急加速的状态,则需根据该车速调整输入至该车灯装置的电能大小。Generally, if the direction of the acceleration is the same as the direction of the vehicle speed, it indicates that the vehicle is accelerating, and if the value of the acceleration is greater than the preset threshold, it indicates that the vehicle is in a state of rapid acceleration, and the amount of electrical energy input to the headlight device needs to be adjusted according to the vehicle speed.
步骤1019:若相反,则确定该加速度的值是否大于预设阈值。Step 1019: If not, determine whether the acceleration value is greater than a preset threshold.
可选地,该预设阈值可以是由相关技术人员提前设置的阈值,该预设阈值可以是一个加速度的绝对值,一般地可以将该预设阈值设置的较大,本申请对此不作限定。Optionally, the preset threshold may be a threshold set in advance by relevant technical personnel. The preset threshold may be an absolute value of acceleration. Generally, the preset threshold may be set larger, and the present application does not limit this.
一般地,若该加速度的方向与该车速的方向相反则表明该车辆减速,而该加速度的值大于该预设阈值,就表明该车辆处于急减速的状态。而如果该车辆处于急减速的状态,则表明用户可能遇到了比较紧急的情况,这时候就需要提供亮度较高的光线来照亮周围的环境,那么,就可以不调整输入至该车灯装置的电能大小。Generally, if the direction of the acceleration is opposite to the direction of the vehicle speed, it indicates that the vehicle is decelerating, and if the value of the acceleration is greater than the preset threshold, it indicates that the vehicle is in a state of rapid deceleration. If the vehicle is in a state of rapid deceleration, it indicates that the user may have encountered a more urgent situation, and at this time, a higher brightness light is needed to illuminate the surrounding environment, so the amount of power input to the vehicle light device may not be adjusted.
步骤1020:若该加速度的值大于该预设阈值,则不调整输入至该车灯装置的电能大小。Step 1020: If the acceleration value is greater than the preset threshold, then the amount of electrical energy input to the vehicle light device is not adjusted.
值得注意的是,在该加速度的值大于该预设阈值的情况下,可以确定该车辆处于在急加速或急减速的状态,那么,就需要确定该加速度的方向与该车速的方向相反或相同。It is worth noting that when the acceleration value is greater than the preset threshold, it can be determined that the vehicle is in a state of rapid acceleration or rapid deceleration. Then, it is necessary to determine whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed.
步骤1021:若该加速度的值不大于该预设阈值,则根据该车速调整输入至该车灯装置的电能大小。Step 1021: If the acceleration value is not greater than the preset threshold, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
值得注意的是,在该加速度的值不大于该预设阈值的情况下,可以确定该车辆不处于在急加速或急减速的状态,那么就可以根据该车速来调整输入至该车灯装置的电能大小,进而调整该车灯装置发射的光线的亮度。It is worth noting that when the acceleration value is not greater than the preset threshold, it can be determined that the vehicle is not in a state of rapid acceleration or deceleration. Then, the amount of electrical energy input to the headlight device can be adjusted according to the vehicle speed, thereby adjusting the brightness of the light emitted by the headlight device.
一种可能的实现方式中,在执行步骤1016之后,还可以通过执行如下步骤来调整输入至该车灯装置的电能大小:In a possible implementation, after executing step 1016, the amount of electric energy input to the vehicle light device may be adjusted by executing the following steps:
确定该加速度的值是否大于预设阈值。Determine whether the value of the acceleration is greater than a preset threshold.
若否,则根据该车速调整输入至该车灯装置的电能大小。If not, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
若是,则确定该加速度的方向与该车速的方向相反或相同。If so, it is determined whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed.
若相同,则根据该车速调整输入至该车灯装置的电能大小。If they are the same, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
若相反,则不调整输入至该车灯装置的电能大小。If the opposite is true, the amount of electrical energy input to the vehicle lamp device will not be adjusted.
这样,通过多种不同的方式调整输入至该车灯装置的电能大小,以调整该车灯装置发出的灯光亮度,可以提高灯光控制的灵活性。并且,根据加速度与车速的方向、以及加速度的大小来调整该车灯装置发出的灯光亮度,还可以根据实际情况为用户提供更为有效的照明辅助。In this way, by adjusting the amount of electrical energy input to the vehicle lamp device in a variety of different ways to adjust the brightness of the light emitted by the vehicle lamp device, the flexibility of light control can be improved. In addition, by adjusting the brightness of the light emitted by the vehicle lamp device according to the direction of the acceleration and the speed of the vehicle, as well as the magnitude of the acceleration, more effective lighting assistance can be provided to the user according to actual conditions.
一种可能的方式,在执行完确定该加速度的方向与该车速的方向相反或相同的步骤之后,若相反,还可以将输入至该车灯装置的电能大小调整为预设电能大小,该预设电能大小可以是由相关技术人员提前设置的,在将该预设电能大小输入到该车灯装置之后,该车灯装置可以发射与该预设电能大小匹配的 光线。In one possible manner, after executing the step of determining whether the direction of the acceleration is opposite to or the same as the direction of the vehicle speed, if the direction is opposite, the magnitude of the electric energy input to the vehicle light device may be adjusted to a preset magnitude of electric energy, which may be set in advance by relevant technicians. After the preset magnitude of electric energy is input to the vehicle light device, the vehicle light device may emit a signal matching the preset magnitude of electric energy. Light.
一般地,与该预设电能大小匹配的光线的亮度可以大于该车灯装置最大亮度的50%,本申请实施例对此不做限定。Generally, the brightness of the light that matches the preset electric energy level may be greater than 50% of the maximum brightness of the vehicle light device, which is not limited in the embodiment of the present application.
一种可能的实现方式中,该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线,包括:In a possible implementation, the controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction, including:
该控制器响应于灯光开启指令,生成预设脉冲控制信号,并将该预设脉冲控制信号输出至该车灯装置的控制电路,以使得该控制电路向该车灯装置输入预设电能大小的电能。The controller generates a preset pulse control signal in response to a light-on instruction, and outputs the preset pulse control signal to a control circuit of the vehicle light device, so that the control circuit inputs electric energy of a preset electric energy amount to the vehicle light device.
可选地,该预设脉冲控制信号为具有预设占空比的脉冲控制信号,该预设占空比用于指示预设电能大小,该预设占空比还用于指示控制该车灯装置中的车灯供电电路的导通程度,以及该车灯供电电路在导通的情况下可以流过的电流大小。Optionally, the preset pulse control signal is a pulse control signal with a preset duty cycle, which is used to indicate a preset amount of electric energy. The preset duty cycle is also used to indicate the degree of conduction of a headlight power supply circuit in the headlight device, and the amount of current that can flow through the headlight power supply circuit when it is turned on.
该预设脉冲控制信号具体用于控制该车灯装置中的车灯供电电路导通,并向该车灯装置中的车灯输出预设电能大小的电能。The preset pulse control signal is specifically used to control the conduction of the headlight power supply circuit in the headlight device and output electric energy of a preset electric energy amount to the headlight in the headlight device.
一种可能的实现方式中,在该控制器响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线之前,该方法还包括:In a possible implementation, before the controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction, the method further includes:
该控制器接收该状态信息检测装置输出的状态信息。The controller receives the status information output by the status information detection device.
可选地,该状态信息检测装置可以是安装在该车辆上的各种用于检测状态信息的装置,本申请实施例对此不做限定。Optionally, the status information detection device may be any device installed on the vehicle for detecting status information, which is not limited in this embodiment of the present application.
可选地,该状态信息可以包括该车辆的电池输出的电压大小、电流大小、该电池的剩余电量、该电池的温度、电机温度、电机转速等信息。Optionally, the status information may include information such as the voltage and current output by the battery of the vehicle, the remaining power of the battery, the temperature of the battery, the temperature of the motor, the speed of the motor, etc.
该控制器根据该状态信息确定该车辆是否正常上电工作。The controller determines whether the vehicle is powered on and working normally according to the status information.
若否,该控制器则输出提示信息。If not, the controller outputs a prompt message.
可选地,该提示信息可以是灯光、声音、文字、图像等各种形式的信息,该提示信息用于指示该车辆无法正常上电工作,以及时告知用户对该车辆进行排障或维修。Optionally, the prompt information may be in various forms of information such as light, sound, text, image, etc. The prompt information is used to indicate that the vehicle cannot be powered on and work normally, so as to promptly inform the user to troubleshoot or repair the vehicle.
若是,该控制器则执行获取车辆的车速的步骤。If so, the controller executes the step of obtaining the vehicle speed.
这样,就可以实现车辆实时状态实现自动调节车灯亮度的目的。In this way, the purpose of automatically adjusting the brightness of the lights can be achieved according to the real-time status of the vehicle.
下述对用以执行的本申请所提供灯光控制方法的装置、设备及计算机可读存储介质等进行说明,其具体的实现过程以及技术效果参见上述,下述不再赘述。The following describes the device, equipment, and computer-readable storage medium used to execute the lighting control method provided by the present application. The specific implementation process and technical effects are described above and will not be repeated below.
图10是本申请实施例提供的一种灯光控制装置的结构示意图,参见图10,应用于上述车辆中的控制器,该装置包括:FIG. 10 is a schematic diagram of the structure of a lighting control device provided in an embodiment of the present application. Referring to FIG. 10 , a controller applied to the above-mentioned vehicle includes:
控制模块201,用于响应于灯光开启指令,控制该车辆上的车灯装置启动并发射光线;The control module 201 is used to control the vehicle light device to start and emit light in response to the light on instruction;
第一调整模块202,用于在该车辆的车速为0的情况下,根据该车辆的停车时长调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度,该停车时长的起始时刻为该车速上一次不为0的 时刻,该停车时长的终止时刻为当前时刻;The first adjustment module 202 is used to adjust the amount of electric energy input to the headlight device according to the parking time of the vehicle when the vehicle speed is 0, so as to adjust the brightness of the light emitted by the headlight device. The starting time of the parking time is the last time when the vehicle speed is not 0. The end time of the parking time is the current time;
第二调整模块203,用于在该车速不为0的情况下,该控制器则根据该车速调整输入至该车灯装置的电能大小,以调整该车灯装置发射光线的亮度。The second adjustment module 203 is used for, when the vehicle speed is not zero, the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, so as to adjust the brightness of the light emitted by the vehicle light device.
上述装置用于执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器,或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors, or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
图11是本申请实施例提供的一种计算机设备的结构示意图。参见图11,计算机设备300包括:存储器301、处理器302,存储器301中存储有可在处理器302上运行的计算机程序,处理器302执行计算机程序时,实现上述任意各个方法实施例中的步骤。Fig. 11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Referring to Fig. 11, the computer device 300 includes: a memory 301 and a processor 302. The memory 301 stores a computer program that can be run on the processor 302. When the processor 302 executes the computer program, the steps in any of the above method embodiments are implemented.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时可实现上述各个方法实施例中的步骤。An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
可选地,本申请还提供一种程序产品,例如计算机可读存储介质,包括程序,该程序在被处理器执行时用于执行上述任一灯光控制方法实施例。Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute any of the above-mentioned lighting control method embodiments when executed by a processor.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存 储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory Random Access Memory (RAM), magnetic disk, CD, or other media that can store program code.
上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

  1. 一种灯光控制方法,其特征在于,应用于车辆中的控制器,所述方法包括:A lighting control method, characterized in that it is applied to a controller in a vehicle, the method comprising:
    所述控制器响应于灯光开启指令,控制所述车辆上的车灯装置启动并发射光线;The controller controls the vehicle light device on the vehicle to start and emit light in response to the light-on instruction;
    若所述车辆的车速为0,所述控制器则根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度,所述停车时长的起始时刻为所述车速上一次不为0的时刻,所述停车时长的终止时刻为当前时刻;If the speed of the vehicle is 0, the controller adjusts the amount of electric energy input to the headlight device according to the parking time of the vehicle to adjust the brightness of the light emitted by the headlight device, the starting time of the parking time is the time when the vehicle speed was not 0 last time, and the ending time of the parking time is the current time;
    若所述车速不为0,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度。If the vehicle speed is not zero, the controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed to adjust the brightness of the light emitted by the vehicle light device.
  2. 如权利要求1所述的灯光控制方法,其特征在于,所述控制器则根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,包括:The lighting control method according to claim 1 is characterized in that the controller adjusts the amount of electrical energy input to the vehicle lighting device according to the parking time of the vehicle, comprising:
    根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号;Determining a target electric energy signal corresponding to the parking time according to a pre-established parking time linear model and the parking time;
    根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能。According to the target power signal, electric energy of a target power level is input into the vehicle light device.
  3. 如权利要求2所述的灯光控制方法,其特征在于,所述停车时长线性模型包括:停车时长与脉冲控制信号占空比线性模型;The lighting control method according to claim 2, characterized in that the parking time linear model comprises: a parking time and a pulse control signal duty cycle linear model;
    所述根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号,包括:The determining, according to the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
    根据所述停车时长,从所述停车时长与脉冲控制信号占空比线性模型中获取所述停车时长对应的脉冲控制信号的占空比的数值;According to the parking time, obtaining a value of the duty cycle of the pulse control signal corresponding to the parking time from a linear model of the parking time and the duty cycle of the pulse control signal;
    所述根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能,包括:The step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
    向所述车灯装置的控制电路输入具有所述占空比的目标脉冲控制信号,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。A target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
  4. 如权利要求2所述的灯光控制方法,其特征在于,所述停车时长线性模型包括:停车时长与电能大小线性模型;The lighting control method according to claim 2, characterized in that the parking time linear model comprises: a parking time and electric energy linear model;
    所述根据预先建立的停车时长线性模型以及所述停车时长,确定所述停车时长对应的目标电能信号,包括:The determining, based on the pre-established parking time linear model and the parking time, a target electric energy signal corresponding to the parking time includes:
    根据所述停车时长,从所述停车时长与电能大小线性模型中获取所述停车时长对应的目标电能大小;According to the parking time, obtaining a target electric energy amount corresponding to the parking time from a linear model of the parking time and electric energy amount;
    所述向所述车灯装置输入所述目标电能大小的电能,包括: The step of inputting electric energy of the target electric energy amount into the vehicle lamp device comprises:
    向所述车灯装置的控制电路输入具有所述目标电能大小的电能,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。The electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
  5. 如权利要求1所述的灯光控制方法,其特征在于,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,包括:The lighting control method according to claim 1, wherein the controller adjusts the amount of electrical energy input to the vehicle lighting device according to the vehicle speed, comprising:
    根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号;Determining a target electric energy signal corresponding to the vehicle speed according to a pre-established vehicle speed linear model and the vehicle speed;
    根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能。According to the target power signal, electric energy of a target power level is input into the vehicle light device.
  6. 如权利要求5所述的灯光控制方法,其特征在于,所述车速线性模型包括:车速与脉冲控制信号占空比线性模型;The lighting control method according to claim 5, characterized in that the vehicle speed linear model comprises: a vehicle speed and pulse control signal duty cycle linear model;
    所述根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号,包括:Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
    根据所述车速,从所述车速与脉冲控制信号占空比线性模型中获取所述车速对应的脉冲控制信号的占空比的数值;According to the vehicle speed, obtaining a value of the duty cycle of the pulse control signal corresponding to the vehicle speed from a linear model of the vehicle speed and the duty cycle of the pulse control signal;
    所述根据所述目标电能信号,向所述车灯装置输入目标电能大小的电能,包括:The step of inputting electric energy of a target electric energy amount into the vehicle lamp device according to the target electric energy signal comprises:
    向所述车灯装置的控制电路输入具有所述占空比的目标脉冲控制信号,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。A target pulse control signal having the duty cycle is input to a control circuit of the vehicle lamp device to trigger the control circuit to input electric energy of a target electric energy amount to the vehicle lamp device.
  7. 如权利要求5所述的灯光控制方法,其特征在于,所述车速线性模型包括:车速与电能大小线性模型;The lighting control method according to claim 5, characterized in that the vehicle speed linear model comprises: a vehicle speed and electric energy size linear model;
    所述根据预先建立的车速线性模型以及所述车速,确定所述车速对应的目标电能信号,包括:Determining the target electric energy signal corresponding to the vehicle speed according to the pre-established vehicle speed linear model and the vehicle speed includes:
    根据所述车速,从所述车速与电能大小线性模型中获取所述停车时长对应的目标电能大小;According to the vehicle speed, obtaining a target electric energy amount corresponding to the parking time from a linear model of the vehicle speed and electric energy amount;
    所述向所述车灯装置输入所述目标电能大小的电能信号,包括:The step of inputting the electric energy signal of the target electric energy amount into the vehicle lamp device comprises:
    向所述车灯装置的控制电路输入具有所述目标电能大小的电能,以触发所述控制电路向所述车灯装置输入目标电能大小的电能。The electric energy having the target electric energy level is input to the control circuit of the vehicle light device to trigger the control circuit to input the electric energy having the target electric energy level to the vehicle light device.
  8. 如权利要求1-7任一项所述的灯光控制方法,其特征在于,所述车辆中还包括:加速度检测装置;The lighting control method according to any one of claims 1 to 7, characterized in that the vehicle further comprises: an acceleration detection device;
    所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,包括:The controller adjusts the amount of electrical energy input to the vehicle light device according to the vehicle speed, including:
    接收并解析所述加速度检测装置输出的加速度信号,以得到所述加速度信号指示的所述车辆的加速度;receiving and analyzing the acceleration signal output by the acceleration detection device to obtain the acceleration of the vehicle indicated by the acceleration signal;
    确定所述加速度的方向与所述车速的方向相反或相同;determining whether a direction of the acceleration is opposite to or the same as a direction of the vehicle speed;
    若相同,则根据所述车速调整输入至所述车灯装置的电能大小;If they are the same, adjusting the amount of electrical energy input to the vehicle light device according to the vehicle speed;
    若相反,则确定所述加速度的值是否大于预设阈值;If the opposite is true, determining whether the value of the acceleration is greater than a preset threshold;
    若所述加速度的值大于所述预设阈值,则不调整输入至所述车灯装置的电能大小; If the acceleration value is greater than the preset threshold, the amount of electrical energy input to the vehicle light device is not adjusted;
    若所述加速度的值不大于所述预设阈值,则根据所述车速调整输入至所述车灯装置的电能大小。If the value of the acceleration is not greater than the preset threshold, the amount of electrical energy input to the vehicle light device is adjusted according to the vehicle speed.
  9. 一种灯光控制装置,其特征在于,应用于车辆中的控制器,所述装置包括:A lighting control device, characterized in that it is applied to a controller in a vehicle, and the device comprises:
    控制模块,用于响应于灯光开启指令,控制所述车辆上的车灯装置启动并发射光线;A control module, for controlling the vehicle light device on the vehicle to start and emit light in response to a light-on instruction;
    第一调整模块,用于在所述车辆的车速为0的情况下,根据所述车辆的停车时长调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度,所述停车时长的起始时刻为所述车速上一次不为0的时刻,所述停车时长的终止时刻为当前时刻;a first adjustment module, for adjusting the amount of electric energy input to the headlight device according to the parking time of the vehicle when the vehicle speed is 0, so as to adjust the brightness of the light emitted by the headlight device, wherein the starting time of the parking time is the time when the vehicle speed is not 0 last time, and the ending time of the parking time is the current time;
    第二调整模块,用于在所述车速不为0的情况下,所述控制器则根据所述车速调整输入至所述车灯装置的电能大小,以调整所述车灯装置发射光线的亮度。The second adjustment module is used for, when the vehicle speed is not zero, the controller adjusts the amount of electric energy input to the vehicle light device according to the vehicle speed, so as to adjust the brightness of the light emitted by the vehicle light device.
  10. 一种计算机设备,其特征在于,包括:存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述权利要求1至8任一项所述的灯光控制方法的步骤。 A computer device, characterized in that it comprises: a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the lighting control method described in any one of claims 1 to 8 are implemented.
PCT/CN2023/120108 2022-10-28 2023-09-20 Lamplight control method and apparatus, computer device, and computer-readable storage medium WO2024087954A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211337568.3 2022-10-28
CN202211337568.3A CN115915552A (en) 2022-10-28 2022-10-28 Light control method and device, computer equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2024087954A1 true WO2024087954A1 (en) 2024-05-02

Family

ID=86476908

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/120108 WO2024087954A1 (en) 2022-10-28 2023-09-20 Lamplight control method and apparatus, computer device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115915552A (en)
WO (1) WO2024087954A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115915552A (en) * 2022-10-28 2023-04-04 南京懂玫驱动技术有限公司 Light control method and device, computer equipment and computer-readable storage medium
CN116782467B (en) * 2023-08-10 2024-03-15 江苏省镇江第一中学 Intelligent light control system and method for vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179368A1 (en) * 2003-03-14 2004-09-16 Hitoshi Takeda Vehicular lamp
CN102463926A (en) * 2010-11-15 2012-05-23 徐洁纯 Automatic switching control circuit for automobile HID (High Intensity Discharge) lamp
CN105015403A (en) * 2014-04-22 2015-11-04 摩特动力工业股份有限公司 Automobile light control device
CN110027465A (en) * 2019-04-18 2019-07-19 奇瑞汽车股份有限公司 Vehicle light control method, device, storage medium and car-mounted terminal
CN115195583A (en) * 2021-04-13 2022-10-18 广州汽车集团股份有限公司 Vehicle back-row atmosphere lamp control method and system and computer-readable storage medium
CN115915552A (en) * 2022-10-28 2023-04-04 南京懂玫驱动技术有限公司 Light control method and device, computer equipment and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179368A1 (en) * 2003-03-14 2004-09-16 Hitoshi Takeda Vehicular lamp
CN102463926A (en) * 2010-11-15 2012-05-23 徐洁纯 Automatic switching control circuit for automobile HID (High Intensity Discharge) lamp
CN105015403A (en) * 2014-04-22 2015-11-04 摩特动力工业股份有限公司 Automobile light control device
CN110027465A (en) * 2019-04-18 2019-07-19 奇瑞汽车股份有限公司 Vehicle light control method, device, storage medium and car-mounted terminal
CN115195583A (en) * 2021-04-13 2022-10-18 广州汽车集团股份有限公司 Vehicle back-row atmosphere lamp control method and system and computer-readable storage medium
CN115915552A (en) * 2022-10-28 2023-04-04 南京懂玫驱动技术有限公司 Light control method and device, computer equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN115915552A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
WO2024087954A1 (en) Lamplight control method and apparatus, computer device, and computer-readable storage medium
KR102562458B1 (en) Dormancy controlling method for on board computing platform, device and readable storage medium
WO2022028571A1 (en) Control method and device for atmosphere lamp, and vehicle and storage medium
JP2004155392A (en) Direction indicating device for vehicle
US10637282B2 (en) Light fixture with power loss detection and emergency egress mode
WO2022142353A1 (en) Vehicle light control device and method
EP2390135A1 (en) Control device for vehicle turn lights
CN107310465B (en) Brake lamp, control method and device thereof, storage medium and vehicle
US7181351B2 (en) Status indicator and status indicating method
JP5611647B2 (en) Stop lamp control device
JP2014157785A (en) Drive circuit, and lamp for vehicles
JP6119510B2 (en) LED lighting unit abnormality detection device
JP6899178B2 (en) Vehicle light sensing flash warning device
WO2017168933A1 (en) Light illumination control device
JP3252096B2 (en) Lamp drive
JP7233888B2 (en) VEHICLE CONTROL DEVICE, VEHICLE, AND METHOD OF CONTROLLING VEHICLE CONTROL DEVICE
KR20180051111A (en) Apparatus for controlling lamp of a vehicle and method thereof
JP2006033411A (en) Detection sensor circuit
CN110958746B (en) LED (light emitting diode) rear-stage multi-control eye-relaxing high-brightness driving circuit
CN210444536U (en) Light-operated LED lamp circuit
CN210139811U (en) Dynamic steering lamp design circuit
CN220210641U (en) Automobile braking position lamp control circuit
JP6623591B2 (en) Control device for vehicle lighting
WO2023106199A1 (en) Lighting circuit and vehicle lamp
KR101076530B1 (en) Apparatus for automatically controlling power loss of light emitting diode drive module