Vehicle controller power supply terminal distribution method, device and computer program product
By automatically determining the correspondence between vehicle functions, controllers, and power modes, the problem of low power terminal allocation efficiency is solved, fast and accurate power terminal allocation is achieved, and the efficiency and accuracy of power terminal allocation of the vehicle controller are improved.
Patent Information
- Application Number
- CN202511212139.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-08-28
AI Technical Summary
During the development of pure electric vehicle platforms, the power mode allocation of vehicle functions needs to be handled manually, resulting in high manpower consumption, slow speed and prone to errors.
By obtaining the correspondence between the vehicle functions and the controller, the power mode and the power terminal, the power mode with the highest priority is automatically determined as the selected power mode, and the power terminal is automatically allocated.
It realizes the automatic allocation of power supply and wake-up terminals, quickly and accurately gives the power terminal allocation results of the vehicle controller, and improves efficiency and accuracy.
Smart Images

Figure CN120735593A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power supply for vehicle auxiliary equipment, and in particular to a method, device and computer program product for allocating power terminals of a vehicle controller. Background Art
[0002] During the development of a pure electric vehicle platform, the vehicle's power mode must be determined. Specifically, it's necessary to clearly define the power modes in which the vehicle's functions operate, as well as the controllers associated with these functions, to allocate power supply terminals and wake-up terminals, thereby supporting wiring harness design.
[0003] The platform functions involved in a complete vehicle usually number in the hundreds, which is a large number and requires chart inspection. Currently, manual processing is required by staff, which consumes a lot of manpower, is slow, and is prone to errors. Summary of the Invention
[0004] In order to solve the above-mentioned problems in the prior art, in the first aspect, an embodiment of the present invention provides a method for allocating power terminals of a vehicle controller, the method comprising: obtaining the correspondence between the vehicle function and the controller, the correspondence between the vehicle function and the power mode, and the correspondence between the power mode and the power terminal, wherein each function in the vehicle function corresponds to one or more controllers, each function in the vehicle function corresponds to one or more power modes, each power mode corresponds to a power terminal, and wherein the power mode comprises a first power mode, a second power mode, a third power mode, and a fourth power mode; traversing the controllers to be allocated, and executing the following steps for each controller to be allocated: Steps: For the current controller to be assigned, determine the function associated with the current controller to be assigned according to the correspondence between the vehicle function and the controller; determine the power mode corresponding to the associated function according to the correspondence between the vehicle function and the power mode; determine the power mode with the highest priority among all the power modes corresponding to the functions associated with the current controller to be assigned as the selected power mode, wherein the priorities of the power modes are from high to low: first power mode, second power mode, third power mode, fourth power mode; according to the correspondence between the power modes and the power terminals, determine the power terminal corresponding to the selected power mode as the power terminal of the current controller to be assigned.
[0005] In some embodiments, determining the power mode with the highest priority among all the functions associated with the current controller to be assigned as the selected power mode includes: traversing the power modes corresponding to all the functions associated with the current controller to be assigned in order of priority from high to low, and performing the following steps in the traversal of the current priority: determining whether there is a power mode of the current priority among the corresponding power modes; if so, determining the power mode of the current priority as the selected power mode, and terminating the traversal of the power modes corresponding to all the functions associated with the current controller to be assigned; if not, switching to the traversal of a priority level lower than the current priority.
[0006] In some embodiments, determining the power mode with the highest priority among the power modes corresponding to all functions associated with the current controller to be assigned as the selected power mode includes: finding the power mode with the highest priority among the power modes corresponding to each associated function as the highest priority power mode for the function; and determining the power mode with the highest priority among the highest priority power modes for each function associated with the current controller to be assigned as the selected power mode.
[0007] In some embodiments, according to the correspondence between the vehicle function and the power mode, determining the power mode corresponding to the associated function and determining the power mode with the highest priority among the power modes corresponding to all functions associated with the current controller to be assigned as the selected power mode includes: performing the following steps in the traversal of the current priority in order of the priority of the power mode from high to low: determining the power mode corresponding to the current function among the associated functions; determining whether there is a power mode of the current priority among the power modes corresponding to the current function; if so, determining the power mode of the current priority as the selected power mode and terminating the traversal; if not, taking the next function among the associated functions as the current function, repeating the steps of determining the corresponding power mode and judging whether there is a power mode of the current priority; if the power mode of the current priority does not exist among the power modes corresponding to all functions in the associated functions, switching to the traversal of a priority level lower than the current priority.
[0008] In some embodiments, obtaining the correspondence between the vehicle function and the controller, and the correspondence between the vehicle function and the power mode includes: performing information identification on the functional design document of each function in the vehicle function, and identifying the power mode information and controller information in the functional design document; and generating the correspondence between the vehicle function and the controller, and the correspondence between the vehicle function and the power mode, based on the power mode information and controller information of each function in the vehicle function.
[0009] In some embodiments, information identification of the functional design document of each function in the whole vehicle function includes: constructing a dictionary including function name, controller name and power mode name; matching the description text of the functional design document of each function in the whole vehicle function in the dictionary to obtain the power mode information and controller information in the functional design document.
[0010] In some embodiments, the first power mode is a sleep mode; the second power mode is a wake-up mode; the third power mode is a standby mode; and the fourth power mode is a driving mode.
[0011] In some embodiments, the power terminal corresponding to the sleep mode is KL30; the power terminal corresponding to the wake-up mode is KL30 delay; the power terminal corresponding to the standby mode is KL15; and the power terminal corresponding to the drive mode is KL15.
[0012] In a second aspect, an embodiment of the present invention provides a vehicle controller power terminal allocation device, which includes a memory and a processor, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the vehicle controller power terminal allocation method described in any of the above embodiments is implemented.
[0013] In a third aspect, an embodiment of the present invention provides a computer program product comprising computer-readable instructions, which, when executed by a processor, execute the steps of the vehicle controller power terminal allocation method described in any of the above embodiments.
[0014] The vehicle controller power terminal allocation method, device and computer program product proposed in the embodiments of the present invention can automatically complete the power supply and wake-up terminal allocation work, can batch process the relationship between the vehicle functions and the controller and power mode, and quickly and accurately give the results of the vehicle controller power terminal allocation. Compared with manual processing by staff, it is faster, more efficient and more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other objects, features and advantages of the embodiments of the present invention will become readily understood by reading the following detailed description with reference to the accompanying drawings, in which several embodiments of the present invention are shown by way of example and not limitation, in which:
[0016] Figure 1 A flowchart showing an example of a method for allocating power terminals of a vehicle controller according to an embodiment of the present invention;
[0017] Figure 2A schematic diagram showing the correspondence between vehicle functions and controllers and the correspondence between vehicle functions and power modes according to an embodiment of the present invention is shown;
[0018] Figure 3 An exemplary schematic diagram showing an output result of a vehicle controller power terminal allocation method according to an embodiment of the present invention;
[0019] Figure 4 A flowchart illustrating an example of a first embodiment of determining a selected power mode according to an embodiment of the present invention;
[0020] Figure 5 A flow chart illustrating an example of a second embodiment of determining a selected power mode according to an embodiment of the present invention;
[0021] Figure 6 A flow chart illustrating an example of a third embodiment of determining a selected power mode according to an embodiment of the present invention is shown.
[0022] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION
[0023] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.
[0024] In one aspect, an embodiment of the present invention provides a method for allocating power terminals of a vehicle controller. Figure 1 , which shows a flow chart of an example of a method for allocating power terminals of a vehicle controller according to an embodiment of the present invention. Figure 1 As shown, the vehicle controller power terminal allocation method may include steps S101-S107.
[0025] In step S101, the correspondence between vehicle functions and controllers, the correspondence between vehicle functions and power modes, and the correspondence between power modes and power terminals is obtained. Each vehicle function corresponds to one or more controllers, each vehicle function corresponds to one or more power modes, and each power mode corresponds to a power terminal. Power modes include a first power mode (mode 1), a second power mode (mode 2), a third power mode (mode 3), and a fourth power mode (mode 4).
[0026] As an example, in some vehicle models, many functions require multiple controllers to work together, such as:
[0027] 1. Emergency brake light function: taillight controller, body domain controller, brake controller, gateway;
[0028] 2. Turn signal function: headlight controller left, headlight controller right, taillight controller, body domain controller, door controller left, door controller right, steering column switch, gateway;
[0029] 3. Automatic return home lighting function: left headlight controller, right headlight controller, taillight controller, body domain controller, gateway, Bluetooth main module controller, ambient light controller, gateway, sunlight and rain sensor;
[0030] 4. Seat ventilation function: entertainment host, large screen, gateway, body domain control, air conditioning controller;
[0031] 5. Three-zone air conditioning function: entertainment host, large screen, gateway, body domain control, and air conditioning controller;
[0032] 6. Automatic locking and unlocking function: left door controller, right door controller, gateway, body domain controller, brake controller;
[0033] 7. Electric adjustment function of doors and windows: left door controller, right door controller, gateway, body domain controller, airbag controller.
[0034] refer to Figure 2 , which shows a schematic diagram showing the correspondence between vehicle functions and controllers and the correspondence between vehicle functions and power modes according to an embodiment of the present invention. Among them, the vehicle functions include K functions, and the vehicle controller includes n controllers. There is a correspondence between functions and controllers, that is, Figure 2 Function column and controller column; the function corresponds to the power mode, that is, Figure 2 Function and Mode 1-4 columns. Taking function 1 as an example, the controllers corresponding to function 1 include controller (1), controller (5), controller (7), and controller (16), and the power modes corresponding to function 1 include the first power mode (mode 1), the second power mode (mode 2), and the third power mode (mode 3). For the purpose of clarity, the power modes corresponding to the functions are shown by ticking the corresponding mode columns. It should be noted that Figure 2 The correspondence table shown is only for illustrative purposes. In actual operation, in order to adapt to the following processing steps, these correspondences may be embodied in different storage forms or data structures, and the present invention does not impose any limitations in this regard.
[0035] As an embodiment of the present invention, obtaining the correspondence between the whole vehicle function and the controller, and the correspondence between the whole vehicle function and the power mode includes: performing information identification on the functional design document of each function in the whole vehicle function, and identifying the power mode information and controller information in the functional design document; generating the correspondence between the whole vehicle function and the controller, and the correspondence between the whole vehicle function and the power mode based on the power mode information and controller information of each function in the whole vehicle function.
[0036] Usually, in the functional design stage, it is determined in which power modes the vehicle functions work and which controllers are required to work together. This information is part of the functional design document. This implementation method uses an automated solution to automatically identify the functional design document of each function, export its power mode information and controller information, and generate Figure 2 The table shown.
[0037] Furthermore, as an embodiment of the present invention, information identification of the functional design document of each function in the whole vehicle function includes: constructing a dictionary including function name, controller name and power mode name; matching the description text of the functional design document of each function in the whole vehicle function in the dictionary to obtain the power mode information and controller information in the functional design document.
[0038] Next, controllers to be assigned (ie, controllers to which a power terminal has not yet been assigned) are traversed, and steps S102 to S105 are executed for each controller to be assigned.
[0039] In step S102 , for the current controller to be assigned, the function associated with the current controller to be assigned is determined according to the correspondence between the vehicle functions and the controllers.
[0040] In step S103 , the power mode corresponding to the associated function is determined according to the correspondence between the vehicle functions and the power modes.
[0041] In step S104, the power mode with the highest priority among all the power modes corresponding to the functions associated with the current controller to be assigned is determined as the selected power mode, where the priorities of the power modes are from high to low: first power mode, second power mode, third power mode, and fourth power mode.
[0042] In step S105 , based on the correspondence between the power modes and the power terminals, the power terminal corresponding to the selected power mode is determined as the power terminal of the controller to be currently allocated.
[0043] As an example only, the traversal of the controller is implemented through steps S106 - S107 .
[0044] In step S106 , it is determined whether the current controller to be assigned is the last one among the controllers to be assigned.
[0045] If so, the method ends, at which point power supply terminals have been determined for all controllers to be assigned.
[0046] If not, then execute step S107: set the next controller to be assigned as the current controller to be assigned, and then return to step S102.
[0047] According to the implementation of the vehicle controller power terminal assignment method described above, the following assignment effects can be achieved when assigning power terminals to controllers: If the controller participates in the implementation of a certain function, and the function operates in the first power mode, the power supply terminals of the controller are powered by the power supply terminals corresponding to the first power mode, and no further traversal through the traversal algorithm is required. If all functions in which the controller participates do not operate in the first power mode, but operate in the second power mode, the power supply terminals of the controller are powered by the power supply terminals corresponding to the second power mode, and no further traversal through the traversal algorithm is required. If all functions in which the controller participates do not operate in the first power mode or the second power mode, but operate in the third power mode, the power supply terminals of the controller are powered by the power supply terminals corresponding to the third power mode, and no further traversal through the traversal algorithm is required. If all functions in which the controller participates do not operate in the first power mode, the second power mode, or the third power mode, but operate in the fourth power mode, the power supply terminals of the controller are powered by the power supply terminals corresponding to the fourth power mode, and no further traversal through the traversal algorithm is required.
[0048] As one embodiment of the present invention, the first power mode is a sleep mode, the second power mode is an awake mode, the third power mode is a standby mode, and the fourth power mode is a driving mode. Based on the power mode priorities defined above, in the current embodiment, the power modes are prioritized in the following order: sleep mode > awake mode > standby mode > driving mode.
[0049] As an embodiment of the present invention, the power terminal corresponding to the sleep mode is KL30; the power terminal corresponding to the wake-up mode is KL30 delay (KL30_delay, or KL30D); the power terminal corresponding to the standby mode is KL15; and the power terminal corresponding to the drive mode is KL15.
[0050] Combining the above-described methods for determining power modes and power terminals, the vehicle controller power terminal allocation method described above can achieve the following effects: When a controller needs to operate in sleep mode, KL30 power is allocated to the controller, as other power supplies cannot meet the requirements for the controller to operate in sleep power mode. When a controller is not in sleep mode but in wake mode, KL30D power is allocated to the controller. When a controller is not in sleep mode or wake mode but in standby mode, KL15 power is allocated to the controller. When a controller is not in sleep mode, wake mode, or standby mode but in drive mode, KL15 power is allocated to the controller.
[0051] refer to Figure 3 , which is a schematic diagram showing an example of the output result of the vehicle controller power terminal allocation method according to an embodiment of the present invention. The diagram shows the power terminals allocated to the vehicle controllers (1)-(n) respectively.
[0052] The vehicle controller power terminal allocation method proposed in the embodiment of the present invention can batch process the relationship between the vehicle functions and the controller and power mode, and quickly and accurately give the results of the vehicle controller power terminal allocation. Compared with manual processing by staff, it is faster, more efficient and more accurate.
[0053] As a first embodiment of the step of determining the selected power mode, determining the power mode with the highest priority among all the power modes corresponding to the functions associated with the current controller to be assigned as the selected power mode can be achieved by the following steps. The power modes corresponding to all the functions associated with the current controller to be assigned are traversed in descending order of priority of the power modes, and the following steps are performed during the traversal of the current priority: determining whether there is a power mode of the current priority among the corresponding power modes; if so, determining the power mode of the current priority as the selected power mode, and terminating the traversal of the power modes corresponding to all the functions associated with the current controller to be assigned; if not, switching to the traversal of the priority level one level lower than the current priority level.
[0054] refer to Figure 4 , which shows a flowchart of an example of a first embodiment of determining a selected power mode according to an embodiment of the present invention. In this example, determining the power mode with the highest priority among all power modes corresponding to the functions currently associated with the controller to be assigned as the selected power mode may include steps S401-S408.
[0055] In step S401 , the priority of the first power mode is used as the current priority.
[0056] In step S402 , the first one of the power modes corresponding to all functions associated with the controller to be currently assigned is used as the current power mode.
[0057] In step S403 , it is determined whether the current power mode among the power modes corresponding to all functions associated with the controller to be currently assigned is a power mode of current priority.
[0058] If the answer in step S403 is yes, step S404 is executed: the power mode of the current priority is determined as the selected power mode, and the traversal of the power modes corresponding to all functions associated with the controller to be currently assigned is terminated.
[0059] If the determination result in step S403 is no, step S405 is executed: determining whether the current power mode is the last one of the power modes corresponding to all functions associated with the controller to be currently assigned.
[0060] If the answer in step S405 is no, step S406 is executed: the next power mode among the power modes corresponding to all functions associated with the controller to be currently assigned is used as the current power mode, and the process goes to step S403.
[0061] If the answer is yes in step S405 , it means that there is no power mode with the current priority among the power modes corresponding to all functions associated with the controller to be currently assigned, and step S407 is executed: determining whether the current priority is the lowest priority.
[0062] If the answer in step S407 is yes, it means that the traversal has been performed for all priorities, and the process of determining the selected power mode is completed.
[0063] If the judgment in step S407 is no, step S408 is executed: the priority level one level lower than the current priority level is reset as the current priority level, and then the process returns to step S402, thereby switching to the traversal of the priority level one level lower than the current priority level.
[0064] It should be noted that in Figure 4 In the flowchart shown, the "End" box indicates the end of the process of "determining the selected power mode" rather than the end of the vehicle controller power terminal allocation method.
[0065] In the vehicle controller power terminal allocation method including the process of determining the selected power mode described in the first embodiment, two layers of traversal are performed, firstly traversing the entire vehicle controller and secondly traversing the entire vehicle function.
[0066] For the purpose of clarity and illustration, the overall allocation method including the above embodiments is exemplified below in the form of pseudo code.
[0067] The input of the power terminal allocation is the correspondence table (function list) between the vehicle functions, vehicle controllers, and vehicle power modes, for example Figure 2 The output of the power terminal assignment is a list of controllers and the assigned power terminals.
[0068] Assume that C is the flag bit traversed by the vehicle controller; F is the flag bit traversed by the vehicle function.
[0069] The vehicle controllers are controller(1), controller(2), controller(3), ..., controller(n), for example only, n≈40. By default, the flag bits of all controllers are 0, that is, controller(1)=controller(2)=controller(3)=... ...=controller(n)=0.
[0070] The vehicle functions are function(1), function(2), function(3), ..., function(k). For example only, k≈300. By default, the flag bits of all vehicle functions are 0, that is, function(1)=function(2)=function(3)=...=function(k)=0. terminal is the power supply terminal to be allocated to the controller.
[0071] Power mode 1 (mode1) - power mode 4 (mode4) are: sleep, awake, standby, and driving.
[0072] The pseudo code is as follows:
[0073] Input: the function list
[0074] Output: the list of terminal
[0075] controller1=controller2=controller3=… …=controllern=0;
[0076] function1=function2=function3=… …=functionn=0;
[0077] while any controllerX==0 traverses the controllers, when the controller flag is 0,
[0078] function(controllerX)=1; Set the flag of the function associated with the controller to 1;
[0079] While n=4 traverses the power mode mode of the function with the flag bit 1; traverses the power mode according to the priority of mode1, mode2, mode3, mode4
[0080] if mode(function)==mode1 If the power mode is mode1, terminate the power mode traversal
[0081] terminal(controllerX)=KL30; The controller terminal is KL30
[0082] else if mode(function)==mode2 If the power mode is mode2, terminate the power mode traversal
[0083] terminal(controllerX)=KL30_delay; The controller terminal is KL30_delay
[0084] else if mode(function)==mode3 If the power mode is mode3, terminate the power mode traversal
[0085] terminal(controllerX)=KL15; The controller terminal is KL15
[0086] else if mode(function)==mode4 If the power mode is mode4, terminate the power mode traversal
[0087] terminal(controllerX)=KL15; The controller terminal is KL15
[0088] end
[0089] controllerX=1; the controller flag is 1
[0090] function(controllerX)=0; Function flag position is 0
[0091] End terminates the function traversal and ends the controller traversal.
[0092] As a second embodiment for determining the selected power mode, refer to Figure 5 , which shows an example flow chart of a second embodiment of determining a selected power mode according to an embodiment of the present invention. Determining the power mode with the highest priority among all power modes corresponding to the functions associated with the current controller to be assigned as the selected power mode may include steps S501-S502.
[0093] In step S501 , the power mode with the highest priority among the power modes corresponding to each associated function is found and used as the highest priority power mode for the function.
[0094] In step S502 , the power mode with the highest priority among the power modes with the highest priority of each function currently associated with the controller to be assigned is determined as the selected power mode.
[0095] As a third embodiment of determining the selected power mode, according to the correspondence between the vehicle function and the power mode, determining the power mode corresponding to the associated function and determining the power mode with the highest priority among the power modes corresponding to all functions currently associated with the controller to be assigned as the selected power mode can be achieved by the following steps. In descending order of priority of the power modes, the following steps are performed in the traversal of the current priority: determining the power mode corresponding to the current function among the associated functions; determining whether there is a power mode of the current priority among the power modes corresponding to the current function; if so, determining the power mode of the current priority as the selected power mode and terminating the traversal; if not, taking the next function among the associated functions as the current function, repeating the steps of determining the corresponding power mode and judging whether there is a power mode of the current priority; if there is no power mode of the current priority among the power modes corresponding to all functions in the associated functions, switching to the traversal of a priority level lower than the current priority.
[0096] refer to Figure 6 , which shows a flowchart of an example of a third embodiment of determining the selected power mode according to an embodiment of the present invention. According to the correspondence between the vehicle functions and the power modes, the power mode corresponding to the associated functions is determined, and the power mode with the highest priority among all the power modes corresponding to the functions currently associated with the controller to be assigned is determined as the selected power mode. Specifically, Figure 6 To do this, follow the steps shown below.
[0097] In step S601 , the priority of the first power mode is used as the current priority.
[0098] In step S602 , the first function among the associated functions is used as the current function.
[0099] In step S603 , based on the correspondence between the vehicle functions and the power modes, the power mode corresponding to the current function among the associated functions is determined.
[0100] In step S604 , it is determined whether there is a power mode of the current priority among the power modes corresponding to the current function.
[0101] If the answer is yes in step S604, step S605 is executed: the power mode of the current priority is determined as the selected power mode, and the traversal is terminated.
[0102] If the determination result in step S604 is no, step S606 is executed: determining whether the current function is the last one of the associated functions.
[0103] If the judgment in step S606 is no, step S607 is executed: the next function in the associated functions is used as the current function, and then the process goes to step S603.
[0104] If the answer in step S606 is yes, it means that none of the power modes corresponding to all the associated functions has a power mode with the current priority, and then step S608 is executed: determining whether the current priority is the lowest priority.
[0105] If the judgment in step S608 is yes, it means that the traversal has been performed for all priority levels and the process ends.
[0106] If the judgment in step S608 is no, step S609 is executed: the priority level lower than the current priority level is set as the current priority level, and then the process goes to step S602, so that the function traversal can be performed for the next priority level.
[0107] According to the third embodiment of determining the selected power mode, the power mode correspondence (S603) and priority judgment (S604) can be performed for each function. When a power mode corresponding to a certain function has a higher priority, there is no need to determine the power modes corresponding to other functions, nor is there any need to traverse the functions with lower priorities, thereby reducing the execution steps and saving computing power.
[0108] It should be noted that in Figure 6 In the flowchart shown, the "End" box indicates the end of the process of "determining the selected power mode" rather than the end of the vehicle controller power terminal allocation method.
[0109] On the other hand, an embodiment of the present invention proposes a vehicle controller power terminal distribution device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the vehicle controller power terminal distribution method described in any of the above embodiments is implemented.
[0110] In yet another aspect, an embodiment of the present invention provides a computer program product comprising computer-readable instructions, which, when executed by a processor, executes the steps of the vehicle controller power terminal allocation method described in any of the aforementioned embodiments.
[0111] The vehicle controller power terminal allocation method, device and computer program product proposed in the embodiments of the present invention can automatically complete the power supply and wake-up terminal allocation work, can batch process the relationship between the vehicle functions and the controller and power mode, and quickly and accurately give the results of the vehicle controller power terminal allocation. Compared with manual processing by staff, it is faster, more efficient and more accurate.
[0112] For illustrative purposes, the foregoing description of the embodiments of the present invention has been given, which is not exhaustive nor intended to limit the present invention to disclosed exact forms. It will be appreciated by those skilled in the art that various changes may be made without departing from the scope of the present invention, and that elements therein may be replaced with equivalents. In addition, without departing from the basic scope of the present invention, many modifications may be made so that specific situations or materials are adapted to the teachings of the present invention. Therefore, the present invention is not intended to be limited to the specific embodiments disclosed as the best mode for realizing the present invention, and the present invention will include all embodiments within the scope of the appended claims.
Claims
1. A vehicle controller power terminal allocation method, characterized in that: The method comprises: Obtaining a correspondence between vehicle functions and controllers, a correspondence between vehicle functions and power modes, and a correspondence between power modes and power terminals, wherein each vehicle function corresponds to one or more controllers, each vehicle function corresponds to one or more power modes, each power mode corresponds to a power terminal, and wherein the power modes include a first power mode, a second power mode, a third power mode, and a fourth power mode; Traverse the controllers to be assigned and perform the following steps for each controller to be assigned: For the current controller to be assigned, determining the function associated with the current controller to be assigned according to the correspondence between the vehicle functions and the controllers; Determining the power mode corresponding to the associated function according to the correspondence between the vehicle function and the power mode; Determine the power mode with the highest priority among all power modes corresponding to the functions associated with the current controller to be assigned as the selected power mode, wherein the priorities of the power modes are, from high to low, the first power mode, the second power mode, the third power mode, and the fourth power mode; According to the correspondence between the power modes and the power terminals, the power terminal corresponding to the selected power mode is determined as the power terminal of the controller to be currently allocated.
2. The vehicle controller power terminal allocation method according to claim 1, characterized in that: Determining the power mode with the highest priority among the power modes corresponding to all functions associated with the controller to be currently assigned as the selected power mode includes: In descending order of priority of the power modes, the power modes corresponding to all functions associated with the current controller to be assigned are traversed, and the following steps are performed during the traversal of the current priority: Determine whether there is a power mode with the current priority in the corresponding power mode; If yes, the power mode of the current priority is determined as the selected power mode, and the traversal of the power modes corresponding to all functions associated with the controller to be currently assigned is terminated; If not, go to the traversal of the priority level one level lower than the current priority level.
3. The vehicle controller power terminal allocation method according to claim 1, characterized in that: Determining the power mode with the highest priority among the power modes corresponding to all functions associated with the controller to be currently assigned as the selected power mode includes: Find the power mode with the highest priority among the power modes corresponding to each associated function, and use it as the highest priority power mode for the function; The power mode with the highest priority among the highest priority power modes of each function associated with the currently to-be-assigned controller is determined as the selected power mode.
4. The vehicle controller power terminal allocation method according to claim 1, characterized in that: Determining, based on the correspondence between the vehicle functions and the power modes, the power mode corresponding to the associated functions and determining the power mode with the highest priority among all the power modes corresponding to the functions associated with the controller to be currently assigned as the selected power mode includes: In descending order of power mode priority, the following steps are performed during the current priority traversal: determining a power mode corresponding to a current function among the associated functions; Determining whether there is a power mode of current priority among the power modes corresponding to the current function; If yes, determining the power mode of the current priority as the selected power mode and terminating the traversal; If not, taking the next function among the associated functions as the current function, and repeating the steps of determining the corresponding power mode and judging whether there is a power mode with the current priority; In the case that none of the power modes corresponding to all the associated functions has the power mode of the current priority, the traversal proceeds to a priority level lower than the current priority level.
5. The vehicle controller power terminal allocation method according to any one of claims 1 to 4, characterized in that: Obtaining the correspondence between vehicle functions and controllers, and between vehicle functions and power modes includes: Performing information identification on the functional design document of each function in the vehicle function, and identifying the power mode information and controller information in the functional design document; According to the power mode information and controller information of each function in the whole vehicle function, the corresponding relationship between the whole vehicle function and the controller and the corresponding relationship between the whole vehicle function and the power mode are generated.
6. The vehicle controller power terminal allocation method according to claim 5, characterized in that: Information identification of the functional design documents of each function in the vehicle includes: Build a dictionary including function name, controller name and power mode name; The description text of the functional design document of each function in the whole vehicle function is matched in the dictionary to obtain the power mode information and controller information in the functional design document.
7. The vehicle controller power terminal allocation method according to any one of claims 1 to 4, characterized in that: The first power mode is a sleep mode; The second power mode is a wake-up mode; The third power mode is a standby mode; The fourth power mode is a driving mode.
8. The vehicle controller power terminal allocation method according to claim 7, characterized in that: The power supply terminal corresponding to the sleep mode is KL30; The power terminal corresponding to the wake-up mode is KL30 delay; The power supply terminal corresponding to the standby mode is KL15; The power supply terminal corresponding to the driving mode is KL15.
9. A vehicle controller power terminal distribution device, characterized in that: The device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the vehicle controller power terminal allocation method according to any one of claims 1 to 8 is implemented.
10. A computer program product comprising computer-readable instructions, characterized in that When the instructions are executed by a processor, the steps of the vehicle controller power terminal allocation method according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Power supply distribution system on automobile
CN110843707A
Whole vehicle power supply control system and control method based on vehicle use mode
CN119636408A
Power management method and device of vehicle, vehicle and storage medium
CN120207248A
Power supply control system and method and vehicle motor controller
CN120327258A
Vehicular power source control device
JP2008037239A