CN110351132B - Home gateway configuration recovery method and system - Google Patents

Home gateway configuration recovery method and system Download PDF

Info

Publication number
CN110351132B
CN110351132B CN201910572775.9A CN201910572775A CN110351132B CN 110351132 B CN110351132 B CN 110351132B CN 201910572775 A CN201910572775 A CN 201910572775A CN 110351132 B CN110351132 B CN 110351132B
Authority
CN
China
Prior art keywords
recovery
attribute
data
recovering
condition
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
CN201910572775.9A
Other languages
Chinese (zh)
Other versions
CN110351132A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201910572775.9A priority Critical patent/CN110351132B/en
Publication of CN110351132A publication Critical patent/CN110351132A/en
Application granted granted Critical
Publication of CN110351132B publication Critical patent/CN110351132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a system for recovering home gateway configuration, which relate to the field of computer communication. And setting recovery attributes for the object and/or the parameters, wherein the recovery attributes comprise recovery conditions of data corresponding to the object and/or the parameters. And the home gateway performs configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery command and the recovery attribute. The invention can quickly and simply realize different recovery instructions under different scenes and is easy to maintain and expand.

Description

Home gateway configuration recovery method and system
Technical Field
The invention relates to the field of computer communication, in particular to a method and a system for recovering home gateway configuration.
Background
The home gateway is used as a home broadband access device, various household appliances and devices in a home are connected to the network, and various rich, diversified, personalized, convenient, comfortable, safe and efficient services are provided for people through the network. With the wide application of the Internet, more service contents can be brought, not only the access to the Internet, but also the home gateway can provide more intelligent services for the home. As the services supported by the home gateway increase, more and more configurations are saved on the home gateway.
However, it follows that the configuration recovery function becomes more and more complex, and the ways of configuration recovery, such as short-press reset key recovery, long-press reset key recovery, remote management platform recovery, etc., are increased, and these recovery ways are applied to different scenarios, and the recovery ways of different operators are different. Meanwhile, the home gateway has many configuration parameters, so that the configuration recovery is complicated. The current method for recovering the configuration includes the following two methods:
1. the first method is that the configuration management module carries out recovery, different recovery modes use different function processing, and the mode causes huge codes for recovering configuration, difficult maintenance and poor expansibility, and if one recovery mode is newly added, a processing function needs to be newly added;
2. the second method is that the configuration management module sends the mode to be recovered to each service module in the form of message, which can reduce the workload of the configuration module, but if the process of a certain service module is not started, the configuration is missed to be recovered, and the expansibility is poor, and the configuration management module and the corresponding service module are modified when one configuration recovery mode is added or changed.
Therefore, how to solve the complexity of the configuration recovery implementation in different scenes is a problem which needs to be solved urgently.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a home gateway configuration recovery method and a home gateway configuration recovery system, which can quickly and simply realize different recovery strategies under different scenes and are easy to maintain and expand.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a home gateway configuration recovery method, which includes
Establishing a data model, wherein the data model comprises at least one object, and each object comprises at least one parameter;
setting a recovery attribute for the object and/or the parameter, wherein the recovery attribute comprises a recovery condition of data corresponding to the object and/or the parameter;
and the home gateway performs configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery command and the recovery attribute.
As a preferred embodiment, each object comprises a plurality of parameters;
if all the parameter recovery conditions under one object are the same, setting a recovery attribute for the object, wherein the recovery attribute of the object is matched with the recovery conditions;
if all the parameter recovery conditions under one object are different, the recovery attributes of the parameters under the object are set one by one.
As a preferred embodiment, the recovery attribute is n binary digits, each bit representing whether a recovery mode is performed, and n is an integer greater than 0.
As a preferred embodiment, the recovery condition includes a long button press, a short button press, and a remote operation.
As a preferred embodiment, the recovery attribute is a three-bit binary number:
when any recovery operation is carried out, the data with the recovery attribute of 0 is not recovered;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
In a second aspect, an embodiment of the present invention further provides a home gateway configuration recovery system, which includes:
a modeling module for building a data model, the data model comprising at least one object, each object comprising at least one parameter;
the configuration module is used for setting recovery attributes for the objects and/or the parameters, and the recovery attributes comprise recovery conditions of data corresponding to the objects and/or the parameters;
and the recovery module is used for carrying out configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery instruction and the recovery attributes.
As a preferred embodiment, the configuration module is further configured to: when the data model includes at least one object, each object including a plurality of parameters;
if all data recovery conditions under an object are the same, setting a recovery attribute for the object, wherein the recovery attribute of the object is matched with the recovery conditions;
if all data recovery conditions under an object are different, the recovery attributes of the parameters under the object are set one by one.
As a preferred embodiment, the recovery attribute is n binary digits, each bit representing whether a recovery mode is performed, and n is an integer greater than 0.
As a preferred embodiment, the system further comprises a corresponding module, wherein the corresponding module is configured to set a recovery operation corresponding to the recovery attribute, the recovery operation includes a long button press, a short button press, and a remote operation, and perform a corresponding recovery mode according to the recovery operation.
As a preferred embodiment, the recovery module is configured to recover the data at:
when any recovery operation is carried out, the recovery is not carried out;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the recovery attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
Compared with the prior art, the invention has the advantages that:
the invention relates to a home gateway configuration recovery method and a home gateway configuration recovery system, wherein a data model is established, recovery attributes are configured for each object and parameter, and the recovery mode required by the parameter under the corresponding object is identified through the recovery attributes. Furthermore, the recovery instructions configured by the home gateway correspond to different recovery scenes and recovery modes, and a user and a manufacturer can complete recovery of the complete set of home gateway configuration parameters only by performing recovery operation corresponding to the recovery instructions, so that the method is very convenient and fast.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings corresponding to the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a home gateway configuration recovery method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of recovery attributes in an embodiment of a home gateway configuration recovery method according to the present invention;
fig. 3 is a flowchart illustrating steps of a home gateway configuration recovery method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a home gateway configuration recovery system according to the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, embodiments of the present invention provide a home gateway configuration recovery method and system, which can perform set recovery on parameters one by one according to a selected recovery condition by establishing a data model and setting a recovery attribute and a recovery condition correspondingly, and can perform one-by-one recovery on each parameter, and at the same time, only a corresponding recovery instruction needs to be sent, so that a gateway configuration recovery mode is simplified, and convenience and rapidness are achieved.
In order to achieve the technical effects, the general idea of the application is as follows:
establishing a data model, wherein the data model comprises at least one object, and each object comprises at least one parameter;
setting a recovery attribute for the object and/or the parameter, wherein the recovery attribute comprises a recovery condition of data corresponding to the object and/or the parameter;
and the home gateway performs configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery command and the recovery attribute.
In summary, the logical relationship of each parameter is expressed by the form of the data model, which is helpful for attributing the parameters of uniform type or related to the same things to an object, setting the recovery attribute at the same time, and enabling the things to which each parameter is directed in the home gateway to be related and visualized simultaneously. The recovery attributes are set in the objects and the parameters in the data model, so that different recovery attributes can be configured in corresponding objects or parameters according to different recovery conditions, different parameter recovery modes are carried out, complicated parameter recovery schemes needing to be confirmed one by one are connected in a mode that the parameters correspond to the recovery attributes or the recovery attributes correspond to the objects and the attributes correspond to the parameters, different recovery conditions and instructions are set to complete the corresponding relation of the data model, one recovery instruction and one recovery condition are selected, the corresponding recovery attributes of the different parameters and the objects can be found corresponding to the different parameters and the objects, the attributes are recovered through the recovery instructions, and the processing mode/recovery mode of the parameters are confirmed.
In order to better understand the technical solution, the following detailed description is made with reference to specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a home gateway configuration recovery method, which includes:
s1 builds a data model, the data model including at least one object, each object including at least one parameter.
By establishing a data model according to the logical relationship among the parameters, complex parameter options can be expressed in an integral form without omission. In the existing home gateway, the configuration options include multiple items, such as user configuration and system configuration, and other small items and various parameter options exist under each item. If the out-of-order confirmation is carried out one by one, the configuration personnel needs to inquire the modules related to the parameters at any time during configuration, and contradictions or errors can not occur between the parameters and the home gateway or between the parameters and the parameters. The invention directly establishes the data model, and when the parameters are confirmed one by one, the data model can be used for confirming the parameters one by one layer by layer according to the model, thereby ensuring the integrity and orderliness of the parameters and having no omission. Furthermore, the correlated parameters can be imaged through the data model, so that the searching and the corresponding are convenient.
As a preferred embodiment, the data model comprises at least one object, each object comprising a plurality of parameters;
if all the parameter recovery conditions under one object are the same, setting a recovery attribute for the object, wherein the recovery attribute of the object is matched with the recovery conditions;
if all the parameter recovery conditions under one object are different, the recovery attributes of the parameters under the object are set one by one.
When all the parameters under an object are the same, if the parameters are still confirmed one by one, the redundancy is excessive, therefore, the invention further directly confirms more than one corresponding parameters by setting the recovery attributes of the object to which the parameters belong, and whether the parameters need to be confirmed one by one is not needed any more, but the parameters are directly confirmed according to the parameters. And when the recovery conditions of all parameters under the object are different, the parameters need to be confirmed one by one.
S2 sets a recovery attribute for the object and/or the parameter, where the recovery attribute includes a recovery condition of data corresponding to the object and/or the parameter.
One parameter corresponds to one recovery attribute, one object corresponds to one recovery attribute, the recovery attribute comprises the recovery condition of the object and/or the data corresponding to the parameter, the recovery mode of the parameter is ensured to be confirmed through the recovery attribute definitely, and further, when the recovery attributes are confirmed one by one according to a certain sequence, the recovery attribute can be used as a fixed recovery instruction to be carried out. And storing and recording the complex parameters which need to be confirmed one by one in a corresponding mode through the recovery attributes, thereby simplifying the parameter recovery confirmation steps and improving the parameter recovery efficiency.
For example, as shown in fig. 2, the recovery attribute is n binary digits, each bit representing whether a recovery is performed, and n is an integer greater than 0.
The recovery mode of the object/parameter is represented in a numerical mode, so that the complex parameter and the recovery of the object can be recorded more conveniently. Meanwhile, the method can correspond to different recovery instructions.
Further, the recovery condition includes a long button press, a short button press, and a remote operation.
Through setting up the operation on the hardware, the user can directly accomplish the recovery of home gateway configuration through the hardware, no longer need get into the software system, accomplishes the configuration of each parameter, object one by one, and is more convenient, simultaneously, opens at the user visual angle, and it only passes through the button, and home gateway can accomplish the configuration by oneself promptly, compares in traditional scheme, and efficiency is called more, and the material resources of using manpower sparingly, and user experience is better.
By way of further example, the recovery attribute is a three-bit binary number:
when any recovery operation is carried out, the data with the recovery attribute of 0 is not recovered;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
As shown in table 1, a total of 8 preset recovery types can be achieved by 3 buttons and 2 recovery methods. Compared with the traditional method, the user can finish the recovery of each parameter one by one according to the requirement, more conditions can be corresponded, and the method is more convenient and faster.
TABLE 1
Figure BDA0002111313300000091
Preferably, the home gateway is configured with a plurality of recovery policies, including a full recovery policy and a partial recovery policy.
Under different recovery scenes, the recovery requirements and recovery ideas for home gateway configuration are different, for example, when a user configures personalized parameters, misoperation occurs, and a parameter configuration scheme before the personalized parameters are configured needs to be recovered, the recovery strategy at the moment is to recover the personalized parameters, and the setting of other parameters is not involved, namely a possible partial recovery strategy. For data that needs to initialize the home gateway before use, all parameters can be restored, this time a full restoration policy.
Specifically, all configurations of the home gateway are stored in a data model, and there are two types of data stored in the data model: an object (hereinafter abbreviated as obj) and a parameter (hereinafter abbreviated as param).
In the data model, a plurality of params are in one-to-one correspondence with nodes below the corresponding node obj. The configuration recovery of the invention is carried out in a centralized manner by a configuration management module, a label/attribute is added in an attribute list of obj and param and is used for representing the recovery mode of the object or the parameter, the label/attribute represents a recovery mode through each bit of a binary system, when the bit value is 1, the recovery of the object or the parameter value under the corresponding recovery mode is represented, and when the bit value is 0, the non-recovery is represented. If the parameter recovery scenes under a certain object are the same, only the recovery mode of the object can be set; if the parameter recovery scenes under the objects are different, the recovery attributes are set for the parameters under the objects one by one without setting the object recovery attributes. When the configuration management module carries out recovery operation, the recovery mode and the recovery attribute value of the object/parameter are subjected to AND operation, if the recovery mode is 1, the object/parameter is required to be recovered, and if not, the recovery is not required. The method of the present invention may therefore define the recovery of an object/parameter in a variety of recovery scenarios. If a new recovery mode is needed, only the recovery attribute of the parameter model needs to be modified, and no new function is needed for processing.
For further example, the format of the device configuration stored in the data model is specifically:
(1) the system is composed of two parts, an object obj and a parameter param, wherein a plurality of params are arranged under the object obj;
(2) adding a restore tag column in a tag/attribute list corresponding to obj and param, wherein when the tag is not set, the value is 0;
(3) when all the tag fields of param under the obj are the same, only the tag field of the obj needs to be set, but the tag field of the parameter param does not need to be set, so that the recovery attribute of param inherits the tag field of the obj, and the whole obj can be recovered during recovery operation without independently recovering each obj; if the tag fields of a plurality of params under obj are different, the obj does not set the recovery attribute value, only sets the recovery attribute value of the param, and the params are recovered one by one during recovery;
when a new recovery mode is needed, only the restore tag field of obj or param needing to be recovered in the parameter model needs to be modified. The value of restore is the restore attribute.
Specifically, the data model can be set according to the following code example:
Figure BDA0002111313300000101
Figure BDA0002111313300000111
after the above setting, as shown in fig. 3, the following recovery steps are performed:
a1: because the equipment can only carry out one preset recovery strategy in the same time, the Configestore function is set to correspond to one recovery strategy according to a recovery instruction selected by a user from a plurality of recovery strategies, and the recovery strategy is transmitted as a parameter restoreky of the Configestore function;
a2: when the configuration recovery function is called, extracting obj from the data model, if the value of the restore tag field of obj is not 0, performing AND operation on the restore value of obj and the restore key, if the result is 1, performing recovery operation by taking obj as a unit, otherwise, not processing;
a3: and if the value of the restore tag column of obj is 0, performing AND operation on the restore value of param under obj and the restore key, and if the result is 1, performing recovery operation on the param, otherwise, not processing.
And S3, the home gateway performs configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery command and the recovery attribute.
Under different situations, recovery processing is carried out on each parameter through the processing mode represented by the corresponding recovery attribute, and the method is simpler and more efficient. When the traditional configuration management module recovers the parameters of the home gateway, different functions and processes are used for processing the parameters, the functions and the processes consume a large amount of computing resources, and meanwhile, when the recovery strategy is changed, bugs appear in codes and the parameters are newly added, developers need to confirm the functions and the codes one by one. The recovery mode is difficult to maintain, poor in expansibility and easy to omit. The invention can visually and efficiently confirm the processing mode of each parameter to be carried out only according to the selected recovery instruction directly by setting the modes of the recovery instruction, the recovery attribute and the object/parameter, thereby being capable of directly carrying out the configuration recovery of the home gateway according to the recovery mode corresponding to the recovery attribute, and being more convenient and efficient. Meanwhile, when the recovery mode is changed, the code has bug and the parameter is added, only the node or the label corresponding to the parameter needs to be modified or the node in the parameter model needs to be added or deleted, so that the maintenance is simple and the expansibility is good.
Based on the same inventive concept, the present application provides the second embodiment, which is as follows.
Referring to fig. 4, an embodiment of the present invention provides a home gateway configuration recovery system, which includes:
a modeling module for building a data model, the data model comprising at least one object, each object comprising at least one parameter;
the configuration module is used for setting recovery attributes for the objects and/or the parameters, and the recovery attributes comprise recovery conditions of data corresponding to the objects and/or the parameters;
and the recovery module is used for carrying out configuration recovery on the data meeting the recovery conditions according to the matching relation between the recovery instruction and the recovery attributes.
Various modifications and specific examples in the foregoing method embodiments are also applicable to the system of the present embodiment, and the detailed description of the method is clear to those skilled in the art, so that the detailed description is omitted here for the sake of brevity.
Further, the configuration module is further configured to: when the data model includes at least one object class, each object class including a plurality of parameter data;
if all data recovery conditions under one class object are the same, setting recovery attributes for the class object, wherein the recovery attributes of the class object are matched with the recovery conditions;
if all the data recovery conditions under one class object are different, the recovery attributes of the parameter data under the class object are set one by one.
Specifically, the recovery attribute is n binary digits, each bit represents whether a recovery mode is performed, and n is an integer greater than 0.
Preferably, the home gateway recovery system further includes a corresponding module, where the corresponding module is configured to set a recovery operation corresponding to the recovery attribute, and the recovery operation includes a long button press, a short button press, and a remote operation, and performs a corresponding recovery mode according to the recovery operation.
Preferably, the recovery module is configured to recover the data at:
when any recovery operation is carried out, the data with the recovery attribute of 0 is not recovered;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
Generally, according to the method and system for recovering home gateway configuration provided by the embodiment of the invention, by establishing the data model and setting the recovery attribute and the recovery instruction for the parameters and the objects correspondingly, the parameters can be automatically recovered one by one according to the selected home gateway configuration recovery instruction according to the set recovery mode, each parameter can be recovered one by one, meanwhile, only the corresponding home gateway configuration recovery instruction needs to be selected, the gateway configuration recovery mode is simplified, and the method and system are very convenient and fast.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A home gateway configuration recovery method is characterized by comprising the following steps:
establishing a data model, wherein the data model comprises at least one object, and each object comprises a plurality of parameters;
setting a recovery attribute for the object and/or the parameter, wherein the recovery attribute is n-bit binary digits, each digit represents whether a recovery mode is performed, n is an integer greater than 0, and the recovery attribute reflects the recovery condition of the data corresponding to the object and/or the parameter;
wherein the setting of the recovery attribute for the object and/or the parameter includes:
if all the parameter recovery conditions under one object are the same, setting a recovery attribute for the object, wherein the recovery attribute of the object is matched with the recovery conditions;
if all the parameter recovery conditions under one object are different, setting the recovery attributes of the parameters under the object one by one;
and the home gateway performs configuration recovery on the data meeting the recovery conditions in a recovery mode represented by the recovery attributes according to the matching relation between the recovery instruction and the recovery attributes.
2. The method of claim 1, wherein: the recovery mode comprises long button pressing, short button pressing and remote operation.
3. The method of claim 2, wherein the recovery attribute is a three-bit binary number of bits:
when any recovery operation is carried out, the data with the recovery attribute of 0 is not recovered;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
4. A home gateway configuration recovery system, comprising:
a modeling module for building a data model, the data model comprising at least one object, each object comprising a plurality of parameters;
a configuration module, configured to set a recovery attribute for the object and/or the parameter, where the recovery attribute is n-bit binary digits, each digit represents whether to perform a recovery mode, n is an integer greater than 0, and the recovery attribute reflects a recovery condition of data corresponding to the object and/or the parameter;
wherein the configuration module is specifically configured to:
if all the parameter recovery conditions under one object are the same, setting a recovery attribute for the object, wherein the recovery attribute of the object is matched with the recovery conditions;
if all the parameter recovery conditions under one object are different, setting the recovery attributes of the parameters under the object one by one;
and the recovery module is used for configuring and recovering the data meeting the recovery conditions in a recovery mode represented by the recovery attributes according to the matching relation between the recovery instruction and the recovery attributes.
5. The system of claim 4, wherein the recovery pattern comprises a long press of a button, a short press of a button, and a remote operation.
6. The system of claim 5, wherein the recovery module is to, at:
when any recovery operation is carried out, the recovery is not carried out;
when the recovery condition is that a preset button is pressed for a short time, recovering the data with the recovery attribute of 1;
when the recovery condition is that a preset button is pressed for a long time, recovering the data with the recovery attribute of 2;
when the recovery condition is that a preset button is pressed for a short/long time, recovering the data with the recovery attribute of 3;
when the recovery condition is remote recovery, recovering the data with the recovery attribute of 4;
when the recovery condition is that a preset button is pressed for a short time and the remote recovery is carried out, recovering the data with the recovery attribute of 5;
when the recovery condition is that a preset button is pressed for a long time and the remote recovery is carried out, recovering the data with the recovery attribute of 6;
the recovery condition is that when the configuration needs to be recovered under any recovery operation, the data with the recovery attribute of 7 is recovered.
CN201910572775.9A 2019-06-28 2019-06-28 Home gateway configuration recovery method and system Active CN110351132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910572775.9A CN110351132B (en) 2019-06-28 2019-06-28 Home gateway configuration recovery method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910572775.9A CN110351132B (en) 2019-06-28 2019-06-28 Home gateway configuration recovery method and system

