Method and apparatus for determining function logic under software architecture

By downgrading and rolling back the new version of the interface description language file, the optimal combination of functional logic algorithms for the intelligent autonomous driving module was determined, which solved the resource and time pressure problem during the software upgrade process and achieved efficient software optimization.

CN116048940BActive Publication Date: 2026-01-23YINGCHE XINGCHUANG INTELLIGENT TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211701498.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-01-23
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

During the software upgrade process of intelligent autonomous driving modules, existing technologies require a large amount of R&D and testing resources to verify and optimize different functional logic combinations, resulting in high software upgrade pressure and long verification time.

Method used

By downgrading the new version of the interface description language file, multiple old version interface description language files are obtained. The new version data is then rolled back, and the old version data is simulated to determine the optimal combination of functional logic algorithms, thereby reducing the number of software versions and optimizing the utilization of test resources.

Benefits of technology

This greatly reduces the pressure of software release, shortens the verification time for system optimization, and reduces the utilization of development and testing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116048940B_ABST
    Figure CN116048940B_ABST
Patent Text Reader

Abstract

The application provides a method and device for determining function logic under a software architecture, comprising: after software upgrading, obtaining new version data and a new version interface description language file corresponding to new version software; degrading the new version interface description language file to obtain a plurality of old version interface description language files, each old version interface description language file corresponding to a function logic algorithm combination; based on the old version interface description language file, performing data rollback on the new version data to obtain a plurality of old version data corresponding to the old version interface description language file; simulating and running the old version data on the new version software to obtain a plurality of simulation results corresponding to the old version data; and based on the simulation results, determining a target interface description language file from the plurality of old version interface description language files to obtain the best function logic algorithm combination. The application can greatly reduce the pressure of software release, shorten the verification time of system optimization, and reduce the utilization of development and test resources.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of information technology, and in particular to a method and device for determining function logic under a software architecture. BACKGROUND

[0002] An interface description language (IDL) is a language specification for describing the interface of a software component, enabling different modules (written in different languages) in a software architecture to communicate with each other.

[0003] Currently, when upgrading software functions, the new function logic corresponding to a system composed of different modules is implemented by upgrading the IDL. For the implementation of the new function logic, the relevant modules are upgraded in terms of logic or parameters. The relevant optimization of multiple module systems is implemented by optimizing the same function using different logic algorithms in the same logic link, which requires evaluating all logic algorithms in the same logic link and selecting the best logic algorithm to achieve the required function.

[0004] However, since the logic link of the intelligent automatic driving module is long, it specifically includes perception, planning, control, and map positioning, and for the same function, different function logic algorithms in the same logic link are used to implement and optimize the function. Modules are upgraded by IDL to implement different function logics. In the above process, there are many different logic algorithms that can implement the same required function or optimize the same function. If different function logics for a function are released in the software at the same time, a large number of software versions will be generated, and more development and testing resources are needed to implement and verify the analysis, which puts pressure on the upgrade or optimization of the software, and requires a certain verification time and testing resources. SUMMARY

[0005] The present application provides a method and device for determining function logic under a software architecture to solve the above problems.

[0006] The present application provides a method for determining function logic under a software architecture, comprising:

[0007] After the software is upgraded, the new version of the software corresponding to the new version of the data and the new version of the interface description language file is obtained;

[0008] The new version of the interface description language file is downgraded to obtain a plurality of old version of the interface description language files, each old version of the interface description language file corresponding to a function logic algorithm combination;

[0009] obtaining a plurality of old version data corresponding to the old version interface description language files based on the old version interface description language files and the new version data;

[0010] running the old version data on the new version software to obtain a plurality of simulation results corresponding to the old version data;

[0011] determining a target interface description language file from the plurality of old version interface description language files based on the simulation results to obtain an optimal functional logic algorithm combination.

[0012] According to the method for determining functional logic under a software architecture provided by the application, the new version interface description language file comprises a plurality of logic links corresponding to the functional logic algorithm combination.

[0013] Correspondingly, the step of degrading the new version interface description language file to obtain a plurality of old version interface description language files comprises:

[0014] degrading the new version interface description language file to obtain a plurality of old version interface description language files, each of the old version interface description language files comprising a logic link.

