Embedded system development method, electronic equipment and storage medium

Through Python scripts and big data technology, the embedded system components are classified and component analysis is optimized, the embedded system development process is solved, the complex development problems caused by the messy compilation elements are solved, and the development efficiency and performance optimization efficiency are improved.

CN119292588APending Publication Date: 2025-01-10SHENZHEN TIANGONG JUCHUANG TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411282825.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

When the existing embedded system development methods optimize or add optimization components, the code components consume more time due to the messy compilation elements, resulting in the complexity of the overall development process.

Method used

Through Python scripts, obtain and classify components, obtain key and additional components of the underlying script based on big data, establish component composition tables, judge script types and build them, distinguish between buildable and unbuilt scripts, and optimize the development process.

Benefits of technology

Improve the efficiency of building underlying scripts, avoid the complexity of development processes caused by messy compilation elements, and improve the efficiency of development efficiency and performance optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292588A_ABST
    Figure CN119292588A_ABST
Patent Text Reader

Abstract

The invention discloses an embedded system development method, electronic equipment and a storage medium, and relates to the technical field of embedded systems.The embedded system development method comprises the steps that an existing component GG is obtained through a Python script, and the obtained component GG is classified; acquiring a plurality of underlying scripts of the embedded system, and acquiring a key component and an additional component of each underlying script based on the acquired component GG; building a demand script; the method is used for solving the problems that in the existing improvement for embedded system development, when an embedded system is optimized or optimization components are added, due to the fact that compiling elements are disordered, components of codes need to consume much time; and before performance optimization is completed, the problem that the overall development process is complicated due to the fact that bottom-layer codes cannot be built is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded systems, and in particular to an embedded system development method, electronic equipment and storage medium. Background Art

[0002] An embedded system is a special-purpose computer system that is application-centric and based on computer technology. Its software and hardware can be tailored to suit specific applications that have strict requirements on functionality, reliability, cost, size, and power consumption. Embedded systems are usually embedded in other devices or products to control, monitor, or perform specific tasks, such as smart phones, automotive electronic control systems, and controllers in medical equipment.

[0003] Existing improvements for embedded system development are usually improvements in improving code reliability and code testability, such as by reducing the amount of code or improving the clarity of the logical structure. However, this improvement method will have the problem that when there are too many scripts constituting the embedded system, the code components will take a long time to reduce the code or optimize the logical structure due to the relatively messy compilation elements, which will complicate the overall development process. For example, in the patent application with publication number CN106648682A, a dynamic data general framework for embedded system development is disclosed. This solution can reduce the amount of code and increase code reliability on the one hand; on the other hand, it can make the logical structure clear, separate the data business process from other logic, and improve the testability of the code. Other improvements for embedded system development usually establish special commands for performance optimization. This improvement method still has the problem that when establishing the special commands, the code components will take a long time due to the relatively messy compilation elements, which will still make the overall development process more complicated before the performance optimization is completed. In view of this, it is necessary to improve the existing embedded system development. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent, and proposes an embedded system development method, an electronic device and a storage medium to solve the problem that in the existing improvements for embedded system development, when optimizing or adding optimization components to the embedded system, the code components need to consume a lot of time due to the relatively messy compilation elements, and before the performance optimization is completed, the underlying code is still not completed, which complicates the overall development process.

[0005] To achieve the above objectives, in a first aspect, the present application provides an embedded system development method, comprising the following steps:

[0006] The types of multiple components constituting the embedded system are respectively recorded as component types GX 1To component type GX n ; Use Python script to obtain the existing component GG, and based on the component type GX 1 To component type GX n Classifying the obtained components GG;

[0007] Acquire multiple underlying scripts of the embedded system based on the big data, and acquire key components and additional components of each underlying script based on the acquired components GG;

[0008] When developing an embedded system, the underlying script corresponding to the system requirements of the embedded system is recorded as a requirement script; the existing component GG is recorded as an existing component YG, and the requirement script is constructed based on the existing component YG and the key components and additional components of each requirement script.

[0009] Further, a Python script is used to obtain the existing component GG and based on the component type GX 1 To component type GX n The obtained components GG are classified into the following categories:

[0010] For any component GG obtained by the Python script, use big data to obtain multiple underlying scripts containing the component GG, and record them as screening scripts SJ respectively. 1 To filter script SJ k ; For any screening script SJ k1 , and the component GG is added to the screening script SJ k1 The component type at the position where it is used is recorded as the screening type SL of the component GG. k1 ; Obtain the screening type SL of the constituent component GG in all screening scripts SJ, and record the screening type SL that appears most frequently among all screening types SL as the script type of the constituent component GG.

[0011] Further, a Python script is used to obtain the existing component GG and based on the component type GX 1 To component type GX n Classifying the obtained constituent components GG also includes:

[0012] Get the script types corresponding to all components GG obtained by the Python script; for any component GG, when the script type of the component GG matches any component type GX n1 If they are equal, the type of component GG is recorded as component type GX n1 ; When the script type of the component GG is not equal to all the component types GX, the component GG is eliminated from all the components GG.

[0013] Further, based on the acquired component GG, the key components and additional components of each underlying script are acquired, including:

[0014] Based on big data, multiple underlying scripts that constitute the embedded system are obtained and recorded as underlying scripts DJ 1 To the underlying script DJ p .

[0015] Furthermore, obtaining the key components and additional components of each underlying script based on the obtained component GG also includes:

[0016] For any underlying script DJ p1 , based on Python to obtain the underlying script DJ p1 Multiple embedded systems, and are respectively denoted as reference system CX 1 To reference system CX q :For any reference system CX q1 , the reference system CX q1 The underlying script DJ p1 The components GG of p1_1 To reference component CG p1_h ; Get the underlying script DJ in all reference systems CX p1 The corresponding reference component CG.

[0017] Furthermore, obtaining the key components and additional components of each underlying script based on the obtained component GG also includes:

[0018] Create a table of T rows and Y columns, called the component table, where the top row of the component table is filled with reference system CX from left to right except the first cell. 1 To reference system CX q , except for the first cell, fill in the component type GX from top to bottom in the leftmost column of the component table 1 To component type GX n ; Based on the underlying script DJ in all reference systems CX p1 The component type GX of the corresponding reference component CG is marked in the component table; when any row of component type GX is marked with all reference systems CX, the component type GX is recorded as the underlying script DJ p1 When any component type GX is not recorded as a key type and the row where the component type is located is marked with any reference system CX, the component type GX is recorded as the underlying script DJ p1 Additional types; all key-type components GG are recorded as underlying scripts DJp1 The key component of DJ is to record all additional components GG as the underlying script DJ p1 Additional components of .

[0019] Furthermore, obtaining the key components and additional components of each underlying script based on the obtained component GG also includes:

[0020] Get the key components and additional components corresponding to all underlying scripts DJ. For any underlying script DJ, the value obtained by dividing the number of key components of the underlying script DJ by the number of additional components is recorded as α, and the value of 1-α is recorded as β.

[0021] Furthermore, building the requirement script based on the existing component YG and the key components and additional components of each requirement script includes:

[0022] When developing embedded systems, the obtained requirement scripts are recorded as requirement scripts XJ 1 To the requirement script XJ f , for any requirement script XJ f1 , use the component composition algorithm to obtain the requirement script XJ f1 The script composition ratio and component composition algorithm are as follows: Among them, H is the proportion of script composition, h1 is the required script XJ in the existing component YG f1 The number of key components, h2 is the required script XJ f1 The number of key components, h3 is the required script XJ in the existing component YG f1 The number of additional components, h4 is the required script XJ f1 The number of additional components; when the script composition ratio is less than 1, the script XJ will be required f1 Recorded as an incomplete script; when the script composition ratio is greater than or equal to 1, the required script XJ f1 Record as buildable scripts; obtain the script composition ratio of all required scripts XJ and mark them accordingly;

[0023] Build the buildable script based on the existing component YG, and build the incomplete script after supplementing the existing component YG.

[0024] In a second aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are performed.

[0025] In a third aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are performed.

[0026] Beneficial effects of the present invention: The present invention first uses Python script to obtain the existing component GG, and based on the component type GX 1 To component type GX n The obtained components GG are classified, and then multiple underlying scripts of the embedded system are obtained based on big data, and the key components and additional components of each underlying script are obtained based on the obtained components GG. The advantage of this is that by classifying the components GG into corresponding component types GX, it is helpful to obtain the corresponding components GG more intuitively and efficiently when the key components and additional components of the underlying script are obtained later; by obtaining the key components and additional components of the underlying script, it is helpful to determine whether the underlying script can be constructed during the subsequent script construction, thereby improving the construction efficiency of the underlying script and preventing the code construction from consuming more time due to the relatively messy compilation elements;

