Door lamp control method, device and system and target vehicle

By introducing electronic equipment into the vehicle's door light control system, the door light control message is identified and processed, and flexible control of the car lights is achieved, the problem that the car light control must be fixed in the existing technology is solved, and the flexibility and real-time nature of car light control are improved.

CN120056861APending Publication Date: 2025-05-30TIANJIN JINGWEI HIRAIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510464770.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art cannot achieve flexible control of the headlights, and the gradual lights of the headlights and the period and frequency of the PWM waves must be set firmly.

Method used

By introducing the first and second electronic devices into the door lamp control system, the door lamp control message is received and identified by the communication connection, the control information of the main driver and the co-pilot door lamp are determined, and the process of the door lamp gradually light and extinguishing is controlled separately according to these information.

Benefits of technology

It realizes flexible control of the main driver and co-pilot door lights, no longer need to set the time of gradually turning on and off, and the period and frequency of the PWM wave, and can interfere and control in real time according to the door light control message.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120056861A_ABST
    Figure CN120056861A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of door lamp control, in particular to a door lamp control method, device and system and a target vehicle. Receiving a door lamp control message sent by the second electronic equipment; identifying the door lamp control message, and determining main driver door lamp control information and co-driver door lamp control information in the door lamp control message; and respectively controlling a main driver door lamp and a co-driver door lamp according to the main driver door lamp control information and the co-driver door lamp control information. The main driver door lamp and the co-driver door lamp can be flexibly controlled. Therefore, the time of gradually lightening and gradually extinguishing the door lamp and the period and the frequency of the generated PWM wave do not need to be fixedly set, that is, the lamp light is triggered to execute gradually lightening and gradually extinguishing when the vehicle door is opened or closed. Therefore, according to the door lamp control method, the door lamp can be turned on from off or turned on from off without a fixed time mode, in addition, interaction with message information of the second electronic equipment can be carried out, and therefore interference and control over the gradually-on and gradually-off process of the door lamp are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of door light control, and specifically relates to a door light control method, device, system, and target vehicle. Background Art

[0002] With the increasing degree of automotive electronics intelligence, different types of controllers are increasing day by day. There are more and more scenarios where multiple controller nodes coexist on the same vehicle and message information is closely interacted. Currently, in order to provide users with a more comfortable and gentle light-sensitive experience, the door lights in the automotive interior usually adopt a control method of gradually brightening and dimming. Therefore, it is necessary to use PWM (Pulse Width Modulation) waveforms for adjustment, mainly controlling the duty cycle of the waveform.

[0003] Currently, the traditional control of gradually brightening and dimming the door lights generally triggers the lights to gradually brighten when the door is opened or the door light switch is turned on, and triggers the lights to gradually dim when the door is closed or the door light switch is turned off. However, it can only follow a fixed gradually brightening and dimming time pattern from off to on or from on to off.

[0004] Therefore, how to flexibly control vehicle lights has become an urgent problem to be solved. Summary of the Invention

[0005] In view of this, the present invention provides a door light control method, device, system, and target vehicle to solve the problem of how to flexibly control vehicle lights.

[0006] In a first aspect, the present invention provides a door light control method, which is applied to a first electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. The method includes:

[0007] Receiving a door light control message sent by the second electronic device;

[0008] Identifying the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message;

[0009] Controlling the driver's door light and the co-driver's door light respectively according to the driver's door light control information and the co-driver's door light control information.

[0010] In the door light control method provided by the embodiment of the present application, the first electronic device can receive the door light control message sent by the second electronic device. Then, identify the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message. This ensures the accuracy of the driver's door light control information and the co-driver's door light control information in the determined door light control message. Then, control the driver's door light and the co-driver's door light respectively according to the driver's door light control information and the co-driver's door light control information, so that the driver's door light and the co-driver's door light can be controlled respectively according to the door light control message, and flexible control of the driver's door light and the co-driver's door light can be achieved. Therefore, it is not necessary to fixedly set the time for the door light to gradually brighten and dim, as well as the period and frequency of generating the PWM wave, that is, trigger the light to gradually brighten and dim when a door is opened or closed. Therefore, the door light control method can be from off to on or from on to off in a non-fixed time mode, and in addition, it can interact with the message information of the second electronic device, so the interference and control of the process of the door light gradually brightening and dimming are realized.

[0011] In an alternative embodiment, controlling the driver's door light and the co-driver's door light respectively according to the driver's door light control information and the co-driver's door light control information includes:

[0012] Identify the driver's door light control information and the co-driver's door light control information respectively to determine the first door light gradual brightening start value, the first door light gradual brightening end value, and the first door light gradual brightening time corresponding to the driver's door light control information, and determine the second door light gradual brightening start value, the second door light gradual brightening end value, and the second door light gradual brightening time corresponding to the co-driver's door light control information;

[0013] Interrupt the current control signals corresponding to the driver's door light and the co-driver's door light respectively;

[0014] Control the first PWM signal corresponding to the driver's door light according to the first door light gradual brightening start value, the first door light gradual brightening end value, and the first door light gradual brightening time;

[0015] Control the second PWM signal corresponding to the co-driver's door light according to the second door light gradual brightening start value, the second door light gradual brightening end value, and the second door light gradual brightening time.

[0016] The door light control method provided by the embodiment of the present application respectively identifies the main driver's door light control information and the co-driver's door light control information, determines the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time corresponding to the main driver's door light control information, and determines the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time corresponding to the co-driver's door light control information, ensuring the accuracy of the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time corresponding to the determined main driver's door light control information, and the accuracy of the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time corresponding to the co-driver's door light control information. Then, the current control signals corresponding to the main driver's door light and the co-driver's door light are respectively interrupted, so that the first PWM signal corresponding to the main driver's door light can be controlled according to the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time, ensuring the accuracy of controlling the first PWM signal corresponding to the main driver's door light. And according to the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time, the second PWM signal corresponding to the co-driver's door light is controlled, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light. In addition, in the above method, the door light is controlled to turn on and off by integrating the door signal of the first electronic device and the door light control message sent by the second electronic device, which can keep the original nodes of the whole vehicle unchanged and only serve as the second supply (the second supplier, not the only and main supplier of a certain product function of the customer). However, even as the second supply, the possibility of replacing the original node can be obtained because the door light control logic of the original node has been merged.

[0017] In an alternative embodiment, the method further includes:

