[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114546346A - Design method of running framework of functional software and readable storage medium - Google Patents

Design method of running framework of functional software and readable storage medium Download PDF

Info

Publication number
CN114546346A
CN114546346A CN202210182614.0A CN202210182614A CN114546346A CN 114546346 A CN114546346 A CN 114546346A CN 202210182614 A CN202210182614 A CN 202210182614A CN 114546346 A CN114546346 A CN 114546346A
Authority
CN
China
Prior art keywords
software
functional software
algorithm
functional
framework
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
Application number
CN202210182614.0A
Other languages
Chinese (zh)
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210182614.0A priority Critical patent/CN114546346A/en
Publication of CN114546346A publication Critical patent/CN114546346A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Landscapes

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

Abstract

The invention particularly relates to a design method of an operation framework of functional software and a readable storage medium. The method comprises the following steps: abstracting a non-algorithm implementation part of the functional software to generate a corresponding software standard model; compiling corresponding software standard model codes; selecting a corresponding software standard model based on an operation framework of corresponding functional software, and configuring a corresponding configuration file; generating a corresponding operation frame code according to the configuration file and the corresponding software standard model code; integrating the functional algorithm of the corresponding functional software into the corresponding running framework code to generate a complete compilable code of the corresponding functional software; the complete compilable code of the corresponding functional software is then compiled into an executable file. The invention also discloses a readable storage medium. The design method of the operation framework can realize the decoupling of the functional algorithm of the functional software and the operation framework, thereby improving the efficiency and the effect of the design, the development and the integration of the functional software.

Description

Design method of running framework of functional software and readable storage medium
Technical Field
The invention relates to the technical field of automobile software development, in particular to a design method of an operation framework of functional software and a readable storage medium.
Background
In a period of high-speed development of the intelligent automobile industry, automobile enterprises also meet a new round of opportunity and challenge, various intelligent and personalized functions are more and more, particularly, the intelligent automobile industry is gradually applied to commercialization in intelligent driving and intelligent automobile control, the automobile enterprises have more and more requirements on autonomous algorithm development, and more algorithms and functional software are deployed on automobile controllers.
The current development of functional software mainly has the following defects: when a developer develops each functional software, the developer needs to start from bottom-layer services such as data communication, database access and the like, so that the workload of developing the services is increased, the development efficiency is reduced, the development difficulty is increased, and the requirement on the skills of development technicians is correspondingly increased. Therefore, chinese patent publication No. CN105653334A discloses "a rapid development framework for MIS system based on SAAS model", which includes: the operation framework layer is used for realizing the main interface of the program operation, the management of the plug-in and the loading of basic data; the communication layer is used for realizing the communication between the client and the server; the service application layer is used for realizing the processing of the service and the flow control distribution of the service; the data access layer is used for realizing the access to the database and supporting various databases; and the plug-in interface layer is used for defining a basic interface for the system to run the plug-in.
The system rapid development framework in the existing scheme carries out software framework design through a layering idea, communication between a client and a server and access to a database are achieved, and therefore development efficiency is improved and development difficulty is reduced. However, the existing solution is directed to the framework design of the traditional computer software, and is different from the design method of the automobile controller functional software. Firstly, the hardware architecture design of the automobile controller is different from that of a traditional computer; secondly, the software framework of the automobile controller is not the mode of a server side and a client side, but the software running framework of data flow driven calculation execution; and thirdly, the automobile controller cannot use software products, such as a database, which occupy large resources such as a memory due to resource limitation. That is to say, the existing scheme is difficult to meet the requirements of the framework design of the functional software system of the automobile controller. Therefore, how to provide a system framework design method suitable for the automobile controller function software and the function algorithm thereof is a technical problem which needs to be solved urgently.
Disclosure of Invention
Aiming at the defects of the prior art, the technical problems to be solved by the invention are as follows: how to provide a design method for an operation framework of functional software to realize the decoupling of a functional algorithm and the operation framework of the functional software, thereby improving the efficiency and the effect of the design, the development and the integration of the functional software.
The automobile intelligent algorithm is designed, developed and integrated quickly, so that the development and integration efficiency of the automobile intelligent algorithm can be improved.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for designing an operation framework of functional software comprises the following steps:
s1: abstracting a non-algorithm implementation part of the functional software to generate a corresponding software standard model;
s2: compiling a corresponding software standard model code based on the software standard model;
s3: selecting a corresponding software standard model based on an operation framework of corresponding functional software, and configuring a corresponding configuration file;
s4: generating an operation frame code corresponding to the functional software according to the configuration file and the corresponding software standard model code;
s5: integrating the functional algorithm of the corresponding functional software into the corresponding running framework code to generate a complete compilable code of the corresponding functional software; and compiling the complete compilable codes of the corresponding functional software into an executable file so as to complete the design, development and integration of the corresponding functional software.
Preferably, in step S1, the types of software standard models include, but are not limited to, a process threading model, a communication model, an event scheduling model, and an algorithm component model.
Preferably, in step S1, each type of software standard model corresponds to one or more standard implementation codes.
Preferably, in step S1, the process threading model includes, but is not limited to, the number of processes, the number of threads in each process, and the standard code implementation of the process and the thread.
Preferably, in step S1, the communication model includes, but is not limited to, communication data flow, communication mode, communication protocol, and communication data synchronization policy.
Preferably, in step S1, the event scheduling model includes, but is not limited to, a single message event triggered execution callback function, a synchronous message event triggered execution callback function, and a time message event triggered execution callback function.
Preferably, in step S1, the algorithm component model includes, but is not limited to, the number of algorithm components, the names of algorithm components, the initialization callback function names of algorithm components, the execution callback function names of algorithm components, and the release callback function names of algorithm components.
Preferably, in step S2, a corresponding software standard model code is written according to the definition and characteristics of the software standard model.
Preferably, in step S3, the configuration file includes, but is not limited to, the number of algorithm components, attribute information of the algorithm components, process thread arrangement of the algorithm components, input/output communication data streams of the algorithm components, and an event scheduling manner of the algorithm components.
The invention also discloses a readable storage medium which is characterized in that a computer management program is stored on the readable storage medium, and the computer management program realizes the steps of the running framework design method of the functional software when being executed by a processor.
Compared with the prior art, the design method of the operation frame has the following beneficial effects:
according to the invention, the non-algorithm implementation part in the functional software is identified in advance and abstracted into the software standard model, so that the decoupling of the functional algorithm and the operation framework of the functional software is realized, developers can concentrate on the logic development of the functional algorithm without considering the operation framework design of the non-algorithm implementation part, the workload of the developers can be reduced, and the development efficiency and effect of the functional algorithm can be ensured. Meanwhile, the invention selects the corresponding software standard model based on the operation framework of the corresponding functional software and configures the corresponding configuration file, and then the operation framework code is quickly generated according to the configuration file and the corresponding software standard model code, so that the functional algorithm of the functional software can be quickly integrated in the operation framework code, the integration difficulty of the functional software and the functional algorithm thereof can be reduced, and the design, development and integration efficiency and effect of the functional software can be improved.
Drawings
For purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made in detail to the present invention as illustrated in the accompanying drawings, in which:
FIG. 1 is a logic diagram of a design method of an operating framework of functional software;
fig. 2 is a topological diagram of a specific functional software operating framework.
Detailed Description
The following is further detailed by the specific embodiments:
the first embodiment is as follows:
the embodiment discloses a method for designing an operation framework of functional software.
As shown in fig. 1, the method for designing the operating framework of the functional software includes the following steps:
s1: abstracting a non-algorithm implementation part of the functional software to generate a corresponding software standard model;
s2: compiling a corresponding software standard model code based on the software standard model; in this embodiment, a corresponding software standard model code is written according to the definition and characteristics of the software standard model.
S3: selecting a corresponding software standard model based on an operation framework of corresponding functional software, and configuring a corresponding configuration file; in this embodiment, the configuration file includes, but is not limited to, the number of algorithm components, attribute information of the algorithm components, process thread arrangement of the algorithm components, input/output communication data streams of the algorithm components, and an event scheduling manner of the algorithm components.
S4: generating an operation frame code corresponding to the functional software according to the configuration file and the corresponding software standard model code;
s5: integrating the functional algorithm of the corresponding functional software into the corresponding running framework code to generate a complete compilable code of the corresponding functional software; and compiling the complete compilable codes of the corresponding functional software into an executable file so as to complete the design, development and integration of the corresponding functional software.
It should be noted that, the method for designing the operating framework of the functional software in the present invention can generate the corresponding software code or software service in a program programming manner, and further can be operated and implemented on the server and the computer.
According to the invention, the non-algorithm implementation part in the functional software is identified in advance and abstracted into the software standard model, so that the decoupling of the functional algorithm and the operation framework of the functional software is realized, developers can concentrate on the logic development of the functional algorithm without considering the operation framework design of the non-algorithm implementation part, the workload of the developers can be reduced, and the development efficiency and effect of the functional algorithm can be ensured. Meanwhile, the invention selects the corresponding software standard model based on the operation framework of the corresponding functional software and configures the corresponding configuration file, and then the operation framework code is quickly generated according to the configuration file and the corresponding software standard model code, so that the functional algorithm of the functional software can be quickly integrated in the operation framework code, the integration difficulty of the functional software and the functional algorithm thereof can be reduced, and the efficiency and the effect of designing, developing and integrating the functional software can be improved.
In the specific implementation process, the types of the software standard model include, but are not limited to, a process thread model, a communication model, an event scheduling model and an algorithm component model. Each type of software standard model corresponds to one or more standard implementation codes.
Specifically, the method comprises the following steps:
the process threading model includes, but is not limited to, the number of processes, the number of threads in each process, and the standard code implementation of the processes and threads.
The communication model includes, but is not limited to, communication data flow, communication mode, communication protocol, and communication data synchronization policy. The communication data flow refers to input and output data of the algorithm component and the flow direction of the input and output data. The communication mode includes thread internal communication, thread-to-thread communication, Data Distribution Service (DDS), and the like, and the DDS is used as the inter-process communication mode. The communication protocol comprises: structured protocol for inter-process communication, DDS protocol, etc. The communication data synchronization strategy comprises a late Policy, a Master Policy and a time Policy, and when one algorithm component needs to input a plurality of communication data streams, the communication data synchronization strategy needs to be set, namely the communication data synchronization strategy is specific to the condition that one algorithm component has a plurality of input communication data streams.
The latex Policy has the following two rules:
1) each communication data stream input only holds the most recently received message, new, as determined by the timestamp on the data message header.
2) When each communication data stream input has a message, the latest message input by each communication data stream forms a synchronous message.
The Master Policy has the following two rules:
1) only one Master communication data flow is specified and zero or more Slave communication data flows are specified.
2) And when the Master communication data stream has messages, selecting the message with the message timestamp closest to the Master communication data stream from each Slave communication data stream to generate a synchronous message (at this time, the Slave communication data stream may have no message).
The Timed Policy has the following two rules:
1) a Primary communication data stream (by default, the first communication data stream) is specified, and the time offset is calculated based on the Primary communication data stream message.
2) When any communication data flow has a new message and each communication data flow has a message, selecting a message which has the smallest time stamp difference value and is within the tolerance (less than or equal to the tolerance) from each communication data flow by taking the Primary communication data flow message as a reference, thereby generating the synchronization message.
The event scheduling model includes, but is not limited to, a single message event triggered execution callback function, a synchronous message event triggered execution callback function, and a time message event triggered execution callback function.
The algorithm component model includes, but is not limited to, the number of algorithm components, the names of the algorithm components, the initialization callback function names of the algorithm components, the execution callback function names of the algorithm components, and the release callback function names of the algorithm components.
The invention can effectively generate the running frames (codes) of various functional software through the process thread model, the communication model, the event scheduling model and the algorithm component model, thereby improving the effectiveness and the practicability of the running frame design method.
In order to better describe the design method of the operation framework of the present invention, the present embodiment discloses the following examples.
Referring to fig. 2, the topology components of a specific functional software operating framework include:
1) an algorithm component: A. b, C, D, respectively;
2) communication data flow: sixthly, seventhly, drying;
3) thread: t1, t2, t 3;
4) and (4) process: p1, p 2;
5) DDS: distributed communication middleware;
the input of the algorithm component A is data streams (i) and (ii), and the communication mode is DDS communication; the input of the algorithm component B is data flow (c), and the communication mode is thread internal communication; the input of the algorithm component C is data flow (r), and the communication mode is inter-thread communication; the input of the algorithm component D is data flow (C), and the communication mode is DDS communication. Where the algorithm component A, B, C is inside one process p1 and the algorithm component D is inside another process p 2. For process p1, algorithm components A and B are inside thread t1 and algorithm component C is inside thread t 2. For process p2, algorithm component D is inside thread t 3.
The configuration file of the operation framework needs to configure the topological graph of the operation framework of the functional software. Besides the topological relation of the functional software operation framework, the configuration file also comprises the following software standard model and the attributes of the model:
1) initializing, executing and releasing the name of a callback function of an algorithm component;
2) the communication mode and the communication protocol of the communication data stream, and the data synchronization strategies of a plurality of input communication data streams;
3) an event scheduling model adopted by each algorithm component;
4) topoc, QoS of DDS protocol, etc.;
5) the priority of the thread, etc.
Example two:
disclosed in the present embodiment is a readable storage medium.
A readable storage medium on which a computer management class program is stored, which when executed by a processor implements the steps of the operational framework design method of functional software of the present invention. The readable storage medium can be a device with readable storage function such as a U disk or a computer.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting the technical solutions, and those skilled in the art should understand that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all that should be covered by the claims of the present invention.

