CN101163052A - Method for real-time monitoring remote embedded system - Google Patents

Method for real-time monitoring remote embedded system Download PDF

Info

Publication number
CN101163052A
CN101163052A CNA2006101136659A CN200610113665A CN101163052A CN 101163052 A CN101163052 A CN 101163052A CN A2006101136659 A CNA2006101136659 A CN A2006101136659A CN 200610113665 A CN200610113665 A CN 200610113665A CN 101163052 A CN101163052 A CN 101163052A
Authority
CN
China
Prior art keywords
embedded system
monitoring
remote embedded
monitoring information
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
Application number
CNA2006101136659A
Other languages
Chinese (zh)
Other versions
CN100536413C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2006101136659A priority Critical patent/CN100536413C/en
Publication of CN101163052A publication Critical patent/CN101163052A/en
Application granted granted Critical
Publication of CN100536413C publication Critical patent/CN100536413C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method of a real-time monitoring remote embedded system. The remote embedded system is monitored by a concentration monitoring equipment through a network, which comprises: step 1, different types of monitoring information is produced when the remote embedded system enforces a task. Step 2, the concentration monitoring equipment enters the remote embedded system and informs the remote equipment of the type of the monitoring information needed to be output. Step 3, the remote embedded system builds a task of sending the monitoring information. Step 4, the remote embedded system sends the types of monitoring information needed by the concentration monitoring equipment to a message queue. Step 5, the task of sending monitoring information gets monitoring information from the message queue. The monitoring information is sent to the monitoring equipment through the network.

Description

A kind of method of real-time monitoring remote embedded system
Technical field
The present invention relates to the real-time monitoring of built-in system software and a kind of method of fault location, especially monitor in real time and fault location at long-range embedded system.
Background technology
Along with the development of computer soft or hard technology, embedded system hardware CPU disposal ability improves greatly, and the distribution of various business-like embedded OSs makes the function of embedded system development become increasingly complex.Therefore, more and more need the current ruuning situation of embedded system is monitored in real time, the scheduling situation of the current task of embedded system for example, the performance of system, the flow of network, internal memory operating position or the like all needs to monitor in real time.Especially work as embedded system and break down, for example do not have the real-time response order in the operation for embedded system, perhaps occur resetting, need location and solution badly.And embedded system in the past all is to be sintered to move on the chip, and is external invisible as flight data recorder, can not understand its ruuning situation.
In field of telecommunication devices, the machine room at a large amount of embedded device places all is unattended isolated area especially, and embedded system is usually carried out remote centralized control by webmaster.When remote equipment occurs needing a kind of convenient and practical means to come orientation problem especially unusual the time.
Summary of the invention
For addressing the above problem, the objective of the invention is to propose a kind of method of real-time monitoring remote embedded system.Cause embedded system to reset or unusual information by concentrating monitoring equipment to be connected to remote equipment for a long time, catching, be used for fault location.
For achieving the above object, the present invention proposes a kind of method of real-time monitoring remote embedded system, concentrate monitoring equipment remote embedded system to be monitored, wherein, may further comprise the steps by network:
Step 1 generates dissimilar monitoring informations when remote embedded system is executed the task;
Step 2, described concentrated monitoring equipment login be to described remote embedded system, and notify the type of the monitoring information that described remote equipment need export;
Step 3, described remote embedded system is created the task of sending described monitoring information;
Step 4, described remote embedded system is sent to the monitoring information of the needed type of described concentrated monitoring equipment in the message queue;
Step 5, the task of the described monitoring information of described transmission is obtained described monitoring information from described message queue, and is sent to described concentrated monitoring equipment by network.
The method of above-mentioned real-time monitoring remote embedded system wherein, according to functional classification, further comprises described monitoring information:
The Exception Type monitoring information generates when described remote embedded system is unusual, is used for the information of register system when unusual; And/or
Flow process type monitoring information, the procedure information when being used for register system and executing the task.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described monitoring information is classified according to task module, further comprises: communication module type monitoring information, security module type monitoring information, business module type monitoring information and/or database module type monitoring information.
The method of above-mentioned real-time monitoring remote embedded system, wherein, the monitoring information of described each module output can be divided into a plurality of grades according to the importance of information.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described step 1 further comprises:
Described monitoring information by compiling and link, is provided with the step of executable code in each task of described remote embedded system, is used for when described remote embedded system is carried out described executable code, beginning to export monitoring information.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described step 2 further comprises:
Step 61, described concentrated monitoring equipment is dissimilar according to the monitoring information of remote embedded system output, is provided with and dissimilar corresponding mask words;
Step 62, described concentrated monitoring equipment login is exported the mask word of needed monitoring information type correspondence to described remote embedded system.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described step 3 further comprises:
Described remote embedded system is provided with the step that starts sign after detecting and concentrating monitoring equipment to login successfully.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described step 4 further comprises:
Step 81 in the current task process that is scheduled of described remote embedded system operation, is carried out described executable code;
Step 82, described remote embedded system judge whether that system is provided with and start sign, start sign if be provided with, and then output information not starts sign if be provided with, and then enters step 83;
Step 83, mask word according to described concentrated monitoring equipment output, whether the type of judging the described monitoring information that task generated that is scheduled is that described concentrated monitoring equipment is needed, if not, then do not export described monitoring information, if then described monitoring information is sent in the transmission message queue.
The method of above-mentioned real-time monitoring remote embedded system, wherein, described step 5 further comprises:
Step 91, described transmission detects the task of information and obtain the monitoring information that will send from described message queue;
Step 92, in the string length of the front of described monitoring information adding monitoring information, the back adds the character string of the monitoring information that will send, and is sent to described concentrated monitoring equipment with message format.
The method of above-mentioned real-time monitoring remote embedded system wherein, further comprises:
After described concentrated monitoring equipment is accepted described monitoring information,, show and preserve the step of described monitoring information according to the format analysis of message.
The method of above-mentioned real-time monitoring remote embedded system wherein, further comprises:
Step 111, described concentrated monitoring equipment disconnect with described remote embedded system between be connected;
Step 112, described remote embedded system stop the task of described transmitting supervisory information, and cancel described startup sign after detecting and connecting disconnection.
The method of above-mentioned real-time monitoring remote embedded system wherein, is carried out communication by transmission control protocol between described remote embedded system and the described concentrated monitoring equipment.
The present invention can grasp the real time execution situation of embedded system inside, dynamic performance when recognizing system's on-line operation, situations such as internal memory use, can be connected to remote equipment for a long time by concentrating monitoring equipment simultaneously, catch and cause embedded system to reset or unusual information, be used for fault location.Have more meaning for unattended remote equipment especially.
Consider the operational efficiency and the network bandwidth of embedded system, when the not login of concentrated monitoring equipment, when not needing output information, system's output monitoring information is invalid, does not influence the operational efficiency of embedded system.And adopt method to information classification, selectively output information.Monitoring in real time and fault location for embedded system, is that a kind of system that do not influence normally moves, practical again available method.
Description of drawings
Fig. 1 is a real-time monitoring system schematic diagram of the present invention;
Fig. 2 is the schematic diagram that adds the output monitoring information in embedded system;
Fig. 3 is the schematic flow sheet of remote embedded system output monitoring information;
Fig. 4 is the schematic diagram of the current operation task output of embedded system monitoring information to message queue.
Embodiment
Be example with network element device in the telecom transmissioning equipment below, the embodiment of the invention is elaborated.
Fig. 1 is a real-time monitoring system schematic diagram of the present invention.As shown in Figure 1, concentrate monitoring equipment 110 to be connected real-time monitoring remote embedded equipment 120 with remote embedded system 120 by network 130.
In remote embedded system 120 inside, needs according to function and system, add the output monitoring information at the message Issuing Office of Communication Layer, detect the output monitoring information that adds Exception Type when unusual, regularly export the monitoring information of internal memory operating position in all systems; The output monitoring information that adds the flow process type at system core flow process place, or the like.Can add useful monitoring information at the inlet/outlet or any place of inside middle of any function as required.
When adding the output monitoring information, need classify these information.Sorting technique is divided by each module.Communication module for example, security module, business module, database module etc., the output information of each module has the type code of oneself.
Further refinement is divided into a plurality of grades to the output information of each module simultaneously.For example in the communication module, information type can be divided into 2 grades again, and the information of the high expression output of grade is very important, and the output information that grade is low is not very important under certain conditions, so just can realize output information selectively.
The normal one section sequence code carrying out of handling process executable code representation program among Fig. 2 adds the output monitoring information on the front and back of this code or middle key point, can access the current code executing location behind the operation for embedded system.Function detection point executable code is represented the one section code of embedded system to certain Function detection, adds the output monitoring information after this code, can export the Function detection result come in the mode of monitoring information.Monitoring information in each task by compiling and linking the executable code that becomes remote embedded system, when system moves in each task, when carrying out this executable code, is begun to export monitoring information.
Because the restriction of embedded system 120 network bandwidth resources, concentrated monitoring equipment 110 is provided with the mask word of remote equipment reporting information type, the type of the class output information that each bit of mask word is corresponding above-mentioned.Remote embedded system 120 reports the information of needs according to mask word.
For example, the high-grade information type of communication module is encoded to 0x00000010, and communication module inferior grade information type is encoded to 0x00000020, obtain the high-grade output information of communication module, and it is 0x00000010 that mask word can be set.If obtain the high low priority of communication module, it is 0x00000030 that mask word can be set.
Fig. 3 is the schematic flow sheet of remote embedded system output monitoring information.As shown in Figure 3, remote embedded system 120 and concentrated monitoring equipment 110 adopt the TCP communication modes.Remote embedded system 120 at certain port of reserving in advance, is waited for the connection of concentrating monitoring equipment 110 clients as the server end of TCP communication.
Concentrate monitoring equipment 110 clients login remote embedded system 120, login and successfully then set up TCP and be connected with remote embedded system 120.Remote embedded system 120 is provided with the successful connection sign, promptly starts sign, creates the task of transmitting supervisory information.
In the remote embedded system 120 current task run processes that are scheduled, when carrying out output monitoring information executable code, at first judge to start sign, if output is not then carried out in not success.If successful connection then judges whether output according to mask word,, then do not carry out if do not export.If need the monitoring information of type, monitoring information is sent in the message queue of transmitting supervisory information.As shown in Figure 4.
The task of remote embedded system 120 transmitting supervisory information is taken out the monitoring information that will send from message queue, the string length that adds monitoring information in the front of monitoring information, the back is the character string of the monitoring information that will send, and sends to this message format and concentrates monitoring equipment 110.
Concentrate monitoring equipment 110 from the monitoring information message that network receiving remote embedded system 120 sends, press the format analysis of message, just can show the current remote equipment monitoring information that receives in real time.Can be saved in information in the file simultaneously, for the ruuning situation of long-term observation remote equipment.
Concentrate monitoring equipment 110 when not needing to monitor embedded system, the connection between disconnection and the embedded system.The connection situation of remote embedded system 120 real-time detection set monitoring equipments 110 disconnects if concentrate monitoring equipment to connect, and remote embedded system 120 is cancelled the task of transmitting supervisory information and started sign.Continue to wait for the connection of remote centralized monitoring equipment 110 clients.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; being familiar with those of ordinary skill in the art ought can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (12)