[0018] Monitor the main driver's door and the co-driver's door;

[0019] If the main driver's door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, control the first PWM signal corresponding to the main driver's door light according to the first preset control signal;

[0020] And / or

[0021] If the co-driver's door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, control the second PWM signal corresponding to the co-driver's door light according to the first preset control signal.

[0022] The door light control method provided by the embodiment of the present application monitors the driver's door and the co-driver's door, so as to accurately determine the states of the driver's door and the co-driver's door. If the driver's door changes from the closed state to the open state and no door light control message sent by the second electronic device is received within the first preset duration, the first PWM signal corresponding to the driver's door light is controlled according to the first preset control signal, ensuring the accuracy of controlling the first PWM signal corresponding to the driver's door light. And / or, if the co-driver's door changes from the closed state to the open state and no door light control message sent by the second electronic device is received within the first preset duration, the second PWM signal corresponding to the co-driver's door light is controlled according to the first preset control signal, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light.

[0023] In an alternative embodiment, the method further includes:

[0024] If the driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the first PWM signal corresponding to the driver's door light is controlled according to the second preset control signal;

[0025] And / or

[0026] If the co-driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the second PWM signal corresponding to the co-driver's door light is controlled according to the second preset control signal.

[0027] For the door light control method provided by the embodiment of the present application, if the driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the first PWM signal corresponding to the driver's door light is controlled according to the second preset control signal, ensuring the accuracy of controlling the first PWM signal corresponding to the driver's door light. And / or, if the co-driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the second PWM signal corresponding to the co-driver's door light is controlled according to the second preset control signal, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light.

[0028] In an alternative embodiment, the method further includes:

[0029] Monitoring the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-driver's door light;

[0030] If the first PWM signal and the second PWM signal do not change within the second preset duration, the driver's door light and the co-driver's door light are controlled to turn off.

[0031] The door light control method provided by the embodiment of the present application monitors the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-driver's door light, so that the change situations of the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-driver's door light can be obtained in time. If the first PWM signal and the second PWM signal do not change within the second preset duration, the driver's door light and the co-driver's door light are controlled to turn off, thereby avoiding the waste of electricity caused by the user forgetting to turn off the lights.

[0032] In a second aspect, the present invention provides a door light control method, which is applied to a second electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. The method includes:

[0033] Monitor the driver's door and the co-driver's door;

[0034] When it is monitored that the driver's door changes from the closed state to the open state, obtain the current brightness of the vehicle interior environment;

[0035] Based on the current brightness of the vehicle interior environment, determine the driver's door light control information corresponding to the driver's door;

[0036] And / or

[0037] When it is monitored that the co-driver's door changes from the closed state to the open state, obtain the current brightness of the vehicle interior environment;

[0038] Based on the current brightness of the vehicle interior environment, determine the co-driver's seat door light control information corresponding to the co-driver's door.

[0039] The door light control method provided by the embodiment of the present application monitors the driver's door and the co-driver's door; when it is monitored that the driver's door changes from the closed state to the open state, the current brightness of the vehicle interior environment is obtained, which ensures the accuracy of the obtained current brightness of the vehicle interior environment. Based on the current brightness of the vehicle interior environment, the driver's door light control information corresponding to the driver's door is determined, which ensures the accuracy of the determined driver's door light control information corresponding to the driver's door. And / or when it is monitored that the co-driver's door changes from the closed state to the open state, the current brightness of the vehicle interior environment is obtained; based on the current brightness of the vehicle interior environment, the co-driver's seat door light control information corresponding to the co-driver's door is determined, which ensures the accuracy of the determined co-driver's seat door light control information corresponding to the co-driver's door.

[0040] In an optional implementation manner, determining the driver's door light control information corresponding to the driver's door based on the current brightness of the vehicle interior environment includes:

[0041] Based on the current brightness of the vehicle interior environment, determine the starting value of the gradual brightening of the first door light corresponding to the driver's door, the ending value of the gradual brightening of the first door light, and the time for the gradual brightening of the first door light, and generate the control information for the driver's door light.

[0042] The door light control method provided by the embodiments of the present application determines the starting value of the gradual brightening of the first door light corresponding to the driver's door, the ending value of the gradual brightening of the first door light, and the time for the gradual brightening of the first door light based on the current brightness of the vehicle interior environment, and generates the control information for the driver's door light, ensuring the accuracy of the generated control information for the driver's door light.

[0043] In a third aspect, the present invention provides a door light control device, which is applied to a first electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. The device includes:

[0044] A receiving module, configured to receive a door light control message sent by the second electronic device;

[0045] A first determination module, configured to identify the door light control message and determine the control information for the driver's door light and the control information for the co-driver's door light in the door light control message;

[0046] A control module, configured to control the driver's door light and the co-driver's door light respectively according to the control information for the driver's door light and the control information for the co-driver's door light.

[0047] For the door light control device provided by the embodiments of the present application, the first electronic device can receive the door light control message sent by the second electronic device. Then, identify the door light control message and determine the control information for the driver's door light and the control information for the co-driver's door light in the door light control message. Ensure the accuracy of the control information for the driver's door light and the control information for the co-driver's door light in the determined door light control message. Then, control the driver's door light and the co-driver's door light respectively according to the control information for the driver's door light and the control information for the co-driver's door light, so that the driver's door light and the co-driver's door light can be controlled respectively according to the door light control message, and flexible control of the driver's door light and the co-driver's door light can be achieved. Thus, it is not necessary to fixedly set the time for the door light to gradually brighten and fade, and the period and frequency of generating the PWM wave, that is, trigger the light to gradually brighten and fade when a door is opened or closed. Therefore, the door light control device can not follow the fixed-time mode to change from off to on or from on to off, and in addition, it can interact with the message information of the second electronic device, so the interference and control of the process of the door light gradually brightening and fading are realized.

[0048] Fourthly, the present invention provides a door light control device, which is applied to a second electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. The device includes:

[0049] A monitoring module, configured to monitor the driver's door and the co-driver's door;

[0050] An obtaining module, configured to obtain the current in-vehicle environment brightness when it is monitored that the driver's door changes from the closed state to the open state;

[0051] A second determining module, configured to determine the main driver's door light control information corresponding to the driver's door based on the current in-vehicle environment brightness;

[0052] And / or