Claims (10)

1. A method for designing an operation framework of functional software is characterized by comprising the following steps:
s1: abstracting a non-algorithm implementation part of the functional software to generate a corresponding software standard model;
s2: compiling a corresponding software standard model code based on the software standard model;
s3: selecting a corresponding software standard model based on an operation framework of corresponding functional software, and configuring a corresponding configuration file;
s4: generating an operation frame code corresponding to the functional software according to the configuration file and the corresponding software standard model code;
s5: integrating the functional algorithm of the corresponding functional software into the corresponding running framework code to generate a complete compilable code of the corresponding functional software; and compiling the complete compilable codes of the corresponding functional software into an executable file so as to complete the design, development and integration of the corresponding functional software.
2. The method for designing an operating framework of functional software according to claim 1, wherein: in step S1, the types of software standard models include, but are not limited to, a process threading model, a communication model, an event scheduling model, and an algorithm component model.
3. The method for designing an operating framework of functional software according to claim 2, characterized in that: in step S1, each type of software standard model corresponds to one or more standard implementation codes.
4. The method for designing an operating framework of functional software according to claim 2, characterized in that: in step S1, the process threading model includes, but is not limited to, the number of processes, the number of threads in each process, and the standard code implementation of the process and the thread.
5. The method for designing an operating framework of functional software according to claim 2, characterized in that: in step S1, the communication model includes, but is not limited to, communication data flow, communication mode, communication protocol, and communication data synchronization policy.
6. The method for designing an operating framework of functional software according to claim 2, characterized in that: in step S1, the event scheduling model includes, but is not limited to, a single message event triggered execution callback function, a synchronous message event triggered execution callback function, and a time message event triggered execution callback function.
7. The method for designing an operating framework of functional software according to claim 2, characterized in that: in step S1, the algorithm component model includes, but is not limited to, the number of algorithm components, the names of algorithm components, the initialization callback function names of algorithm components, the execution callback function names of algorithm components, and the release callback function names of algorithm components.
8. The method for designing an operating framework of functional software according to claim 1, wherein: in step S2, a corresponding software standard model code is written according to the definition and characteristics of the software standard model.
9. The method for designing an operating framework of functional software according to claim 1, wherein: in step S3, the configuration file includes, but is not limited to, the number of algorithm components, attribute information of the algorithm components, process thread arrangement of the algorithm components, input/output communication data streams of the algorithm components, and an event scheduling manner of the algorithm components.
10. A readable storage medium, on which a computer management class program is stored, which when executed by a processor implements the steps of the method for designing an execution framework of functional software according to any one of claims 1 to 9.
CN202210182614.0A 2022-02-27 2022-02-27 Design method of running framework of functional software and readable storage medium Pending CN114546346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210182614.0A CN114546346A (en) 2022-02-27 2022-02-27 Design method of running framework of functional software and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210182614.0A CN114546346A (en) 2022-02-27 2022-02-27 Design method of running framework of functional software and readable storage medium

