CN114398198A - Embedded software fault anchor point positioning analysis method, device, equipment and medium - Google Patents

Embedded software fault anchor point positioning analysis method, device, equipment and medium Download PDF

Info

Publication number
CN114398198A
CN114398198A CN202111568972.7A CN202111568972A CN114398198A CN 114398198 A CN114398198 A CN 114398198A CN 202111568972 A CN202111568972 A CN 202111568972A CN 114398198 A CN114398198 A CN 114398198A
Authority
CN
China
Prior art keywords
fault
module
information
anchor point
software
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
CN202111568972.7A
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.)
Casco Signal Ltd
Original Assignee
Casco Signal 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 Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN202111568972.7A priority Critical patent/CN114398198A/en
Publication of CN114398198A publication Critical patent/CN114398198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0718Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an object-oriented system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method, a device, equipment and a medium for positioning and analyzing embedded software fault anchor points, wherein the method utilizes anchor point positioning, actively adds fault assertion in a software compiling stage and generates a dynamic fault code table; when a fault occurs, the position of the fault is positioned through the backtracking anchor point; meanwhile, the auxiliary tool is used for inquiring the reason of the fault, so that the fault influence is eliminated; the device comprises a configuration module, a loading module, a monitoring module, a downloading module and an analysis module, wherein all the modules can work independently, and the configuration module, the loading module, the monitoring module, the downloading module and the analysis module are respectively connected with a system maintenance platform. Compared with the prior art, the invention has the advantages of greatly reducing the workload of maintenance personnel and the like.

Description

Embedded software fault anchor point positioning analysis method, device, equipment and medium
Technical Field
The invention relates to a fault detection technology of embedded software, in particular to a method, a device, equipment and a medium for positioning and analyzing a fault anchor point of the embedded software.
Background
In the stages of research, development, use and maintenance, embedded software often encounters some difficult and complicated faults and needs to be detected, positioned and analyzed. Fault detection typically solves two problems, the first one being: "where the failure occurred? The "second problem is: why does this happen? "in the face of the first problem, the equipment provider executes to a certain location by means of a print statement or LED status display application; for the second problem, the variable information and the content of the processor memory can only be observed by the register display window. These commissioning and maintenance work is very time consuming and not easy to locate a specific cause.
Many industry manufacturers provide log analysis and memory retrieval tools such as special debuggers or matched analysis tools, and the tools are often expensive, and have higher requirements on subsequent personnel training even after large amounts of capital are invested for purchase. Therefore, how to analyze the possible faults in real time and perform corresponding processing reduces manual intervention, and becomes a technical problem to be solved.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method, a device, equipment and a medium for positioning and analyzing the fault anchor point of the embedded software, which greatly reduce the workload of maintenance personnel.
The purpose of the invention can be realized by the following technical scheme:
according to the first aspect of the invention, the invention provides an embedded software fault anchor point positioning analysis method, which utilizes anchor point positioning, actively adds fault assertion in a software compiling stage and generates a dynamic fault code table; when a fault occurs, the position of the fault is positioned through the backtracking anchor point; meanwhile, the auxiliary tool is used for inquiring the reason of the fault, and the fault influence is eliminated.
As a preferred technical scheme, the method comprises the following steps:
step S1, starting the fault anchor point positioning analysis device, and setting a fault point search keyword in a configuration module;
step S2, setting each type or each item of failure corresponding information in the configuration module;
step S3, starting a loading module, searching a code anchor point pile after loading a code, and automatically inserting a set fault anchor point into the code;
step S4, loading module associated software compiling tool, the software compiling tool generating fault list according to fault key word;
step S5, the monitoring module automatically matches the related information with keywords during the operation of the embedded software; when the downtime or the abnormal information is thrown out, a fault point is positioned according to the anchor point, and the quick processing is carried out by combining the preset processing measures; and starting a downloading module to automatically download the log and the memory dump information
Step S6, the download module documents the downloaded log after performing the text processing and uploads the log to the remote maintenance desk, and the downloaded memory information is sent to the analysis module;
and step S7, the analysis module analyzes the downloaded memory information, inquires task information, stack information, key variable information and message queues, and finds out key points of the problems by combining the fault list.
As a preferred technical solution, the anchor point is a hyperlink technology, and is used for dynamically realizing mutual jumping between the same page or multiple pages.
As a preferred technical solution, the corresponding information in the step S2 adopts an anchor point style "ID + name + description" and attaches a countermeasure for each fault, and is associated with the maintenance manual.
Preferably, the related information in step S5 includes log information and maintenance print information.
According to a second aspect of the present invention, a device for the embedded software fault anchor point positioning analysis method is provided, the device includes a configuration module, a loading module, a monitoring module, a downloading module and an analysis module, all of which can work independently, and the configuration module, the loading module, the monitoring module, the downloading module and the analysis module are respectively connected with a system maintenance platform.
As a preferred technical solution, the configuration module is used for setting a code fault identification point, and referring to a maintenance manual to allow a maintenance person to describe fault details.
As a preferred technical solution, the loading module is configured to insert a fault anchor point into an imported embedded code, and the associated compiling tool automatically generates a fault list in a software compiling process.
As a preferred technical scheme, the monitoring module is used for monitoring maintenance information thrown out by software in a downtime or abnormality process during software operation, and positioning fault list information by using anchor points.
As a preferred technical solution, the download module is configured to download a software maintenance log and memory dump information after a fault occurs, so that maintenance personnel can further analyze a fault cause.
As a preferred technical solution, the analysis module is configured to track the stored information after the fault occurs, and find out parameter variable information when the fault occurs, so as to find out a specific cause of the fault.
According to a third aspect of the invention, there is provided an electronic device comprising a memory having stored thereon a computer program and a processor implementing the method when executing the program.
According to a fourth aspect of the invention, there is provided a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements the method.
Compared with the prior art, the invention has the following advantages:
1) the invention breaks through the fault handling full-process node of generating- > monitoring- > analyzing- > filing from the software fault point. Can be reused in embedded systems in various fields, and has strong universality.
2) The invention designs keyword matching for maintaining printing information through logs. The potential faults are analyzed in real time through the anchor point positioning technology and are correspondingly processed, so that manual intervention is reduced, the fault processing efficiency is improved, and meanwhile, the labor cost is reduced.
3) The device can be designed as an independent component of the maintenance platform or distributed to be deployed to multiple maintenance platforms, and has deployment and operation flexibility.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic view of the structure of the apparatus of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention provides a device and a method for positioning and analyzing a fault anchor point of embedded software. An "anchor" is a common technique using hyperlinks to enable mutual jumps between pages. And (4) positioning by utilizing an anchor point, actively adding fault assertion in a software compiling stage, and generating a dynamic fault code table. When the fault occurs, the position of the fault occurs is located through the backtracking anchor point. Meanwhile, the auxiliary tool can be used for inquiring the reason of the fault, and the fault influence is eliminated.
As shown in fig. 1, a method for positioning and analyzing a fault anchor point of embedded software includes the following steps:
step 1, after the fault anchor POINT positioning analysis device is started, a user sets special character strings for identifying fault POINTs in a configuration module, such as 'Point _ NULL _ ERROR', 'PARAM _ RANGE _ ERROR' and the like;
and 2, setting each kind of fault information in the configuration module, and adopting an anchor point style of ID + name + position + description + fault countermeasure. Such as "E001, POINT _ NULL _ ERROR, NULL pointer exception, Module replacement repair". Wherein the fault countermeasure can refer to a self-maintenance manual g;
step 3, starting a loading module, importing a required software code h, and inserting the fault anchor point set in the step 2 into the code according to the identifier in the step 1;
and 4, the loading module can be associated with a system compiling tool i, and automatically positions a fault trigger point according to the anchor point position when compiling the software mirror image to be used as anchor point additional information. Such as "E001, POINT _ NULL _ ERROR, NULL pointer exception, Module replacement repair, Test1.c123 line". And searching the whole engineering file in the same way to generate a fault list.
And 5 and 6, starting a monitoring module in the software running process, and continuously monitoring the running maintenance information j. Keyword matching is automatically performed on log information, maintenance print information, and the like. And when the downtime or the abnormal information is thrown out, positioning a fault point according to the anchor point.
And 7, processing according to a preset processing measure according to the fault list.
And 8, starting a downloading module, and automatically downloading the maintenance log and the memory dump information. The maintenance log may be uploaded to a remote maintenance station k for backup.
And 9, starting an analysis module by a maintainer, recording the running condition of the system according to the log, and analyzing the stored and transferred information to obtain the fault reason.
And step 10, recording an analysis report in an analysis module. Reports may also be uploaded to remote maintenance station k backup.
The above is a description of method embodiments, and the embodiments of the present invention are further described below by way of apparatus embodiments.
As shown in fig. 2, the device for positioning and analyzing the fault anchor point of the embedded software comprises a configuration module a, a loading module b, a monitoring module c, a downloading module d and an analysis module e, wherein the modules can run independently and are connected with each other through an ethernet switch f. The configuration module a is connected with the maintenance manual g through a dialog box. And the loading module b is connected with the software code h through a dialog box and is connected with the compiling tool i through a control. And the monitoring module c is connected with the maintenance information i through a control.
1. A configuration module a:
the configuration module a is used for setting code fault identification points and referring to a maintenance manual to enable maintenance personnel to describe fault details.
2. And a loading module b:
the loading module b is used for inserting a fault anchor point into the imported embedded code, and the associated compiling tool automatically generates a fault list in the software compiling process.
3. And a monitoring module c:
and the monitoring module c is used for monitoring the maintenance information thrown out by the software in a downtime or abnormity process in the software running process and positioning the fault list information by utilizing the anchor points.
4. And a downloading module d:
the downloading module d can download the software maintenance log and the memory dump information after the failure occurs. And further analyzing the fault reason by maintenance personnel. The module may backup the maintenance log to system maintenance k.
5. An analysis module e:
the analysis module e can track the stored and transferred information after the fault occurs, and find out the parameter variable information when the fault occurs, so as to find out the specific reason of the fault. The module may generate a fault analysis report that is sent to the system maintenance station k.
The device utilizes the anchor point positioning characteristic, and can generate a code table in the software compiling stage according to the faults which possibly occur in the research and development stage. When a fault occurs, the position of the fault is found out through anchor point positioning, and the problem is quickly solved according to a processing mode of realizing definition. Meanwhile, the system provides a log and memory dump analysis function, queries and analyzes the root cause of the fault, and provides a function of generating a report and uploading the report to a maintenance platform in real time. The workload of maintenance personnel can be greatly reduced, and a full-flow processing mode from research and development to maintenance is realized.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The electronic device of the present invention includes a Central Processing Unit (CPU) that can perform various appropriate actions and processes according to computer program instructions stored in a Read Only Memory (ROM) or computer program instructions loaded from a storage unit into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
A plurality of components in the device are connected to the I/O interface, including: an input unit such as a keyboard, a mouse, etc.; an output unit such as various types of displays, speakers, and the like; storage units such as magnetic disks, optical disks, and the like; and a communication unit such as a network card, modem, wireless communication transceiver, etc. The communication unit allows the device to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit performs the respective methods and processes described above, for example, step 1 to step 10 of the method. For example, in some embodiments, steps 1-10 of the method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device via ROM and/or the communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more of steps 1 to 10 of the method described above may be performed. Alternatively, in other embodiments, the CPU may be configured to perform steps 1-10 of the method by any other suitable means (e.g., by means of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. A method for positioning and analyzing embedded software fault anchor points is characterized in that anchor point positioning is utilized, fault assertion is actively added in a software compiling stage, and a dynamic fault code table is generated; when a fault occurs, the position of the fault is positioned through the backtracking anchor point; meanwhile, the auxiliary tool is used for inquiring the reason of the fault, and the fault influence is eliminated.
2. The embedded software fault anchor point positioning analysis method according to claim 1, characterized by comprising the following steps:
step S1, starting the fault anchor point positioning analysis device, and setting a fault point search keyword in a configuration module;
step S2, setting each type or each item of failure corresponding information in the configuration module;
step S3, starting a loading module, searching a code anchor point pile after loading a code, and automatically inserting a set fault anchor point into the code;
step S4, loading module associated software compiling tool, the software compiling tool generating fault list according to fault key word;
step S5, the monitoring module automatically matches the related information with keywords during the operation of the embedded software; when the downtime or the abnormal information is thrown out, a fault point is positioned according to the anchor point, and the quick processing is carried out by combining the preset processing measures; and starting a downloading module to automatically download the log and the memory dump information
Step S6, the download module documents the downloaded log after performing the text processing and uploads the log to the remote maintenance desk, and the downloaded memory information is sent to the analysis module;
and step S7, the analysis module analyzes the downloaded memory information, inquires task information, stack information, key variable information and message queues, and finds out key points of the problems by combining the fault list.
3. The embedded software fault anchor point positioning analysis method as claimed in claim 1 or 2, characterized in that the anchor point is a hyperlink technology for dynamically implementing mutual jumping between the same page or multiple pages.
4. The embedded software fault anchor point positioning analysis method according to claim 2, characterized in that the corresponding information in step S2 adopts anchor point style "ID + name + description" and attaches countermeasures for each fault, and associates with the maintenance manual.
5. The embedded software fault anchor point location analysis method as claimed in claim 2, wherein the related information in step S5 includes log information and maintenance print information.
6. The device for the embedded software fault anchor point positioning analysis method as claimed in claim 1, characterized in that the device comprises a configuration module, a loading module, a monitoring module, a downloading module and an analysis module, wherein each module can work independently, and the configuration module, the loading module, the monitoring module, the downloading module and the analysis module are respectively connected with a system maintenance desk.
7. The apparatus of claim 6, wherein the configuration module is configured to set a code fault identification point and refer to a maintenance manual for a maintenance person to describe fault details.
8. The apparatus of claim 6, wherein the loading module is configured to insert a fault anchor into the imported embedded code, and wherein the associated compilation tool automatically generates a fault list during the software compilation process.
9. The apparatus of claim 6, wherein the monitoring module is configured to monitor maintenance information that the software is down or abnormally thrown during running of the software, and locate the fault list information using the anchor points.
10. The apparatus of claim 6, wherein the downloading module is configured to download the software maintenance log and the memory dump information after the failure occurs, so that the maintenance personnel can further analyze the cause of the failure.
11. The device according to claim 6, wherein the analysis module is configured to track the stored dump information after the fault occurs, and find parameter variable information when the fault occurs, so as to find out a specific cause of the fault.
12. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-5.
13. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202111568972.7A 2021-12-21 2021-12-21 Embedded software fault anchor point positioning analysis method, device, equipment and medium Pending CN114398198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111568972.7A CN114398198A (en) 2021-12-21 2021-12-21 Embedded software fault anchor point positioning analysis method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111568972.7A CN114398198A (en) 2021-12-21 2021-12-21 Embedded software fault anchor point positioning analysis method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114398198A true CN114398198A (en) 2022-04-26

Family

ID=81226803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111568972.7A Pending CN114398198A (en) 2021-12-21 2021-12-21 Embedded software fault anchor point positioning analysis method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114398198A (en)

Similar Documents

Publication Publication Date Title
US11226892B2 (en) Analyzing software test failures using natural language processing and machine learning
CN106681930B (en) Distributed automatic detection method and system for abnormal operation of application
CN112019401B (en) Internet of vehicles application safety testing method, device and system and electronic equipment
CN105912413B (en) Method and device for evaluating the availability of a system, in particular a safety-critical system
CN109669844A (en) Equipment obstacle management method, apparatus, equipment and storage medium
US20120254662A1 (en) Automated test system and automated test method
CN108665237B (en) Method for establishing automatic inspection model and positioning abnormity based on business system
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN112527546A (en) Application exception rapid positioning method, system, equipment and storage medium
JP6919438B2 (en) Fault analysis support device, incident management system, fault analysis support method and program
CN112817853A (en) Automatic test method, system and electronic equipment
WO2019077656A1 (en) Production facility monitoring device, production facility monitoring method, and production facility monitoring program
CN114860518A (en) Detection method and system of function safety system, electronic equipment and storage medium
CN110716843A (en) System fault analysis processing method and device, storage medium and electronic equipment
CN111858352B (en) Method, device, equipment and storage medium for automatic test monitoring
CN113392000A (en) Test case execution result analysis method, device, equipment and storage medium
CN114398198A (en) Embedded software fault anchor point positioning analysis method, device, equipment and medium
US11790249B1 (en) Automatically evaluating application architecture through architecture-as-code
CN111708756A (en) Method, device and equipment for automatically processing data warehouse and storage medium
Ulewicz et al. System regression test prioritization in factory automation: Relating functional system tests to the tested code using field data
US20140088903A1 (en) Manufacturing control system, amnufacturing control method, and manufacturing control program
JP2014126900A (en) Program analysis device, program analysis method, and program analysis program
CN113626288A (en) Fault processing method, system, device, storage medium and electronic equipment
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
CN114816876B (en) Automatic test system for server Redfish interface specifications

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