Embedded software auxiliary automatic integration system and method and medium
By using an embedded software-assisted automatic integration system, embedded software modules are automatically registered and configured, solving the problem of complex and cumbersome code integration processes in existing technologies. This enables one-click automatic registration and periodic configuration of code modules, improving the level of automation.
Patent Information
- Application Number
- CN202411084176.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-27
AI Technical Summary
The code integration process in existing embedded software development is complex and cumbersome. Automation tools cannot operate completely autonomously and require manual assistance for registration, configuration of cycles, and triggering of operation commands.
An embedded software-assisted automatic integration system is provided, including a configuration module, an automatic registration module, a table reading module, a command monitoring module, and a result monitoring module. By obtaining the configuration file, reading the file path and command interval, the system automatically registers the code module, obtains the correspondence between the module and the cycle, and triggers commands in sequence to read the integration results.
It enables one-click automatic registration and periodic configuration of code modules, reducing manual operations, improving the automation level of code integration, and simplifying the operation process.
Smart Images

Figure CN118708166A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of code integration, and in particular to an embedded software-assisted automatic integration system, method and medium. Background Art
[0002] In the current embedded software development environment, the integration process of model-generated code is often a complex and tedious task. This process involves merging the code snippets generated by the model conversion tool with the existing embedded software framework and ensuring that they can work together. This process includes multiple steps, such as registering the newly generated code, configuring cycle scheduling, updating dependencies, integrating into the software framework, and performing necessary testing and verification.
[0003] In order to reduce the complexity and tediousness of the process, currently, automation tools (such as Bosch integration tools) are mainly used to automatically complete some repetitive tasks, such as registering code, updating dependencies, and configuring scheduling. These tools can perform operations based on predefined rules or templates, reducing the need for manual operations.
[0004] However, in the actual operation process, manual operation is required to register the software module, and after each execution operation is completed, the operator is required to trigger the next operation instruction. In addition, the software code involves multiple modules, and each module corresponds to a different operating cycle. In actual operation, the operator is required to configure the cycle of each module in turn.
[0005] Therefore, there is an urgent need for an embedded software-assisted automatic integration system, method and medium to solve the problem that existing code integration automation tools are not fully autonomous and require manual assistance. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the present application provides an embedded software-assisted automatic integration system, method and medium to solve the problem that the existing code integration automation tools cannot be fully autonomous and require manual assistance.
[0007] In the first aspect, the present application provides an embedded software-assisted automatic integration system, the system comprising: a configuration module, used to obtain a configuration file, and then read the file path of the integrated code and the input interval between preset commands; an automatic registration module, used to read each code file based on the file path of the integrated code, and then determine the specific path of the file to be registered based on the preset registration regulations; write the file information corresponding to the specific path into a first xml file; replace the original xml file in the engineering file corresponding to the integrated code with the first xml file, and then complete the registration of modules corresponding to all code files; a table reading module, used to obtain a table containing the correspondence between modules and cycles; read the table to obtain the correspondence between modules and cycles; a command monitoring module, used to obtain the preset command set corresponding to the module, and determine the trigger time of each preset command in the preset command set based on the input interval between the preset commands; a result monitoring module, used to read the log file in the engineering file after all preset commands are triggered to obtain the integration result of the integrated code.
[0008] Furthermore, the configuration module includes a data uploading unit, which is used to obtain a configuration file through a preset interface; wherein the configuration file is a Json file.
[0009] Furthermore, the command monitoring module includes a command selection unit for reading a plurality of preset command sets and displaying them on a preset display interface, and determining the only preset command set as the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
[0010] Furthermore, the result monitoring module includes a result processing unit, which is used to extract the integration file and manage the version number when the integration result is successful; when the integration result is failed, based on the file path of the integration code, open the error file with one click, so that the user can find the error and modify it conveniently; wherein, the file path of the integration code is the notepad path.
[0011] In the second aspect, the present application provides an embedded software assisted automatic integration method, the method comprising: obtaining a configuration file, and then reading the file path of the integrated code and the input interval between preset commands; based on the file path of the integrated code, reading each code file, and then determining the specific path of the file to be registered based on the preset registration regulations; writing the file information corresponding to the specific path into a first xml file; replacing the original xml file in the engineering file corresponding to the integrated code with the first xml file, and then completing the registration of modules corresponding to all code files; obtaining a table containing the correspondence between modules and cycles; reading the table to obtain the correspondence between modules and cycles; obtaining the preset command set corresponding to the module, and determining the trigger time of each preset command in the preset command set based on the input interval between the preset commands; after all preset commands are triggered, reading the log file in the engineering file to obtain the integration result of the integrated code.
[0012] Further, obtaining the configuration file specifically includes: obtaining the configuration file through a preset interface; wherein the configuration file is a Json file.
[0013] Furthermore, the acquisition module corresponds to a preset command set, specifically including: reading several preset command sets and displaying them on a preset display interface, and determining the only preset command set as the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
[0014] Furthermore, after obtaining the integration result of the integration code, the method includes: reading a plurality of preset command sets and displaying them on a preset display interface, and determining a unique preset command set as the preset command set corresponding to the current integration code through a preset selection key on the preset display interface.
[0015] In a third aspect, the present application provides an embedded software-assisted automatic integration device, the device comprising: a processor; and a memory on which executable code is stored, and when the executable code is executed, the processor executes an embedded software-assisted automatic integration method such as any one of the above.
[0016] In a fourth aspect, the present application provides a non-volatile computer storage medium having computer instructions stored thereon, which when executed implement an embedded software-assisted automatic integration method as described above.
[0017] Those skilled in the art can understand that the present application has at least the following beneficial effects: This application achieves one-click automatic registration of all modules corresponding to the integrated code by writing the file information corresponding to the specific path into the first xml file; replacing the original xml file in the engineering file corresponding to the integrated code with the first xml file. By obtaining the preset command set corresponding to the module and determining the trigger time of each preset command in the preset command set based on the input interval between the preset commands, the preset commands are triggered in sequence according to the trigger time, solving the problem that the operator needs to trigger the next operation instruction after each execution operation is completed; by obtaining a table containing the correspondence between modules and cycles; reading the table and obtaining the correspondence between modules and cycles, the correspondence between all modules and cycles is automatically obtained, solving the problem that in actual operation, the operator needs to configure the cycle of each module in sequence.
[0018] In summary, this application solves the problem that existing code integration automation tools cannot be fully autonomous and require human assistance. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Some embodiments of the present disclosure are described below with reference to the accompanying drawings, in which: Figure 1 It is a schematic diagram of the internal structure of an embedded software-assisted automatic integration system provided in an embodiment of the present application.
[0020] Figure 2 This is a flow chart of an embedded software-assisted automatic integration method provided in an embodiment of the present application.
[0021] Figure 3 It is a schematic diagram of the internal structure of an embedded software-assisted automatic integration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be understood by those skilled in the art that the embodiments described below are only preferred embodiments of the present disclosure, and do not mean that the present disclosure can only be implemented through the preferred embodiments. The preferred embodiments are only used to explain the technical principles of the present disclosure, and are not used to limit the protection scope of the present disclosure. Based on the preferred embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should still fall within the protection scope of the present disclosure.
[0023] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0024] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0025] Figure 1 An embedded software-assisted automatic integration system is provided in an embodiment of the present application. Figure 1 As shown, the system provided in the embodiment of the present application mainly includes: The configuration module 110 is used to obtain a configuration file, and then read the file path of the integrated code and the input interval between preset commands.
[0026] It should be noted that the configuration module 110 is an existing component that can read the configuration file to obtain the input interval between the file path and the preset command. The configuration file can be a json file, and those skilled in the art can configure the json file to complete the input interval between the configuration file path and the preset command in one go.
[0027] The configuration file can be obtained by: The data upload unit in the configuration module 110 obtains the configuration file through a preset interface; wherein the configuration file is a Json file.
[0028] The automatic registration module 120 is used to read each code file based on the file path of the integrated code, and then determine the specific path of the file to be registered based on the preset registration regulations; write the file information corresponding to the specific path into the first XML file; replace the original XML file in the engineering file corresponding to the integrated code with the first XML file, and then complete the registration of modules corresponding to all code files.
[0029] It should be noted that the automatic registration module 120 can write the file information corresponding to the specific path of the existing file that can read the file automatically and needs to be registered into the first xml file, as well as a component for replacing the first xml file with the original xml file. The preset registration rule can be a file suffix, and when the file suffix meets the registration suffix, the file is determined to be a file that needs to be registered. In addition, a project file refers to a collection of files established to achieve code integration. These file collections usually include multiple source code files, library files, project files, header files, etc., which together constitute the complete structure of the software project.
[0030] The table reading module 130 is used to obtain a table containing the correspondence between modules and cycles; read the table to obtain the correspondence between modules and cycles.
[0031] It should be noted that the table containing the correspondence between the modules and the cycles can be obtained through a preset interface. The table can be an Excel table, in which the correspondence between the modules and the cycles is stored. The table reading module 130 is an existing component capable of reading the contents of an Excel table.
[0032] The command monitoring module 140 is used to obtain a preset command set corresponding to the module, and determine the triggering time of each preset command in the preset command set based on the input interval between the preset commands.
[0033] It should be noted that the command monitoring module 140 may be an existing component or program that can obtain a preset command set and the triggering time of each preset command. The preset command set may be automatically input through a python library.
[0034] The acquisition module corresponds to a preset command set, which can be: Through the command selection unit in the command monitoring module 140, several preset command sets are read and displayed on the preset display interface, and through the preset selection key on the preset display interface, the only preset command set is determined to be the preset command set corresponding to the current integrated code.
[0035] The result monitoring module 150 is used to read the log file in the project file after all preset commands are triggered and completed, so as to obtain the integration result of the integration code.
[0036] It should be noted that the result monitoring module 150 may be an existing component or code program capable of reading a log file. After the integration is completed, a log file containing the integration result exists.
[0037] The integration result of the integrated code may be: The result processing unit in the result monitoring module 150 extracts the integration file and manages the version number when the integration result is successful; when the integration result is failed, based on the file path of the integration code, the error file is opened with one click to facilitate the user to find the error and modify it; wherein the file path of the integration code is the notepad path.
[0038] In addition, the present application embodiment also provides an embedded software assisted automatic integration method, such as Figure 2 As shown, the method provided in the embodiment of the present application mainly includes the following steps: Step 210: Obtain the configuration file, and then read the file path of the integrated code and the input interval between the preset commands.
[0039] The configuration file can be obtained by: Get the configuration file through the preset interface; the configuration file is a Json file.
[0040] Step 220, based on the file path of the integrated code, read each code file, and then determine the specific path of the file to be registered based on the preset registration regulations; write the file information corresponding to the specific path into the first xml file; replace the original xml file in the engineering file corresponding to the integrated code with the first xml file, and then complete the registration of the modules corresponding to all code files.
[0041] Step 230: Obtain a table containing the correspondence between modules and cycles; read the table to obtain the correspondence between modules and cycles.
[0042] Step 240: The module obtains a preset command set corresponding to the module, and determines the triggering time of each preset command in the preset command set based on the input interval between the preset commands.
[0043] The acquisition module corresponds to a preset command set, which can be: A plurality of preset command sets are read and displayed on a preset display interface, and a unique preset command set is determined to be the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
[0044] Step 250: After all preset commands are triggered, read the log file in the project file to obtain the integration result of the integration code.
[0045] After obtaining the integration result of the integration code, the method may also be: A plurality of preset command sets are read and displayed on a preset display interface, and a unique preset command set is determined to be the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
[0046] The above is a method embodiment of the present application. Based on the same inventive concept, the present application embodiment also provides an embedded software-assisted automatic integration device. Figure 3 As shown, the device includes: a processor; and a memory, on which executable codes are stored. When the executable codes are executed, the processor executes an embedded software-assisted automatic integration method as described in the above embodiment.
[0047] Specifically, the server obtains a configuration file, and then reads the file path of the integrated code and the input interval between the preset commands; based on the file path of the integrated code, reads each code file, and then determines the specific path of the file to be registered based on the preset registration regulations; writes the file information corresponding to the specific path into a first xml file; replaces the original xml file in the engineering file corresponding to the integrated code with the first xml file, and then completes the registration of modules corresponding to all code files; obtains a table containing the correspondence between modules and cycles; reads the table to obtain the correspondence between modules and cycles; obtains the preset command set corresponding to the module, and determines the trigger time of each preset command in the preset command set based on the input interval between the preset commands; after all preset commands are triggered, reads the log file in the engineering file to obtain the integration result of the integrated code.
[0048] In addition, an embodiment of the present application further provides a non-volatile computer storage medium on which executable instructions are stored. When the executable instructions are executed, an embedded software-assisted automatic integration method as described above is implemented.
[0049] So far, the technical solutions of the present disclosure have been described in combination with the above multiple embodiments, but it is easy for those skilled in the art to understand that the protection scope of the present disclosure is not limited to these specific embodiments. Without departing from the technical principles of the present disclosure, those skilled in the art can split and combine the technical solutions in the above-mentioned various embodiments, and can also make equivalent changes or replacements to the relevant technical features. Any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principle of the present disclosure will fall within the protection scope of the present disclosure.
Claims
1. An embedded software-assisted automatic integration system, characterized in that: The system comprises: Configuration module, used to obtain the configuration file, and then read the file path of the integration code and the input interval between the preset commands; The automatic registration module is used to read each code file based on the file path of the integrated code, and then determine the specific path of the file to be registered based on the preset registration regulations; write the file information corresponding to the specific path into the first XML file; replace the original XML file in the engineering file corresponding to the integrated code with the first XML file, and then complete the registration of the modules corresponding to all code files; A table reading module is used to obtain a table containing the corresponding relationship between the modules and the cycles; read the table to obtain the corresponding relationship between the modules and the cycles; A command monitoring module is used to obtain a preset command set corresponding to the module, and determine the trigger time of each preset command in the preset command set based on the input interval between the preset commands; The result monitoring module is used to read the log file in the project file after all preset commands are triggered to obtain the integration results of the integrated code.
2. The embedded software-assisted automatic integration system according to claim 1, characterized in that: The configuration module includes a data upload unit, Used to obtain the configuration file through the preset interface; the configuration file is a Json file.
3. The embedded software-assisted automatic integration system according to claim 1, characterized in that: The command monitoring module includes a command selection unit, It is used to read several preset command sets and display them on a preset display interface, and through a preset selection key on the preset display interface, determine that the only preset command set is the preset command set corresponding to the current integrated code.
4. The embedded software-assisted automatic integration system according to claim 1, characterized in that: The result monitoring module includes a result processing unit, It is used to extract the integration file and manage the version number when the integration result is successful; when the integration result is failed, based on the file path of the integration code, open the error file with one click to facilitate users to find errors and make corrections; among which, the file path of the integration code is the notepad path.
5. An embedded software-assisted automatic integration method, characterized in that: The method comprises: Get the configuration file, and then read the file path of the integration code and the input interval between the preset commands; Based on the file path of the integrated code, read each code file, and then determine the specific path of the file to be registered based on the preset registration regulations; write the file information corresponding to the specific path into the first xml file; replace the original xml file in the engineering file corresponding to the integrated code with the first xml file, and then complete the registration of the modules corresponding to all the code files; Obtain a table containing the correspondence between modules and cycles; read the table to obtain the correspondence between modules and cycles; The module corresponds to a preset command set, and based on the input interval between the preset commands, the trigger time of each preset command in the preset command set is determined; After all preset commands are triggered, read the log file in the project file to obtain the integration result of the integration code.
6. The embedded software-assisted automatic integration method according to claim 5, characterized in that: Get the configuration file, including: Get the configuration file through the preset interface; the configuration file is a Json file.
7. The embedded software-assisted automatic integration method according to claim 5, characterized in that: Get the preset command set corresponding to the module, including: A plurality of preset command sets are read and displayed on a preset display interface, and a unique preset command set is determined to be the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
8. The embedded software-assisted automatic integration method according to claim 5, characterized in that: After obtaining the integration result of the integration code, the method includes: A plurality of preset command sets are read and displayed on a preset display interface, and a unique preset command set is determined to be the preset command set corresponding to the current integrated code through a preset selection key on the preset display interface.
9. An embedded software-assisted automatic integration device, characterized in that: The device comprises: processor; and a memory having executable codes stored thereon, which, when the executable codes are executed, enable the processor to execute an embedded software-assisted automatic integration method as described in any one of claims 5-8.
10. A non-volatile computer storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed, they implement an embedded software-assisted automatic integration method as described in any one of claims 5-8.