[0015] According to the method for determining functional logic under a software architecture provided by the application, the new version data is full data, which comprises data corresponding to all logic links.

[0016] Correspondingly, the step of obtaining a plurality of old version data corresponding to the old version interface description language files based on the old version interface description language files and the new version data comprises:

[0017] performing data rollback on the full data according to the logic links to obtain a plurality of old version data corresponding to the logic links.

[0018] According to the method for determining functional logic under a software architecture provided by the application, the step of determining a target interface description language file from the plurality of old version interface description language files based on the simulation results comprises:

[0019] performing functional evaluation on the simulation results, determining an optimal simulation result from the simulation results, and taking the old version interface description language file corresponding to the optimal simulation result as the target interface description language file.

[0020] According to the method for determining functional logic under a software architecture provided by the application, the step of obtaining a new version interface description language file corresponding to a new version software comprises:

[0021] determining actual upgraded functional modules in the software, the actual upgraded functional modules being used for realizing preset functions.

[0022] acquire a plurality of new function logic algorithms in each function template;

[0023] arrange and combine the plurality of function logic algorithms to obtain a plurality of function logic algorithm combinations, each of which is used to implement the preset function;

[0024] generate a new version of interface description language file for implementing a logic path according to the function logic algorithm combination, the new version of interface description language file including a plurality of logic links corresponding to the function logic algorithm combination.

[0025] According to the function logic determination method under the software architecture provided by the application, after the optimal function logic algorithm combination is obtained, the method further includes:

[0026] running the optimal function logic algorithm combination in the new version of software to implement the preset function.

[0027] According to the function logic determination method under the software architecture provided by the application, the software is an automatic driving system software.

[0028] The application further provides a function logic determination device under a software architecture, comprising:

[0029] a data and file acquisition module configured to acquire new version of data and a new version of interface description language file corresponding to the new version of software after software upgrading;

[0030] a degradation module configured to degrade the new version of interface description language file to obtain a plurality of old version of interface description language files, each of which corresponds to a function logic algorithm combination;

[0031] a data rollback module configured to perform data rollback on the new version of data based on the old version of interface description language file to obtain a plurality of old version of data corresponding to the old version of interface description language file;

[0032] a simulation module configured to simulate and run the old version of data on the new version of software to obtain a plurality of simulation results corresponding to the old version of data;

[0033] a function logic algorithm determination module configured to determine a target interface description language file from the plurality of old version of interface description language files based on the simulation results to obtain an optimal function logic algorithm combination.

[0034] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the function logic determination method under the software architecture as described above when executing the program.

[0035] The application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method for determining function logic under the software architecture.

[0036] The application provides the method and device for determining function logic under the software architecture, which obtains a plurality of old version interface description language files by downgrading the new version interface description language file, obtains a plurality of old version data corresponding to the old version interface description language files by data rollback based on the old version interface description language files, and then determines the optimal function logic algorithm combination according to the old version data and the old version interface description language file, so that the pressure of software release is greatly reduced, the verification time of system optimization is shortened, and the utilization of development test resources is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0038] Figure 1 Fig. 1 is one of the flow diagrams of the method for determining function logic under the software architecture provided by the embodiments of the application;

[0039] Figure 2 Fig. 2 is another of the flow diagrams of the method for determining function logic under the software architecture provided by the embodiments of the application;

[0040] Figure 3 Fig. 3 is a downgrading and data rollback flow diagram provided by the embodiments of the application;

[0041] Figure 4 Fig. 4 is a simulation and analysis flow diagram provided by the embodiments of the application;

[0042] Figure 5 Fig. 5 is an IDL upgrade flow diagram provided by the embodiments of the application;

[0043] Figure 6 Fig. 6 is a structure diagram of the device for determining function logic under the software architecture provided by the embodiments of the application;

[0044] Figure 7 Fig. 7 is a physical structure diagram of an electronic device provided by the embodiments of the application. DETAILED DESCRIPTION

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below in conjunction with the drawings in the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of protection of the present application.

[0046] Before the method and device for determining the function logic under the software architecture provided by the present application are described, the technical problem to be solved by the present application will be described in detail.

[0047] Firstly, the software includes multiple function modules, and each function module stores multiple function logic algorithms, each of which can realize the function of the corresponding function module, and a certain function is realized by calling multiple function modules. Since different function modules can be written in different languages, the interface description language file IDL realizes the communication between the function modules, that is, the passageway between the function logic algorithms in each function module.

[0048] When the software is functionally upgraded, according to the target function, the function logic algorithm is added in the related function module in advance, the interface description language file IDL is upgraded according to the added function logic algorithm, that is, the passageway between the new function logic algorithms is realized. The upgrade of the new version of software is completed based on the upgraded interface description language file IDL, and the new version of software realizes the target function according to the added function logic algorithm and the passageway between the added function logic algorithms.

[0049] In the above functional upgrade process, multiple function logic algorithms can be added in the related function module according to the target function, these added function logic algorithms and the added function logic algorithms on other function modules cooperate with each other and can all realize the target function, but the effects of realizing the target function will be different, and the optimal combination needs to be determined after testing each added function logic algorithm combination and applied to the new version of software. The existing optimal combination determination process is to release different function logic combinations for a function in the software at the same time, which will produce a large number of software versions, and more research and development and testing resources are needed to realize and verify and analyze, which brings certain pressure to the upgrade or optimization of the software, and requires certain verification time and testing resources.

[0050] After the above problems are clarified, the method and device for determining the function logic under the software architecture provided by the present application will be described below in conjunction with the drawings.

[0051] Figure 1 is one of the flowcharts of the method for determining the function logic under the software architecture provided by the embodiments of the present application; Figure 2is a second flowchart of a method for determining function logic under a software architecture according to an embodiment of the present application; as Figure 1 The method for determining function logic under the software architecture, as shown in FIGS. 1 and 2, comprises the following steps.

[0052] S101, after software upgrading, obtaining new version data and a new version interface description language file corresponding to the new version software.

[0053] In this step, after upgrading the software Software V1.0 (hereinafter uniformly referred to as SV1.0), the new version software Software V2.0 (hereinafter uniformly referred to as SV2.0) is obtained. The new version data DataV2.0 (hereinafter uniformly referred to as DV2.0) and the new version interface description language file IDL Version2.0 (hereinafter uniformly referred to as IDLV2.0) corresponding to the new version software SV2.0 are obtained.

[0054] The new version interface description language file IDLV2.0 is used to realize the path between the newly added function logic algorithms in the plurality of function modules.

[0055] It should be noted that the new software SV2.0 can achieve the same target function through the combination of a plurality of newly added function logics.

[0056] Optionally, the software can be an automatic driving system software.

[0057] S102, obtaining a plurality of old version interface description language files by downgrading the new version interface description language file, each old version interface description language file corresponding to a function logic algorithm combination.

[0058] In this step, the new version interface description language file IDLV2.0 is downgraded to obtain a plurality of old version interface description language files, which can be an old version interface description language file IDL Version1.1 (hereinafter uniformly referred to as IDLV1.1), an old version interface description language file IDL Version1.2 (hereinafter uniformly referred to as IDLV1.2), an old version interface description language file IDL Version1.3 (hereinafter uniformly referred to as IDLV1.3), and the like.

[0059] It should be noted that the "old version" of the Interface Description Language file mentioned here is not the same as the IDL Version 1.0 file (hereinafter referred to as IDLV1.0) corresponding to the old version of the software before the software upgrade. IDLV1.0 can only realize the pathways between the original functional logic algorithms, while IDLV1.1, IDLV1.2, IDLV1.3, etc., realize the pathways between combinations of newly added logic algorithms. For example, suppose the target function M needs to be implemented by functional module 1 and functional module 2. Functional logic algorithm A has been added in functional module 1, and functional logic algorithms B1, B2, and B3 have been added in functional module 2. In this case, the target function M can be realized by combining functional logic algorithms AB1, AB2, or AB3. The new version of the Interface Description Language file IDLV2.0 can realize the pathways between A and B1, between A and B2, and between A and B3. After downgrading the new Interface Description Language (IDLV) 2.0 file, IDLV 1.1 can establish a path between A and B1, IDLV 1.2 can establish a path between A and B2, and IDLV 1.3 can establish a path between A and B3. However, IDLV 1.0 does not contain the newly added functional logic algorithms A, B1, B2, and B3, and therefore cannot establish a path between the newly added functional logic algorithms.

