CN102004683A - Online diagnosis system and method of embedded equipment - Google Patents
Online diagnosis system and method of embedded equipment Download PDFInfo
- Publication number
- CN102004683A CN102004683A CN 201010546994 CN201010546994A CN102004683A CN 102004683 A CN102004683 A CN 102004683A CN 201010546994 CN201010546994 CN 201010546994 CN 201010546994 A CN201010546994 A CN 201010546994A CN 102004683 A CN102004683 A CN 102004683A
- Authority
- CN
- China
- Prior art keywords
- module
- diagnostic
- internal
- diagnosis
- information
- 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.)
- Granted
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention relates to the technical field of embedded equipment, in particular to online diagnosis system and method of embedded equipment. The embedded equipment comprises one or more internal modules, and the system also comprises a diagnosis module which is arranged in the embedded equipment and used for receiving a diagnosis request of a user and returning diagnosis information. The invention is easy and convenient to operate on the site and is based on embedded software for online diagnosis, and the embedded software has the characteristic of real-time property. Meanwhile, when a system task is initialized, a class object is registered to a list, the related information of a diagnosis task can be directly extracted without wasting data transferring time so as to provide time guarantee for more rapidly acquiring diagnosis information needed by the system.
Description
Technical field
The present invention relates to the in-circuit diagnostic system and the method thereof in embedded device technology field, particularly a kind of embedded device.
Background technology
In embedded device, need in real time internal module to be monitored.Prior art such as Chinese patent " the inline diagnosis method and system of embedded software, the embedded software device " (patent No.: 200810137828), this patent content: at submodule of the inner increase of embedded software, this submodule is called the detection proxy module, detect the message that each submodule that need diagnose that proxy module is used for receiving embedded software is made a copy for, and the diagnosis server that message sends to the embedded software outside is diagnosed; The diagnosis server of embedded software outside is verified processing to the message that receives, find by the diagnosis submodule occur wrong the time structure correct new message be handed down to the detection proxy module, detect proxy module new message is sent to the submodule that needs diagnosis, determine to occur unusual submodule.There is following defective in this method:
The first, this diagnostic method needs special hardware device auxiliary;
The second, this diagnostic method needs special Software tool auxiliary;
The 3rd, this diagnostic method disturbs system operation, and system can not real time execution, and the transmission diagnostic message can be disturbed system;
The 4th, this diagnostic method does not consider whether be the information that the user needs, use this method inconvenience like this.
Summary of the invention
First goal of the invention of the present invention is to provide a kind of embedded device in-circuit diagnostic system, built-in equipment operation is caused the technical matters of interference with the in-circuit diagnostic system that solves existing embedded device.
In order to realize first goal of the invention of the present invention, the technological invention of employing is as follows:
A kind of in-circuit diagnostic system of embedded device, described embedded device comprises one or more internal modules, described system also comprises and is arranged on the diagnostic module that embedded device inside is used to receive user's diagnosis request and returns diagnostic message.
As a kind of preferred invention, described diagnostic module comprises diagnose interface module, diagnosis management processing module and the object storage module that connects successively:
The diagnose interface module is used to receive user's diagnosis request, and transfers the diagnostic message of respective inner module by diagnosis management processing module;
Diagnosis management processing module is transferred the diagnostic message of respective inner module according to the diagnosis request of diagnose interface module transmission from the object storage module;
The object information of the one or more internal modules of object storage module stores is obtained the diagnostic message of internal module according to object information.
As further preferred version, described diagnostic module also comprises the initialization module that is connected with the object storage module, described initialization module when embedded device is initialized, the object information of one or more internal modules in the registration embedded equipment of object storage module.
Comprise interconnected diagnostic task administration module and diagnostic task processing module as the described diagnosis management of further preferred version processing module, described diagnostic task administration module is used for according to diagnosis request, the internal module of the required diagnosis of interpretation, described diagnostic task processing module is used for the diagnostic message that the allocating object memory module is transferred the respective inner module.
As further preferred invention, described object storage module adopts the object of chain sheet form storage internal module.
Second purpose of the present invention is to provide a kind of inline diagnosis method of embedded device, to use the in-circuit diagnostic system that first goal of the invention of the present invention provides.
In order to realize second goal of the invention of the present invention, the technological invention of employing is as follows:
A kind of inline diagnosis method of embedded device, described method comprises:
(61) the diagnose interface module receives user's diagnosis request;
(62) the diagnose interface module is transmitted diagnosis request to diagnosis management processing module, requires to transfer the diagnostic message of internal module;
(63) diagnosis management processing module is transferred the diagnostic message of internal module and is returned to the diagnose interface module from the object storage module;
(64) the diagnose interface module is returned the diagnostic message of internal module.
As a kind of preferred invention, described method also comprises:
When embedded device was initialized, one or more internal modules were to the object information of object storage module registration internal module;
Described step (63) is obtained the object information of internal module from the object storage module, obtain the diagnostic message of internal module according to object information.
As further preferred invention, during the embedded device initialization, to set up parent process and be used for execution in step (61)~(64), and be that one or more internal modules are set up the subprocess based on parent process, subprocess is used to call the diagnostic message of internal module;
When the embedded device initialization, the bundle progress information is registered to the object storage module, and the object information of described internal module is a subprocess information;
Described step (63) is obtained the subprocess information of internal module from the object storage module, calls the diagnostic message that subprocess obtains internal module.
As further preferred invention again, the diagnostic message of described internal module is the parameter of the predefined internal module that is used to diagnose of user.
As further preferred invention again, described subprocess information comprises process number.
Preferably, the present invention is applied to the real time embedded system of multi-screen processor, as vxWroks etc.
Beneficial effect of the present invention:
1, execute-in-place of the present invention is simple and easy to use: owing to be a kind of inline diagnosis invention based on embedded software, the characteristics of embedded software are real-time; Simultaneously, when the system task initialization, class object is registered in the chained list, and the relevant information of diagnostic task directly can propose, and not needing has wasted the time of data forwarding, provides the time to ensure for acquisition system faster needs diagnostic message like this.
2, need not increase special hardware device: because the present invention is based on the invention of embedded-type software architecture, so do not relate to special hardware device.
3, committed memory resource not: since each module class to as if exist with the form of registration chained list, do not relate to the committed memory space, can save internal memory like this.
4, do not influence other task executions of system, owing to just carry out this task when having only the user to diagnose, so do not influence the working time of other tasks.
5, can obtain the state of monitored object in real time: because the inline diagnosis task module is made up of a plurality of tasks, online expression can inquire the operation information of relevant processor in processor work; Be the information that the user can arbitrarily transfer to be needed, make things convenient for the user in time to inquire about, also avoid the waste of irrelevant information query time simultaneously, so can obtain information in real time.
Description of drawings
Fig. 1 is an embodiment of the invention inline diagnosis process flow diagram;
Fig. 2 is an embodiment of the invention inline diagnosis subprocess signal flow graph;
Fig. 3 is an embodiment of the invention embedded system initialization flowchart.
Embodiment
The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.
Be illustrated in figure 1 as the inline diagnosis process flow diagram of the embodiment of the invention, concrete steps are as follows:
(1) inline diagnosis interface layer (being above-mentioned diagnose interface module) receives user's diagnosis request;
(2) the inline diagnosis interface layer transmits diagnosis request to inline diagnosis task management layer (being above-mentioned diagnostic task administration module), requires to transfer the diagnostic message of internal module;
(3) inline diagnosis task management layer is invoked at radiodiagnosis x task module (being above-mentioned diagnostic task processing module) and transfers the diagnostic message of internal module and return to the inline diagnosis interface layer from the object storage module;
The above-mentioned diagnosis management of the common composition of inline diagnosis task management layer and inline diagnosis task module processing module.
(4) the inline diagnosis interface layer returns the diagnostic message of internal module.
As Fig. 2 is embodiment of the invention inline diagnosis subprocess signal flow graph.Parent process is the task class of inline diagnosis task management, is used to realize above-mentioned diagnosis management processing module, and subprocess is the task class that internal module need be diagnosed, and subprocess is the derived class of parent process.Each subprocess promptly is the object module of a needs diagnosis, only each subprocess class object need be registered to the class object chained list, when the inline diagnosis task module calls chained list, can find this class object, and then the content that finds the user that realizes at subprocess to diagnose.
Because the diagnosis to each internal module all is to realize in subprocess, the communication between subprocess and the parent process belongs to the process level communication, and speed is very fast, and can not cause interference to system.
Be illustrated in figure 3 as embodiment of the invention embedded system initialization flowchart.
Step S1: be chained list of inline diagnosis generic task module creation, this chained list is used to store the class object that is about to registration;
Step S2: the internal module that needs is carried out the inline diagnosis task is created class object, class object is registered in the chained list of inline diagnosis task, needing to realize the particular content of diagnosis in the object of module;
Step S3: when inline diagnosis generic task interface layer is received order, analyze the internal module that needs diagnosis, the inline diagnosis generic task takes out the object of this module from chained list, and obtains the diagnostic information of needs and return.
Claims (10)
1. the in-circuit diagnostic system of an embedded device, described embedded device comprises one or more internal modules, it is characterized in that described system also comprises and is arranged on the diagnostic module that embedded device inside is used to receive user's diagnosis request and returns diagnostic message.
2. in-circuit diagnostic system according to claim 1 is characterized in that, described diagnostic module comprises diagnose interface module, diagnosis management processing module and the object storage module that connects successively:
The diagnose interface module is used to receive user's diagnosis request, and transfers the diagnostic message of respective inner module by diagnosis management processing module;
Diagnosis management processing module is transferred the diagnostic message of respective inner module according to the diagnosis request of diagnose interface module transmission from the object storage module;
The object information of the one or more internal modules of object storage module stores is obtained the diagnostic message of internal module according to object information.
3. in-circuit diagnostic system according to claim 2, it is characterized in that, described diagnostic module also comprises the initialization module that is connected with the object storage module, described initialization module when embedded device is initialized, the object information of one or more internal modules in the registration embedded equipment of object storage module.
4. in-circuit diagnostic system according to claim 2, it is characterized in that, described diagnosis management processing module comprises interconnected diagnostic task administration module and diagnostic task processing module, described diagnostic task administration module is used for according to diagnosis request, the internal module of the required diagnosis of interpretation, described diagnostic task processing module is used for the diagnostic message that the allocating object memory module is transferred the respective inner module.
5. in-circuit diagnostic system according to claim 2 is characterized in that, described object storage module adopts the object of chain sheet form storage internal module.
6. the inline diagnosis method of an embedded device is characterized in that, described method comprises:
(61) the diagnose interface module receives user's diagnosis request;
(62) the diagnose interface module is transmitted diagnosis request to diagnosis management processing module, requires to transfer the diagnostic message of internal module;
(63) diagnosis management processing module is transferred the diagnostic message of internal module and is returned to the diagnose interface module from the object storage module;
(64) the diagnose interface module is returned the diagnostic message of internal module.
7. diagnostic method according to claim 5 is characterized in that, described method also comprises:
When embedded device was initialized, one or more internal modules were to the object information of object storage module registration internal module;
Described step (63) is obtained the object information of internal module from the object storage module, obtain the diagnostic message of internal module according to object information.
8. diagnostic method according to claim 7, it is characterized in that, during the embedded device initialization, set up parent process and be used for execution in step (61)~(64), and be that one or more internal modules are set up the subprocess based on parent process, subprocess is used to call the diagnostic message of internal module;
When the embedded device initialization, the bundle progress information is registered to the object storage module, and the object information of described internal module is a subprocess information;
Described step (63) is obtained the subprocess information of internal module from the object storage module, calls the diagnostic message that subprocess obtains internal module.
9. diagnostic method according to claim 8 is characterized in that, the diagnostic message of described internal module is the parameter of the predefined internal module that is used to diagnose of user.
10. diagnostic method according to claim 8 is characterized in that, described subprocess information comprises process number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010546994 CN102004683B (en) | 2010-11-17 | 2010-11-17 | Online diagnosis system and method of embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010546994 CN102004683B (en) | 2010-11-17 | 2010-11-17 | Online diagnosis system and method of embedded equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102004683A true CN102004683A (en) | 2011-04-06 |
CN102004683B CN102004683B (en) | 2013-03-20 |
Family
ID=43812059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010546994 Expired - Fee Related CN102004683B (en) | 2010-11-17 | 2010-11-17 | Online diagnosis system and method of embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004683B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783068A (en) * | 2005-09-09 | 2006-06-07 | 浙江大学 | Method for collecting and delivering fault diagnosis data |
CN101316202A (en) * | 2008-07-03 | 2008-12-03 | 中兴通讯股份有限公司 | On-line diagnosis method and system of embedded software, embedded software device |
CN101464811A (en) * | 2008-12-29 | 2009-06-24 | 艾默生网络能源有限公司 | Multitask monitoring management system |
CN101789976A (en) * | 2010-01-27 | 2010-07-28 | 上海交通大学 | Embedded network storage system and method thereof |
-
2010
- 2010-11-17 CN CN 201010546994 patent/CN102004683B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783068A (en) * | 2005-09-09 | 2006-06-07 | 浙江大学 | Method for collecting and delivering fault diagnosis data |
CN101316202A (en) * | 2008-07-03 | 2008-12-03 | 中兴通讯股份有限公司 | On-line diagnosis method and system of embedded software, embedded software device |
CN101464811A (en) * | 2008-12-29 | 2009-06-24 | 艾默生网络能源有限公司 | Multitask monitoring management system |
CN101789976A (en) * | 2010-01-27 | 2010-07-28 | 上海交通大学 | Embedded network storage system and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102004683B (en) | 2013-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101799751B (en) | Method for building monitoring agent software of host machine | |
CN101605056B (en) | J2EE server monitoring device and monitoring method employing same | |
CN104852845B (en) | A kind of intelligent networking gateway | |
US9262300B1 (en) | Debugging computer programming code in a cloud debugger environment | |
CN111382023B (en) | Code fault positioning method, device, equipment and storage medium | |
CN101651561B (en) | Network topology analytical method and system based on rule engine | |
CN109471845A (en) | Blog management method, server and computer readable storage medium | |
CN102035896A (en) | TTCN-3-based distributed testing framework applicable to software system | |
CN111459632A (en) | Serial port agent for calling terminal application program and implementation method | |
CN109408309A (en) | The test method and device of multiple terminals | |
CN102065124B (en) | Multi-protocol point inspection equipment access system | |
Fang et al. | The design of remote embedded monitoring system based on internet | |
TWI393003B (en) | Remote hardware inspection system and method | |
CN102693166B (en) | Method, device and system for processing information | |
CN102004683B (en) | Online diagnosis system and method of embedded equipment | |
CN106789449A (en) | A kind of CAN exploitation and method of testing and system | |
CN104639379A (en) | Proxy testing method and device | |
CN110781058A (en) | Method, device, equipment and medium for acquiring application performance data of mobile terminal | |
CN105227644A (en) | Item file generation method and device | |
Brown et al. | Tracing data movements within MPI collectives | |
CN104572515A (en) | Tracking module, method, system and SOC (System-On-Chip) | |
Li et al. | A framework for self-healing service compositions in cloud computing environments | |
CN103685404B (en) | Network service system and its method updating firmware | |
CN101272272A (en) | Method for far-end monitoring system | |
CN204740730U (en) | Production environment can't harm data acquisition device |
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 | ||
CP03 | Change of name, title or address |
Address after: Kezhu road high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 233 510670 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 No. 6, color road, hi tech Industrial Development Zone, Guangdong, Guangzhou, China Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130320 Termination date: 20191117 |
|
CF01 | Termination of patent right due to non-payment of annual fee |