1. the method for a real-time monitoring remote embedded system concentrates monitoring equipment by network remote embedded system to be monitored, and it is characterized in that, may further comprise the steps:
Step 1 generates dissimilar monitoring informations when remote embedded system is executed the task;
Step 2, described concentrated monitoring equipment login be to described remote embedded system, and notify the type of the monitoring information that described remote equipment need export;
Step 3, described remote embedded system is created the task of sending described monitoring information;
Step 4, described remote embedded system is sent to the monitoring information of the needed type of described concentrated monitoring equipment in the message queue;
Step 5, the task of the described monitoring information of described transmission is obtained described monitoring information from described message queue, and is sent to described concentrated monitoring equipment by network.
2. the method for real-time monitoring remote embedded system according to claim 1 is characterized in that, described monitoring information according to functional classification, is further comprised:
The Exception Type monitoring information generates when described remote embedded system is unusual, is used for the information of register system when unusual; And/or
Flow process type monitoring information, the procedure information when being used for register system and executing the task.
3. the method for real-time monitoring remote embedded system according to claim 1, it is characterized in that, described monitoring information is classified according to task module, further comprises: communication module type monitoring information, security module type monitoring information, business module type monitoring information and/or database module type monitoring information.
4. the method for real-time monitoring remote embedded system according to claim 3 is characterized in that, the monitoring information of described each module output can be divided into a plurality of grades according to the importance of information.
5. the method for real-time monitoring remote embedded system according to claim 1 is characterized in that, described step 1 further comprises:
Described monitoring information by compiling and link, is provided with the step of executable code in each task of described remote embedded system, is used for when described remote embedded system is carried out described executable code, beginning to export monitoring information.
6. the method for real-time monitoring remote embedded system according to claim 1 is characterized in that, described step 2 further comprises:
Step 61, described concentrated monitoring equipment is dissimilar according to the monitoring information of remote embedded system output, is provided with and dissimilar corresponding mask words;
Step 62, described concentrated monitoring equipment login is exported the mask word of needed monitoring information type correspondence to described remote embedded system.
7. the method for real-time monitoring remote embedded system according to claim 1 is characterized in that, described step 3 further comprises:
Described remote embedded system is provided with the step that starts sign after detecting and concentrating monitoring equipment to login successfully.
8. according to the method for claim 5,6 or 7 described real-time monitoring remote embedded systems, it is characterized in that described step 4 further comprises:
Step 81 in the current task process that is scheduled of described remote embedded system operation, is carried out described executable code;
Step 82, described remote embedded system judge whether that system is provided with and start sign, start sign if be provided with, and then output information not starts sign if be provided with, and then enters step 83;
Step 83, mask word according to described concentrated monitoring equipment output, whether the type of judging the described monitoring information that task generated that is scheduled is that described concentrated monitoring equipment is needed, if not, then do not export described monitoring information, if then described monitoring information is sent in the transmission message queue.
9. the method for real-time monitoring remote embedded system according to claim 8 is characterized in that, described step 5 further comprises:
Step 91, described transmission detects the task of information and obtain the monitoring information that will send from described message queue;
Step 92, in the string length of the front of described monitoring information adding monitoring information, the back adds the character string of the monitoring information that will send, and is sent to described concentrated monitoring equipment with message format.
10. the method for real-time monitoring remote embedded system according to claim 9 is characterized in that, further comprises:
After described concentrated monitoring equipment is accepted described monitoring information,, show and preserve the step of described monitoring information according to the format analysis of message.
11. the method for real-time monitoring remote embedded system according to claim 10 is characterized in that, further comprises:
Step 111, described concentrated monitoring equipment disconnect with described remote embedded system between be connected;
Step 112, described remote embedded system stop the task of described transmitting supervisory information, and cancel described startup sign after detecting and connecting disconnection.
12. the method for real-time monitoring remote embedded system according to claim 1 is characterized in that, carries out communication by transmission control protocol between described remote embedded system and the described concentrated monitoring equipment.
CNB2006101136659A 2006-10-11 2006-10-11 Method for real-time monitoring remote embedded system Active CN100536413C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101136659A CN100536413C (en) 2006-10-11 2006-10-11 Method for real-time monitoring remote embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101136659A CN100536413C (en) 2006-10-11 2006-10-11 Method for real-time monitoring remote embedded system

Publications (2)

Publication Number Publication Date
CN101163052A true CN101163052A (en) 2008-04-16
CN100536413C CN100536413C (en) 2009-09-02

Family

ID=39297886

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101136659A Active CN100536413C (en) 2006-10-11 2006-10-11 Method for real-time monitoring remote embedded system

Country Status (1)

Country Link
CN (1) CN100536413C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647294A (en) * 2012-03-31 2012-08-22 航天恒星科技有限公司 Far-end serial port monitoring system
CN104092586A (en) * 2014-07-21 2014-10-08 上海斐讯数据通信技术有限公司 Method and system for collecting running information of embedded system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647294A (en) * 2012-03-31 2012-08-22 航天恒星科技有限公司 Far-end serial port monitoring system
CN102647294B (en) * 2012-03-31 2015-04-22 航天恒星科技有限公司 Far-end serial port monitoring system
CN104092586A (en) * 2014-07-21 2014-10-08 上海斐讯数据通信技术有限公司 Method and system for collecting running information of embedded system

Also Published As

Publication number Publication date
CN100536413C (en) 2009-09-02

Similar Documents

Publication Publication Date Title
CN101482987B (en) Central control and management method for outdoor communication machine room door based on communication network
KR101854576B1 (en) Cloud management system based on chatbot and operating method thereof
CN101099345B (en) Interpreting an application message at a network element using sampling and heuristics
CN107451268B (en) Real-time database-oriented method for continuous transmission in disconnected network
US20100198636A1 (en) System and method for auditing governance, risk, and compliance using a pluggable correlation architecture
CN110688280B (en) Management system, method, equipment and storage medium for alarm event
CN105159964A (en) Log monitoring method and system
CN102316087A (en) The detection method that network application is attacked
CN102694871A (en) Server long-distance monitoring and fault processing device and method based on short message of mobile phone
CN104199819B (en) A kind of WEB system mistakes processing method and processing device
CN101651556A (en) System and method for monitoring server
CN111240862A (en) Universal interface platform and data conversion method
CN101877618A (en) Monitoring method, server and system based on proxy-free mode
CN106993043B (en) Data communication system and method based on agency
US7069184B1 (en) Centralized monitoring and early warning operations console
CN109460307B (en) Micro-service calling tracking method and system based on log embedded point
CN103198007A (en) Multi-process log output method and system
CN106301840B (en) Method and device for sending Bidirectional Forwarding Detection (BFD) message
CN109547262A (en) A kind of method and its system based on zabbix monitoring trading system exception
CN100536413C (en) Method for real-time monitoring remote embedded system
JP3766540B2 (en) Notification transmission method in network including notification service and network for using the same
CN116302862B (en) Monitoring alarm method and system under micro-service architecture
CN109194756A (en) Application features information extracting method and device
CN111427710B (en) Communication method, device, equipment and storage medium of components in application program
CN103684865B (en) Exchange system and information exchange method

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