[0027] The present invention also records the underlying scripts corresponding to the system requirements of the embedded system as requirement scripts when developing the embedded system; and builds the requirement scripts based on the existing component YG and the key components and additional components of each requirement script. The advantage of this is that it can effectively distinguish between scripts that can be built and scripts that cannot be built, thereby improving the efficiency of script building and preventing the problem of complicating the overall development process due to the failure to complete the construction of the underlying code before performance optimization is completed. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a flow chart of the steps of the method of the present invention;

[0029] Figure 2 A schematic diagram of a component composition table of the present invention;

[0030] Figure 3 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] Example 1, first aspect, please refer to Figure 1As shown, the present application provides an embedded system development method, comprising the following steps:

[0033] Step S1: record the types of multiple components constituting the embedded system as component types GX 1 To component type GX n ; Use Python script to obtain the existing component GG, and based on the component type GX 1 To component type GX n Classify the obtained components GG; Step S1 includes the following sub-steps: Step S101, for any component GG obtained by the Python script, use big data to obtain multiple underlying scripts containing the component GG, and record them as screening scripts SJ 1 To filter script SJ k ; For any screening script SJ k1 , and the component GG is added to the screening script SJ k1 The component type at the position where it is used is recorded as the screening type SL of the component GG. k1 ; Get the screening type SL of the constituent component GG in all screening scripts SJ, and record the screening type SL that appears most frequently among all screening types SL as the script type of the constituent component GG;

[0034] Step S102, obtaining the script types corresponding to all components GG obtained by the Python script; for any component GG, when the script type of the component GG is the same as any component type GX n1 If they are equal, the type of component GG is recorded as component type GX n1 ; When the script type of the component GG is not equal to all the component types GX, the component GG is eliminated from all the components GG.

[0035] Step S2, based on the big data, obtain multiple underlying scripts of the embedded system, and based on the obtained component GG, obtain the key components and additional components of each underlying script; Step S2 includes: Step S201, based on the big data, obtain multiple underlying scripts constituting the embedded system, and record them as underlying scripts DJ respectively. 1 To the underlying script DJ p ;

[0036] Step S202: for any underlying script DJ p1 , based on Python to obtain the underlying script DJ p1 Multiple embedded systems, and are respectively denoted as reference system CX 1 To reference system CX q :For any reference system CX q1, the reference system CX q1 The underlying script DJ p1 The components GG of p1_1 To reference component CG p1_h ; Get the underlying script DJ in all reference systems CX p1 The corresponding reference component CG;

[0037] Step S203: Create a table of T rows and Y columns, which is called the component table. The top row of the component table, except for the first cell, is filled with the reference system CX from left to right. 1 To reference system CX q , except for the first cell, fill in the component type GX from top to bottom in the leftmost column of the component table 1 To component type GX n ; Based on the underlying script DJ in all reference systems CX p1 The component type GX of the corresponding reference component CG is marked in the component table; when any row of component type GX is marked with all reference systems CX, the component type GX is recorded as the underlying script DJ p1 When any component type GX is not recorded as a key type and the row where the component type is located is marked with any reference system CX, the component type GX is recorded as the underlying script DJ p1 Additional types; all key-type components GG are recorded as underlying scripts DJ p1 The key component of DJ is to record all additional components GG as the underlying script DJ p1 Additional components; in the specific implementation, the component composition table can be referred to Figure 2 As shown, GX1 to GX9 are component types GX 1 To component type GX 9 CX1 to CX5 are reference systems CX 1 To reference system CX 5 ; Through analysis, we can get the component type GX 5 The key type for the underlying script DJ;

[0038] Step S204, obtain the key components and additional components corresponding to all underlying scripts DJ. For any underlying script DJ, the value of the number of key components of the underlying script DJ divided by the number of additional components is recorded as α, and the value of 1-α is recorded as β.

