Vehicle lamp control method and device, electronic equipment and vehicle
By determining the triggering and response methods for headlight control requests and arbitrating multiple requests to identify the target response request, the problem of chaotic headlight control is resolved, ensuring safety and a good user experience.
Patent Information
- Application Number
- CN202411892492.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-12-20
AI Technical Summary
When multiple headlight control requests are received, existing technology cannot effectively arbitrate, leading to chaotic headlight control and affecting user safety and experience.
By determining the triggering method corresponding to each headlight control request, and based on the response method of the triggering method, the target response request is determined from multiple requests, and the headlights are controlled. The status of each triggering method is managed using flag bit status.
It achieves accurate response to multiple headlight requests, avoids headlight control confusion, ensures user safety and experience, and prevents headlights from failing to turn off or flashing.
Smart Images

Figure CN119705265B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of vehicle control, and particularly relates to a vehicle light control method and device, electronic equipment and vehicle. BACKGROUND
[0002] With the development of the vehicle industry, vehicle light control can be triggered by vehicle functions and application service scenarios. However, when multiple vehicle light control requests are received, it is not determined which vehicle light control request to execute, resulting in vehicle light control confusion, and the user cannot turn off the vehicle light or the vehicle light flashes, affecting user safety and experience.
[0003] Therefore, how to avoid vehicle light control confusion when multiple vehicle light requests are received has become a technical problem to be solved. SUMMARY
[0004] Therefore, the purpose of the present disclosure is to provide a vehicle light control method, device, electronic equipment and vehicle to solve the problem of vehicle light control confusion when multiple vehicle light requests are received in the prior art.
[0005] To achieve the above purpose, a first aspect of the present disclosure provides a vehicle light control method, which comprises:
[0006] In response to determining that the vehicle light control request is multiple, determining the trigger mode corresponding to each vehicle light control request;
[0007] Based on the response mode corresponding to the trigger mode, determining a target response request from the multiple vehicle light control requests, and controlling the vehicle light according to the target response request;
[0008] Based on the request content of the target response request, controlling the flag bit state corresponding to each trigger mode.
[0009] Based on the same inventive concept, a second aspect of the present disclosure provides a vehicle light control device, which comprises:
[0010] A trigger mode determination module configured to determine the trigger mode corresponding to each vehicle light control request in response to determining that the vehicle light control request is multiple;
[0011] A vehicle light control module configured to determine a target response request from the multiple vehicle light control requests based on the response mode corresponding to the trigger mode, and control the vehicle light according to the target response request;
[0012] A flag bit state control module configured to control the flag bit state corresponding to each trigger mode based on the request content of the target response request.
[0013] Based on the same inventive concept, a third aspect of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.
[0014] Based on the same inventive concept, a fourth aspect of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method described above.
[0015] Based on the same inventive concept, a fifth aspect of the present disclosure provides a vehicle comprising the vehicle lamp control device of the second aspect, the electronic device of the third aspect, or the storage medium of the fourth aspect.
[0016] As can be seen from the above, the vehicle lamp control method, device, electronic device, and vehicle provided by the present disclosure are provided. When there are multiple vehicle lamp control requests, the trigger mode corresponding to each vehicle lamp control request is determined. Based on the response mode corresponding to the trigger mode, the target response request is determined from the multiple vehicle lamp control requests, and the vehicle lamp is controlled according to the target response request. In this way, different trigger modes correspond to different response modes, and the response mode can be accurately determined based on the trigger mode of the multiple vehicle lamp control requests, so that the target response request that is preferentially responded to is determined from the multiple vehicle lamp control requests based on the response mode, avoiding the situation that the target response request cannot be determined due to the absence of the response mode, further avoiding the situation that the vehicle lamp control is chaotic, and at the same time, avoiding the situation that the user cannot turn off the vehicle lamp or the vehicle lamp flashes, thereby ensuring the safety and experience of the user. Based on the request content of the target response request, the state of the flag corresponding to each trigger mode is controlled. In this way, the user can determine the trigger mode corresponding to the target response request that is preferentially responded to according to the state of the flag. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present disclosure or the related art, the following will briefly introduce the drawings needed to be used in the embodiments or related art descriptions. Obviously, the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0018] Figure 1 The flowchart of the vehicle lamp control method of the embodiment of the present disclosure;
[0019] Figure 2 The schematic diagram of the light actual control instruction generated by the embodiment of the present disclosure;
[0020] Figure 3 The schematic diagram of the interaction between the A core and the M core of the embodiment of the present disclosure;
[0021] Figure 4 a schematic diagram of a first interruption in the light-on state of the embodiment of the present disclosure;
[0022] Figure 5 a schematic diagram of a second interruption in the light-on state of the embodiment of the present disclosure;
[0023] Figure 6 a schematic diagram of a first interruption in the light-off state of the embodiment of the present disclosure;
[0024] Figure 7 a schematic diagram of a second interruption in the light-off state of the embodiment of the present disclosure;
[0025] Figure 8 a schematic diagram of a third interruption in the light-off state of the embodiment of the present disclosure;
[0026] Figure 9 a schematic diagram of the structure of the vehicle light control device of the embodiment of the present disclosure;
[0027] Figure 10 a schematic diagram of the structure of the electronic device of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below with reference to specific embodiments and 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 as the common meanings understood by those skilled in the art to which the present disclosure belongs. The terms "first", "second", and similar terms used in the embodiments of the present disclosure do not represent any order, number, or importance, but are only used to distinguish different components. The terms "include", "contain", and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms "connect" or "connected" and similar terms do not mean physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms "upper", "lower", "left", "right", and the like only represent relative positional relationships, and when the absolute positions of the described objects change, the relative positional relationships may also change accordingly.
[0030] Based on the background technology description, the current vehicle industry is rapidly developing towards intelligence, digitalization, connectivity, and service orientation. On the one hand, the vehicle's electrical and electronic (EE) architecture is evolving from a traditional distributed architecture to a "central domain controller + regional controller" architecture. This high-computing-power, high-bandwidth, and loosely coupled EE architecture makes "software-defined vehicles" possible. On the other hand, software is beginning to adopt Service-Oriented Architecture (SOA) design. Under SOA, services can be flexibly deployed, invoked across domains, reused, and highly decoupled. Through service orchestration, complex functional scenarios can be quickly implemented, and software can be upgraded independently, making vehicle-side function upgrades more flexible. Therefore, SOA architecture can improve software development efficiency, reduce development and maintenance costs, and enable personalized vehicle-side functions.
[0031] With the application of Service-Oriented Architecture (SOA) technology in the automotive industry, numerous application service-based scenarios have emerged. These scenarios have varying requirements for vehicle lighting, which may be mutually exclusive or overlapping. If we add the vehicle's existing lighting functions (HUT / AVP / L3 / MDC control functions) without arbitration strategies, chaotic lighting control can occur, leading to situations where users cannot turn off the lights or the lights flicker, severely impacting the safety and experience of users and other road users.
[0032] When multiple headlight control requests are received, the following problems may occur without an arbitration strategy:
[0033] 1. When a user turns on the headlights via the HUT function, if the headlights are on in scenario A and off in scenario C, without an arbitration strategy, the headlights will be turned off directly. If the user is driving at high speed on a rainy night, this could cause a serious traffic accident.
[0034] 2. If a user turns on the headlights in scenario A, turns them off in scenario B, and turns them on in scenario C, without an 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. If a user turns on the headlights through scenario A, and the requirement of scenario A is to continuously occupy the headlights, and then the headlights are turned off in scenario B, without an arbitration strategy, the headlights will be turned off directly, and the purpose of scenario A to continuously occupy the headlights will not be achieved, affecting the implementation of the function.
[0036] 4、User opens the car light through the AVP function, scene A closes the car light, scene B opens the car light, without arbitration strategy, the car light will remain on, but at this time it will cause the external light system to be unclear about the trigger source of the car light, whether it is the AVP function or scene B, if scene B closes the car light at this time, whether the car light will also be closed.
[0037] As described above, how to avoid the confusion of car light control when multiple car light requests are received has become an important research problem.
[0038] Based on the above description, as shown in the car light control method provided by the embodiment, the method comprises: Figure 1
[0039] Step 101, in response to determining that the car light control request is multiple, determining the trigger mode corresponding to each car light control request.
[0040] In specific implementation, the multiple car light control requests can be received simultaneously or sequentially.
[0041] For example, when the first car light control request, the second car light control request and the third car light control request are received sequentially, the first trigger mode corresponding to the first car light control request, the second trigger mode corresponding to the second car light control request and the third trigger mode corresponding to the third car light control request are determined.
[0042] Step 102, based on the response mode corresponding to the trigger mode, determining the target response request from the multiple car light control requests, and controlling the car light according to the target response request.
[0043] In specific implementation, multiple response modes (arbitration logic) are pre-stored, based on the trigger mode of the multiple car light control requests, the response mode corresponding to the trigger mode is determined from the pre-stored multiple response modes. Based on the response mode corresponding to the trigger mode, the target response request is determined from the multiple car light control requests, and the car light is controlled according to the target response request. Wherein, the target response request is the request that is preferentially responded in the multiple car light control requests.
[0044] In addition, the car light control request comprises at least one of the following: position light control request, low beam light control request, high beam light control request, daytime running light control request, front fog light control request, rear fog light control request, corner light control request and turn signal control request.
[0045] For example, when the car light control request is a low beam light control request, the target response request is determined from the multiple low beam light control requests, and the vehicle low beam light is controlled according to the target response request. When the car light control request is a turn signal control request, the target response request is determined from the 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 state of the flag bit corresponding to each trigger mode.
[0047] In specific implementation, the request content of the target response request includes: a car light opening request, a car light closing request, and a car light continuous occupation request.
[0048] When the target response request is a car light opening request, the state of the flag bit of the trigger mode corresponding to the target response request is switched to a running state, and the state of the flag bit of the trigger mode corresponding to other car light control requests is switched to a stop state; wherein the other car light control requests are requests other than the target response request in the plurality of car light control requests. When the target response request is a car light closing request, the state of the flag bit of the trigger mode corresponding to the plurality of car light control requests is switched to a stop state.
[0049] Through the above embodiment, when the car light control request is multiple, the trigger mode corresponding to each car light control request is determined. Based on the response mode corresponding to the trigger mode, the target response request is determined from the plurality of car light control requests according to the target response request. In this way, different trigger modes correspond to different response modes, and the response mode can be accurately determined based on the trigger mode of the plurality of car light control requests, so as to determine the target response request which is preferentially responded based on the response mode, avoid the situation that the target response request cannot be determined due to the absence of the response mode, further avoid the situation that the car light control is chaotic, and at the same time, avoid the situation that the user cannot close the car light or the car light flashes, thereby ensuring the safety and experience of the user. Based on the request content of the target response request, the state of the flag bit corresponding to each trigger mode is controlled. In this way, the user can determine the trigger mode corresponding to the target response request which is preferentially responded by the car light according to the state of the flag bit.
[0050] By judging whether the trigger mode of the plurality of car light control requests is two kinds of trigger modes, the corresponding response mode is determined. The specific process is as follows:
[0051] In some embodiments, step 102 includes:
[0052] Step 1021, judging whether there are two kinds of trigger modes in the trigger modes.
[0053] Step 1022, in response to determining that there are two kinds of trigger modes in the trigger modes, determining the target response request from the plurality of car light control requests based on the first response mode.
[0054] Alternatively, step 1023, in response to determining that there is one kind of trigger mode in the trigger modes, determining the target response request from the plurality of car light control requests based on the second response mode.
[0055] In a specific implementation, whether the multiple vehicle light control requests are triggered in two ways or one way is determined by judging whether the triggering ways of the multiple vehicle light control requests are in two ways.
[0056] The first response mode is an arbitration logic for determining a target response request from the multiple vehicle light control requests when the multiple vehicle light control requests are triggered in two ways.
[0057] When the multiple vehicle light control requests are triggered in two ways, a first response mode is called from the multiple pre-stored response modes, and a target response request is determined from the multiple vehicle light control requests based on the first response mode (first arbitration strategy). When the multiple vehicle light control requests are triggered in one way, a second response mode is called from the multiple pre-stored response modes, and a target response request is determined from the multiple vehicle light control requests based on the second response mode (second arbitration strategy).
[0058] Through the above scheme, different response modes can be called to determine a target response request from multiple vehicle light control requests according to different triggering ways by judging whether the triggering ways are in two ways.
[0059] When the multiple vehicle light control requests are triggered in two ways, a target response request is determined from the multiple vehicle light control requests based on the first response mode. The specific process is as follows:
[0060] In some embodiments, the triggering ways include a function triggering way and a scene triggering way; and step 1022 includes:
[0061] Step 10221, in response to determining that the triggering ways are in two ways, a vehicle light control request triggered in the function triggering way is determined from the multiple vehicle light control requests based on the first response mode, and a target response request is determined from the vehicle light control request triggered in the function triggering way.
[0062] In a specific implementation, when the multiple vehicle light control requests are triggered in two ways, it means that the multiple vehicle light control requests are triggered in a function triggering way and a scene triggering way, a target response request is determined from the multiple vehicle light control requests based on the first response mode (first arbitration strategy), and the specific process is as follows:
[0063] Step 102211, the multiple vehicle light control requests are divided into a function vehicle light control request triggered in a function triggering way and a scene vehicle light control request triggered in a scene triggering way.
[0064] Step 102212, whether a vehicle light on request exists in the function vehicle light control request is judged.
[0065] In step 102213, in response to determining that the functional vehicle light control request contains the vehicle light on request, the functional vehicle light control request corresponding to the vehicle light on request is taken as the target response request.
[0066] In step 102214, in response to determining that the functional vehicle light control request does not contain the vehicle light on request, the functional vehicle light control request is taken as the target response request.
[0067] When the trigger mode of the multiple vehicle light control requests is one functional trigger mode and one scene trigger mode, there are four cases: one functional trigger mode and one scene trigger mode, one functional trigger mode and multiple scene trigger modes, multiple functional trigger modes and one scene trigger mode, and multiple functional trigger modes and multiple scene trigger modes.
[0068] When the trigger mode of the multiple vehicle light control requests is one functional trigger mode and one scene trigger mode. For example, when the vehicle light on request of scene A and the vehicle light on request of function a are received, the vehicle light on request of function a is taken as the target response request. For another example, when the vehicle light on request of scene A and the vehicle light off request of function a are received, the vehicle light off request of function a is taken as the target response request. For another example, when the vehicle light off request of scene A and the vehicle light on request of function a are received, the vehicle light on request of function a is taken as the target response request.
[0069] When the trigger mode of the multiple vehicle light control requests is one functional trigger mode and multiple scene trigger modes. For example, when the vehicle light on request of scene A, the vehicle light on request of scene B, the vehicle light on request of scene C, and the vehicle light on request of function a are received, the vehicle light on request of function a is taken as the target response request.
[0070] When the trigger mode of the multiple vehicle light control requests is multiple functional trigger modes and one scene trigger mode. For example, when the vehicle light continuous occupation request of scene A, the vehicle light on request of function a, the vehicle light off request of function b, and the vehicle light off request of function c are received, the vehicle light on request of function a is taken as the target response request.
[0071] When the trigger mode of the multiple vehicle light control requests is multiple functional trigger modes and multiple scene trigger modes. For example, when the vehicle light on request of scene A, the vehicle light on request of scene B, the vehicle light on request of function a, and the vehicle light off request of function c are received, the vehicle light on request of function a is taken as the target response request.
[0072] By the above scheme, when the triggering manners of the plurality of vehicle lamp control requests are the function triggering manner and the scene triggering manner, the function triggering manner vehicle lamp control request is determined from the plurality of vehicle lamp control requests based on the first response manner, and the target response request is determined from the function triggering manner vehicle lamp control request. In this way, the function triggering manner vehicle lamp control request can be responded preferentially, the function triggering manner vehicle lamp control request can be responded preferentially when the vehicle lamp function triggering manner and the vehicle lamp scene triggering manner conflict, not only the user experience can be improved, but also the driving accident can be avoided, and the driving safety of the user can be ensured.
[0073] In some embodiments, step 102213 comprises:
[0074] Step 102213A, in response to determining that there is a vehicle lamp opening request in the function vehicle lamp control request, determining the last triggered scene vehicle lamp control request according to the triggering time of the scene vehicle lamp control request, and determining whether the last triggered scene vehicle lamp control request is a vehicle lamp opening request.
[0075] Step 102213B, in response to determining that the last triggered scene vehicle lamp control request is a vehicle lamp opening request, determining whether there is a vehicle lamp closing request in the function vehicle lamp control request.
[0076] Step 102213C, in response to determining that there is no vehicle lamp closing request in the function vehicle lamp control request, taking the function vehicle lamp control request corresponding to the vehicle lamp opening request and the last triggered scene vehicle lamp control request as the target response request.
[0077] In specific implementation, when the triggering manners of the plurality of vehicle lamp control requests are the function triggering manner and the scene triggering manner, there are four cases: one function triggering manner and one scene triggering manner, one function triggering manner and multiple scene triggering manners, multiple function triggering manners and one scene triggering manner, and multiple function triggering manners and multiple scene triggering manners.
[0078] When there is a vehicle lamp opening request in the function vehicle lamp control request, the function vehicle lamp control function request corresponding to the vehicle lamp opening request is taken as the target response request. By determining whether the last triggered scene vehicle lamp control request in the scene vehicle lamp control request is a vehicle lamp opening request, it is determined whether the last triggered scene vehicle lamp control request is taken as the target response request.
[0079] When the functional vehicle light control request contains a vehicle light opening request but does not contain a vehicle light closing request, and the last triggered scene vehicle light control request is a vehicle light opening request, the functional vehicle light control request corresponding to the vehicle light opening request and the last triggered scene vehicle light control request are taken as the target response request. When the functional vehicle light control request contains a vehicle light opening request, and the last triggered scene vehicle light control request is not a vehicle light opening request, the functional vehicle light control request corresponding to the vehicle light opening request is taken as the target response request. When the functional vehicle light control request contains a vehicle light opening request and a vehicle light closing request, and the last triggered scene vehicle light control request is a vehicle light opening request, the functional vehicle light control request corresponding to the vehicle light opening request is taken as the target response request.
[0080] When the multiple triggering modes contain one functional triggering mode and one scene triggering mode, for example, a vehicle light opening request of scene A and a vehicle light opening request of function a are received in sequence, the vehicle light opening request of scene A and the vehicle light opening request of function a are taken as the target response request.
[0081] When the multiple triggering modes contain one functional triggering mode and multiple scene triggering modes, for example, a vehicle light opening request of scene A, a vehicle light opening request of scene B, a vehicle light opening request of scene C, and a vehicle light opening request of function a are received in sequence, the vehicle light opening request of scene C and the vehicle light opening request of function a are taken as the target response request.
[0082] Through the above scheme, when the functional vehicle light control request contains a vehicle light opening request but does not contain a vehicle light closing request, and the last triggered scene vehicle light control request is a vehicle light opening request, the functional vehicle light control request corresponding to the vehicle light opening request and the last triggered scene vehicle light control request are taken as the target response request. In this way, when the functional vehicle light control request corresponding to the vehicle light opening request exits, the last triggered scene vehicle light control request can be taken as the target response request, so as to control the vehicle light according to the last triggered scene vehicle light control request.
[0083] When one triggering mode exists in the multiple vehicle light control requests, the 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 mode includes a functional triggering mode or a scene triggering mode; and step 1023 includes:
[0085] Step 10231, in response to determining that one triggering mode exists in the triggering mode, judging the triggering mode.
[0086] Step 10232, in response to determining that the triggering mode is a functional triggering mode, determining the target response request from the multiple vehicle light control requests based on the functional response mode.
[0087] Alternatively, in response to determining that the trigger manners are all scene trigger manners, determining the target response request from the multiple vehicle lamp control requests based on a scene response manner.
[0088] In a specific implementation, the trigger manners of the multiple vehicle lamp control requests have two cases: the trigger manners are all function trigger manners, or the trigger manners are all scene trigger manners.
[0089] The function response manner is the arbitration logic for determining the target response request from the multiple vehicle lamp control requests when the trigger manners of the multiple vehicle lamp control requests are all function trigger manners. The scene response manner is the arbitration logic for determining the target response request from the multiple vehicle lamp control requests when the trigger manners of the multiple vehicle lamp control requests are all scene trigger manners.
[0090] When there is one trigger manner in the trigger manners of the multiple vehicle lamp control requests, it indicates that the trigger manners of the multiple vehicle lamp control requests are the same. The trigger manners of the multiple vehicle lamp control requests are determined. When the trigger manners of the multiple vehicle lamp control requests are all function trigger manners, the target response request is determined from the multiple vehicle lamp control requests based on the function response manner (function arbitration strategy). When the trigger manners of the multiple vehicle lamp control requests are all scene trigger manners, the target response request is determined from the multiple vehicle lamp control requests based on the scene response manner (scene arbitration strategy).
[0091] Through the above scheme, when there is one trigger manner in the trigger manners of the multiple vehicle lamp control requests, the corresponding response manner can be accurately determined by determining the trigger manners. When the trigger manners are all function trigger manners, the target response request can be accurately determined from the multiple vehicle lamp control requests based on the function response manner. When the trigger manners are all scene trigger manners, the target response request can be accurately determined from the multiple vehicle lamp control requests based on the scene response manner.
[0092] When the trigger manners of the multiple vehicle lamp control requests are all function trigger manners, the target response request is determined from the multiple vehicle lamp control requests based on the function response manner. The specific process is as follows:
[0093] In some embodiments, step 10232 includes:
[0094] Step 10232A, in response to determining that the trigger manners are all function trigger manners, determining whether there is a vehicle lamp opening request in the multiple vehicle lamp control requests.
[0095] Step 10232B, in response to determining that there is a vehicle lamp opening request in the multiple vehicle lamp control requests, taking the vehicle lamp control request corresponding to the vehicle lamp opening request as the target response request.
[0096] Alternatively, in response to determining that there is no headlamp-on request in the plurality of headlamp control requests, the plurality of headlamp control requests are determined as the target response request.
[0097] In implementation, the function trigger mode is to trigger the headlamp control request through a function provided on the vehicle. The function trigger mode of the headlamp 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) is also known as the head-up display system, which is an intelligent auxiliary device designed to improve the safety and comfort of drivers. By using optical reflection principles, driving assistance information, navigation information, inspection control information, and advanced driving assistance system (ADAS) information are projected onto the windshield glass or about 2 meters in front of the driver, while also displaying warning information from various driving assistance systems, thereby avoiding the driver's frequent lowering of the instrument or vehicle 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, which can automatically complete all driving tasks such as overtaking, reversing, avoiding pedestrians, etc. without the need for driver operation, truly realizing full automatic driving.
[0100] The L3 function is an automatic driving function, which mainly includes automatic recognition and confirmation of the vehicle lane, starting of the automatic driving cruise mode, real-time monitoring of the external environment, locking of the front vehicle for following driving, autonomous driving according to the preset program, automatic driving, and obstacle avoidance.
[0101] The MDC function (Mobile Data Center) is a facility specifically designed for storing and processing data, which can run on vehicles or other mobile platforms to ensure smooth data transmission, processing, and storage in a mobile environment.
[0102] When the trigger mode of the plurality of headlamp control requests is the function trigger mode, the target response request is determined from the plurality of headlamp control requests based on the function response mode (function arbitration strategy), and the specific process is as follows:
[0103] Determine whether there is a headlamp-on request in the plurality of headlamp control requests. When there is a headlamp-on request in the plurality of headlamp control requests, the headlamp control request corresponding to the headlamp-on request is determined as the target response request. When there is no headlamp-on request in the plurality of headlamp control requests, the plurality of headlamp control requests are determined as the target response request.
[0104] In other words, when any original vehicle function triggers a request to turn on the vehicle light, the vehicle light is turned on, the actual turning-on instruction of the vehicle light is issued, and the corresponding original vehicle function variable is set to 1. When all original vehicle functions trigger a request to turn off the vehicle light, the vehicle light is turned off, the actual turning-off instruction of the vehicle light is issued, and the corresponding original vehicle function variable is set to 0.
[0105] For example, a vehicle light turning-on request of the HUT function, a vehicle light turning-off request of the AVP function, and a vehicle light turning-off request of the L3 function are received, and the vehicle light turning-on request of the HUT function is taken as the target response request. For another example, a vehicle light turning-off request of the HUT function and a vehicle light turning-off request of the L3 function are received, and the vehicle light turning-off request of the HUT function and the vehicle light turning-off request of the L3 function are taken as the target response requests.
[0106] Through the above scheme, when the triggering modes of the multiple vehicle light control requests are all function triggering modes, the target response request can be accurately determined from the multiple vehicle light control requests based on the function response mode. When there is a vehicle light turning-on request in the multiple vehicle light control requests, the vehicle light control request corresponding to the vehicle light turning-on request is taken as the target response request, so that the vehicle light turning-on request can be responded preferentially, and the vehicle light turning-on function can be realized. In this way, the vehicle light turning-on request can be responded preferentially when the vehicle light function triggering conflicts, which not only improves the user experience, but also avoids causing traffic accidents and ensures the safety of the user driving.
[0107] When the triggering modes of the multiple vehicle light control requests are all scene triggering modes, the target response request is determined from the multiple vehicle light 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 vehicle light continuous occupation request in the multiple vehicle light control requests.
[0110] Step 10233B, in response to determining that there is a vehicle light continuous occupation request in the multiple vehicle light control requests, taking the vehicle light control request corresponding to the vehicle light continuous occupation request as the target response request.
[0111] Alternatively, step 10233C, in response to determining that there is no vehicle light continuous occupation request in the multiple vehicle light control requests, determining the last triggered vehicle light control request according to the triggering times of the multiple vehicle light control requests, and taking the last triggered vehicle light control request as the target response request.
[0112] In specific implementation, the scene triggering mode is to trigger the vehicle light control request through a pre-set scene on the vehicle. When the pre-set triggering condition is met, the vehicle light is controlled based on the scene triggering mode.
[0113] When the triggering manners of the multiple vehicle light control requests are all scene triggering manners, a target response request is determined from the multiple vehicle light control requests based on a scene response manner (scene arbitration strategy), and the specific process is as follows:
[0114] It is determined whether there is a vehicle light continuous occupation request in the multiple vehicle light control requests. When there is a vehicle light continuous occupation request in the multiple vehicle light control requests, the vehicle light control request corresponding to the vehicle light continuous occupation request is taken as the target response request. When there is no vehicle light continuous occupation request in the multiple vehicle light control requests, the last triggered vehicle light control request is determined according to the triggering time of the multiple vehicle light control requests, and the last triggered vehicle light control request is taken as the target response request.
[0115] For example, the vehicle light continuous occupation request of scene A, the vehicle light off request of scene B, and the vehicle light on request of scene C are received in sequence, and the vehicle light continuous occupation request of scene A is taken as the target response request. For another example, the vehicle light on request of scene A, the vehicle light off request of scene B, and the vehicle light on request of scene C are received in sequence, and the vehicle light on request of scene C is taken as the target response request.
[0116] After step 1023C, it further includes: caching the flag bit state of other vehicle light control requests that are not vehicle light continuous occupation requests in the multiple vehicle light control requests; in response to determining that the target response request is executed, obtaining the flag bit state of the other vehicle light control requests; determining that the other vehicle light control requests exist based on the flag bit state of the other vehicle light control requests, and determining the next target response request according to the triggering time of the other vehicle light control requests.
[0117] For example, the vehicle light continuous occupation request of scene A, the vehicle light off request of scene B, and the vehicle light on request of scene C are received, and the vehicle light continuous occupation request of scene A is taken as the target response request. At this time, the exterior light basic service ignores the vehicle light control requests of scene B and scene C, but caches the flag bit states of scene B and scene C, and executes the vehicle light continuous occupation request of scene A. When the vehicle light continuous occupation request of scene A is cancelled and the vehicle light control requests of scene B and scene C still exist, that is, the flag bit states cached by scene B and scene C exist, the vehicle light control requests of scene B and scene C are executed in sequence according to the triggering time.
[0118] Figure 2 A schematic diagram generated for the light actual control instruction of the embodiment of the present disclosure is shown in FIG. 6. Figure 2As shown, the vehicle lamp control request is generated based on the triggering mode of the vehicle lamp and the target vehicle lamp. The triggering mode of the vehicle lamp 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 HUT function, AVP function and L3 function. The target vehicle lamp is determined from the exterior light basic service, and the target vehicle lamp includes position light, low beam, high beam, daytime running light, front fog light, rear fog light, corner light and turn signal. The light actual control instruction (i.e., the vehicle lamp 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 scene A and the HUT function control instruction for the low beam are received, the generated vehicle lamp control request is the low beam control request of scene A and the low beam control request of the HUT function.
[0119] Through the above scheme, when the triggering modes of the multiple vehicle lamp control requests are all scene triggering modes, the target response request can be accurately determined from the multiple vehicle lamp control requests based on the scene response mode. When there is a vehicle lamp continuous occupation request in the multiple vehicle lamp control requests, the vehicle lamp control request corresponding to the vehicle lamp continuous occupation request is taken as the target response request, so that the vehicle lamp continuous occupation request can be preferentially responded to, and the vehicle lamp continuous occupation function is realized. When there is no vehicle lamp continuous occupation request in the multiple vehicle lamp control requests, the last triggered vehicle lamp control request can be accurately determined according to the triggering time of the multiple vehicle lamp control requests, and the last triggered vehicle lamp control request in the multiple vehicle lamp control requests is taken as the target response request, so that the vehicle lamp flickering caused by responding to the multiple vehicle lamp control requests in turn is avoided, and thus the driving safety is avoided to be affected.
[0120] Based on the request content of the target response request, the state of the flag bit corresponding to each triggering 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 vehicle lamp opening request, the state of the flag bit of the triggering mode corresponding to the target response request is switched to the running state, and the state of the flag bit of the triggering mode corresponding to other vehicle lamp control requests is switched to the stop state; wherein the other vehicle lamp control request is a request other than the target response request in the multiple vehicle lamp control requests.
[0124] Step 103B, in response to determining that the target response request is a vehicle lamp closing request, the state of the flag bit of the triggering mode corresponding to the multiple vehicle lamp control requests is switched to the stop state.
[0125] In a specific implementation, the running state is a flag bit state of 1, and the stop state is a flag bit state of 0. When the target response request is a car light opening request, the flag bit state of the trigger mode corresponding to the target response request is set to 1, and the flag bit states of the trigger modes corresponding to other response requests are set to 0. When the target response request is a car light closing request, the flag bit states of the trigger modes corresponding to the plurality of car light control requests are all set to 0.
[0126] According to the above scheme, the flag bit state corresponding to each trigger mode is controlled based on the request content of the target response request. 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, and the problem of unclear trigger mode is avoided.
[0127] According to the above embodiment, when there are a plurality of car light control requests, the trigger mode corresponding to each car light control request is determined. Based on the response mode corresponding to the trigger mode, the target response request is determined from the plurality of car light control requests according to the target response request, and the car light is controlled according to the target response request. In this way, different response modes correspond to different trigger modes, and the response mode can be accurately determined based on the trigger mode of the plurality of car light control requests, so that the target response request that is preferentially responded is determined from the plurality of car light control requests based on the response mode, the situation that the target response request cannot be determined due to the absence of the response mode is avoided, and the situation that the car light cannot be turned off or the car light flashes is also avoided, thereby ensuring the safety and experience of the user. 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 user can conveniently determine the trigger mode corresponding to the target response request that is preferentially responded by the car light according to the flag bit state.
[0128] After step 103, the following steps are further included:
[0129] In step 201, an initial scene priority and an initial function priority of a car light control mode are obtained. The priority standards of the initial scene priority and the initial function priority are inconsistent.
[0130] In a specific implementation, the car light control mode includes a scene trigger mode and a function trigger mode. The initial scene priority and the initial function priority are pre-stored.
[0131] When the plurality of received car light control requests are all scene trigger modes, the target scene request that is preferentially responded can be determined from the plurality of car light control requests according to the initial scene priority. When the plurality of received car light control requests are all function trigger modes, the target function request that is preferentially responded can be determined from the plurality of car light control requests according to the initial function priority.
[0132] However, when the received multiple vehicle light control requests include the scene triggering mode and the function triggering mode, the target vehicle light control request for which a priority response is determined from the multiple vehicle light control requests cannot be determined due to inconsistent priority standards of the initial scene priority and the initial function priority.
[0133] Therefore, it is necessary to generate a standard consistent target priority so that when the received multiple vehicle light control requests include the scene triggering mode and the function triggering mode, the target vehicle light control request for which a priority response is determined from the multiple vehicle light control requests can be determined according to the standard consistent target priority.
[0134] Figure 3 A schematic diagram of the interaction between the A core and the M core of the embodiment of the present disclosure is shown. As shown in the figure, Figure 3 The A core scene control includes a sentinel mode, a scene A, and a scene B in the turn signal, and the A core has pre-stored an initial scene priority, which can be used to determine the target scene request for which a priority response is determined from the multiple scene triggering mode vehicle light control requests. The M core original vehicle control includes an anti-theft function, a PLG function, and a switch function, and the M core has pre-stored an initial function priority, which can be used to determine the target function request for which a priority response is determined from the multiple function triggering mode vehicle light control requests.
[0135] In step 202, the initial scene priority is adjusted based on a first preset rule to obtain an adjusted scene priority, and the initial function priority is adjusted based on a second preset rule to obtain an adjusted function priority.
[0136] In implementation, the first preset rule is a rule pre-set for adjusting the initial scene priority. The second preset rule is a rule pre-set 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 adjusted scene priority and the adjusted function priority are consistent in standard, so as to obtain the target priority based on the adjusted scene priority and the adjusted function priority.
[0138] In step 203, the adjusted scene priority and the adjusted function priority are combined to obtain the target priority.
[0139] In implementation, the adjusted scene priority and the adjusted function priority are integrated to obtain the target priority. For example, the adjusted scene priority is inserted into the adjusted function priority to obtain the target priority.
[0140] In step 204, the vehicle light is controlled according to the target priority.
[0141] In a specific implementation, when the received multiple vehicle light control requests include a scene triggering mode and a function triggering mode, a target vehicle light control request that is to be responded preferentially can be determined from the multiple vehicle light control requests according to the target priority, and the vehicle light is controlled according to the target vehicle light control request.
[0142] By the above scheme, the initial scene priority and the initial function priority of the vehicle light control mode are obtained, wherein the priority standards of the initial scene priority and the initial function priority are inconsistent. The initial scene priority is adjusted based on a first preset rule to obtain an adjusted scene priority, and the initial function priority is adjusted based on a second preset rule to obtain an adjusted function priority. In this way, by adjusting the initial scene priority and the initial function priority, the standards of the adjusted scene priority and the adjusted function priority are consistent. The adjusted scene priority and the adjusted function priority are combined to obtain a target priority. The vehicle light is controlled according to the target priority. In this way, since the standards of the adjusted scene priority and the adjusted function priority are consistent, the standard of the combined target priority is consistent. When multiple vehicle light control requests are received, the vehicle light control request that is to be responded preferentially can be directly determined from the multiple vehicle light control requests according to the target priority with a consistent standard, so as to avoid vehicle light control confusion, ensure user safety and experience, and in addition, the vehicle light control request that is to be responded preferentially does not need to be determined by multiple priority comparisons, the vehicle light can be controlled more quickly and accurately, and the calculation amount is reduced.
[0143] The initial scene priority is adjusted based on a first preset rule to obtain an adjusted scene priority, and the initial function priority is adjusted based on a second preset rule to obtain an adjusted function priority. The specific process is as follows:
[0144] In some embodiments, step 202 includes:
[0145] Step 2021, converting the initial scene priority from high to low to odd scene priority from low to high, and taking the odd scene priority as the adjusted scene priority.
[0146] Step 2022, converting the initial function priority from low to high to even function priority from low to high, and taking the even function priority as the adjusted function priority.
[0147] In the implementation, the initial scene priority is arranged from high to low, the initial function priority is arranged from low to high, and the standards of the initial scene priority and the initial function priority are inconsistent. In order to make the standards of the adjusted scene priority and the adjusted 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 combination of the adjusted scene priority and the adjusted function priority, the order of the adjusted scene priority is set to be odd, and the order of the adjusted function priority is set to be even.
[0148] Specifically, the initial scene priority from high to low is converted into odd scene priority from low to high, and the odd scene priority is taken as the adjusted scene priority. The initial scene priority is converted into the adjusted scene priority according to a formula, and the specific formula is: adjusted scene priority=(scene trigger mode total number-initial scene priority)×2+1. As shown in Table 1, Table 1 is a conversion table of scene priority.
[0149] Table 1 Conversion table of scene priority
[0150] Scenario triggering in core A Initial scenario priority Adjusting scenario 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 Scenario H 3 15 Scenario I 2 17 Scenario J 1 19
[0151] Specifically, the initial function priority from low to high is converted into even function priority from low to high, and the even function priority is taken as the adjusted function priority. The initial function priority is converted into the adjusted function priority according to a formula, and the specific formula is: adjusted function priority=initial function priority×2. As shown in Table 2, Table 2 is a conversion table of function priority.
[0152] Table 2 Conversion table of function priority
[0153]
[0154]
[0155] Step 203 includes inserting the adjusted scene priority into the adjusted function priority to obtain a target priority. As shown in Table 3, Table 3 is a priority table corresponding to the target priority.
[0156] Triggering in core M Target priority Scenario A 1 Function 1 2 Scenario B 3 Function 2 4 Scenario C 5 Function 3 6 Scenario D 7 Function 4 8 Scenario E 9 Function 5 10 Scenario F 11 Function 6 12 Scenario G 13 Function 7 14 Scenario H 15 Function 8 16 Scenario I 17 Function 9 18 Scenario J 19 Function 10 20
[0157] By the above scheme, the initial scene priorities from high to low are converted into odd scene priorities from low to high, and the odd scene priorities are taken as the adjusted scene priorities. The initial function priorities from low to high are converted into even function priorities from low to high, and the even function priorities are taken as the adjusted function priorities. In this way, the adjusted scene priorities and the adjusted function priorities are both arranged from low to high, so that the standards of the adjusted scene priorities and the adjusted function priorities are consistent. In addition, since the adjusted scene priorities are odd scene priorities and the adjusted function priorities are even function priorities, it is convenient to merge the adjusted scene priorities and the adjusted function priorities.
[0158] The target car light control request with the highest target priority is determined from the received car light control requests, and the car light is controlled according to the target car light control request corresponding to the target trigger mode. The specific process is as follows:
[0159] In some embodiments, step 204 includes:
[0160] Step 2041, the scene trigger mode car light control request is received by the scene core, and the scene trigger mode car light control request is recorded as a scene request.
[0161] Step 2042, the function trigger mode car light control request is received by the function core, and the function trigger mode car light control request is recorded as a function request.
[0162] Step 2043, the target scene request is determined from the scene request, and the scene core is controlled to send the target scene request to the function core.
[0163] Step 2044, 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 car light is controlled according to the target car light control request corresponding to the target trigger mode.
[0164] In specific implementation, the scene core (i.e. A core) is used to receive the scene trigger mode car light control request, and the function core (i.e. M core) is used to receive the function trigger mode car light control request. Wherein, the scene trigger mode includes at least one of the following: V2L discharge flashing light scene, sentinel mode scene and child mode scene. The function trigger mode includes at least one of the following: on-off function, AVP function, L3 function, car lock function, anti-theft alarm function and thermal runaway alarm function.
[0165] The scene core receives a scene trigger mode vehicle light control request and records the scene trigger mode vehicle light control request as a scene request. The function core receives a function trigger mode vehicle light control request and records the function trigger mode vehicle light control request as a function request. A target scene request is determined from the scene request, and the scene core is controlled to send the target scene request to the function core. Based on the target priority stored in the function core, a 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 vehicle light is controlled according to the target vehicle light control request corresponding to the target trigger mode.
[0166] For example, the A core receives a vehicle light on request of scene A, the M core receives a vehicle light on request of function 1, and the A core sends the vehicle light on request of scene A to the M core. Based on the target priority stored in the M core, it is determined that the priority of scene A is higher than that of function 1, scene A is taken as the target trigger mode, and the vehicle light is controlled according to the vehicle light on request 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 vehicle light is controlled according to the target vehicle light control request corresponding to the target trigger mode. In this way, the target vehicle light control request with high trigger mode priority can be determined from the target scene request and the function request according to the standard consistent target priority, so that the target vehicle light control request with high priority can be responded to preferentially.
[0168] A target scene request is determined from the scene request, and the scene core is controlled 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, determining whether the scene request is multiple.
[0171] Step 2043B, in response to determining that the scene request is multiple, determining whether the adjusted function priority in the target priority is higher than the adjusted scene priority.
[0172] Step 2043C, in response to determining that the adjusted function priority in the target priority is higher than the adjusted scene priority, determining the last triggered scene request according to the trigger time of multiple scene requests, taking the last triggered scene request as the target scene request, and controlling the scene core to send the target scene request to the function core.
[0173] In a specific implementation, when the scene core receives multiple car light control requests of the scene trigger mode, and the adjustment of the function priority is higher than the adjustment of the scene priority in the target priority, the last triggered scene request is determined according to the trigger time of the multiple scene requests, the last triggered scene request is taken as the target scene request, and the scene core is controlled to send the target scene request to the function core.
[0174] For example, the A core receives a car light on request of scene A, a car light on request of scene B, and a car light on request of scene C, the M core receives a car light on request of function 1, the A core determines the last triggered car light on request of scene C from the multiple scene requests, and sends the car light on request of scene C to the M core. Based on the target priority stored in the M core, it is determined that the priority of function 1 is higher than that of scene C, function 1 is taken as the target trigger mode, and the car light is controlled according to the car light on request of function 1.
[0175] Through the above scheme, when the scene core receives multiple car light control requests of the scene trigger mode, and the adjustment of the function priority is higher than the adjustment of the scene priority in the target priority, the last triggered scene request is determined as the target scene request from the multiple scene requests. In this way, the function core only needs to determine the target car light control request from the target scene request and the function request, without comparing and processing multiple scene requests and function requests, thereby reducing the operation amount of the function core and improving the 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 car light is controlled according to the target car light control request corresponding to the target trigger mode. The specific process is as follows:
[0177] In some embodiments, step 2044 includes:
[0178] Step 2044A, acquiring the scene priority instruction and the scene control instruction in the target scene request, and performing judgment processing on the scene priority instruction and the scene control instruction.
[0179] In a specific implementation, the target scene request includes a scene priority instruction and a scene control instruction. The scene priority instruction is used to determine the priority of the target scene request, and the state of the scene priority instruction includes valid and invalid. The valid state includes Occupy and Equal. The scene control instruction is used to determine whether the target scene request is executed, and the state of the scene control instruction includes valid and invalid.
[0180] When the scene priority instruction in the target scene request sent by the A core is received by the M core each time and the scene priority instruction is 0x12: Occupy, the timing starts; when the Occupy priority is not received again for more than 2s, it is determined that the scene priority instruction Occupy is invalid, the default scene priority instruction of the M core is Equa, and the A core is determined to have no target scene request, and the vehicle lamp control is controlled according to the function request of the M core; when the Occupy priority is received again within 2s, the timing is restarted, and it is determined that the scene priority instruction Occupy is still valid. If other valid scene priority instructions are received within 2s, it is determined that the priority is normally switched, and the scene priority instruction Occupy is no longer determined to be timed out.
[0181] In step 2044B, in response to determining that the scene priority instruction is valid and the scene control instruction is valid, a target triggering mode is determined from the scene triggering mode corresponding to the scene request and the function triggering mode corresponding to the function request based on the target priority stored in the function core, and the vehicle lamp is controlled according to the target vehicle lamp control request corresponding to the target triggering mode.
[0182] In specific implementation, when the scene priority instruction is valid and the scene control instruction is valid, it indicates that the priority of the target scene request can be determined and the target scene request can be executed, a target triggering mode is determined from the scene triggering mode corresponding to the scene request and the function triggering mode corresponding to the function request based on the target priority stored in the function core, and the vehicle lamp is controlled according to the target vehicle lamp control request corresponding to the target triggering mode.
[0183] For example, the A core receives a vehicle lamp opening request of scene A, and the M core receives a vehicle lamp opening request of function 1. When the scene priority instruction in the vehicle lamp opening request of scene A is valid and the scene control instruction is valid, it is determined that the priority of scene A is higher than that of function 1 based on the target priority stored in the function core, scene A is determined as the target triggering mode, and the vehicle lamp is controlled according to the vehicle lamp opening request 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 determined as the target triggering mode, and the vehicle lamp is 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 indicates that the priority of the target scene request can be determined but the target scene request cannot be executed, the function triggering mode corresponding to the function request is determined as the target triggering mode, and the vehicle lamp is controlled according to the function request.
[0186] For example, the A core receives a car light on request of scene A, and the M core receives a car light on request of function 1. When the scene priority instruction in the car light on request of scene A is valid and the scene control instruction is invalid, function 1 is taken as the target triggering mode, and the car light is controlled according to the car light on request 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 triggering mode corresponding to the function request is taken as the target triggering mode, the car light is controlled according to the function request, and the function request received in the priority instruction occupation time period is not responded.
[0188] In specific implementation, when the scene priority instruction is occupied and the scene control instruction is invalid, it indicates that the priority of the target scene request is occupied but the target scene request cannot be executed, the function triggering mode corresponding to the function request is taken as the target triggering mode, the car light is controlled according to the function request, and the function request received in the priority instruction occupation time period is not responded.
[0189] For example, the A core receives a car light on request of scene A, and the M core receives a car light on request of function 1. When the scene priority instruction in the car light on request of scene A is occupied and the scene control instruction is invalid, function 1 is taken as the target triggering mode, and the car light is controlled according to the car light on request of function 1. Meanwhile, the car light control request of the function triggering mode of the M core is shielded, and the function request received in the priority instruction occupation time period is not responded.
[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 triggering mode corresponding to the function request is taken as the target triggering mode, the car light is 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 indicates that the priority of the target scene request cannot be determined but the target scene request can be executed, the function triggering mode corresponding to the function request is taken as the target triggering mode, the car light is controlled according to the function request, and the priority corresponding to the target scene request is set to empty.
[0192] For example, the A core receives a car light on request of scene A, and the M core receives a car light on request of function 1. When the scene priority instruction in the car light on request of scene A is invalid and the scene control instruction is valid, function 1 is taken as the target triggering mode, and the car light is controlled according to the car light on request of function 1. Meanwhile, the priority corresponding to the car light on request of scene A is set to empty.
[0193] By 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 taken as the target trigger mode, and the vehicle lamp is controlled according to the function request, so that the error of controlling the vehicle lamp according to the target scene request can be avoided.
[0194] After the vehicle lamp is controlled according to the target vehicle lamp control request corresponding to the target trigger mode, if the vehicle lamp control request is received again, it is needed to determine whether to interrupt the target vehicle lamp control request currently executed. The specific process is as follows:
[0195] In some embodiments, after step 2044, further comprising:
[0196] Step 2045, in response to determining that the vehicle lamp control request is received again, taking the vehicle lamp control request received again as an updated vehicle lamp control request, determining an updated trigger mode corresponding to the updated vehicle lamp control request, and determining whether the priority of the updated trigger mode is higher than the target trigger mode based on the target priority.
[0197] Step 2046, in response to determining that the priority of the updated trigger mode is higher than the target trigger mode, interrupting the target vehicle lamp control request according to a preset interruption mode, and controlling the vehicle lamp according to the updated vehicle lamp control request.
[0198] In specific implementation, in the process of controlling the vehicle lamp according to the target vehicle lamp control request corresponding to the target trigger mode, when the updated vehicle lamp control request is received and the priority of the updated trigger mode is higher than the target trigger mode, the target vehicle lamp control request is interrupted according to the preset interruption mode, and the vehicle lamp is controlled according to the updated vehicle lamp control request.
[0199] For example, in the process of controlling the vehicle lamp according to the target vehicle lamp control request corresponding to function 1, the updated vehicle lamp control request corresponding to scene A is received, it is determined based on the target priority that the priority of scene A is higher than that of function 1, the target vehicle lamp control request corresponding to function 1 is interrupted according to the preset interruption mode, and the vehicle lamp is controlled according to the updated vehicle lamp control request corresponding to scene A.
[0200] By the above scheme, when the updated vehicle lamp control request is received and the priority of the updated trigger mode is higher than the target trigger mode, the target vehicle lamp control request can be interrupted, and the vehicle lamp can be controlled according to the updated vehicle lamp control request, so that the vehicle control request can be switched to the updated vehicle lamp control request with high priority, thereby avoiding that the updated vehicle lamp control request with high priority cannot be switched during the execution of the target vehicle lamp control request, and the experience of the user can be improved.
[0201] When it is necessary to interrupt the currently executing target headlight control request, the interruption time for the target headlight control request is determined, and the target headlight 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: Take the moment when the request to update the headlight control is received as the current moment, and determine the headlight status at the current moment.
[0204] Step 2046B: In response to determining that the current headlight state is on, control the headlights according to the target headlight control request, interrupt the target headlight control request at the switching moment when the headlights switch to the off state, and control the headlights according to the updated headlight control request.
[0205] In practice, when the current headlight status is on when the headlight update control request is received, the headlights are controlled according to the target headlight control request first. When the headlights switch to the off state, the target headlight control request is interrupted, and the headlights are controlled according to the update headlight control request.
[0206] When the headlights are currently on, the update headlight control request interrupts the target headlight control request, including two cases: 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 This is a schematic diagram of the first interruption in the light-on state according to an embodiment of this disclosure. Figure 4 As shown, high-frequency update headlight control requests interrupt low-frequency target headlight control requests. The period of the target headlight control request is 350ms, and the period of the update headlight control request is 200ms. If the update headlight control request is received at 100ms when the target headlight control request is in the on state, then the target headlight control request is interrupted 250ms later (the switching time when the headlights switch to the off state), and the headlights are controlled according to the update headlight control request.
[0208] Figure 5 This is a schematic diagram of the second interruption in the light-on state according to an embodiment of this disclosure. Figure 5As shown, low-frequency update headlight control requests interrupt high-frequency target headlight control requests. The period of the target headlight control request is 150ms, and the period of the update headlight control request is 200ms. If the update headlight control request is received at 50ms when the target headlight control request is in the on state, the target headlight control request is interrupted 100ms later (the switching time when the headlights switch to the off state), and the headlights are controlled according to the update headlight control request.
[0209] Alternatively, in step 2046C, in response to determining that the current headlight state is off, the headlights are in the off state for a duration greater than a preset duration threshold at which the headlights are off. At the time of the off, the target headlight control request is interrupted, and the headlights are controlled according to the updated headlight control request.
[0210] In practice, when the current state of the vehicle lights is off when the update vehicle light control request is received, the time when the off-state duration of the vehicle lights is determined to be greater than the preset time threshold is determined. At the time of off-state, the target vehicle light control request is interrupted, and the vehicle lights are controlled according to the update vehicle light control request.
[0211] When the headlights are currently off, the update headlight control request interrupts the target headlight control request, including two cases: 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.
[0212] Figure 6 This is a schematic diagram of the first interruption in the light-off state according to an embodiment of this disclosure. Figure 6 As shown, high-frequency update headlight control requests interrupt low-frequency target headlight control requests. The period of the target headlight control request is 350ms, and the period of the update headlight control request is 200ms. The preset duration threshold is 200ms. When the target headlight control request is in the off state at 300ms, the update headlight control request is received. Since the off-state duration at the current moment when the update headlight control request is received is greater than the preset duration threshold, the current moment is directly taken as the off-state moment. The target headlight control request is interrupted directly at the current moment when the update headlight control request is received, and the headlights are controlled according to the update headlight control request.
[0213] Figure 7 This is a schematic diagram of the second interruption in the light-off state according to an embodiment of this disclosure. Figure 7As shown, high-frequency update headlight control requests interrupt low-frequency target headlight control requests. The period of the target headlight control request is 350ms, and the period of the update headlight control request is 200ms. The preset duration threshold is 200ms. When the target headlight control request is in the off state at 100ms, the update headlight control request is received. Since the off-state duration at the current moment when the update headlight control request is received is less than the preset duration threshold, the target headlight control request is interrupted 100ms later (the time when the off-state duration reaches the preset duration threshold), and the headlights are controlled according to the update headlight control request.
[0214] Figure 8 This is a schematic diagram of a third interruption in the light-off state according to an embodiment of this disclosure. Figure 8 As shown, low-frequency update headlight control requests interrupt high-frequency target headlight control requests. The period of the target headlight control request is 200ms, the period of the update headlight control request is 350ms, and the preset duration threshold is 200ms. When the target headlight control request is in the off state for 50ms, the update headlight control request is received. Since the off-state duration at the current moment when the update headlight control request is received is less than the preset duration threshold, the target headlight control request is interrupted after 50ms (the time when the off-state duration reaches the preset duration threshold), and the headlights are controlled according to the update headlight control request.
[0215] The above scheme works as follows: When the headlights are on when an update headlight control request is received, the headlights are first controlled according to the target headlight control request. At the moment the headlights switch to the off state, the target headlight control request is interrupted, and the headlights are controlled according to the update headlight control request. This avoids the headlights being switched off due to the update headlight control request while the headlights are on, thus preventing any impact on driving safety and avoiding damage to the headlights. When the headlights are off when an update headlight control request is received, the headlights are determined to be off for a duration exceeding a preset threshold. At the moment the headlights are off, the target headlight control request is interrupted, and the headlights are controlled according to the update headlight control request. This avoids the headlights being switched on again shortly after being off, thus preventing damage to the headlights from being turned on again in a short period.
[0216] It should be noted that the embodiments of this disclosure can also be further described in the following ways:
[0217] 1. Arbitration strategy for basic external lighting services between different scenarios:
[0218] (1) Scenario A calls the exterior light basic service to turn on the low beam headlights, Scenario B calls the exterior light basic service to turn off the low beam headlights, and Scenario C calls the exterior light basic service to turn on the low beam headlights. At this time, the exterior light basic service needs to turn on the low beam headlights. The last-to-first-out principle is followed, and the variables of Scenario A and Scenario B are set to 0, indicating that the functions of Scenario A and Scenario B have been exited. The variable of Scenario C is set to 1, indicating that the function of turning on the low beam headlights in Scenario C is being executed at this time.
[0219] (2) Scenario A calls the exterior light basic service and the requirement is to continuously occupy the low beam headlight. Scenario B calls to turn off the low beam headlight. Scenario C calls to turn on the low beam headlight. At this time, the exterior light basic service ignores the low beam requirements of scenario B and scenario C, but needs to cache the variables of scenario B and scenario C and execute the low beam requirement of scenario A. After the continuous occupation of the low beam requirement of scenario A exits, if the low beam requests of scenario B and scenario C still exist, that is, the cached variable requests of scenario B and scenario C are still there, then they are executed in the order of calling.
[0220] 2. Arbitration strategy for basic exterior lighting services between the scene and the original vehicle:
[0221] (1) If both the scenario and the original vehicle function enable the low beam headlights, the exterior lighting basic service will be executed according to the "if enabled, then enabled" principle. For example, if scenario A enables the low beam headlights and HUT enables the low beam headlights, the exterior lighting basic service will cache the variables for scenario A and HUT enabling the low beam headlights and keep the low beam headlights enabled.
[0222] (2) If the low beam headlights are turned on in scenario A and turned off in the original vehicle function, the exterior lighting basic service will execute according to the original vehicle function > scenario function, and turn off the low beam headlights. For example, if the low beam headlights are turned on in scenario A and turned off in HUT, the exterior lighting basic service will turn off the low beam headlights and set the variables for scenario A and HUT to 0.
[0223] (3) If the low beam headlights are turned off in scenario A and the original vehicle function turns on the low beam headlights, then the basic external lighting services will also be executed according to the original vehicle function > scenario function, and the low beam headlights will be turned on. For example, if the low beam headlights are turned off in scenario A and the low beam headlights are turned on in HUT, then the basic external lighting services will turn on the low beam headlights, and only the scenario cache variable will be set to 0, indicating that the scenario function of turning off the low beam headlights has been exited. At this time, the function of turning on the low beam headlights in HUT will be executed.
[0224] 3. Arbitration strategy for basic exterior light control services across multiple scenarios and original vehicle functions:
[0225] (1) If multiple scenarios and multiple original vehicle functions enable low beam headlights, the exterior lighting basic service will simultaneously execute the requests to enable low beam headlights for both scenarios and original vehicle functions. For example, if scenario A enables low beam headlights, scenario B enables low beam headlights, scenario C enables low beam headlights, and the original vehicle function HUT enables low beam headlights, then the services for enabling low beam headlights for scenario C and HUT will be executed, and the cache variables for scenario A and scenario B will be cleared to 0, while the variables for enabling low beam headlights for scenario C and HUT will be set to 1.
[0226] (2) If low beam headlights are continuously on in multiple scenarios, and multiple original vehicle functions include turning on and off low beam headlights, then the exterior lighting basic service will execute the original vehicle's low beam headlight activation. For example, if scenario A continuously occupies the low beam headlight activation, the original vehicle's HUT will activate the low beam headlights, the original vehicle's AVP will deactivate the low beam headlights, and the original vehicle's L3 will deactivate the low beam headlights. In this case, the HUT low beam headlight activation function will be executed, keeping the HUT low beam headlight activation variable at 1. The variables for scenario A continuously occupying the low beam headlights, as well as the original vehicle's AVP and L3 deactivating the low beam headlights, will be cleared. No actual low beam headlight deactivation command will be issued, indicating that the above functions have been exited.
[0227] 4. Arbitration strategy for basic external light service between original vehicle and original vehicle functions:
[0228] (1) Turn on the low beam headlights. If any original vehicle function triggers the low beam headlights, the lights will be turned on, and the actual headlight turn-on command will be issued, and the corresponding original vehicle function variable will be set to 1.
[0229] (2) Turn off the low beam headlights. The headlights will only be turned off when all the original vehicle functions request the lights to be turned off. The actual command to turn off the lights will be issued and the corresponding original vehicle function variables will be set to 0.
[0230] The arbitration strategy described above can still be used for newly added scenario triggering methods. The same arbitration strategy can also be used for headlight control requests from other vehicles' exterior lights.
[0231] Through the above embodiments, when the scene triggering method and the function triggering method conflict, the function triggering method should be prioritized for controlling the headlights; conversely, when two function triggering methods conflict, the headlight activation request should be prioritized. This not only improves the user experience but also prevents traffic accidents. Furthermore, it is adaptable to different vehicle models and can provide flexible, professional, and efficient solutions based on 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 result complies with relevant regulations for exterior lights while also meeting actual needs.
[0232] Scenario 1: Interaction mechanism where the turn signal function has higher priority in the A-core scene mode than in the M-core original vehicle function:
[0233] Because the priority rule for the M-core is that priority decreases from low to high, while the priority rule for the A-core is that priority increases from low to high, in order for the M-core to recognize the priority information sent by the A-core, firstly, the initial function priority of the M-core's turn signal is converted to an even-numbered adjustment function priority (as shown in Table 2), specifically using the formula: Adjustment function priority = Initial function priority × 2. Simultaneously, the initial scene priority of the A-core's turn signal is converted to an odd-numbered adjustment scene priority (as shown in Table 1), specifically using the formula: Adjustment scene priority = (Total number of scene triggering methods - Initial scene priority) × 2 + 1. At this point, if the A-core's turn signal basic service has a higher-priority scene that needs to control the turn signal, it is inserted into the M-core based on the priority comparison tables 1 and 2 of the turn signal priority scene input to the A-core. For example, if the A-core's scene turn signal function is a collision alarm, which is defined as the highest priority, then the A-core needs to send a priority of 60; after receiving the A-core's priority, the M-core needs to convert it to priority 1 before issuing the subsequent flashing command.
[0234] Note: Core A currently only uses priorities 1-83, while priorities 85-111 are not used for the time being. This will not affect the turn signal priority function under special circumstances (such as thermal runaway alarm, liveness detection, etc.).
[0235] Scenario 2: Interaction mechanism where the turn signal function priority is lower in the A-core scene mode than in the M-core original vehicle function turn signal priority:
[0236] If core A has three turn signal scene modes: Scene B, Scene C, and Scene D, and all three scenes request the turn signal to be activated, then core A's basic service only needs to execute the last scene mode request to core M, following the last-come-first-served principle and sending a low priority flag. Upon receiving a low-priority turn signal request from core A, core M first checks if its own turn signal function has been triggered. If not, it executes core A's turn signal control command. If core M's turn signal function has been triggered, it waits until its own function finishes. If core A still has a turn signal request, it executes core A's turn signal command.
[0237] Implementation details: Core A needs to define the turn signal operation command and the turn signal priority command. Core M starts timing each time it receives the turn signal priority command = 0x12:Occupy from Core A.
[0238] (1) If no Occupy priority is received again within 2 seconds, the Occupy priority is considered invalid. The M core defaults to the current priority of Equa and assumes that the A core has no turn signal control requirement. The lighting control is based on the M core's function control. If the Occupy priority is received again within 2 seconds, the timer is restarted, and the Occupy priority is considered to remain valid. If other valid priority information is received within 2 seconds, the priority is considered to have switched normally, and the Occupy timeout is no longer judged.
[0239] (2) If the received priority is a valid value (Occupy / Equal) and the control instruction is an invalid value, the function remains in its current state; if the priority is Occupy and the control instruction is an invalid value, the function remains in its current state and the M core turn signal function is disabled; if the priority is an invalid value and the control instruction is a valid value, the M core defaults to the current priority of Equal, does not execute the A core request, and the M core turn signal function is unaffected.
[0240] Scenario 3: Original vehicle function flashing mechanism for M-core turn signals:
[0241] (1) Functions of the same priority shall be executed according to the one triggered later; if there are still other functions in the current priority that meet the activation conditions after the execution of the function triggered later, the execution shall continue until all functions in the same priority do not meet the activation conditions.
[0242] (2) High-priority functions directly interrupt the output of low-priority functions; after the high-priority functions are completed, if the low-priority functions are still satisfied or triggered again, the low-priority functions will continue to be executed.
[0243] (3) If the turn signal is within 1 second of the lock prompt when the vehicle search flashing light request is triggered, the vehicle search will be executed after the lock prompt is completed; the priority of flashing lights + horn will be executed according to the priority of the exterior lights.
[0244] The above embodiments are adaptable to different vehicle models and can provide flexible, professional, and efficient solutions based on specific application scenarios and needs. The interaction mechanism comprehensively considers various factors and selects appropriate rules and mechanisms to ensure that the turn signal results both conform to the complex mutual interruption mechanism of the turn signals themselves and meet actual requirements.
[0245] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.
[0246] It should be noted that the above description describes some embodiments of this 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 a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. 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 embodiments, this disclosure also provides a vehicle lighting control device.
[0248] refer to Figure 9 The vehicle lighting control device includes:
[0249] The trigger mode determination module 301 is configured to determine the trigger mode corresponding to each vehicle light control request in response to the determination of multiple vehicle light control requests.
[0250] The vehicle headlight control module 302 is configured to determine a target response request from multiple vehicle headlight control requests based on the response method corresponding to the triggering method, and control the vehicle headlights according to the target response request;
[0251] The flag status control module 303 is configured to control the flag status corresponding to each triggering method based on the request content of the target response request.
[0252] In some embodiments, the vehicle lighting control module 302 includes:
[0253] The triggering method determination unit is configured to determine whether there are two triggering methods among the triggering methods;
[0254] The first target response request determining unit is configured to, in response to determining that there are two triggering methods among the triggering methods, determine a target response request from among the multiple vehicle light control requests based on a first response method; or...
[0255] The second target response request determination unit is configured to determine a target response request from a plurality of vehicle light control requests based on a second response method in response to determining that a triggering method exists among the triggering methods.
[0256] In some embodiments, the triggering method includes: a function triggering method and a scenario triggering method; 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 triggering methods among the triggering methods, determine the vehicle light control request of the function triggering method from among the multiple vehicle light control requests based on the first response method, and determine the target response request from the vehicle light control request of the function triggering method.
[0258] In some embodiments, the triggering method includes: a function triggering method or a scenario triggering method; the second target response request determining unit includes:
[0259] The trigger mode determination subunit is configured to determine the trigger mode in response to determining that there is a trigger mode among the trigger modes;
[0260] The functional target response request determination subunit is configured to determine a target response request from multiple vehicle light control requests based on the functional response method in response to determining that all the triggering methods are functional triggering methods;
[0261] The scene target response request determination subunit is configured to determine the target response request from multiple vehicle light control requests based on the scene response method in response to determining that all the triggering methods are scene triggering methods.
[0262] In some embodiments, the functional target response request determining subunit is specifically configured as follows:
[0263] In response to determining that all of the triggering methods are function triggering methods, it is determined whether there is a vehicle light turn-on request among the multiple vehicle light control requests;
[0264] In response to determining that a headlight-on request exists among the multiple headlight control requests, the headlight control request corresponding to the headlight-on request is taken as the target response request; or...
[0265] In response to determining that there is no headlight turn-on request among the plurality of headlight control requests, the plurality of headlight control requests are taken as target response requests.
[0266] In some embodiments, the scene target response request determining subunit is specifically configured as follows:
[0267] In response to determining that all of the triggering methods are scene triggering methods, it is determined whether there is a continuous vehicle light occupancy request among the multiple vehicle light control requests;
[0268] In response to determining that among the multiple headlight control requests there is a continuous headlight occupancy request, the headlight control request corresponding to the continuous headlight occupancy request is taken as the target response request; or...
[0269] In response to determining that there is no continuous headlight occupation request among the plurality of headlight control requests, the last triggered headlight control request is determined based on the trigger time of the plurality of headlight control requests, and the last triggered headlight control request is used as the target response request.
[0270] In some embodiments, the flag state control module 303 includes:
[0271] The first flag bit state control unit is configured to, in response to determining that the target response request is a headlight turn-on request, control the flag bit state of the triggering mode corresponding to the target response request to switch to the running state, and control the flag bit state of the triggering mode corresponding to other headlight control requests to switch to the stop state; wherein, the other headlight control requests are requests other than the target response request among a plurality of headlight control requests.
[0272] The second flag state control unit is configured to switch the flag state of multiple triggering methods corresponding to the multiple headlight control requests to a stop state in response to determining that the target response request is a headlight off request.
[0273] For ease of description, the above apparatus is described in terms of its functions, divided into various modules. Of course, in implementing this disclosure, the functions of each module can be implemented in one or more software and / or hardware.
[0274] The apparatus described above is used to implement the corresponding vehicle light control method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0275] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this 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 the processor executes the program to implement the vehicle light control method described in any of the above embodiments.
[0276] Figure 10 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0277] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, 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 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0279] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0280] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB (Universal Serial Bus), network cable, etc.) or wireless means (such as mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).
[0281] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0282] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0283] The electronic devices described above are used to implement the corresponding vehicle light control methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0284] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing 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, program modules, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0286] The computer instructions stored in the storage medium of the above embodiments are used to cause 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 the methods of any of the above embodiments, this application also provides a vehicle, including the vehicle lighting control device, or electronic device, or storage medium in the above embodiments, wherein the vehicle device implements the vehicle lighting control method described in any of the above embodiments.
[0288] The vehicles described in the above embodiments are used to implement the vehicle lighting control method described in any of the foregoing embodiments, and have 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 exemplary and is not intended to imply that the scope of this disclosure is limited to these examples; within the framework of this disclosure, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this disclosure as described above, which are not provided in detail for the sake of brevity.
[0290] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this disclosure, the provided drawings may or may not show well-known power / ground connections to integrated circuit (IC) chips and other components. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this disclosure, and this also takes into account the fact that the details of implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this disclosure will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuitry) have been set forth to describe exemplary embodiments of this disclosure, it will be apparent to those skilled in the art that the embodiments of this disclosure may be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0291] Although this disclosure has been described in conjunction with specific embodiments thereof, many substitutions, 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 be used with the embodiments discussed.
[0292] This disclosure is intended to cover all such substitutions, modifications, and variations that fall within the broad scope of this disclosure. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A vehicle headlight control method, characterized in that, The method includes: In response to the determination that there are multiple headlight control requests, determine the triggering method corresponding to each headlight control request; Based on the response method corresponding to the triggering method, a target response request is determined from multiple vehicle light control requests, and the vehicle lights are controlled according to the target response request; Based on the request content of the target response request, control the flag state corresponding to each triggering method; The step of determining the target response request from multiple vehicle light control requests based on the response method corresponding to the triggering method includes: Determine whether there are two triggering methods among the triggering methods; In response to determining that two triggering methods exist among the triggering methods, a target response request is determined from the plurality of vehicle light control requests based on the first response method; or... In response to determining that one of the triggering methods exists, a target response request is determined from the plurality of vehicle light control requests based on a second response method; The triggering methods include: function triggering methods and scenario triggering methods; The response determines that there are two triggering methods among the triggering methods, and determines the target response request from multiple vehicle light control requests based on the first response method, including: In response to determining that there are two triggering methods among the triggering methods, based on the first response method, a vehicle light control request for a function triggering method is determined from among the multiple vehicle light control requests, and a target response request is determined from the vehicle light control requests for the function triggering method.
2. The method according to claim 1, characterized in that, The triggering methods include: function triggering methods or scenario triggering methods; The response involves determining that one of the triggering methods exists, and determining a target response request from multiple vehicle light control requests based on a second response method, including: In response to determining that one of the triggering methods exists, the triggering method is determined; In response to determining that all the triggering methods are function triggering methods, a target response request is determined from the multiple vehicle light control requests based on the function response method; or, In response to determining that all the triggering methods are scene triggering methods, a target response request is determined from the multiple vehicle light control requests based on the scene response method.
3. The method according to claim 2, characterized in that, The response determines that all triggering methods are function triggering methods, and determines the target response request from multiple vehicle light control requests based on the function response method, including: In response to determining that all of the triggering methods are function triggering methods, it is determined whether there is a vehicle light turn-on request among the multiple vehicle light control requests; In response to determining that a headlight-on request exists among the multiple headlight control requests, the headlight control request corresponding to the headlight-on request is taken as the target response request; or... In response to determining that there is no headlight turn-on request among the plurality of headlight control requests, the plurality of headlight control requests are taken as target response requests.
4. The method according to claim 2, characterized in that, The response determines that all triggering methods are scene triggering methods, and determines the target response request from multiple vehicle light control requests based on the scene response method, including: In response to determining that all of the triggering methods are scene triggering methods, it is determined whether there is a continuous vehicle light occupancy request among the multiple vehicle light control requests; In response to determining that among the multiple headlight control requests there is a continuous headlight occupancy request, the headlight control request corresponding to the continuous headlight occupancy request is taken as the target response request; or... In response to determining that there is no continuous headlight occupation request among the plurality of headlight control requests, the last triggered headlight control request is determined based on the trigger time of the plurality of headlight control requests, and the last triggered headlight control request is used as the target response request.
5. The method according to claim 1, characterized in that, The control of the flag state corresponding to each triggering method based on the request content of the target response request includes: In response to determining that the target response request is a headlight turn-on request, the flag state of the triggering method corresponding to the target response request is switched to the running state, and the flag state of the triggering methods corresponding to other headlight control requests is switched to the stop state; wherein, the other headlight control requests are requests other than the target response request among the multiple headlight control requests. In response to determining that the target response request is a headlight off request, the flag state of the triggering method corresponding to the multiple headlight control requests is switched to the stop state.
6. A vehicle lighting control device, characterized in that, include: The triggering method determination module is configured to determine the triggering method corresponding to each headlight control request in response to multiple headlight control requests. The vehicle lighting control module is configured to determine a target response request from multiple vehicle lighting control requests based on the response method corresponding to the triggering method, and control the vehicle lights according to the target response request; The flag status control module is configured to control the flag status corresponding to each triggering method based on the request content of the target response request. The vehicle lighting control module includes: The triggering method determination unit is configured to determine whether there are two triggering methods among the triggering methods; The first target response request determining unit is configured to, in response to determining that there are two triggering methods among the triggering methods, determine a target response request from among the multiple vehicle light control requests based on a first response method; or... The second target response request determination unit is configured to determine a target response request from a plurality of vehicle light control requests based on the second response method in response to determining that a triggering method exists among the triggering methods; The triggering methods include: function triggering methods and scenario triggering methods; the first target response request determination unit includes: The first target response request determination subunit is configured to, in response to determining that there are two triggering methods among the triggering methods, determine the vehicle light control request of the function triggering method from among the multiple vehicle light control requests based on the first response method, and determine the target response request from the vehicle light control request of the function triggering method.
7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor, when executing the program, implements the method as claimed in any one of claims 1 to 5.
8. A vehicle, characterized in that, Includes the vehicle lighting control device as described in claim 6 or the electronic device as described in claim 7.
Citation Information
Patent Citations
Control method and related equipment
CN112835351A
Multifunctional switch assembly of automobile steering wheel
CN218257925U