Turn signal priority control method, device, vehicle and storage medium
By adopting a layered architecture for turn signal priority control, the problem of large-scale software modification in turn signal control logic is solved, enabling rapid iteration of new electronic control functions and cross-platform reuse of electronic control components, thereby reducing software development costs and time.
Patent Information
- Application Number
- CN202410731879.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-06-06
AI Technical Summary
In the existing technology, the turn signal control logic requires large-scale software modifications to adapt to new control requirements, resulting in slow iteration of new electronic control functions and difficulty in reusing electronic control components across platforms and vehicle models.
The control logic, which adopts a layered architecture, receives the target request command for the turn signal, determines the request identifier code and priority, and realizes priority control of the turn signal. It defines the request ID and priority to adapt to new control requirements without changing the enhancement service and atomic service.
It reduces software development costs and development cycles, and supports rapid iteration of new electronic control functions and cross-platform and cross-vehicle reuse of electronic control components.
Smart Images

Figure CN118790140B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a turn signal priority control method, device, vehicle, and storage medium. Background Technology
[0002] With the deepening research on automotive Ethernet technology, the automotive industry's "electrification, intelligence, connectivity, and sharing" technologies are constantly being promoted and matured. Among them, vehicle turn signals, as a tool to indicate turning during vehicle operation, play a crucial role in driving safety. Therefore, the control and arbitration of turn signals are very important.
[0003] In related technologies, turn signals are deployed in a service-oriented layered manner based on SOA (Service-Oriented Architecture) architecture to realize the functional service of turn signals.
[0004] However, the electronic and electrical architecture of related technologies suffers from dispersed software logic, a large workload for hardware customization, and highly variable and numerous communication signal requirements between ECUs (Electronic Control Units), which are difficult to platformize. Furthermore, in traditional steering control logic, if new control requirements arise, large-scale software modifications are necessary. This restricts the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models, which urgently needs to be addressed. Summary of the Invention
[0005] This application provides a turn signal priority control method, device, vehicle, and storage medium to solve the problem that in the steering control logic of related technologies, if there are new control requirements, large-scale software modifications are required, which restricts the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models.
[0006] The first aspect of this application provides a turn signal priority control method, including the following steps:
[0007] Receive a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction;
[0008] Determine whether the target request identifier code is consistent with the current request identifier code;
[0009] If the target request identifier code matches the current request identifier code, then the turn signal is controlled according to the target control command.
[0010] According to one embodiment of this application, before receiving the target request instruction for the turn signal, the method further includes:
[0011] Obtain multiple service scenarios for the turn signal;
[0012] The turn signal priority is set according to the multiple service scenarios to obtain the turn signal priority for each service scenario.
[0013] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the current request identifier code, the method further includes:
[0014] If the target request identifier code is inconsistent with the current request identifier code, then it is determined whether the target request identifier code is consistent with the storage request identifier code of the turn signal;
[0015] If the target request identifier code is consistent with the storage request identifier code, then when the target control command is enabled, it is determined whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command.
[0016] If the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and both the target request instruction and the current request instruction are non-finite-number requests, then the current request instruction is stored, and the turn signal is controlled based on the target request instruction. Otherwise, if the target request instruction is a finite-number request, the target request instruction is ignored; or if the current request instruction is a finite-number request, the current request instruction is cleared, and the turn signal is controlled based on the target request instruction.
[0017] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes:
[0018] If the turn signal priority of the target request instruction is lower than the turn signal priority of the current request instruction, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0019] According to one embodiment of this application, after determining whether the target request identifier code matches the storage request identifier code of the turn signal, the method further includes:
[0020] If the target request identifier code is inconsistent with the storage request identifier code, then when the target control command is enabled, it is determined whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command.
[0021] If the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, then when the current request instruction is a non-finite number of requests, the current request instruction is stored, and the turn signal is controlled based on the target request instruction. Otherwise, the current request instruction is cleared, and the turn signal is controlled based on the target request instruction.
[0022] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes:
[0023] If the turn signal priority of the target request instruction is less than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the stored request instruction, then when the current request instruction is a non-finite number of requests, the target request instruction is stored, and the turn signal is controlled based on the current request instruction.
[0024] If the turn signal priority of the target request instruction is lower than the turn signal priority of the stored request instruction, or if the current request instruction is a finite number of requests, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0025] According to the turn signal priority control method of this application embodiment, by receiving a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction, it is determined whether the target request identifier code is consistent with the current request identifier code. If the target request identifier code is consistent with the current request identifier code, the turn signal is controlled according to the target control instruction. This solves the problem in the steering control logic of related technologies where large-scale software modifications are required if new control requirements exist, thus restricting the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models. Based on a layered architecture control logic, request IDs and priorities are defined according to control requirements, so that when new control requirements are added, there is no need to modify enhanced services and atomic services, thereby reducing software development costs and development cycles.
[0026] A second aspect of this application provides a turn signal priority control device, comprising:
[0027] A receiving module is used to receive a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction;
[0028] The judgment module is used to determine whether the target request identifier code is consistent with the current request identifier code;
[0029] The control module is used to control the turn signal according to the target control command if the target request identifier code is consistent with the current request identifier code.
[0030] According to one embodiment of this application, before receiving the target request instruction for the turn signal, the receiving module further includes:
[0031] The first acquisition unit is used to acquire multiple service scenarios of the turn signal;
[0032] The second acquisition unit is used to set the priority of the turn signals according to the multiple service scenarios respectively, so as to obtain the turn signal priority of each service scenario.
[0033] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the current request identifier code, the determining module further includes:
[0034] The first judgment unit is used to determine whether the target request identifier code is consistent with the storage request identifier code of the turn signal if the target request identifier code is inconsistent with the current request identifier code.
[0035] The second judgment unit is used to determine whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction when the target control instruction is turned on, if the target request identifier code is consistent with the storage request identifier code.
[0036] The control unit is configured to, if the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and both the target request instruction and the current request instruction are non-finite-number requests, then store the current request instruction and control the turn signal to control the turn signal based on the target request instruction; otherwise, if the target request instruction is a finite-number request, ignore the target request instruction, or if the current request instruction is a finite-number request, clear the current request instruction and control the turn signal to control the turn signal based on the target request instruction.
[0037] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the second determining unit further includes:
[0038] The first control subunit is configured to ignore the target request instruction if the turn signal priority of the target request instruction is lower than the turn signal priority of the current request instruction, and to control the turn signal to be controlled based on the current request instruction.
[0039] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the storage request identifier code of the turn signal, the first determining unit further includes:
[0040] The judgment subunit is used to determine whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction when the target control instruction is turned on, if the target request identifier code is inconsistent with the storage request identifier code.
[0041] The second control subunit is configured to, if the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, store the current request instruction when the current request instruction is a non-finite number of requests, and control the turn signal to control the turn signal based on the target request instruction; otherwise, clear the current request instruction and control the turn signal to control the turn signal based on the target request instruction.
[0042] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the determining subunit further includes:
[0043] The first control sub-component is configured to, if the turn signal priority of the target request instruction is less than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the stored request instruction, store the target request instruction when the current request instruction is a non-finite number of requests, and control the turn signal to control the turn signal based on the current request instruction.
[0044] The second control component is configured to ignore the target request instruction and control the turn signal to be controlled based on the current request instruction if the turn signal priority of the target request instruction is lower than the turn signal priority of the stored request instruction, or if the current request instruction is a finite number of requests.
[0045] According to the turn signal priority control device of this application embodiment, by receiving a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction, it determines whether the target request identifier code is consistent with the current request identifier code. If the target request identifier code is consistent with the current request identifier code, the turn signal is controlled according to the target control instruction. This solves the problem in the steering control logic of related technologies where large-scale software modifications are required if new control requirements arise, thus restricting the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models. The control logic, based on a layered architecture, defines request IDs and priorities according to control requirements, so that when new control requirements are added, there is no need to modify enhanced services and atomic services, thereby reducing software development costs and development cycles.
[0046] A third aspect of this application provides a vehicle including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the turn signal priority control method as described in the above embodiments.
[0047] A fourth aspect of this application provides a computer-readable storage medium storing computer instructions for causing the computer to perform the turn signal priority control method as described in the above embodiments.
[0048] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. Attached Figure Description
[0049] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0050] Figure 1 This is a flowchart of a turn signal priority control method according to an embodiment of this application;
[0051] Figure 2 This is a schematic diagram illustrating the turn signal function call relationship according to an embodiment of this application;
[0052] Figure 3 This is a flowchart of a turn signal control according to an embodiment of this application;
[0053] Figure 4 This is an example diagram of a turn signal priority control device according to an embodiment of this application;
[0054] Figure 5 This is a structural schematic diagram of a vehicle according to an embodiment of this application. Detailed Implementation
[0055] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0056] The following description, with reference to the accompanying drawings, outlines a turn signal priority control method, apparatus, electronic device, and storage medium according to embodiments of this application. Addressing the issue mentioned in the background section where new control requirements necessitate large-scale software modifications in the steering control logic, hindering rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models, this application provides a turn signal priority control method. This method receives a target request instruction for the turn signal, which includes a target request identifier code and a target control instruction. It then determines whether the target request identifier code matches the current request identifier code. If they match, the turn signal is controlled according to the target control instruction. This solves the problem in the related technology where new control requirements necessitate large-scale software modifications, hindering rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models. Based on a layered architecture, the control logic defines request IDs and priorities according to control requirements. Therefore, when new control requirements are added, there is no need to modify enhanced services and atomic services, thereby reducing software development costs and time.
[0057] Specifically, before introducing the embodiments of this application, let's first introduce the relevant system modules involved in the embodiments of this application. The embodiments of this application adopt turn signal function control based on a centralized SOA electronic and electrical architecture. According to the defined standard device abstraction interface and atomic service interface, the atomic service part realizes the device abstraction and parsing. At the same time, the device abstraction and atomic service are deployed on the left and right VIUs (Vehicle Information Units), thereby ensuring that the actuators and sensors are independent of the application services. Moreover, deploying the left turn signal atomic service on the left VIU and the right turn signal atomic service on the right VIU also ensures the independence and consistency of turn signal execution. The enhancement service and application service are deployed on the VDC (Vehicle Dynamics Control). Among them, the enhancement service mainly realizes the arbitration logic and service operation status monitoring. For example, during vehicle operation, there are situations where hazard lights need to be turned on, including vehicle location, hazard warning lights, turn signals, anti-theft, emergency braking, etc. Therefore, the turn signal enhancement service realizes the arbitration of the priority of triggering turn signals, which is conducive to the rapid iteration of functions and reduces software integration and testing costs.
[0058] Specifically, Figure 1 This is a flowchart illustrating a turn signal priority control method provided in an embodiment of this application.
[0059] like Figure 1 As shown, the turn signal priority control method includes the following steps:
[0060] In step S101, a target request instruction for the turn signal is received, wherein the target request instruction includes a target request identifier code and a target control instruction.
[0061] According to one embodiment of this application, before receiving the target request instruction for the turn signal, the method further includes: obtaining multiple service scenarios for the turn signal; setting the priority of the turn signal according to the multiple service scenarios respectively, and obtaining the turn signal priority of each service scenario.
[0062] Specifically, such as Figure 2 As shown in the figure, to implement turn signal priority control, this embodiment of the application needs to set and invoke turn signal priority based on different request service scenarios and turn signal priority settings. First, this embodiment of the application needs to set the turn signal priority and turn signal request identifier (i.e., turn signal request ID) for multiple service scenarios. This allows the system to handle situations where multiple request service scenarios simultaneously send activation requests or the turn signal is flashing. If other requests are received, the system can use priority arbitration logic to allow higher priority requests to interrupt lower priority requests. After the higher priority interruption is completed, if the lower priority request remains valid, the system will respond to the lower priority instruction after the higher priority request is completed. As shown in Table 1, while defining the priority, the number of flashes, frequency, and whether the left or right light flashes are defined according to actual needs.
[0063]
[0064]
[0065] For example, if the turn signal service scenario is left turn / right turn / lane change, the turn signal request identifier code for this service scenario can be set to 0x0001, its corresponding priority can be set to 0x1, and the flashing state is left / right flashing; if the turn signal service scenario is hazard warning light, the turn signal request identifier code for this service scenario can be set to 0x0002, its corresponding priority can be set to 0x2, and the flashing state is bilateral flashing; if the turn signal service scenario is emergency braking, the turn signal request identifier code for this service scenario can be set to 0x0007, its corresponding priority can be set to 0x7, and the flashing state is bilateral flashing. In this case, based on the above service scenarios, it can be seen that the service scenario of left turn / right turn / lane change has the lowest priority, and the service scenario of emergency braking has the highest priority. If the current vehicle is performing a left turn and receives an emergency braking request command at the same time, it can be determined that the priority of emergency braking is higher than the priority of left turn. Therefore, the emergency braking request command can interrupt the left turn request command, activate the hazard lights, and thus execute the emergency braking request command.
[0066] Furthermore, in this application embodiment, after setting the corresponding turn signal priorities for multiple service scenarios, the vehicle can receive the target request instruction of the turn signal, i.e., the new request instruction, during driving. The target request instruction includes the target request identifier code and the target control instruction.
[0067] In step S102, it is determined whether the target request identifier code is consistent with the current request identifier code.
[0068] In step S103, if the target request identifier code matches the current request identifier code, the turn signal is controlled according to the target control command.
[0069] Specifically, in this embodiment of the application, after receiving the target request command for the turn signal, it is necessary to further determine the target request identifier code and the target control command of the target request command in order to control the turn signal based on the target control command.
[0070] Specifically, such as Figure 3 As shown, in the process of executing turn signal priority control in this embodiment of the application, firstly, it is determined whether the target request identifier code is consistent with the current request identifier code, that is, whether the target request ID is consistent with the current request ID. If the target request identifier code is consistent with the current request identifier code and the target control command is to turn on, then the turn signal is controlled according to the target control command, that is, the turn signal is controlled to execute the target request command. If the target request identifier code is consistent with the current request identifier code and the target control command is to turn off, and there is a non-finite number of stored request commands in the stored commands of the turn signal, then the previously stored stored request commands of the turn signal are executed. If there is no non-finite number of stored request commands in the stored commands of the turn signal, then the turn-off command of the target request command is executed.
[0071] For example, if both the current request command and the target request command are for finding a vehicle, the target request identifier code is the same as the current request identifier code. If the target control command is to turn off, and there is a non-limited number of stored request commands in the turn signal's stored commands, i.e., a vehicle search request command, then the turn signal is controlled based on the vehicle search request command.
[0072] It should be noted that the storage request instructions in this application embodiment are all low-priority request instructions, and the storage request instructions will be responded to as long as the subsequent low-priority instructions remain valid.
[0073] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the current request identifier code, the method further includes: if the target request identifier code is inconsistent with the current request identifier code, then determining whether the target request identifier code is consistent with the storage request identifier code of the turn signal; if the target request identifier code is consistent with the storage request identifier code, then when the target control command is on, determining whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command; if the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command, and both the target request command and the current request command are non-finite-time requests, then storing the current request command and controlling the turn signal to control the turn signal based on the target request command; otherwise, when the target request command is a finite-time request, ignoring the target request command, or when the current request command is a finite-time request, clearing the current request command and controlling the turn signal to control the turn signal based on the target request command.
[0074] Specifically, if the target request identifier code is inconsistent with the current request identifier code, it is further determined whether the target request identifier code is consistent with the storage request identifier code of the turn signal. If the target request identifier code is consistent with the storage request identifier code, and the target control command is on, and the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command, and both the target request command and the current request command are non-finite number of requests, then the current request command is stored, and the turn signal is controlled based on the target request command.
[0075] For example, if the target request is for a hazard warning light and the current request is for a right turn, the target request identifier code and the current request identifier code are inconsistent. If the hazard warning light is also a stored request instruction, and the control instruction for the hazard warning light is to turn on, its priority is higher than the right turn request instruction. If both the hazard warning light and the right turn are non-limited requests, then the right turn request instruction is stored, and the turn signal is controlled to perform hazard flashing control based on the hazard warning light request instruction.
[0076] Furthermore, if the target request instruction in this application embodiment is a limited number of requests, the target request instruction is ignored, or if the current request instruction is a limited number of requests, the current request instruction is cleared, and the turn signal is controlled based on the target request instruction.
[0077] For example, if the target request command (such as the hazard warning light) is a limited-use request, the hazard warning light request command is ignored, and the turn signals are controlled based on the current request command (such as right turn). Alternatively, if the hazard warning light is not a limited-use request and the right turn is a limited-use request, the right turn request command is cleared, and the turn signals are controlled to perform hazard flashing control based on the hazard warning light request command.
[0078] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes: if the turn signal priority of the target request instruction is less than the turn signal priority of the current request instruction, then the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0079] Specifically, if the turn signal priority of the target request instruction in this application embodiment is lower than the turn signal priority of the current request instruction, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0080] For example, if the target request instruction in this application embodiment is to find a vehicle, its priority is 0x 4, and the current request instruction is to apply emergency braking, its priority is 0x 7. It can be seen that the vehicle finding request instruction is less important than the emergency braking request instruction. Therefore, the vehicle finding request instruction can be ignored, and the turn signals can be controlled to perform hazard flashing based on the emergency braking request instruction.
[0081] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the storage request identifier code of the turn signal, the method further includes: if the target request identifier code is inconsistent with the storage request identifier code, then when the target control command is on, determining whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command; if the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command, then when the current request command is a non-limited request, storing the current request command and controlling the turn signal to control the turn signal based on the target request command; otherwise, clearing the current request command and controlling the turn signal to control the turn signal based on the target request command.
[0082] Specifically, if the target request identifier code and the storage request identifier code are inconsistent in this application embodiment, then when the target control instruction is on, the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and the current request instruction is a non-limited request, the current request instruction is stored, and the turn signal is controlled based on the target request instruction. If the target control instruction is off, the target request instruction is ignored.
[0083] For example, taking the target request as ADAS (Advanced Driving Assistance System) and the current request as arming, it can be determined that the turn signal priority of ADAS is greater than the turn signal priority of arming. In this case, if the control command of ADAS is on and the arming request command is not a limited number of requests, the arming request command is stored, and the turn signals are controlled to perform hazard flashing control based on the ADAS request command. If the arming request command is a limited number of requests, the arming request command is cleared, and the turn signals are controlled to perform hazard flashing control based on the ADAS request command.
[0084] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes: if the turn signal priority of the target request instruction is less than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the stored request instruction, then when the current request instruction is a non-limited request, the target request instruction is stored, and the turn signal is controlled based on the current request instruction; if the turn signal priority of the target request instruction is less than the turn signal priority of the stored request instruction, or when the current request instruction is a limited request, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0085] Specifically, if the turn signal priority of the target request instruction in this application embodiment is lower than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the storage request instruction, then when the current request instruction is a non-finite number of requests, it can be seen that the target request identifier, the current request identifier, and the storage request identifier are all inconsistent. Furthermore, when the target request instruction is enabled, the target request instruction is stored, and the turn signal is controlled based on the current request instruction.
[0086] Furthermore, if the target request identifier, the current request identifier, and the storage request identifier are all inconsistent, the turn signal priority of the target request instruction is lower than that of the storage request instruction, or if the current request instruction is a finite number of requests, then the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
[0087] For example, if the target request is a collision, the current request is arming, and the stored request is emergency braking, it can be determined that the identification codes are inconsistent, and the turn signal priority of the collision request command is lower than that of the emergency braking request command. In this case, the collision request command is ignored, and the turn signals are controlled to perform hazard flashing based on the arming request command. At the same time, when the arming request command is a limited number of requests, the collision request command is also ignored, and the turn signals are controlled to perform turn signal control based on the arming request command.
[0088] Therefore, the embodiments of this application can realize that in the control logic of the layered architecture, only one application needs to be added and the request ID and priority need to be defined according to the requirements. There is no need to change the enhanced service and atomic service, thereby reducing the software development cost and shortening the software development cycle. At the same time, when the project is migrated, only the priority, request ID and blinking frequency need to be changed, and there is no need to redevelop.
[0089] According to the turn signal priority control method of this application embodiment, by receiving a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction, it is determined whether the target request identifier code is consistent with the current request identifier code. If the target request identifier code is consistent with the current request identifier code, the turn signal is controlled according to the target control instruction. This solves the problem in the steering control logic of related technologies where large-scale software modifications are required if new control requirements exist, thus restricting the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models. Based on a layered architecture control logic, request IDs and priorities are defined according to control requirements, so that when new control requirements are added, there is no need to modify enhanced services and atomic services, thereby reducing software development costs and development cycles.
[0090] Next, the turn signal priority control device according to an embodiment of this application is described with reference to the accompanying drawings.
[0091] Figure 4 This is a block diagram of a turn signal priority control device according to an embodiment of this application.
[0092] like Figure 4 As shown, the turn signal priority control device 10 includes: a receiving module 100, a judging module 200, and a control module 300.
[0093] The receiving module 100 is used to receive the target request instruction of the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction;
[0094] The judgment module 200 is used to determine whether the target request identifier code is consistent with the current request identifier code;
[0095] The control module 300 is used to control the turn signals according to the target control command if the target request identifier code is consistent with the current request identifier code.
[0096] According to one embodiment of this application, before receiving a turn signal target request instruction, the receiving module 100 further includes:
[0097] The first acquisition unit is used to acquire multiple service scenarios of the turn signal;
[0098] The second acquisition unit is used to set the turn signal priority according to multiple service scenarios, and obtain the turn signal priority for each service scenario.
[0099] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the current request identifier code, the determination module 200 further includes:
[0100] The first judgment unit is used to determine whether the target request identifier code is consistent with the storage request identifier code of the turn signal if the target request identifier code is inconsistent with the current request identifier code.
[0101] The second judgment unit is used to determine whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction when the target control instruction is turned on, if the target request identifier code is consistent with the storage request identifier code.
[0102] The control unit is configured to, if the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and both the target request instruction and the current request instruction are non-limited requests, then store the current request instruction and control the turn signals to operate based on the target request instruction; otherwise, if the target request instruction is a limited request, ignore the target request instruction, or if the current request instruction is a limited request, clear the current request instruction and control the turn signals to operate based on the target request instruction.
[0103] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the second determination unit further includes:
[0104] The first control subunit is configured to ignore the target request command if the turn signal priority of the target request command is lower than the turn signal priority of the current request command, and control the turn signal to operate based on the current request command.
[0105] According to one embodiment of this application, after determining whether the target request identifier code is consistent with the turn signal storage request identifier code, the first determination unit further includes:
[0106] The judgment subunit is used to determine whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command when the target control command is turned on, if the target request identifier code and the storage request identifier code are inconsistent.
[0107] The second control subunit is configured to, if the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, store the current request instruction and control the turn signal based on the target request instruction when the current request instruction is a non-finite number of requests; otherwise, clear the current request instruction and control the turn signal based on the target request instruction.
[0108] According to one embodiment of this application, after determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the determining subunit further includes:
[0109] The first control sub-component is configured to store the target request instruction and control the turn signals based on the current request instruction if the turn signal priority of the target request instruction is lower than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the stored request instruction.
[0110] The second control sub-component is used to ignore the target request instruction and control the turn signals based on the current request instruction if the turn signal priority of the target request instruction is lower than the turn signal priority of the stored request instruction, or if the current request instruction is a finite number of requests.
[0111] According to the turn signal priority control device of this application embodiment, by receiving a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction, it determines whether the target request identifier code is consistent with the current request identifier code. If the target request identifier code is consistent with the current request identifier code, the turn signal is controlled according to the target control instruction. This solves the problem in the steering control logic of related technologies where large-scale software modifications are required if new control requirements arise, thus restricting the rapid iteration of new electronic control functions and the reuse of electronic control components across platforms and vehicle models. The control logic, based on a layered architecture, defines request IDs and priorities according to control requirements, so that when new control requirements are added, there is no need to modify enhanced services and atomic services, thereby reducing software development costs and development cycles.
[0112] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include:
[0113] The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0114] When the processor 502 executes the program, it implements the turn signal priority control method provided in the above embodiments.
[0115] Furthermore, the vehicle also includes:
[0116] Communication interface 503 is used for communication between memory 501 and processor 502.
[0117] The memory 501 is used to store computer programs that can run on the processor 502.
[0118] The memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0119] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0120] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0121] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0122] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the turn signal priority control method described above.
[0123] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0124] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this application, "N" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0125] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0127] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0128] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0129] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0130] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A turn signal priority control method, characterized in that, Includes the following steps: Receive a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction; Determine whether the target request identifier code is consistent with the current request identifier code; If the target request identifier code matches the current request identifier code, then the turn signal is controlled according to the target control command; After determining whether the target request identifier code matches the current request identifier code, the process further includes: If the target request identifier code is inconsistent with the current request identifier code, then it is determined whether the target request identifier code is consistent with the storage request identifier code of the turn signal; If the target request identifier code is consistent with the storage request identifier code, then when the target control command is enabled, it is determined whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command. If the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and both the target request instruction and the current request instruction are non-finite-number requests, then the current request instruction is stored, and the turn signal is controlled based on the target request instruction. Otherwise, if the target request instruction is a finite-number request, the target request instruction is ignored; or if the current request instruction is a finite-number request, the current request instruction is cleared, and the turn signal is controlled based on the target request instruction.
2. The method according to claim 1, characterized in that, Before receiving the target request instruction for the turn signal, the method also includes: Obtain multiple service scenarios for the turn signal; The turn signal priority is set according to the multiple service scenarios to obtain the turn signal priority for each service scenario.
3. The method according to claim 1, characterized in that, After determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes: If the turn signal priority of the target request instruction is lower than the turn signal priority of the current request instruction, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
4. The method according to claim 1, characterized in that, After determining whether the target request identifier code matches the storage request identifier code of the turn signal, the method further includes: If the target request identifier code is inconsistent with the storage request identifier code, then when the target control command is enabled, it is determined whether the turn signal priority of the target request command is greater than or equal to the turn signal priority of the current request command. If the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, then when the current request instruction is a non-finite number of requests, the current request instruction is stored, and the turn signal is controlled based on the target request instruction. Otherwise, the current request instruction is cleared, and the turn signal is controlled based on the target request instruction.
5. The method according to claim 4, characterized in that, After determining whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, the method further includes: If the turn signal priority of the target request instruction is less than the turn signal priority of the current request instruction, and the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the stored request instruction, then when the current request instruction is a non-finite number of requests, the target request instruction is stored, and the turn signal is controlled based on the current request instruction. If the turn signal priority of the target request instruction is lower than the turn signal priority of the stored request instruction, or if the current request instruction is a finite number of requests, the target request instruction is ignored, and the turn signal is controlled based on the current request instruction.
6. A turn signal priority control device, characterized in that, include: A receiving module is used to receive a target request instruction for the turn signal, wherein the target request instruction includes a target request identifier code and a target control instruction; The judgment module is used to determine whether the target request identifier code is consistent with the current request identifier code; The control module is used to control the turn signal according to the target control command if the target request identifier code is consistent with the current request identifier code; After determining whether the target request identifier code matches the current request identifier code, the determination module also includes: The first judgment unit is used to determine whether the target request identifier code is consistent with the storage request identifier code of the turn signal if the target request identifier code is inconsistent with the current request identifier code. The second judgment unit is used to determine whether the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction when the target control instruction is turned on, if the target request identifier code is consistent with the storage request identifier code. The control unit is configured to, if the turn signal priority of the target request instruction is greater than or equal to the turn signal priority of the current request instruction, and both the target request instruction and the current request instruction are non-limited requests, then store the current request instruction and control the turn signals to operate based on the target request instruction; otherwise, if the target request instruction is a limited request, ignore the target request instruction, or if the current request instruction is a limited request, clear the current request instruction and control the turn signals to operate based on the target request instruction.
7. The apparatus according to claim 6, characterized in that, Before receiving the target request instruction for the turn signal, the receiving module further includes: The first acquisition unit is used to acquire multiple service scenarios of the turn signal; The second acquisition unit is used to set the priority of the turn signals according to the multiple service scenarios respectively, so as to obtain the turn signal priority of each service scenario.
8. A vehicle, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the turn signal priority control method as described in any one of claims 1-5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the turn signal priority control method as described in any one of claims 1-5.
Citation Information
Patent Citations
Steering lamp control method and device, electronic equipment and medium
CN117087528A
Control device of left and right steering lamps of automobile
CN202608652U