[0060] S103, based on the old version of the interface description language file, perform data rollback on the new version of the data to obtain multiple old version data corresponding to the old version of the interface description language file.

[0061] In this step, the new version data DV2.0 is rolled back according to different legacy interface description language files to obtain multiple legacy data. These legacy data correspond one-to-one with legacy interface description language files IDLV1.1, IDLV1.2, IDLV1.3, etc. That is, the legacy data includes information on the implementation of different combinations of new functional logic. For example, legacy data Data AB1 implements the new functional logic combination AB1, legacy data Data AB2 implements the new functional logic combination AB2, and so on. The new version data DV2.0 is full data, which includes information on all combinations of new functional logic. It needs to be converted according to the legacy interface description language files to obtain multiple legacy data.

[0062] S104, simulate and run the old data on the new software to obtain multiple simulation results corresponding to the old data.

[0063] In this step, by running the old version of data on the new version of the software, we can simulate different combinations of newly added functional logic and obtain different simulation results.

[0064] S105, determining a target interface description language file from the multiple old version interface description language files based on the simulation result, to obtain a best function logic algorithm combination.

[0065] In this step, it is determined according to the simulation result which new function logic combination realizes the best effect of the target function M, so that the corresponding old version interface description language file is determined as the target interface description language file, and the new version software is run based on the target interface description language file.

[0066] The method for determining function logic under the software architecture provided by the embodiment of the application obtains multiple old version interface description language files by downgrading the new version interface description language file, obtains multiple old version data corresponding to the old version interface description language file by performing data rollback on the new version data based on the old version interface description language file, and then determines a best function logic algorithm combination according to the old version data and the old version interface description language file, so that the pressure of software release is greatly reduced, the verification time of system optimization is shortened, and the utilization of development and test resources is reduced.

[0067] In some embodiments of the application, the new version interface description language file includes multiple logic links corresponding to the function logic algorithm combination, and the logic link is used to realize the passage between the new function logic algorithms. Taking the function logic algorithm combinations AB1, AB2 and AB3 as examples, IDL V2.0 contains the IDL definition of the implementation logic methods AB1, AB2 and AB3.

[0068] Correspondingly, the step of obtaining multiple old version interface description language files by downgrading the new version interface description language file includes:

[0069] The new version interface description language file is downgraded to obtain multiple old version interface description language files, and each old version interface description language file includes a logic link.

[0070] In this embodiment, the downgrading process of the new version interface description language file is described by taking the newly added function logic algorithms in the above module 1 and module 2 as examples.

[0071] As shown in Figure 3 IDL V2.0 is downgraded to obtain IDL V1.1, IDL V1.2 and IDL V1.3, which are respectively matched with the function logic combinations AB1, AB2 and AB3.

[0072] It should be noted that IDLV2.0 includes the parameter information required by logic methods AB1, AB2, and AB3. During the IDLV2.0 downgrade process, the relevant parameter information in IDLV2.0 is used to downgrade the IDLV2.0 file according to the parameters required by functional logic combinations AB1, AB2, and AB3. The resulting IDL V1.1 will include the parameter information for implementing the pathways between functional logic combinations AB1, IDL V1.2 will include the parameter information for implementing the pathways between functional logic combinations AB2, and IDL V1.3 will include the parameter information for implementing the pathways between functional logic combinations AB3.

[0073] The method for determining functional logic under the software architecture provided in this embodiment of the invention obtains multiple independent old interface description language files that can realize the pathways between the new functional logic combinations by downgrading the new version of the interface description language file IDLV2.0. In this way, the functionality of multiple functional logic combinations can be evaluated in the subsequent simulation process.

[0074] In some embodiments of the present invention, the new data is full data, which includes data corresponding to all logical links. For example, in the new software, functional logics AB1, AB2, and AB3 are implemented and data is recorded. The newly recorded data contains all information about the implementation of logics AB1, AB2, and AB3. This newly recorded data is full data containing all relevant information about all logical combinations.

[0075] Accordingly, the step of rolling back the new data based on the old version of the interface description language file to obtain multiple old version data corresponding to the old version of the interface description language file includes:

[0076] The full data is rolled back according to the logical link to obtain multiple old versions of data corresponding to the logical link.

[0077] like Figure 4 As shown, the new data is rolled back and converted into Data AB1, Data AB2, and Data AB3, which support the simulation of only the corresponding single logic in functional logic AB1, AB2, and AB3. Each set of data after conversion corresponds one-to-one with different versions of the downgraded IDL and different logic implementations. For example, the converted data Data AB1 corresponds to and matches IDL V1.1 and the logic method combination AB1.

[0078] It should be noted that the recorded new version data is stored and read in binary form, and the data recorded by different software versions will be mapped and matched according to the form of the required version. In the data rollback process, data conversion is performed according to IDL V1.1, IDL V1.2 and IDL V1.3, so as to obtain data Data AB1, Data AB2 and Data AB3 corresponding to IDL V1.1, IDL V1.2 and IDL V1.3. The Data AB1, Data AB2 and Data AB3 also correspond to the functional logic combinations AB1, AB2 and AB3 respectively.

[0079] The method for determining the functional logic under the software architecture provided by the embodiments of the present application converts the data only for a certain logic method combination by performing data rollback conversion on the full data, so as to facilitate performance evaluation.

[0080] In some embodiments of the present application, the target interface description language file is determined from the plurality of old version interface description language files based on the plurality of simulation results, including:

[0081] The simulation results are functionally evaluated to determine the optimal simulation result that realizes the preset function from the plurality of simulation results, and the old version interface description language file corresponding to the optimal simulation result is taken as the target interface description language file.

[0082] As shown in Figure 4 After obtaining the old version data Data AB1, Data AB2 and Data AB3, the results of the old version data simulation and the functions or performance optimizations realized by the logic algorithm combinations correspond to each other under the software simulation environment of the new version software V2.0 based on IDL V1.1, IDL V1.2 and IDL V1.3. The functionally optimal logic method in the functional logic algorithm combinations AB1, AB2 and AB3 is obtained by evaluating the performance of the simulation results.

[0083] In some embodiments of the present application, the new version interface description language file corresponding to the new version software is obtained, including:

[0084] The actual upgraded functional modules in the software are determined, and the actual upgraded functional modules are used to realize the preset function.

[0085] The plurality of functional logic algorithms newly added in the functional templates are obtained.

[0086] The plurality of functional logic algorithms are arranged and combined to obtain a plurality of functional logic algorithm combinations, and each functional logic algorithm combination is used to realize the preset function.

[0087] According to the functional logic algorithm combination, a new interface description language file for implementing a logic path is generated, and the new interface description language file includes a plurality of logic links corresponding to the functional logic algorithm combination.

[0088] Specifically, in combination with the above-mentioned module 1, module 2 and Figure 5 , the newly added function M needs to call the module 1 and the module 2, and the functional logic algorithms A, B1, B2 and B3 for implementing the function M are newly added in the module 1 and the module 2 respectively. The newly added functional logic algorithms in the module 1 and the module 2 are arranged and combined to obtain the functional logic algorithm combinations AB1, AB2 and AB3, and each functional logic algorithm combination can independently implement the function M.

[0089] According to the functional logic algorithm combinations AB1, AB2 and AB3, the IDLVersion 1.0 is upgraded, that is, the IDLVersion 1.0 is modified (specifically, the Topic field can be changed), so that the IDLV2.0 can implement the path between the newly added functional logic algorithm combinations, that is, the IDLV2.0 contains the logic links corresponding to the newly added functional logic algorithm combinations. The upgraded IDLV 2.0 and the IDL Version 1.0 are incompatible.

[0090] In addition, as Figure 2 shown, after obtaining the IDLV 2.0, the module 1 and the module 2 are tested first to detect whether the logic links are effective. After the module test, the new version software V2.0 is released and deployed.

[0091] Data is stored and read in binary form, so data recorded by different software versions will be mapped and matched according to the form of the required version. The full data recorded by the new version software V2.0 completes the data conversion required by the business. Data conversion tool integration means that Migrator will be integrated with the cloud self-developed tool Chariot Dataset ProcessService (DPS) tool to realize the IDL downgrade function and the data rollback function.

[0092] It should be noted that the above is only an example of the module 1 and the module 2, and in actual scenarios, n modules may be required to implement the function M, and more newly added logic algorithms are involved, the corresponding logic links are longer, and the number of logic links is more, but the determination of the corresponding best functional logic algorithm combination is the same as the above process, and details are not described.

[0093] Further, on the basis of the above embodiment, after obtaining the best functional logic algorithm combination, the method further includes:

[0094] The optimal function logic algorithm combination is run in the new version software to realize preset functions. Assuming that AB1 is determined as the optimal function logic algorithm combination from the logic algorithm combinations AB1, AB2 and AB3, only the logic AB1 is run when the subsequent new version software is run, and is used to realize the function M. The other logic algorithm combinations AB2 and AB3 are not run.

[0095] In some embodiments of the application, before the new version data corresponding to the new version software is acquired, the method further comprises:

[0096] The software is upgraded according to the new version interface description language file to obtain the new version software. That is, after the IDLV 2.0 is obtained, the software is upgraded according to the IDLV 2.0 to obtain the new version software SV2.0.

[0097] Correspondingly, the new version data corresponding to the new version software is acquired, comprising:

[0098] Running the new version software comprises recording the data, including perception data, vehicle planning data, function trigger data and important event data in the driving process, and uploading the recorded data as new version data to the cloud for storage.

[0099] Taking the software as an example of the software under the automatic driving system, after the new version software is obtained, it is released at the vehicle end, the new version software is run under the automatic driving system, and the data in the running process is recorded, which can be perception data, vehicle planning data, function trigger data and important event data in the driving process, and the like. Related data is uploaded to the cloud and stored for subsequent simulation test.

[0100] The software architecture function logic determination device provided by the application is described below. The software architecture function logic determination device described below can be referred to each other corresponding to the software architecture function logic determination method described above.

[0101] Figure 6 The software architecture function logic determination device structure diagram provided by the embodiment of the application is shown as Figure 6 The software architecture function logic determination device comprises a data and file acquisition module 601, a degradation module 602, a data rollback module 603, a simulation module 604 and a function logic algorithm determination module 605.

[0102] The data and file acquisition module 601 is used to acquire the new version data and the new version interface description language file corresponding to the new version software after the software is upgraded.

[0103] In the module, after the software Software V1.0 (hereinafter uniformly referred to as SV1.0) is upgraded, a new version of software Software V2.0 (hereinafter uniformly referred to as SV2.0) is obtained. The new version of software SV2.0 corresponds to a new version of data DataV2.0 (hereinafter uniformly referred to as DV2.0) and a new version of interface description language file IDL Version2.0 (hereinafter uniformly referred to as IDLV2.0).

[0104] The new version of interface description language file IDLV2.0 is used to realize the passage between the newly added function logic algorithms in the plurality of function modules.

[0105] It should be noted that the new software SV2.0 can realize the same target function through the combination of a plurality of newly added function logics.

[0106] Optionally, the software can be an automatic driving system software.

[0107] The downgrade module 602 is configured to downgrade the new version of interface description language file to obtain a plurality of old version of interface description language files, and each old version of interface description language file corresponds to a function logic algorithm combination.

[0108] In the module, the new version of interface description language file IDLV2.0 is downgraded to obtain a plurality of old version of interface description language files, which can be an old version of interface description language file IDL Version1.1, an old version of interface description language file IDL Version1.2, an old version of interface description language file IDL Version1.3, and the like.

[0109] It should be noted that the old interface description language file here is not the interface description language file IDL Version 1.0 corresponding to the old software before software upgrade. IDL V1.0 can only realize the path between the original function logic algorithms, while IDL V1.1, IDL V1.2, IDL V1.3, etc. realize the path between some newly added logic algorithm combinations. For example, assuming that the target function M needs to be realized by relying on function module 1 and function module 2, function logic algorithm A is added in advance in function module 1, and function logic algorithms B1, B2 and B3 are added in function module 2. At this time, the target function M can be realized through function logic algorithm combinations AB1, AB2 or AB3. The new interface description language file IDL V2.0 can realize the path between A and B1, the path between A and B2 and the path between A and B3. After downgrading the new interface description language file IDL V2.0, IDL V1.1 can realize the path between A and B1, IDL V1.2 can realize the path between A and B2, and IDL V1.3 can realize the path between A and B3. The newly added function logic algorithms A, B1, B2 and B3 do not appear in IDL V1.0, so the path between the newly added function logic algorithms cannot be realized.

