Embedded software system generation method and apparatus, chip, device, and storage medium

Through the separation method of abstracting business logic and views, and using business configuration files to instantiate embedded software systems, it solves the problem of low development efficiency in traditional design methods and achieves efficient development and system maintainability of embedded software systems.

WO2024212900A1PCT designated stage expired Publication Date: 2024-10-17CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1

Patent Information

Application Number
PCT/CN2024/086408
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-11
Filing Date
2024-04-07
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Traditional embedded software system design methods have challenges in improving development efficiency and system scalability. Especially when functional complexity and performance requirements increase, business logic and views need to be completely written, resulting in low development efficiency.

Method used

By separating abstract business logic and abstract views, using business configuration files for instantiation, an embedded software system is generated, supporting the separation processing of business logic and views, and adapting to the diverse needs of information processing and display methods for different application functions.

Benefits of technology

There is no need to write complete business logic and views, which improves the development efficiency of embedded software systems, realizes the separation of data and operation logic, flexibly customizes business logic and data combination methods, and supports distributed computing and system maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086408_17102024_PF_FP_ABST
    Figure CN2024086408_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computers, and discloses an embedded software system generation method and apparatus, a chip, a device, and a storage medium. An abstract service logic describes a common characteristic of various service logics, and an abstract view describes a common characteristic of various views. Thus, during the development of an application function, the abstract service logic is instantiated according to a service configuration file, so that a service logic for achieving a specific application function can be obtained. Similarly, different instantiation is performed on the abstract view according to the service configuration file, so that a view suitable for the service logic can be obtained. In this way, service logics and views do not need to be completely written, thereby improving the development efficiency of embedded software systems.
Need to check novelty before this filing date? Find Prior Art

Description

Embedded software system generation method, device, chip, equipment and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 11, 2023, with application number 202310383103.X and application name “Embedded software system generation method, device, chip, equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to an embedded software system generation method, apparatus, chip, device, and storage medium. Background Art

[0003] With the development of embedded software and hardware technologies and the gradual enrichment of application functions, the functional complexity and performance requirements of embedded systems have greatly increased. In this situation, the development quality and efficiency of embedded software systems, as well as the scalability and maintainability of the systems, are all facing challenges.

[0004] Summary of the Invention

[0005] The present application provides an embedded software system generation method, apparatus, chip, computer equipment and storage medium, aiming to improve the development efficiency of embedded software systems.

[0006] A first aspect of the present application provides a method for generating an embedded software system, the method comprising: obtaining a business configuration file; instantiating abstract business logic based on the business configuration file to obtain instance business logic, wherein the abstract business logic is used to describe common features of multiple business logics; instantiating abstract views based on the business configuration file to obtain at least one view applicable to the instance business logic, wherein the abstract view is used to describe common features of multiple views; and generating the embedded software system based on the instance business logic and the at least one view.

[0007] In this application, abstract business logic describes the common features of multiple business logics, and abstract views describe the common features of multiple views. This allows us to instantiate the abstract business logic according to the business configuration file when developing application functions, thereby obtaining the business logic for implementing specific application functions. Similarly, by instantiating the abstract view differently according to the business configuration file, we can obtain views suitable for the business logic. This eliminates the need to fully write business logic and views, improving the development efficiency of embedded software systems.

[0008] In addition, the abstract business logic and abstract view are separated in this application, so that the separate processing of business logic and view can be supported. On this basis, when developing for different application functions, different combinations of information processing methods and display methods can be provided by separately instantiating abstract business logic and abstract views, thereby better adapting to the diverse needs of information processing methods and information display methods.

[0009] Optionally, the abstract business logic includes multiple abstract data elements and multiple abstract logical elements, each abstract data element is used to describe data of a data type, and each abstract logical element is used to describe at least one operation element; the instantiation of the abstract business logic based on the business profile includes: selecting multiple first abstract logical elements from the multiple abstract logical elements based on the business profile, and selecting multiple first abstract data elements from the multiple abstract data elements; instantiating the multiple first abstract logical elements and the multiple first abstract data elements based on the business profile to obtain multiple instance logical elements and multiple instance data elements, the instance logical elements include associated data element information and operation elements, the associated data element information is used to indicate the instance data elements associated with the instance logical elements, the operation elements are used to operate on the instance data elements associated with the instance logical elements, the instance data elements include values ​​and associated logical element information, and the associated logical element information is used to indicate the instance logical elements associated with the instance data elements.

[0010] In this application, abstract business logic includes abstract data elements and abstract logic elements. When developing application functions, these abstract data elements and abstract logic elements are instantiated separately, achieving the separation of data and operation logic. Furthermore, when developing different application functions, by separately instantiating abstract data elements and abstract logic elements, various business logics can be customized more flexibly.

[0011] Optionally, the method further includes: instantiating at least one abstract device associated with the multiple first abstract data elements to obtain at least one instance device, each abstract device being used to describe a type of physical device, and each instance device being associated with at least one instance data element among the multiple instance data elements.

[0012] In this application, multiple first abstract data elements are associated with at least one abstract device, and each abstract device is used to describe a type of physical device. On this basis, by instantiating the abstract devices associated with multiple first abstract data elements, instance data elements can be associated with instance devices. Thus, each instance device is associated with at least one instance data element, which is equivalent to classifying instance data elements based on different instance devices. This shows that when developing for different application functions, by instantiating abstract devices associated with different abstract data elements, different data combinations can be obtained, which can better meet the needs of diverse data combinations during software development.

[0013] Optionally, the instance data element further includes associated device information, where the associated device information is used to indicate the instance device associated with the instance data element.

[0014] In this application, the association between instance data elements and instance devices can be achieved by setting associated device information in the instance data elements. In this way, the instance data elements, instance logical elements, and instance devices are closely integrated through the associated data element information, associated logical element information, and associated device information, thereby achieving computing tasks for certain data sets.

[0015] Optionally, the method further includes: configuring an association relationship between the at least one view and the at least one instance device, where each view is associated with at least one instance device.

[0016] In this application, by configuring an association between at least one view and at least one instance device, it is possible to associate views with instance devices. Because instance devices are also associated with at least one instance data element, different datasets corresponding to different instance devices can be displayed or transmitted through associated views. This demonstrates that this application enables customization of the display or transmission methods for different datasets.

[0017] Optionally, the method further includes: instantiating an abstract interface based on the service configuration file to obtain at least one communication interface, wherein the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

