CN109254919B - Embedded software diagnosis system and method - Google Patents

Embedded software diagnosis system and method Download PDF

Info

Publication number
CN109254919B
CN109254919B CN201811016674.5A CN201811016674A CN109254919B CN 109254919 B CN109254919 B CN 109254919B CN 201811016674 A CN201811016674 A CN 201811016674A CN 109254919 B CN109254919 B CN 109254919B
Authority
CN
China
Prior art keywords
detection
embedded software
module
result
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811016674.5A
Other languages
Chinese (zh)
Other versions
CN109254919A (en
Inventor
张晋东
孙宛路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201811016674.5A priority Critical patent/CN109254919B/en
Publication of CN109254919A publication Critical patent/CN109254919A/en
Application granted granted Critical
Publication of CN109254919B publication Critical patent/CN109254919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses an embedded software diagnosis system and a method, wherein the system comprises a network searching and connecting module, a detection task obtaining module, a case detection configuration file analyzing module, a detection case selecting module, a detection result filling module, an embedded software system failure predicting module, an embedded software failure positioning module, a diagnosis report generating module and a server. According to the invention, the detection steps and the detailed description information are recorded through the embedded software detection case, and are provided for detection personnel to carry out detection according to the embedded software detection case, so that the detection personnel can check the execution condition and the specific completion degree of the detection; the invention can also be suitable for various network conditions, and can carry out diagnosis under all working conditions. The system and the method can help the detection personnel to successfully and effectively complete the diagnosis task, thereby ensuring the safety of the embedded software.

Description

Embedded software diagnosis system and method
Technical Field
The invention relates to an embedded software diagnosis system and a method, in particular to a method and a system for detecting a use case capable of recording functions and performance of embedded software under the condition of existence of a network.
Background
With the continuous development of the embedded industry, people not only require a better use sense of the embedded system, but also pay great attention to the safety performance of the embedded software, so that the functions and the performance of the embedded software need to be diagnosed to ensure the safety of the embedded software.
At present, in the diagnosis of embedded software, a tester often needs to manually test the functions and the performances of the embedded software. The manual detection of the functions and the performance of the embedded software is often performed in a remote detection site or in the field with a severe environment, and at the moment, the computer of a detector is not connected with a network, namely, the embedded software is in an off-line single-machine state. In addition, when the functions and the performances of the embedded software are detected, the details and the result analysis in the diagnosis process cannot be recorded in real time by many existing embedded software diagnosis systems.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide an embedded software diagnosis system and method, which can detect the functions and the performances of embedded software and diagnose the functions and record the detection results and diagnose the functions and the performances by establishing a functional module under the condition of network connection, thereby smoothly and effectively completing the diagnosis task and ensuring the safety of the embedded software.
In order to achieve the purpose, the invention adopts the following technical scheme:
an embedded software diagnostic system comprising:
the network searching and connecting module: the system is used for automatically searching whether a network exists or not, connecting to the network under the condition that the network exists and being in communication connection with a server;
a detection task obtaining module: the system comprises a detection task acquisition module, a configuration module and a configuration file acquisition module, wherein the detection task acquisition module is used for acquiring detection tasks in an online or offline mode, each detection task comprises at least one detection item, and the detection items are presented through a use case detection configuration file;
the case detection configuration file analysis module: the system comprises a use case detection configuration file, a project tree and a database, wherein the use case detection configuration file is used for carrying out hierarchical analysis on the use case detection configuration file so as to embody the use case detection configuration file in the form of the project tree; the project tree displays the detection projects and the corresponding detection cases in a tree hierarchical structure;
a detection case selection module: the method is used for selecting detection items required to be carried out on a project tree, then selecting detection cases required to be carried out under the detection items, acquiring detection steps and expected results corresponding to the detection cases, and carrying out detection according to the detection steps;
a detection result filling module: the system is used for filling the detection result of each detection case in a check box mode; if the detection is successful, the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection fails, the detection result of the detection case is marked as 'N' in a detection result filling module;
the embedded software failure prediction module: the embedded software failure prediction method is used for providing reasons for the characteristic rules of the embedded software through the characteristic rules of the embedded software typical failure and the characteristic rules expressed by the detection result in the interior and the exterior of the embedded software before the embedded software fails, and realizing failure prediction on the impending performance failure and functional failure in the operation of the embedded software;
the embedded software fault positioning module: carrying out qualitative and quantitative analysis on multi-fault decoupling of the embedded software to obtain fault location;
a diagnostic report generation module: the embedded software failure prediction module is used for generating an embedded software function and performance diagnosis report according to the detection result of each detection case, the prediction result of the embedded software failure prediction module and the failure positioning result of the embedded software failure positioning module, and uploading the generated embedded software function and performance diagnosis report to the server in an on-line automatic or off-line mobile storage medium mode;
a server: the method is used for storing the detection tasks and the corresponding use case detection configuration files, and storing the embedded software function and performance diagnosis reports.
Further, if all detection cases under the detection project nodes on the project tree are detected completely, the detection cases are automatically hidden.
The method for diagnosing by using the embedded software diagnosis system comprises the following steps:
s1, the network searching and connecting module automatically searches whether a network exists or not, and is connected to the network under the condition that the network exists;
s2, when a network connection exists, the detection task acquisition module is connected to the server through the network and downloads the detection task from the server on line; when no network connection exists, downloading a detection task from a server in an off-line mode through a mobile storage medium, and acquiring the detection task in an off-line mode through a detection task acquisition module through the mobile storage medium; each detection task comprises at least one detection item, and each detection item is presented through a use case detection configuration file;
s3, importing the detection tasks and the corresponding use case detection configuration files acquired in the step S2 into a use case detection configuration file analysis module, and performing hierarchical analysis on the use case detection configuration files by the use case detection configuration file analysis module so as to embody the use case detection configuration files in a project tree form;
s4, selecting a detection item to be detected from the item tree, selecting a detection case to be detected under the detection item, and acquiring a detection step and an expected result of the detection case;
s5, detecting the function and performance of the embedded software according to the detection steps of the detection case to obtain a detection result;
s6, comparing the detection result obtained in the step S5 with a corresponding expected result, if the detection result is consistent with the expected result, the detection is successful, and the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection result is inconsistent with the expected result, the detection fails, and the detection result of the detection case is marked as 'N' in a detection result filling module;
s7, the embedded software failure prediction module gives reasons for the characteristic rules of the embedded software through the typical failure characteristic rules of the embedded software and the characteristic rules expressed by the detection result in the inner part and the outer part of the embedded software before failure, and realizes failure prediction of the impending performance failure and functional failure of the embedded software in operation;
s8, the embedded software fault locating module obtains fault location by qualitatively and quantitatively analyzing the multi-fault decoupling of the embedded software;
s9, the diagnosis report generating module generates the latest detection result of each detection case, the prediction result of the embedded software failure prediction module and the fault location result of the embedded software fault location module into an embedded software function and performance diagnosis report;
s10, when network connection exists, uploading the embedded software function and performance diagnosis report generated in the step S9 to a server in real time through a network searching and connecting module; when no network connection exists, the off-line stand-alone automatic storage is immediately carried out when a new embedded software function and performance diagnosis report are generated each time, and the stored embedded software function and performance diagnosis report are manually copied to a server for storage through a mobile storage medium.
The invention has the beneficial effects that:
1. the invention records the detection steps and describes detailed information through the embedded software detection case, provides detection personnel for detecting according to the embedded software function and performance detection case, and can check the execution condition of diagnosis, the specific completion degree and the diagnosis result.
2. The invention can adapt to various network conditions, and can diagnose under all working conditions.
The system and the method can help the detection personnel to successfully and effectively complete the diagnosis task, thereby ensuring the safety of the embedded software.
Drawings
FIG. 1 is a schematic diagram of a system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method implementation of an embodiment of the invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, and it should be noted that the following examples are provided to illustrate the detailed embodiments and specific operations based on the technical solutions of the present invention, but the scope of the present invention is not limited to the examples.
As shown in fig. 1, an embedded software diagnostic system includes:
the network searching and connecting module: the system is used for automatically searching whether a network exists or not, connecting to the network under the condition that the network exists and being in communication connection with a server;
a detection task obtaining module: the system comprises a detection task acquisition module, a configuration module and a configuration file acquisition module, wherein the detection task acquisition module is used for acquiring detection tasks in an online or offline mode, each detection task comprises at least one detection item, and the detection items are presented through a use case detection configuration file;
the case detection configuration file analysis module: the system comprises a use case detection configuration file, a project tree and a database, wherein the use case detection configuration file is used for carrying out hierarchical analysis on the use case detection configuration file so as to embody the use case detection configuration file in the form of the project tree; the project tree displays the detection projects and the corresponding detection cases in a tree hierarchical structure;
a detection case selection module: the method is used for selecting detection items required to be carried out on a project tree, then selecting detection cases required to be carried out under the detection items, acquiring detection steps and expected results corresponding to the detection cases, and carrying out detection according to the detection steps;
a detection result filling module: the system is used for filling the detection result of each detection case in a check box mode; if the detection is successful, the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection fails, the detection result of the detection case is marked as 'N' in a detection result filling module;
the embedded software failure prediction module: the embedded software failure prediction method is used for providing reasons for the characteristic rules of the embedded software through the characteristic rules of the embedded software typical failure and the characteristic rules expressed by the detection result in the interior and the exterior of the embedded software before the embedded software fails, and realizing failure prediction on the impending performance failure and functional failure in the operation of the embedded software;
the embedded software fault positioning module: carrying out qualitative and quantitative analysis on multi-fault decoupling of the embedded software to obtain fault location;
a diagnostic report generation module: the embedded software failure prediction module is used for generating an embedded software function and performance diagnosis report according to the detection result of each detection case, the prediction result of the embedded software failure prediction module and the failure positioning result of the embedded software failure positioning module, and uploading the generated embedded software function and performance diagnosis report to the server in an on-line automatic or off-line mobile storage medium mode;
a server: the method is used for storing the detection tasks and the corresponding use case detection configuration files, and storing the embedded software function and performance diagnosis reports.
As shown in fig. 2, S1, the network searching and connecting module automatically searches whether there is a network, and if so, connects to the network;
s2, when a network connection exists, the detection task acquisition module is connected to the server through the network and downloads the detection task from the server on line; when no network connection exists, downloading a detection task from a server in an off-line mode through a mobile storage medium, and acquiring the detection task in an off-line mode through a detection task acquisition module through the mobile storage medium; each detection task comprises at least one detection item, and each detection item is presented through a use case detection configuration file;
s3, importing the detection tasks and the corresponding use case detection configuration files acquired in the step S2 into a use case detection configuration file analysis module, and performing hierarchical analysis on the use case detection configuration files by the use case detection configuration file analysis module so as to embody the use case detection configuration files in a project tree form;
s4, selecting a detection item to be detected from the item tree, selecting a detection case to be detected under the detection item, and acquiring a detection step and an expected result of the detection case;
s5, detecting the function and performance of the embedded software according to the detection steps of the detection case to obtain a detection result;
s6, comparing the detection result obtained in the step S5 with a corresponding expected result, if the detection result is consistent with the expected result, the detection is successful, and the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection result is inconsistent with the expected result, the detection fails, and the detection result of the detection case is marked as 'N' in a detection result filling module;
s7, the embedded software failure prediction module gives reasons for the characteristic rules of the embedded software through the typical failure characteristic rules of the embedded software and the characteristic rules expressed by the detection result in the inner part and the outer part of the embedded software before failure, and realizes failure prediction of the impending performance failure and functional failure of the embedded software in operation;
s8, the embedded software fault locating module obtains fault location by qualitatively and quantitatively analyzing the multi-fault decoupling of the embedded software;
s9, the diagnosis report generating module generates the latest detection result of each detection case, the prediction result of the embedded software failure prediction module and the fault location result of the embedded software fault location module into an embedded software function and performance diagnosis report;
s10, when network connection exists, uploading the embedded software function and performance diagnosis report generated in the step S9 to a server in real time through a network searching and connecting module; when no network connection exists, the off-line stand-alone automatic storage is immediately carried out when a new embedded software function and performance diagnosis report are generated each time, and the stored embedded software function and performance diagnosis report are manually copied to a server for storage through a mobile storage medium.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (2)

1. A method for performing diagnostics using an embedded software diagnostic system, the embedded software diagnostic system comprising:
the network searching and connecting module: the system is used for automatically searching whether a network exists or not, connecting to the network under the condition that the network exists and being in communication connection with a server;
a detection task obtaining module: the system comprises a detection task acquisition module, a configuration module and a configuration file acquisition module, wherein the detection task acquisition module is used for acquiring detection tasks in an online or offline mode, each detection task comprises at least one detection item, and the detection items are presented through a use case detection configuration file;
the case detection configuration file analysis module: the system comprises a use case detection configuration file, a project tree and a database, wherein the use case detection configuration file is used for carrying out hierarchical analysis on the use case detection configuration file so as to embody the use case detection configuration file in the form of the project tree; the project tree displays the detection projects and the corresponding detection cases in a tree hierarchical structure;
a detection case selection module: the method is used for selecting detection items required to be carried out on a project tree, then selecting detection cases required to be carried out under the detection items, acquiring detection steps and expected results corresponding to the detection cases, and carrying out detection according to the detection steps;
a detection result filling module: the system is used for filling the detection result of each detection case in a check box mode; if the detection is successful, the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection fails, the detection result of the detection case is marked as 'N' in a detection result filling module;
the embedded software failure prediction module: the embedded software failure prediction method is used for providing reasons for the characteristic rules of the embedded software through the characteristic rules of the embedded software typical failure and the characteristic rules expressed by the detection result in the interior and the exterior of the embedded software before the embedded software fails, and realizing failure prediction on the impending performance failure and functional failure in the operation of the embedded software;
the embedded software fault positioning module: carrying out qualitative and quantitative analysis on multi-fault decoupling of the embedded software to obtain fault location;
a diagnostic report generation module: the embedded software failure prediction module is used for generating an embedded software function and performance diagnosis report according to the detection result of each detection case, the prediction result of the embedded software failure prediction module and the failure positioning result of the embedded software failure positioning module, and uploading the generated embedded software function and performance diagnosis report to the server in an on-line automatic or off-line mobile storage medium mode;
a server: the system is used for storing detection tasks and corresponding use case detection configuration files, and storing embedded software function and performance diagnosis reports;
the method comprises the following steps:
s1, the network searching and connecting module automatically searches whether a network exists or not, and is connected to the network under the condition that the network exists;
s2, when a network connection exists, the detection task acquisition module is connected to the server through the network and downloads the detection task from the server on line; when no network connection exists, downloading a detection task from a server in an off-line mode through a mobile storage medium, and acquiring the detection task in an off-line mode through a detection task acquisition module through the mobile storage medium; each detection task comprises at least one detection item, and each detection item is presented through a use case detection configuration file;
s3, importing the detection tasks and the corresponding use case detection configuration files acquired in the step S2 into a use case detection configuration file analysis module, and performing hierarchical analysis on the use case detection configuration files by the use case detection configuration file analysis module so as to embody the use case detection configuration files in a project tree form;
s4, selecting a detection item to be detected from the item tree, selecting a detection case to be detected under the detection item, and acquiring a detection step and an expected result of the detection case;
s5, detecting the function and performance of the embedded software according to the detection steps of the detection case to obtain a detection result;
s6, comparing the detection result obtained in the step S5 with a corresponding expected result, if the detection result is consistent with the expected result, the detection is successful, and the detection result of the detection case is marked as 'Y' in a detection result filling module; if the detection result is inconsistent with the expected result, the detection fails, and the detection result of the detection case is marked as 'N' in a detection result filling module;
s7, the embedded software failure prediction module gives reasons for the characteristic rules of the embedded software through the typical failure characteristic rules of the embedded software and the characteristic rules expressed by the detection result in the inner part and the outer part of the embedded software before failure, and realizes failure prediction of the impending performance failure and functional failure of the embedded software in operation;
s8, the embedded software fault locating module obtains fault location by qualitatively and quantitatively analyzing the multi-fault decoupling of the embedded software;
s9, the diagnosis report generating module generates the latest detection result of each detection case, the prediction result of the embedded software failure prediction module and the fault location result of the embedded software fault location module into an embedded software function and performance diagnosis report;
s10, when network connection exists, uploading the embedded software function and performance diagnosis report generated in the step S9 to a server in real time through a network searching and connecting module; when no network connection exists, the off-line stand-alone automatic storage is immediately carried out when a new embedded software function and performance diagnosis report are generated each time, and the stored embedded software function and performance diagnosis report are manually copied to a server for storage through a mobile storage medium.
2. The method of claim 1, wherein the project tree is automatically hidden if all detection cases under a node of a detection project are detected.
CN201811016674.5A 2018-09-03 2018-09-03 Embedded software diagnosis system and method Active CN109254919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811016674.5A CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811016674.5A CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Publications (2)

Publication Number Publication Date
CN109254919A CN109254919A (en) 2019-01-22
CN109254919B true CN109254919B (en) 2022-03-29

Family

ID=65049514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811016674.5A Active CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Country Status (1)

Country Link
CN (1) CN109254919B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878497A (en) * 2023-02-22 2023-03-31 苏州成科自控设备有限公司 Embedded software programming and diagnosing system and method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149901A (en) * 2013-02-04 2013-06-12 南京理工大学 Embedded intelligent monitoring and remote maintaining system of manufacturing equipment
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN203965533U (en) * 2014-04-28 2014-11-26 苏州华天国科电力科技有限公司 A kind of individual line subscriber energy-saving potential and quality of power supply intelligent diagnosing instrument
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106708684A (en) * 2017-02-15 2017-05-24 国网安徽省电力公司宣城供电公司 Virtual environment testing hardware system for transformer substation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011108201A (en) * 2009-11-20 2011-06-02 Fujitsu Ltd Information processing apparatus, method and program of diagnosis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149901A (en) * 2013-02-04 2013-06-12 南京理工大学 Embedded intelligent monitoring and remote maintaining system of manufacturing equipment
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN203965533U (en) * 2014-04-28 2014-11-26 苏州华天国科电力科技有限公司 A kind of individual line subscriber energy-saving potential and quality of power supply intelligent diagnosing instrument
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106708684A (en) * 2017-02-15 2017-05-24 国网安徽省电力公司宣城供电公司 Virtual environment testing hardware system for transformer substation

Also Published As

Publication number Publication date
CN109254919A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
WO2019205858A1 (en) Vehicle diagnosis method, apparatus, and device
WO2021179574A1 (en) Root cause localization method, device, computer apparatus, and storage medium
US7739007B2 (en) Vehicle diagnostic method and system with intelligent data collection
US6219626B1 (en) Automated diagnostic system
US9959158B2 (en) Methods and apparatus for the creation and use of reusable fault model components in fault modeling and complex system prognostics
US11233713B2 (en) Controller area network and connectivity health troubleshooting system
US9310345B2 (en) Sensor system, computer, and machine
CN108804326B (en) Automatic software code detection method
WO2020015471A1 (en) Automotive diagnostic method and device, and storage medium
CN112199277B (en) Defect reproduction method, device, equipment and storage medium based on browser
EP1376362A1 (en) Device for fault localization in a complex system
CN109254919B (en) Embedded software diagnosis system and method
FR2920558A1 (en) METHOD AND SYSTEM FOR DIAGNOSING THE DYSFUNCTION OF A MOTOR VEHICLE
CN114500178B (en) Self-operation intelligent Internet of things gateway
CN100517243C (en) Open type system for collecting testing data and method thereof
CN112231202A (en) Automatic Bug lifting method based on log monitoring and monitored module monitoring
CN115328689B (en) Fault diagnosis method, device, equipment and program product
CN113625676B (en) Engineering machinery fault diagnosis method and system, field diagnosis device and storage medium
JPH0713617A (en) Cause estimating method for nonconformity event
US20230231784A1 (en) Controller area network and connectivity health troubleshooting system
CN211855849U (en) Vehicle failure detection device
JPH02151000A (en) Fault diagnostic device and fault diagnostic system
CN117873045A (en) Device, method, equipment and storage medium for diagnosing faults of general components of vehicle
CN115509862A (en) Recorder, recording method and component, detection method and component, and cloud system
CN114880245A (en) Fault diagnosis device and system

Legal Events

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