Publications (1)

Publication Number Publication Date
CN114546346A true CN114546346A (en) 2022-05-27

Family

ID=81680377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210182614.0A Pending CN114546346A (en) 2022-02-27 2022-02-27 Design method of running framework of functional software and readable storage medium

Country Status (1)

Country Link
CN (1) CN114546346A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130305217A1 (en) * 2012-05-11 2013-11-14 Bank Of America Corporation Service plug-in and service base for an integrated service framework
CN111367501A (en) * 2020-02-13 2020-07-03 深圳壹账通智能科技有限公司 Software online development method, device, equipment and storage medium
CN111782207A (en) * 2020-06-23 2020-10-16 北京青云科技股份有限公司 Method, device and equipment for generating task stream code and storage medium
CN112199105A (en) * 2020-10-15 2021-01-08 舟山网脉科技有限公司 Method, system, medium and electronic device for function combination type software development
CN113805882A (en) * 2021-09-18 2021-12-17 上海波顿诺华智能科技有限公司 Method and device for developing application program, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130305217A1 (en) * 2012-05-11 2013-11-14 Bank Of America Corporation Service plug-in and service base for an integrated service framework
CN111367501A (en) * 2020-02-13 2020-07-03 深圳壹账通智能科技有限公司 Software online development method, device, equipment and storage medium
CN111782207A (en) * 2020-06-23 2020-10-16 北京青云科技股份有限公司 Method, device and equipment for generating task stream code and storage medium
CN112199105A (en) * 2020-10-15 2021-01-08 舟山网脉科技有限公司 Method, system, medium and electronic device for function combination type software development
CN113805882A (en) * 2021-09-18 2021-12-17 上海波顿诺华智能科技有限公司 Method and device for developing application program, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YONGLING SUN等: ""An intelligent driving simulation platform: architecture, implementation and application"", 《IEEE》, 13 July 2020 (2020-07-13) *
刘淦: ""基于SpringMVC框架的配置管理平台设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 March 2018 (2018-03-15) *

