CN103279403B - Embedded equipment debugging information integrating method - Google Patents

Embedded equipment debugging information integrating method Download PDF

Info

Publication number
CN103279403B
CN103279403B CN201210580984.6A CN201210580984A CN103279403B CN 103279403 B CN103279403 B CN 103279403B CN 201210580984 A CN201210580984 A CN 201210580984A CN 103279403 B CN103279403 B CN 103279403B
Authority
CN
China
Prior art keywords
debugging message
debugging
information
embedded device
filtering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210580984.6A
Other languages
Chinese (zh)
Other versions
CN103279403A (en
Inventor
孙禁
申及
唐勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou Investment Holding Group Co.,Ltd.
Original Assignee
Sichuan Jiuzhou Electric Group Co 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 Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201210580984.6A priority Critical patent/CN103279403B/en
Publication of CN103279403A publication Critical patent/CN103279403A/en
Application granted granted Critical
Publication of CN103279403B publication Critical patent/CN103279403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method that embedded device Debugging message is integrated
Technical field
the present invention relates to computer information processing and application, especially relate to a kind of method that embedded device Debugging message is integrated.
Background technology
embedded device is implanted to controlled device inside by through the repertoire of computer of cutting out, and carries application-specific module for user and provide the equipment of service, such as, consumer electronics, intelligent appliance, the network equipment, Medical Instruments, space equipment, Industry Control, etc.Along with various embedded device is widely used in the middle of daily life and commercial production, the embedded device that various function differs also correspondingly is widely applied, and embedded device most important in debugging be exactly by Debugging message, here pointed embedded device Debugging message, refer to a kind of output type information for outputting to screen, file etc. that embedded device produces in operational process, this category information can detect built-in equipment operation state for debugging person and the work such as reparation of functional defect.But, general Debugging message is more confusing, in order to process numerous and jumbled chaotic Debugging message, the system resource that the equipment that takies is too much is needed in debug process, too much taking of such as Installed System Memory, thus cause debugging efficiency low, and the number of Debugging message is more, and debugging efficiency is lower.
Summary of the invention
the technical problem to be solved in the present invention is: for prior art Problems existing, a kind of method providing embedded device Debugging message to integrate, and solves the difficulty of above-mentioned embedded device debugging efficiency aspect, effectively improves the debugging efficiency of embedded device.
The technical problem to be solved in the present invention realizes by the following technical solutions: a kind of method that embedded device Debugging message is integrated, and described integration processing method utilizes self-defining Universal debugging information interface to be completed successively by the collection of Debugging message and the filtration of Debugging message.Wherein, the collection of described Debugging message sends Debugging message to information reception process by embedded device system inner module by choke free process message, collects Debugging message and put into data buffer by information reception process.The filtration of described Debugging message is by comparison commissioning requirements according to first filtering the order of filtering through information category again through source module or filtering successively according to first filtering the order of filtering through source module again through information category, the Debugging message required for screening output display result; If do not meet commissioning requirements, 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, according to the composition characteristic of embedded device Debugging message self, utilize self-defining Universal debugging information interface, information category filtration and source module filtration are carried out to the Debugging message being sent to information reception process by modules by choke free process message in embedded device system, can obtain the specific Debugging message required for user by this two-stage filtration mode, the Debugging message not meeting commissioning requirements is then dropped.Therefore, decrease excessively taking to system resource in debug process, substantially increase the debugging efficiency of embedded device, and the number of Debugging message is more, debugging efficiency is higher.
Accompanying drawing explanation
Fig. 1 is the composition structural drawing of embedded device Debugging message.
Fig. 2 is the realization flow figure of the method that a kind of embedded device Debugging message of the present invention is integrated.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
As shown in Figure 1, the composition of described embedded device Debugging message is mainly divided into time, information category, source module and Code location and content five parts.Wherein, the described time is the UTC time, for showing the time that current information occurs; 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 source module is embedded device several functional modules intrasystem, illustrates that this information belongs to the information that in equipment, which partial function module produces; Described Code location is process PID, thread PID, place file and place line number mainly, etc.Information category wherein and source module can be used for the Debugging message required for filtration.
As shown in Figure 2, a kind of method that embedded device Debugging message is integrated, in embedded device system, some Debugging message of each process are first all sent to information reception process by unified, collect Debugging message and put into data buffer by information reception process; Carry out the filter course of Debugging message subsequently, the filtration of described Debugging message is filtered successively according to first filtering the order of filtering through information category again through source module by comparison commissioning requirements, the Debugging message required for screening output display result.Wherein, if the Debugging message after described source module filters meets commissioning requirements, then information category filter course is entered; If do not meet commissioning requirements, then this Debugging message is dropped.If the Debugging message after described information category filters meets commissioning requirements, then output display Debugging message result; If do not meet commissioning requirements, then this Debugging message is dropped.
Above-mentioned implementation method of the present invention utilizes self-defining Universal debugging information interface to complete successively through the two-stage filtration mode that source module filters and information category filters.Conveniently quick filtering information, described self-defining Universal debugging information interface must be the general-purpose interface that can carry out information category filtration and source module filtration to the Debugging message collected, can realize exporting type information by this Universal debugging information interface, both can 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 need to print this type of information by adding to arrange judge module to judge whether.
It is pointed out that in above-mentioned implementation method, the filtration order of described Debugging message can be exchanged.That is, if the filtration of described Debugging message is filtered successively according to first filtering the order of filtering through source module again through information category by comparison commissioning requirements, Debugging message required for screening output display result, so, if the Debugging message after described information category filters meets commissioning requirements, then enter source module filter course; If do not meet commissioning requirements, then this Debugging message is dropped.If the Debugging message after described source module filters meets commissioning requirements, then output display Debugging message result; If do not meet commissioning requirements, then this Debugging message is dropped.
In order to method of the present invention is clearly described, here for the upper type information run of digital TV set-top box (a kind of embedded device for playing Digital Television), 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 performs, and this time can facilitate 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 belonging to current information, currently belongs to netcast module NET_PLAYER;
{ 212}, refers to the thread PID belonging to present procedure;
{ 23}, refers to the process PID belonging to present procedure;
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 roughly mean when broadcast address is the video of rtsp: // 212.12.134.56/video/xixi.ts, setup connection makes mistakes.
In sum, method of the present invention is the technological means of being filtered by the unified collection management to Debugging message, source module filtration and information category, convenient, fast and the Debugging message required for user is provided effectively, thus decrease excessively taking to system resource in debug process, substantially increase the debugging efficiency of embedded device.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, it should be pointed out that all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the method for an embedded device Debugging message integration, mainly comprise the integration process of embedded device Debugging message, it is characterized in that: the integration process of described embedded device Debugging message utilizes self-defining Universal debugging information interface to be completed successively by the collection of Debugging message and the filtration of Debugging message, wherein, the collection of described Debugging message be by embedded device system inner module by choke free process message by the Debugging message of each process in embedded device system all unification be sent in information reception process, collect Debugging message by information reception process and put into data buffer.
2. the method for a kind of embedded device Debugging message integration according to claim 1, it is characterized in that: the filtration of described Debugging message is filtered successively according to first filtering the order of filtering through information category again through source module by comparison commissioning requirements, the Debugging message required for screening output display result.
3. the method for a kind of embedded device Debugging message integration according to claim 2, is characterized in that: if the Debugging message after described source module filters meets commissioning requirements, then enter information category filter course; If do not meet commissioning requirements, then this Debugging message is dropped.
4. the method that a kind of embedded device Debugging message according to claim 2 or 3 is integrated, is characterized in that: if the Debugging message after described information category filters meets commissioning requirements, then output display Debugging message result; If do not meet commissioning requirements, then this Debugging message is dropped.
5. the method for a kind of embedded device Debugging message integration according to claim 1, it is characterized in that: the filtration of described Debugging message is filtered successively according to first filtering the order of filtering through source module again through information category by comparison commissioning requirements, the Debugging message required for screening output display result.
6. the method for a kind of embedded device Debugging message integration according to claim 5, is characterized in that: if the Debugging message after described information category filters meets commissioning requirements, then enter source module filter course; If do not meet commissioning requirements, then this Debugging message is dropped.
7. the method that a kind of embedded device Debugging message according to claim 5 or 6 is integrated, is characterized in that: if the Debugging message after described source module filters meets commissioning requirements, then output display Debugging message result; If do not meet commissioning requirements, then this Debugging message is dropped.
CN201210580984.6A 2012-12-28 2012-12-28 Embedded equipment debugging information integrating method Active CN103279403B (en)

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 CN103279403A (en) 2013-09-04
CN103279403B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270131A (en) * 2011-06-29 2011-12-07 深圳市博康智能信息技术有限公司 System for unified management of debugging information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270131A (en) * 2011-06-29 2011-12-07 深圳市博康智能信息技术有限公司 System for unified management of debugging information

Also Published As

Publication number Publication date
CN103279403A (en) 2013-09-04

Similar Documents

Publication Publication Date Title
CN108762210A (en) A kind of industrial intelligent manufaturing data harvester and method based on Internet of Things
CN105046344B (en) Master station data quality optimization method for support system of intelligent power grid scheduling technology
CN103488558A (en) Device and method of automatically acquiring application anomalies based on LOG4J logging framework
KR101570516B1 (en) Total monitoring and controlling system for industrial machine vision
CN104699598A (en) Automatic testing method, device, equipment and system
CN103369402B (en) A kind of method and system carrying out multiple set-top box functionality concordance comparison
CN104468938A (en) Information acquisition and processing methods and related devices as well as mobile terminal and server
CN104038821A (en) Method for uniformly gathering fault information of each functional module of Android television
CN111400127B (en) Service log monitoring method and device, storage medium and computer equipment
CN102932195A (en) Networking protocol analysis-based business analysis monitoring method and system
CN110633901A (en) Intelligent substation relay protection device operation situation perception and remote maintenance system
CN113191635A (en) Intelligent management system for electric energy of construction engineering site
CN110019157A (en) Safety in production business datum analysis method based on Internet of Things
CN102916846B (en) Monitoring method and system
CN103096038B (en) The method for supervising of the fusion video monitoring system of multi-protocol video watch-dog access
CN205302385U (en) Electric wire netting equipment state monitoring data analysis platform
CN110086653A (en) Electric power wireless private network drive test acquisition analysis system and method
CN103279403B (en) Embedded equipment debugging information integrating method
CN106056227B (en) Intelligent substation service tracking method based on IEC61850 standard
CN103079054A (en) Video signal monitoring system and monitoring method
CN105227399A (en) Based on network equipment Debugging message acquisition methods and the system of User space
CN102984013A (en) Alarm analysis method for communication transmission network
CN204631168U (en) A kind of industrial current transformer remote diagnosis and maintenance system
CN107979174B (en) Workflow operation method based on power grid operation management system
CN109885483A (en) Log method for visualizing and system for operating status in Real-time Feedback game

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