[0053] An obtaining module, configured to obtain the current in-vehicle environment brightness when it is monitored that the co-driver's door changes from the closed state to the open state;

[0054] A second determining module, configured to determine the co-driver's door light control information corresponding to the co-driver's door based on the current in-vehicle environment brightness.

[0055] The door light control device provided by the embodiments of the present application monitors the driver's door and the co-driver's door; when it is monitored that the driver's door changes from the closed state to the open state, the current in-vehicle environment brightness is obtained, which ensures the accuracy of the obtained current in-vehicle environment brightness. Based on the current in-vehicle environment brightness, the main driver's door light control information corresponding to the driver's door is determined, which ensures the accuracy of the determined main driver's door light control information. And / or when it is monitored that the co-driver's door changes from the closed state to the open state, the current in-vehicle environment brightness is obtained; based on the current in-vehicle environment brightness, the co-driver's door light control information corresponding to the co-driver's door is determined, which ensures the accuracy of the determined co-driver's door light control information.

[0056] Fifthly, the present invention provides a door light control system, including a first electronic device and a second electronic device. The first electronic device and the second electronic device are communicatively connected. The first electronic device is configured to execute the door light control method according to the first aspect or any corresponding embodiment thereof; the second electronic device is configured to execute the door light control method according to the second aspect or any corresponding embodiment thereof.

[0057] Sixth aspect, the present invention provides a target vehicle, including a vehicle body and a door light control system. The door light control system includes a first electronic device and a second electronic device, which are communicatively connected. The first electronic device is configured to execute the door light control method of the first aspect or any corresponding embodiment thereof; the second electronic device is configured to execute the door light control method of the second aspect or any corresponding embodiment thereof.

[0058] Seventh aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause a computer to execute the door light control method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0060] FIG. 1(a) is a schematic diagram of the PWM area equivalence principle according to an embodiment of the present invention;

[0061] FIG. 1(b) is another schematic diagram of the PWM area equivalence principle according to an embodiment of the present invention;

[0062] Figure 2 is a flowchart of the door light control method according to an embodiment of the present invention;

[0063] Figure 3 is a flowchart of another door light control method according to an embodiment of the present invention;

[0064] Figure 4 is a structural block diagram of the PWM duty cycle model algorithm according to an embodiment of the present invention;

[0065] Figure 5 is a flowchart of yet another door light control method according to an embodiment of the present invention;

[0066] Figure 6 is a structural block diagram of the door light control device according to an embodiment of the present invention;

[0067] Figure 7 is a structural block diagram of another door light control device according to an embodiment of the present invention;

[0068] Figure 8 is a schematic hardware structure diagram of the first electronic device according to an embodiment of the present invention. Detailed implementation mode

[0069] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0070] As the degree of automotive electronics intelligence becomes higher and higher, different types of controllers are increasing day by day. There are more and more scenarios where multiple controller nodes coexist on the same vehicle and message information is closely interacted. Currently, in order to give users a more comfortable and gentle light-sensing experience for the door lights in the automotive interior, a gradually brightening and dimming control method is usually adopted. Therefore, PWM waveforms are required for adjustment, mainly for controlling the duty cycle of the waveforms.

[0071] As is well known, the PWM period is the time from the high-level time to the low-level time, and is inversely proportional to its PWM frequency. The PWM duty cycle is the ratio of the high-level time to the total time in one cycle. The basic principle of PWM generation is shown in Figures 1(a) and 1(b), namely the area equivalence method. The gradually brightening time refers to the rising time of the first half of the sine curve in Figure 1(a), while the gradually dimming corresponds to the falling time of the second half. Generally, the PWM period (switching period) is much smaller than the scheduling period of the embedded software, which is 10 ms. When the duty cycle in Figure 1(b) is 100%, the output of a is high level. When the duty cycle of b is other values in one cycle, the sine wave areas generated according to definite integrals are different. When the duty cycles are different in multiple cycles, different area waveforms will be generated, that is, an analog signal is generated, and the door lights also generate a gradual change according to the analog signal. When the frequency is too small, the time of one cycle is too long, and the process of the lamp turning on and off can be seen with the naked eye; when the frequency is high enough, the speed of the lamp turning on and off cannot catch up with the switching speed (the lamp goes out before it is fully lit). Due to the persistence of vision, the human eye does not feel that the lamp is flickering, but feels that the brightness of the lamp has decreased, thus achieving a gradual change effect. Therefore, if other controller nodes want to intervene in the gradual brightening and dimming of the door lights of the DCS (Distributed Control System) node, the core is to control the duty cycle of the PWM wave output by the DCS as the input signal for controlling the door lights.

[0072] Currently, the traditional control of the gradual brightening and dimming of door lights generally triggers the lamp to gradually brighten when the door is opened or the door light switch is turned on, and triggers the lamp to gradually dim when the door is closed or the door light switch is turned off. However, it can only gradually brighten or dim from off to on or from on to off according to a fixed gradual brightening and dimming time mode.

[0073] Therefore, how to flexibly control vehicle lights has become an urgent problem to be solved.

[0074] According to an embodiment of the present invention, an embodiment of a door light control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0075] In this embodiment, a door light control method is provided, including a first electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. Figure 2 It is a flowchart of the door light control method according to an embodiment of the present invention, as Figure 2 shown, and this process includes the following steps:

[0076] Step S101, receive a door light control message sent by the second electronic device.

[0077] Specifically, the first electronic device can receive the door light control message sent by the second electronic device based on the communication connection with the second electronic device.

[0078] Among them, it should be noted that the second electronic device can generate a door light control message according to the current state information of the target vehicle corresponding to the second electronic device.

[0079] Step S102, identify the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message.

[0080] Specifically, the first electronic device can identify the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message.

[0081] Step S103, control the driver's door light and the co-driver's door light respectively according to the driver's door light control information and the co-driver's door light control information.

[0082] Specifically, the first electronic device can identify the driver's door light control information and the co-driver's door light control information respectively to determine the first control signal included in the driver's door light control information and the second control signal included in the co-driver's door light control information. Then, control the driver's door light according to the first control signal and control the co-driver's door light according to the second control signal.

[0083] This step will be introduced in detail below.