[0018] In this application, abstract interfaces are used to describe the common features of multiple communication interfaces compatible with different hardware devices. This allows the abstract interface to be instantiated based on the service configuration file during software generation to create a communication interface that is compatible with the current hardware and meets the business logic requirements. This allows the abstract interface to shield the underlying hardware from the application, thereby adapting to the diverse communication interface requirements of different application functions.

[0019] Optionally, the method also includes: configuring an association relationship between the at least one communication interface and the communication interfaces of other embedded software systems based on the business profile, so that the at least one communication interface communicates with the communication interfaces of the other embedded software systems to achieve data interaction with the other embedded software systems.

[0020] In this application, by associating the communication interface of the current embedded software system with the communication interfaces of other embedded software systems, data interaction between the embedded software systems can be achieved, thereby supporting the implementation of distributed computing.

[0021] The second aspect of the present application provides an embedded software system generation device, the device comprising: an acquisition module, a business logic creation module, a view creation module, and a software generation module. The acquisition module is configured to acquire a business configuration file; the business logic creation module is configured to instantiate an abstract business logic based on the business configuration file to obtain an instance business logic, wherein the abstract business logic is used to describe the common features of multiple instance business logics; the view creation module is configured to instantiate an abstract view based on the business configuration file to obtain at least one view applicable to the instance business logic, wherein the abstract view is used to describe the common features of multiple views; and the software generation module is configured to generate the embedded software system based on the instance business logic and the at least one view.

[0022] Optionally, the abstract business logic includes multiple abstract data elements and multiple abstract logical elements, each abstract data element is used to describe data of a data type, and each abstract logical element is used to describe at least one operation element; the business logic creation module is mainly used to: select multiple first abstract logical elements from the multiple abstract logical elements based on the business configuration file, and select multiple first abstract data elements from the multiple abstract data elements; instantiate the multiple first abstract logical elements and the multiple first abstract data elements based on the business configuration file to obtain multiple instance logical elements and multiple instance data elements, the instance logical elements include associated data element information and operation elements, the associated data element information is used to indicate the instance data elements associated with the instance logical elements, the operation elements are used to operate on the instance data elements associated with the instance logical elements, the instance data elements include values ​​and associated logical element information, and the associated logical element information is used to indicate the instance logical elements associated with the instance data elements.

[0023] Optionally, the apparatus further includes a device creation module, which is used to: instantiate at least one abstract device associated with the multiple first abstract data elements to obtain at least one instance device, wherein each abstract device is used to describe a type of entity device, and each instance device is associated with at least one instance data element among the multiple instance data elements.

[0024] Optionally, the instance data element further includes associated device information, where the associated device information is used to indicate the instance device associated with the instance data element.

[0025] Optionally, the device creation module is further configured to: configure an association relationship between the at least one view and the at least one instance device, where each view is associated with at least one instance device.

[0026] Optionally, the apparatus further includes an interface creation module, which is used to instantiate an abstract interface based on the service configuration file to obtain at least one communication interface, wherein the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

[0027] Optionally, the interface creation module is also used to: configure the association relationship between the at least one communication interface and the communication interface of other embedded software systems based on the business configuration file, so that the at least one communication interface communicates with the communication interface of the other embedded software system to realize data interaction with the other embedded software system.

[0028] A third aspect of the present application provides a chip, comprising a processor, wherein the processor is configured to execute a computer program to implement the embedded software system generation method described in the first aspect.

[0029] A fourth aspect of the present application provides a computer device, comprising at least one chip, wherein the chip is configured to execute a computer program to implement the embedded software system generation method described in the first aspect.

[0030] A fifth aspect of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the embedded software system generation method of the first aspect described above.

[0031] Compared with the prior art, the embodiments of the present application have at least the following beneficial effects:

[0032] In the embodiments of the present application, abstract business logic describes the common features of multiple business logics, and abstract views describe the common features of multiple views. Thus, when developing application functions, the abstract business logic is instantiated according to the business configuration file to obtain the business logic used to implement the specific application function. Similarly, different instantiations of the abstract view according to the business configuration file can obtain views suitable for the business logic. This eliminates the need to fully write business logic and views, improving the development efficiency of embedded software systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the drawings without creative work.

[0034] FIG1 is a schematic structural diagram of a computer device provided in an embodiment of the present application;

[0035] FIG2 is a schematic diagram of a computing cluster provided in an embodiment of the present application;

[0036] FIG3 is a flow chart of a method for generating an embedded software system provided in an embodiment of the present application;

[0037] FIG4 is a graphical topology diagram of an example business logic provided in an embodiment of the present application;

[0038] FIG5 is a schematic diagram of a first embedded software system provided in an embodiment of the present application;

[0039] FIG6 is a schematic diagram of a second embedded software system provided in an embodiment of the present application;

[0040] FIG7 is a schematic diagram of a third embedded software system provided in an embodiment of the present application;

[0041] FIG8 is a schematic diagram of a fourth embedded software system provided in an embodiment of the present application;

[0042] FIG9 is a schematic diagram of a system for generating and running an embedded software provided by an embodiment of the present application;

[0043] FIG10 is a schematic diagram of an embedded software system generated by an embedded software system generation method to support distributed computing provided by an embodiment of the present application;

[0044] FIG11 is a schematic structural diagram of an embedded software system generating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0047] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly indicate the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "at least one" means one or more, and "more than one" means two or more, unless otherwise specifically defined.

[0048] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0049] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0050] With the advancement of embedded software and hardware technologies and the increasing diversity of application functionality, embedded systems have experienced significant increases in functional complexity and performance requirements. Traditional embedded software system design methods face challenges in reducing the coupling between subsystems within the system, improving development quality and efficiency, and balancing system scalability and maintainability. Consequently, building embedded software systems based on platform-based software architectures has become a growing trend.

[0051] Under a platform-based software architecture, a computer device can obtain business code for implementing application functions and, based on this business code, call the required software and hardware service interfaces from a software and hardware service library to generate an embedded software system. The software and hardware service library is primarily used to shield the differences in underlying hardware, operating systems, and software components, while integrating common basic software services and providing an API (Application Program Interface) to support application function development. However, in the above-mentioned process of generating an embedded software system, developers are still required to write business code, including business logic and corresponding views, based on the application functions to be implemented, which results in low development efficiency. Based on this, an embodiment of the present application provides a method for generating an embedded software system. In this method, abstract business logic describes the common features of multiple business logics, and abstract views describe the common features of multiple views. Thus, when developing application functions, the abstract business logic is instantiated according to the business configuration file to obtain the business logic for implementing a specific application function. Similarly, the abstract view can be instantiated differently according to the business configuration file to obtain a view suitable for the business logic. This eliminates the need to fully write business logic and views, thereby improving the development efficiency of the embedded software system.

