Vehicle lamp control method and device, electronic equipment and vehicle
By adjusting and combining the initial scene priority and function priority of headlight control, the problem of headlight control chaos caused by inconsistent priority during multiple headlight control requests is solved, and a safer and more experienced headlight control is achieved.
Patent Information
- Application Number
- CN202411892494.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-20
AI Technical Summary
When multiple vehicle light control requests are received, the priorities of vehicle functions and application service scenarios in the prior art are inconsistent, resulting in confusion in the control of the vehicle lights and affecting the user's safety and experience.
By obtaining the initial scene priority and initialization function priority of the headlight control method, adjust these priority based on preset rules to make their standards consistent, and then the adjusted priority is combined to obtain the target priority, and the headlights are controlled according to the target priority.
When multiple headlight control requests are received, the priority response of the headlight control request is directly determined according to the standard consistent target priority, thereby avoiding confusion in headlight control, ensuring user safety and experience, and reducing calculation amount.
Smart Images

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