[0084] In the embodiment of the present application, for the door light control method, the first electronic device can receive the door light control message sent by the second electronic device. Then, identify the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message, ensuring the accuracy of the driver's door light control information and the co-driver's door light control information in the determined door light control message. Then, according to the driver's door light control information and the co-driver's door light control information, control the driver's door light and the co-driver's door light respectively, so that the driver's door light and the co-driver's door light can be controlled according to the door light control message, and flexible control of the driver's door light and the co-driver's door light can be achieved. Thus, it is not necessary to fixedly set the time for the door light to gradually brighten and dim, as well as the period and frequency of generating the PWM wave, that is, trigger the light to gradually brighten and dim when a door is opened or closed. Therefore, this door light control method can be from off to on or from on to off not in a fixed-time mode. In addition, it can interact with the message information of the second electronic device, so the interference and control of the process of the door light gradually brightening and dimming are realized.

[0085] In this embodiment, a door light control method is provided. For the first electronic device in the door light control system, the door light control system includes the first electronic device and the second electronic device, and the first electronic device and the second electronic device are communicatively connected. Figure 3 It is a flowchart of the door light control method according to the embodiment of the present invention, as Figure 3 shown, and this process includes the following steps:

[0086] Step S201, receive the door light control message sent by the second electronic device.

[0087] For this step, please refer to the introduction of step S101 above and will not be elaborated here.

[0088] Step S202, identify the door light control message to determine the driver's door light control information and the co-driver's door light control information in the door light control message.

[0089] For this step, please refer to the introduction of step S102 above and will not be elaborated here.

[0090] Step S203, according to the driver's door light control information and the co-driver's door light control information, control the driver's door light and the co-driver's door light respectively.

[0091] Specifically, the above step S203 may include the following steps:

[0092] Step S2031: Identify the driver's door light control information and the co-driver's door light control information respectively, determine the first door light gradual brightening start value, the first door light gradual brightening end value, and the first door light gradual brightening time corresponding to the driver's door light control information, and determine the second door light gradual brightening start value, the second door light gradual brightening end value, and the second door light gradual brightening time corresponding to the co-driver's door light control information.

[0093] Specifically, the first electronic device can identify the driver's door light control information and the co-driver's door light control information respectively, determine the first door light gradual brightening start value, the first door light gradual brightening end value, and the first door light gradual brightening time corresponding to the driver's door light control information, and determine the second door light gradual brightening start value, the second door light gradual brightening end value, and the second door light gradual brightening time corresponding to the co-driver's door light control information.

[0094] Step S2032: Interrupt the current control signals corresponding to the driver's door light and the co-driver's door light respectively.

[0095] Specifically, the first electronic device can call the interrupt function to interrupt the current control signals corresponding to the driver's door light and the co-driver's door light respectively.

[0096] Step S2033: Control the first PWM signal corresponding to the driver's door light according to the first door light gradual brightening start value, the first door light gradual brightening end value, and the first door light gradual brightening time.

[0097] Specifically, the first electronic device can calculate the duty cycles of the first PWM signal at the start and end according to the first door light gradual brightening start value and the first door light gradual brightening end value.

[0098] Among them, the first door light gradual brightening start value and the first door light gradual brightening end value can be 0 - 100. Exemplarily, if the gradual brightening is from low brightness to high brightness, the starting duty cycle should be close to 0%, and the ending duty cycle should be close to 100%. If the gradual brightening is from high brightness to low brightness, it is the opposite.

[0099] Then, the first electronic device calculates the period of the first PWM signal according to the first door light gradual brightening time.

[0100] The period of the first PWM signal = the first door light gradual brightening time / (the reciprocal of the PWM frequency).

[0101] Among them, the period of the first PWM signal is the minimum time unit for the PWM signal to repeat. The first door light gradual brightening time refers to the time required from the starting brightness to the ending brightness.

[0102] Then, the first electronic device generates the first PWM signal according to the calculated duty cycle and period of the first PWM signal. For example, if the PWM period is 1 second and the duty cycle is 50%, then within each 1-second period, the output pin remains high for 0.5 seconds.

[0103] Step S2034, control the second PWM signal corresponding to the co-pilot door light according to the second door light gradual brightening start value, the second door light gradual brightening end value, and the second door light gradual brightening time.

[0104] Specifically, the first electronic device can calculate the duty cycles of the second PWM signal at the start and end according to the second door light gradual brightening start value and the second door light gradual brightening end value.

[0105] Among them, the second door light gradual brightening start value and the second door light gradual brightening end value can be 0 - 100. Exemplarily, if the gradual brightening is from low brightness to high brightness, the starting duty cycle should be close to 0%, and the ending duty cycle should be close to 100%. If the gradual brightening is from high brightness to low brightness, it is the opposite.

[0106] Then, the first electronic device calculates the period of the second PWM signal according to the second door light gradual brightening time.

[0107] The period of the second PWM signal = the second door light gradual brightening time / (the reciprocal of the PWM frequency).

[0108] Among them, the period of the second PWM signal is the minimum time unit for the PWM signal to repeat. The second door light gradual brightening time refers to the time required from the starting brightness to the ending brightness.

[0109] Then, the first electronic device generates the second PWM signal according to the calculated duty cycle and period of the second PWM signal. For example, if the PWM period is 1 second and the duty cycle is 50%, then within each 1-second period, the output pin remains high for 0.5 seconds.

[0110] In the above method, the duty cycle of the adjustable door light PWM signal is realized, and it can be interrupted at any time when the door light control message changes. When interacting with other functions, the adaptive performance of the light brightness is better. The starting value / ending value, etc. of the duty cycle in the model are all configurable, and when there are requirement changes, directly modifying the code logic is avoided.

[0111] Step S204, monitor the driver's door and the co-pilot door.

[0112] Specifically, the first electronic device can detect whether the driver's door and the co-pilot door are fully closed through the door position sensor, and can also detect whether the driver's door and the co-pilot door are open or closed through the door switch sensor.

[0113] Step S205, if the driver's door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, then control the first PWM signal corresponding to the driver's door light according to the first preset control signal.

[0114] and / or

[0115] Step S206, if the front passenger door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, then control the second PWM signal corresponding to the front passenger door light according to the first preset control signal.

[0116] Specifically, if the driver's door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, the first electronic device may control the first PWM signal corresponding to the driver's door light according to the first preset control signal.

[0117] Specifically, if the front passenger door changes from the closed state to the open state and the door light control message sent by the second electronic device is not received within the first preset duration, the first electronic device may control the second PWM signal corresponding to the front passenger door light according to the first preset control signal.