[0052] The embedded software system generation method provided in the embodiments of the present application can be used in various computer devices that use embedded systems. For example, the method can be applied to computer devices that use embedded systems in the power industry to generate an embedded software system for processing power system data. The computer device can be a mobile phone, tablet computer, laptop computer, desktop computer, or server.

[0053] For example, FIG1 is a schematic diagram of the structure of a computer device 01 provided in an embodiment of the present application. As shown in FIG1 , the computer device 01 may include at least one chip 10 (three chips 10 are shown in FIG1 ). The chip 10 may include a processor 101 and a memory 102. The processor 101 may execute the embedded software system generation method provided in an embodiment of the present application.

[0054] In some embodiments, the processor 101 may be a single-core processor. Alternatively, the processor 101 may be a multi-core processor. For example, as shown in FIG1 , the processor 101 may include two processing cores, namely, a processing core 1011 and a processing core 1012. The two processing cores may share the memory 102 in the chip 10. In this case, the memory 102 may serve as a data transfer interface between the processing core 1011 and the processing core 1012. Alternatively, the processing core 1011 and the processing core 1012 may also transfer data via other parallel or serial interfaces, which is not limited in the embodiments of the present application.

[0055] When the processor 101 includes multiple processing cores, each processing core can execute the embedded software system generation method provided by the embodiment of the present application to generate an embedded software system. For example, as shown in Figure 1, the processing core 1011 and the processing core 1012 in any chip 10 can execute the embedded software system generation method provided by the embodiment of the present application. In this case, the embedded software system generated by the processing core 1011 and the processing core 1012 can be used to implement different business logics. In some possible cases, the different business logics implemented by the embedded software system generated by the processing core 1011 and the processing core 1012 can be the business logic of different sub-businesses of the same business.

[0056] In some embodiments, when the computer device 01 includes multiple chips 10, the computer device 01 may further include a communication bus 11, through which the individual chips 10 communicate. The communication bus 11 may be an LVDS (Low-Voltage Differential Signaling) bus. In this case, the embedded software systems generated by different processing cores on different chips 10 may be used to execute the business logic of different sub-businesses within a particular business. In this way, the multiple chips 10 exchange data via the communication bus 11 to implement distributed computing.

[0057] In some possible situations, the embedded software system generation method provided in the embodiment of the present application can be applied to multiple computer devices included in a computing cluster. For example, referring to FIG2 , the computing cluster includes computer device 01 and computer device 02, wherein both computer device 01 and computer device 02 can execute the embedded software system generation method provided in the embodiment of the present application. Furthermore, computer device 01 and computer device 02 can be interconnected via a system-level bus 03. In this case, the embedded software system generated by computer device 01 and computer device 02 can be used to execute the business logic of different sub-businesses of a certain business, and exchange data via system-level bus 03 to achieve distributed computing.

[0058] Next, the embedded software system generation method provided by the embodiment of the present application is introduced. The method can be executed by a computer device, for example, by any processing core in the computer device shown in Figure 1 or Figure 2. Referring to Figure 3, the method includes the following steps:

[0059] Step 301: Obtain a service configuration file.

[0060] In the embodiment of the present application, the user can write a service configuration file according to the application function to be implemented, and the computer device obtains the service configuration file.

[0061] For example, a file writer may be run on the computer device, and the user may use the file writer to write a service configuration file. The service configuration file may be an XML file, an SQLite configuration file, etc. The file writer may be a PC (Personal Computer) configuration tool.

[0062] Optionally, the computer device may also directly receive a service configuration file sent by other devices.

[0063] Step 302: Instantiate the abstract business logic based on the business configuration file to obtain instance business logic. The abstract business logic is used to describe common features of multiple business logics.

[0064] After obtaining the service configuration file, the computer device parses the service configuration file to obtain service configuration information, and then instantiates the abstract service logic based on the service configuration information to obtain instance service logic.

[0065] For example, the computer device can use AllParse to parse the service configuration file to obtain service configuration information. This service configuration information may include service logic configuration information and view configuration information. Based on this, the computer device can use CfgManagement to instantiate the abstract service logic based on the service logic configuration information, thereby obtaining the instance service logic.

[0066] In some embodiments of the present application, the abstract business logic may include multiple abstract data elements and multiple abstract logical elements. Based on this, the computer device may select multiple first abstract logical elements from the multiple abstract logical elements and multiple first abstract data elements from the multiple abstract data elements based on a business configuration file; and instantiate the multiple first abstract logical elements and the multiple first abstract data elements based on the business configuration file to obtain multiple instance logical elements and multiple instance data elements.

[0067] Each abstract data element can be used to describe data of a data type. Exemplarily, each abstract data element can be an abstract class that describes the characteristics of a type of data. For example, in a power system, the data types of commonly used data include telesignaling data, telemetry data, remote control action data, sampled values, etc. Based on this, when the generation method provided in the embodiment of the present application is applied to a power system, the abstract data elements may include telesignaling data elements, telemetry data elements, remote control data elements, sampled data elements, etc., and each abstract data element can be used to describe the characteristics of the corresponding type of data.

[0068] Each abstract logic element can be used to describe at least one computing element. The at least one computing element is used to implement a data operation. Based on this, each abstract logic element can be an abstract class that describes a data operation. For example, common operations performed on data include data access, logical operations, compound operations, etc. Based on this, in an embodiment of the present application, the abstract logic element may include a data access logic element, a logical operation logic element, and a compound operation logic element. Among them, the data access logic element is used to describe at least one computing element that implements a data access operation, the logical operation logic element is used to describe at least one computing element that implements a logical operation operation, and the compound operation logic element can be used to describe at least one computing element that implements a compound operation.

[0069] In an embodiment of the present application, a computer device may determine, based on the business logic configuration information parsed from a business configuration file, multiple target data types corresponding to the multiple data types required to implement the business logic, and then obtain, from the multiple abstract data elements, multiple first abstract data elements for describing the data of the multiple target data types. Furthermore, based on the business logic configuration information, the computer device may determine the operations required to be performed on the multiple data types when implementing the business logic, and then select, from the multiple abstract logical elements, multiple first abstract logical elements for describing the corresponding operations.

[0070] After obtaining multiple first abstract data elements and multiple first abstract logical elements, the computer device can instantiate any first abstract data element using CfgManagement based on the business logic configuration information to obtain at least one instance data element corresponding to the first abstract data element. Each instance data element in the at least one instance data element includes a value and associated logical element information, the associated logical element information being used to indicate an instance logical element that operates on the instance data element, and the data type of the value included in each instance data element is the data type of the first abstract data element.

[0071] It should be noted that, in the embodiments of the present application, instantiation may refer to the process of concretizing an abstract concept class. Since an abstract concept class can be used to describe the common characteristics of a group or a class of things, in the process of instantiating the abstract concept class, multiple instances with the above common characteristics can be obtained according to different parameters. For example, the process of instantiating the first abstract data element can be understood as the process of concretizing the first abstract data element. That is, based on the characteristics of the data described by the first abstract data element, the first abstract data element is concretized to generate at least one instance data element with the data characteristics described by the first abstract data. Among them, the values ​​and associated logical element information included in each instance data element can be regarded as the result of concretization. It can be seen that each instance data element is a data with semantics.

[0072] For example, as can be seen from the above introduction, the operations required to be performed on various data when implementing the business logic can be determined based on the business logic configuration information. Based on this, in an embodiment of the present application, when a computer device instantiates any first abstract data element, it can determine the first abstract logical element associated with the first abstract data element based on the operations required to be performed on the data described by the first abstract data element as indicated in the business logic configuration information, and then, during the instantiation process, use the identification information of the instance logical element corresponding to the associated first abstract logical element as the associated logical element information in the instance data element corresponding to the first abstract data element. The identification information of the instance logical element can be a pointer to the corresponding instance logical element.

[0073] In addition, for any logic element among the plurality of first abstract logic elements, the computer device may also use CfgManagement to instantiate the first abstract logic element to obtain at least one instance logic element corresponding to the first abstract logic element.

[0074] The computer device can determine which operational elements to materialize the first abstract logical element based on the business logic configuration information and the operations described by the first abstract logical element. During the instantiation process, these operational elements are used as operational elements included in at least one instance logical element corresponding to the first abstract logical element. The operational elements included in each instance logical element are used to process instance data elements associated with the instance logical element. For example, the operational elements can be AND gates, OR gates, or other computational functions.

[0075] Furthermore, the computer device can determine the first abstract data element associated with the first abstract logical element based on the data to be operated on by the first abstract logical element indicated in the business logic configuration information. Furthermore, during the instantiation process, the computer device can use the identification information of the instance data element corresponding to the first abstract data element associated with the computer device as the associated data element information in the instance logical element after the instantiation of the first abstract logical element. Thus, the associated data element information included in the instance logical element can indicate the instance data element to be operated on by the instance logical element.

[0076] In addition, since there may be a transfer of calculation results between two instance logical elements, or the two instance logical elements may need to collaborate to operate on data elements, the computer device can also determine other instance logical elements associated with the instance logical element corresponding to the first abstract logical element based on the business logic configuration information, and then in the instantiation process, use the identification information of the other associated instance logical elements as the associated logical element information in the instance logical element corresponding to the first abstract logical element, and the associated logical element information is used to indicate other instance logical elements associated with the instance logical element.

[0077] For example, when creating two instance logical elements, logical elements a and b, using CfgManagement, the computer device can configure the associated logical element information in logical element a as a pointer to logical element b, and the associated logical element information in logical element b as an indication of logical element a. Thus, after instantiation, logical elements a and b are associated.

[0078] In summary, instance data elements and instance logic elements can be tightly integrated together through the associated logic element information and associated data element information they contain, thereby forming a graph topology. The nodes of this graph topology are instance data elements and instance logic elements. Thus, when the embedded software system is subsequently running, the instance logic element can reference the instance data element to perform operations and obtain operation results. This operation result can be used to update the instance data element. When the computing task is divided into multiple subtasks, the operation result of the instance logic element can also be passed to other instance logic elements, which can then continue to operate on other instance data elements based on this operation result. In this way, each node in the graph topology operates in an orderly manner, thereby completing the computing task and obtaining the final data processing result. This final data processing result can be updated into the instance data element for output.

[0079] For example, referring to Figure 4 , if the computing task is divided into Task 0 and Task 1, instance logic element A in Task 0 references instance data element 1 for a logical operation, and the operation result is updated to instance data elements 2 and 3. Instance logic element B references instance data element 2 for a logical operation, and the operation result is updated to instance data element 4. Instance logic element C references instance data elements 3 and 4 for a logical operation, and the operation result is updated to instance data elements 5 and 6. Instance logic element D references instance data element 5 for a logical operation, and instance logic element E references instance data element 6 for a logical operation. Instance logic element D can then pass its operation result to instance logic element F in Task 1, and instance logic element E can pass its operation result to instance logic element G in Task 1. Instance logic elements F and G can continue to operate on their associated instance data elements based on the received operation results. This process continues in this manner until the final data processing result is obtained, which is then updated to instance data element 11. In this case, instance data element 11 can serve as the final output data element, outputting the data processing result to at least one view.

[0080] From the above, it can be seen that in the embodiments of the present application, by instantiating the abstract data elements and abstract logic elements included in the abstract business logic respectively, specific data and operation elements, as well as the association relationship between the data and the operation elements can be obtained. In this way, the associated data is operated through the operation elements to form the instance business logic.

[0081] Because the embodiments of this application can instantiate abstract data elements and abstract logic elements separately, data and operation logic are separated. On this basis, when developing different application functions, various business logics can be customized more flexibly by instantiating abstract data elements and abstract logic elements separately.

[0082] In some embodiments of the present application, the abstract data elements included in the abstract business logic may also be associated with abstract devices. Based on this, the computer device may also instantiate at least one abstract device associated with the plurality of first abstract data elements to obtain at least one instance device.

[0083] It should be noted that each abstract device is used to describe a type of physical device. The type of the physical device can be determined based on the physical device's role in the data processing process. For example, some physical devices are devices that provide data. Therefore, the type of such physical devices is server-type, and the abstract service device can be used to describe server-type physical devices. Some physical devices are devices that consume data. Therefore, the type of such physical devices is client-type, and the abstract client device can be used to describe client-type physical devices. Some physical devices both provide and consume data. The type of such physical devices can be root device type, and the abstract root device can be used to describe root device type physical devices.