[0110] The data rollback module 603 is configured to perform data rollback on the new version data based on the old interface description language file to obtain a plurality of old version data corresponding to the old interface description language file.

[0111] In this module, the new version data DV2.0 is rolled back according to different old interface description language files to obtain a plurality of old version data, which corresponds to the old interface description language files IDL V1.1, IDL V1.2, IDL V1.3, etc. That is, the old version data includes information for realizing different newly added function logic combinations, such as old version data Data AB1 for realizing the newly added function logic combination AB1, old version data Data AB2 for realizing the newly added function logic combination AB2, etc. The new version data DV2.0 is full data, which includes information of all newly added function logic combinations. The full data needs to be converted according to the old interface description language file to obtain a plurality of old version data.

[0112] The simulation module 604 is configured to simulate running the old version data on the new version software to obtain a plurality of simulation results corresponding to the old version data.

[0113] In this module, different newly added function logic combinations are simulated by running the old version data on the new version software to obtain different simulation results.

[0114] The function logic algorithm determination module 605 is configured to determine a target interface description language file from the plurality of old version interface description language files based on the simulation result, so as to obtain the best function logic algorithm combination.

[0115] In the module, it is determined according to the simulation result that which new function logic combination realizes the best effect of the target function M, so that the corresponding old version interface description language file is determined as the target interface description language file, and the new version software is run based on the target interface description language file.

[0116] The function logic determination device under the software architecture provided by the embodiment of the application obtains a plurality of old version interface description language files by downgrading the new version interface description language file, obtains a plurality of old version data corresponding to the old version interface description language files by data rollback of the new version data based on the old version interface description language files, and then determines the best function logic algorithm combination according to the old version data and the old version interface description language file, so that the pressure of software release is greatly reduced, the verification time of system optimization is shortened, and the utilization of development and test resources is reduced.

[0117] Figure 7 An entity structure diagram of an electronic device provided by the embodiment of the application is shown in FIG. 7. Figure 7 As shown in FIG. 7, the electronic device can include a processor 710, a communications interface 720, a memory 730, and a communications bus 740, wherein the processor 710, the communications interface 720, and the memory 730 complete mutual communication through the communications bus 740. The processor 710 can invoke a logic instruction in the memory 730 to execute a function logic determination method under a software architecture, the function logic determination method under the software architecture including: after software upgrading, obtaining new version data and a new version interface description language file corresponding to new version software; downgrading the new version interface description language file to obtain a plurality of old version interface description language files, each old version interface description language file corresponding to a function logic algorithm combination; based on the old version interface description language file, performing data rollback on the new version data to obtain a plurality of old version data corresponding to the old version interface description language file; simulating running of the old version data on the new version software to obtain a plurality of simulation results corresponding to the old version data; based on the simulation result, determining a target interface description language file from the plurality of old version interface description language files, so as to obtain the best function logic algorithm combination.

[0118] In addition, the logic instructions in the memory 730 described above can be implemented in the form of software functional units and sold or used as independent products, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0119] In another aspect, the present application also provides a non-transitory computer readable storage medium, having stored thereon a computer program, which, when executed by a processor, implements a method for determining software architecture under function logic, the method comprising: after software upgrading, obtaining new version data and a new version interface description language file corresponding to new version software; downgrading the new version interface description language file to obtain a plurality of old version interface description language files, each old version interface description language file corresponding to a function logic algorithm combination; based on the old version interface description language file, performing data rollback on the new version data to obtain a plurality of old version data corresponding to the old version interface description language file; simulating running the old version data on the new version software to obtain a plurality of simulation results corresponding to the old version data; based on the simulation results, determining a target interface description language file from the plurality of old version interface description language files to obtain an optimal function logic algorithm combination.

[0120] The device embodiments described above are only schematic, wherein the units shown as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those skilled in the art can understand and implement without creative labor.

[0121] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of the various embodiments or some parts of the embodiments.

[0122] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for determining functional logic under a software architecture, characterized in that, include: After the software upgrade, obtain the new version data and the new version interface description language file corresponding to the new software; The new version of the interface description language file is downgraded to obtain multiple old version interface description language files, and each old version interface description language file corresponds to a functional logic algorithm combination. Based on the old version of the interface description language file, the new version of the data is rolled back to obtain multiple old version data corresponding to the old version of the interface description language file; The old data was simulated and run on the new software to obtain multiple simulation results corresponding to the old data. Based on the simulation results, the target interface description language file is determined from multiple legacy interface description language files to obtain the optimal combination of functional logic algorithms. The new version of the interface description language file includes multiple logical links corresponding to the combination of the functional logic algorithms; Accordingly, the downgrading of the new version of the interface description language file to obtain multiple old version interface description language files includes: The new version of the interface description language file is downgraded to obtain multiple old version interface description language files, and each old version interface description language file includes a logical link; The new data is the full data, which includes data corresponding to all logical links; Accordingly, the step of rolling back the new data based on the old version of the interface description language file to obtain multiple old version data corresponding to the old version of the interface description language file includes: The full data is rolled back according to the logical link to obtain multiple old versions of data corresponding to the logical link.

2. The method for determining functional logic under the software architecture according to claim 1, characterized in that, The step of determining the target interface description language file from multiple legacy interface description language files based on multiple simulation results includes: The simulation results are functionally evaluated, and the optimal simulation result that achieves the best function is determined from multiple simulation results. The legacy interface description language file corresponding to the optimal simulation result is then used as the target interface description language file.

3. The method for determining functional logic under the software architecture according to claim 1, characterized in that, Obtain the new version of the interface description language file corresponding to the new version of the software, including: Identify the functional modules that are actually upgraded in the software, and the functional modules that are actually upgraded are used to implement the preset functions; Retrieve the multiple new functional logic algorithms added to each functional template; Multiple functional logic algorithms are arranged and combined to obtain multiple functional logic algorithm combinations, and each functional logic algorithm combination is used to implement the preset function. A new version of the interface description language file is generated based on the functional logic algorithm combination to implement the logical path. The new version of the interface description language file includes multiple logical links corresponding to the functional logic algorithm combination.

4. The method for determining functional logic under the software architecture according to any one of claims 1-3, characterized in that, After obtaining the optimal combination of functional logic algorithms, the method also includes: The optimal combination of functional logic algorithms is run in the new version of the software to achieve the preset function.

5. The method for determining functional logic under the software architecture according to claim 4, characterized in that, The software in question is for an autonomous driving system.

6. A device for determining functional logic under a software architecture, characterized in that, include: The data and file acquisition module is used to acquire the new data and new interface description language files corresponding to the new version of the software after the software upgrade. The downgrade module is used to downgrade the new version of the interface description language file to obtain multiple old version interface description language files, and each old version interface description language file corresponds to a functional logic algorithm combination. The data rollback module is used to roll back the new data based on the old version of the interface description language file to obtain multiple old version data corresponding to the old version of the interface description language file. The simulation module is used to simulate and run the old version of the data on the new version of the software to obtain multiple simulation results corresponding to the old version of the data. The functional logic algorithm determination module is used to determine the target interface description language file from multiple legacy interface description language files based on the simulation results, so as to obtain the optimal combination of functional logic algorithms. The new version of the interface description language file includes multiple logical links corresponding to the combination of the functional logic algorithms; Accordingly, the downgrading of the new version of the interface description language file to obtain multiple old version interface description language files includes: The new version of the interface description language file is downgraded to obtain multiple old version interface description language files, and each old version interface description language file includes a logical link; The new data is the full data, which includes data corresponding to all logical links; Accordingly, the step of rolling back the new data based on the old version of the interface description language file to obtain multiple old version data corresponding to the old version of the interface description language file includes: The full data is rolled back according to the logical link to obtain multiple old versions of data corresponding to the logical link.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method for determining functional logic under the software architecture as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for determining functional logic under the software architecture as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • File processing method and device, computer equipment and storage medium

    CN112667224A

  • Interface code generation method and device

    CN114253520A