[0118] Among them, the first preset duration may be 2s or 3s. The embodiments of the present application do not make specific limitations on the first preset duration.

[0119] Among them, the first preset control signal may be to light up with a 100% duty cycle or other control signals. The embodiments of the present application do not make specific limitations on the first preset control signal.

[0120] Step S207, if the driver's door changes from the open state to the closed state and the door light control message sent by the second electronic device is not received within the first preset duration, then control the first PWM signal corresponding to the driver's door light according to the second preset control signal.

[0121] and / or

[0122] Step S208, if the front passenger door changes from the open state to the closed state and the door light control message sent by the second electronic device is not received within the first preset duration, then control the second PWM signal corresponding to the front passenger door light according to the second preset control signal.

[0123] Specifically, if the driver's door changes from the open state to the closed state and the door light control message sent by the second electronic device is not received within the first preset duration, the first electronic device controls the first PWM signal corresponding to the driver's door light according to the second preset control signal.

[0124] If the co-pilot door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the first electronic device controls the second PWM signal corresponding to the co-pilot door light according to the second preset control signal.

[0125] Wherein, the second preset control signal can be to control extinguishing, or other control signals, and the embodiments of the present application do not make specific limitations on the first preset control signal.

[0126] Step S209, monitor the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-pilot door light.

[0127] Specifically, the first electronic device can use a PWM decoder or the built-in PWM capture function of a microcontroller to read the periods and pulse widths of the first PWM signal and the second PWM signal.

[0128] Then, according to the read periods and pulse widths of the first PWM signal and the second PWM signal, detect whether the first PWM signal and the second PWM signal change within a preset duration.

[0129] Step S210, if the first PWM signal and the second PWM signal do not change within the second preset duration, control the driver's door light and the co-pilot door light to extinguish.

[0130] Specifically, if the first PWM signal and the second PWM signal do not change within the second preset duration, control the driver's door light and the co-pilot door light to extinguish. Thus, it can be realized that the door lights are timely turned off when people get on or off the vehicle, saving electricity.

[0131] Wherein, the second preset duration can be 5 minutes or 3 minutes, and the embodiments of the present application do not make specific limitations on the second preset duration.

[0132] The above method comprehensively controls the opening and closing of the driver's door light and the co-pilot door light together with the door switch state and the door light control message, rather than simply controlling the opening and closing of the driver's door light and the co-pilot door light directly according to the door state. In this way, it can not only ensure that the original controller uses the door signal to control the logic, but also incorporate the door light control message control idea of the new controller, and can intelligently control the lighting state of the door light. In addition, for the application on both sides of the door, with the idea of reusing one model, the control logics of the co-pilot door light control and the driver's door light control are the same, only replacing the driver's side door open state with the co-pilot side door open state when calling the code generated by the model.

[0133] The door light control method provided by the embodiment of the present application respectively identifies the main driver's door light control information and the co-driver's door light control information, determines the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time corresponding to the main driver's door light control information, and determines the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time corresponding to the co-driver's door light control information, ensuring the accuracy of the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time corresponding to the determined main driver's door light control information, and the accuracy of the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time corresponding to the co-driver's door light control information. Then, the current control signals corresponding to the main driver's door light and the co-driver's door light are respectively interrupted, so that the first PWM signal corresponding to the main driver's door light can be controlled according to the first door light gradual brightening start value, the first door light gradual brightening end value and the first door light gradual brightening time, ensuring the accuracy of controlling the first PWM signal corresponding to the main driver's door light. And according to the second door light gradual brightening start value, the second door light gradual brightening end value and the second door light gradual brightening time, the second PWM signal corresponding to the co-driver's door light is controlled, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light. In addition, in the above method, the door light is controlled to turn on and off by integrating the door signal of the first electronic device and the door light control message sent by the second electronic device, which can keep the original nodes of the whole vehicle unchanged and only be used as a second supplier (the second supplier, not the only and main supplier of a certain product function of the customer). However, even as a second supplier, the possibility of replacing the original node can be obtained because the door light control logic of the original node has been merged.

[0134] In addition, the driver's door and the co-driver's door are monitored, so that the states of the driver's door and the co-driver's door can be accurately determined. If the driver's door changes from the closed state to the open state and no door light control message sent by the second electronic device is received within the first preset duration, the first PWM signal corresponding to the driver's door light is controlled according to the first preset control signal, ensuring the accuracy of controlling the first PWM signal corresponding to the driver's door light. And / or, if the co-driver's door changes from the closed state to the open state and no door light control message sent by the second electronic device is received within the first preset duration, the second PWM signal corresponding to the co-driver's door light is controlled according to the first preset control signal, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light. If the driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the first PWM signal corresponding to the driver's door light is controlled according to the second preset control signal, ensuring the accuracy of controlling the first PWM signal corresponding to the driver's door light. And / or, if the co-driver's door changes from the open state to the closed state and no door light control message sent by the second electronic device is received within the first preset duration, the second PWM signal corresponding to the co-driver's door light is controlled according to the second preset control signal, ensuring the accuracy of controlling the second PWM signal corresponding to the co-driver's door light.

[0135] In addition, the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-driver's door light are monitored, so that the changes of the first PWM signal corresponding to the driver's door light and the second PWM signal corresponding to the co-driver's door light can be obtained in a timely manner. If the first PWM signal and the second PWM signal do not change within the second preset duration, the driver's door light and the co-driver's door light are controlled to turn off, thus avoiding the waste of electricity caused by the user forgetting to turn off the lights.

[0136] The above method has wide generality and can realize the gradual brightening and dimming control of the same lamp by multiple controller nodes. It can also shield the interactive control information of other nodes through configuration items and only realize the gradual brightening and dimming control of its own node, rather than being limited to the control mode of a single controller. Subsequently, the software control logic development of non-own controller nodes for other lamp functions can be carried out according to this idea to improve the multi-functional experience of users.

[0137] To better introduce the door light control method provided by the embodiments of the present application, a specific implementation manner is provided in the embodiments of the present application. The duty cycle of the PWM wave designed in this patent is built by the Simulink Stateflow model, which can realize the real-time control of the gradual brightening and dimming processes of the driver's door light and the co-driver's door light by the door light control message of the second electronic device. The specific implementation steps are as follows:

[0138] 1. Sort out the input and output interfaces of the model. Among them, the requirements for the configuration item variables in the input interface should be considered as comprehensively as possible. For example, Figure 4 As shown in the figure, it is the structural block diagram of the PWM duty cycle model algorithm. Description of model input variables (configuration parameters. Use the same formal parameter variable to represent the start and end duty cycles and times of the driver side and the co-driver side, but use the door light control message signals of the driver side and the co-driver side respectively when integrating the code). Among them:

[0139] DoorEntryLightDPSStart: The starting value of the door light gradual brightening, configurable from 0 to 100.

[0140] DoorEntryLightDPSEnd: The ending value of the door light gradual brightening, configurable from 0 to 100.

[0141] DoorEntryLightDPSTime: The time for the door light to gradually brighten, 0ms, 10ms, 20ms, 50ms, 100ms, 200ms, 500ms, 1000ms, 5000ms, 10000ms.

[0142] The first three are signals in the InteriorDoorLightStatus_door light control message.

[0143] InteriorDoorLightStatus_OutTime: The timeout flag of the InteriorDoorLightStatus_door light control message, 0x0 / not timed out, 0x1 / timed out.

[0144] DriverDoorOpenStatus: The door lights on the driver side and the co-driver side controlled by the InteriorDoorLightStatus_door light control message are different signals in the same message. The door open status on the driver side, 0x0 / close, 0x1 / open. Hard wire signal. When it is collected as an abnormal value when used as a conditional judgment, it is processed as the door closed.

[0145] PassengerDoorOpenStatus: The door open status on the co-driver side, communication signal. Timeout processing: Treated as invalid.

[0146] DriverDoorLight: The main driver door light control, used to distinguish the driver side from the co-driver side during software integration.

[0147] PassengerDoor: The co-driver door light control.

[0148] Description of output variables:

[0149] DoorLight: The door light control signal / duty cycle, which is equivalent to the PWM duty cycle * 100, i.e., 0 - 10000.

[0150] It should be noted that the output value of this model is designed to be 100 times the duty cycle, which can be more accurate without decimals when calculating the increment per cycle in division. Therefore, it is also possible to save space by reducing the data unit of variables without using floating-point type data. Finally, when the model-generated code is integrated into the embedded code, the output value can be divided by 100 to convert it into a percentage.

[0151] According to the above requirements description, list the control logic and build the model:

[0152] The door light control logic module includes the door light gradually brightening state and the gradually dimming state. Meeting the prerequisite conditions and execution conditions, it controls the door light to gradually brighten and dim according to the signals in the InteriorDoorLightStatus_door light control message and the door switch signal.

[0153] The implementation logic description of the door light gradually brightening state: The door light gradually brightens, and the output ranges from the starting value of gradual brightening to the ending value of gradual brightening.

[0154] The implementation logic description of the door light gradually dimming state: The door light gradually dims, and the output fades from the ending value of gradual brightening to the starting value of gradual brightening.

[0155] (1) When the ECU receives the InteriorDoorLightStatus_door light control message, it controls the door light to gradually brighten and dim according to the starting duty cycle value: DoorEntryLightDSStart, the ending duty cycle value: DoorEntryLightDSEnd, and the time from the starting duty cycle to the ending duty cycle: DoorEntryLightDSTime. When any of the above messages changes, the gradual brightening and dimming process is interrupted, and the Doorlight value is updated.

[0156] (2) When the driver's door changes from open to closed and no InteriorDoorLightStatus_door light control message is received within 2 s (i.e., the timeout flag exists continuously for 2 s and this message is 0 before the door is closed), the door light goes out.

[0157] (3) When the driver's door changes from closed to open and no InteriorDoorLightStatus_door light control message is received within 2 s (i.e., the timeout flag exists continuously for 2 s and this message is 0 before the door is opened), the door light is 100% lit.

[0158] (4) When the door light continuously lights at a certain fixed brightness for 5 min, the door light goes out.

[0159] 4. Optimize the functions built in the above model to generate code.

[0160] 5. Integrate them into the embedded software separately on the driver's side and the co-driver's side.

[0161] 6. Conduct functional tests, track and optimize code defects.

[0162] Exemplarily, the technology described in this patent has been implemented in a certain project and tested on a real vehicle. For the door light in this project, the control frequency is 200HZ, the period is 0.005s, that is, 5ms, and the code execution period is 10ms (the two are not closely related). The duty cycle is up to 85% and the lowest is 0%, and the signal update period is 100ms. The test records of a certain scenario are as follows:

[0163] When the door is opened and meets the condition for the door light to light up, the door light gradually brightens. The door light control message updates the starting brightness, the ending brightness value, and the time for gradual brightening and dimming every 100ms. After the DCS receives this message, it changes with a duty cycle of 0 - 15 - 35 - 53 - 65 - 72 - 77 - 81 - 83 - 85 (which is also shown in the message in the form of a signal. The interval between these 10 values is 100ms, that is, the time for gradual brightening is 1000ms, 1s; and there are also 10 duty cycle values that change according to a certain rule between each two of these values). The door light control message finally maintains the starting brightness and the ending brightness signal values both at 85, and then the DCM controls the door light to output stably at 85%;

[0164] When the door light gradually dims, the starting brightness and the ending brightness of the door light control message signal will be exchanged, and the DCM is commanded to control the door light to change with a duty cycle of 85 - 70 - 50 - 31 - 19 - 12 - 8 - 6 - 4 - 2 - 1 - 0 (the interval between these 12 values is 100ms, that is, the time for gradual dimming is 1200ms), and finally it closes.

[0165] In this embodiment, a door light control method is provided, which is applied to the second electronic device in the door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. As Figure 5 shown, the method includes:

[0166] Step S301, monitor the driver's door and the co-driver's door.

[0167] Specifically, the second electronic device can detect whether the driver's door and the co-driver's door are fully closed through the door position sensor, and can also detect whether the driver's door and the co-driver's door are open or closed through the door switch sensor.

[0168] Step S302, when it is monitored that the driver's door changes from the closed state to the open state, obtain the current interior environment brightness.

[0169] Specifically, when it is detected that the driver's door changes from the closed state to the open state, the second electronic device can detect the current brightness of the vehicle interior environment based on the ambient light sensor. The second electronic device can also use a light sensor inside the vehicle (such as a photoresistor or a photodiode) to detect the current brightness of the vehicle interior environment.

