CN118012494B - Embedded software configuration management and multiplexing system and method - Google Patents

Embedded software configuration management and multiplexing system and method Download PDF

Info

Publication number
CN118012494B
CN118012494B CN202410396206.4A CN202410396206A CN118012494B CN 118012494 B CN118012494 B CN 118012494B CN 202410396206 A CN202410396206 A CN 202410396206A CN 118012494 B CN118012494 B CN 118012494B
Authority
CN
China
Prior art keywords
module
code
configuration
remote
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410396206.4A
Other languages
Chinese (zh)
Other versions
CN118012494A (en
Inventor
苗壮
范建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Dingxin Communication Power Engineering Co ltd
Qingdao Topscomm Communication Co Ltd
Original Assignee
Qingdao Dingxin Communication Power Engineering Co ltd
Qingdao Topscomm Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Dingxin Communication Power Engineering Co ltd, Qingdao Topscomm Communication Co Ltd filed Critical Qingdao Dingxin Communication Power Engineering Co ltd
Priority to CN202410396206.4A priority Critical patent/CN118012494B/en
Publication of CN118012494A publication Critical patent/CN118012494A/en
Application granted granted Critical
Publication of CN118012494B publication Critical patent/CN118012494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of embedded software, and discloses an embedded software configuration management and multiplexing system and method. The code multiplexing unit parses the configuration file and generates a code package or module library. The method comprises the following steps: and exporting the configurable parameters and the module information. Determining a configuration file format, writing an analysis script, a code template and uploading a module resource pool; updating the module list and the parameters. And generating a configuration file after the parameters are configured, and uploading the configuration file to the code multiplexing unit. Parsing the configuration file and retrieving the module information. Generating codes and packaging the codes into code packages. It is selected whether to compile the code package. The code package or library file is sent to the configuration management unit. The invention improves the multiplexing rate in a modularized and configurable mode, and is flexible and efficient. And the visualized configuration and the code packet generation are low in difficulty and few in errors. The core units are separated, only library files compiled by the high-security-level code package are locally stored, and management cost and leakage risk are low.

Description

Embedded software configuration management and multiplexing system and method
Technical Field
The present invention relates to the field of embedded software technologies, and in particular, to an embedded software configuration management and multiplexing system and method.
Background
With the continuous development of embedded technology, embedded software has evolved from a single functional implementation in the past to a business carrier of today's large scale, high integration and complexity. In the back of increasing market demands, how to improve the multiplexing rate of embedded software, reduce software fragmentation, further improve the development efficiency of embedded software, and reduce the development cost has become the focus of attention of various industries. Particularly, for basic industries such as electric power, although embedded products are various, the embedded products have different degrees of similarity in terms of software dimension, so that effective management and integration of existing software resources and generation of scale effects of management and reuse of software modules are key to improving the competitiveness of company products, and are also a problem to be solved.
Disclosure of Invention
Aiming at the problems, the invention provides an embedded software configuration management and multiplexing system and method, which realize efficient multiplexing of embedded software by carrying out modularized management and configuration on the embedded software, thereby improving the development efficiency of the embedded software.
The object of the invention can be achieved by the following technical scheme.
An embedded software configuration management and multiplexing system comprises a local visual module configuration management unit and a remote module code multiplexing unit; in the use process, a module code package which can be directly reused or a compiled module library file is generated by one key in a visual configuration mode.
The local visual module configuration management unit is used for realizing visual configuration of module parameters and generating a parameter configuration file meeting the requirements of a specific format.
The remote module code multiplexing unit analyzes the module parameter configuration file through the script and generates a module code package capable of being directly multiplexed or a compiled module library file according to the module code template.
Preferably, the local visualization module configuration management unit comprises a remote communication module, a graphical interface management module, a parameter configuration generation module and a code export module.
The remote communication module is used for communicating with the remote module code multiplexing unit and is responsible for receiving and transmitting data; the graphic interface management module is used for module information visual management and module parameter visual configuration; the parameter configuration generating module is used for generating a parameter configuration file; the code export module is used for outputting the module code package which is received from the remote module code multiplexing unit and can be directly multiplexed or the module library file after compiling.
Preferably, the local visualized module configuration management unit reads the configurable module list and the module configurable parameter item from the remote module code multiplexing unit to update when being started.
The configurable module list and the module configurable parameter items are used for generating a module information visual management and parameter visual configuration interface.
Preferably, the remote module code multiplexing unit comprises a module resource pool, a parameter configuration analysis module, a code generation module and a code compiling module.
The module resource pool is used for managing module information, module parameter configuration file analysis scripts, module code templates, module source codes, a configurable module list and module configurable parameter items; the parameter configuration analysis module is used for analyzing the parameter configuration file received from the local visual module configuration management unit and retrieving corresponding module information from the module resource pool; the code generation module is used for generating a module code capable of being directly multiplexed according to the corresponding module code template, and packaging the module code and the unalterable part of the module source code together to generate a module code package; the code compiling module compiles the module code package to generate a module library file.
Preferably, the module resource pool supports dynamic updating of module parameter configuration file parsing scripts, module code templates, module source code, configurable module lists, and module configurable parameter items therein.
Preferably, the local visualization module configuration management unit and the remote module program management unit may be deployed on a local computer and a remote server, respectively, or may be deployed on the same server.
The local visual module configuration management unit and the remote module program management unit communicate by using Ethernet.
An embedded software configuration management and multiplexing method comprises the following steps.
Step 1: and carrying out modularized packaging on the embedded software to be multiplexed according to the functional requirement, and analyzing changing points in multiplexing according to the characteristics of the modules in the packaging process to derive corresponding configurable parameters and module information.
Step 2: and determining a parameter configuration file format according to the derived configurable parameters and the module information, and writing a parameter configuration file analysis script and a module code template.
Step 3: and uploading the module parameter configuration file analysis script, the module code template and the module source code to a module resource pool of the remote module code multiplexing unit for management.
Step 4: and updating a configurable module list of the local visual module configuration management unit and a module configurable parameter item.
Step 5: and the local visual module configuration management unit selects a module needing multiplexing to carry out parameter configuration, generates a module parameter configuration file according to the format determined in the step 2 after the configuration is completed, and uploads the module parameter configuration file to the remote module code multiplexing unit.
Step 6: the remote module code multiplexing unit analyzes the received module parameter configuration file and retrieves corresponding module information from the module resource pool.
Step 7: the remote module code multiplexing unit generates a module code capable of being directly multiplexed according to the retrieved module information, the analyzed module parameters and the module code template, and packages the module code together with the unalterable part of the module source code to generate a module code package.
Step 8: the remote module code multiplexing unit selects whether to compile the module code package into a module library file according to the configuration.
Step 9: and sending the module code package or library file to the local visual module configuration management unit for use.
The invention has the following beneficial technical effects.
1) Through the mode of modularized management and configurability of embedded software, not only is the multiplexing rate of the software improved, but also the software development process is more flexible and efficient.
2) The method adopts a visual mode to configure and generate the needed module code package by one key, reduces the difficulty of using the module by software developers, and avoids the occurrence of a plurality of low-level errors.
3) And a management mode of separating local module configuration and remote module maintenance is adopted, and for a module with higher security level, only the library file compiled by the module code package is locally stored, so that the management cost and leakage risk of software assets are reduced.
Drawings
FIG. 1 is a schematic diagram of an architecture of the present invention.
Fig. 2 is a schematic diagram of a module parameter visualization configuration in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following examples in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Examples: as shown in fig. 1, the embedded software configuration management multiplexing system of the present invention includes two core units, namely a local visual module configuration management unit and a remote module code multiplexing unit. The local visual module configuration management unit is used for realizing visual configuration of module parameters and generating a parameter configuration file meeting the requirements of a specific format through the local visual module configuration management unit; the remote module code multiplexing unit analyzes the module parameter configuration file through the script, and generates a module code package which can be directly multiplexed or a compiled module library file according to the module code template.
The local visualization module configuration management unit comprises four main modules, namely a remote communication module, a graphic interface management module, a parameter configuration generation module and a code export module. The remote communication module is used for communicating with the remote module code multiplexing unit and is responsible for receiving and transmitting data; the graphic interface management module is used for module information visual management and module parameter visual configuration; the parameter configuration generating module is used for generating a parameter configuration file; the code export module is used for outputting the module code package which is received from the remote module code multiplexing unit and can be directly multiplexed or the module library file after compiling.
The remote module code multiplexing unit comprises four main modules, namely a module resource pool, a parameter configuration analysis module, a code generation module and a code compiling module; the module resource pool is used for managing module information, module parameter configuration file analysis scripts, module code templates, module source codes, a configurable module list and module configurable parameter items; the parameter configuration analysis module is used for analyzing the parameter configuration file received from the local visual module configuration management unit and retrieving corresponding module information from the module resource pool; the code generation module is used for generating a module code capable of being directly multiplexed according to the corresponding module code template, and packaging the module code and the unalterable part of the module source code together to generate a module code package; the code compiling module compiles the module code package to generate a module library file.
When the system is used for carrying out embedded software configuration management and multiplexing, the system is divided into a module management maintenance stage and a module configuration multiplexing stage.
In the module management and maintenance stage, firstly, the embedded software to be multiplexed needs to be modularized packaged according to the function requirement, corresponding configurable parameters and module information are derived according to change points in the module feature analysis multiplexing process, and further a parameter configuration file format is determined, and fig. 2 is a parameter configuration file represented by an abstract certain FLASH storage module in an XML format, wherein the parameter configuration file comprises basic information such as module names and the like, and configurable parameters such as blockNum (block number), blockSize (block size) and unitLen (unit length) and the like.
Then, according to the format of the parameter configuration file, a parameter configuration file analysis script and a module code generation template are required to be written, wherein the analysis script is written in a Python language, and the code template is written in a Jinja template engine to generate a C language code.
And finally, uploading the module parameter configuration file analysis script, the module code template and the module source code to a server for deploying the remote module code multiplexing unit.
In the module configuration multiplexing stage, firstly, a visualized module configuration management unit is opened, after connection with a remote module code multiplexing unit is established and a configurable module list and a module configurable parameter item are updated, a module needing multiplexing is selected for parameter configuration, and fig. 2 is a schematic diagram of module parameter visualized configuration, wherein the unit is realized by adopting C++ language.
And then, waiting for the remote module code multiplexing unit to return a module code package or a module library file after completing parameter configuration and confirmation. In this process, the visualized module configuration management unit and the module code multiplexing unit can complete a series of actions such as parameter configuration file generation, parameter configuration file transmission, module information retrieval, parameter configuration file analysis, module code package generation and compilation, module code package or module library file transmission and the like in the background.
The above embodiments are illustrative of the specific embodiments of the present invention, and not restrictive, and various changes and modifications may be made by those skilled in the relevant art without departing from the spirit and scope of the invention, so that all such equivalent embodiments are intended to be within the scope of the invention.