[0039] Step S3, when developing an embedded system, record the underlying script corresponding to the system requirements of the embedded system as a requirement script; record the existing component GG as the existing component YG, and build the requirement script based on the existing component YG and the key components and additional components of each requirement script; Step S3 includes:

[0040] When developing embedded systems, the obtained requirement scripts are recorded as requirement scripts XJ 1 To the requirement script XJ f , for any requirement script XJ f1 , use the component composition algorithm to obtain the requirement script XJ f1 The script composition ratio and component composition algorithm are as follows: Among them, H is the proportion of script composition, h1 is the required script XJ in the existing component YG f1 The number of key components, h2 is the required script XJ f1 The number of key components, h3 is the required script XJ in the existing component YG f1 The number of additional components, h4 is the required script XJ f1 The number of additional components; when the script composition ratio is less than 1, the script XJ will be required f1 Recorded as an incomplete script; when the script composition ratio is greater than or equal to 1, the required script XJ f1 Record as buildable scripts; obtain the script composition ratio of all required scripts XJ and mark them accordingly;

[0041] In the specific implementation process, for example, in a data processing process, the required script XJ is obtained f1 The corresponding h1 to h4 are 20, 10, 5 and 20 respectively, and α is 0.6 and β is 0.4. Then the demand scenario XJ can be obtained by calculation f1 The script composition ratio is 1.3. If 1.3 is greater than 1, the required script XJ f1 Recorded as buildable script;

[0042] Build the buildable script based on the existing component YG, and build the incomplete script after supplementing the existing component YG.

[0043] Example 2, please refer to Figure 3 As shown, Figure 3The schematic diagram of the structure of an electronic device is illustrated. The electronic device may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in an embedded system development method are executed to achieve the following functions: First, use a Python script to obtain an existing component GG, and based on the component type GX 1 To component type GX n The obtained constituent components GG are classified, and then multiple underlying scripts of the embedded system are obtained based on big data, and the key constituent components and additional constituent components of each underlying script are obtained based on the obtained constituent components GG. Finally, when developing the embedded system, the underlying scripts corresponding to the system requirements of the embedded system are recorded as requirement scripts; the existing constituent components GG are recorded as existing components YG, and the requirement scripts are constructed based on the existing components YG and the key constituent components and additional constituent components of each requirement script.

[0044] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. 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, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0045] Embodiment 3, the present application also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute an embedded system development method provided by the above methods, the method comprising: firstly using a Python script to obtain an existing component GG, and based on the component type GX 1 To component type GX nThe obtained constituent components GG are classified, and then multiple underlying scripts of the embedded system are obtained based on big data, and the key constituent components and additional constituent components of each underlying script are obtained based on the obtained constituent components GG. Finally, when developing the embedded system, the underlying scripts corresponding to the system requirements of the embedded system are recorded as requirement scripts; the existing constituent components GG are recorded as existing components YG, and the requirement scripts are constructed based on the existing components YG and the key constituent components and additional constituent components of each requirement script.

[0046] Embodiment 4, the present application also provides a computer-readable storage medium, the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above embedded system development method are executed to achieve the following functions: first, use a Python script to obtain an existing component GG, and based on the component type GX 1 To component type GX n The obtained constituent components GG are classified, and then multiple underlying scripts of the embedded system are obtained based on big data, and the key constituent components and additional constituent components of each underlying script are obtained based on the obtained constituent components GG. Finally, when developing the embedded system, the underlying scripts corresponding to the system requirements of the embedded system are recorded as requirement scripts; the existing constituent components GG are recorded as existing components YG, and the requirement scripts are constructed based on the existing components YG and the key constituent components and additional constituent components of each requirement script.

[0047] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0048] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.