[0170] Step S303: Determine the main driver's door light control information corresponding to the driver's door based on the current brightness of the vehicle interior environment.

[0171] Specifically, the above step S303 may include the following steps:

[0172] Step S3031: Determine the starting value of the gradual brightening of the main driver's door light, the ending value of the gradual brightening of the main driver's door light, and the time for the gradual brightening of the main driver's door light corresponding to the driver's door based on the current brightness of the vehicle interior environment, and generate the main driver's door light control information.

[0173] Specifically, the second electronic device can set a minimum preset brightness threshold and a maximum preset brightness threshold. When the current brightness of the vehicle interior environment is lower than the minimum preset brightness threshold, the main driver's door light starts to gradually brighten; when the current brightness of the vehicle interior environment is higher than the maximum preset brightness threshold, the main driver's door light stops gradually brightening.

[0174] When the current brightness of the vehicle interior environment is lower than the minimum preset brightness threshold, the main driver's door light starts to gradually brighten. The starting value of the gradual brightening of the first door light can be any value between the main driver's door light being completely closed (0%) and completely open (100%). Optionally, the starting value of the gradual brightening of the first door light can be the minimum preset brightness threshold or other values.

[0175] When the current brightness of the vehicle interior environment is higher than the maximum preset brightness threshold, the main driver's door light stops gradually brightening, and the ending value of the gradual brightening of the first door light is usually the door light being completely closed (0%).

[0176] Among them, the time for the gradual brightening of the first door light can be set according to the difference between the minimum preset brightness threshold and the maximum preset brightness threshold. The greater the difference between the minimum preset brightness threshold and the maximum preset brightness threshold, the longer the time for the gradual brightening of the first door light.

[0177] It should be noted that the minimum preset brightness threshold and the maximum preset brightness threshold can be set according to user requirements.

[0178] and / or

[0179] Step S304: When it is detected that the co-driver's door changes from the closed state to the open state, obtain the current brightness of the vehicle interior environment.

[0180] Step S305: Determine the co-driver's seat door light control information corresponding to the co-driver's door based on the current brightness of the vehicle interior environment.

[0181] Specifically, the above step S305 may include the following steps:

[0182] Step S3051: Based on the current in-vehicle ambient brightness, determine the starting value, ending value, and fading-in time of the second door light corresponding to the co-driver's door, and generate co-driver's seat door light control information.

[0183] Specifically, the second electronic device may set a minimum preset brightness threshold and a maximum preset brightness threshold. When the current in-vehicle ambient brightness is lower than the minimum preset brightness threshold, the driver's door light starts to fade in; when the current in-vehicle ambient brightness is higher than the maximum preset brightness threshold, the driver's door light stops fading in.

[0184] When the current in-vehicle ambient brightness is lower than the minimum preset brightness threshold, the driver's door light starts to fade in. The starting value of the second door light fading in can be any value between the driver's door light being completely off (0%) and completely on (100%). Optionally, the starting value of the second door light fading in can be the minimum preset brightness threshold or other values.

[0185] When the current in-vehicle ambient brightness is higher than the maximum preset brightness threshold, the driver's door light stops fading in, and the ending value of the second door light fading in is usually the door light being completely off (0%).

[0186] Among them, the fading-in time of the second door light can be set according to the difference between the minimum preset brightness threshold and the maximum preset brightness threshold. The greater the difference between the minimum preset brightness threshold and the maximum preset brightness threshold, the longer the fading-in time of the second door light.

[0187] It should be noted that the minimum preset brightness threshold and the maximum preset brightness threshold can be set according to user requirements.

[0188] The door light control method provided by the embodiment of the present application monitors the driver's door and the co-driver's door; when it is detected that the driver's door changes from the closed state to the open state, the current in-vehicle ambient brightness is obtained, ensuring the accuracy of the obtained current in-vehicle ambient brightness. Based on the current in-vehicle ambient brightness, determine the starting value, ending value, and fading-in time of the first door light corresponding to the driver's door, and generate driver's door light control information, ensuring the accuracy of the generated driver's door light control information. And / or when it is detected that the co-driver's door changes from the closed state to the open state, the current in-vehicle ambient brightness is obtained; based on the current in-vehicle ambient brightness, determine the co-driver's seat door light control information corresponding to the co-driver's door, ensuring the accuracy of the determined co-driver's seat door light control information corresponding to the co-driver's door.

[0189] In this embodiment, a door light control device is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be elaborated again. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0190] This embodiment provides a door light control device, which is applied to a first electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. As Figure 6 shown, it includes:

[0191] A receiving module 401, configured to receive a door light control message sent by the second electronic device;

[0192] A first determination module 402, configured to identify the door light control message and determine the driver's door light control information and the co-driver's door light control information in the door light control message;

[0193] A control module 403, configured to control the driver's door light and the co-driver's door light respectively according to the driver's door light control information and the co-driver's door light control information.

[0194] This embodiment provides a door light control device, which is applied to a second electronic device in a door light control system. The door light control system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device are communicatively connected. As Figure 7 shown, the device includes:

[0195] A monitoring module 501, configured to monitor the driver's door and the co-driver's door;

[0196] An acquisition module 502, configured to acquire the current in-vehicle ambient brightness when it is detected that the driver's door changes from the closed state to the open state;

[0197] A second determination module 503, configured to determine the driver's door light control information corresponding to the driver's door based on the current in-vehicle ambient brightness;

[0198] and / or

[0199] An acquisition module 502, configured to acquire the current in-vehicle ambient brightness when it is detected that the co-driver's door changes from the closed state to the open state;

[0200] A second determination module 503, configured to determine the co-driver's door light control information corresponding to the co-driver's door based on the current in-vehicle ambient brightness.

[0201] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0202] The door light control device in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0203] The embodiment of the present invention further provides a first electronic device having the above Figure 6 and Figure 7 shown door light control device.

[0204] Please refer to Figure 8 , Figure 8 which is a schematic structural diagram of a first electronic device provided by an alternative embodiment of the present invention. As Figure 8 shown, the first electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common main board or installed in other ways as needed. The processor can process instructions executed within the first electronic device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple first electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). Figure 8 One processor 10 is taken as an example in

[0205] The processor 10 can be a central processor, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof.

[0206] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0207] The memory 20 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the first electronic device and the like. In addition, the memory 20 may include a high-speed random access memory and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely provided with respect to the processor 10, and these remote memories may be connected to the first electronic device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0208] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive. The memory 20 may further include a combination of the above types of memories.

[0209] The first electronic device further includes a communication interface 30 for communicating the first electronic device with other devices or a communication network.

[0210] The embodiment of the present application further provides a door light control system, including a first electronic device and a second electronic device. The first electronic device and the second electronic device are communicatively connected. The first electronic device is configured to execute the above Figure 2 and Figure 3 door light control method. The second electronic device is configured to execute the above Figure 5 door light control method.

[0211] The embodiment of the present application further provides a target vehicle, including a vehicle body and a door light control system. The door light control system includes a first electronic device and a second electronic device. The first electronic device and the second electronic device are communicatively connected. The first electronic device is configured to execute the above Figure 2 and Figure 3 door light control method. The second electronic device is configured to execute the above Figure 5 door light control method.

[0212] Embodiments of the present invention also provide a computer-readable storage medium. The method according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.

[0213] A part of the present invention can be applied as a computer program product, for example, computer program instructions. When executed by a computer, through the operation of the computer, the method and / or technical solution according to the present invention can be called or provided. Those skilled in the art should understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0214] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A door light control method, characterized in that: A first electronic device applied to a door light control system, the door light control system includes the first electronic device and a second electronic device, the first electronic device and the second electronic device are communicatively connected, and the method includes: receiving a door light control message sent by the second electronic device; Identify the door light control message, and determine the main driver's door light control information and the co-driver's door light control information in the door light control message; According to the main driver's door light control information and the co-pilot's door light control information, the main driver's door light and the co-pilot's door light are controlled respectively.

2. The method according to claim 1, characterized in that The controlling of the main driver's door light and the co-driver's door light respectively according to the main driver's door light control information and the co-driver's door light control information includes: Respectively identify the main driver's door light control information and the co-pilot's door light control information, determine the first door light gradually brightening starting value, the first door light gradually brightening ending value, and the first door light gradually brightening time corresponding to the main driver's door light control information, and determine the second door light gradually brightening starting value, the second door light gradually brightening ending value, and the second door light gradually brightening time corresponding to the co-pilot's door light control information; respectively interrupting the current control signals corresponding to the main driver's door light and the co-driver's door light; Controlling a first PWM signal corresponding to the main driver door light according to the first door light gradually lighting start value, the first door light gradually lighting end value and the first door light gradually lighting time; The second PWM signal corresponding to the co-pilot door light is controlled according to the second door light gradually-on starting value, the second door light gradually-on ending value and the second door light gradually-on time.

3. The method according to claim 1, characterized in that The method further comprises: Monitor the main driver's door and the front passenger door; If the main driver's door changes from a closed state to an open state, and the door light control message sent by the second electronic device is not received within a first preset time period, the first PWM signal corresponding to the main driver's door light is controlled according to the first preset control signal; and / or If the passenger door changes from a closed state to an open state, and the door light control message sent by the second electronic device is not received within the first preset time period, the second PWM signal corresponding to the passenger door light is controlled according to the first preset control signal.

4. The method according to claim 3, characterized in that The method further comprises: If the main driver's door changes from an open state to a closed state, and the door light control message sent by the second electronic device is not received within the first preset time period, the first PWM signal corresponding to the main driver's door light is controlled according to the second preset control signal; and / or If the passenger door changes from an open state to a closed state, and the door light control message sent by the second electronic device is not received within the first preset time period, the second PWM signal corresponding to the passenger door light is controlled according to the second preset control signal.

5. The method according to claim 1, characterized in that The method further comprises: Monitoring a first PWM signal corresponding to the main driver's door light and a second PWM signal corresponding to the co-driver's door light; If the first PWM signal and the second PWM signal do not change within a second preset time period, the main driver's door light and the co-driver's door light are controlled to be turned off.

6. A door light control method, characterized in that: A second electronic device is applied to a door light control system, wherein the door light control system includes a first electronic device and the second electronic device, wherein the first electronic device and the second electronic device are in communication connection, and the method includes: Monitor the main driver's door and the front passenger door; When the main driver's door is detected to be changed from a closed state to an open state, the current interior environment brightness is obtained; Determining the main driver's door light control information corresponding to the main driver's door based on the current vehicle interior environment brightness; and / or When the co-pilot door is detected to be changed from a closed state to an open state, the current interior environment brightness is obtained; Based on the current in-vehicle environment brightness, determine the co-pilot door light control information corresponding to the co-pilot door.

7. The method according to claim 6, characterized in that The determining, based on the current vehicle interior environment brightness, the main driver's door light control information corresponding to the main driver's door comprises: Based on the current in-vehicle ambient brightness, determine the first door light gradually lighting starting value, the first door light gradually lighting ending value and the first door light gradually lighting time corresponding to the main driver's door, and generate the main driver's door light control information.

8. A door light control device, characterized in that: A first electronic device used in a door light control system, the door light control system includes the first electronic device and a second electronic device, the first electronic device and the second electronic device are communicatively connected, and the device includes: A receiving module, used for receiving a door light control message sent by the second electronic device; A first determination module is used to identify the door light control message and determine the main driver's door light control information and the co-pilot's door light control information in the door light control message; The control module is used to control the main driver's door light and the co-pilot's door light respectively according to the main driver's door light control information and the co-pilot's door light control information.

9. A door light control device, characterized in that: A second electronic device used in a door light control system, wherein the door light control system includes a first electronic device and the second electronic device, wherein the first electronic device and the second electronic device are communicatively connected, and the device includes: Monitoring module, used to monitor the main driver's door and the co-pilot's door; An acquisition module, configured to acquire the current interior environment brightness upon detecting that the main driver's door changes from a closed state to an open state; A second determination module is used to determine the main driver's door light control information corresponding to the main driver's door based on the current vehicle interior environment brightness; and / or An acquisition module, configured to acquire the current interior environment brightness upon detecting that the passenger door changes from a closed state to an open state; The second determination module is used to determine the co-pilot door light control information corresponding to the co-pilot door based on the current in-vehicle environment brightness.

10. A door light control system, characterized in that: It includes a first electronic device and a second electronic device, the first electronic device and the second electronic device are communicatively connected, the first electronic device is used to execute the door light control method described in any one of claims 1 to 5; the second electronic device is used to execute the door light control method described in any one of claims 6 to 7.