Claims (5)

1. An embedded software configuration management and multiplexing system is characterized by comprising a local visual module configuration management unit and a remote module code multiplexing unit; in the use process, a module code package capable of being directly reused or a compiled module library file is generated by one key in a visual configuration mode;
The visual configuration of module parameters is realized through a local visual module configuration management unit, and a parameter configuration file meeting the requirement of a specific format is generated; the local visual module configuration management unit comprises a remote communication module, a graphic interface management module, a parameter configuration generation module and a code export module; the remote communication module is used for communicating with the remote module code multiplexing unit and is responsible for receiving and transmitting data; the graphic interface management module is used for module information visual management and module parameter visual configuration; the parameter configuration generating module is used for generating a parameter configuration file; the code export module is used for outputting a module code packet which is received from the remote module code multiplexing unit and can be directly multiplexed or a compiled module library file;
the remote module code multiplexing unit analyzes the module parameter configuration file through the script and generates a module code package which can be directly multiplexed or a compiled module library file according to the module code template; the remote module code multiplexing unit comprises a module resource pool, a parameter configuration analysis module, a code generation module and a code compiling module; the module resource pool is used for managing module information, module parameter configuration file analysis scripts, module code templates, module source codes, a configurable module list and module configurable parameter items; the parameter configuration analysis module is used for analyzing the parameter configuration file received from the local visual module configuration management unit and retrieving corresponding module information from the module resource pool; the code generation module is used for generating a module code capable of being directly multiplexed according to the corresponding module code template, and packaging the module code and the unalterable part of the module source code together to generate a module code package; the code compiling module compiles the module code package to generate a module library file.
2. The embedded software configuration management and multiplexing system according to claim 1, wherein the local visual module configuration management unit reads a configurable module list and module configurable parameter items from the remote module code multiplexing unit for updating when started;
the configurable module list and the module configurable parameter items are used for generating a module information visual management and parameter visual configuration interface.
3. The embedded software configuration management, multiplexing system of claim 1, wherein the module resource pool supports dynamic updating of module parameter configuration file parsing scripts, module code templates, module source code, configurable module lists, and module configurable parameter items therein.
4. The embedded software configuration management and multiplexing system according to claim 1, wherein the local visualization module configuration management unit and the remote module program management unit can be deployed on a local computer and a remote server, respectively, or can be deployed on the same server;
The local visual module configuration management unit and the remote module program management unit communicate by using Ethernet.
5. An embedded software configuration management, multiplexing method applied to the embedded software configuration management, multiplexing system of claim 1, comprising the steps of:
step 1: carrying out modularized packaging on embedded software to be reused according to functional requirements, and analyzing changing points in the multiplexing process according to module characteristics in the packaging process to derive corresponding configurable parameters and module information;
Step 2: determining a parameter configuration file format according to the derived configurable parameters and module information, and writing a parameter configuration file analysis script and a module code template;
step 3: uploading the module parameter configuration file analysis script, the module code template and the module source code to a module resource pool of a remote module code multiplexing unit for management;
step 4: updating a configurable module list of the local visual module configuration management unit and module configurable parameter items;
step 5: the local visual module configuration management unit selects a module needing multiplexing to carry out parameter configuration, generates a module parameter configuration file according to the format determined in the step 2 after completing configuration, and uploads the module parameter configuration file to the remote module code multiplexing unit;
Step 6: the remote module code multiplexing unit analyzes the received module parameter configuration file and retrieves corresponding module information from the module resource pool;
Step 7: the remote module code multiplexing unit generates a module code capable of being directly multiplexed according to the retrieved module information, the analyzed module parameters and the module code template, and packages the module code together with the unalterable part of the module source code to generate a module code package;
step 8: the remote module code multiplexing unit selects whether to compile the module code package into a module library file according to the configuration;
Step 9: the module code package or library file is sent to the local visualization module configuration management unit for use.
CN202410396206.4A 2024-04-03 2024-04-03 Embedded software configuration management and multiplexing system and method Active CN118012494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410396206.4A CN118012494B (en) 2024-04-03 2024-04-03 Embedded software configuration management and multiplexing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410396206.4A CN118012494B (en) 2024-04-03 2024-04-03 Embedded software configuration management and multiplexing system and method

