CN111857798B - Method for notifying configuration change of embedded equipment - Google Patents
Method for notifying configuration change of embedded equipment Download PDFInfo
- Publication number
- CN111857798B CN111857798B CN202010612738.9A CN202010612738A CN111857798B CN 111857798 B CN111857798 B CN 111857798B CN 202010612738 A CN202010612738 A CN 202010612738A CN 111857798 B CN111857798 B CN 111857798B
- Authority
- CN
- China
- Prior art keywords
- configuration
- monitoring
- list
- program
- parameter 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method for notifying configuration change of embedded equipment, and relates to the technical field of embedded equipment. The method for notifying the configuration change of the embedded equipment comprises the following steps: applying for configuration monitoring: the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, and the configuration monitoring program records the request event into a monitoring list. The method for notifying the configuration change of the embedded equipment adopts a mode of combining database pushing and configuration monitoring subscription, corresponding configuration statements can be monitored according to the needs of application programs, the database can be accurately pushed to the application programs concerned by corresponding configuration after the configuration is modified, the identification efficiency of configuration modification is accelerated, meanwhile, the application programs of the embedded equipment do not need to modify codes because other applications need to configure notifications, and the database and the configuration monitoring programs can uniformly complete notification of corresponding configuration change.
Description
Technical Field
The invention relates to the technical field of embedded equipment, in particular to a method for notifying configuration change of embedded equipment.
Background
For embedded devices, the read timeliness of configuration change events may affect the use of device functionality. Therefore, the application module inside the device needs to sense the configuration change when the configuration is changed, and the configuration change pushes the change of the device function, so that the application module needs to continuously query the value of the configuration or modify the configuration module to send the configuration change to a specified program in order to obtain the configuration change.
This causes two problems:
1. the application module needs to query the configuration change by using a traversal method, and a large amount of equipment resources are needed.
2. The modules that modify the configuration need to know to which functional modules the modified configuration relates, resulting in a service association, which can cause a broadcast storm if the configuration change is sent using a broadcast.
Disclosure of Invention
The present invention is directed to a method for notifying configuration change of an embedded device, which solves the above-mentioned problems in the prior art.
In order to achieve the purpose, the invention is realized by the following technical scheme: a method for notifying configuration change of an embedded device comprises the following steps:
s1, applying configuration monitoring: the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, and the configuration monitoring program records the request event into a monitoring list.
S2, real-time recording configuration change: when the database modifies the configuration, the database module pushes the configuration change information which is modified correspondingly to the configuration monitoring program in real time.
S3, periodic transmission of configuration change: and the configuration monitoring program searches the configured subscription condition according to the corresponding information, then inserts the configuration change message into the linked list to be notified, and sends the configuration change notification after waiting for a certain idle time.
Further, in the operation step in S1, the method further includes the steps of:
s101, the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, the configuration monitoring program marks the corresponding application program, and the content marking is carried out on the application program.
S102, when the marked contents are completely the same, the configuration monitoring program considers that the request monitoring is repeated, the monitoring is not performed, and when the marked contents are not completely the same, the configuration monitoring program monitors the corresponding configuration.
Further, in the operation step in S2, the method further includes the steps of:
s201, the application program transmits the monitoring content.
S202, receiving the monitoring progress.
And S203, when the monitored contents are the same, marking the same existence, recording the same existence in the same linked list, and if not, creating a linked list member.
Further, in the operation step in S3, the method further includes the steps of:
s301, when the configuration of the database is changed, the related parameter information of the configuration is transmitted.
S302, configuring a monitoring program to sequentially search a monitoring list according to the corresponding related parameter information.
And S303, when the related parameter information is the same as the parameter information in the monitoring list, inserting a message to-be-sent list, and waiting for external triggering or overtime triggering.
And S304, clearing the list after triggering.
Further, in the operation step in S3, the configuration change message is inserted into the linked list to be notified, and the waiting idle is settable to default to 1S.
Further, in the operation step in S101, the content of the tag is a monitoring identity, configuration, and ID.
Further, in the operation step in S303, the method further includes the step of repeating step S302 when the relevant parameter information is not the same as the parameter information in the listening list, until the relevant parameter information is the same as the parameter information in the listening list.
The invention provides a method for notifying configuration change of an embedded device. The method has the following beneficial effects:
according to the method for notifying the configuration change of the embedded equipment, the application program actively applies for monitoring configuration, the relevance of the configuration is automatically maintained by the application program, the service coupling caused by the configuration of a database and the application program is avoided, the module function division is clear, the maintenance efficiency is improved, the real-time pushing is adopted, the cpu waste caused by traversing configuration is reduced, the temporary memory use of cache value maintenance is reduced, the resource use is reduced, the corresponding efficiency is improved, and the configuration monitoring program can wait for a period of time before sending the content in the linked list to be notified to the corresponding application program. The method ensures that one configuration is modified for many times, the configuration monitoring program is only informed once, the performance problem of the application program caused by the notification for many times is avoided, a mode of combining database pushing and configuration monitoring subscription is adopted, corresponding configuration statements can be monitored according to the needs of the application program, the database can be accurately pushed to the application program concerned by the corresponding configuration after the configuration is modified, the identification efficiency of the configuration modification is accelerated, meanwhile, the application program of the embedded device does not need to modify codes because other applications need to configure the notification, and the database and the configuration monitoring program can uniformly complete the notification of the corresponding configuration change.
Drawings
FIG. 1 is a general flow chart of the present invention;
FIG. 2 is a flow chart of a method for configuring snooping according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of recording configuration changes in real time in accordance with the present invention;
fig. 4 is a flow chart of a method for periodically sending configuration changes in accordance with the present invention.
Detailed Description
Example 1: referring to FIGS. 1-4: the invention provides a method for notifying configuration change of embedded equipment, which comprises the following steps:
the method comprises the following steps: applying for configuration monitoring: the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, and the configuration monitoring program records the request event into a monitoring list.
The method comprises the following specific implementation steps:
1) and the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, the configuration monitoring program marks the corresponding application program, and the content marking is carried out on the application program, wherein the marked content is monitoring identity, configuration and ID.
2) And when the marked contents are completely the same, the configuration monitoring program considers that the monitoring is the repeated request monitoring, the monitoring is not carried out, and when the marked contents are not completely the same, the configuration monitoring program monitors the corresponding configuration.
Step two: recording configuration changes in real time: when the database modifies the configuration, the database module pushes the configuration change information which is modified correspondingly to the configuration monitoring program in real time.
The method comprises the following specific implementation steps:
1) and the application program transmits the monitoring content.
2) And receiving the monitoring progress.
3) And when the monitored contents exist the same, marking the same, recording the same into the same linked list, and if not, creating a new linked list member.
Step three: periodically sending configuration changes: and the configuration monitoring program searches the configured subscription condition according to the corresponding information, then inserts the configuration change message into the linked list to be notified, and sends the configuration change notification after waiting for a certain idle time, wherein the waiting idle time can be set and defaults to 1 s.
The method comprises the following specific implementation steps:
1) and when the configuration of the database is changed, transmitting the configuration related parameter information.
2) And configuring a monitoring program to sequentially search a monitoring list according to the corresponding related parameter information.
3) And when the related parameter information is the same as the parameter information in the monitoring list, inserting a message to-be-sent list, and waiting for external triggering or overtime triggering, and when the related parameter information is different from the parameter information in the monitoring list, repeating the step 2) until the related parameter information is the same as the parameter information in the monitoring list.
4) And clearing the list after triggering.
In the invention, as the equipment is provided with a plurality of application programs, each application program has related or unrelated configuration, so that the functions represented by the configuration have diversity, the functions influenced by each configuration are different, the application programs actively apply for monitoring configuration, the relevance of the configuration is maintained by the application programs, the service coupling caused by the configuration of the database and the application programs is avoided, the module function division is clear, the maintenance efficiency is improved, the monitoring of the configuration by each application program is ensured not to be repeatedly the same (the monitoring program marks corresponding monitoring identity, configuration and ID, if the monitoring program is the same as the monitoring identity, configuration and ID, the repeated request monitoring is considered), so as to reduce the performance reduction problem caused by repeatedly sending messages, the configuration change event can trigger the change event to the monitoring program when being changed, otherwise, the configuration change event can be known only by comparing the traversing configuration table with the current cache value pair, real-time pushing is adopted, CPU waste caused by traversal configuration is reduced, temporary memory use for maintaining cache values is reduced, resource use is reduced, corresponding efficiency is improved, a configuration monitoring program can wait for a period of time before sending contents in a linked list to be notified to a corresponding application program, so that one configuration is ensured to be modified for multiple times, the configuration monitoring program is notified once, the performance problem of the application program caused by multiple notifications is avoided, a mode of combining database pushing and configuration monitoring subscription is adopted, corresponding configuration statements can be monitored according to the needs of the application program, the database can be accurately pushed to the application program concerned by corresponding configuration after configuration modification, the identification efficiency of configuration modification is improved, meanwhile, the application program of embedded equipment does not need to modify codes because other applications need to configure notification, the database and the configuration monitoring program can uniformly complete the notification of the corresponding configuration change.
The above is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, many variations and modifications can be made without departing from the inventive concept of the present invention, which falls into the protection scope of the present invention.
Claims (4)
1. A method for notifying configuration change of an embedded device is characterized by comprising the following steps:
s1, applying configuration monitoring: the application program actively sends a corresponding configuration monitoring request to the configuration monitoring program, and the configuration monitoring program records a request event into a monitoring list, and the specific process is as follows:
s101, an application program actively sends a corresponding configuration monitoring request to a configuration monitoring program, the configuration monitoring program marks the corresponding application program, and the application program is marked with content;
s102, when the marked contents are completely the same, configuring a monitoring program, namely, monitoring the request repeatedly, not monitoring, and when the marked contents are not completely the same, configuring the monitoring program to monitor the corresponding configuration;
s2, real-time recording configuration change: when the database modifies the configuration, the database module pushes the configuration change information which is correspondingly modified to the configuration monitoring program in real time, and the specific process is as follows:
s201, the application program transmits the monitoring content;
s202, receiving a monitoring process;
s203, when the monitored contents exist identically, marking the same existence, recording the same existence in the same linked list, and if not, creating a linked list member;
s3, periodic transmission of configuration change: the configuration monitoring program searches the configured subscription condition according to the corresponding information, then inserts the configuration change message into the linked list to be notified, and sends the configuration change notification after waiting for a certain idle time, and the specific process is as follows:
s301, when the configuration of the database is changed, transmitting the configuration related parameter information;
s302, configuring a monitoring program to sequentially search a monitoring list according to corresponding related parameter information;
s303, when the related parameter information is the same as the parameter information in the monitoring list, inserting a message to-be-sent list, and waiting for external triggering or overtime triggering;
and S304, clearing the list after triggering.
2. The method for notifying configuration change of an embedded device according to claim 1, wherein in the operation step in S3, the configuration change message is inserted into a linked list to be notified, and a waiting idle status is settable and defaults to 1S.
3. The method according to claim 1, wherein in the operation step in S101, the tag content is a monitoring identity, a configuration and an ID.
4. The method according to claim 1, wherein the step of S303 further includes a step of repeating S302 until the relevant parameter information is the same as the parameter information in the listening list when the relevant parameter information is different from the parameter information in the listening list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612738.9A CN111857798B (en) | 2020-06-30 | 2020-06-30 | Method for notifying configuration change of embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010612738.9A CN111857798B (en) | 2020-06-30 | 2020-06-30 | Method for notifying configuration change of embedded equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111857798A CN111857798A (en) | 2020-10-30 |
CN111857798B true CN111857798B (en) | 2022-09-13 |
Family
ID=72988802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010612738.9A Active CN111857798B (en) | 2020-06-30 | 2020-06-30 | Method for notifying configuration change of embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111857798B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804119A (en) * | 2018-04-28 | 2018-11-13 | 北京金山云网络技术有限公司 | Configure update method, device, system, configuration center, application node and medium |
CN109039803A (en) * | 2018-07-10 | 2018-12-18 | 武汉斗鱼网络科技有限公司 | A kind of method, system and the computer equipment of processing readjustment notification message |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296507B (en) * | 2007-04-29 | 2012-06-27 | 华为技术有限公司 | Method and system and server for implementing list information synchronization |
US9917760B2 (en) * | 2015-06-03 | 2018-03-13 | International Business Machines Corporation | Notifying original state listeners of events in a domain model |
CN109284312A (en) * | 2018-08-27 | 2019-01-29 | 山东威尔数据股份有限公司 | A kind of heterogeneous database change real-time informing method |
CN110098979B (en) * | 2019-04-16 | 2023-04-14 | 深圳前海微众银行股份有限公司 | Short link message monitoring method and device based on block chain |
CN110471884A (en) * | 2019-08-19 | 2019-11-19 | 深圳前海微众银行股份有限公司 | Data managing method, device, equipment, system and computer readable storage medium |
-
2020
- 2020-06-30 CN CN202010612738.9A patent/CN111857798B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804119A (en) * | 2018-04-28 | 2018-11-13 | 北京金山云网络技术有限公司 | Configure update method, device, system, configuration center, application node and medium |
CN109039803A (en) * | 2018-07-10 | 2018-12-18 | 武汉斗鱼网络科技有限公司 | A kind of method, system and the computer equipment of processing readjustment notification message |
Also Published As
Publication number | Publication date |
---|---|
CN111857798A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101317370B (en) | Method and management agent for event notifications correlation | |
CN102821084B (en) | Method for identifying open platform, open platform and open system | |
CN103516690A (en) | Service processing state information query method and apparatus thereof | |
EP2908497B1 (en) | Method, device and system for remote management of terminal peripheral | |
CN105376589A (en) | Intelligent TV message push device and method based on MQTT | |
EP2207306A1 (en) | A polling method, system, network management station and managed device | |
CN112416969B (en) | Parallel task scheduling system in distributed database | |
CN102056188B (en) | Data generation method, data transmission method and related equipment | |
CN104581806A (en) | Method and terminal for monitoring service system | |
CN101729284A (en) | Equipment end initiative based method for realizing link polling in management system | |
CN111124717A (en) | Message delivery method, system and computer storage medium | |
EP3373608A1 (en) | Method and apparatus for acquiring resources | |
CN111857798B (en) | Method for notifying configuration change of embedded equipment | |
CN103186536A (en) | Method and system for scheduling data shearing devices | |
CN103078905B (en) | A kind of communication management method of GPS terminal | |
CN107342789B (en) | Networking communication method of cable anti-theft monitoring system | |
CN112506154A (en) | Internet of things monitoring system for domestic sewage treatment station | |
CN109040286B (en) | Client online state maintenance method based on memory database | |
CN102769495A (en) | Optical access network equipment communication method, device and system | |
CN112437146B (en) | Equipment state synchronization method, device and system | |
CN112235205B (en) | Method, device and storage medium for transmitting and consuming MQ message | |
JP2020533905A5 (en) | ||
CN112256446B (en) | Kafka message bus control method and system | |
CN103634821A (en) | Dynamic monitoring method for multi-channel wireless network communication equipment links | |
CN112491614B (en) | Configuration information online automatic validation method and system for embedded equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |