Software design optimization method and device of motor controller, and electronic equipment

By building a general model and a differentiation model of the motor controller, distinguishing project functions, the problem of individual design management of each project in the existing technology is solved, design efficiency is improved, repetitive labor and error risks are reduced, and resources are saved.

CN119088354APending Publication Date: 2024-12-06GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411213119.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing motor controller software design method requires a separate model for each project, resulting in an increase in management burden, reducing design efficiency, risk of repeated labor and operational errors, and causing data redundancy and resource waste.

Method used

By obtaining project information, building a general model and a differentiation model, distinguishing common and differentiated functions in the project, reducing duplicate labor, reducing the risk of operational errors, and improving the efficiency of software design.

Benefits of technology

It realizes that there is no need to perform separate modeling and design management for each project, improves software design efficiency, reduces duplicate labor and data redundancy, and reduces the risk of operational errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088354A_ABST
    Figure CN119088354A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an optimization method and device for software design of a motor controller, electronic equipment and a storage medium, and the method comprises the steps: obtaining project information of a project of the motor controller; constructing a general model according to basic information in the project information; constructing a difference model according to difference information in the project information; obtaining a main body model according to the general model and the difference model; and performing design optimization on a project corresponding to the software design requirement according to the main body model. By implementing the embodiment of the invention, the software design efficiency can be improved, independent modeling and design management do not need to be carried out on each project, universal functions and differential functions in the projects are distinguished, repeated labor is reduced, and the risk of operation errors is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software design, and in particular to an optimization method, device, electronic device and storage medium for software design of a motor controller. Background Art

[0002] At present, the software design method of the motor controller in the prior art is to establish an independent model for each project and then conduct management design. With the iteration of products and the development of new products, the number of projects will gradually increase. This method of the prior art requires the establishment of a separate model for each project for design management, which will increase the burden of management and reduce the efficiency of design. In addition, for common design content, it is necessary to repeat the operation in each project every time. On the one hand, there will be a lot of repetitive work and reduce efficiency. On the other hand, it will also bring the risk of some projects not being expanded or operating errors. At the same time, for most common models, repeated modeling and design will also lead to a waste of storage and computing resources, resulting in data redundancy. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide an optimization method, device, electronic device and storage medium for the software design of a motor controller, which can improve the efficiency of software design, eliminate the need for separate modeling and design management for each project, distinguish between common functions and different functions in the project, reduce duplication of work, and reduce the risk of operational errors.

[0004] In a first aspect, an embodiment of the present application provides a method for optimizing software design of a motor controller, the method comprising:

[0005] Acquire project information of the project of the motor controller;

[0006] Building a general model based on basic information in the project information;

[0007] Building a difference model based on the difference information in the project information;

[0008] Obtaining a subject model according to the general model and the difference model;

[0009] The project corresponding to the software design requirement is designed and optimized according to the subject model.

[0010] In the above implementation process, by constructing a common model and a differential model for the project and distinguishing the common functions and differential functions in the project, the efficiency of software design can be improved. There is no need to perform separate modeling and design management for each project, which reduces duplication of work and reduces the risk of operational errors.

[0011] Furthermore, the step of constructing a general model according to the basic information in the project information includes:

[0012] Obtaining basic function information of the motor controller;

[0013] Extracting basic information corresponding to the basic function of the motor controller in the project information according to the basic function information;

[0014] The general model is constructed according to the basic information.

[0015] In the above implementation process, basic information of the project corresponding to the basic functional information is extracted according to the basic functional information of the motor controller, so as to accurately construct a general model of the project and include the common parts of the project into the general model, thus saving space occupancy and data redundancy of the project.

[0016] Furthermore, the step of constructing a difference model according to the difference information in the project information includes:

[0017] extracting the difference information from the project information;

[0018] Taking values ​​of items corresponding to the difference information according to preset variables to obtain parameter values;

[0019] The difference model is constructed according to the parameter values.

[0020] In the above implementation process, the items corresponding to the difference information are valued according to the preset variables, and then the difference model is constructed. When the differentiated part of the project needs to be changed or modified, it can be directly adjusted without the need for separate design management, thereby improving efficiency.

[0021] Furthermore, the step of constructing the difference model according to the parameter value includes:

[0022] Matching the project with its communication matrix according to the parameter value to obtain a communication matrix containing difference information of the project;

[0023] The difference model is constructed based on the communication matrix.

[0024] In the above implementation process, the project is matched with its communication matrix according to the parameter value to obtain the communication matrix containing the difference information, which can simplify the process of differential adjustment of the project and reduce the occupation of data space.

[0025] Furthermore, the step of optimizing the design of the project corresponding to the software design requirement according to the subject model includes:

[0026] Obtain software design requirements;

[0027] Extracting change information in the software design requirements;

[0028] Obtaining a variant configuration according to the change information;

[0029] The project corresponding to the software design requirement is designed and optimized according to the variant configuration.

[0030] In the above implementation process, variant configurations are obtained according to the change information in the software design requirements, and then the project is designed and optimized according to the variant configurations. The modules that need to be changed in the project can be changed directly, thereby improving the optimization efficiency of the project.

[0031] Furthermore, the step of optimizing the design of the project corresponding to the software design requirement according to the variant configuration includes:

[0032] Importing the change points corresponding to the variant configuration into the main model;

[0033] The project corresponding to the software design requirement is changed according to the main model of the imported change point, so as to achieve design optimization of the project corresponding to the software design requirement.

[0034] In the above implementation process, the change points are imported into the main model, so that the change points of the project can be clearly and concisely displayed in the main model. There is no need to re-plan and design the project, and the changes to the project difference modules can be quickly implemented.

[0035] In a second aspect, an embodiment of the present application further provides a device for optimizing software design of a motor controller, the device comprising:

[0036] An acquisition module, used for acquiring project information of the project of the motor controller;

[0037] A construction module, used to construct a general model according to the basic information in the project information; and also used to construct a difference model according to the difference information in the project information;

[0038] A model acquisition module, used for acquiring a subject model according to the general model and the difference model;

[0039] The design optimization module is used to optimize the design of the project corresponding to the software design requirements according to the subject model.

[0040] In the above implementation process, by constructing a common model and a differential model for the project and distinguishing the common functions and differential functions in the project, the efficiency of software design can be improved. There is no need to perform separate modeling and design management for each project, which reduces duplication of work and reduces the risk of operational errors.

[0041] Furthermore, the building block is also used for:

[0042] Obtaining basic function information of the motor controller;

[0043] Extracting basic information corresponding to the basic function of the motor controller in the project information according to the basic function information;

[0044] The general model is constructed according to the basic information.

[0045] In the above implementation process, basic information of the project corresponding to the basic functional information is extracted according to the basic functional information of the motor controller, so as to accurately construct a general model of the project and include the common parts of the project into the general model, thus saving space occupancy and data redundancy of the project.

[0046] In a third aspect, an embodiment of the present application 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 steps of the method described in any one of the first aspects when executing the computer program.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.

[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.

[0049] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.

[0050] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0052] Figure 1 A flowchart of a method for optimizing software design of a motor controller provided in an embodiment of the present application;

[0053] Figure 2A schematic diagram of the structural composition of a device for optimizing software design of a motor controller provided in an embodiment of the present application;

[0054] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0056] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0057] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.

[0058] Embodiment 1

[0059] Figure 1 is a flow chart of the optimization method of software design of the motor controller provided in the embodiment of the present application, such as Figure 1 As shown, the method includes:

[0060] S1, obtaining project information of a motor controller project;

[0061] S2, building a general model based on the basic information in the project information;

[0062] S3, constructing a difference model based on the difference information in the project information;

[0063] S4, the principal model was obtained based on the general model and the difference model;

[0064] S5, optimize the design of the project corresponding to the software design requirements based on the subject model.

[0065] In the above implementation process, by constructing a common model and a differential model for the project and distinguishing the common functions and differential functions in the project, the efficiency of software design can be improved. There is no need to perform separate modeling and design management for each project, which reduces duplication of work and reduces the risk of operational errors.

[0066] This patent manages the development and optimization of multiple project software by using MATLAB's variant model, unifies multiple projects into a main model, distinguishes differentiated modules (difference models) by variants, and manages the general model in a unified manner. In this application, multiple projects share a main model, and the main model is divided into a general model and multiple specific function models (difference models). Among them, the specific function models are distinguished by MATLAB's variant model. When the general function model needs to be developed, modified or optimized, only one change work needs to be performed in the main model. After the change is completed, all projects using this main model can complete the change.

[0067] In an embodiment of the present application, when a project requires software development, modification or optimization of a common model portion, after completing the change work for that project, there is no need to make similar changes to other projects.

[0068] Furthermore, S2 includes:

[0069] Get basic function information of the motor controller;

[0070] Extract basic information corresponding to the basic functions of the motor controller in the project information according to the basic function information;

[0071] Build a general model based on basic information.

[0072] In the above implementation process, basic information of the project corresponding to the basic functional information is extracted according to the basic functional information of the motor controller, so as to accurately construct a general model of the project and include the common parts of the project into the general model, thus saving space occupancy and data redundancy of the project.

[0073] The embodiment of the present application implements the software development and optimization of the motor controller based on MATLAB. The method of the present application can be divided into two parts: a general model and a differentiated model for each project of the motor controller software. The general model part is mainly used to implement the basic functions of the motor controller. For different projects, the development and design of the general model are the same. The differentiated model is constructed according to the software requirements of different projects.

[0074] Furthermore, S3 includes:

[0075] Extract difference information from project information;

[0076] According to the preset variables, the items corresponding to the difference information are evaluated to obtain parameter values;

[0077] Construct a difference model based on parameter values.

[0078] In the above implementation process, the items corresponding to the difference information are valued according to the preset variables, and then the difference model is constructed. When the differentiated part of the project needs to be changed or modified, it can be directly adjusted without the need for separate design management, thereby improving efficiency.

[0079] The difference model of this application can be developed using the variant model in MATLAB (commercial mathematical software produced by MathWorks, USA). For example:

[0080] Open the Simulink Library Browser in MATLAB, select Port & Subsystems, and create a Variant Subsystem module in the main model. The Variant Subsystem module can be named according to the module function. For example, the communication variant module can be named "IC_InputCan".

[0081] Open the Block Parameters (module properties) of the module, and assign the preset variable SW_VersionCtrl the corresponding values ​​1 / 2 / 3 / 4 (parameter values) according to different projects A1 / A2 / A3 / A4. The projects and parameter values ​​correspond one to one.

[0082] Furthermore, the step of constructing a difference model according to the parameter values ​​includes:

[0083] Matching the project with its communication matrix according to the parameter value to obtain the communication matrix containing the difference information of the project;

[0084] Construct a difference model based on the communication matrix.

[0085] In the above implementation process, the project is matched with its communication matrix according to the parameter value to obtain the communication matrix containing the difference information, which can simplify the process of differential adjustment of the project and reduce the occupation of data space.

[0086] The communication matrix (communication matrix refers to a table or document used to describe how nodes in the automotive network exchange information in the network. It lists in detail how each node in the network sends and receives information, including the name, length, type, and sending and receiving cycles of the signal. The communication matrix defines how each ECU sends and receives data to ensure smooth communication between various systems within the vehicle.) is usually different for different projects. In this way, the communication function model needs to be used as a unique functional module in the main model, and it should be designed and developed using the variant model (VariantSubsystem) in MATLAB.

[0087] Optionally, corresponding communication functions can be developed within the variant model for different communication matrices of different projects. To select the variant model of the corresponding project, before opening the topic model, the developer can select the corresponding project name in the pop-up window by running the script, thereby selecting the variant model of the corresponding project.

[0088] In the embodiment of the present application, the communication function is taken as an example. The communication matrix special function module realizes the effect of being compatible with different project requirements in one main model through the variant model. Other special function modules can also apply the above method in the implementation process, so as to achieve the purpose of developing different projects in one main model through the variant model.

[0089] Furthermore, S5 includes:

[0090] Obtain software design requirements;

[0091] Extract change information from software design requirements;

[0092] Get variant configuration according to the change information;

[0093] Design optimization is performed on projects corresponding to software design requirements based on variant configurations.

[0094] In the above implementation process, variant configurations are obtained according to the change information in the software design requirements, and then the project is designed and optimized according to the variant configurations. The modules that need to be changed in the project can be changed directly, thereby improving the optimization efficiency of the project.

[0095] In the embodiment of the present application, the difference model can be matched through different variant configurations to reduce the burden of multi-project difference changes. For example, for the four difference models A, B, C, and D, only four changes are needed. Combining two of them can derive six derived projects (variant configurations) A+B, A+C, A+D, B+C, B+D, and C+D. According to the needs, the appropriate one is selected from multiple variant configurations for design optimization.

[0096] Examples of changes include: changes to the communication matrix, changes to software parameters to adapt to different hardware or different projects, etc.

[0097] Furthermore, the step of optimizing the design of the project corresponding to the software design requirement according to the variant configuration includes:

[0098] Import the change points corresponding to the variant configuration into the main model;

[0099] According to the main model of the imported change point, the project corresponding to the software design requirement is changed to achieve design optimization of the project corresponding to the software design requirement.

[0100] In the above implementation process, the change points are imported into the main model, so that the change points of the project can be clearly and concisely displayed in the main model. There is no need to re-plan and design the project, and the changes to the project difference modules can be quickly implemented.

[0101] After selecting the appropriate variant configuration, the position between the two difference models between the variant configurations is the change point. The change point is imported into the main model, that is, the main model is informed to change and optimize at this position, so that software design optimization for different projects can be quickly realized.

[0102] The embodiments of the present application can be applied to multiple projects. For the differences in software design caused by different requirements and hardware solutions of different projects, variant management is required for some modules that require differentiated design. On the one hand, for most common model changes, there is no need to carry out separate horizontal expansion for each project. Only one change design needs to be made in the main model, and there is no risk of missing changes in a certain project or making operational errors when horizontally expanding the changes.

[0103] Embodiment 2

[0104] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a software design optimization device for a motor controller is provided below, such as Figure 2 As shown, the device comprises:

[0105] An acquisition module 1 is used to acquire project information of a motor controller project;

[0106] Construction module 2 is used to construct a general model based on basic information in the project information; and is also used to construct a difference model based on difference information in the project information;

[0107] A model acquisition module 3 is used to obtain a subject model according to a general model and a difference model;

[0108] The design optimization module 4 is used to optimize the design of the project corresponding to the software design requirements according to the subject model.

[0109] In the above implementation process, by constructing a common model and a differential model for the project and distinguishing the common functions and differential functions in the project, the efficiency of software design can be improved. There is no need to perform separate modeling and design management for each project, which reduces duplication of work and reduces the risk of operational errors.

[0110] Furthermore, the building block 2 is also used for:

[0111] Get basic function information of the motor controller;

[0112] Extract basic information corresponding to the basic functions of the motor controller in the project information according to the basic function information;

[0113] Build a general model based on basic information.

[0114] In the above implementation process, basic information of the project corresponding to the basic functional information is extracted according to the basic functional information of the motor controller, so as to accurately construct a general model of the project and include the common parts of the project into the general model, thus saving space occupancy and data redundancy of the project.

[0115] Furthermore, the building block 2 is also used for:

[0116] Extract difference information from project information;

[0117] According to the preset variables, the items corresponding to the difference information are evaluated to obtain parameter values;

[0118] Construct a difference model based on parameter values.

[0119] In the above implementation process, the items corresponding to the difference information are valued according to the preset variables, and then the difference model is constructed. When the differentiated part of the project needs to be changed or modified, it can be directly adjusted without the need for separate design management, thereby improving efficiency.

[0120] Furthermore, the building block 2 is also used for:

[0121] Matching the project with its communication matrix according to the parameter value to obtain the communication matrix containing the difference information of the project;

[0122] Construct a difference model based on the communication matrix.

[0123] In the above implementation process, the project is matched with its communication matrix according to the parameter value to obtain the communication matrix containing the difference information, which can simplify the process of differential adjustment of the project and reduce the occupation of data space.

[0124] Furthermore, the design optimization module 4 is also used for:

[0125] Obtain software design requirements;

[0126] Extract change information from software design requirements;

[0127] Get variant configuration according to the change information;

[0128] Design optimization is performed on projects corresponding to software design requirements based on variant configurations.

[0129] In the above implementation process, variant configurations are obtained according to the change information in the software design requirements, and then the project is designed and optimized according to the variant configurations. The modules that need to be changed in the project can be changed directly, thereby improving the optimization efficiency of the project.

[0130] Furthermore, the design optimization module 4 is also used for:

[0131] Import the change points corresponding to the variant configuration into the main model;

[0132] According to the main model of the imported change point, the project corresponding to the software design requirement is changed to achieve design optimization of the project corresponding to the software design requirement.

[0133] In the above implementation process, the change points are imported into the main model, so that the change points of the project can be clearly and concisely displayed in the main model. There is no need to re-plan and design the project, and the changes to the project difference modules can be quickly implemented.

[0134] The above-mentioned optimization device for software design of the motor controller can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.

[0135] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.

[0136] Embodiment 3

[0137] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the optimization method for software design of a motor controller of embodiment one.

[0138] Optionally, the above-mentioned electronic device may be a server.

[0139] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.

[0140] The processor 31 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.

[0141] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.

[0142] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.

[0143] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.

[0144] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0145] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the optimization method for software design of the motor controller of the first embodiment.

[0146] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.

[0147] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or an executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0148] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0149] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0150] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0151] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.

[0152] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for optimizing software design of a motor controller, characterized in that: The method comprises: Acquire project information of the project of the motor controller; Building a general model based on basic information in the project information; Building a difference model based on the difference information in the project information; Obtaining a subject model according to the general model and the difference model; The project corresponding to the software design requirement is designed and optimized according to the subject model.

2. The method for optimizing software design of a motor controller according to claim 1, characterized in that: The step of constructing a general model according to the basic information in the project information includes: Obtaining basic function information of the motor controller; Extracting basic information corresponding to the basic function of the motor controller in the project information according to the basic function information; The general model is constructed according to the basic information.

3. The method for optimizing software design of a motor controller according to claim 1, characterized in that: The step of constructing a difference model according to the difference information in the project information includes: extracting the difference information from the project information; Taking values ​​of items corresponding to the difference information according to preset variables to obtain parameter values; The difference model is constructed according to the parameter values.

4. The method for optimizing software design of a motor controller according to claim 3, characterized in that: The step of constructing the difference model according to the parameter value comprises: Matching the project with its communication matrix according to the parameter value to obtain a communication matrix containing difference information of the project; The difference model is constructed based on the communication matrix.

5. The method for optimizing software design of a motor controller according to claim 1, characterized in that: The step of optimizing the design of the project corresponding to the software design requirement according to the subject model includes: Obtain software design requirements; Extracting change information in the software design requirements; Obtaining a variant configuration according to the change information; The project corresponding to the software design requirement is designed and optimized according to the variant configuration.

6. The method for optimizing software design of a motor controller according to claim 5, characterized in that: The step of optimizing the design of the project corresponding to the software design requirement according to the variant configuration includes: Importing the change points corresponding to the variant configuration into the main model; The project corresponding to the software design requirement is changed according to the main model of the imported change point, so as to achieve design optimization of the project corresponding to the software design requirement.

7. An optimization device for software design of a motor controller, characterized in that: The device comprises: An acquisition module, used for acquiring project information of the project of the motor controller; A construction module, used to construct a general model according to the basic information in the project information; and also used to construct a difference model according to the difference information in the project information; A model acquisition module, used for acquiring a subject model according to the general model and the difference model; The design optimization module is used to optimize the design of the project corresponding to the software design requirements according to the subject model.

8. The device for optimizing software design of a motor controller according to claim 7, characterized in that: The building blocks are also used to: Obtaining basic function information of the motor controller; Extracting basic information corresponding to the basic function of the motor controller in the project information according to the basic function information; The general model is constructed according to the basic information.

9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the optimization method for software design of a motor controller according to any one of claims 1 to 6.

10. A storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the optimization method for software design of a motor controller as described in any one of claims 1 to 6.