Publications (2)

Publication Number Publication Date
CN110351132A CN110351132A (en) 2019-10-18
CN110351132B true CN110351132B (en) 2022-04-12

Family

ID=68176932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910572775.9A Active CN110351132B (en) 2019-06-28 2019-06-28 Home gateway configuration recovery method and system

Country Status (1)

Country Link
CN (1) CN110351132B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996849A (en) * 2006-12-22 2007-07-11 华为技术有限公司 Access device and reset method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159647B (en) * 2007-10-22 2010-06-23 中国电信股份有限公司 System and method of implementing gateway local parameter fast recovery
CN102487522B (en) * 2010-12-01 2015-07-08 华为终端有限公司 Management method and gateway device of terminal devices
CN104158692B (en) * 2014-08-25 2018-04-17 烽火通信科技股份有限公司 The method that home gateway data configuration management is realized based on XML
CN111953514A (en) * 2015-10-30 2020-11-17 华为技术有限公司 Gateway configuration method and gateway equipment
US10419311B2 (en) * 2016-10-18 2019-09-17 Citrix Systems, Inc. Template-based declarative and composable configuration of network functions
CN108984622B (en) * 2018-06-14 2020-06-16 烽火通信科技股份有限公司 Storage access method and system for quick access of configuration data by home gateway

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996849A (en) * 2006-12-22 2007-07-11 华为技术有限公司 Access device and reset method

