CN103279403A - Embedded equipment debugging information integrating method - Google Patents
Embedded equipment debugging information integrating method Download PDFInfo
- Publication number
- CN103279403A CN103279403A CN2012105809846A CN201210580984A CN103279403A CN 103279403 A CN103279403 A CN 103279403A CN 2012105809846 A CN2012105809846 A CN 2012105809846A CN 201210580984 A CN201210580984 A CN 201210580984A CN 103279403 A CN103279403 A CN 103279403A
- Authority
- CN
- China
- Prior art keywords
- debugging
- debugging message
- message
- embedded device
- 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
- Debugging And Monitoring (AREA)
Abstract
The invention provides an embedded equipment debugging information integrating method. A user-defined general debugging information interface is used for sequentially carrying out collecting and filtering of debugging information. Regarding to collecting of the debugging information, the debugging information is transmitted to an information receiving process through an obstacle-free process by a module within a system of embedded equipment, received and put into a data cache zone by the information receiving process. Regarding to filtering of the debugging information, by means of comparison with debugging requirements, the debugging information is sequentially filtered in a sequence of resource module filtering before information category filtering or a sequence of resource module filtering after information category filtering, demanded debugging information is screened out and a display result is output. If not conforming to the debugging requirements, the debugging information is abandoned. Thus, excessive occupation on system resources by a debugging process is relieved, debugging efficiency of the embedded equipment is greatly improved, in addition, the larger the amount of the debugging information is, the higher the debugging efficiency will be.
Description
Technical field
The present invention relates to computer information processing and application, especially relate to the method that a kind of embedded device Debugging message is integrated.
Background technology
Embedded device is to be implanted to controlled device inside through the repertoire of computer of cutting out, carries the application-specific module and provides the equipment of service for the user, for example, and consumer electronics, intelligent appliance, the network equipment, Medical Instruments, space equipment, Industry Control, etc.Along with various embedded devices are widely used in the middle of daily life and the commercial production, the embedded device that various functions differ also correspondingly is widely applied, and embedded device most important aspect debugging be exactly by Debugging message, here pointed embedded device Debugging message, it is a kind of be used to the output print information that outputs to screen, file etc. to refer to that embedded device produces in operational process, and this category information can detect the built-in equipment operation state and the work such as reparation of functional defect for debugging person.But, general Debugging message is more confusing, in order to handle numerous and jumbled chaotic Debugging message, in debug process, need the too much system resource of the equipment that takies, such as too much taking of Installed System Memory, thereby cause debugging efficiency low, and the number of Debugging message is more many, debugging efficiency is just more low.
Summary of the invention
The technical problem to be solved in the present invention is: at the problem that prior art exists, provide a kind of method of embedded device Debugging message integration, solve the difficulty of above-mentioned embedded device debugging efficiency aspect, improve the debugging efficiency of embedded device effectively.
The technical problem to be solved in the present invention realizes by the following technical solutions: the method that a kind of embedded device Debugging message is integrated, described integration processing method is to utilize self-defining general Debugging message interface to finish successively by the collection of Debugging message and the filtration of Debugging message.Wherein, the collection of described Debugging message is to send Debugging message to the information receiving process by embedded device system inner module by choke free process message, is collected Debugging message and is put into the data buffer by the information receiving process.The filtration of described Debugging message is to require to show the result according to filtering successively through the order of coming source module to filter through the order of information category filtration or according to filtering through information category earlier through coming source module to filter earlier again again, screening needed Debugging message and export by comparing debugging; If do not meet the debugging requirement, then this Debugging message is dropped.
Compared with prior art, the method that a kind of embedded device Debugging message of the present invention is integrated, composition characteristic according to embedded device Debugging message self, utilize self-defining general Debugging message interface, come carrying out the information category filtration and come source module to filter by the Debugging message that choke free process message is sent to the information receiving process by each module in the embedded device system, can obtain the needed specific Debugging message of user by this two-stage filtration mode, the Debugging message that does not meet the debugging requirement then is dropped.Therefore, reduced in the debug process excessively the taking of system resource, improved the debugging efficiency of embedded device greatly, and the number of Debugging message has been more many, debugging efficiency is more high.
Description of drawings
Fig. 1 is the composition structural drawing of embedded device Debugging message.
Fig. 2 is the realization flow figure of the method for a kind of embedded device Debugging message integration of the present invention.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, the composition of described embedded device Debugging message mainly is divided into time, information category, comes source module and code location and five parts of content.Wherein, the described time is the UTC time, is used for the time that shows that current information takes place; Described information category refers to which kind of type is this information specifically belong to, such as error message, warning message, action message, execution result information, etc.; Described to come source module be intrasystem several functional modules of embedded device, illustrates that this information belongs to the information which partial function module produces in the equipment; Described code location mainly is process PID, thread PID, place file and place line number, etc.Information category wherein and come source module to can be used for filtering needed Debugging message.
As shown in Figure 2, the method that a kind of embedded device Debugging message is integrated, some Debugging message of each process at first all by the unified information receiving process that is sent to, are collected Debugging message and are put into the data buffer by the information receiving process in the embedded device system; Carry out the filter course of Debugging message subsequently, the filtration of described Debugging message is to require to filter successively through coming source module to filter the order of filtering through information category again according to elder generation by the comparison debugging, screens needed Debugging message and output demonstration result.Wherein, if come the Debugging message after source module filters to meet the debugging requirement through described, then enter the information category filter course; If do not meet the debugging requirement, then this Debugging message is dropped.If meet the debugging requirement through the Debugging message after the described information category filtration, then output shows the Debugging message result; If do not meet the debugging requirement, then this Debugging message is dropped.
Above-mentioned implementation method of the present invention is to utilize self-defining general Debugging message interface to finish successively through coming the two-stage filtration mode that source module filters and information category filters.For convenience quick filtering information, described self-defining general Debugging message interface must be to carry out the general-purpose interface that information category filters and comes source module to filter to the Debugging message of collecting, can realize output print information by this general Debugging message interface, both can be at screen display, also can deposit file, type information can make the very fast orientation problem of debugging person clearly; In addition, in this general-purpose interface, can judge module is set judge whether need to print this type of information by appending.
It is pointed out that in above-mentioned implementation method, the filtration of described Debugging message can be exchanged in proper order.That is to say, if the filtration of described Debugging message is to require to filter successively through the order of coming source module to filter according to filtering through information category earlier by the comparison debugging again, screen needed Debugging message and output demonstration result, so, if meet the debugging requirement through the Debugging message after the described information category filtration, then enter the source module filter course; If do not meet the debugging requirement, then this Debugging message is dropped.If come the Debugging message after source module filters to meet the debugging requirement through described, then output shows the Debugging message result; If do not meet the debugging requirement, then this Debugging message is dropped.
For method of the present invention more clearly is described, going up the type information of moving with digital TV set-top box (a kind of for the embedded device of playing Digital Television) here is example, and the integration mode of this Debugging message is described.Print example: [2012-12-11-09:25:34] [ERROR] [NET_PLAYER] 212}{23}net_player.c (1256) play rtsp: // 212.12.134.56/video/xixi.ts setup error, code 403! Example is described as follows:
[2012-12-11-09:25:34] is the standard UTC time that this print processing program is carried out, and this time can make things convenient for debugging person to know program execution sequential;
[ERROR] refers to the classification of current information, and current is error message;
[NET_PLAYER] refers to the module that current information is affiliated, the current netcast module NET_PLAYER that belongs to;
{ 212} refers to the thread PID that present procedure is affiliated;
{ 23} refers to the process PID that present procedure is affiliated;
Net_player.c (1256) refers to present procedure place code position, code file name net_player.c, line number 1256;
Play rtsp: // 212.12.134.56/video/xixi.ts setup error, code 403! , refer to the content of current printout.
Here mean roughly that when broadcast address is the video of rtsp: // 212.12.134.56/video/xixi.ts the setup connection makes mistakes.
In sum, method of the present invention be by to the unified collection management of Debugging message, come the technological means that source module filters and information category filters, convenient, fast and the user is provided needed Debugging message effectively, thereby reduced in the debug process excessively the taking of system resource, improved the debugging efficiency of embedded device greatly.
The above only is preferred embodiment of the present invention, not in order to limit the present invention, should be pointed out that all any modifications of doing within the spirit and principles in the present invention, is equal to replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. the method integrated of an embedded device Debugging message, the integration that mainly comprises the embedded device Debugging message is handled, and it is characterized in that: it is to utilize self-defining general Debugging message interface to finish successively by the collection of Debugging message and the filtration of Debugging message that the integration of described embedded device Debugging message is handled.
2. the method integrated of a kind of embedded device Debugging message according to claim 1, it is characterized in that: the collection of described Debugging message is to send Debugging message to the information receiving process by embedded device system inner module by choke free process message, is collected Debugging message and is put into the data buffer by the information receiving process.
3. according to the method for claim 1 or 2 described a kind of embedded device Debugging message integration, it is characterized in that: the collection of described Debugging message is that the Debugging message of each process in the embedded device system is all unified to send in the information receiving process to collect.
4. the method integrated of a kind of embedded device Debugging message according to claim 1, it is characterized in that: the filtration of described Debugging message is to require to filter successively through coming source module to filter the order of filtering through information category again according to elder generation by the comparison debugging, screens needed Debugging message and output demonstration result.
5. the method integrated of a kind of embedded device Debugging message according to claim 4 is characterized in that: if meet the debugging requirement through described Debugging message after coming source module to filter, then enter the information category filter course; If do not meet the debugging requirement, then this Debugging message is dropped.
6. according to the method for claim 4 or 5 described a kind of embedded device Debugging message integration, it is characterized in that: if meet the debugging requirement through the Debugging message after the described information category filtration, then output shows the Debugging message result; If do not meet the debugging requirement, then this Debugging message is dropped.
7. the method integrated of a kind of embedded device Debugging message according to claim 1, it is characterized in that: the filtration of described Debugging message is to require to filter successively through the order of coming source module to filter through the information category filtration according to elder generation by the comparison debugging again, screens needed Debugging message and output demonstration result.
8. the method for a kind of embedded device Debugging message integration according to claim 7 is characterized in that: if meet the debugging requirement through the Debugging message after the described information category filtration, then enter the source module filter course; If do not meet the debugging requirement, then this Debugging message is dropped.
9. the method for integrating according to claim 7 or 8 described a kind of embedded device Debugging message is characterized in that: if meet the debugging requirement through described Debugging message after coming source module to filter, then output shows the Debugging message result; If do not meet the debugging requirement, then this Debugging message is dropped.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210580984.6A CN103279403B (en) | 2012-12-28 | 2012-12-28 | Embedded equipment debugging information integrating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210580984.6A CN103279403B (en) | 2012-12-28 | 2012-12-28 | Embedded equipment debugging information integrating method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103279403A true CN103279403A (en) | 2013-09-04 |
CN103279403B CN103279403B (en) | 2015-05-27 |
Family
ID=49061932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210580984.6A Active CN103279403B (en) | 2012-12-28 | 2012-12-28 | Embedded equipment debugging information integrating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103279403B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309542A (en) * | 2020-01-20 | 2020-06-19 | 广州芯德通信科技股份有限公司 | Embedded system debugging module and construction method thereof |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270131A (en) * | 2011-06-29 | 2011-12-07 | 深圳市博康智能信息技术有限公司 | System for unified management of debugging information |
-
2012
- 2012-12-28 CN CN201210580984.6A patent/CN103279403B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270131A (en) * | 2011-06-29 | 2011-12-07 | 深圳市博康智能信息技术有限公司 | System for unified management of debugging information |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309542A (en) * | 2020-01-20 | 2020-06-19 | 广州芯德通信科技股份有限公司 | Embedded system debugging module and construction method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103279403B (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101570516B1 (en) | Total monitoring and controlling system for industrial machine vision | |
CN108762210A (en) | A kind of industrial intelligent manufaturing data harvester and method based on Internet of Things | |
CN104535471B (en) | The detection method and device of air cleaning facility filtering net state | |
CN103488558A (en) | Device and method of automatically acquiring application anomalies based on LOG4J logging framework | |
CN101087400B (en) | Video frame delay detection method and system | |
CN104038821A (en) | Method for uniformly gathering fault information of each functional module of Android television | |
CN111092901A (en) | Method for equipment access and data storage in industrial internet platform | |
CN110019157A (en) | Safety in production business datum analysis method based on Internet of Things | |
CN106056227B (en) | Intelligent substation service tracking method based on IEC61850 standard | |
CN103079054A (en) | Video signal monitoring system and monitoring method | |
CN103096038A (en) | Fusing video monitoring system with multi-protocol video monitoring device inserted in and monitoring method | |
CN203782384U (en) | Intelligent operation panel for industrial sewing machine | |
CN103279403B (en) | Embedded equipment debugging information integrating method | |
CN109495335B (en) | Service monitoring method, device and system and electronic equipment | |
CN107038208B (en) | Method for analyzing and restoring SQL command and parameter in TNS protocol 314 version | |
CN101937393A (en) | Regression testing method and system for browser | |
CN103645977A (en) | Automatic debugging system and method for electronic products | |
CN105187490B (en) | A kind of transfer processing method of internet of things data | |
JP2003274576A (en) | Power system monitoring controller | |
CN102567519B (en) | Data analysis device and method for GSM-R system | |
CN204498285U (en) | A kind of 4G-WIFI high-definition network video server | |
CN103268353A (en) | Power grid alarming automatic response system and power grid alarming automatic response method | |
CN111158778A (en) | Intelligent label optimization method based on panoramic model file | |
CN101500071B (en) | Method for debugging index parameter of digital set-top box | |
CN204423418U (en) | Based on the information comprehensive management device of GPRS network |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210514 Address after: No. 6, Jiuhua Road, khuchuang Park, Mianyang, Sichuan Patentee after: Sichuan Jiuzhou Investment Holding Group Co.,Ltd. Address before: 621000 No.6, Jiuhua Road, Mianyang City, Sichuan Province Patentee before: SICHUAN JIUZHOU ELECTRIC GROUP Co.,Ltd. |
|
TR01 | Transfer of patent right |