Reliability formalized prediction method for AutoSAR architecture

By analyzing and extending the AutoSAR architecture model and converting it into a Markov chain formal model, the reliability prediction of the automotive electronic system is realized, which solves the problem of difficulty in predicting reliability at the AutoSAR architecture level in the existing technology, and improves design efficiency and Cost effective.

CN118732998APending Publication Date: 2024-10-01BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776452.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult to effectively predict reliability at the AutoSAR architecture level with existing technology, especially in automotive electronic systems. Existing methods cannot fully consider the impact of software failures, hardware failures and parameter dependencies on system reliability, and are difficult to apply to AutoSAR architecture models. , resulting in high design and verification costs and low efficiency.

Method used

Obtain the AutoSAR architecture model by parsing the arxml file, expand the model to add fault descriptions, convert it into a formal model based on Markov chains, perform reliability calculations, and generate modification opinions based on the calculation results to adjust the architecture model to realize the optimization of the AutoSAR system. Automated reliability prediction.

Benefits of technology

It realizes automated reliability prediction of AutoSAR system architecture, reduces design and verification costs, improves design efficiency, and can identify reliability bottlenecks and optimize the architecture at an early stage. It is suitable for software failures, hardware failures and parameter dependencies in automotive systems. Comprehensive analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732998A_ABST
    Figure CN118732998A_ABST
Patent Text Reader

Abstract

The invention provides a reliability formalized prediction method for an AutoSAR architecture, and relates to the technical field of automobile electronic systems.According to the method, automobile system control flow is analyzed by using an AutoSAR architecture model, the AutoSAR architecture model is expanded to increase fault description of an automobile system, and the reliability of the automobile system is predicted. And the expanded AutoSAR architecture model is converted into a formal model based on a discrete time Markov chain, so that an architecture level reliability prediction process is carried out on the AutoSAR architecture model, and automatic reliability prediction on the AutoSAR architecture model is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automotive electronic systems, and in particular to a reliability formalization prediction method for an AutoSAR architecture. Background Art

[0002] AutoSAR, the full name of which is Automotive Open System Architecture, is a cooperative development framework for automotive electronic systems jointly participated by global automobile manufacturers, parts suppliers, and various research and service organizations, and has established an open automotive controller (ECU) standard software architecture. AutoSAR is a set of software development standards for automotive electronic systems jointly developed by vehicle manufacturers and suppliers in the automotive industry, so that various upstream and downstream companies in automobile production can focus on function development without worrying about the target hardware platform, and realize the standardization of the interface between application software and underlying software and between application software, provide a controller software reference architecture, and standardize the exchange format in the distributed development process.

[0003] The AutoSAR specification mainly includes three parts: layered architecture, methodology and application interface. Among them, the layered architecture is the key to achieve the separation of software and hardware, which enables automotive embedded system control software developers to get rid of the previous ECU software development and verification dependence on the hardware system.

[0004] In the AutoSAR layered architecture, the automotive embedded system software is divided into the application software layer (ASW), runtime environment (RTE), basic software layer (BSW) and microcontroller from top to bottom. To ensure the independence of the upper and lower layers, under normal circumstances, each layer can only use the interface provided by the next layer and provide the corresponding interface to the upper layer.

[0005] For a complex system like a car that may be composed of thousands of chips, millions of lines of code, and hundreds of electronic control units, the non-functional attributes of the system represented by reliability are often crucial. Once the system fails to meet the relevant attribute requirements, it often causes great damage to the relevant personnel and the environment. Therefore, a lot of effort is needed to simulate and test the system. Although AutoSAR specifies a set of standard software architectures for the design and implementation of automotive electronic and electrical systems, since AutoSAR is not responsible for the specific implementation of the hardware and software in the system, and does not support analysis methods related to system reliability in the system architecture model, AutoSAR cannot guarantee that the system developed within its framework is safe and reliable. It is still necessary to judge the reliability of the system based on expert experience, or to test and verify the system as a whole through simulation in the later stage.

[0006] Generally speaking, when potential problems in a system are discovered early in the system development phase, related problems can be solved at a lower cost. Therefore, many methods have begun to try to verify and predict the reliability of the system during the architectural design phase. These technologies can help system architects evaluate the reliability impact of their design decisions, and can correlate the reliability of the system with the reliability of individual components, which is conducive to identifying reliability bottlenecks, determining the sensitivity of system reliability to component reliability, and exploring architectural optimization solutions.

[0007] During the architecture design phase, factors that affect reliability include software failure, hardware failure, and parameter dependency. Software failure directly leads to the inability to perform functions normally, and is usually described by the failure probability of the component. Hardware failure can cause the software execution environment to be abnormal, resulting in software function errors. The description of hardware failure is usually related to time, including the average normal execution time and the average repair time. Parameter dependency means that the parameters of the input system will affect the execution process of the system. Different execution processes will activate different components. For example, input in certain usage scenarios will cause some low-reliability components to be triggered frequently, thereby affecting the overall system reliability in the scenario. Parameter dependency is related to the system's usage specifications and can only be expressed through the propagation of control flow and data flow in the system.

[0008] Usually, the reliability analysis and prediction of the system in the architecture design phase requires the use of formal models for calculation, and the formal models of the components and architecture behaviors that make up the application are constructed. These methods can be divided into two categories: state-based and path-based. The state-based model uses the control flow graph of the system to represent the system architecture, and maps the control flow graph to the state space model, which can be modeled as a discrete-time Markov chain, a continuous-time Markov chain, or a semi-Markov process. This method essentially treats the component as a black box, and the failure probability, reliability, fault probability, and failure intensity can be used to describe the failure of the component. In the path-based method, the probability of failure or reliability is used to represent the probability of the failure state of the component. In the path-based model, the possible execution paths of the system are considered, and the possible execution paths of the system are enumerated based on the relationship between the components and the parameter dependencies of the system, and the average reliability of all paths is analyzed.

[0009] It is usually very difficult to directly use formal models to predict the reliability of a system, because the modeling symbols used by formal models are inconsistent with the concepts commonly used in software engineering. Formal models cannot explicitly handle concepts such as components, interfaces, and hierarchical structures in software engineering. They need to use concepts such as state nodes to describe the system, which is not friendly to relevant designers and is prone to errors. Therefore, there are also methods based on system component models to build reliability models that can describe the easily accessible and reliability-related properties in the system, and design a mapping relationship between the reliability model and the formal model to achieve automatic conversion of the model and verify reliability. Representative work, such as Franz Brosch et al., has expanded on the Palladio Component Model, so that the software system model built based on components can annotate the failure probability of components and the average whole-line execution time of hardware to build a reliability model of the system, and map it to elements of the Markov chain to achieve reliability prediction of the software system.

[0010] However, in the current methods for developing automotive systems based on the AutoSAR standard, the analysis and prediction of reliability are generally concentrated in the implementation stage. Reliability is judged by simulating the system. On the one hand, the simulation method itself has the characteristic of high overhead, which has become an obstacle to the rapid iteration of the system. On the other hand, the conclusions about system reliability obtained through simulation tend to be implementation details. Engineers need to spend a lot of energy to troubleshoot problems, and it is difficult to make fundamental improvements to the problems at the architectural level, which makes it difficult to fundamentally fix the problems.

[0011] In addition, there are some problems with the methods of analyzing reliability at the architectural level. Many methods often cannot deal well with the impact of parameter dependence on system reliability assessment, and usually require a large number of repeated modeling system usage scenarios to analyze parameter dependence. In addition, many analysis methods at the architectural stage ignore hardware failures and only consider software reliability, which is not applicable to information-physical systems such as automobiles where both hardware and software are important. The most critical problem is that these methods are not well suited to the AutoSAR architectural model. The AutoSAR architectural model involves a lot of domain knowledge, which is implicit in the concept types of the AutoSAR architectural model. For example, the interface types in AutoSAR are basically consistent in the modeling representation of the software layer, but there are large differences in the specific behaviors of the system. Using existing methods requires engineers to manually convert concepts, which is inefficient and difficult to ensure accuracy. Summary of the invention

[0012] In view of this, the present invention provides a reliability formalization prediction method for the AutoSAR architecture to solve the technical problem that the AutoSAR architecture level is not convenient for reliability prediction in the prior art. The method includes:

[0013] Parsing an arxml file, wherein the arxml file includes description information of the AutoSAR architecture, and obtaining an AutoSAR architecture model by parsing the arxml file, wherein the AutoSAR architecture model is used to describe the software architecture of the automobile system;

[0014] Expanding the AutoSAR architecture model to add a fault description of the automotive system, wherein the expanded fault description includes fault behavior, software fault probability, hardware MTTF data, hardware MTTR data, and parameter dependency;

[0015] Based on the defined conversion rules and mapping templates, the expanded AutoSAR architecture model is converted into a formal model based on a Markov chain;

[0016] Performing reliability calculations on the Markov chain in the formalized model in different usage scenarios to obtain reliability calculation results of the formalized model;

[0017] Generate modification suggestions for the AutoSAR architecture model based on the reliability calculation results and adjust the AutoSAR architecture model.

[0018] Furthermore, parsing the arxml file to obtain the AutoSAR architecture model includes: determining the AutoSAR architecture model by parsing the component relationships, internal behaviors and deployment status of the AutoSAR architecture model in the arxml file.

[0019] Furthermore, different parsing rules are formulated according to the type of each component in the AutoSAR architecture model to parse each component.

[0020] Furthermore, the expanded AutoSAR architecture model is converted into a formal model based on a Markov chain, including:

[0021] After the AutoSAR architecture model is expanded to add a fault description of the automotive system, hardware MTTF data and hardware MTTR data in the fault description are converted into hardware fault probability;

[0022] Based on the conversion rules and mapping templates, the AutoSAR architecture model is converted into the formalized model based on the Markov chain according to the expanded AutoSAR architecture model and the hardware failure probability.

[0023] Furthermore, the Markov chain in the formalized model is a discrete-time Markov chain.

[0024] Furthermore, the method further comprises:

[0025] A mapping template is defined, and the states of the parallel components in the AutoSAR architecture model are merged according to the mapping template. The discrete-time Markov chain model is combined according to the interaction relationship between the components, so as to realize the conversion of the expanded AutoSAR architecture model into the formalized model.

[0026] Furthermore, the method also includes:

[0027] The modification suggestions of the AutoSAR architecture model include modification suggestions based on scalars and modification suggestions based on topological structures.

[0028] Compared with the prior art, the present invention can achieve the following technical effects based on any of the above solutions:

[0029] For the AutoSAR system architecture model, the three factors of software failure, hardware failure and parameter dependence in the automotive system are considered simultaneously. By directly mapping the AutoSAR architecture model with the formalized computational model, automatic reliability prediction of the AutoSAR architecture model is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A schematic diagram of a reliability formalization prediction method for the AutoSAR architecture provided in an embodiment of the present invention;

[0032] Figure 2 An example diagram of component parsing rules for the AutoSAR architecture model provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0034] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0035] The present invention targets the AutoSAR system architecture model, and simultaneously considers three factors in the automotive system: software failure, hardware failure, and parameter dependency. By directly mapping the AutoSAR architecture model with a formalized computational model, the present invention achieves automated reliability prediction of the AutoSAR architecture model.

[0036] like Figure 1 As shown, in an embodiment of the present invention, a reliability formalization prediction method for an AutoSAR architecture is provided, which specifically includes:

[0037] Step S100, parsing an arxml file, wherein the arxml file includes description information of the AutoSAR architecture, and obtaining an AutoSAR architecture model by parsing the arxml file, wherein the AutoSAR architecture model is used to describe the software architecture of the automobile system;

[0038] Furthermore, parsing the arxml file to obtain the AutoSAR architecture model includes: determining the AutoSAR architecture model by parsing component relationships, behaviors within components, and deployment conditions in the AutoSAR architecture model.

[0039] Specifically, in step S100, the arxml file of AutoSAR contains description information of the AutoSAR architecture model. These architecture information are described in the form of components. Parsing the arxml file requires, on the one hand, obtaining information about each component in the AutoSAR architecture model and the relationship between components, and on the other hand, analyzing the domain concepts in the AutoSAR architecture model and establishing the system's data flow and control flow behavior model.

[0040] The AutoSAR standard is divided into three layers: application software layer, runtime environment, and basic software layer. The key concepts of the application software architecture layer include components, combinations, ports, interfaces, running entities, and data types. Among them, components are the basic units of software deployment, representing a complete function, and need to be deployed on a processor; combinations are used to describe the data interaction relationship between components; ports are divided into input and output, which are used for sending and receiving data between components, and various types of interfaces need to be implemented; interfaces have multiple types: sending and receiving, client server, and trigger, and different interface types correspond to different data flow control flows; running entities mean function calls in the system; interfaces and running entities will involve specific data types. The model of the software layer needs to be further disassembled to clarify the data flow and control flow as well as the specific hardware involved in executing functions.

[0041] The AutoSAR Run-Time Environment (RTE) layer is located between the application layer and the basic software layer. It is the implementation of the AUTOSAR virtual function bus interface. On the one hand, it provides services for component communication in the application software layer, including the specific implementation of various interface behaviors in the application software layer. On the other hand, it realizes the mapping and scheduling of running entities in the application software layer to operating system tasks. The AutoSAR basic software layer is mainly responsible for managing hardware resources, providing the required public resources for application software, and realizing the execution of running entities in the application software layer through task scheduling.

[0042] According to the needs of elements in the AutoSAR architecture model, the contents of parsing the arxml file include: (1) component relationships, which are architectural structure models represented by components, showing the connection relationships between the components in the system and the interfaces disclosed by the system; (2) component behaviors, which correspond to the control flow and data flow inside the component. Software failures can be mapped to errors in the system data flow and control flow, which are key information for analyzing system reliability; (3) deployment status. Since reliability is not only related to software, but also to the software execution environment, it is necessary to clarify the deployment status of components to introduce hardware analysis. In this process, it is necessary to formulate parsing rules one by one according to the types of concepts in the AutoSAR architecture model to achieve automatic parsing.

[0043] Furthermore, different parsing rules are formulated according to the types of components in the AutoSAR architecture model to parse each component. Figure 2 The resolution rule shown is for resolving a component with a client server interface type port. Figure 2 In, (a) describes a simple AutoSAR architecture model, where there are running entities inside the components and the components communicate with each other in the form of client-server; Figure 2 (b) describes the domain information that needs to be obtained from the AutoSAR architecture model, including: the deployment of components, which is used to analyze the impact of hardware and basic software on system failures; the RTE scheduling of running entities, which are mapped to operating system tasks (OS Tasks), and the control flow of the system is reflected through the scheduling of tasks; the behavior of the intermediate platform layer, which involves the specific scheduling behavior of the operating environment and basic software, and will affect how the system generates and repairs failures. These domain information need to be analyzed in detail in order to use the Markov chain model to build a sufficiently detailed system behavior model. The key is to expand the relevant concepts of interface types and organize the hardware usage involved in the corresponding data flow and control flow. Step S100 clarifies the specific system behavior related to data flow and control flow by analyzing the domain concepts in the AutoSAR architecture model. Reliability analysis needs to analyze the possibility of failure during the execution process based on the resource scheduling during system runtime. The scheduling of system resources is manifested as the control flow and data flow of the system. The usual reliability analysis methods need to clearly establish the control flow and data flow models of the system, but the AutoSAR architecture model contains a large number of domain concepts. Many simple modeling elements will imply complex control flow and data flow behaviors. Therefore, it is necessary to analyze the specific system behavior based on the domain concepts of AutoSAR.

[0044] Step S200, expanding the AutoSAR architecture model to add a fault description of the automobile system, wherein the expanded fault description includes fault behavior, software fault probability, hardware MTTF data, hardware MTTR data, and parameter dependency;

[0045] Specifically, the obtained AutoSAR architecture model is expanded to add fault description of the automobile system. System reliability is affected by three factors: software failure, hardware failure, and parameter dependence. However, there is no relevant information in the AutoSAR architecture model to represent these influencing factors. These influencing factors need to be annotated in the model obtained by parsing arxml.

[0046] Software failure refers to the situation where the system cannot process data correctly during operation. In the AutoSAR architecture model, application software is described as the relationship between the running entities and ports in the components. Therefore, software failure can be abstracted as the failure of the running entity to execute. Then, the probability of the running entity failing to execute can be used to describe the reliability of a single running entity (common methods for evaluating the probability of software failure include statistical testing, software reliability growth model, code coverage measurement, etc.). Hardware constitutes the execution environment of the software. Hardware failure will also cause the software running on it to fail. Usually, hardware failure is caused by hardware loss. Therefore, compared with software, hardware is often evaluated by the more easily available mean time to failure (MTTF) and mean time to repair (MTTR). These data are often provided by hardware suppliers. Parameter dependence means that when the system usage scenario is different, the input parameters of the system are different, and the control flow of the system will also change due to the input. In such a case, the activated software components, the executed running entities, and the hardware used will also be different. Therefore, different input scenarios will calculate different reliabilities, which means that a more accurate reliability analysis of the system requires the probability of different possible usage scenarios of the system.

[0047] Furthermore, step S200 expands the AutoSAR architecture model by acquiring information about software and hardware failures and parameter dependencies based on the AutoSAR architecture model. The reliability of the system is affected by three factors: software failure, hardware failure, and parameter dependency. This information is not shown in the AutoSAR architecture model, and there are certain conflicts in processing reliability data. For example, the discrete state of software components in the architecture stage and the continuous state of hardware in the execution time make it difficult for existing methods to jointly model the impact of the execution environment and application-level software failures. Therefore, it is necessary to expand the AutoSAR architecture model from the perspective of failure behavior, software failure probability, hardware MTTF data, hardware MTTR data, and parameter dependency to increase the fault description of the automotive system. On the one hand, it is necessary to realize the labeling of software failures and hardware failures, and on the other hand, it is necessary to realize the analysis of software parameter dependency.

[0048] Step S300: based on the defined conversion rules and mapping templates, convert the expanded AutoSAR architecture model into a formal model based on a Markov chain;

[0049] Furthermore, in step S300, the expanded AutoSAR architecture model is converted into a formal model based on a Markov chain, including:

[0050] Step S301, after expanding the AutoSAR architecture model to add a fault description of the automobile system, converting the hardware MTTF data and the hardware MTTR data in the fault description into a hardware fault probability;

[0051] Step S302: based on the defined conversion rules and mapping templates, and according to the expanded AutoSAR architecture model and the hardware failure probability, convert the AutoSAR architecture model into the formalized model based on the Markov chain.

[0052] Specifically, since the software failure probability describes the discrete state of the component in the architecture stage, and MTTF and MTTR describe the continuous state of the hardware in the execution time, the difference between the two makes it difficult to jointly model the impact of the execution environment and the application-level software failure. Therefore, after adding the failure description of the software failure probability, the hardware MTTF data and the hardware MTTR data, it is also necessary to convert the two easily available hardware attributes MTTF and MTTR into the probability of hardware failure. According to the concepts of MTTF and MTTR, it can be assumed that hardware failure is a periodic event. Therefore, the probability of hardware failure is related to the time when the hardware cannot execute normally. The probability of hardware being available normally in a cycle can be calculated as MTTF / (MTTF+MTTR). Therefore, the probability of hardware failure should be 1-MTTF / (MTTF+MTTR). This can avoid introducing the concept of continuous time in the model, so that the unreliability of hardware and software can be analyzed together through probability. For the impact of parameter dependence on system reliability, on the one hand, it is necessary to construct the use scenario of the automobile system according to the possible input parameters of the automobile system and analyze the probability of the automobile system in different scenarios. On the other hand, it is necessary to analyze the use scenario executed by the running entity in the component. The next conversion process is carried out based on the obtained hardware failure probability and the expanded AutoSAR architecture model.

[0053] Furthermore, the Markov chain in the formalized model is a discrete-time Markov chain. A mapping template is defined, and the states of the parallel components in the AutoSAR architecture model are merged according to the mapping template, and the discrete-time Markov chain model is combined according to the interaction relationship between the components, so as to realize the conversion of the expanded AutoSAR architecture model into the formalized model.

[0054] Specifically, the prediction of system reliability requires the use of a corresponding formal model for calculation based on the system model characteristics. Since the AutoSAR architecture model describes the system architecture in the form of components, the system is described as a model with discrete characteristics. Therefore, this embodiment uses a discrete-time Markov chain as a formal model for reliability calculation. The discrete-time Markov model is a state-based formal model that describes the transition relationship between a set of states according to the control flow of the system. The model assumes that only one component is executed at the same time. The initial state in the Markov chain will be converted into a system state. Each system state has a probability of being converted to a failed state based on the failure probability of the component and the execution environment of the component. Only when the system goes from the starting state to a successful state through a state path without converting to a failed state does it mean that the system is successfully executed in this scenario.

[0055] For state-based methods, as long as the reliability estimates of individual components and hardware at a sufficiently detailed level can be obtained, the reliability of the system can be estimated accurately enough, because it essentially treats the components as black boxes to obtain reliability estimates. In the prior art, failure probability is generally used, or the reliability of components is directly evaluated as the probability of state transition, but this data is inaccurate and cannot consider the impact of component execution time. Generally speaking, the longer a component is used, the higher its probability of failure. This fact is difficult to explain with a constant failure rate, while a failure model that represents failure intensity over time can contain this information because it can explain the test characteristics of the component by measuring test coverage and observed failure data. It can also explain the dependent execution of the component.

[0056] The AutoSAR architecture model contains rich domain knowledge, and the control flow of the system is implicit in its runtime environment. However, the state-based model is difficult to directly correspond to the AutoSAR architecture elements, and it is assumed that only one component is executed at any time, which results in a situation where a large number of components are in parallel in the actual automotive architecture and are difficult to be directly described. According to the model obtained in step S200, this embodiment formulates a mapping template from the component-level control flow model to the system state, merges the states of the parallel components, and combines the discrete-time Markov chain model through the interaction relationship between the components in the architecture to solve the conversion problem from the AutoSAR architecture model to the formal model. Step S300 realizes automatic conversion and verification to the formal model by mapping the AutoSAR architecture model to the formal model. Formal models usually rely on states to describe the behavior of the system, and essentially cannot handle concepts in the field of software engineering. The above-mentioned specific AutoSAR behavior still contains concepts such as component interfaces. The concepts of the two models are not a simple one-to-one correspondence, and need to be converted into specific formal model elements for prediction. This step should be automated to avoid repeated modeling work to improve the accuracy of the method.

[0057] Step S400, performing reliability calculations on the Markov chain in the formalized model in different usage scenarios to obtain reliability calculation results of the formalized model;

[0058] Specifically, in step S400, the generated Markov chain formal model is used to calculate the reliability of each Markov chain in different usage scenarios. A Markov chain is composed of a set of linear state sequences, which include four semantics: general operation, condition, loop, branch, and call. The overall failure probability fp(S) in the scenario S is described as:

[0059]

[0060] In formula (1), s i is the i-th state in this scenario.

[0061] The failure probability fp(loop) for a state with loop semantics is described as:

[0062] fp(loop)=1-n·[1-fp(s loop )] (2)

[0063] In formula (2), n is the average number of cycles.

[0064] The failure probability fp(branch) with conditional semantics is described as:

[0065]

[0066] In formula (3), P(s i ) is the probability of this condition being selected.

[0067] The failure probability fp(fork) for a branching semantics is described as:

[0068]

[0069] For a state with call semantics, if s i Calls j , the link it calls is L, then the failure probability fp(call) of the process is described as:

[0070] fp(call)=1-[1-fp(s i )]·[1-fp(L)] 2 ·[1-fp(s j )] (5)

[0071] Then the overall reliability R of the system with m usage scenarios is described as:

[0072]

[0073] Step S500: Generate modification suggestions for the AutoSAR architecture model according to the reliability calculation results and adjust the AutoSAR architecture model.

[0074] Furthermore, the method also includes:

[0075] The modification suggestions of the AutoSAR architecture model include modification suggestions based on scalars and modification suggestions based on topological structures.

[0076] Specifically, after obtaining the reliability calculation results of the automotive system, the components that have the greatest impact on the automotive system are analyzed according to the various parts of the reliability calculation, and some modification suggestions for the AutoSAR architecture model are given. It is mainly divided into two categories: improving the reliability of a single architectural element based on scalars, and improving local reliability by improving the topology based on the relationship between components. The scalar-based modification suggestions give the highest failure probability that needs to be met for a single component to make the system meet the reliability requirements for reference. The modification suggestions based on the topology structure include two points: based on the redundancy solution, analyze the number of redundant devices and the corresponding topology required to improve the reliability of the system, and analyze the deployment of the changed components. The final modification suggestions need to be considered by the architect in combination with other factors such as cost.

[0077] In summary, the embodiments of the present invention achieve the following technical effects:

[0078] 1. The present invention designs a method for the AutoSAR system architecture model, taking into account the three factors of software failure, hardware failure and parameter dependence in the automobile system, and can directly map the AutoSAR architecture model with the formalized calculation model to realize automatic reliability prediction of the AutoSAR architecture model;

[0079] 2. The present invention adopts a formal reliability analysis technology evaluation system based on architecture, which can evaluate the reliability of the architecture design in the early stage of development to support problem solving from the perspective of architecture, and can effectively reduce the optimization cost in the later stage;

[0080] 3. Compared with the general system analysis technology based on simulation test, the present invention realizes the automated model conversion method and formal model calculation. At the same time, since the time cost of formal calculation is much lower than that of simulation-based technology, it can greatly improve the design efficiency;

[0081] 4. The present invention expands and analyzes the model based on the domain knowledge of AutoSAR architecture design, so that it can be directly connected with the AutoSAR-based automobile development process, reducing the cost of model exchange and repeated modeling.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A reliability formalization prediction method for AutoSAR architecture, characterized in that: The method comprises: Parsing an arxml file, wherein the arxml file includes description information of the AutoSAR architecture, and obtaining an AutoSAR architecture model by parsing the arxml file, wherein the AutoSAR architecture model is used to describe the software architecture of the automobile system; Expanding the AutoSAR architecture model to add a fault description of the automotive system, wherein the expanded fault description includes fault behavior, software fault probability, hardware MTTF data, hardware MTTR data, and parameter dependency; Based on the defined conversion rules and mapping templates, the expanded AutoSAR architecture model is converted into a formal model based on a Markov chain; Performing reliability calculations on the Markov chain in the formalized model in different usage scenarios to obtain reliability calculation results of the formalized model; Generate modification suggestions for the AutoSAR architecture model based on the reliability calculation results and adjust the AutoSAR architecture model.

2. The reliability formalization prediction method for AutoSAR architecture according to claim 1, characterized in that: Parse the arxml file to obtain the AutoSAR architecture model, including: The AutoSAR architecture model is determined by parsing the component relationships, intra-component behaviors and deployment status of the AutoSAR architecture model in the arxml file.

3. The reliability formalization prediction method for AutoSAR architecture according to claim 2 is characterized in that: Different parsing rules are formulated according to the type of each component in the AutoSAR architecture model to parse each component.

4. The reliability formalization prediction method for AutoSAR architecture according to claim 1, characterized in that: The expanded AutoSAR architecture model is converted into a formal model based on a Markov chain, including: After the AutoSAR architecture model is expanded to add a fault description of the automotive system, hardware MTTF data and hardware MTTR data in the fault description are converted into hardware fault probability; Based on the conversion rules and mapping templates, the expanded AutoSAR architecture model is converted into the formalized model based on the Markov chain according to the expanded AutoSAR architecture model and the hardware failure probability.

5. The reliability formalization prediction method for AutoSAR architecture according to claim 1, characterized in that: The Markov chain in the formal model is a discrete-time Markov chain.

6. The reliability formalization prediction method for AutoSAR architecture according to claim 5, characterized in that: The method further comprises: A mapping template is defined, and the states of the parallel components in the AutoSAR architecture model are merged according to the mapping template. The discrete-time Markov chain model is combined according to the interaction relationship between the components, so as to realize the conversion of the expanded AutoSAR architecture model into the formalized model.

7. The reliability formalization prediction method for AutoSAR architecture according to claim 1, characterized in that: The method further comprises: The modification suggestions of the AutoSAR architecture model include modification suggestions based on scalars and modification suggestions based on topological structures.