Also Published As

Publication number Publication date
CN110351132A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110389900B (en) Distributed database cluster testing method and device and storage medium
CN106326219B (en) Method, device and system for checking business system data
CN100555958C (en) Collocation method in the Element management system
CN100479575C (en) Method and apparatus for realizing scheduled operation in equipment management
CN108052674A (en) Quick Response Code uses processing method, device, system and readable storage medium storing program for executing
CN102880398A (en) Mobile phone unlocking method based on random digital arrays and mobile phone
CN103748569A (en) System and methods for driverless operation of USB device
CN105095044A (en) SNMP based server monitoring method and apparatus
CN110515762A (en) Data reconstruction method, device, terminal device and storage medium
CN111444052A (en) Production testing method, system and device thereof
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN110351132B (en) Home gateway configuration recovery method and system
CN113438713A (en) Network distribution method and device and intelligent home system
CN112735112A (en) Infrared code learning method, device, system, equipment and medium
CN111614702B (en) Edge calculation method and edge calculation system
CN116011026B (en) Database configuration security rapid verification method, system, equipment and storage medium
CN116088969B (en) Method and system for automatically collecting configuration item data and reconciling data
CN107529180B (en) Base station cloud test environment construction device and method
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN106372857A (en) Method and system for automatically establishing project
CN110389751B (en) Data interface mock method applied to knowledge graph
CN100356350C (en) Device and method for safety operation of state converter for computer equipment
CN105187244A (en) Access management system of digital communication equipment supporting multiple management modes
CN109150941B (en) Data center physical resource floating method
CN104363208A (en) Computer intercluster key management method and system

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