Publications (2)

Publication Number Publication Date
CN118012494A CN118012494A (en) 2024-05-10
CN118012494B true CN118012494B (en) 2024-07-02

Family

ID=90954816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410396206.4A Active CN118012494B (en) 2024-04-03 2024-04-03 Embedded software configuration management and multiplexing system and method

Country Status (1)

Country Link
CN (1) CN118012494B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427563A (en) * 2020-04-23 2020-07-17 遂宁摩天时代科技有限公司 Visual programming control system and method for function machine
CN113703749A (en) * 2021-09-06 2021-11-26 河北雄安新区公安局 Information system based on visual programming technology and construction method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010780B2 (en) * 2001-09-17 2006-03-07 Intel Corporation Method and system for software modularization and automatic code generation for embedded systems
CN102207887B (en) * 2011-05-04 2016-08-10 山东智慧生活数据系统有限公司 A kind of embedded OS Rapid transplant method and device thereof
KR101585044B1 (en) * 2014-04-15 2016-01-13 주식회사 셈웨어 Integrated processing system for programming languages
CN115809051A (en) * 2022-12-29 2023-03-17 东南大学 Interpreter of reconfigurable cryptographic algorithm based on customized high-level C language
CN116860209A (en) * 2023-06-28 2023-10-10 中国航空无线电电子研究所 Airborne embedded display software development system and method based on QT and SCADE
CN117389541B (en) * 2023-12-13 2024-02-23 中国人民解放军国防科技大学 Configuration system and device for generating template based on dialogue retrieval

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427563A (en) * 2020-04-23 2020-07-17 遂宁摩天时代科技有限公司 Visual programming control system and method for function machine
CN113703749A (en) * 2021-09-06 2021-11-26 河北雄安新区公安局 Information system based on visual programming technology and construction method thereof

Also Published As

Publication number Publication date
CN118012494A (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN109086199B (en) Method, terminal and storage medium for automatically generating test script
US7895137B2 (en) Rules generation for IT resource event situation classification
US7694272B2 (en) Method, a language and a system for the definition and implementation of software solutions by using a visualizable computer executable modeling language
CN105022630B (en) A kind of assembly management system and assembly management method
CN110502212B (en) Multi-language-oriented high concurrency online development supporting method
CN112764753B (en) Project deployment method and device, electronic equipment and storage medium
US10169222B2 (en) Apparatus and method for expanding the scope of systems management applications by runtime independence
CN112433722B (en) Modularized system code development method, device, equipment and system
CN109995643A (en) Business mail push method and device
CN102770842A (en) Pattern-based user interfaces
CN101668047A (en) Method and device for automatically generating composite service description language
CN114047970A (en) Configuration method and system of AUTOSAR (automotive open system architecture) architecture software
CN112328257A (en) Code conversion method and device
CN118012494B (en) Embedded software configuration management and multiplexing system and method
CN112230892B (en) Fault management method based on extensible markup language
CN116227625A (en) Intelligent model development method, medium and equipment
CN114895880A (en) Code generation method and device and computer readable medium
CN112783486B (en) Method and system for generating whole-process evidence chain multiplexing of aeroengine software
CN117931134B (en) Rule engine-based supply chain design system
JP2009230606A (en) Source code template generator
CN116882725A (en) Business process generation method and device, storage medium and electronic equipment
CN117971228A (en) Automatic generation method and system for C# code and electronic device
CN112799647A (en) Business personnel-oriented rule engine adapter device identification method
CN118331551A (en) Serialization processing method and related equipment
CN116828073A (en) Message conversion method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant