CN112346715A - Embedded software modular design method - Google Patents
Embedded software modular design method Download PDFInfo
- Publication number
- CN112346715A CN112346715A CN202011300236.9A CN202011300236A CN112346715A CN 112346715 A CN112346715 A CN 112346715A CN 202011300236 A CN202011300236 A CN 202011300236A CN 112346715 A CN112346715 A CN 112346715A
- Authority
- CN
- China
- Prior art keywords
- file
- software
- embedded software
- header file
- interface
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013461 design Methods 0.000 title claims abstract description 22
- 238000011161 development Methods 0.000 claims abstract description 16
- 230000010354 integration Effects 0.000 claims description 12
- 238000005516 engineering process Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 claims description 4
- 230000009466 transformation Effects 0.000 claims 2
- 238000004904 shortening Methods 0.000 abstract description 2
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000002054 transplantation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
Abstract
The invention relates to an embedded software modular design method, and belongs to the technical field of embedded software development. The invention provides an embedded software modular design method, which can be used for making the embedded software in an armored vehicle system have clear layers, adopting modular design for each function and interface, reducing the association degree of an application layer and a hardware platform, improving the development rate and reusability of the embedded software, further reducing the development cost and shortening the development period.
Description
Technical Field
The invention belongs to the technical field of embedded software development, and particularly relates to an embedded software modular design method.
Background
With the development of computer technology and the wide application of software, the proportion of embedded software in armored vehicles is increasing, and the scale and complexity of the embedded software are increasing. Embedded software has become a core part of armored vehicles and software quality issues have become bottlenecks in the quality of armored vehicles. However, the functions and the layers of embedded software in the existing armored vehicle system are not clearly divided, and the association degree of an application layer and a hardware platform is too high, so that the transplanting difficulty of the embedded software among different platforms is high, and the development period is long.
The embedded software development technology mainly comprises a structuring method, an object-oriented method and a modularization method. The structured method emphasizes process abstraction and function modularization, is one of the most mature and widely applied software development methods, but is very sensitive to system functions, often needs redesign when the functions are changed, and is poor in transportability. The object-oriented development method overcomes the difficulty of structuralization, and has the advantages of simple maintenance, high portability and high integration. The object-oriented development method reuses source code level, and the software is difficult to realize at present when being produced on a production line like hardware and assembled into an embedded system software like a shelf product.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the invention is as follows: how to provide an embedded software modular design method.
(II) technical scheme
In order to solve the technical problem, the invention provides an embedded software modular design method, wherein the embedded software is divided into three layers: the software function module layer 1 consists of a plurality of application function modules 1.1, an application software supporting layer 2 and an interface driving module layer 3; the application software supporting layer 2 constructs a plurality of software integration frames 2.1 according to different hardware environments; the interface driving module layer 3 comprises a plurality of standard interface driving libraries 3.1, each standard interface driving library 3.1 consists of a header file 3.1.1 and a driving file 3.1.2, and the header file and the driving file adopt the same file name; a file description 4 is provided for each layer of files.
Preferably, the header file 3.1.1 and the driver file 3.1.2 of each standard interface driver library 3.1 use the same file name, but have different extensions, i.e., h and c, respectively, so as to facilitate searching the relevant information corresponding to the same standard interface driver library 3.1 in the engineering.
Preferably, the header file 3.1.1 is a file for defining and converting a relationship between the interface driver module layer 3 and a hardware connection pin in the hardware platform 5, and is an interaction channel between the interface driver module layer 3 and the hardware platform 5, and each header file 3.1.1 is encapsulated with four parts, namely, a header file information description, header file reference information, hardware connection pin or register definition and conversion, and a software function declaration, wherein the header file information description is used for describing a function of the interface driver module layer 3 and a corresponding relationship between the interface driver module layer 3 and the hardware.
Preferably, the driver file 3.1.2, which calls the header file 3.1.1 configures the registers of each standard interface.
The invention also provides a method for realizing the design and development of the embedded software by using the method.
Preferably, the method comprises the following steps:
step 1: selecting different application function modules 1.1 according to the running platform, and executing the next step;
step 2: aiming at different application function modules 1.1, selecting a software integration framework 2.1 meeting the requirements from an application software supporting layer 2 through a file description 4 according to the project requirements, and executing the next step;
and step 3: aiming at different software integration frameworks 2.1, selecting a standard interface driving library 3.1 meeting the requirement from an interface driving module layer 3 through a file description 4, and executing the next step;
and 4, step 4: adjusting external interface parameters of a standard interface driving library 3.1 according to an actual hardware platform 5;
and 5: and according to project requirements, selecting a plurality of application function modules 1.1 to design and develop the embedded software.
The invention also provides application of the method in an armored vehicle system.
The invention also provides a use method of the method in a platform of the TMS320F28335 main processor.
The invention also provides application of the method in the technical field of embedded software development.
The invention also provides an application of the method in the technical field of computers.
(III) advantageous effects
The invention provides an embedded software modular design method, which can be used for making the embedded software in an armored vehicle system have clear layers, adopting modular design for each function and interface, reducing the association degree of an application layer and a hardware platform, improving the development rate and reusability of the embedded software, further reducing the development cost and shortening the development period.
Drawings
Fig. 1 is a schematic block diagram of an embedded software modular design method provided by the present invention.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
As shown in fig. 1, the present invention provides a modular design method for embedded software, which divides the embedded software into three layers: the software function module layer 1 consists of a plurality of application function modules 1.1, an application software supporting layer 2 and an interface driving module layer 3; the application software supporting layer 2 constructs a plurality of software integration frames 2.1 according to different hardware environments; the interface driving module layer 3 comprises a plurality of standard interface driving libraries 3.1, each standard interface driving library 3.1 consists of a header file 3.1.1 and a driving file 3.1.2, and the header file and the driving file adopt the same file name; in order to facilitate checking, calling and modifying of a designer and improve the reuse rate and the transplantation rate of a module, file descriptions 4 are provided for files of each layer, and the specific use steps are as follows:
step 1: selecting different application function modules 1.1 according to the running platform, executing the next step, and if the application function modules do not exist, providing requirements for the project group;
step 2: aiming at different application function modules 1.1, selecting a software integration framework 2.1 meeting requirements from an application software supporting layer 2 through a file description 4 according to the requirements of the project, executing the next step, and if the software integration framework does not exist, providing the requirements for a project group;
and step 3: aiming at different software integration frameworks 2.1, selecting a standard interface driving library 3.1 meeting the requirements from the interface driving module layer 3 through the file description 4, executing the next step, and if the standard interface driving library does not exist, proposing the requirements to a project group;
and 4, step 4: adjusting external interface parameters of a standard interface driving library 3.1 according to an actual hardware platform 5;
and 5: and according to project requirements, selecting a plurality of application function modules 1.1 to design and develop the embedded software.
The header file 3.1.1 and the driver file 3.1.2 of each standard interface driver library 3.1 adopt the same file name, but have different extensions, namely h and c, so that the relevant information corresponding to the same standard interface driver library 3.1 can be conveniently searched in the engineering.
The header files 3.1.1 are files for realizing the definition and conversion relationship of hardware wiring pins in the interface driving module layer 3 and the hardware platform 5, and are interaction channels between the interface driving module layer 3 and the hardware platform 5, and each header file 3.1.1 is packaged with four parts, namely header file information description, header file reference information, hardware wiring pin (or register) definition and conversion, and software function declaration, wherein the header file information description is used for explaining the function of the interface driving module layer 3 and the corresponding relationship with the hardware, so that convenience is brought to a designer to check, call and modify, and the reuse rate and the transfer rate of the module are improved.
And the driver file 3.1.2 calls the header file 3.1.1 to configure the register of each standard interface, so that each standard interface can normally communicate.
The file description 4 includes descriptions of all modules of three levels of the embedded software.
In practical application, the method of the invention takes a communication control panel containing TMS320F28335 as an example, the method mainly realizes information interaction and control with other board cards through a UART interface, a CAN interface, a GPIO interface and the like, a communication and control application function module, a control software integration framework and an interface driver are selected from top to bottom, the interface driver comprises a UART driver, a CAN driver, a GPIO driver and a TMS320F28335 bottom driver, and a software developer realizes information communication and control among the board cards through a calling module. In the project, TMS320F28335 is used as a main processor for a plurality of components, a plurality of software developers are responsible for the TMS, and the developers call modules meeting requirements from a library according to the requirements to complete software design work, so that the software development period is shortened.
In conclusion, the embedded software modular design method provided by the invention has the advantages that the embedded software in the armored vehicle system is clear in hierarchy, each function and interface are in modular design, the association degree of an application layer and a hardware platform is reduced, the development rate and reusability of the embedded software are improved, the development cost is further reduced, and the development period is shortened.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (10)
1. The modular design method of the embedded software is characterized in that the embedded software is divided into three layers: the software function module layer (1) consists of a plurality of application function modules (1.1); the application software supporting layer (2) constructs a plurality of software integration frameworks (2.1) according to different hardware environments; the interface driving module layer (3) comprises a plurality of standard interface driving libraries (3.1), each standard interface driving library (3.1) consists of a header file (3.1.1) and a driving file (3.1.2), and the header file and the driving file adopt the same file name; a file description (4) is provided for the files of each layer.
2. An embedded software modular design method as claimed in claim 1, characterized in that the header file (3.1.1) and the driver file (3.1.2) of each standard interface driver library (3.1) use the same file name but have different extensions, i.e. h and c, respectively, so as to facilitate the search of the relevant information corresponding to the same standard interface driver library (3.1) in the project.
3. The design method of an embedded software module as claimed in claim 2, wherein the header file (3.1.1) is a file for implementing the definition and transformation relationship between the interface driver module layer (3) and the hardware connection pins of the hardware platform (5), and is an interaction channel between the interface driver module layer (3) and the hardware platform (5), and each header file (3.1.1) is encapsulated with four parts, i.e., header file information description, header file reference information, hardware connection pin or register definition and transformation, and software function declaration, wherein the header file information description is used for describing the function of the interface driver module layer (3) and the corresponding relationship with the hardware.
4. A modular design method for embedded software according to claim 3, characterized in that the driver file (3.1.2), which calls the header file (3.1.1), configures the registers of each standard interface.
5. A method for implementing embedded software design development using the method of claim 4.
6. The method of claim 5, comprising the steps of:
step 1: selecting different application function modules (1.1) according to the running platform, and executing the next step;
step 2: aiming at different application function modules (1.1), selecting a software integration framework (2.1) meeting requirements from an application software supporting layer (2) through file description (4) according to project requirements, and executing the next step;
and step 3: aiming at different software integration frameworks (2.1), selecting a standard interface driving library (3.1) meeting the requirement from an interface driving module layer (3) through file description (4), and executing the next step;
and 4, step 4: adjusting external interface parameters of a standard interface driving library (3.1) according to an actual hardware platform (5);
and 5: according to project requirements, a plurality of application function modules (1.1) are selected for design and development of embedded software.
7. Use of the method of any one of claims 1 to 4 in an armored vehicle system.
8. Use of the method of any of claims 1 to 4 in a platform of a TMS320F28335 host processor.
9. Use of the method according to any one of claims 1 to 4 in the field of embedded software development technology.
10. Use of the method according to any one of claims 1 to 4 in the field of computer technology.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011300236.9A CN112346715A (en) | 2020-11-19 | 2020-11-19 | Embedded software modular design method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011300236.9A CN112346715A (en) | 2020-11-19 | 2020-11-19 | Embedded software modular design method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112346715A true CN112346715A (en) | 2021-02-09 |
Family
ID=74363080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011300236.9A Pending CN112346715A (en) | 2020-11-19 | 2020-11-19 | Embedded software modular design method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112346715A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018014478A1 (en) * | 2016-07-18 | 2018-01-25 | 百富计算机技术(深圳)有限公司 | Application development platform |
CN110275716A (en) * | 2019-06-27 | 2019-09-24 | 深圳开立生物医疗科技股份有限公司 | Deployed with devices method and device, equipment operation method and electronic equipment |
CN110780858A (en) * | 2019-10-28 | 2020-02-11 | 天津津航计算技术研究所 | Software layering architecture based on embedded operating system |
CN111309291A (en) * | 2020-01-19 | 2020-06-19 | 北京航空航天大学 | Modularized embedded software architecture, customization method and customization system thereof |
-
2020
- 2020-11-19 CN CN202011300236.9A patent/CN112346715A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018014478A1 (en) * | 2016-07-18 | 2018-01-25 | 百富计算机技术(深圳)有限公司 | Application development platform |
CN110275716A (en) * | 2019-06-27 | 2019-09-24 | 深圳开立生物医疗科技股份有限公司 | Deployed with devices method and device, equipment operation method and electronic equipment |
CN110780858A (en) * | 2019-10-28 | 2020-02-11 | 天津津航计算技术研究所 | Software layering architecture based on embedded operating system |
CN111309291A (en) * | 2020-01-19 | 2020-06-19 | 北京航空航天大学 | Modularized embedded software architecture, customization method and customization system thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Davis et al. | A strategy for comparing alternative software development life cycle models | |
US8095570B2 (en) | Decorated model architecture for efficient model-driven application development | |
JP2001109628A (en) | Software system and its developing method | |
CN101216838A (en) | XML interface configuration file distribute system and method based on WEB marker | |
CN101482817B (en) | Large-particle Java component assembly method based on black box | |
JPH10240509A (en) | Method and device for generating software application, program module and data processor | |
CN103399753A (en) | Software framework | |
US20050108684A1 (en) | Method and system for generating an application object repository from application framework metadata | |
CN101410841B (en) | Method, system and program product supporting specification of signals for simulation result viewing | |
CN110399119A (en) | A kind of modularization construction method, device, electronic equipment and storage medium | |
CN101206568B (en) | Gridding application program interface system based on Web | |
CN107871050B (en) | Data-oriented and object-oriented hybrid modeling method and storage medium | |
CN113485680B (en) | APP (application) component control system and method based on vehicle-mounted system | |
WO2002065277A2 (en) | Method and system for incorporating legacy applications into a distributed data processing environment | |
US7487498B2 (en) | Strategy for referencing code resources | |
CN103678396A (en) | Data backup method and device based on data models | |
CN112346715A (en) | Embedded software modular design method | |
Vitharana et al. | Research issues in testing business components | |
EP1445694A2 (en) | Modularization for J2ME platform implementation | |
CN116450234A (en) | C++ model library service packaging framework system and method | |
CN116339696A (en) | System and method for extensible automatic generation of cross-platform multi-language interface | |
US7058651B2 (en) | Method, computer program product, and system for automatic class generation with simultaneous customization and interchange capability | |
CN1581098A (en) | Simulator structure method | |
Yacoub et al. | A model for classifying component interfaces | |
JPH0267629A (en) | Dispersed processing method for software reutilization |
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 |