[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. 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. However, 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 embodiments of the present application.

Claims

1. A method for developing an embedded system, characterized in that: The steps include: The types of multiple components constituting the embedded system are recorded as component type GX1 to component type GX n ; Use Python script to obtain the existing component GG, and based on component type GX1 to component type GX n Classifying the obtained components GG; Acquire multiple underlying scripts of the embedded system based on the big data, and acquire key components and additional components of each underlying script based on the acquired components GG; When developing an embedded system, the underlying script corresponding to the system requirements of the embedded system is recorded as a requirement script; the existing component GG is recorded as an existing component YG, and the requirement script is constructed based on the existing component YG and the key components and additional components of each requirement script.

2. The embedded system development method according to claim 1, characterized in that: Use Python script to obtain the existing component GG and create a new component based on component type GX1 to component type GX n The obtained components GG are classified into the following categories: For any component GG obtained by the Python script, multiple underlying scripts containing the component GG are obtained using big data and recorded as screening scripts SJ1 to SJ2 respectively. k ; For any screening script SJ k1 , and the component GG is added to the screening script SJ k1 The component type at the position where it is used is recorded as the screening type SL of the component GG. k1 ; Obtain the screening types SL of the constituent component GG in all screening scripts SJ, and record the screening type SL that appears most frequently among all screening types SL as the script type of the constituent component GG.

3. The embedded system development method according to claim 2, characterized in that: Use Python script to obtain the existing component GG and create a new component based on component type GX1 to component type GX n Classifying the obtained constituent components GG also includes: Get the script types corresponding to all components GG obtained by the Python script; for any component GG, when the script type of the component GG matches any component type GX n1 If they are equal, the type of component GG is recorded as component type GX n1 ; When the script type of the component GG is not equal to all the component types GX, the component GG is eliminated from all the components GG.

4. The embedded system development method according to claim 3, characterized in that: Based on the obtained component GG, the key components and additional components of each underlying script are obtained, including: Based on big data, multiple underlying scripts constituting the embedded system are obtained and recorded as underlying scripts DJ1 to DJ p .

5. The embedded system development method according to claim 4, characterized in that: The key components and additional components of each underlying script are obtained based on the obtained component GG, and the following are also included: For any underlying script DJ p1 , based on Python to obtain the underlying script DJ p1 The multiple embedded systems are respectively denoted as reference system CX1 to reference system CX q :For any reference system CX q1 , the reference system CX q1 The underlying script DJ p1 The components GG of p1_1 To reference component CG p1_h ; Get the underlying script DJ in all reference systems CX p1 The corresponding reference component CG.

6. The embedded system development method according to claim 5, characterized in that: The key components and additional components of each underlying script are obtained based on the obtained component GG, and the following are also included: Create a table of T rows × Y columns, called the component table, where the top row of the component table, except for the first cell, is filled with reference system CX1 to reference system CX from left to right. q , except for the first cell in the leftmost column of the component table, fill in component types GX1 to GX from top to bottom. n ; Based on the underlying script DJ in all reference systems CX p1 The component type GX of the corresponding reference component CG is marked in the component table; when any row of component type GX is marked with all reference systems CX, the component type GX is recorded as the underlying script DJ p1 When any component type GX is not recorded as a key type and the row where the component type is located is marked with any reference system CX, the component type GX is recorded as the underlying script DJ p1 Additional types; all key-type components GG are recorded as underlying scripts DJ p1 The key component of DJ is to record all additional components GG as the underlying script DJ p1 Additional components of .

7. An embedded system development method according to claim 6, characterized in that: The key components and additional components of each underlying script are obtained based on the obtained component GG, and the following are also included: Get the key components and additional components corresponding to all underlying scripts DJ. For any underlying script DJ, the value obtained by dividing the number of key components of the underlying script DJ by the number of additional components is recorded as α, and the value of 1-α is recorded as β.

8. An embedded system development method according to claim 7, characterized in that: Building the requirement script based on the existing component YG and the key components and additional components of each requirement script includes: When developing an embedded system, the acquired requirement scripts are recorded as requirement scripts XJ1 to XJ f , for any requirement script XJ f1 , use the component composition algorithm to obtain the requirement script XJ f1 The script composition ratio and component composition algorithm are as follows: Among them, H is the proportion of script composition, h1 is the required script XJ in the existing component YG f1 The number of key components, h2 is the required script XJ f1 The number of key components, h3 is the required script XJ in the existing component YG f1 The number of additional components, h4 is the required script XJ f1 The number of additional components; when the script composition ratio is less than 1, the script XJ will be required f1 Recorded as an incomplete script; when the script composition ratio is greater than or equal to 1, the required script XJ f1 Record as buildable scripts; obtain the script composition ratio of all required scripts XJ and mark them accordingly; Build the buildable script based on the existing component YG, and build the incomplete script after supplementing the existing component YG.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 8 are executed.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • Dynamic-data general framework facing embedded system development

    CN106648682A