Autonomous switching function configuration method, vehicle controller and vehicle
Through the autonomous switching function configuration method, the vehicle controller can automatically switch functional partitions when the load changes, solving the problem of low functional configuration efficiency in the prior art, and achieving efficient software adaptation and platform use.
Patent Information
- Application Number
- CN202411989724.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-31
AI Technical Summary
The existing vehicle controller software has low functional configuration efficiency when load changes and cannot be adaptively switched, which increases development management and control costs.
It provides an autonomous switching function configuration method, which can obtain the load change type and determine the target load based on the load change type, including a policy based on the operating current value or message identification information, so as to realize autonomous partition switching of the vehicle controller software function.
It realizes independent functional partition switching of vehicle controller software under load changes, improves functional configuration efficiency, reduces development management and control costs, and supports platform use.
Smart Images

Figure CN119795915A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle configuration, and in particular to an autonomous switching function configuration method, a vehicle controller and a vehicle. Background Art
[0002] The vehicle controller is an important component for controlling the normal operation of various loads in the vehicle. It not only improves the performance and safety of the vehicle, but also provides a foundation for the development of intelligent, networked and personalized automobiles.
[0003] At present, with the update of vehicle loads or the upgrade of vehicles, the vehicle controller software also needs to be adaptively developed to match the change requirements of the load. However, most of the existing configuration solutions use the diagnostic instrument to write configuration words offline, which cannot achieve adaptive switching of the software, increase the cost of software development and control, and inevitably reduce the functional configuration efficiency of the vehicle controller software. Summary of the invention
[0004] In view of this, the present application is committed to providing an autonomous switching function configuration method, a vehicle controller and a vehicle to solve the technical problem of low function configuration efficiency of the vehicle controller software.
[0005] In a first aspect, the present application provides a method for autonomously switching function configuration, which is applied to a vehicle controller, comprising: in response to a load change event, obtaining a load change type, wherein the load change type includes replacing a load or adding a new load; based on the load change type, determining a function configuration strategy corresponding to a target load, wherein the function configuration strategy is determined based on an operating current value of the target load, or the function configuration strategy is determined based on message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load; autonomously partitioning and switching the software functions of the vehicle controller through the function configuration strategy.
[0006] In a possible implementation of the present application, if the target load is determined from the replacement load, based on the load change type, the functional configuration strategy corresponding to the target load is determined, including: collecting the operating current of the replacement load to obtain the operating current value; judging whether there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, wherein the preset current value library is used to characterize a database that associates preset load operating current values with analog-to-digital conversion values, and the preset current value library supports customized management of load operating current values; if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, the target functional configuration strategy corresponding to the target load is determined.
[0007] In a possible implementation of the present application, the method also includes: if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, determining a target load associated with the operating current value and the target analog-to-digital conversion value from the replacement load; and autonomously switching the current software function of the vehicle controller to a functional partition corresponding to the target function configuration strategy.
[0008] In a possible implementation of the present application, if the target load is determined from the newly added load, the software function of the vehicle controller is autonomously partitioned and switched through the functional configuration strategy, including: filtering the message identification information of the newly added load to obtain the target identification information, and the target identification information is used to characterize the target controller type corresponding to the target load; disassembling the target interaction message through the target identification information to obtain the target signal value, wherein the target interaction message is used to characterize the message generated by the interaction between the target controller and the bus; judging whether there is a target functional partition corresponding to the target signal value in the preset signal value library, wherein the preset signal value library is used to characterize a database for pre-set custom functional partitioning of the signal value in the message identifier, and the preset signal value library supports custom management of signal values; if there is a target functional partition corresponding to the target signal value in the preset signal value library, the current software function of the vehicle controller is autonomously switched to the target functional partition.
[0009] In a possible implementation of the present application, if a target analog-to-digital conversion value matching the operating current value does not exist in the preset current value library, or if a target functional partition corresponding to the target signal value does not exist in the preset signal value library, it includes: not autonomously switching the current software function of the vehicle controller, and reporting a diagnostic fault code, which is used to characterize the existence of an autonomous switching function configuration failure in the vehicle controller.
[0010] In a possible implementation of the present application, if the target load is determined from the replacement load, and the controller of the replacement load is a newly added controller, the method includes: determining a first functional configuration result for the target load based on the operating current value of the target load; determining a second functional configuration result for the target load based on the message identification information of the target load; judging whether the first functional configuration result and the second functional configuration result are consistent; if the first functional configuration result and the second functional configuration result are consistent, autonomously switching the current software function of the vehicle controller to a functional partition corresponding to the first functional configuration result or the second functional configuration result.
[0011] In a possible implementation of the present application, if the first function configuration result and the second function configuration result are inconsistent, the current software function of the vehicle controller is not autonomously switched, and a diagnostic fault code is reported.
[0012] In a possible implementation of the present application, the method further includes: acquiring data storage space inside the vehicle controller chip; and determining the number of partitions of the analog-to-digital conversion value in the preset current value library based on the data storage space.
[0013] In a second aspect, the present application provides an autonomous switching function configuration system, which includes: an acquisition module, used to obtain a load change type in response to a load change event, wherein the load change type includes replacing the load or adding a new load; a determination module, used to determine a function configuration strategy corresponding to the target load based on the load change type, wherein the function configuration strategy is determined based on the operating current value of the target load, or the function configuration strategy is determined based on the message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load; a switching module, used to autonomously partition the software functions of the vehicle controller through the function configuration strategy.
[0014] In a third aspect, the present application provides a vehicle controller, which is used to execute any of the above-mentioned autonomous switching function configuration methods.
[0015] In a fourth aspect, the present application provides a vehicle, which includes the above-mentioned vehicle controller.
[0016] Based on the above content, the autonomous switching function configuration method provided by the present application includes: in response to a load change event, obtaining a load change type, wherein the load change type includes replacing the load or adding a new load; based on the load change type, determining a function configuration strategy corresponding to the target load, wherein the function configuration strategy is determined based on the operating current value of the target load, or the function configuration strategy is determined based on the message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load; through the function configuration strategy, autonomously partitioning and switching the software functions of the vehicle controller. It is easy to notice that by distinguishing the load change types, when the load change type corresponds to load replacement, the function configuration strategy corresponding to the target load can be determined by the operating current value of the replaced load, and when the load change type corresponds to a newly added load, the function configuration strategy corresponding to the target load can be determined by the message identification information in the newly added load. In this way, in response to different load change events, the vehicle controller can autonomously switch the current software function to the function partition corresponding to the target load without the need for additional software development, thereby realizing the platform-based use of the vehicle controller software, and achieving the technical effect that when the electrical load changes, the vehicle controller autonomously switches the software function of the electrical load to improve the functional configuration efficiency of the electrical load, thereby solving the technical problem of low functional configuration efficiency of the vehicle controller software when the electrical load changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 Shown is a flow chart of an autonomous switching function configuration method provided in one embodiment of the present application.
[0019] Figure 2 The figure shows a flow chart of the hardware current recovery function partition switching provided by an embodiment of the present application.
[0020] Figure 3 The figure shows a flow chart of bus message identification function partition switching provided by an embodiment of the present application.
[0021] Figure 4 Shown is a schematic diagram of an autonomous switching function configuration system provided in an embodiment of the present application.
[0022] Figure 5 Shown is a schematic diagram of a vehicle controller provided in one embodiment of the present application. DETAILED DESCRIPTION
[0023] For platform-based modified models, due to inconsistent load parameters, the vehicle controller software needs to re-develop the load function configuration based on different load parameters. Different models require different versions of software, and the vehicle controller software cannot be used on a platform, which increases the cost of software development and management.
[0024] The current configuration switching solutions all require the use of a diagnostic instrument to write configuration words offline, and are unable to switch automatically and adaptively. This increases after-sales costs for manufacturers and increases the time cost of after-sales travel for users. Therefore, in order to solve the above-mentioned problems, an embodiment of the present application provides a solution for the vehicle controller to autonomously switch function configurations, so that the vehicle controller can automatically adapt to the corresponding software according to different vehicle models.
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] Exemplary Methods
[0027] As a first aspect of the present application, the present application provides a method for configuring an autonomous switching function. Figure 1 FIG. 1 is a flow chart of a method for configuring an autonomous switching function provided by an embodiment of the present application. Figure 1 As shown, the method is applied to a vehicle controller, comprising:
[0028] S101, in response to a load change event, obtaining a load change type, wherein the load change type includes replacing a load or adding a load;
[0029] Specifically, the above-mentioned load change events can be used to indicate events in which different loads are changed during the modification process of platform-based vehicle models, including but not limited to adding new loads and replacing loads.
[0030] The so-called load replacement may be to change the driving load, and the type of the corresponding driving load controller does not change, that is, the signal of the bus on the controller does not change.
[0031] The so-called newly added load may be other newly added driving loads on the basis of the existing driving loads, and the switching of some controllers corresponding to the other driving loads involves bus changes.
[0032] In an optional embodiment, in order to cope with different load change events, the load change types can be distinguished in the present application, that is, the load change type can be load replacement or new load addition. Since different load change events involve whether the bus signal on the controller changes, corresponding function configuration strategies can be pre-set for different load change events. Therefore, when the current load changes, the current software function of the vehicle controller can be autonomously switched to the function partition corresponding to the target load through the pre-set function configuration strategy.
[0033] S102, determining a function configuration strategy corresponding to the target load based on the load change type, wherein the function configuration strategy is determined based on the operating current value of the target load, or the function configuration strategy is determined based on the message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load;
[0034] The above-mentioned function configuration strategy can be used to indicate the software function switching of the vehicle controller for the target load based on the load change event.
[0035] It should be noted that the above-mentioned functional configuration strategy is not a fixed strategy, and can be switched accordingly according to the specific load change event. Specifically, if the load change event is to replace the load, the functional configuration strategy of the replaced load can be determined based on the operating current value of the replaced load; if the load change event is to add a new load, the functional configuration strategy of the added load can be determined based on the message identification information of the added load; if the load change event is to change the load, and the switching of some controllers bound to the changed load involves bus changes, the functional configuration strategy of the changed load can be determined based on the operating current value of the changed load, or it can be determined based on the message identification information of the changed load.
[0036] The above-mentioned operating current value can be acquired through the analog-to-digital conversion module inside the vehicle controller, that is, the current value of the target load is acquired through the analog-to-digital conversion module to obtain the above-mentioned operating current value.
[0037] Generally, due to differences in load models, the corresponding load operating current values also vary. Therefore, the load model, operating current value and analog-to-digital conversion value can be associated through a preset truth table, so that the target load can be determined based on the operating current value, thereby realizing the software function partition switching of the target load.
[0038] The above message identification information can be used to distinguish the type of controller that changes the load, that is, different controllers have their corresponding message identifications.
[0039] It should be noted that, during the interaction between the load controller and the bus, the identification information of the interaction message can be filtered to obtain the target interaction message, and the software function partition switching of the target load can be further determined by the target interaction message. Specifically, the message signal value can be obtained by disassembling the target interaction message, and after the vehicle controller detects the message signal value, the control logic can be switched to the software function partition corresponding to the message signal value.
[0040] In an optional embodiment, during the process of platform vehicle model modification, in order to improve the platform adaptability of the vehicle controller software when the electrical load changes, a functional configuration strategy that matches the target load can be determined based on the load change event. Specifically, the target load can be partitioned and functionally configured based on the type of change. Furthermore, if the target load points to a replacement load, the functional configuration strategy for the replacement load is determined based on the operating current value of the replacement load; if the target load points to a new risk, the functional configuration strategy for the new load is determined based on the message identification information of the new load, etc. The present application provides an autonomous switching function configuration strategy so that the software function of the vehicle controller can adaptively adapt to a variety of electrical loads, that is, autonomously switch function partitions based on different electrical loads, realize the platform-based use of the vehicle controller software, and reduce the software development and control costs.
[0041] S103, autonomously partition and switch the software functions of the vehicle controller through the function configuration strategy.
[0042] Specifically, after determining the functional configuration strategy of the target load, the software function of the vehicle controller can be autonomously partitioned and switched. Specifically, since the functional partitions where multiple loads are located can be pre-stored in the vehicle controller chip, each functional partition includes the association between each load and its operating current value and analog-to-digital conversion value, after determining the functional configuration strategy corresponding to the target load, the current software function of the vehicle controller can be autonomously switched to the functional partition corresponding to the target load, so as to achieve the purpose of responding to different load change events. The vehicle controller can autonomously switch the current software function to the functional partition corresponding to the target load without the need for additional software development.
[0043] Based on the above content, the autonomous switching function configuration method provided by the present application includes: in response to a load change event, obtaining a load change type, wherein the load change type includes replacing the load or adding a new load; based on the load change type, determining a function configuration strategy corresponding to the target load, wherein the function configuration strategy is determined based on the operating current value of the target load, or the function configuration strategy is determined based on the message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load; through the function configuration strategy, autonomously partitioning and switching the software functions of the vehicle controller. It is easy to notice that by distinguishing the load change types, when the load change type corresponds to load replacement, the function configuration strategy corresponding to the target load can be determined by the operating current value of the replaced load, and when the load change type corresponds to a newly added load, the function configuration strategy corresponding to the target load can be determined by the message identification information in the newly added load. In this way, in response to different load change events, the vehicle controller can autonomously switch the current software function to the function partition corresponding to the target load without the need for additional software development, thereby realizing the platform-based use of the vehicle controller software, and achieving the technical effect that when the electrical load changes, the vehicle controller autonomously switches the software function of the electrical load to improve the functional configuration efficiency of the electrical load, thereby solving the technical problem of low functional configuration efficiency of the vehicle controller software when the electrical load changes.
[0044] In a possible implementation of the present application, if the target load is determined from the replacement load, based on the load change type, the functional configuration strategy corresponding to the target load is determined, including: collecting the operating current of the replacement load to obtain the operating current value; judging whether there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, wherein the preset current value library is used to characterize a database that associates preset load operating current values with analog-to-digital conversion values, and the preset current value library supports customized management of load operating current values; if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, the target functional configuration strategy corresponding to the target load is determined.
[0045] Specifically, the above-mentioned operating current value can be collected by an analog-to-digital conversion module.
[0046] The above analog-to-digital conversion value can be used to represent the result of converting the analog signal output by the chip into a digital signal.
[0047] The above-mentioned preset current value library can be used to represent a preset database that associates load, operating current value and corresponding analog-to-digital conversion value, and an exemplary reference is made to Table 1:
[0048] Table 1 Preset current value library
[0049] load Current Corresponding analog-to-digital conversion value Load 1 0.1A 500 Load 2 0.2A 1000 Load 3 0.3A 1500
[0050] As shown in Table 1, it can be preset that when the operating current value is 0.1A, the corresponding analog-to-digital conversion value is 500, and the corresponding load is load 1. Similarly, when the operating current value is 0.2A, the corresponding analog-to-digital conversion value is 1000, and the corresponding load is load 2. When the operating current value is 0.3A, the corresponding analog-to-digital conversion value is 1500, and the corresponding load is load 3, etc. Here, each load-current-corresponding analog-to-digital conversion value in the preset current value library is not specifically limited and can be adjusted according to actual conditions.
[0051] In an optional embodiment, when the target load includes a load replaced in a load change event, and the functional configuration strategy is determined based on the operating current value of the target load, the current value of the replaced load can be collected by the analog-to-digital conversion module to obtain the operating current value, and at the same time, based on the preset current value library, it is determined whether there is a target analog-to-digital conversion value that matches the operating current value. If so, the replaced load is functionally configured based on the target analog-to-digital conversion value, that is, the current control logic is switched to the functional partition corresponding to the target load.
[0052] In addition, the above-mentioned preset current value library supports customized management of load operating current values. Specifically, the preset current value library can be managed through a display module such as a large screen or an instrument, including but not limited to deleting or adding values. After the preset current value library is customized, the managed preset current value library can be written into the vehicle controller, and the vehicle controller software can be reset at the same time.
[0053] In a possible implementation of the present application, the method also includes: if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, determining a target load associated with the operating current value and the target analog-to-digital conversion value from the replacement load; and autonomously switching the current software function of the vehicle controller to a functional partition corresponding to the target function configuration strategy.
[0054] Specifically, in the switching of hardware current recovery function partitions, since there are multiple replacement loads, but there may be replacement loads that do not have corresponding analog-to-digital conversion values in the preset current value library, it is necessary to determine the target load from the multiple replacement loads and switch the software function of the vehicle controller to the functional partition corresponding to the target load. Specifically, the target load corresponding to the target analog-to-digital conversion value can be determined based on the preset current value library. Exemplarily, as shown in Table 1, if the target analog-to-digital conversion value is 500, the target load is determined to correspond to load 1, if the target analog-to-digital conversion value is 1000, the target load is determined to correspond to load 2, if the target analog-to-digital conversion value is 1500, the target load is determined to correspond to load 3, etc. After determining the target load, the current control logic can be switched to the control logic corresponding to the target load, that is, the software function of the vehicle controller is switched to the functional partition corresponding to the target load.
[0055] Figure 2 FIG. 1 is a flowchart of switching the hardware current recovery function partition according to an embodiment of the present application. Figure 2 As shown, the following steps are included:
[0056] The vehicle controller is powered on and initialized;
[0057] Collect and obtain the operating current value of the replaced load;
[0058] Compare the operating current values using a preset current value library;
[0059] Determine whether there is a corresponding analog-to-digital conversion value of the operating current value in the preset current value library;
[0060] If there is a corresponding analog-to-digital conversion value of the operating current value, the target load is identified; if there is no corresponding analog-to-digital conversion value of the operating current value, the vehicle controller software maintains the status quo and reports a fault diagnostic code;
[0061] The vehicle controller software driver is replaced by different types.
[0062] In a possible implementation of the present application, if the target load is determined from the newly added load, the software function of the vehicle controller is autonomously partitioned and switched through the functional configuration strategy, including: filtering the message identification information of the newly added load to obtain the target identification information, and the target identification information is used to characterize the target controller type corresponding to the target load; disassembling the target interaction message through the target identification information to obtain the target signal value, wherein the target interaction message is used to characterize the message generated by the interaction between the target controller and the bus; judging whether there is a target functional partition corresponding to the target signal value in the preset signal value library, wherein the preset signal value library is used to characterize a database for pre-set custom functional partitioning of the signal value in the message identifier, and the preset signal value library supports custom management of signal values; if there is a target functional partition corresponding to the target signal value in the preset signal value library, the current software function of the vehicle controller is autonomously switched to the target functional partition.
[0063] Specifically, the target identification information mentioned above can be used to indicate the identification information of the interaction message of the desired target controller obtained by filtering.
[0064] Generally, the above-mentioned message identification filtering process can be performed by writing a judgment statement in the vehicle controller, that is, judging whether the current message identification information meets the expected message identification information. If so, the current message identification information is filtered to obtain the target interaction message corresponding to the target identification information.
[0065] The above-mentioned target signal value may be used to represent the original value of the signal in the data field obtained by disassembling the target interaction message.
[0066] Generally, the message disassembly process includes: reading the message, first reading the complete message from the vehicle's communication network (such as CAN, LIN, FlexRay); parsing the message ID to determine the type and source of the message; locating the signal, according to the structure definition of the message, finding the position of each signal in the data field; extracting the signal value, extracting the original value of each signal from the data field.
[0067] The above-mentioned preset signal value library can be used to represent a preset database for customizing functional partitioning of the disassembled signal values, and an exemplary example can be referred to as shown in Table 2:
[0068] Table 2 Preset signal value library
[0069]
[0070] As shown in Table 1, by disassembling the message with the message identification information of 101, multiple signal values of the 0th byte can be obtained. The software function partition of the preset signal value 01 can be function 1, the software function partition of the preset signal value 02 can be function 2, and so on. Here, each signal value-corresponding software function partition in the preset signal value library is not specifically limited and can be adjusted according to actual conditions.
[0071] In an optional embodiment, if the target load is determined from the newly added load, during the process of autonomous partition switching of the software function of the vehicle controller through the functional configuration strategy, since the bus includes multiple messages sent from multiple partial controllers, in order to filter out the desired message from the multiple messages, the identification information of the multiple messages can be filtered to obtain the above-mentioned target identification information, that is, the message information sent by the expected target controller, and then the target interaction message corresponding to the target identification information is disassembled to obtain the target signal value, and compared with the preset signal value library, that is, it is determined whether there is a target function partition corresponding to the target signal value in the preset signal value library. If there is a target function partition corresponding to the target signal value, the current software function of the vehicle controller is autonomously switched to the target function partition.
[0072] In addition, the above-mentioned preset signal value library supports customized management of signal values. Specifically, the preset signal value library can be managed through a display module such as a large screen or an instrument, including but not limited to deleting or adding values. After the preset signal value library is customized, the managed preset signal value library can be written into the vehicle controller, and the vehicle controller software can be reset at the same time.
[0073] Figure 3 FIG. 1 is a flow chart of bus message identification function partition switching provided by an embodiment of the present application, as shown in FIG. Figure 3 As shown, the following steps are included:
[0074] The vehicle controller is powered on and initialized;
[0075] Filter the bus message identifier to obtain the target identifier information;
[0076] Disassemble the target interaction message to obtain the target signal value;
[0077] Determine whether there is a target functional partition corresponding to the target signal value in the preset signal value library;
[0078] If there is a target functional partition corresponding to the target signal value, the vehicle controller software is controlled to switch the partition function. If there is no target functional partition corresponding to the target signal value, the vehicle controller software maintains the status quo and reports a fault diagnostic code.
[0079] In a possible implementation of the present application, if a target analog-to-digital conversion value matching the operating current value does not exist in the preset current value library, or if a target functional partition corresponding to the target signal value does not exist in the preset signal value library, it includes: not autonomously switching the current software function of the vehicle controller, and reporting a diagnostic fault code, which is used to characterize the existence of an autonomous switching function configuration failure in the vehicle controller.
[0080] Specifically, the above-mentioned diagnostic trouble code is a digital universal identifier of a fault state recognized by the on-board diagnostic system, which is used to identify and record the fault occurring in the vehicle.
[0081] In an optional embodiment, as described above Figure 2 or Figure 3 As shown, if there is no target analog-to-digital conversion value matching the operating current value in the preset current value library, or if there is no target function partition corresponding to the target signal value in the preset signal value library, due to incorrect configuration, the vehicle controller cannot be controlled to switch the current software function partition temporarily. At this time, the current software function of the vehicle controller is not switched autonomously, and the diagnostic fault code is reported. By uploading the fault diagnostic code, maintenance personnel can determine the specific fault by reading the diagnostic fault code, and perform fault diagnosis and repair according to the prompt of the fault code.
[0082] In a possible implementation of the present application, if the target load is determined from the replacement load, and the controller of the replacement load is a newly added controller, the method includes: determining a first functional configuration result for the target load based on the operating current value of the target load; determining a second functional configuration result for the target load based on the message identification information of the target load; judging whether the first functional configuration result and the second functional configuration result are consistent; if the first functional configuration result and the second functional configuration result are consistent, autonomously switching the current software function of the vehicle controller to a functional partition corresponding to the first functional configuration result or the second functional configuration result.
[0083] Specifically, the first function configuration result mentioned above can be used to represent the software function partition of the target load obtained by the operating current value of the target load.
[0084] The above-mentioned first function configuration result can be used to represent the software function partition of the target load obtained through the message identification information of the target load.
[0085] In an optional embodiment, based on the above load change event, there may also be a change in the bus involved in the switching of some controllers that replace the load binding. In this case, the target load can be Figure 2 The target load can also be partitioned by switching the hardware current recovery function partition shown in FIG. Figure 3The bus message identification function partition switching method shown is used to obtain the software function partition of the target load, and then the first function configuration result and the second function configuration result mentioned above can be obtained.
[0086] Furthermore, it can be determined whether the first function configuration result and the second function configuration result are consistent. If the first function configuration result and the second function configuration result are consistent, it means that both the hardware current recovery function partition switching method and the line message identification function partition switching method can match the corresponding software function partition of the target load. Therefore, the current software function of the vehicle controller can be autonomously switched to the function partition corresponding to the first function configuration result or the second function configuration result.
[0087] In a possible implementation of the present application, if the first function configuration result and the second function configuration result are inconsistent, the current software function of the vehicle controller is not autonomously switched.
[0088] Specifically, for the above-mentioned result of determining whether the first function configuration result and the second function configuration result are consistent, if the first function configuration result and the second function configuration result are inconsistent, it means that there is a configuration fault in the way the hardware current recovery function partitions are switched, and / or the way the bus message identification function partitions are switched. At this time, the current software function of the vehicle controller may not be switched autonomously, and the diagnostic fault code may be reported. By uploading the diagnostic fault code, maintenance personnel can determine the specific fault by reading the diagnostic fault code, and perform fault diagnosis and repair according to the prompt of the fault code.
[0089] In a possible implementation of the present application, the method further includes: acquiring data storage space inside the vehicle controller chip; and determining the number of partitions of the analog-to-digital conversion value in the preset current value library based on the data storage space.
[0090] Specifically, the above data storage space is determined according to the Flash capacity inside the vehicle controller chip.
[0091] In an optional embodiment, in the process of reserving functional partitions in the preset current value library, the specific number of reserved partitions can be determined according to the Flash capacity inside the vehicle controller chip, that is, the number of reserved partitions does not exceed the maximum data storage space inside the vehicle controller chip.
[0092] Exemplary Systems
[0093] As a second aspect of the present application, the present application provides an autonomous switching function configuration system, Figure 4 FIG. 1 is a schematic diagram of an autonomous switching function configuration system provided by an embodiment of the present application. Figure 4 As shown, the system includes:
[0094] An acquisition module 401 is used to acquire a load change type in response to a load change event, wherein the load change type includes replacing a load or adding a load;
[0095] A determination module 402 is used to determine a function configuration strategy corresponding to a target load based on a load change type, wherein the function configuration strategy is determined based on an operating current value of the target load, or the function configuration strategy is determined based on message identification information of the target load, and the message identification information is used to distinguish a controller type of the target load;
[0096] The switching module 403 is used to autonomously switch the software functions of the vehicle controller by using a function configuration strategy.
[0097] In a possible implementation of the present application, the determination module includes: a current acquisition module, which is used to collect the operating current of the replaced load to obtain the operating current value; a current value judgment module, which is used to judge whether there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library, wherein the preset current value library is used to characterize a database that associates preset load operating current values with analog-to-digital conversion values, and the preset current value library supports customized management of load operating current values; a function configuration module, which is used to determine the target function configuration strategy corresponding to the target load if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library.
[0098] In a possible implementation of the present application, the system also includes: a target load determination module, which is used to determine the target load associated with the operating current value and the target analog-to-digital conversion value from the replacement load if there is a target analog-to-digital conversion value that matches the operating current value in the preset current value library; and a first switching module, which is used to autonomously switch the current software function of the vehicle controller to a functional partition corresponding to the target function configuration strategy.
[0099] In a possible implementation of the present application, the switching module includes: a filtering module, which is used to filter the message identification information of the newly added load to obtain target identification information, and the target identification information is used to characterize the target controller type corresponding to the target load; a disassembly module, which is used to disassemble the target interaction message through the target identification information to obtain the target signal value, wherein the target interaction message is used to characterize the message generated by the interaction between the target controller and the bus; a signal value judgment module, which is used to judge whether there is a target functional partition corresponding to the target signal value in the preset signal value library, wherein the preset signal value library is used to characterize a database for pre-set custom functional partitioning of the signal value in the message identification, and the preset signal value library supports custom management of signal values; a second switching module, which is used to autonomously switch the current software function of the vehicle controller to the target functional partition if there is a target functional partition corresponding to the target signal value in the preset signal value library.
[0100] In a possible implementation of the present application, the system also includes: a first fault reporting module, which is used to not autonomously switch the current software function of the vehicle controller and report a diagnostic fault code, and the diagnostic fault code is used to characterize the existence of a fault in the autonomous switching function configuration of the vehicle controller.
[0101] In a possible implementation of the present application, the system also includes: a first result determination module, used to determine a first function configuration result for the target load based on the operating current value of the target load; a second result determination module, used to determine a second function configuration result for the target load based on the message identification information of the target load; a result consistency judgment module, used to judge whether the first function configuration result and the second function configuration result are consistent; a third switching module, used to autonomously switch the current software function of the vehicle controller to the function partition corresponding to the first function configuration result or the second function configuration result if the first function configuration result and the second function configuration result are consistent.
[0102] In a possible implementation of the present application, the system also includes: a second fault reporting module, which is used to not autonomously switch the current software function of the vehicle controller and report a diagnostic fault code if the first function configuration result and the second function configuration result are inconsistent.
[0103] Exemplary Vehicle Controller
[0104] As a third aspect of the present application, the present application provides a vehicle controller, which is used to execute any of the above-mentioned autonomous switching function configuration methods.
[0105] Below, reference Figure 5 To describe the vehicle controller provided by the embodiment of the present invention, Figure 5 FIG. 1 is a schematic diagram of a vehicle controller provided by an embodiment of the present application, as shown in FIG. Figure 5 As shown, the vehicle controller provided in this embodiment may include: at least one processor 510, at least one communication interface 520, at least one memory 530 and at least one communication bus 540;
[0106] In the embodiment of the present invention, the number of the processor 510, the communication interface 520, the memory 530, and the communication bus 540 is at least one, and the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540; obviously, Figure 3 The communication connections shown for the processor 510, communication interface 520, memory 530, and communication bus 540 are merely optional;
[0107] Optionally, the communication interface 520 may be an interface of a communication module, such as an interface of a GSM module; the processor 510 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0108] The memory 530 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0109] The processor 510 is specifically used to execute the application program in the memory to implement the steps of the behavior tree visualization processing method described above.
[0110] In some embodiments, the present embodiment also provides a vehicle, which includes the above-mentioned vehicle controller.
[0111] In some embodiments, this embodiment further provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash disk, an SD (Secure Digital Memory Card) card, an MMC (Multimedia Card) card, etc., in which one or more instructions for implementing the above steps are stored, and when the one or more instructions are executed by one or more processors, the processors execute the autonomous switching function configuration method described above. For the relevant specific implementation, please refer to the above description, which will not be repeated here.
[0112] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the autonomous switching function configuration method according to various embodiments of the present application described in the above content of this specification.
[0113] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0114] Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various modifications and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.
[0115] In addition, although the present disclosure makes various references to certain units in the system according to embodiments of the present disclosure, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.
[0116] Flowcharts are used in this disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes.
[0117] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, etc. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.
[0118] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.
[0119] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.
Claims
1. A method for configuring an autonomous switching function, characterized in that: The method is applied to a vehicle controller, and the method comprises: In response to a load change event, obtaining a load change type, wherein the load change type includes replacing a load or adding a load; Based on the load change type, determining a function configuration strategy corresponding to the target load, wherein the function configuration strategy is determined based on the operating current value of the target load, or the function configuration strategy is determined based on the message identification information of the target load, and the message identification information is used to distinguish the controller type of the target load; The function configuration strategy is used to autonomously switch the software functions of the vehicle controller.
2. The method for configuring the autonomous switching function according to claim 1, characterized in that: If the target load is determined from the replacement load, determining a function configuration strategy corresponding to the target load based on the load change type includes: The operating current of the replaced load is collected to obtain the operating current value; Determine whether there is a target analog-to-digital conversion value matching the operating current value in a preset current value library, wherein the preset current value library is used to represent a database of preset load operating current values associated with analog-to-digital conversion values, and the preset current value library supports customized management of load operating current values; If a target analog-to-digital conversion value matching the operating current value exists in the preset current value library, a target function configuration strategy corresponding to the target load is determined.
3. The method for configuring the autonomous switching function according to claim 2, characterized in that: The method further comprises: If there is a target analog-to-digital conversion value matching the operating current value in the preset current value library, determining a target load associated with the operating current value and the target analog-to-digital conversion value from the replacement load; Autonomously switch the current software function of the vehicle controller to the functional partition corresponding to the target function configuration strategy.
4. The method for configuring the autonomous switching function according to claim 1, characterized in that: If the target load is determined from the newly added load, the software function of the vehicle controller is autonomously partitioned and switched according to the function configuration strategy, including: By filtering the message identification information of the newly added load, the target identification information is obtained, where the target identification information is used to characterize the type of target controller corresponding to the target load; The target interaction message is disassembled by the target identification information to obtain a target signal value, wherein the target interaction message is used to represent a message generated by the interaction between the target controller and the bus; Determine whether there is a target functional partition corresponding to the target signal value in a preset signal value library, wherein the preset signal value library is used to represent a preset database for customizing functional partitions of signal values in message identifiers, and the preset signal value library supports custom management of signal values; If a target functional partition corresponding to the target signal value exists in the preset signal value library, the current software function of the vehicle controller is autonomously switched to the target functional partition.
5. The method for configuring the autonomous switching function according to any one of claim 3 or claim 4, characterized in that: If there is no target analog-to-digital conversion value matching the operating current value in the preset current value library, or if there is no target functional partition corresponding to the target signal value in the preset signal value library, including: The current software function of the vehicle controller is not autonomously switched, and a diagnostic fault code is reported, wherein the diagnostic fault code is used to indicate that there is an autonomous switching function configuration fault in the vehicle controller.
6. The method for configuring the autonomous switching function according to claim 1, characterized in that: If the target load is determined from the replacement load, and the controller of the replacement load is a newly added controller, the method includes: Determining a first function configuration result for the target load based on the operating current value of the target load; Determine a second function configuration result for the target load based on the message identification information of the target load; Determining whether the first function configuration result is consistent with the second function configuration result; If the first function configuration result and the second function configuration result are consistent, the current software function of the vehicle controller is autonomously switched to the function partition corresponding to the first function configuration result or the second function configuration result.
7. The method for configuring the autonomous switching function according to claim 6, characterized in that: If the first function configuration result and the second function configuration result are inconsistent, the current software function of the vehicle controller is not switched autonomously, and a diagnostic fault code is reported.
8. The method for configuring the autonomous switching function according to claim 2, characterized in that: The method further comprises: Get the data storage space inside the vehicle controller chip; The number of partitions of the analog-to-digital conversion value in the preset current value library is determined based on the data storage space.
9. A vehicle controller, characterized in that: The vehicle controller is used to execute the autonomous switching function configuration method described in any one of claims 1 to 8 above.
10. A vehicle, characterized in that: The vehicle comprises the vehicle controller as described in claim 9 above.
Citation Information
Patent Citations
Controller function updating method and system, vehicle and server
CN115167351A
Vehicle fault positioning method and device, vehicle and storage medium
CN116880455A
Information processing device, process control method, and computer program
CN1698034A
Electronic control apparatus for vehicles
US20070198874A1