CN1312587C - An embedded real time operating system fault analysis positioning system and method - Google Patents
An embedded real time operating system fault analysis positioning system and method Download PDFInfo
- Publication number
- CN1312587C CN1312587C CNB031563848A CN03156384A CN1312587C CN 1312587 C CN1312587 C CN 1312587C CN B031563848 A CNB031563848 A CN B031563848A CN 03156384 A CN03156384 A CN 03156384A CN 1312587 C CN1312587 C CN 1312587C
- Authority
- CN
- China
- Prior art keywords
- viewer
- variable
- module
- communication link
- fault
- 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.)
- Expired - Fee Related
Links
Landscapes
- Computer And Data Communications (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The present invention discloses a system and a method for analyzing and positioning faults of an embedded type real-time operating system. The analyzing and positioning system comprises a viewer module, a communication link, and an acting module of a single-board software viewer. The system and the method for analyzing and positioning faults of an embedded type real-time operating system can conveniently analyze and position faults on various commercial sites and determine reasons of the faults by analyzing relevant variables for removing the faults in time. The present invention can be widely used for analyzing and positioning faults of software running in the embedded type real-time operating system on a single plate which does not support display equipment.
Description
Technical field
The present invention relates to data communication field, be specifically related in the communication system under the embedded real-time operating system operating software fault analysis positioning system and method on the veneer, relate more specifically to not support on the veneer of display device embedded real-time operating system (for example PSOS) the fault analysis localization method of operating software down.
Background technology
At embedded real-time operating system (for example PSOS), be not with display terminal in the actual motion, several flashing lights limited on veneer are represented the running status, can't learn the current operation conditions of detail.When fault took place, the veneer flashing light had the demonstration up-set condition, also may what unusually all not have, and on-the-spot in the actual commercial operation of complexity, this all can't carry out the fault analysis location.
And commercial on-spot is very urgent urgent for the solution of problem, and this just need have a quick method of convenient realization again rapidly to fault.Key variables just can disclose the place of fault occurrence cause this time, how to obtain the key that key variables just become a fault analysis and location this time.And in the embedded real-time operating system that relates in the above, software variable information can't obtain again on the veneer of actual commercial operational process.So the online system and method that the board software variable is observed in the actual moving process need be provided.By patent retrieval, effective system and method are not arranged as yet.
Summary of the invention
The technical problem to be solved in the present invention is, in the middle of related system's input when taking place, output and the flow process at fault crucial global variable provide one can online fault analysis and the system and method for location, along the operation flow step, check the input and output of each step, if the input of this step is correct, and output abnormality, fault just is positioned in the realization function of this step so, the software that this method can generally be moved on embedded real-time operating system.
Fault analysis positioning system provided by the invention comprises: viewer module, communication link, board software viewer proxy module,
Described viewer module comprises a global variable information database and the operation interface that variable symbol table message file generates that has by tested single board, the user need can select the name variable of operation in described interface, carry out interacting message by communication link and board software viewer proxy module;
Described global variable information database comprises title, types of variables and the address of variable of this variable;
Described communication link comprises physical link between viewer module and the board software viewer proxy module, utilize described physical link to carry out data transmission and receive the data communication module in the data communication module and board software on the viewer module;
Described board software viewer proxy module receives the instruction that the viewer module transmits by communication link, read the measured variable value, and pass information back the viewer module by communication link, the viewer module realizes fault analysis location to system according to the correctness of measured variable value.
The method that realizes the fault analysis location according to system of the present invention comprises following treatment step:
1. decompose the function f of concrete each performing step for the flow process that breaks down
1To f
n, n 〉=1 and be positive integer wherein; Determine function f
m(the input variable x of m 〉=1 and m≤n)
MiAnd output variable y
MoY wherein
Mo=x
(m+1) i, promptly go up the input that a step function is output as the next procedure function;
2. described viewer module is from f
1Begin to check x
LiAnd y
LoIf x
LiMistake illustrates that the fault that has problem to take place is imported in the outside of total system, and system itself is no problem, finishes; Otherwise just continue to check y
LoIf, y
LoMistake, fault just is positioned at f so
1, finish; If x
LiAnd y
LoAll correct, m=2 so;
3. described viewer module check f
m(the output y of m 〉=2 and m<n)
MoIf y
MoMistake, localization of fault is at f so
m, finish; Otherwise m=m+1;
4. if m=n, localization of fault is at f so
nOtherwise repeating step 3.
Adopt fault analysis positioning system of the present invention and method, can carry out the fault analysis location at various commercial on-spots easily,, determine the reason that fault takes place, in time fix a breakdown by analysis to correlated variables.
Description of drawings
Fig. 1 is a device composition diagram of the present invention;
Fig. 2 is realization flow figure of the present invention;
Fig. 3 is a viewer processing flow chart of the present invention.
Embodiment
Wherein similarly parts identify with identical reference character.The present invention will describe at should be used in the PSOS real time operating system, but be not limited to such purposes.Or rather, the embodiment that is provided only is for concrete application process of the present invention is described.
Figure 1 shows that the composition of apparatus of the present invention.This device can be divided into three parts and form: viewer module 101, communication link 102 and board software viewer proxy module 103.
101: one softwares that run on the PC of viewer module, this software has variable symbol table message file (in PSOS for an ELF file) induced variable symbol table text by board operation software, the viewer program meets the table information format according to variable in the file and generates a global variable information database, database comprises the title of this variable, types of variables and address of variable, it also provides an operation interface, can allow the user select to want the name variable of operating, and the instruction translation of user interface is become the instruction that board operation software viewer agency can be familiar with and sends this instruction, receive response variate-value that board operation software acts on behalf of simultaneously and be presented at and notify the user on the interface;
Communication link 102: realize the data communication between viewer and the board software viewer agency.Physically can be the physical link of PC and veneer transmission data, for example the RS232 interface of PC and veneer and the line between them; Except physical link, communication link also comprises the data communication module in the data communication module and board software on the PC that utilizes physical link to carry out data transmission and reception;
Board software viewer proxy module 103: receive the instruction that viewer transmits by communication link, according to the address of variable in the instruction, types of variables reads variate-value to address of variable; The variate-value that reads is formed response, be returned to viewer by communication link.
The viewer module comprises one of PC, operating system and operation software thereon, and PC and operating system are not introduced in detail here, mentions the software that viewer 101 refers to operation later on.It also comprises the board software global variable database of being set up by viewer 101 111, and being the user observes terminal with retouching operation to the board software variable.
Communication link 102 is finished the data transmission between viewer module 101 and the viewer proxy module 103, comprises Data Receiving and sending module on the PC operating system, Data Receiving on the board software and sending module, and physical link.Physical link is various informative, can be that PC goes up the line between RS232 interface on RS232 interface and the veneer and two interfaces, does not also introduce in detail here.
Viewer agency 103 finishes instruction and the execution that receives viewer, finishes the instruction back and responds.It is the part of board software, finishes the factorage of manager.
112 refer to that viewer module 101 sends data to communication link 102 among Fig. 1, carry out 123 finger communication links 102 then data are passed to viewer proxy module 103.132 finger viewer proxy modules 103 are passed to communication link 102 with data, carry out 121 finger communication links 102 then data are passed to viewer module 101.
Fig. 2 is fault analysis positioning flow figure of the present invention.At first be that step 201 fault takes place.Step 202 is decomposed into the flow process that breaks down the function f of concrete each performing step
1To f
n, n 〉=1 and be positive integer wherein.Step 203 is determined function f
m(the input variable X of m 〉=1 and m≤n)
MiAnd output variable Y
MoY wherein
Mo=X
(m+1) i, promptly go up the input that a step function is output as the next procedure function; X
1iRepresent the input of this system, Y
NoRepresent the output of this system.Fault is exactly Y
NoRefer to incorrectly, do not reach predetermined requirement.Step 204 is with m=1, promptly from first function f
1Beginning.Step 205 uses viewer to obtain X
Mi, how to obtain and in Fig. 3, to introduce in detail.Step 206 is judged X
MiWhether correct, if incorrect step 207 fault location that enters goes out input in system, native system itself is no problem, and flow process finishes; Use viewer to obtain Y if correctly enter step 208
MoStep 209 is judged Y
MoWhether correct, if incorrect step 210 fault location that enters goes out in function f
m, flow process finishes; Make m=m+1 if correctly enter step 211.Step 212 judges whether m equals n, if equate then enter step 213 fault location to go out at f
n, flow process finishes; Otherwise return step 208.
Fig. 3 is a viewer processing flow chart of the present invention, also is the specific implementation of step 205 and step 208 simultaneously.Step 301 program begins.Step 302 viewer 101 is derived the variable symbol table information text file with corresponding format according to the ELF file (having variable symbol table information) of board operation software, discern text file then and set up the global variable information database, database comprises the title of this variable, types of variables and address of variable.Step 303 viewer 101 receiving steps 205 or 208 the variate-value request of obtaining.The name variable that step 304 viewer 101 is checked according to step 205 or 208 needs, inquiry global variable information database is found out the address of variable and the types of variables of this name variable correspondence, and forms variable and observe instruction.Step 305 viewer 101 sends this instruction and passes through communication link 102 to viewer agent software 103.Step 306 viewer agent software 103 is according to the address of variable and the types of variables audit memory that contain in the instruction, copy one section memory address (length is determined by types of variables) that address of variable begins, and copy value (being variate-value) is sent to viewer 101 by communication link 102.Step 307 viewer 101 receives variate-value.Step 308 viewer 101 is notified the user, completing steps 205 or 208 with variate-value.
Claims (4)
1. embedded real-time operating system fault analysis positioning system is characterized in that described system comprises: viewer module, communication link, board software viewer proxy module,
Described viewer module comprises a global variable information database and the operation interface that variable symbol table message file generates that has by tested single board, the user need can select the name variable of operation in described interface, carry out interacting message by communication link and board software viewer proxy module;
Described communication link comprises physical link between viewer module and the board software viewer proxy module, utilize described physical link to carry out data transmission and receive data in the viewer module and the data in the board software viewer proxy module;
Described board software viewer proxy module receives the instruction that the viewer module transmits by communication link, read the measured variable value, and pass information back the viewer module by communication link, the viewer module realizes fault analysis location to system according to the correctness of measured variable value.
2. embedded real-time operating system fault analysis positioning system according to claim 1 is characterized in that described global variable information database comprises title, types of variables and the address of variable of this variable.
3. embedded real-time operating system fault analysis positioning system according to claim 1 and 2, it is characterized in that, described board software viewer proxy module reads the measured variable value, and with information by communication link pass back the viewer module specifically be according to the instruction in address of variable, types of variables reads variate-value to address of variable; The variate-value that reads is formed response, be returned to the viewer module by communication link.
4. realize embedded real-time operating system fault analysis localization method according to the described system of claim 1, it is characterized in that described method comprises following treatment step:
1) decomposes the specifically function f of each performing step for the flow process that breaks down
1To f
n, n 〉=1 and be positive integer wherein; Determine function f
m(the input variable x of m 〉=1 and m≤n)
MiAnd output variable y
MoY wherein
Mo=x
(m+1) i, promptly go up the input that a step function is output as the next procedure function;
2) described viewer module is from f
1Begin to check x
1iAnd y
1oIf x
1iMistake illustrates that the fault that has problem to take place is imported in the outside of total system, and system itself is no problem, finishes; Otherwise just continue to check y
1oIf, y
1oMistake, fault just is positioned at f so
1, finish; If x
1iAnd y
1oAll correct, m=2 so;
3) described viewer module check f
m(the output y of m 〉=2 and m<n)
MoIf y
MoMistake, localization of fault is at f so
m, finish; Otherwise m=m+1;
4) if m=n, localization of fault is at f so
nOtherwise repeating step 3).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031563848A CN1312587C (en) | 2003-09-05 | 2003-09-05 | An embedded real time operating system fault analysis positioning system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031563848A CN1312587C (en) | 2003-09-05 | 2003-09-05 | An embedded real time operating system fault analysis positioning system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1523503A CN1523503A (en) | 2004-08-25 |
CN1312587C true CN1312587C (en) | 2007-04-25 |
Family
ID=34287104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031563848A Expired - Fee Related CN1312587C (en) | 2003-09-05 | 2003-09-05 | An embedded real time operating system fault analysis positioning system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1312587C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100421381C (en) * | 2004-08-30 | 2008-09-24 | 华为技术有限公司 | Method and device for obtaining information of operation and failure state for network equipment |
CN100442716C (en) * | 2006-03-03 | 2008-12-10 | 华为技术有限公司 | Method and system for diagnosing link fault |
CN101425038A (en) * | 2008-12-19 | 2009-05-06 | 北京中星微电子有限公司 | Method and system for searching software error |
CN106155899B (en) * | 2015-04-17 | 2019-02-26 | 比亚迪股份有限公司 | The localization method and system of Multimedia Program defect |
CN105808398A (en) * | 2016-03-08 | 2016-07-27 | 浪潮电子信息产业股份有限公司 | Method for rapidly analyzing and positioning hardware exceptions |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6202172B1 (en) * | 1997-02-28 | 2001-03-13 | Vlsi Technology, Inc. | Smart debug interface circuit |
-
2003
- 2003-09-05 CN CNB031563848A patent/CN1312587C/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6202172B1 (en) * | 1997-02-28 | 2001-03-13 | Vlsi Technology, Inc. | Smart debug interface circuit |
Also Published As
Publication number | Publication date |
---|---|
CN1523503A (en) | 2004-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Grabowski et al. | Test case generation with test purpose specification by MSCs | |
CN109740222B (en) | Testing device and system for automobile networking scene | |
US6865731B2 (en) | Method and computer program product for testing application program software | |
CN104483959A (en) | Fault simulation and test system | |
CN108965052A (en) | A kind of data reading system for the electronic control unit software debugging after entrucking | |
CN107193730A (en) | A kind of interface test method of automation | |
CN112579455A (en) | Interface automatic testing method and device, electronic equipment and storage medium | |
Tretmans et al. | Côte de Resyste--Automated Model Based Testing | |
CN1312587C (en) | An embedded real time operating system fault analysis positioning system and method | |
CN112988588B (en) | Client software debugging method and device, storage medium and electronic equipment | |
CN113312260B (en) | Interface test method, device, equipment and storage medium | |
KR101792864B1 (en) | System and Method for verifying application | |
CN112579452A (en) | Software automation test method, device, equipment and storage medium | |
CN100369422C (en) | Integrated tester and integrated testing method for media server | |
CN116028367A (en) | Automatic test system and method | |
CN111538606A (en) | Method, device and equipment for testing and simulating Dubbo interface | |
CN116881174B (en) | ECU application software closed-loop test method, device, equipment and storage medium | |
CN114978937B (en) | Page data verification method and device | |
Schieferdecker | Test automation with ttcn-3-state of the art and a future perspective | |
Probert et al. | A comprehensive software environment for developing standardized conformance test suites | |
KR101401296B1 (en) | Testing system and method based on message logging | |
CN111708684B (en) | Recording method and device for page access and computer system | |
KR100406031B1 (en) | The exchange simulation method using the oms and thereof system | |
CN117290213A (en) | Program debugging method and device | |
CN113835941A (en) | Case testing method and device based on programmable chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070425 Termination date: 20130905 |