Similar Documents

Publication Publication Date Title
AU2019257543B2 (en) Executing graph-based program specifications
CN107077364B (en) Compilation of graph-based program specifications using automatic clustering of graph components based on identification of specific data port connections
US7844959B2 (en) Runtime optimization of distributed execution graph
CN106687919B (en) Method, system, and computer-readable medium for controlling execution of a plurality of components
Omicini et al. Formal respect
CN111818128B (en) Container cloud-based modular simulation model operation control system, method and medium
CA2959525C (en) Controlling data processing tasks
US11176086B2 (en) Parallel copying database transaction processing
WO2001038978A1 (en) Configurable state machine driver and methods of use
Buckl et al. Chromosome: a run-time environment for plug & play-capable embedded real-time systems
Chardet et al. Predictable efficiency for reconfiguration of service-oriented systems with concerto
Resmerita et al. Applying real-time programming to legacy embedded control software
CN114546346A (en) Design method of running framework of functional software and readable storage medium
Zhao et al. Agent-based flow control for hla components
Gerard et al. UML for real-time: which native concepts to use?
CN112822114B (en) Routing control method, system and medium based on behavior tree
CN114896054A (en) Cross-heterogeneous computing engine big data task scheduling method, device and medium
Dziurzanski et al. Multi-criteria resource allocation in modal hard real-time systems
Nah et al. TMO-structured cluster-based real-time management of location data on massive volume of moving items
Popović et al. Modeling and development of autosar software components
Perseil et al. An efficient modeling and execution framework for complex systems development
Ribeiro et al. COFIE: a regex-like interaction and control flow description
Feist et al. The Adaptation Mechanism of Chameleon-A Comprehensive Adaptive Middleware for Mixed-Critical Cyber-Physical Networks
Medina et al. Modeling and schedulability analysis of hard real-time distributed systems based on Ada components
Pramsohler et al. Towards an optimized software architecture for component adaptation at middleware level

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