[0084] Optionally, the type of the physical device may also be determined based on other characteristics of the physical device. For example, the type of the physical device may be determined based on the type of data provided and / or consumed by the physical device, which is not limited in this embodiment of the present application.

[0085] Optionally, in an embodiment of the present application, the type of the entity device may include types determined respectively according to multiple characteristics of the entity device. For example, the type of the entity device may include types determined respectively using the two methods in the above examples.

[0086] In the embodiment of the present application, each abstract data element may be associated with at least one abstract device, and the abstract devices associated with different abstract data elements may be the same or different. Furthermore, the data described by each abstract data element is associated with the physical device described by the associated abstract device.

[0087] For example, when an abstract data element is associated with an abstract server device, the data described by the abstract data element is data provided by a server-type entity device. When an abstract data element is associated with an abstract client device, the data described by the abstract data element is data consumed by a client-type entity device. When an abstract data element is associated with an abstract root device, the data described by the abstract data element is data provided and consumed by a root-type entity device.

[0088] It should be noted that when the type of a physical device is determined based on a characteristic of the physical device, the physical devices of the corresponding types described by each abstract device will not have any intersection. In this way, the data associated with the various types of physical devices may not have any intersection. Therefore, in this case, each abstract data element can be associated with an abstract device.

[0089] Alternatively, if the entity device type includes types determined based on multiple characteristics of the entity device, such as the aforementioned server type, client type, and root device type, and also includes fixed value types and sampling types determined based on the data type of data provided or consumed by the entity device, then the data associated with the entity devices described by two abstract devices may overlap. For example, the data associated with a client-type entity device and a fixed value-type entity device may overlap. In this case, each abstract data element may be associated with more than one abstract device.

[0090] Because each abstract data element is associated with at least one abstract device, when a computer device instantiates an abstract device associated with any first abstract data element, the resulting instance device will be associated with the instance data element corresponding to the first abstract data element. Based on this, during the instantiation of the first abstract data element and the associated abstract device, the computer device can also determine the identification information of the instance device corresponding to the abstract device and use this identification information as the associated device information in the instance data element corresponding to the abstract data element associated with the abstract device, thereby indicating the instance device associated with the instance data element.

[0091] Thus, in the embodiments of the present application, by instantiating multiple abstract devices associated with the first abstract data elements, instance data elements and instance devices can be associated. Thus, each instance device is associated with at least one instance data element, which is equivalent to classifying the instance data elements based on different instance devices. Thus, when developing different application functions, by instantiating abstract devices associated with different abstract data elements, different data combination methods can be obtained, which can better meet the needs of diverse data combinations during software development.

[0092] In some embodiments of the present application, multiple business logics may include the same processing logic for certain types of data. In this case, the abstract business logic can be an abstract concept class that describes the same processing logic for these types of data. In this way, after obtaining the business configuration information, the computer device can instantiate the abstract business logic based on the business logic configuration information included in the business configuration information to obtain the instance business logic.

[0093] Step 303: Instantiate the abstract view based on the business configuration file to obtain at least one view applicable to the instance business logic. The abstract view is used to describe the common features of multiple views.

[0094] As can be seen from the above description, the service configuration information obtained by parsing the service configuration file may include view configuration information. Based on this, the computer device can use DevManagement to instantiate the abstract view based on the view configuration information, thereby obtaining at least one view applicable to the instance service logic.

[0095] In some embodiments of the present application, an abstract view may refer to an abstract view class, which is used to describe common features of multiple views, including user interfaces, communication protocols, and text files.

[0096] In one possible implementation, the computer device can use DevManagement to create at least one normal view based on the view configuration information, the system-provided view model, and the abstract view. A normal view is a view implemented using the system-provided view model. For example, the normal view may include an interface for the five-defense system applied to a power system.

[0097] In another possible implementation, the view configuration information may include a built-in view model. In this case, the computer device may use DevManagement to create at least one built-in model view based on the view model in the view configuration information and the abstract view. For example, the built-in view model may include a user interface model, an MMS (Manufacturing Message Specification) communication protocol model for power systems, and the like. Accordingly, the at least one built-in model view created may include the user interface, the MMS communication protocol, and the like.

[0098] Optionally, since at least one view is mainly used to provide data to the instance business logic or output data processed by the instance business logic, in an embodiment of the present application, after creating at least one view, the computer device may also establish an association relationship between at least one view and the instance business logic so as to pass the data received through the at least one view to the instance business logic and output the data processed by the instance business logic through the at least one view.

[0099] From the above, it can be seen that in the embodiments of the present application, the abstract business logic and the abstract view are separated. In this way, the separate processing of business logic and view can be supported. On this basis, when developing for different application functions, different combinations of information processing methods and display methods can be provided by separately instantiating the abstract business logic and the abstract view, thereby better adapting to the diverse needs of information processing methods and information display methods.

[0100] In some embodiments of the present application, when the abstract data elements included in the abstract business logic are also associated with abstract devices, after instantiating the abstract views and abstract devices, the computer device may further configure an association relationship between at least one view and at least one instance device, with each view being associated with at least one instance device. Optionally, each instance device may also be associated with at least one view.

[0101] It should be noted that the view configuration information may include the view type corresponding to each type of data required to implement the business logic. Based on this, the computer device can use DevManagement to establish a mapping relationship between the instance device corresponding to the corresponding type of data and the view indicated by the view type corresponding to the corresponding type of data according to the view type corresponding to each type of data, so as to realize the association between the instance device and the view. Among them, the instance data elements associated with different instance devices may realize input or output through different or the same views. Therefore, a view can be associated with one or more instance devices. In addition, the instance data elements associated with the same instance device may use different or the same views to realize input and output. Therefore, an instance device can also be associated with one or more views.

[0102] Thus, in this embodiment of the present application, by configuring an association relationship between at least one view and at least one instance device, it is possible to associate views with instance devices. Because an instance device is also associated with at least one instance data element, instance data elements in different datasets corresponding to different instance devices can be input and output through the associated view. Thus, this embodiment of the present application enables customization of the input and output methods of different datasets.

[0103] Furthermore, because instance devices are associated with instance data elements and views, they isolate instance business logic from views. This means that views are not directly associated with instance business logic. In other words, views do not need to interact directly with instance business logic. This decouples views from business logic and improves the maintainability of embedded software systems.

[0104] In some embodiments of the present application, the computer device may also instantiate an abstract interface based on a service configuration file to obtain at least one communication interface, where the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

[0105] The various communication interfaces described by the abstract interface may include hardware interfaces, drivers, and system protocols. Hardware interfaces may include shared memory, Ethernet interfaces, CAN (Controller Area Network) interfaces, and UART (Universal Asynchronous Receiver / Transmitter) interfaces.

[0106] For example, the service configuration information obtained by parsing the service configuration file may include interface configuration information. Based on this, the computer device can instantiate the abstract interface based on the communication interface required by the service logic indicated in the interface configuration information and the configuration information of the current hardware device, thereby obtaining at least one communication interface that meets the interface requirements of the current service logic and is compatible with the underlying hardware device.

[0107] Thus, in the embodiments of the present application, since the abstract interface describes the common features of multiple communication interfaces compatible with different hardware devices, during the software generation process, the abstract interface can be instantiated based on the service configuration file to obtain a communication interface that is compatible with the current hardware device and meets the business logic requirements. In other words, in the embodiments of the present application, various communication interfaces can be expanded from the abstract interface to accommodate the diverse communication interface requirements of different application functions.

[0108] In some embodiments of the present application, the computer device can also configure the association relationship between at least one communication interface and the communication interface of other embedded software systems based on the business profile, so that at least one communication interface can communicate with the communication interface of other embedded software systems to realize data interaction with other embedded software systems.

[0109] It should be noted that in a distributed computing scenario, a business can be divided into multiple sub-businesses, and the multiple sub-businesses can be implemented by embedded software systems on different processing cores. Among them, these different processing cores may be located on the same chip or on different chips. In the case where these different processing cores are located on different chips, these chips can be located on the same computer device or on different computer devices. Based on this, after the computer device generates an embedded software system for implementing the business logic of a certain sub-business, the embedded software system may need to exchange data with the embedded software system for implementing the business logic of other sub-businesses. Based on this, the computer device can use DevManagement to establish an association relationship between at least one communication interface of the embedded software system to be generated and the communication interface of other embedded software systems based on the interface configuration information included in the business configuration information, so that the current embedded software system can exchange data with other embedded software systems through this association relationship during subsequent operation. It can be seen that in the embodiment of the present application, by establishing an association relationship between the communication interfaces in other embedded software systems, data interaction between the generated embedded software system and other embedded software systems can be achieved, thereby supporting distributed computing.

[0110] Step 304: Generate an embedded software system based on the instance business logic and at least one view.

[0111] After obtaining the instance business logic and at least one view, the computer device may call a basic service to generate an embedded software system based on the instance business logic and at least one view, wherein the embedded software system includes the instance business logic and at least one view.

[0112] In some embodiments of the present application, the computer device may further call a basic service to generate the embedded software system based on the instance business logic, the associated instance device, and the at least one view, wherein the embedded software system includes the instance business logic, the instance device, and the at least one view.

[0113] In some embodiments of the present application, a computer device may call a basic service to generate the embedded software system based on the instance business logic, at least one view, and at least one communication interface, wherein the embedded software system includes the instance business logic, at least one view, and at least one communication interface.

[0114] In some embodiments of the present application, a computer device may call a basic service to generate the embedded software system based on the instance business logic, the instance device, the at least one view, and the at least one communication interface. The embedded software system includes the instance business logic, the instance device, the at least one view, and the at least one communication interface.

[0115] After the embedded software system is generated, the computer device may call basic services and a BSP (Board Support Package), or call basic services and an operating system, to run the embedded software system to implement specific application functions.

[0116] In summary, in the embodiments of the present application, the abstract business logic describes the common features of multiple business logics, and the abstract view describes the common features of multiple views. Thus, when developing application functions, the computer device instantiates the abstract business logic according to the business configuration file, thereby obtaining the business logic for implementing specific application functions. Similarly, by instantiating the abstract view differently according to the business configuration file, it is possible to obtain views suitable for the business logic. This eliminates the need to fully write the business logic and views, thereby improving the development efficiency of the embedded software system.

[0117] In addition, in the embodiments of the present application, by instantiating the abstract devices associated with the abstract data elements, the instance data elements and the instance devices can be associated. In this way, each instance device is associated with at least one instance data element, which is equivalent to classifying the instance data elements based on different instance devices. It can be seen that when developing for different application functions, different data combination methods can be obtained by instantiating abstract devices associated with different abstract data elements, which can better meet the needs of data combination diversity in the software development process. Moreover, since the instance devices in the embodiments of the present application can also be associated with views, the instance data elements associated with different instance devices can be input and output through the associated views. In this way, the input and output methods of the instance data elements associated with the instance devices can be customized.

[0118] Finally, in an embodiment of the present application, a computer device can implement data interaction between the embedded software system and other embedded software systems by instantiating an abstract interface and establishing an association relationship between the communication interfaces of other embedded software systems, thereby supporting the implementation of distributed computing.

[0119] It can be seen from the above method of generating an embedded software system that the generated embedded software system will include instance business logic and at least one view. Subsequently, the computer device can run the embedded software system by calling basic services and BSP, or calling basic services and an operating system. When the embedded software system is running, as shown in FIG5 , at least one view in the embedded software system can be used to receive and parse operation instructions, and send the parsed content to the instance business logic; the instance business logic can be used to perform data processing based on the parsed content, and send the data processing results to at least one view; thereafter, at least one view can be used to output the data processing results.

[0120] In some embodiments of the present application, as shown in FIG6 , when the instance business logic includes multiple instance data elements and multiple instance logic elements, at least one view can send the parsed content to the target instance data element to update the value included in the target instance data element. The target instance logic element associated with the target instance data element calls the updated value to perform an operation, obtains the operation result, and updates the operation result to other associated instance data elements. The instance logic elements associated with other instance data elements continue to call the updated value to perform operations, and so on, until the data processing result is obtained, and the data processing result is updated to the instance data element for output. In this way, the instance data element for output can send the data processing result to at least one view, and the at least one view outputs the data processing result. For example, the data processing result is displayed by the user interface in the at least one view.

[0121] In some embodiments of the present application, referring to FIG. 7 , when the embedded software system further includes an instance device, as described in the aforementioned embodiments, the instance device can be associated with at least one instance data element and a view. Based on this, after receiving and parsing an operation instruction through a view among at least one view, the embedded software system can send the parsed content to the instance device associated with the view, which then updates the associated instance data element based on the parsed content.

[0122] Subsequently, after the data processing result is updated to the output instance data element, the instance data element can send the data processing result to the associated instance device, and then the associated instance device sends the data processing result to the associated view, and the associated view outputs the data processing result.

[0123] It should be noted that each instance device can query in real time whether its associated instance data element has updated data processing results. When it is found that the associated instance data element has updated data processing results, it can obtain the data processing results in the instance data element and output them to the associated view.

[0124] Optionally, after updating the data processing results in an instance data element, the instance data element can also proactively send an update notification to the associated instance device. Upon receiving the update notification, the associated instance device reads the updated data processing results in the instance data element. This eliminates the need for the instance device to proactively query the associated instance data element in real time to determine if updates have occurred, improving the real-time interaction between the instance data element and the instance device.

[0125] Alternatively, when the instance data element proactively sends update notifications to the instance device, the instance data element can be designed to be lock-free, meaning no read-write locks are set for the values ​​within the instance data element. This can further improve the real-time interaction of the embedded software system and, because the instance data element proactively notifies the instance device to read the updated content, reduce the occurrence of data read-write conflicts.

[0126] In some embodiments of the present application, referring to FIG8 , when the embedded software system further includes at least one communication interface, the at least one communication interface may be used to receive an operation instruction and send the operation instruction to at least one view.

[0127] In the case where the at least one communication interface is associated with a communication interface of another embedded software system, the at least one communication interface can also be used to receive an operation instruction sent by the communication interface associated with the other embedded software system, and send the operation instruction to at least one view. The other embedded software system here can be located on the same computer device as the current embedded software system, or on a computer device different from the computer device where the current embedded software system is located. That is, the at least one communication interface can be used to implement communication between different embedded software systems on the same computer device, or between embedded software systems on different computer devices, so as to support the implementation of distributed computing.

[0128] Based on the introduction in the above embodiment, the embodiment of the present application also provides a method for generating an embedded software system and running the embedded software system. Referring to Figure 9, a software generation device can be deployed on a computer device, and the software generation device can load and parse the service configuration file edited by the user through the PC configuration tool. Afterwards, the software generation device can instantiate abstract business logic, abstract view, abstract device and abstract interface based on the business configuration information obtained by parsing, thereby obtaining instance business logic, at least one view, instance device and at least one communication interface. Afterwards, the software generation device calls the basic service to generate an embedded software system including the instance business logic, at least one view, instance device and at least one communication interface. Subsequently, when the embedded software system is running, the instance business logic, at least one view, instance device and at least one communication interface call the basic service, and at least one communication interface calls the BSP or operating system to implement specific application functions.

[0129] Illustratively, an embodiment of the present application also provides a schematic diagram of a distributed computing system, see Figure 10, the distributed computing system includes four embedded software systems generated by the method for generating an embedded software system introduced in the aforementioned embodiment, namely system 1 to system 4, wherein system 1 includes instance business logic 1, system 2 includes instance business logic 2, system 3 includes instance business logic 3, and system 4 includes an HMI (Human Machine Interface) model and a Panel model, wherein the HMI model is the instance business logic of system 4. The Panel model is the model included in the view in system 4. According to the business logic requirements, the instance business logic of each of the above systems can exchange data with other systems through its associated instance devices, views and communication interfaces, thereby realizing distributed computing.

[0130] FIG11 is a schematic diagram of the structure of an embedded software system generation device provided in an embodiment of the present application. The embedded software system generation device can be deployed in the computer device of FIG1 , for example, deployed on any chip of the computer device shown in FIG1 , or in a processor of any chip, or in a processing core of any processor. In addition, the software generation device in FIG9 can also be implemented by the embedded software system generation device. Referring to FIG11 , the embedded software system generation device includes:

[0131] Acquisition module 1101, used to acquire a service configuration file;

[0132] The business logic creation module 1102 is used to instantiate the abstract business logic based on the business configuration file to obtain the instance business logic. The abstract business logic is used to describe the common features of multiple instance business logics.

[0133] A view creation module 1103 is configured to instantiate an abstract view based on a business configuration file to obtain at least one view applicable to the business logic of the instance. The abstract view is used to describe common features of multiple views.

[0134] The software generation module 1104 is configured to generate an embedded software system based on the instance business logic and at least one view.

[0135] Optionally, the abstract business logic includes multiple abstract data elements and multiple abstract logical elements, each abstract data element is used to describe data of a data type, and each abstract logical element is used to describe at least one operation element; the business logic creation module 1102 is mainly used to: select multiple first abstract logical elements from multiple abstract logical elements based on the business configuration file, and select multiple first abstract data elements from multiple abstract data elements; instantiate multiple first abstract logical elements and multiple first abstract data elements based on the business configuration file to obtain multiple instance logical elements and multiple instance data elements, the instance logical elements include associated data element information and operation elements, the associated data element information is used to indicate the instance data elements associated with the instance logical elements, the operation elements are used to operate on the instance data elements associated with the instance logical elements, the instance data elements include values ​​and associated logical element information, the associated logical element information is used to indicate the instance logical elements associated with the instance data elements.

[0136] Optionally, referring to Figure 11, the apparatus further includes a device creation module 1105, which is used to: instantiate at least one abstract device associated with multiple first abstract data elements to obtain at least one instance device, wherein each abstract device is used to describe a type of entity device, and each instance device is associated with at least one instance data element from multiple instance data elements.

[0137] Optionally, the instance data element further includes associated device information, where the associated device information is used to indicate the instance device associated with the instance data element.

[0138] Optionally, the device creation module 1105 is also used to: configure an association relationship between at least one view and at least one instance device, wherein each abstract device is used to describe a type of physical device, each view is associated with at least one instance device, and each instance device is associated with at least one instance data element among multiple instance data elements.

[0139] Optionally, referring to FIG11 , the apparatus further includes an interface creation module 1106, which is used to instantiate an abstract interface based on a service profile to obtain at least one communication interface, where the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

[0140] Optionally, the interface creation module 1106 is also used to: configure the association relationship between at least one communication interface and the communication interface of other embedded software systems based on the business configuration file, so that at least one communication interface communicates with the communication interface of other embedded software systems to realize data interaction with other embedded software systems.

[0141] In the embodiments of the present application, abstract business logic describes the common features of multiple business logics, and abstract views describe the common features of multiple views. Thus, when developing application functions, the abstract business logic is instantiated according to the business configuration file to obtain the business logic used to implement the specific application function. Similarly, different instantiations of the abstract view according to the business configuration file can obtain views suitable for the business logic. This eliminates the need to fully write business logic and views, improving the development efficiency of embedded software systems.

[0142] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the embedded software system generation device is divided into different functional units or modules to complete all or part of the functions described above. In addition, the specific names of the modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0143] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0144] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0145] Among them, when the embodiments of the present application are implemented using software, they can be implemented in whole or in part in the form of a computer program product. That is, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program, when executed by a processor, can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0146] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for generating an embedded software system, wherein: The method comprises: Get the service configuration file; Instantiating the abstract business logic based on the business configuration file to obtain the instance business logic, wherein the abstract business logic is used to describe the common features of multiple business logics; Instantiating the abstract view based on the business configuration file to obtain at least one view applicable to the business logic of the instance, wherein the abstract view is used to describe common features of multiple views; The embedded software system is generated based on the instance business logic and the at least one view.

2. The method according to claim 1, wherein: The abstract business logic includes a plurality of abstract data elements and a plurality of abstract logic elements, each abstract data element is used to describe data of a data type, and each abstract logic element is used to describe at least one computing element; The instantiating of the abstract business logic based on the business configuration file includes: Selecting a plurality of first abstract logical elements from the plurality of abstract logical elements based on the service profile, and selecting a plurality of first abstract data elements from the plurality of abstract data elements; The multiple first abstract logical elements and the multiple first abstract data elements are instantiated based on the business configuration file to obtain multiple instance logical elements and multiple instance data elements, the instance logical elements include associated data element information and operation elements, the associated data element information is used to indicate the instance data elements associated with the instance logical elements, the operation elements are used to operate on the instance data elements associated with the instance logical elements, the instance data elements include values ​​and associated logical element information, the associated logical element information is used to indicate the instance logical elements associated with the instance data elements.

3. The method according to claim 2, wherein: The method further comprises: At least one abstract device associated with the multiple first abstract data elements is instantiated to obtain at least one instance device, wherein each abstract device is used to describe a type of physical device, and each instance device is associated with at least one instance data element of the multiple instance data elements.

4. The method according to claim 3, wherein: The instance data element further includes associated device information, where the associated device information is used to indicate the instance device associated with the instance data element.

5. The method according to claim 3 or 4, wherein: The method further comprises: An association relationship between the at least one view and the at least one instance device is configured, where each view is associated with at least one instance device.

6. The method according to any one of claims 1 to 5, wherein: The method further comprises: The abstract interface is instantiated based on the service configuration file to obtain at least one communication interface, wherein the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

7. The method according to claim 6, wherein: The method further comprises: An association relationship between the at least one communication interface and the communication interfaces of other embedded software systems is configured based on the service configuration file, so that the at least one communication interface communicates with the communication interfaces of the other embedded software systems to achieve data interaction with the other embedded software systems.

8. An embedded software system generation device, wherein: The device comprises: An acquisition module is used to acquire a business configuration file; A business logic creation module, used to instantiate the abstract business logic based on the business configuration file to obtain the instance business logic, wherein the abstract business logic is used to describe the common features of multiple instance business logics; A view creation module, configured to instantiate an abstract view based on the business configuration file to obtain at least one view applicable to the business logic of the instance, wherein the abstract view is used to describe common features of multiple views; A software generation module is used to generate the embedded software system based on the instance business logic and the at least one view.

9. The device according to claim 8, wherein: The abstract business logic includes a plurality of abstract data elements and a plurality of abstract logic elements, each abstract data element is used to describe data of a data type, and each abstract logic element is used to describe at least one computing element; The business logic creation module is mainly used for: Selecting a plurality of first abstract logical elements from the plurality of abstract logical elements based on the service profile, and selecting a plurality of first abstract data elements from the plurality of abstract data elements; The multiple first abstract logical elements and the multiple first abstract data elements are instantiated based on the business configuration file to obtain multiple instance logical elements and multiple instance data elements, the instance logical elements include associated data element information and operation elements, the associated data element information is used to indicate the instance data elements associated with the instance logical elements, the operation elements are used to operate on the instance data elements associated with the instance logical elements, the instance data elements include values ​​and associated logical element information, the associated logical element information is used to indicate the instance logical elements associated with the instance data elements.

10. The device according to claim 9, wherein: The apparatus further comprises a device creation module, wherein the device creation module is configured to: At least one abstract device associated with the multiple first abstract data elements is instantiated to obtain at least one instance device, wherein each abstract device is used to describe a type of physical device, and each instance device is associated with at least one instance data element of the multiple instance data elements.

11. The device according to claim 10, wherein: The instance data element further includes associated device information, where the associated device information is used to indicate the instance device associated with the instance data element.

12. The device according to claim 10 or 11, wherein: The device creation module is also used for: An association relationship between the at least one view and the at least one instance device is configured, where each view is associated with at least one instance device.

13. The device according to any one of claims 8 to 12, wherein: The device also includes an interface creation module, and the interface creation module is used to: The abstract interface is instantiated based on the service configuration file to obtain at least one communication interface, wherein the abstract interface is used to describe common features of multiple communication interfaces adapted to different hardware devices.

14. The device according to claim 13, wherein: The interface creation module is also used for: An association relationship between the at least one communication interface and the communication interfaces of other embedded software systems is configured based on the service configuration file, so that the at least one communication interface communicates with the communication interfaces of the other embedded software systems to achieve data interaction with the other embedded software systems.

15. A chip, wherein: The chip includes a processor, and the processor is used to execute a computer program to implement the embedded software system generation method according to any one of claims 1 to 7.

16. A computer device, wherein: The computer device includes at least one chip, and the chip is used to execute a computer program to implement the embedded software system generation method according to any one of claims 1 to 7.

17. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the embedded software system generation method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Low-code componentized software development method and system for financial reimbursement receipt machine

    CN115373640A

  • Distributed relay protection system generation method and device, electronic equipment and medium

    CN115525323A

  • Embedded software system generation method and device, chip, equipment and storage medium

    CN116414367A

  • Method and system for building transactional applications using an integrated development environment

    US20090158246A1

Cited By

  • Modeling method and system of relay protection device

    CN121092155A