Vehicle lamp control method and device, electronic equipment and vehicle
By determining the triggering method and response method of the headlight control request, and determining the target response request from multiple requests, the problem of confusing headlight control is solved, stable control of headlights is realized, and user safety and experience is improved.
Patent Information
- Application Number
- CN202411892492.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-20
AI Technical Summary
When multiple car light control requests are received, the prior art is difficult to accurately determine the response mode, resulting in confusion in the car light control, and the user cannot turn off the car lights or the car lights are flickering, affecting the user's safety and experience.
By determining the triggering method corresponding to each headlight control request, based on the response method corresponding to the triggering method, the target response request is determined from multiple headlight control requests, and the headlights are controlled according to the target response request. At the same time, based on the request content of the target response request, the flag state corresponding to each triggering method is controlled.
It realizes that in the case of multiple headlight control requests, accurately determine the response method, avoid confusion in the headlight control, ensure that the user can turn off the headlights normally, avoid flickering, and improve user safety and experience.
Smart Images

Figure CN119705265A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle control technology, and in particular to a vehicle light control method, device, electronic equipment and vehicle. Background Art
[0002] With the development of the vehicle industry, vehicle functions and application service scenarios can be used to trigger the control of vehicle lights. However, when multiple light control requests are received, it is not possible to determine which light control request to execute, which will cause confusion in light control, and users will be unable to turn off the lights or the lights will flash, affecting user safety and experience.
[0003] In view of this, how to avoid confusion in headlight control when receiving multiple headlight requests becomes a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the purpose of the present disclosure is to provide a vehicle light control method, device, electronic device and vehicle to solve the problem of vehicle light control confusion when receiving multiple vehicle light requests in the prior art.
[0005] Based on the above objectives, a first aspect of the present disclosure provides a vehicle light control method, the method comprising:
[0006] In response to determining that there are multiple vehicle light control requests, determining a triggering mode corresponding to each vehicle light control request;
[0007] Determining a target response request from the plurality of vehicle light control requests based on a response mode corresponding to the trigger mode, and controlling the vehicle light according to the target response request;
[0008] Based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled.
[0009] Based on the same inventive concept, the second aspect of the present disclosure provides a vehicle light control device, comprising:
[0010] a trigger mode determination module, configured to determine a trigger mode corresponding to each vehicle light control request in response to determining that there are multiple vehicle light control requests;
[0011] A vehicle light control module is configured to determine a target response request from the plurality of vehicle light control requests based on a response mode corresponding to the trigger mode, and control the vehicle light according to the target response request;
[0012] The flag status control module is configured to control the flag status corresponding to each trigger mode based on the request content of the target response request.
[0013] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0014] Based on the same inventive concept, a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.
[0015] Based on the same inventive concept, the fifth aspect of the present disclosure proposes a vehicle, which includes the vehicle light control device described in the second aspect or the electronic device described in the third aspect or the storage medium described in the fourth aspect.
[0016] As can be seen from the above, the light control method, device, electronic device and vehicle provided by the present disclosure. When there are multiple light control requests, determine the trigger mode corresponding to each light control request. Based on the response mode corresponding to the trigger mode, determine the target response request from the multiple light control requests, and control the lights according to the target response request. In this way, different trigger modes correspond to different response modes, and the trigger mode based on the multiple light control requests can accurately determine the response mode, so as to determine the target response request of priority response from the multiple light control requests based on the response mode, avoid the situation that the target response request cannot be determined due to the lack of response mode, further avoid the situation that the light control is chaotic, and at the same time, the user will not be unable to turn off the lights or the lights will flash, thereby ensuring the safety and experience of the user. Based on the request content of the target response request, control the flag bit state corresponding to each trigger mode. In this way, it is convenient for the user to determine the trigger mode corresponding to the target response request to which the lights have priority response according to the flag bit state. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flow chart of a vehicle light control method according to an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of actual lighting control instructions generated by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of the interaction between the A core and the M core according to an embodiment of the present disclosure;
[0021] Figure 4 This is a schematic diagram of the first interruption in the light-on state of an embodiment of the present disclosure;
[0022] Figure 5 It is a schematic diagram of the second interruption in the light-on state of an embodiment of the present disclosure;
[0023] Figure 6 This is a schematic diagram of the first interruption in the light-off state of an embodiment of the present disclosure;
[0024] Figure 7 It is a schematic diagram of the second interruption in the light-off state of an embodiment of the present disclosure;
[0025] Figure 8 It is a schematic diagram of the third interruption in the light-off state of an embodiment of the present disclosure;
[0026] Fig. 9 is a schematic structural diagram of a vehicle light control device according to an embodiment of the present disclosure;
[0027] Fig.10 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0029] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0030] Based on the description of the background technology, the current vehicle industry is developing rapidly towards intelligence, digitization, networking, and service. On the one hand, the vehicle's electrical and electronic (EE) architecture has begun to evolve from the traditional distributed architecture to the "central domain controller + regional controller" architecture. The high-computing power, high-bandwidth, and low-coupling electrical and electronic architecture provides the possibility for "software-defined vehicles". On the other hand, software has begun to adopt a service-oriented architecture (Service-Oriented Architecture, referred to as SOA) service-oriented design. Under the SOA architecture, services can be flexibly deployed, can be called across domains, services can be reused, and services are highly decoupled. Through service orchestration, complex functional scenarios can be quickly implemented, and the software can be upgraded independently, and the vehicle-side function upgrade is more flexible. Therefore, the SOA architecture can improve software development efficiency, reduce development and maintenance costs, and realize the vehicle-side functions for thousands of people.
[0031] With the application of service-oriented architecture (SOA) technology in the vehicle industry, a large number of scene modes based on application services have emerged. These scene modes have different requirements for vehicle lights, which may be mutually exclusive or overlapping. If the vehicle's original lighting functions (HUT function / AVP function / L3 function / MDC function control lights) are added without the restriction of arbitration strategy, the light control will be chaotic, and users will not be able to turn off the lights or the lights will flash, which will seriously affect the safety and experience of users and other traffic participants.
[0032] When multiple headlight control requests are received, the following problems may occur if there is no arbitration strategy:
[0033] 1. After the user turns on the headlights through the HUT function, scene A turns on the headlights and scene C turns off the headlights. If there is no arbitration strategy, the headlights will be turned off directly. If the user is driving at high speed at night in the rain, it will cause a serious traffic accident.
[0034] 2. The user turns on the headlights through scene A, turns off the headlights through scene B, and turns on the headlights through scene C. If there is no arbitration strategy, the headlights will flicker, which will not only affect the user experience and damage the headlight hardware, but also affect driving safety.
[0035] 3. The user turns on the headlights through scene A and the requirement of scene A is to continuously occupy the headlights. At this time, scene B turns off the headlights. If there is no arbitration strategy, the headlights are turned off directly, and the purpose of scene A to continuously occupy the headlights is not achieved, affecting the function realization.
[0036] 4. The user turns on the headlights through the AVP function, scene A turns off the headlights, and scene B turns on the headlights. If there is no arbitration strategy, the headlights will remain on. However, the exterior light system will not know whether the trigger source of the headlights is the AVP function or scene B. If scene B turns off the headlights at this time, should the headlights also be turned off?
[0037] As mentioned above, how to avoid headlight control confusion when receiving multiple headlight requests has become an important research issue.
[0038] Based on the above description, if Figure 1 As shown, the vehicle light control method proposed in this embodiment includes:
[0039] Step 101 : in response to determining that there are multiple vehicle light control requests, determining a triggering mode corresponding to each vehicle light control request.
[0040] In a specific implementation, multiple vehicle light control requests may be received simultaneously or in sequence.
[0041] For example, when the first headlight control request, the second headlight control request and the third headlight control request are received in sequence, the first trigger mode corresponding to the first headlight control request, the second trigger mode corresponding to the second headlight control request and the third trigger mode corresponding to the third headlight control request are determined.
[0042] Step 102: determining a target response request from the plurality of vehicle light control requests based on a response mode corresponding to the trigger mode, and controlling the vehicle light according to the target response request.
[0043] In a specific implementation, multiple response modes (arbitration logic) are pre-stored, and based on the triggering modes of multiple headlight control requests, a response mode corresponding to the triggering mode is determined from the pre-stored multiple response modes. Based on the response mode corresponding to the triggering mode, a target response request is determined from the multiple headlight control requests, and the headlights are controlled according to the target response request. The target response request is a request that is given priority response among the multiple headlight control requests.
[0044] In addition, the vehicle light control request includes at least one of the following: a position light control request, a low beam light control request, a high beam light control request, a daytime running light control request, a front fog light control request, a rear fog light control request, a corner light control request, and a turn signal control request.
[0045] For example, when the vehicle light control request is a low beam control request, a target response request is determined from multiple low beam control requests, and the vehicle low beam is controlled according to the target response request. When the vehicle light control request is a turn signal control request, a target response request is determined from multiple turn signal control requests, and the vehicle turn signal is controlled according to the target response request.
[0046] Step 103: Based on the request content of the target response request, control the flag bit state corresponding to each trigger mode.
[0047] In specific implementation, the request content of the target response request includes: a headlight on request, a headlight off request, and a headlight continuous occupation request.
[0048] When the target response request is a light on request, the flag bit state of the trigger mode corresponding to the target response request is controlled to switch to the running state, and the flag bit state of the trigger mode corresponding to other light control requests is controlled to switch to the stop state; wherein the other light control requests are requests other than the target response request among the multiple light control requests. When the target response request is a light off request, the flag bit state of the trigger mode corresponding to the multiple light control requests is controlled to switch to the stop state.
[0049] Through the above embodiment, when there are multiple requests for controlling the lights, the trigger mode corresponding to each request for controlling the lights is determined. Based on the response mode corresponding to the trigger mode, the target response request is determined from the multiple requests for controlling the lights, and the lights are controlled according to the target response request. In this way, different trigger modes correspond to different response modes, and the trigger mode based on the multiple requests for controlling the lights can accurately determine the response mode, thereby determining the target response request for priority response from the multiple requests for controlling the lights based on the response mode, thereby avoiding the situation where the target response request cannot be determined due to the lack of a response mode, and further avoiding the situation where the lights are in a state of confusion, and at the same time, the user will not be unable to turn off the lights or the lights will flash, thereby ensuring the safety and user experience. Based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled. In this way, it is convenient for the user to determine the trigger mode corresponding to the target response request for priority response of the lights according to the flag bit state.
[0050] By judging whether the triggering modes of multiple vehicle light control requests are two triggering modes, the corresponding response mode is determined. The specific process is as follows:
[0051] In some embodiments, step 102 includes:
[0052] Step 1021, determining whether there are two triggering modes in the triggering mode.
[0053] Step 1022: in response to determining that there are two triggering modes in the triggering modes, determine a target response request from the plurality of vehicle light control requests based on a first response mode.
[0054] Alternatively, in step 1023, in response to determining that there is one triggering method in the triggering methods, a target response request is determined from the plurality of vehicle light control requests based on a second response method.
[0055] In a specific implementation, by judging whether there are two triggering modes for the multiple headlight control requests, it is determined whether there are two triggering modes for the multiple headlight control requests or one triggering mode.
[0056] The first response mode is to determine the arbitration logic of the target response request from the multiple light control requests when the multiple light control requests are two trigger modes. The second response mode is to determine the arbitration logic of the target response request from the multiple light control requests when the multiple light control requests are one trigger mode.
[0057] When there are two triggering modes among the triggering modes of the multiple headlight control requests, a first response mode is called from the multiple response modes stored in advance, and a target response request is determined from the multiple headlight control requests based on the first response mode (first arbitration strategy). When there is one triggering mode among the triggering modes of the multiple headlight control requests, a second response mode is called from the multiple response modes stored in advance, and a target response request is determined from the multiple headlight control requests based on the second response mode (second arbitration strategy).
[0058] Through the above solution, by judging whether there are two triggering modes in the triggering mode, different response modes can be called for different triggering modes to determine the target response request from multiple vehicle light control requests.
[0059] When there are two triggering modes among the triggering modes of the multiple headlight control requests, a target response request is determined from the multiple headlight control requests based on the first response mode. The specific process is as follows:
[0060] In some embodiments, the triggering mode includes: a function triggering mode and a scene triggering mode; step 1022 includes:
[0061] Step 10221, in response to determining that there are two triggering modes in the triggering mode, based on the first response mode, determine the headlight control request of the functional triggering mode from the multiple headlight control requests, and determine the target response request from the headlight control requests of the functional triggering mode.
[0062] In a specific implementation, when there are two triggering modes among the triggering modes of the multiple headlight control requests, indicating that the triggering modes of the multiple headlight control requests are the function triggering mode and the scene triggering mode, a target response request is determined from the multiple headlight control requests based on the first response mode (first arbitration strategy), and the specific process is as follows:
[0063] Step 102211, divide the multiple headlight control requests into function headlight control requests of function triggering mode and scene headlight control requests of scene triggering mode.
[0064] Step 102212, determine whether there is a headlight on request in the functional headlight control request.
[0065] Step 102213, in response to determining that there is a headlight turn-on request in the functional headlight control request, taking the functional headlight control request corresponding to the headlight turn-on request as a target response request.
[0066] Step 102214, in response to determining that there is no headlight on request in the functional headlight control request, taking the functional headlight control request as a target response request.
[0067] When the triggering modes of multiple headlight control requests are function triggering modes and scene triggering modes, there are four situations: one function triggering mode and one scene triggering mode, one function triggering mode and multiple scene triggering modes, multiple function triggering modes and one scene triggering mode, and multiple function triggering modes and multiple scene triggering modes.
[0068] When the triggering modes of multiple headlight control requests are a function triggering mode and a scene triggering mode. For example, when a headlight turn-on request of scene A and a headlight turn-on request of function a are received, the headlight turn-on request of function a is used as the target response request. For another example, when a headlight turn-on request of scene A and a headlight turn-off request of function a are received, the headlight turn-off request of function a is used as the target response request. For another example, when a headlight turn-off request of scene A and a headlight turn-on request of function a are received, the headlight turn-on request of function a is used as the target response request.
[0069] When the triggering modes of multiple headlight control requests are one function triggering mode and multiple scene triggering modes. For example, when a headlight turn-on request of scene A, a headlight turn-on request of scene B, a headlight turn-on request of scene C, and a headlight turn-on request of function a are received, the headlight turn-on request of function a is used as the target response request.
[0070] When the triggering modes of multiple headlight control requests are multiple function triggering modes and one scene triggering mode. For example, when receiving a headlight continuous occupation request of scene A, a headlight turn-on request of function a, a headlight turn-off request of function b, and a headlight turn-off request of function c, the headlight turn-on request of function a is used as the target response request.
[0071] When the triggering modes of multiple headlight control requests are multiple function triggering modes and multiple scene triggering modes. For example, when a headlight turn-on request of scene A, a headlight turn-on request of scene B, a headlight turn-on request of function a, and a headlight turn-off request of function c are received, the headlight turn-on request of function a is taken as the target response request.
[0072] Through the above scheme, when the triggering modes of multiple headlight control requests are function triggering mode and scene triggering mode, based on the first response mode, the headlight control request of the function triggering mode is determined from the multiple headlight control requests, and the target response request is determined from the headlight control requests of the function triggering mode. In this way, the headlight control request of the function triggering mode can be responded to first, and the headlight control request of the function triggering mode can be responded to first when the headlight function triggering mode and the headlight scene triggering mode conflict, which can not only improve the user experience, but also avoid traffic accidents and ensure the driving safety of users.
[0073] In some embodiments, step 102213 includes:
[0074] Step 102213A, in response to determining that there is a light on request in the functional light control request, determine the last triggered scene light control request according to the trigger time of the scene light control request, and determine whether the last triggered scene light control request is a light on request.
[0075] Step 102213B, in response to determining that the last triggered scene light control request is a light on request, determine whether there is a light off request in the functional light control request.
[0076] Step 102213C, in response to determining that there is no light off request in the functional light control request, the functional light control request corresponding to the light on request and the last triggered scene light control request are used as target response requests.
[0077] In specific implementation, when the triggering methods of multiple headlight control requests are function triggering methods and scene triggering methods, there are four situations: one function triggering method and one scene triggering method, one function triggering method and multiple scene triggering methods, multiple function triggering methods and one scene triggering method, and multiple function triggering methods and multiple scene triggering methods.
[0078] When there is a light on request in the functional light control request, the functional light control function request corresponding to the light on request is used as the target response request. By judging whether the last triggered scene light control request in the scene light control request is a light on request, it is determined whether to use the last triggered scene light control request as the target response request.
[0079] When there is a light-on request but no light-off request in the functional light control request, and the last triggered scene light control request is a light-on request, the functional light control request corresponding to the light-on request and the last triggered scene light control request are used as target response requests. When there is a light-on request in the functional light control request, but the last triggered scene light control request is not a light-on request, the functional light control request corresponding to the light-on request is used as the target response request. When there is a light-on request and a light-off request in the functional light control request, and the last triggered scene light control request is a light-on request, the functional light control request corresponding to the light-on request is used as the target response request.
[0080] When the multiple triggering modes include a function triggering mode and a scene triggering mode, for example, a scene A headlight turn-on request and a function A headlight turn-on request are received in sequence, the scene A headlight turn-on request and the function A headlight turn-on request are used as target response requests.
[0081] When the multiple triggering modes include a function triggering mode and multiple scene triggering modes, for example, the light turning request of scene A, the light turning request of scene B, the light turning request of scene C, and the light turning request of function a are received in sequence, the light turning request of scene C and the light turning request of function a are taken as target response requests.
[0082] Through the above scheme, when there is a light on request but no light off request in the functional light control request, and the last triggered scene light control request is a light on request, the functional light control request corresponding to the light on request and the last triggered scene light control request are used as target response requests. In this way, when the functional light control request corresponding to the light on request is exited, the last triggered scene light control request can be used as the target response request, so that the lights are controlled according to the last triggered scene light control request.
[0083] When there is one triggering mode among the triggering modes of the multiple vehicle light control requests, a target response request is determined from the multiple vehicle light control requests based on the second response mode. The specific process is as follows:
[0084] In some embodiments, the triggering method includes: a function triggering method or a scene triggering method; step 1023 includes:
[0085] Step 10231: In response to determining that there is a triggering method in the triggering methods, judging the triggering method.
[0086] Step 10232, in response to determining that the trigger modes are all functional trigger modes, determining a target response request from the multiple vehicle light control requests based on a functional response mode.
[0087] Alternatively, in step 10233, in response to determining that the triggering modes are all scene triggering modes, a target response request is determined from the multiple vehicle light control requests based on the scene response mode.
[0088] In specific implementation, there are two situations for triggering multiple headlight control requests: all triggering modes are function triggering modes, and all triggering modes are scene triggering modes.
[0089] When the function response mode is that the triggering modes of multiple headlight control requests are all function triggering modes, the arbitration logic of the target response request is determined from the multiple headlight control requests. When the scene response mode is that the triggering modes of multiple headlight control requests are all scene triggering modes, the arbitration logic of the target response request is determined from the multiple headlight control requests.
[0090] When there is one triggering mode among the triggering modes of multiple headlight control requests, it means that the triggering modes of the multiple headlight control requests are the same, and the triggering modes of the multiple headlight control requests are judged. When the triggering modes of the multiple headlight control requests are all function triggering modes, the target response request is determined from the multiple headlight control requests based on the function response mode (function arbitration strategy). When the triggering modes of the multiple headlight control requests are all scene triggering modes, the target response request is determined from the multiple headlight control requests based on the scene response mode (scene arbitration strategy).
[0091] Through the above scheme, when there is one triggering mode among the triggering modes of multiple headlight control requests, the corresponding response mode can be accurately determined by judging the triggering mode. When the triggering modes are all function triggering modes, the target response request can be accurately determined from the multiple headlight control requests based on the function response mode. When the triggering modes are all scene triggering modes, the target response request can be accurately determined from the multiple headlight control requests based on the scene response mode.
[0092] When the triggering modes of multiple headlight control requests are all function triggering modes, a target response request is determined from the multiple headlight control requests based on the function response mode. The specific process is as follows:
[0093] In some embodiments, step 10232 includes:
[0094] Step 10232A, in response to determining that the trigger modes are all functional trigger modes, determining whether there is a headlight on request among the multiple headlight control requests.
[0095] Step 10232B, in response to determining that there is a vehicle light turn-on request among the multiple vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light turn-on request as a target response request.
[0096] Alternatively, in step 1023C, in response to determining that there is no vehicle light turn-on request among the multiple vehicle light control requests, the multiple vehicle light control requests are used as target response requests.
[0097] In specific implementation, the function triggering mode is to trigger the headlight control request through the function set on the vehicle. The function triggering mode of the headlight control request includes at least one of the following: HUT function, AVP function, L3 function and MDC function.
[0098] The HUT function (Head-Up Display), also known as the head-up display system, is an intelligent auxiliary device designed to improve the driver's driving safety and comfort. Using the principle of optical reflection, driving assistance information, navigation information, check control information, and Advanced Driving Assistance System (ADAS) information are projected on the windshield or about 2 meters in front. At the same time, it can also display warning information from various driving assistance systems, thereby preventing the driver from frequently looking down at the instrument or the car screen during driving, which plays a good auxiliary role in driving safety.
[0099] The AVP function (Automated Valet Parking) is an autonomous parking assistance system on the vehicle that can automatically complete all driving tasks such as overtaking, reversing, and avoiding pedestrians without the need for driver operation, truly realizing fully automatic driving.
[0100] The L3 function is the autonomous driving function, which mainly includes automatic vehicle identification and confirmation of the lane, starting the autonomous driving cruise mode, real-time monitoring of the external environment, locking the vehicle in front for following, autonomous driving according to preset programs, automatic driving and obstacle avoidance.
[0101] The MDC function (Mobile Data Center) is a facility dedicated to storing and processing data. It can run on vehicles or other mobile platforms to ensure that data transmission, processing and storage can be carried out smoothly in a mobile environment.
[0102] When the triggering modes of multiple headlight control requests are all function triggering modes, a target response request is determined from the multiple headlight control requests based on the function response mode (function arbitration strategy). The specific process is as follows:
[0103] Determine whether there is a light on request among the multiple light control requests. When there is a light on request among the multiple light control requests, take the light control request corresponding to the light on request as the target response request. When there is no light on request among the multiple light control requests, take the multiple light control requests as the target response requests.
[0104] In other words, when any original vehicle function triggers a light-on request, the light is turned on, an actual light-on instruction is issued, and the corresponding original vehicle function variable is set to 1. When all original vehicle functions trigger a light-off request, the light is turned off, an actual light-off instruction is issued, and the corresponding original vehicle function variable is set to 0.
[0105] For example, if a headlight on request of the HUT function, a headlight off request of the AVP function, and a headlight off request of the L3 function are received, the headlight on request of the HUT function is used as the target response request. For another example, if a headlight off request of the HUT function and a headlight off request of the L3 function are received, the headlight off request of the HUT function and the headlight off request of the L3 function are used as the target response requests.
[0106] Through the above scheme, when the triggering modes of multiple headlight control requests are all function triggering modes, the target response request can be accurately determined from the multiple headlight control requests based on the function response mode. When there is a headlight turn-on request among the multiple headlight control requests, the headlight control request corresponding to the headlight turn-on request is used as the target response request, so that the headlight turn-on request can be responded to first and the headlight turn-on function can be realized. In this way, the headlight turn-on request can be responded to first when the headlight function trigger conflicts, which can not only improve the user experience, but also avoid traffic accidents and ensure the driving safety of users.
[0107] When the triggering modes of multiple headlight control requests are all scene triggering modes, a target response request is determined from the multiple headlight control requests based on the scene response mode. The specific process is as follows:
[0108] In some embodiments, step 10233 includes:
[0109] Step 10233A, in response to determining that the triggering modes are all scene triggering modes, determining whether there is a headlight continuous occupation request among the multiple headlight control requests.
[0110] Step 10233B, in response to determining that there is a headlight continuous occupation request among the plurality of headlight control requests, taking the headlight control request corresponding to the headlight continuous occupation request as a target response request.
[0111] Alternatively, step 10233C, in response to determining that there is no headlight continuous occupation request among the multiple headlight control requests, determine the last triggered headlight control request according to the triggering time of the multiple headlight control requests, and use the last triggered headlight control request as the target response request.
[0112] In a specific implementation, the scene triggering method is to trigger the headlight control request through a scene pre-set on the vehicle. When the pre-set triggering condition is met, the headlight control request based on the scene triggering method is used to control the headlight.
[0113] When the triggering modes of multiple headlight control requests are all scene triggering modes, a target response request is determined from the multiple headlight control requests based on the scene response mode (scene arbitration strategy). The specific process is as follows:
[0114] Determine whether there is a continuous light occupation request among the multiple light control requests. When there is a continuous light occupation request among the multiple light control requests, use the light control request corresponding to the continuous light occupation request as the target response request. When there is no continuous light occupation request among the multiple light control requests, determine the last triggered light control request according to the triggering time of the multiple light control requests, and use the last triggered light control request as the target response request.
[0115] For example, if the headlight continuous occupation request of scene A, the headlight off request of scene B, and the headlight on request of scene C are received in sequence, the headlight continuous occupation request of scene A is used as the target response request. For another example, if the headlight on request of scene A, the headlight off request of scene B, and the headlight on request of scene C are received in sequence, the headlight on request of scene C is used as the target response request.
[0116] After step 1023C, the method further includes: caching the flag bit status of other headlight control requests among the multiple headlight control requests that are not headlight continuous occupation requests; in response to determining that the target response request is executed, obtaining the flag bit status of other headlight control requests; determining the existence of other headlight control requests based on the flag bit status of other headlight control requests, and determining the next target response request according to the trigger time of the other headlight control requests.
[0117] For example, if a request for continuous occupation of the lights of scene A, a request for turning off the lights of scene B, and a request for turning on the lights of scene C are received, the request for continuous occupation of the lights of scene A will be taken as the target response request. At this time, the exterior light basic service ignores the light control requests of scene B and scene C, but caches the flag status of scene B and scene C, and executes the request for continuous occupation of the lights of scene A; when the request for continuous occupation of the lights of scene A is canceled, and the light control requests of scene B and scene C still exist, that is, the cached flag status of scene B and scene C exists, the light control requests of scene B and scene C are executed in sequence according to the trigger time.
[0118] Figure 2 This is a schematic diagram of the actual lighting control instruction generation of the embodiment of the present disclosure. Figure 2As shown, a headlight control request is generated based on the triggering mode of the headlight and the target headlight. Among them, the triggering mode of the headlight includes the exterior light application service and the exterior light original vehicle function. The exterior light application service includes scene A, scene B and scene C. The exterior light original vehicle function includes the HUT function, the AVP function and the L3 function. The target headlight to be controlled is determined from the exterior light basic service. The target headlight includes the position light, the low beam headlight, the high beam headlight, the daytime running light, the front fog light, the rear fog light, the corner light and the turn signal. The actual light control instruction (i.e., the headlight control request) is generated based on the exterior light application service, the exterior light original vehicle function and the exterior light basic service. For example, when the control instruction for the low beam headlight from scene A and the HUT function is received, the headlight control request generated is the low beam headlight control request of scene A and the low beam headlight control request of the HUT function.
[0119] Through the above scheme, when the triggering modes of multiple headlight control requests are all scene triggering modes, the target response request can be accurately determined from the multiple headlight control requests based on the scene response mode. When there is a headlight continuous occupation request among the multiple headlight control requests, the headlight control request corresponding to the headlight continuous occupation request is used as the target response request, so that the headlight continuous occupation request can be responded to first, and the headlight continuous occupation function can be realized. When there is no headlight continuous occupation request among the multiple headlight control requests, the last triggered headlight control request can be accurately determined according to the triggering time of the multiple headlight control requests, and the last triggered headlight control request among the multiple headlight control requests is used as the target response request, so as to avoid responding to multiple headlight control requests in sequence, causing the headlights to flash, thereby avoiding affecting driving safety.
[0120] Based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled.
[0121] The specific process is as follows:
[0122] In some embodiments, step 103 includes:
[0123] Step 103A, in response to determining that the target response request is a headlight turn-on request, controlling the flag state of the trigger mode corresponding to the target response request to switch to a running state, and controlling the flag state of the trigger mode corresponding to other headlight control requests to switch to a stopped state; wherein the other headlight control requests are requests other than the target response request among the multiple headlight control requests.
[0124] Step 103B: in response to determining that the target response request is a headlight off request, controlling the flag bit states of the trigger modes corresponding to the headlight control requests to switch to a stop state.
[0125] In specific implementation, the running state is a flag state set to 1, and the stop state is a flag state set to 0. When the target response request is a light on request, the flag state of the trigger mode corresponding to the target response request is set to 1, and the flag states of the trigger modes corresponding to other response requests are set to 0. When the target response request is a light off request, the flag states of the trigger modes corresponding to multiple light control requests are all set to 0.
[0126] Through the above scheme, based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled. In this way, the trigger mode of the target response request can be determined according to the flag bit state corresponding to each trigger mode, avoiding the problem of unclear trigger mode.
[0127] Through the above embodiment, when there are multiple requests for controlling the lights, the trigger mode corresponding to each request for controlling the lights is determined. Based on the response mode corresponding to the trigger mode, the target response request is determined from the multiple requests for controlling the lights, and the lights are controlled according to the target response request. In this way, different trigger modes correspond to different response modes, and the trigger mode based on the multiple requests for controlling the lights can accurately determine the response mode, thereby determining the target response request for priority response from the multiple requests for controlling the lights based on the response mode, thereby avoiding the situation where the target response request cannot be determined due to the lack of a response mode, and further avoiding the situation where the lights are in a state of confusion, and at the same time, the user will not be unable to turn off the lights or the lights will flash, thereby ensuring the safety and user experience. Based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled. In this way, it is convenient for the user to determine the trigger mode corresponding to the target response request for priority response of the lights according to the flag bit state.
[0128] After step 103, the method further includes:
[0129] Step 201, obtaining an initial scene priority and an initialization function priority of a vehicle light control mode; wherein priority standards of the initial scene priority and the initialization function priority are inconsistent.
[0130] In specific implementation, the vehicle light control mode includes a scene triggering mode and a function triggering mode, wherein the initial scene priority and the initial function priority are pre-stored.
[0131] When the multiple light control requests received are all scene-triggered, the target scene request with priority response can be determined from the multiple light control requests according to the initial scene priority. When the multiple light control requests received are all function-triggered, the target function request with priority response can be determined from the multiple light control requests according to the initial function priority.
[0132] However, when the received multiple headlight control requests include scene triggering modes and function triggering modes, the target headlight control request for priority response cannot be determined from the multiple headlight control requests due to the inconsistent priority standards of the initial scene priority and the initialization function priority.
[0133] Therefore, it is necessary to generate a standard consistent target priority so that when multiple headlight control requests received include scene triggering methods and function triggering methods, the target headlight control request with priority response can be determined from the multiple headlight control requests according to the standard consistent target priority.
[0134] Figure 3 FIG. 1 is a schematic diagram of the interaction between the A core and the M core according to an embodiment of the present disclosure. Figure 3 As shown, the scene control turn signal of the A core includes sentry mode, scene A and scene B. The A core has pre-stored initial scene priority, and can determine the target scene request with priority response from the vehicle light control request of multiple scene triggering modes according to the initial scene priority. The original vehicle control turn signal of the M core includes original vehicle turn signal functions such as anti-theft function, PLG function and switch function. The M core has pre-stored initial function priority, and can determine the target function request with priority response from the vehicle light control request of multiple function triggering modes according to the initial function priority.
[0135] Step 202: adjusting the initial scene priority based on a first preset rule to obtain an adjusted scene priority, and adjusting the initial function priority based on a second preset rule to obtain an adjusted function priority.
[0136] In specific implementation, the first preset rule is a preset rule for adjusting the initial scene priority. The second preset rule is a preset rule for adjusting the initial function priority.
[0137] The initial scene priority is adjusted based on the first preset rule to obtain the adjusted scene priority, and the initial function priority is adjusted based on the second preset rule to obtain the adjusted function priority. In this way, the standards of the adjusted scene priority and the adjusted function priority are consistent, so that the target priority is obtained based on the adjusted scene priority and the adjusted function priority.
[0138] Step 203: Combine the adjustment scene priority and the adjustment function priority to obtain a target priority.
[0139] In specific implementation, the adjustment scene priority and the adjustment function priority are integrated to obtain the target priority. For example, the adjustment scene priority is inserted into the adjustment function priority to obtain the target priority.
[0140] Step 204: Control the vehicle lights according to the target priority.
[0141] In specific implementation, when the received multiple headlight control requests include scene triggering mode and function triggering mode, the target headlight control request with priority response can be determined from the multiple headlight control requests according to the target priority, and the headlights are controlled according to the target headlight control request.
[0142] Through the above scheme, the initial scene priority and the initialization function priority of the headlight control mode are obtained; wherein, the priority standards of the initial scene priority and the initialization function priority are inconsistent. The initial scene priority is adjusted based on the first preset rule to obtain the adjustment scene priority, and the initial function priority is adjusted based on the second preset rule to obtain the adjustment function priority. In this way, by adjusting the initial scene priority and the initialization function priority, the standards of the obtained adjustment scene priority and the adjustment function priority are made consistent. The adjustment scene priority and the adjustment function priority are merged to obtain the target priority. The headlights are controlled according to the target priority. In this way, since the standards of the adjustment scene priority and the adjustment function priority are consistent, the standards of the merged target priority are consistent. When multiple headlight control requests are received, the headlight control request with priority response can be directly determined from the multiple headlight control requests according to the target priority with consistent standards, thereby avoiding the confusion of headlight control and ensuring the safety and experience of users. In addition, there is no need to use multiple priorities for multiple comparisons to determine the headlight control request with priority response, so the headlights can be controlled more quickly and accurately, and the amount of calculation is reduced.
[0143] The initial scene priority is adjusted based on the first preset rule to obtain the adjusted scene priority, and the initial function priority is adjusted based on the second preset rule to obtain the adjusted function priority. The specific process is as follows:
[0144] In some embodiments, step 202 includes:
[0145] Step 2021: convert the initial scene priorities from high to low into odd-numbered scene priorities from low to high, and use the odd-numbered scene priorities as adjusted scene priorities.
[0146] Step 2022: Convert the initial function priority from low to high into an even function priority from low to high, and use the even function priority as the adjusted function priority.
[0147] In specific implementation, the initial scene priority is arranged in order from high to low, and the initial function priority is arranged in order from low to high. The standards of the initial scene priority and the initial function priority are inconsistent. In order to make the standards of the adjustment scene priority and the adjustment function priority consistent, the initial scene priority and the initial function priority are uniformly adjusted to be arranged from low to high. In order to facilitate the merging of the adjustment scene priority and the adjustment function priority, the adjustment scene priority is set to an odd number, and the adjustment function priority is set to an even number.
[0148] Specifically, the initial scene priority from high to low is converted into the odd scene priority from low to high, and the odd scene priority is used as the adjustment scene priority. The initial scene priority is converted into the adjustment scene priority according to the formula, and the specific formula is: adjustment scene priority = (total number of scene triggering modes - initial scene priority) × 2 + 1. As shown in Table 1, Table 1 is a conversion table of scene priorities.
[0149] Table 1 Conversion table of scene priorities
[0150] Scene triggering method in A core Initial scene priority Adjust scene priority Scenario A 10 1 Scenario B 9 3 Scenario C 8 5 Scenario D 7 7 Scenario E 6 9 Scenario F 5 11 Scenario G 4 13 Scene H 3 15 Scenario I 2 17 Scene J 1 19
[0151] Specifically, the initial function priority from low to high is converted into an even function priority from low to high, and the even function priority is used as the adjustment function priority. The initial function priority is converted into the adjustment function priority according to the formula, and the specific formula is: adjustment function priority = initial function priority × 2. As shown in Table 2, Table 2 is a conversion table of function priorities.
[0152] Table 2 Conversion table of function priority
[0153]
[0154]
[0155] Step 203 includes: inserting the adjustment scene priority into the adjustment function priority to obtain the target priority. As shown in Table 3, Table 3 is a priority table corresponding to the target priority.
[0156] Triggering method in M core Target Priority Scenario A 1 Feature 1 2 Scenario B 3 Feature 2 4 Scenario C 5 Feature 3 6 Scenario D 7 Feature 4 8 Scenario E 9 Feature 5 10 Scenario F 11 Function 6 12 Scenario G 13 Feature 7 14 Scene H 15 Function 8 16 Scenario I 17 Feature 9 18 Scene J 19 Feature 10 20
[0157] Through the above scheme, the initial scene priority from high to low is converted into the odd scene priority from low to high, and the odd scene priority is used as the adjustment scene priority. The initial function priority from low to high is converted into the even function priority from low to high, and the even function priority is used as the adjustment function priority. In this way, the adjustment scene priority and the adjustment function priority are arranged from low to high, so that the standards of the adjustment scene priority and the adjustment function priority are consistent. In addition, since the adjustment scene priority is the odd scene priority and the adjustment function priority is the even function priority, it is convenient to merge the adjustment scene priority and the adjustment function priority.
[0158] According to the target priority, the target light control request with priority response is determined from the received light control requests, and the light is controlled according to the target light control request corresponding to the target triggering mode. The specific process is as follows:
[0159] In some embodiments, step 204 includes:
[0160] Step 2041: Receive a scene-triggered vehicle light control request using a scene core, and record the scene-triggered vehicle light control request as a scene request.
[0161] Step 2042: Utilize the function core to receive the vehicle light control request in the function triggering manner, and record the vehicle light control request in the function triggering manner as the function request.
[0162] Step 2043, determining a target scene request from the scene requests, and controlling the scene core to send the target scene request to the function core.
[0163] Step 2044, based on the target priority stored in the functional core, determine the target trigger mode from the scene trigger mode corresponding to the target scene request and the function trigger mode corresponding to the function request, and control the headlights according to the target headlight control request corresponding to the target trigger mode.
[0164] In specific implementation, the scene core (i.e., A core) is used to receive the headlight control request in the scene triggering mode, and the function core (i.e., M core) is used to receive the headlight control request in the function triggering mode. Among them, the scene triggering mode includes at least one of the following: V2L discharge flashing light scene, sentry mode scene, and child mode scene. The function triggering mode includes at least one of the following: switch function, AVP function, L3 function, car lock function, anti-theft alarm function, and thermal runaway alarm function.
[0165] The scene core receives a vehicle light control request in a scene triggering mode, and records the vehicle light control request in the scene triggering mode as a scene request. The function core receives a vehicle light control request in a function triggering mode, and records the vehicle light control request in the function triggering mode as a function request. Determine a target scene request from the scene request, and control the scene core to send the target scene request to the function core. Based on the target priority stored in the function core, determine the target triggering mode from the scene triggering mode corresponding to the target scene request and the function triggering mode corresponding to the function request, and control the vehicle light according to the target vehicle light control request corresponding to the target triggering mode.
[0166] For example, core A receives a request to turn on the lights of scene A, and core M receives a request to turn on the lights of function 1. Core A sends the request to turn on the lights of scene A to core M. Based on the target priority stored in core M, it is determined that the priority of scene A is higher than that of function 1, and scene A is used as the target trigger mode, and the lights are controlled according to the request to turn on the lights of scene A.
[0167] Through the above scheme, based on the target priority stored in the function core, the target trigger mode is determined from the scene trigger mode corresponding to the target scene request and the function trigger mode corresponding to the function request, and the headlights are controlled according to the target headlight control request corresponding to the target trigger mode. In this way, the target headlight control request with a high trigger mode priority can be determined from the target scene request and the function request according to the target priority consistent with the standard, so that the target headlight control request with a high priority can be responded to first.
[0168] Determine the target scene request from the scene request, and control the scene core to send the target scene request to the function core. The specific process is as follows:
[0169] In some embodiments, step 2043 includes:
[0170] Step 2043A, determine whether there are multiple scene requests.
[0171] Step 2043B, in response to determining that there are multiple scene requests, determine whether the adjustment function priority in the target priority is higher than the adjustment scene priority.
[0172] Step 2043C, in response to determining that the adjustment function priority in the target priority is higher than the adjustment scene priority, determine the last triggered scene request according to the trigger time of multiple scene requests, use the last triggered scene request as the target scene request, and control the scene core to send the target scene request to the function core.
[0173] In specific implementation, when the scene core receives multiple requests for car light control in a scene-triggered manner, and the adjustment function priority in the target priority is higher than the adjustment scene priority, the last triggered scene request is determined according to the trigger time of the multiple scene requests, the last triggered scene request is used as the target scene request, and the scene core is controlled to send the target scene request to the function core.
[0174] For example, core A receives the headlight turn-on request of scene A, scene B, and scene C, and core M receives the headlight turn-on request of function 1. Core A determines the headlight turn-on request of scene C that was triggered last from multiple scene requests, and sends the headlight turn-on request of scene C to core M. Based on the target priority stored in core M, it is determined that function 1 has a higher priority than scene C, and function 1 is used as the target trigger mode, and the headlights are controlled according to the headlight turn-on request of function 1.
[0175] Through the above solution, when the scene core receives multiple scene-triggered headlight control requests, and the adjustment function priority in the target priority is higher than the adjustment scene priority, the last triggered scene request among the multiple scene requests is used as the target scene request. In this way, the function core only needs to determine the target headlight control request in the target scene request and the function request, and does not need to compare and process multiple scene requests and function requests, thereby reducing the amount of calculation of the function core and improving processing efficiency.
[0176] Based on the target priority stored in the function core, the target trigger mode is determined from the scene trigger mode corresponding to the target scene request and the function trigger mode corresponding to the function request, and the headlights are controlled according to the target headlight control request corresponding to the target trigger mode. The specific process is as follows:
[0177] In some embodiments, step 2044 includes:
[0178] Step 2044A, obtaining the scene priority instruction and the scene control instruction in the target scene request, and determining and processing the scene priority instruction and the scene control instruction.
[0179] In specific implementation, the target scene request includes a scene priority instruction and a scene control instruction. Among them, the scene priority instruction is used to determine the priority of the target scene request, and the status of the scene priority instruction includes valid and invalid, and the valid status includes occupied (Occupy) and empty (Equal). The scene control instruction is used to determine whether the target scene request is executed, and the status of the scene control instruction includes valid and invalid.
[0180] Each time the M core receives the scene priority instruction = 0x12: Occupy in the target scene request sent by the A core, the timing starts; if the Occupy priority is not received again for more than 2 seconds, the scene priority instruction Occupy is determined to be invalid, and the M core defaults to the scene priority instruction Equa and defaults to the A core without a target scene request, and the headlight control is controlled according to the M core's function request; if the Occupy priority is received again within 2 seconds, the timing is restarted, and the scene priority instruction Occupy is determined to continue to be valid. If other valid scene priority instructions are received within 2 seconds, the priority is determined to be switched normally, and the scene priority instruction Occupy is no longer judged to be timed out.
[0181] Step 2044B, in response to determining that the scene priority instruction is valid and the scene control instruction is valid, based on the target priority stored in the functional core, determine the target trigger mode from the scene trigger mode corresponding to the scene request and the function trigger mode corresponding to the function request, and control the headlights according to the target headlight control request corresponding to the target trigger mode.
[0182] In specific implementation, when the scene priority instruction is valid and the scene control instruction is valid, it means that the priority of the target scene request can be determined and the target scene request can be executed. Then, based on the target priority stored in the function core, the target trigger mode is determined from the scene trigger mode corresponding to the scene request and the function trigger mode corresponding to the function request, and the headlights are controlled according to the target headlight control request corresponding to the target trigger mode.
[0183] For example, the A core receives a request to turn on the lights of scene A, and the M core receives a request to turn on the lights of function 1. When the scene priority instruction in the request to turn on the lights of scene A is valid and the scene control instruction is valid, based on the target priority stored in the function core, it is determined that the priority of scene A is higher than that of function 1, and scene A is used as the target trigger mode, and the lights are controlled according to the request to turn on the lights of scene A.
[0184] Alternatively, in step 2044C, in response to determining that the scene priority instruction is valid and the scene control instruction is invalid, the function triggering mode corresponding to the function request is used as the target triggering mode, and the vehicle lights are controlled according to the function request.
[0185] In specific implementation, when the scene priority instruction is valid and the scene control instruction is invalid, it means that the priority of the target scene request can be determined but the target scene request cannot be executed. Then the function trigger mode corresponding to the function request is used as the target trigger mode, and the car lights are controlled according to the function request.
[0186] For example, core A receives a request to turn on the lights of scene A, and core M receives a request to turn on the lights of function 1. When the scene priority instruction in the request to turn on the lights of scene A is valid and the scene control instruction is invalid, function 1 is used as the target trigger mode, and the lights are controlled according to the request to turn on the lights of function 1.
[0187] Alternatively, in step 2044D, in response to determining that the scene priority instruction is occupied and the scene control instruction is invalid, the function trigger mode corresponding to the function request is used as the target trigger mode, the vehicle lights are controlled according to the function request, and no response is given to function requests received during the time period occupied by the priority instruction.
[0188] In specific implementation, when the scene priority instruction is occupied (Occupy) and the scene control instruction is invalid, it means that the priority of the target scene request is occupied but the target scene request cannot be executed. Then the function trigger mode corresponding to the function request is used as the target trigger mode, and the car lights are controlled according to the function request, and the function requests received during the priority instruction occupation time period are not responded to.
[0189] For example, core A receives a request to turn on the lights of scene A, and core M receives a request to turn on the lights of function 1. When the scene priority instruction in the request to turn on the lights of scene A is occupied and the scene control instruction is invalid, function 1 is used as the target trigger mode, and the lights are controlled according to the request to turn on the lights of function 1. At the same time, the light control request of the function trigger mode of core M is shielded, and the function request received during the time period occupied by the priority instruction is not responded to.
[0190] Alternatively, in step 2044E, in response to determining that the scene priority instruction is invalid and the scene control instruction is valid, the function trigger mode corresponding to the function request is used as the target trigger mode, the vehicle lights are controlled according to the function request, and the priority corresponding to the target scene request is set to empty.
[0191] In specific implementation, when the scene priority instruction is invalid and the scene control instruction is valid, it means that the priority of the target scene request cannot be determined but the target scene request can be executed. Then the function trigger mode corresponding to the function request is used as the target trigger mode, the car lights are controlled according to the function request, and the priority corresponding to the target scene request is set to empty.
[0192] For example, core A receives a request to turn on the lights of scene A, and core M receives a request to turn on the lights of function 1. When the scene priority instruction in the request to turn on the lights of scene A is invalid and the scene control instruction is valid, function 1 is used as the target trigger mode, and the lights are controlled according to the request to turn on the lights of function 1. At the same time, the priority corresponding to the request to turn on the lights of scene A is set to empty (Equal).
[0193] Through the above scheme, when the scene priority instruction is invalid or the scene control instruction is invalid, the function trigger mode corresponding to the function request can be used as the target trigger mode, and the car lights can be controlled according to the function request, avoiding errors caused by controlling the car lights according to the target scene request.
[0194] After controlling the lights according to the target light control request corresponding to the target trigger mode, if a light control request is received again, it is necessary to determine whether to interrupt the currently executed target light control request. The specific process is as follows:
[0195] In some embodiments, after step 2044, the method further includes:
[0196] Step 2045, in response to determining that a headlight control request is received again, the headlight control request received again is used as an update headlight control request, an update trigger mode corresponding to the update headlight control request is determined, and based on the target priority, it is determined whether the update trigger mode has a higher priority than the target trigger mode.
[0197] Step 2046, in response to determining that the update trigger mode has a higher priority than the target trigger mode, interrupting the target vehicle light control request according to a preset interruption mode, and controlling the vehicle lights according to the update vehicle light control request.
[0198] In specific implementation, when the headlights are controlled according to the target headlight control request corresponding to the target trigger mode, when an update headlight control request is received and the update trigger mode has a higher priority than the target trigger mode, the target headlight control request is interrupted according to a preset interruption mode, and the headlights are controlled according to the update headlight control request.
[0199] For example, in the process of controlling the headlights according to the target headlight control request corresponding to function 1, an update headlight control request corresponding to scene A is received, and based on the target priority, it is determined that the priority of scene A is higher than function 1. The target headlight control request corresponding to function 1 is interrupted according to the preset interruption method, and the headlights are controlled according to the update headlight control request corresponding to scene A.
[0200] Through the above scheme, when an update light control request is received and the update trigger mode has a higher priority than the target trigger mode, the target light control request can be interrupted, and the lights can be controlled according to the update light control request, so that the vehicle control request can be switched to the update light control request with a high priority, thereby avoiding the inability to switch to the update light control request with a high priority during the execution of the target light control request, and improving the user experience.
[0201] When the currently executed target vehicle light control request needs to be interrupted, the interruption time of the target vehicle light control request is determined, and the target vehicle light control request is interrupted at the determined interruption time. The specific process is as follows:
[0202] In some embodiments, step 2046 includes:
[0203] Step 2046A, taking the moment when the request to update the vehicle light control is received as the current moment, and determining the vehicle light status at the current moment.
[0204] Step 2046B, in response to determining that the current state of the headlights is the on state, controlling the headlights according to the target headlight control request, interrupting the target headlight control request at the moment when the headlights are switched to the off state, and controlling the headlights according to the updated headlight control request.
[0205] In specific implementation, when the current light state of the headlight at the moment of receiving the update light control request is the light-on state, the headlight is first controlled according to the target light control request, and the target light control request is interrupted at the switching moment when the headlight is switched to the light-off state, and the headlight is controlled according to the update light control request.
[0206] When the current headlight state is on, the update headlight control request interrupts the target headlight control request, including two situations: the frequency of the update headlight control request is higher than the frequency of the target headlight control request, and the frequency of the update headlight control request is lower than the frequency of the target headlight control request.
[0207] Figure 4 FIG. 1 is a schematic diagram of the first interruption in the light-on state of an embodiment of the present disclosure. Figure 4 As shown, a high-frequency update light control request interrupts a low-frequency target light control request, the period of the target light control request is 350ms, and the period of the update light control request is 200ms. If the update light control request is received at the 100th ms when the target light control request is in the on state, the target light control request will be interrupted 250ms later (the switching moment when the light is switched to the off state), and the light will be controlled according to the update light control request.
[0208] Figure 5 FIG. 1 is a schematic diagram of a second interruption in a light-on state in an embodiment of the present disclosure. Figure 5As shown, a low-frequency update light control request interrupts a high-frequency target light control request, the period of the target light control request is 150ms, and the period of the update light control request is 200ms. If the update light control request is received at 50ms when the target light control request is in the on state, the target light control request will be interrupted 100ms later (the switching moment when the light is switched to the off state), and the light will be controlled according to the update light control request.
[0209] Alternatively, step 2046C, in response to determining that the vehicle light state at the current moment is the lights-off state, determining that the lights-off time in which the vehicle lights are in the lights-off state is greater than a preset time threshold, interrupting the target vehicle light control request at the lights-off time, and controlling the vehicle lights according to the updated vehicle light control request.
[0210] In specific implementation, when the current state of the lights at the moment of receiving the request for updating the light control is the lights-off state, it is determined that the lights-off time in which the lights are in the lights-off state is greater than the lights-off time at a preset time threshold, the target light control request is interrupted at the lights-off time, and the lights are controlled according to the request for updating the light control.
[0211] When the current light state is off, the update light control request interrupts the target light control request, including two situations: the frequency of the update light control request is higher than the frequency of the target light control request, and the frequency of the update light control request is lower than the frequency of the target light control request.
[0212] Figure 6 FIG. 1 is a schematic diagram of the first interruption in the light-off state of an embodiment of the present disclosure. Figure 6 As shown, a high-frequency update light control request interrupts a low-frequency target light control request, the period of the target light control request is 350ms, the period of the update light control request is 200ms, the preset duration threshold is 200ms, and the update light control request is received at 300ms when the target light control request is in the lights-off state. Since the lights-off duration at the current moment when the update light control request is received is greater than the preset duration threshold, the current moment is directly used as the lights-off moment, and the target light control request is directly interrupted at the current moment when the update light control request is received, and the lights are controlled according to the update light control request.
[0213] Figure 7 FIG. 1 is a schematic diagram of a second interruption in a light-off state in an embodiment of the present disclosure. Figure 7As shown, a high-frequency update light control request interrupts a low-frequency target light control request, the period of the target light control request is 350ms, the period of the update light control request is 200ms, the preset duration threshold is 200ms, and the update light control request is received at the 100th ms when the target light control request is in the lights-off state. Since the lights-off duration at the current moment when the update light control request is received is less than the preset duration threshold, the target light control request is interrupted after 100ms (the lights-off time when the lights-off duration reaches the preset duration threshold), and the lights are controlled according to the update light control request.
[0214] Figure 8 FIG. 1 is a schematic diagram of a third interruption in the light-off state of an embodiment of the present disclosure. Figure 8 As shown, a low-frequency update light control request interrupts a high-frequency target light control request, the period of the target light control request is 200ms, the period of the update light control request is 350ms, the preset duration threshold is 200ms, and the update light control request is received at 50ms when the target light control request is in the lights-off state. Since the lights-off duration at the current moment when the update light control request is received is less than the preset duration threshold, the target light control request is interrupted after 50ms (the lights-off time when the lights-off duration reaches the preset duration threshold), and the lights are controlled according to the update light control request.
[0215] Through the above scheme, when the current state of the vehicle lights at the moment of receiving the update vehicle lights control request is the light-on state, the vehicle lights are first controlled according to the target vehicle lights control request, the target vehicle lights control request is interrupted at the switching moment when the vehicle lights are switched to the light-off state, and the vehicle lights are controlled according to the update vehicle lights control request, so that it is possible to avoid the vehicle lights being switched to the update vehicle lights control request in the light-on state, causing the vehicle lights to be turned off, thereby avoiding affecting driving safety and avoiding damage to the vehicle lights. When the current state of the vehicle lights at the moment of receiving the update vehicle lights control request is the light-off state, it is determined that the light-off time when the vehicle lights are in the light-off state is greater than the preset time threshold, the target vehicle lights control request is interrupted at the light-off time, and the vehicle lights are controlled according to the update vehicle lights control request, so that it is possible to avoid the vehicle lights being switched to the update vehicle lights control request in a short time after being in the light-off state, causing the vehicle lights to be turned on, thereby avoiding the vehicle lights being turned on again in a short time and damaging the vehicle lights.
[0216] It should be noted that the embodiments of the present disclosure may be further described in the following manner:
[0217] 1. External light basic service arbitration strategy between scenes:
[0218] (1) Scene A calls the exterior light basic service to turn on the low beam, scene B calls the exterior light basic service to turn off the low beam, and scene C calls the exterior light basic service to turn on the low beam. At this time, the exterior light basic service needs to turn on the low beam, and the last-come-first-served principle is followed. The variables of scene A and scene B are set to 0, indicating that the functions of scene A and scene B have been exited. The variable of scene C is set to 1, indicating that the low beam function of scene C is being executed.
[0219] (2) Scene A calls the exterior light basic service and requires the low beam to be turned on continuously. Scene B calls to turn off the low beam. Scene C calls to turn on the low beam. At this time, the exterior light basic service ignores the low beam requirements of scenes B and C, but needs to set variable caches for scenes B and C to execute the low beam requirement of scene A. When the continuous low beam requirement of scene A exits, if the low beam requests of scenes B and C still exist, that is, the variable requests cached by scenes B and C are still there, they are executed in the order of calling.
[0220] 2. Exterior light basic service arbitration strategy between the scene and the original vehicle:
[0221] (1) If both the scene and the original vehicle function turn on the low beam, the exterior light basic service will be executed according to the principle of turning on if either is turned on. For example, if scene A turns on the low beam and the HUT turns on the low beam, the exterior light basic service caches the variables of scene A and HUT turning on the low beam and sets them to 1, and the low beam remains on.
[0222] (2) If the scene turns on the low beam and the original vehicle function turns off the low beam, the exterior light basic service will execute according to the original vehicle function > scene function and turn off the low beam. For example, if scene A turns on the low beam and the HUT turns off the low beam, the exterior light basic service will turn off the low beam and set the scene A and HUT on variables to 0.
[0223] (3) If the scene turns off the low beam, and the original vehicle function turns on the low beam, then the exterior basic service will also be executed according to the original vehicle function > scene function, and the low beam will be turned on. For example, if scene A turns off the low beam and the HUT turns on the low beam, then the exterior basic service turns on the low beam and only sets the scene cache variable to 0, indicating that the scene turns off the low beam function has exited, and the HUT turns on the low beam function is executed at this time.
[0224] 3. Arbitration strategy for basic services of controlling exterior lights in multiple scenarios and with multiple original vehicle functions:
[0225] (1) If multiple scenarios and multiple original vehicle functions enable low beam, the exterior light basic service will execute the scenario and original vehicle function low beam enable requests at the same time. For example, if scenario A enables low beam, scenario B enables low beam, scenario C enables low beam, and the original vehicle function HUT enables low beam, then scenario C and HUT enable low beam will be executed, and the cache variables of scenario A and scenario B will be cleared to 0, and the variables of scenario C and HUT enabling low beam will be set to 1.
[0226] (2) If the low beam is continuously turned on in multiple scenarios and the original vehicle functions include turning on the low beam and turning off the low beam, the exterior light basic service executes the original vehicle to turn on the low beam. For example, if scenario A is continuously occupied and the low beam is turned on, the original vehicle HUT turns on the low beam, the original vehicle AVP turns off the low beam, and the original vehicle L3 turns off the low beam, the HUT turns on the low beam function, keeps the HUT turning on the low beam variable as 1, clears the scene A continuous occupation, and the variables of the original vehicle AVP and the original vehicle L3 turning off the low beam, and does not actually send the low beam off command, indicating that the above functions have exited.
[0227] 4. Exterior light basic service arbitration strategy between original vehicle and original vehicle function:
[0228] (1) Turn on the low beam. If any original vehicle function triggers the low beam, the light will be turned on, the actual light-on command will be issued, and the corresponding original vehicle function variable will be set to 1.
[0229] (2) Turn off the low beam. The lights will be turned off only when all the original vehicle functions request to turn off the lights. The actual light-off instruction is issued and the corresponding original vehicle function variables are set to 0.
[0230] For the newly added scene triggering mode, the above arbitration strategy can still be used. For the headlight control request of other vehicle exterior lights, the above arbitration strategy can also be used.
[0231] Through the above embodiments, when the scene triggering mode conflicts with the function triggering mode, the function triggering mode can be used to control the headlights; when the function triggering mode conflicts with the function triggering mode, the headlight turning-on request can be used as the basis. In this way, not only can the user experience be improved, but also traffic accidents can be avoided. At the same time, it can adapt to different car models and provide flexible, professional and efficient solutions according to specific application scenarios and needs. The arbitration logic comprehensively considers various factors and selects appropriate arbitration procedure rules and mechanisms to ensure that the arbitration results can comply with the relevant regulations on exterior lights and meet actual needs.
[0232] Case 1: The interaction mechanism that the A-core scene mode turn signal function priority is higher than the M-core original vehicle function turn signal priority:
[0233] Since the priority rule of the M core is from small to large, the priority becomes smaller and smaller, and the priority rule of the A core is from small to large, the priority becomes larger and larger. Therefore, in order to enable the M core to recognize the priority information sent by the A core, first, the initial function priority of the M core turn signal is converted to an even-numbered adjustment function priority (as shown in Table 2), and the specific formula is: adjustment function priority = initial function priority × 2. At the same time, the initial scene priority of the A core turn signal is converted to an odd-numbered adjustment scene priority (as shown in Table 1), and the specific formula is: adjustment scene priority = (total number of scene triggering methods - initial scene priority) × 2 + 1. At this time, if the A core turn signal basic service has a higher priority scene that needs to control the turn signal, it is inserted in the M core according to the priority comparison table 1 and table 2 of the turn signal priority scene input to the A core. If the A core scene turn signal function is a collision alarm, the highest priority is defined, then the A core needs to send a priority of 60; after receiving the A core priority, the M core needs to convert it to priority 1 and perform subsequent flashing instructions.
[0234] Note: Core A currently only uses priority levels 1-83, and priority levels 85-111 are not used for the time being. This does not affect the turn signal priority function in special circumstances (such as thermal runaway alarm, liveness detection, etc.).
[0235] Case 2: The interaction mechanism where the A-core scene mode turn signal function priority is lower than the M-core original vehicle function turn signal priority:
[0236] If the scene modes of the turn signal of core A include scene B, scene C, and scene D, and all three scenes have a request to turn on the turn signal, then the basic service of core A only needs to execute the last scene mode to core M, that is, the last-come-first-served principle and send the priority flag as low. After receiving the low-priority turn signal request of core A, core M first detects whether its own turn signal function is triggered. If not, it executes the turn signal control instruction of core A; if the turn signal function of core M is triggered, it waits for its own function to end. If there is still a request for the turn signal function of core A, it executes the turn signal instruction of core A.
[0237] Specific implementation: Core A needs to define the turn signal working instruction and the turn signal priority instruction. Each time the M core receives the turn signal priority instruction of core A = 0x12: Occupy, it starts timing.
[0238] (1) If the Occupy priority is not received again within 2 seconds, the Occupy priority is considered invalid, and the M core defaults to the current priority of Equa and the A core defaults to no turn signal function control requirements. The lighting control is based on the M core function control; if the Occupy priority is received again within 2 seconds, the timer is reset and Occupy is considered to be valid. If other valid priority information is received within 2 seconds, the priority is considered to be switched normally and the Occupy timeout is no longer considered.
[0239] (2) If the received priority is a valid value (Occupy / Equal) and the control instruction is an invalid value, the function remains in the current state; if the priority is Occupy and the control instruction is an invalid value, the function remains in the current state and the M core turn signal function is shielded; if the priority is an invalid value and the control instruction is a valid value, the M core defaults to the current priority as Equal, does not execute the A core request, and the M core turn signal function is not affected.
[0240] Case 3: Flashing mechanism of the original car function of the M-core turn signal:
[0241] (1) Functions with the same priority level are executed according to the later trigger. After the later trigger is executed, if there are still other functions in the current priority level that meet the activation conditions, they will continue to be executed until all functions in the same priority level do not meet the activation conditions.
[0242] (2) The high-priority function directly interrupts the output of the low-priority function; after the high-priority function is executed, if the low-priority function is still satisfied or triggered again, the low-priority function continues to execute.
[0243] (3) If the turn signal is in the locked state within 1 second when the flashing lights request is triggered, the car search will be executed after the locking prompt is completed; the priority of flashing lights + honking the horn is based on the priority of exterior lights.
[0244] Through the above embodiments, different vehicle models can be adapted for use, and flexible, professional and efficient solutions can be provided according to specific application scenarios and needs. The interactive mechanism comprehensively considers various factors and selects appropriate rules and mechanisms to ensure that the turn signal results are consistent with the complex mutual interruption mechanism of the turn signal itself and meet actual needs.
[0245] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0246] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0247] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a vehicle light control device.
[0248] refer to Fig. 9 , the vehicle light control device comprises:
[0249] The trigger mode determination module 301 is configured to determine a trigger mode corresponding to each vehicle light control request in response to determining that there are multiple vehicle light control requests;
[0250] The vehicle light control module 302 is configured to determine a target response request from the plurality of vehicle light control requests based on a response mode corresponding to the trigger mode, and control the vehicle light according to the target response request;
[0251] The flag status control module 303 is configured to control the flag status corresponding to each trigger mode based on the request content of the target response request.
[0252] In some embodiments, the vehicle light control module 302 includes:
[0253] a trigger mode determination unit, configured to determine whether there are two trigger modes in the trigger mode;
[0254] A first target response request determining unit is configured to determine a target response request from the plurality of vehicle light control requests based on a first response mode in response to determining that there are two trigger modes in the trigger modes; or
[0255] The second target response request determining unit is configured to determine a target response request from the plurality of vehicle light control requests based on a second response method in response to determining that there is one trigger method in the trigger methods.
[0256] In some embodiments, the triggering mode includes: a function triggering mode and a scene triggering mode; the first target response request determining unit includes:
[0257] The first target response request determination subunit is configured to, in response to determining that there are two trigger modes in the trigger mode, determine the headlight control request of the functional trigger mode from the multiple headlight control requests based on the first response mode, and determine the target response request from the headlight control request of the functional trigger mode.
[0258] In some embodiments, the triggering mode includes: a function triggering mode or a scene triggering mode; the second target response request determining unit includes:
[0259] a trigger mode determination subunit, configured to, in response to determining that one of the trigger modes exists, determine the trigger mode;
[0260] a functional target response request determination subunit, configured to, in response to determining that the trigger modes are all functional trigger modes, determine a target response request from the plurality of vehicle light control requests based on the functional response modes;
[0261] The scene target response request determination subunit is configured to, in response to determining that all the triggering modes are scene triggering modes, determine a target response request from the multiple vehicle light control requests based on the scene response mode.
[0262] In some embodiments, the functional target response request determination subunit is specifically configured as follows:
[0263] In response to determining that the trigger modes are all functional trigger modes, determining whether there is a vehicle light turn-on request among the plurality of vehicle light control requests;
[0264] In response to determining that there is a vehicle light turn-on request among the plurality of vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light turn-on request as a target response request; or,
[0265] In response to determining that there is no vehicle light turn-on request among the plurality of vehicle light control requests, the plurality of vehicle light control requests are used as target response requests.
[0266] In some embodiments, the scene target response request determination subunit is specifically configured as follows:
[0267] In response to determining that the triggering modes are all scene triggering modes, determining whether there is a vehicle light continuous occupation request among the plurality of vehicle light control requests;
[0268] In response to determining that there is a vehicle light continuous occupation request among the plurality of vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light continuous occupation request as a target response request; or,
[0269] In response to determining that there is no headlight continuous occupation request among the multiple headlight control requests, the last triggered headlight control request is determined according to the triggering time of the multiple headlight control requests, and the last triggered headlight control request is used as the target response request.
[0270] In some embodiments, the flag status control module 303 includes:
[0271] A first flag state control unit is configured to, in response to determining that the target response request is a vehicle light turn-on request, control the flag state of the trigger mode corresponding to the target response request to switch to a running state, and control the flag state of the trigger mode corresponding to other vehicle light control requests to switch to a stop state; wherein the other vehicle light control request is a request other than the target response request among the plurality of vehicle light control requests;
[0272] The second flag state control unit is configured to control the flag states of the trigger modes corresponding to the plurality of headlight control requests to switch to a stop state in response to determining that the target response request is a headlight off request.
[0273] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0274] The device of the above embodiment is used to implement the corresponding vehicle light control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0275] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle light control method described in any of the above embodiments is implemented.
[0276] Fig.10 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0277] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0278] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0279] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0280] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB (Universal Serial Bus), network cable, etc.), or through a wireless mode (such as mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).
[0281] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0282] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0283] The electronic device of the above embodiment is used to implement the corresponding vehicle light control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0284] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle light control method as described in any of the above embodiments.
[0285] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0286] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the vehicle light control method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0287] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a vehicle, including the headlight control device, or electronic device, or storage medium in the above-mentioned embodiments, and the vehicle equipment implements the headlight control method described in any of the above embodiments.
[0288] The vehicle of the above-mentioned embodiment is used to implement the vehicle light control method described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0289] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0290] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0291] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0292] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present disclosure. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A vehicle light control method, characterized in that: The method comprises: In response to determining that there are multiple vehicle light control requests, determining a triggering mode corresponding to each vehicle light control request; Based on the response mode corresponding to the trigger mode, determining a target response request from the plurality of vehicle light control requests, and controlling the vehicle light according to the target response request; Based on the request content of the target response request, the flag bit state corresponding to each trigger mode is controlled.
2. The method according to claim 1, characterized in that The step of determining a target response request from the plurality of vehicle light control requests based on the response mode corresponding to the trigger mode includes: Determine whether there are two triggering modes in the triggering mode; In response to determining that there are two triggering modes in the triggering modes, determining a target response request from the plurality of vehicle light control requests based on a first response mode; or, In response to determining that there is one triggering mode in the triggering modes, a target response request is determined from the plurality of vehicle light control requests based on a second response mode.
3. The method according to claim 2, characterized in that The triggering modes include: function triggering mode and scene triggering mode; In response to determining that there are two triggering modes in the triggering mode, determining a target response request from the plurality of vehicle light control requests based on a first response mode includes: In response to determining that there are two triggering modes in the triggering mode, based on the first response mode, a headlight control request of a functional triggering mode is determined from the multiple headlight control requests, and a target response request is determined from the headlight control requests of the functional triggering mode.
4. The method according to claim 2, characterized in that: The triggering mode includes: function triggering mode or scene triggering mode; In response to determining that there is a trigger mode in the trigger modes, determining a target response request from the plurality of vehicle light control requests based on a second response mode includes: In response to determining that one of the triggering modes exists, judging the triggering mode; In response to determining that the trigger modes are all functional trigger modes, determining a target response request from the plurality of vehicle light control requests based on a functional response mode; or, In response to determining that the triggering modes are all scene triggering modes, a target response request is determined from the multiple vehicle light control requests based on the scene response mode.
5. The method according to claim 4, characterized in that In response to determining that the triggering modes are all functional triggering modes, determining a target response request from the plurality of vehicle light control requests based on the functional response mode includes: In response to determining that the trigger modes are all functional trigger modes, determining whether there is a vehicle light turn-on request among the plurality of vehicle light control requests; In response to determining that there is a vehicle light turn-on request among the plurality of vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light turn-on request as a target response request; or, In response to determining that there is no vehicle light turn-on request among the plurality of vehicle light control requests, the plurality of vehicle light control requests are used as target response requests.
6. The method according to claim 4, characterized in that In response to determining that the triggering modes are all scene triggering modes, determining a target response request from the plurality of vehicle light control requests based on the scene response mode includes: In response to determining that the triggering modes are all scene triggering modes, determining whether there is a vehicle light continuous occupation request among the plurality of vehicle light control requests; In response to determining that there is a vehicle light continuous occupation request among the plurality of vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light continuous occupation request as a target response request; or, In response to determining that there is no headlight continuous occupation request among the multiple headlight control requests, the last triggered headlight control request is determined according to the triggering time of the multiple headlight control requests, and the last triggered headlight control request is used as the target response request.
7. The method according to claim 1, characterized in that The controlling the flag bit state corresponding to each trigger mode based on the request content of the target response request includes: In response to determining that the target response request is a vehicle light turn-on request, controlling the flag bit state of the trigger mode corresponding to the target response request to switch to a running state, and controlling the flag bit states of the trigger modes corresponding to other vehicle light control requests to switch to a stop state; wherein the other vehicle light control requests are requests other than the target response request among the plurality of vehicle light control requests; In response to determining that the target response request is a headlight off request, the flag bit states of the trigger modes corresponding to the headlight control requests are controlled to switch to a stop state.
8. A vehicle light control device, characterized in that: include: a trigger mode determination module, configured to determine a trigger mode corresponding to each vehicle light control request in response to determining that there are multiple vehicle light control requests; A vehicle light control module is configured to determine a target response request from the plurality of vehicle light control requests based on a response mode corresponding to the trigger mode, and control the vehicle light according to the target response request; The flag status control module is configured to control the flag status corresponding to each trigger mode based on the request content of the target response request.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: It includes the vehicle light control device according to claim 8 or the electronic device according to claim 9.
Citation Information
Patent Citations
Control method and related equipment
CN112835351A
Vehicle light control method and device, storage medium and vehicle
CN117507998A
Multifunctional switch assembly of automobile steering wheel
CN218257925U
Method for controlling of light functions of an automobile light, device comprising such an automobile light and computer program product for carrying out the method
EP3620330A1
Method and apparatus for controlling headlights of autonomous vehicle
US20200001775A1