CN102662819A - Node addition and configuration automatic monitoring method and embedded system - Google Patents

Node addition and configuration automatic monitoring method and embedded system Download PDF

Info

Publication number
CN102662819A
CN102662819A CN2012101397705A CN201210139770A CN102662819A CN 102662819 A CN102662819 A CN 102662819A CN 2012101397705 A CN2012101397705 A CN 2012101397705A CN 201210139770 A CN201210139770 A CN 201210139770A CN 102662819 A CN102662819 A CN 102662819A
Authority
CN
China
Prior art keywords
configuration
node
application program
configuration file
file data
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
CN2012101397705A
Other languages
Chinese (zh)
Other versions
CN102662819B (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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201210139770.5A priority Critical patent/CN102662819B/en
Publication of CN102662819A publication Critical patent/CN102662819A/en
Application granted granted Critical
Publication of CN102662819B publication Critical patent/CN102662819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a node addition and configuration automatic monitoring method and an embedded system, which are designed for solving the phenomenon of system congestion or on-hook caused by the nodes which exist in the default configuration file data but not exist in the memory configuration region in the conventional embedded system and the starting method of the embedded system. The node addition and configuration automatic monitoring method comprises the following steps that: when the system starts, monitoring whether the node corresponding to the application program is not in the memory configuration region, if so, reading the default configuration file dat. Based on the conventional embedded system, the embedded system provided by the invention is further provided with a monitoring module; when the system starts, the monitoring module monitors whether the node corresponding to the application program is not in the memory configuration region, if so, the monitoring module reads the default configuration file data. By the node addition and configuration automatic monitoring method and the embedded system provided by the invention, the phenomenon of system congestion or on-hook caused by unsuccessful node configuration in the embedded system is solved simply and effectively.

Description

Automatically configuration node method and embedded system are added in monitoring
Technical field
The present invention relates to a kind of automatic monitoring and add configuration node method and embedded system.
Background technology
In the middle of current embedded system device, generally,, promptly dispose the conservation zone preserving the configuration of using for marking a special zone in the FLASH storage inside.
In FLASH, marking another piece zone, to preserve file system be the default setting file storage area, storage default configuration file data; Generally establish the default configuration file of son under file system directories.
What system used in operational process is to copy out the data that are stored in the memory configurations district from configuration conservation zone or default configuration file.
When preserving, be saved in the configuration conservation zone to the data in memory configurations district.Default setting just covers the data in the configuration conservation zone to the default configuration file data in the file system if desired.
After the system start-up, acquiescence is the configuration of reading FLASH configuration conservation zone, if read failure then go to read the default configuration under the root file system.In some cases, system will upgrade, and has new function to add; System restart after upgrading is accomplished; Normal read is taken out the configuration file of FLASH configuration conservation zone, when the new functional module of initialization, finds to search less than the corresponding nodes configuration, and the host process that causes loading this module is blocked.Main cause is preceding system configuration information because configuration conservation zone or last time cut off the power supply, and possibly have compatibling problem.
Summary of the invention
To the problems referred to above, the present invention provides a kind of ability automatic monitoring node disappearance, adds the automatic detection of node automatically and adds configuration node method and embedded system.
For reaching above-mentioned purpose, the present invention monitors automatically and adds the configuration node method, and said automatic monitoring is added the configuration node method and comprised
During system start-up, whether have application program pairing node do not exist, if having, then read the default configuration file data if monitoring in the memory configurations district.
Further, said automatic monitoring interpolation configuration node method comprises following concrete steps:
Step 1: system start-up, set up and monitor module;
Step 2: read configuration information or default configuration file data in the configuration conservation zone, and store the memory configurations district into, initialization application program, register node;
Step 3: said monitoring module, whether there is the pairing node of application program not exist in the said memory configurations of the real-time listening district,
If have, search whether there is this node in the default configuration file data,
If exist, this node added in the said memory configurations district automatically, and reinitialize this application program and register the pairing node of this application program;
If do not exist, the unexpected processing;
If do not have, system's operation.
Further, said step 2 comprises, judges whether said configuration conservation zone internal information is empty,
If then read said default configuration file data, and add in the said memory configurations district;
If not, then read the configuration information in the said configuration conservation zone, and add in the said memory configurations district.
Further, said step 3 comprises that also the related data with the node of said automatic interpolation stores said configuration conservation zone into.
For reaching above-mentioned purpose, embedded system of the present invention comprises FLASH storer and memory configurations district, comprises configuration conservation zone and default configuration file memory block in the said FLASH storer, and said embedded system also comprises the monitoring module; Wherein,
Said configuration conservation zone, the configuration information before the storage embedded system was closed last time;
Said default configuration file memory block, storage default configuration file data, wherein said default configuration file data have comprised the data of each application program module and institute's corresponding node thereof;
Said memory configurations district reads configuration information or said default configuration file data in the said configuration conservation zone, in order to initialization application program and register node, deposits real-time configuration information;
Whether said monitoring module has the pairing node of application program not exist in the said memory configurations of the real-time listening district, if having, then reads the default configuration file data.
Especially, in said monitoring module, be provided with in order to write down the monitoring chained list of the unusual relevant information of each node.
The beneficial effect of the method for configuration node is added in embedded system of the present invention and automatic monitoring:
1, the present invention monitors automatically and adds the configuration node method; Through just whether there being corresponding node not exist in the AM automatic monitoring memory configurations district in initialize routine; If have; Then add this node automatically, effectively avoided unsuccessful in the memory configurations district, not having node, system start-up obstruction that causes and an on-hook phenomenon because of disposing through searching the default configuration file data.
2, the present invention monitors automatically and adds the configuration node method, realizes effectively simple.
3, embedded system of the present invention is through the monitoring module that increases, through the monitoring module that increases; When real-time monitoring system started, whether had application program pairing node do not exist, if having if monitoring in the memory configurations district; Then read the default configuration file data and add the node of this disappearance automatically, after the choking phenomenon when having avoided system start-up effectively, particularly system upgrade; In starting first, system congestion and on-hook phenomenon that the not interpolation of the new node that new module is corresponding causes.
4, embedded system of the present invention; Through the monitoring module that increases, whether when real-time monitoring system starts, monitoring in the memory configurations district has the pairing node of application program not exist; If have; Then read the default configuration file data and add the node of this disappearance automatically, effectively avoided system upgrade after, the node that the compatibility issue of system causes lacks the obstruction and the on-hook phenomenon of the system initialization that causes.
Description of drawings
Fig. 1 is that the process flow diagram of configuration node method is added in the said automatic monitoring of the embodiment of the invention.
Embodiment
Below in conjunction with Figure of description the present invention is done further description.
Embodiment one:
As shown in Figure 1, the present invention monitors automatically and adds the configuration node method, and said automatic monitoring is added the configuration node method and comprised
During system start-up, whether have application program pairing node do not exist, if having, then read the default document data if monitoring in the memory configurations district.
Said automatic monitoring is added the configuration node method and is comprised following concrete steps:
Step 1: system start-up, set up and monitor module;
Step 2: read configuration information or default configuration file data in the configuration conservation zone, and store the memory configurations district into, initialization application program, register node;
Step 3: said monitoring module, whether there is the pairing node of application program not exist in the said memory configurations of the real-time listening district,
If have, search whether there is this node in the default configuration file data,
If exist, this node added in the said memory configurations district automatically, and reinitialize this application program and register the pairing node of this application program;
If do not exist, the unexpected processing;
If do not have, system's operation.
Said step 2 comprises, judges whether said configuration conservation zone internal information is empty,
If then read said default configuration file data, and add in the said memory configurations district;
If not, then read the configuration information in the said configuration conservation zone, and add in the said memory configurations district.
Said step 3 comprises that also the related data with the node of said automatic interpolation stores said configuration conservation zone into.
When stating the method for the said automatic monitoring interpolation configuration node of operation for embedded system in the use, adopt the abnormal information of monitoring each node of chain table record.
The present invention monitors automatically and adds the configuration node method; Through just whether there being corresponding node not exist in the AM automatic monitoring memory configurations district in initialize routine; If have; Then add this node automatically, effectively avoided unsuccessful in the memory configurations district, not having node, system start-up obstruction that causes and an on-hook phenomenon because of disposing through searching the default configuration file data.
The present invention monitors automatically and adds the configuration node method, realizes effectively simple.
Embodiment two:
Embedded system of the present invention comprises FLASH storer and memory configurations district, comprises configuration conservation zone and default configuration file memory block in the said FLASH storer, and said embedded system also comprises the monitoring module; Wherein,
Said configuration conservation zone, the configuration information before the storage embedded system was closed last time;
Said default configuration file memory block, storage default configuration file data, wherein said default configuration file data have comprised the data of each application program module and institute's corresponding node thereof;
Said memory configurations district reads configuration information or said default configuration file data in the said configuration conservation zone, in order to initialization application program and register node, deposits real-time configuration information;
Whether said monitoring module has the pairing node of application program not exist in the said memory configurations of the real-time listening district, if having, then reads the default configuration file data.
In said monitoring module, be provided with in order to write down the monitoring chained list of the unusual relevant information of each node.
Embedded system of the present invention is through the monitoring module that increases, through the monitoring module that increases; When real-time monitoring system started, whether had application program pairing node do not exist, if having if monitoring in the memory configurations district; Then read the default configuration file data and add the node of this disappearance automatically, after the choking phenomenon when having avoided system start-up effectively, particularly system upgrade; In starting first, system congestion and on-hook phenomenon that the not interpolation of the new node that new module is corresponding causes.
Embedded system of the present invention; Through the monitoring module that increases, whether when real-time monitoring system starts, monitoring in the memory configurations district has the pairing node of application program not exist; If have; Then read the default configuration file data and add the node of this disappearance automatically, effectively avoided system upgrade after, the node that the compatibility issue of system causes lacks the obstruction and the on-hook phenomenon of the system initialization that causes.
Embodiment three:
As shown in Figure 1, the present invention monitors automatically and adds the configuration node method, and said automatic monitoring is added the configuration node method and comprised
During system start-up, whether have application program pairing node do not exist, if having, then read the default document data if monitoring in the memory configurations district.
Said automatic monitoring is added the configuration node method and is comprised following concrete steps:
Step 1: system start-up, set up and monitor module;
Step 2: read configuration information or default configuration file data in the configuration conservation zone, and store the memory configurations district into, initialization application program, register node;
Step 3: said monitoring module, whether there is the pairing node of application program not exist in the said memory configurations of the real-time listening district,
If have; Like initialization network information application program; The interdependent node of finding network information application program comprises one or more losing in the nodes such as IP address, subnet mask, default gateway address, then searches whether there is the node of losing in the default configuration file data
If exist, add to automatically in the said memory configurations district losing node, and reinitialize this application program and register the pairing node of this application program;
If do not exist, change unexpected and handle;
If do not have, system continues operation.
Said step 2 comprises, judges whether said configuration conservation zone internal information is empty,
If then read said default configuration file data, and add in the said memory configurations district;
If not, then read the configuration information in the said configuration conservation zone, and add in the said memory configurations district.
Said step 3 comprises that also the related data with the node of said automatic interpolation stores said configuration conservation zone into.
When stating the method for the said automatic monitoring interpolation configuration node of operation for embedded system in the use, adopt the abnormal information of monitoring each node of chain table record.
The present invention monitors automatically and adds the configuration node method; Whether there is application program institute corresponding node to exist but configuration is unsuccessful through AM automatic monitoring; Be; Then automatically add the technical scheme of the unsuccessful node of configuration, effectively avoided unsuccessfully in the memory configurations district, not having node, system start-up obstruction that causes and an on-hook phenomenon because of disposing.
The present invention monitors automatically and adds the configuration node method, realizes effectively simple.
Above embodiment is merely preferred embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technician who is familiar with the present technique field is in the technical scope that the present invention discloses, and the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain that claim was defined.

Claims (6)

1. monitor interpolation configuration node method automatically for one kind, it is characterized in that, said automatic monitoring is added the configuration node method and is comprised
During system start-up, whether have application program pairing node do not exist, if having, then read the default configuration file data if monitoring in the memory configurations district.
2. the configuration node method is added in automatic monitoring according to claim 1, it is characterized in that, said automatic monitoring is added the configuration node method and comprised following concrete steps:
Step 1: system start-up, set up and monitor module;
Step 2: read configuration information or default configuration file data in the configuration conservation zone, and store the memory configurations district into, initialization application program, register node;
Step 3: said monitoring module, whether there is the pairing node of application program not exist in the said memory configurations of the real-time listening district,
If have, search whether there is this node in the default configuration file data,
If exist, this node added in the said memory configurations district automatically, and reinitialize this application program and register the pairing node of this application program;
If do not exist, the unexpected processing;
If do not have, system's operation.
3. the configuration node method is added in automatic monitoring according to claim 2, it is characterized in that, said step 2 comprises judge whether said configuration conservation zone internal information is empty,
If then read said default configuration file data, and add in the said memory configurations district;
If not, then read the configuration information in the said configuration conservation zone, and add in the said memory configurations district.
4. add the configuration node method according to claim 2,3 described automatic monitorings, it is characterized in that said step 3 comprises that also the related data with the node of said automatic interpolation stores said configuration conservation zone into.
5. an embedded system comprises FLASH storer and memory configurations district, comprises configuration conservation zone and default configuration file memory block in the said FLASH storer, it is characterized in that said embedded system also comprises the monitoring module; Wherein,
Said configuration conservation zone, the configuration information before the storage embedded system was closed last time;
Said default configuration file memory block, storage default configuration file data, wherein said default configuration file data have comprised the data of each application program module and institute's corresponding node thereof;
Said memory configurations district reads configuration information or said default configuration file data in the said configuration conservation zone, in order to initialization application program and register node, deposits real-time configuration information;
Whether said monitoring module has the pairing node of application program not exist in the said memory configurations of the real-time listening district, if having, then reads the default configuration file data.
6. embedded system according to claim 5 is characterized in that, in said monitoring module, is provided with in order to write down the monitoring chained list of the unusual relevant information of each node.
CN201210139770.5A 2012-05-08 2012-05-08 Node addition and configuration automatic monitoring method and embedded system Active CN102662819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210139770.5A CN102662819B (en) 2012-05-08 2012-05-08 Node addition and configuration automatic monitoring method and embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210139770.5A CN102662819B (en) 2012-05-08 2012-05-08 Node addition and configuration automatic monitoring method and embedded system

Publications (2)

Publication Number Publication Date
CN102662819A true CN102662819A (en) 2012-09-12
CN102662819B CN102662819B (en) 2015-03-04

Family

ID=46772316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210139770.5A Active CN102662819B (en) 2012-05-08 2012-05-08 Node addition and configuration automatic monitoring method and embedded system

Country Status (1)

Country Link
CN (1) CN102662819B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872976A (en) * 1997-04-01 1999-02-16 Landmark Systems Corporation Client-based system for monitoring the performance of application programs
CN101477482A (en) * 2008-10-14 2009-07-08 深圳市共进电子有限公司 Method for recovering flash memory data at power-off of built-in Linux system
CN102346713A (en) * 2011-09-20 2012-02-08 上海市共进通信技术有限公司 Method for realizing compact save of system configuration in embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872976A (en) * 1997-04-01 1999-02-16 Landmark Systems Corporation Client-based system for monitoring the performance of application programs
CN101477482A (en) * 2008-10-14 2009-07-08 深圳市共进电子有限公司 Method for recovering flash memory data at power-off of built-in Linux system
CN102346713A (en) * 2011-09-20 2012-02-08 上海市共进通信技术有限公司 Method for realizing compact save of system configuration in embedded system

Also Published As

Publication number Publication date
CN102662819B (en) 2015-03-04

Similar Documents

Publication Publication Date Title
US20170206079A1 (en) Method and Device for Upgrading Software
CN102132259B (en) Firmware updating system, firmware delivering server, firmware incorporating device, and program
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN106033322B (en) A kind of date storage method and device
EP2458504B1 (en) Method and device for processing data caching
CN102521289B (en) File synchronization method, device and system
JP5560373B2 (en) Self-relief method and self-relief device for damaged file system
CN105024879A (en) Virtual machine fault detection and recovery system and virtual machine detection, recovery and starting method
CN102497286A (en) Method and device for matching management information base (MIB)
CN106708960B (en) Repair method of NAS device file system and NAS device
CN104346264A (en) System and method for processing system event logs
US20170344431A1 (en) Methods for proactive prediction of disk failure in a raid group and devices thereof
CN111474860A (en) Processing method and device based on failure intelligent scene and storage medium
CN103136005A (en) Method of updating firmware
CN101873217B (en) Ethernet power supply equipment restart control method and device thereof
CN110333876A (en) A kind of data clearing method and control equipment
CN103339608A (en) Diagnostic information logging
US11080909B2 (en) Image layer processing method and computing device
US20160216925A1 (en) Information mediation system, information mediation method, information accumulating system, and information processing method
CN107911229B (en) Running state change reminding method and device, electronic equipment and storage medium
CN101320389B (en) File management method and apparatus
JP6583942B1 (en) BMC, determination method and BMC firmware
CN102662819A (en) Node addition and configuration automatic monitoring method and embedded system
CN113238778B (en) Method, system, equipment and medium for upgrading BIOS firmware
CN104717248A (en) File network sharing methods, server and terminal

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