CN106534364A - Method for restoring factory settings of gateway and gateway - Google Patents
Method for restoring factory settings of gateway and gateway Download PDFInfo
- Publication number
- CN106534364A CN106534364A CN201611162391.2A CN201611162391A CN106534364A CN 106534364 A CN106534364 A CN 106534364A CN 201611162391 A CN201611162391 A CN 201611162391A CN 106534364 A CN106534364 A CN 106534364A
- Authority
- CN
- China
- Prior art keywords
- gateway
- information
- devices
- factory
- module
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
Abstract
The invention provides a method for restoring the factory settings of a gateway and the gateway, and relates to the technical field of communication. After the gateway restores the factory settings, no connection operation of a device and the gateway needs to be performed again, and the device can be normally used. The method for restoring the factory settings of the gateway comprises the following steps: the gateway respectively restores the factory settings of routing and restores the factory settings of device management after receiving a signal of restoring the factory settings; the restoring the factory settings of device management comprises: sending the information of all devices connected with the gateway and the information of the gateway to a cloud background, performing hang-up management, and disconnecting the gateway and the soft kernels of manufacturers of the devices; obtaining SSID and a password, if the gateway is connected with an extranet, downloading the information of all devices connected with the gateway and the information of the gateway from the cloud background, and replacing the information of the current gateway with the information of the gateway downloaded from the cloud background, so that the information of all devices in the current gateway is completely consistent with the downloaded information of all devices; and otherwise, connecting the gateway with the soft kernels of the manufacturers of the devices through a local area network.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and gateway of gateway factory reset.
Background technology
With the development of network technology and modern communication technology, gateway is used as a kind of computer system for serving as conversion important task
Or equipment, both can be used for wide area network interconnection, it is also possible to for local area network interconnection, be widely used in security protection, intelligent family
In equipment.
At present, gateway factory reset operation is carried out frequently with three kinds of modes:The first is by internet (web) page
Face is pointed out, and clicks on " restarting (reboot) " button, gateway restart after just factory reset;Second is with thinner article
Press " resetting (reset, abbreviation RST) " button of gateway, light emitting diode (Light Emitting Diode, the letter of gateway
Claiming LED) lantern festival flashes always, and recovery is dispatched from the factory and is restarted automatically;The third is in the analog station of access gateway, into simulation
The interactive voice answering (Interactive Voice Response, abbreviation IVR) of phone, is recovered according to voice message
Default Value, and password is input, after password authentification is correct, gateway factory reset, but can just come into force after need to restarting manually.
However, gateway factory reset operation is carried out using above-mentioned three kinds of modes, can make the existing system configuration of gateway
Zero, if there is equipment to be connected with gateway before factory reset, after gateway factory reset, equipment is in discrete state, needs
Want user to re-start the operation that equipment is connected with gateway, could normally use equipment, and carry out the behaviour that equipment is connected with gateway
Make extremely complex.After re-establishing connection, during factory reset, gateway departs from network, is likely to result in and gateway
The information of all devices of the information of all devices of connection and the storage of cloud backstage is asynchronous, and then causes the whole system cannot be just
Often work.
The content of the invention
Embodiments of the invention provide a kind of method and gateway of gateway factory reset, and gateway can be made to recover to dispatch from the factory to set
Postpone, user need not re-start the operation that equipment is connected with gateway, you can normally using equipment.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
On the one hand, there is provided a kind of method of gateway factory reset, including:Gateway receives factory reset signal
Afterwards, carry out respectively route recovery dispatch from the factory with equipment control recover dispatch from the factory.
Wherein, carry out equipment control to recover to dispatch from the factory, including:By the information and gateway of all devices being connected with the gateway
Information send to cloud backstage, and carry out hang-up management, while the gateway is disconnected with the soft core of the affiliated manufacturer of the equipment connecting
Connect;SSID and password are obtained, and judges whether gateway is connected with outer net, if connection, the gateway is downloaded from the cloud backstage
The information of the information of all devices and the gateway, the information of the gateway in presently described gateway is replaced with from institute
State the information of the gateway of cloud backstage download, and make the information of all devices in presently described gateway with from the cloud
The information of all devices that backstage is downloaded is completely the same, and equipment control recovers to dispatch from the factory to complete;Otherwise, the gateway passes through office
Domain net is connected with the soft core of the affiliated manufacturer of equipment, is completed equipment control and is recovered to dispatch from the factory.
Preferably, the information of all devices in presently described gateway and the institute downloaded from the cloud backstage are made
There is the information of equipment completely the same, including:By the information of all devices downloaded from the cloud backstage, with presently described net
The information of all devices in the Central Shanxi Plain is contrasted, if the information of all devices in the gateway is more than from the cloud
The information of all devices that backstage is downloaded, the then facility information having more in deleting the gateway;If under the cloud backstage
Information of the information of all devices for carrying more than all devices in the gateway, then the cloud backstage deletion have more
Facility information.
Preferably, the information of all devices includes:Equipment chained list, scene chained list, database in the gateway, with
And the facility information of configuration file memory storage.
Preferably, the gateway downloads the information of the information and the gateway of all devices, bag from the cloud backstage
Include:The gateway downloads the information of the information and the gateway of all devices from the cloud backstage, judges whether under whole
Load is completed, if it is not, then continue to download, until the information of the information and the gateway of all devices is all downloaded.
Preferably, the gateway is connected with the soft core of the affiliated manufacturer of the equipment by LAN, including:The gateway leads to
Connection of the LAN with the soft core foundation of the affiliated manufacturer of the equipment based on socket is crossed, so that the gateway and the equipment institute
The soft core connection of category manufacturer.
Preferably, after the completion of the gateway recovers to dispatch from the factory, methods described also includes:By the gateway factory reset
The signal for completing is sent to the cloud backstage, and the gateway is recovered to dispatch from the factory to set by the cloud backstage by standard network communication interface
Put the signal for completing to send to APP, so that the APP switches to the page after completing factory reset.
On the other hand, there is provided a kind of gateway, including:Main control module, scene protection module, data management module, communication mould
Block, equipment processing module.
The main control module, for receiving factory reset signal, carries out route recovery and dispatches from the factory, while by the recovery
Default Value signal is sent to the scene protection module;In the scene protection module by the information and gateway of the equipment
While information carries out hanging up management, control gateway is disconnected with the soft core of the affiliated manufacturer of equipment;SSID and password are obtained, is sentenced
Whether the gateway that breaks is connected with outer net, is if so, set up with cloud backstage by the communication module and is communicated, under the cloud backstage
The information and the information of the gateway of all devices that load is connected with the gateway, and it is stored in the interior of the gateway system
In depositing;The gateway is connected unsuccessful information otherwise to send to the equipment processing module with outer net.
The scene protection module, for, after the factory reset signal is received, the recovery being dispatched from the factory and being set
Confidence number is sent to the data management module;In the information for receiving all devices that the data management module sends
And after the information that is all sent completely of the information of the gateway, the information of the information of all devices and the gateway is carried out
Hang up management.
The data management module, for receiving the factory reset letter that the scene protection module sends
After number, the information of the information and the gateway of all devices is stored, by the information of all devices and the information of the gateway
Sent to cloud backstage by the communication module, and notify the information and the net of all devices described in the scene protection module
The information of pass is all sent completely;From the internal memory of the gateway system, all devices that acquisition is downloaded from cloud backstage
The information of the gateway in presently described gateway is replaced with from the cloud backstage what is downloaded by the information of information and the gateway
The information of the gateway, and the information of all devices of itself storage described all is set with what is downloaded from the cloud backstage
Standby information is completely the same;The information for completing that equipment control recovery is dispatched from the factory is sent to the main control module.
The equipment processing module, for can not be connected with outer net in the gateway for receiving the main control module transmission
After the information of work(, the gateway is made to be connected with the soft core of the affiliated manufacturer of equipment by LAN;Equipment control is recovered to have dispatched from the factory
Into information send to the main control module.
Preferably, the data management module, for make itself storage all devices information with from the cloud
The information of all devices that backstage is downloaded is completely the same, including:The data management module, for will be from the cloud backstage
The information of all devices downloaded, is contrasted with the information of all devices of itself storage, if itself storage
Information of the information of all devices more than all devices downloaded from the cloud backstage, then control the equipment and process
Module deletes the facility information having more of itself storage;If the information of all devices downloaded from the cloud backstage is more than certainly
The information of all devices of body storage, then send information that facility information delete to cloud backstage by the communication module,
So that the facility information having more is deleted on the cloud backstage;Wherein, the equipment processing module is additionally operable in the data management mould
Under the control of block, facility information is deleted.
Preferably, the gateway also includes signal acquisition module and signal forwarding module;The signal acquisition module, is used for
After the factory reset signal is triggered, the factory reset signal is gathered, digital letter is converted electrical signals to
Number, and the factory reset signal of data signal is sent to the signal forwarding module;The signal forwarding module,
For the factory reset signal is sent to the main control module.
Preferably, the gateway also includes equipment and scene synchronization module, for judging the main control module from the cloud
Whether the information of the information and the gateway of all devices that backstage is downloaded all is downloaded completes, if it is not, then notifying described
Main control module continues the information of the information and the gateway for downloading all devices;Control the gateway to continue to download, until
The information of the information of all devices and the gateway is all downloaded.
Preferably, the main control module, is additionally operable to the signal for completing the gateway factory reset by described logical
Letter module is sent to the cloud backstage, so that the gateway is recovered to dispatch from the factory to set by the cloud backstage by standard network communication interface
Put the signal for completing to send to APP, so that the APP switches to the page after completing factory reset.
The embodiment of the present invention provides a kind of method and gateway of gateway factory reset, by recovering to dispatch from the factory to set gateway
Put be divided into route recovery dispatch from the factory with equipment control recover dispatch from the factory, the two can be made to be independent of each other, independently carry out factory reset.Its
In, carry out equipment control recover dispatch from the factory during, by the information of the information and gateway of all devices being connected with gateway send out
Cloud backstage is delivered to, and carries out hang-up management, while gateway is disconnected with the soft core of the affiliated manufacturer of equipment, so as to hang up management behaviour
After work terminates, it is impossible to which all devices to being connected with gateway are conducted interviews and changed, and on this basis, can make gateway by outer net
The information of all devices is downloaded from cloud backstage, during download, the soft core of default gateway and the affiliated manufacturer of equipment is built again
Vertical connection, recovers the function that the equipment to being connected with gateway is conducted interviews and changed, and ensures all devices in current gateway
Information it is completely the same with the information of all devices downloaded from cloud backstage, realize gateway factory reset;Or can pass through
LAN makes gateway re-establish with the soft core of the affiliated manufacturer of equipment to be connected, recover the equipment to being connected with gateway conduct interviews and
The function of modification, realizes gateway factory reset.Based on this, user need not re-start the operation that equipment is connected with gateway,
Just equipment can be normally used, is additionally, since during equipment control recovers to dispatch from the factory, the letter of all devices being connected with gateway
The synchronizing information of all devices of breath and the storage of cloud backstage, it is ensured that the normal work of whole system.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for gateway factory reset provided in an embodiment of the present invention;
Fig. 2 is provided in an embodiment of the present invention a kind of to carry out equipment control and recover the schematic diagram that dispatches from the factory;
Fig. 3 points out page schematic diagram for a kind of APP provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram one of gateway provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram two of gateway provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram three of gateway provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram four of gateway provided in an embodiment of the present invention.
Reference:
10- gateways;11- main control modules;12- scene protection modules;13- data management modules;14- communication modules;15- sets
Module to be processed;16- signal acquisition modules;17- signal forwarding modules;18- equipment and scene synchronization module;20- clouds backstage;
30-APP。
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of gateway factory reset, including:Gateway receives recovery and dispatches from the factory and sets
After confidence number, carry out respectively route recovery dispatch from the factory with equipment control recover dispatch from the factory.
It should be noted that first, the mode of triggering gateway factory reset is not defined, as long as gateway can be made
The signal of factory reset is triggered.
Second, the recovery of gateway is dispatched from the factory be divided into route recovery dispatch from the factory with equipment control recover dispatch from the factory, wherein, gateway receive
To after factory reset signal, route can be recovered to dispatch from the factory.
Wherein, carry out equipment control to recover to dispatch from the factory, as shown in figure 1, comprising the steps:
S10, the information of the information and gateway of all devices being connected with gateway is sent to cloud backstage, and carry out hang-up pipe
Reason, while gateway is disconnected with the soft core of the affiliated manufacturer of equipment.
Herein, the information of the information and gateway of all devices being connected with gateway is sent to before cloud backstage, gateway
Application program needs the signal first to receiving to parse, and after parsing, gateway proceeds by equipment control and recovers to dispatch from the factory.
It should be noted that the information of the information and gateway of all devices being connected with gateway is carried out into hang-up management,
Before hang-up management operation terminates, it is impossible to which all devices and gateway to being connected with gateway are conducted interviews and changed.Due to hanging
While playing management, gateway is disconnected with the soft core of the affiliated manufacturer of equipment, therefore, after hang-up management operation terminates, still can not
All devices to being connected with gateway are conducted interviews and are changed.
Wherein, carry out equipment control to recover to dispatch from the factory to be made up of series of steps, it is one of step to hang up management,
Hanging up after management operation terminates can just carry out next step, and whole hang-up manages operating process deficiency of time 1 second, therefore will not be right
Carry out other steps generation impacts that equipment control recovers to dispatch from the factory.
S20, acquisition SSID (Service Set Identifier, abbreviation service set) and password, and judge gateway
Whether it is connected with outer net, if connection, performs S30;Otherwise, perform S40.
It should be noted that first, after route recovery dispatches from the factory, the SSID and/or password that user may be artificially to routeing enters
Row modification, therefore, first obtain SSID and password, accordingly even when artificially modification SSID and/or password, do not interfere with yet gateway with it is outer
The connection of net.
Second, it will be appreciated by those skilled in the art that, during gateway connection outer net, if with the presence of attachable outer net,
Gateway is normally attached with outer net;Otherwise, after more than the default time, gateway and outer net connection failure.
S30, gateway download the information of the information and gateway of all devices from cloud backstage, by the gateway in current gateway
Information replace with from cloud backstage the information of the gateway downloaded, and make the information of all devices in current gateway with from cloud backstage
The information of all devices of download is completely the same, and equipment control recovers to dispatch from the factory to complete.
It should be noted that first, gateway can be conducted interviews and be changed after management terminates due to hanging up, and hang up and manage
After reason operation terminates, before the information that gateway downloads gateway from cloud backstage, gateway still needs to carry out a series of recovery shipping operations,
During this, the information of gateway it may happen that change, therefore, after the completion of ensureing gateway factory reset, in gateway
The gateway information and cloud backstage in the synchronizing information of gateway that stores, the information of the gateway in current gateway is replaced
The information of the gateway downloaded is changed to from cloud backstage.
Second, gateway from cloud backstage download all devices information and gateway information during, default gateway with set
The soft core of standby affiliated manufacturer re-establishes connection, recovers the function that the equipment to being connected with gateway is conducted interviews and changed, if this
When the equipment that is connected with gateway of user couple operate, then the information of all devices in gateway can be made to change, therefore, should
Make the information of all devices in current gateway completely the same with the information of all devices downloaded from cloud backstage.
S40, gateway are connected with the soft core of the affiliated manufacturer of equipment by LAN, are completed equipment control and are recovered to dispatch from the factory.
It should be noted that gateway is conducted interviews and is changed by hanging up after management terminates, and after hang-up management terminates,
Before gateway is attached by the soft core of LAN and the affiliated manufacturer of equipment, gateway still needs to carry out a series of recoveries and dispatches from the factory behaviour
Make, in the process, the information of the gateway in gateway it may happen that change, therefore, gateway passes through LAN and equipment
When the soft core of affiliated manufacturer is attached, the information of the gateway in gateway is a series of gateway after recovery shipping operations
Information, may be asynchronous with the information of gateway that stores in cloud backstage, but the operation after gateway factory reset to equipment, no
The information of the gateway stored in the information of the gateway in by gateway and cloud backstage is nonsynchronous to be affected.
The embodiment of the present invention provides a kind of method of gateway factory reset, by gateway factory reset is divided into
Route recovery dispatches from the factory and recover to dispatch from the factory with equipment control, and the two can be made to be independent of each other, factory reset is independently carried out.Wherein, exist
Carry out equipment control recover dispatch from the factory during, the information of the information and gateway of all devices being connected with gateway is sent to cloud
Backstage, and hang-up management is carried out, while gateway is disconnected with the soft core of the affiliated manufacturer of equipment, so as to hang up management operation terminate
Afterwards, it is impossible to which all devices to being connected with gateway are conducted interviews and changed, on this basis, gateway can be made from after cloud by outer net
Platform downloads the information of all devices, and during download, default gateway is re-established with the soft core of the affiliated manufacturer of equipment and is connected,
Recover the function that the equipment that is connected with gateway is conducted interviews and change, and ensure all devices in current gateway information and
The information of all devices downloaded from cloud backstage is completely the same, realizes gateway factory reset;Or can be made by LAN
Gateway is re-established with the soft core of the affiliated manufacturer of equipment and is connected, and recovers the work(that the equipment to being connected with gateway is conducted interviews and changed
Can, realize gateway factory reset.Based on this, user need not re-start the operation that equipment is connected with gateway, just can be normal
Using equipment, it is additionally, since during equipment control recovers to dispatch from the factory, after the information and cloud of all devices being connected with gateway
The synchronizing information of all devices of platform storage, it is ensured that the normal work of whole system.
Preferably, the information of all devices in presently described gateway and the information of all devices downloaded from cloud backstage are made
It is completely the same, including:The information of all devices in the information of all devices downloaded from cloud backstage, with current gateway is carried out
Contrast, it is if the information of all devices in gateway is more than the information of all devices downloaded from cloud backstage, many in deletion gateway
The facility information for going out;If the information of all devices downloaded from cloud backstage is more than the information of all devices in gateway, after cloud
Platform deletes the facility information having more.
In the embodiment of the present invention, when gateway is connected with outer net, gateway downloads the information and net of all devices from cloud backstage
During the information of pass, default gateway is re-established with the soft core of the affiliated manufacturer of equipment and is connected, and is recovered to being connected with gateway
The function that equipment conducts interviews and changes, therefore, the information of all devices in gateway with from cloud backstage download all devices
Information may be completely the same, it is also possible to not quite identical, in order to ensure after gateway factory reset, user is without the need for enter again
The operation that row equipment is connected with gateway, you can normally using equipment, to the information of all devices downloaded from cloud backstage with it is current
The information of all devices in gateway is contrasted, and the facility information having more in deleting gateway, or cloud backstage is deleted and had more
Facility information, the synchronizing information of all devices stored with the information of all devices that ensures to be connected with gateway and cloud backstage.
Preferably, the information of all devices includes:Equipment chained list, scene chained list, database and configuration text in gateway
The facility information of part memory storage.
Wherein, equipment chained list is for conspiring to create chained list by all devices being connected with gateway, and which is stored.
Scene chained list is used for the state of equipment under storage device conditions present.
Example, if all devices being connected with gateway include curtain, current curtain closure is then stored in scene chained list
Close for curtain with regard to the state of curtain.
Database is used for all setting of the operation history and gateway connection for storing all devices that user couple is connected with gateway
Standby attribute and parameter etc..
Configuration file is used for the correspondence with foreign country path of all devices that storage is connected with gateway, goes out manufacturer's information, business body
Part identification number (Identity, abbreviation ID).
In the embodiment of the present invention, by by the equipment chained list in gateway, scene chained list, database and configuration file
The facility information of storage is all sent to cloud backstage, and carries out hang-up management, to ensure the information of all devices being connected with gateway
With the synchronizing information of all devices of cloud backstage storage.
Preferably, gateway downloads the information of the information and gateway of all devices from cloud backstage, including:Gateway is under cloud backstage
The information of the information and gateway of all devices is carried, judges whether that all download is completed, if it is not, then continuing to download, set until all
The information of standby information and gateway is all downloaded.
In the embodiment of the present invention, in order to avoid gateway from cloud backstage download all devices information and gateway information it is not complete
Entirely, gateway carries out real-time judge to its download progress, if do not download completing, continues to download, until the information of all devices
And the information of gateway is all downloaded.
Preferably, gateway is connected with the soft core of the affiliated manufacturer of equipment by LAN, including:Gateway passes through LAN and sets
The soft core of standby affiliated manufacturer sets up the connection based on socket (socket), so that gateway is connected with the soft core of the affiliated manufacturer of equipment
Connect.
It should be noted that it will be appreciated by those skilled in the art that, two programs pass through a two-way communication connection
The exchange of data is realized, one end of this connection is a socket, and socket provides the ability of communication.
In the embodiment of the present invention, by gateway being made under conditions of LAN, set up base with the soft core of the affiliated manufacturer of equipment
In the connection of socket, the ability of communication is provided to the soft core of gateway and the affiliated manufacturer of equipment.
Preferably, as shown in Fig. 2 after the completion of gateway 10 recovers to dispatch from the factory, methods described also includes:Gateway 10 is recovered
The signal that factory is provided with is sent to cloud backstage 20, and gateway 10 is recovered to dispatch from the factory to set by cloud backstage 20 by standard network communication interface
Put the signal for completing to send to application program (Application, abbreviation APP) 30, so that APP30 is switched to and completed recovery and dispatch from the factory
The page (as shown in Figure 3) after setting.
It should be noted that first, if the gateway 10 has display screen and exercisable button etc., APP30 can pacify
It is mounted in the gateway 10.Can also be arranged in electronic product, such as mobile phone, computer, panel computer etc..
Second, standard network communication interface can be message queue remote measurement transmission (Message Queuing Telemetry
Transport, abbreviation MQTT), or the socket connections based on TCP/IP or udp protocol.
In the embodiment of the present invention, after 10 factory reset of gateway, the signal that factory reset is completed by gateway 10
Send to cloud backstage 20, the signal that 10 factory reset of gateway is completed by cloud backstage 20 again by standard network communication interface is sent out
APP30 is delivered to, makes APP30 switch to the page after completing factory reset, so that user knows that gateway 10 recovers to dispatch from the factory
It is provided with.
Additionally, user can also be operated by the APP30 pair of all devices being connected with gateway 10.
The embodiment of the present invention provides a kind of gateway 10, as shown in figure 4, including:Main control module 11, scene protection module 12,
Data management module 13, communication module 14, equipment processing module 15.
Main control module 11, for receiving factory reset signal, carries out route recovery and dispatches from the factory, while will recover to dispatch from the factory to set
Confidence number is sent to scene protection module 12;The information of the information and gateway of all devices is hung by protection module 12 at the scene
While playing management, control gateway 10 is disconnected with the soft core of the affiliated manufacturer of equipment;SSID and password are obtained, gateway 10 is judged
Whether it is connected with outer net, is if so, set up with cloud backstage 20 by communication module 14 and communicated, downloaded from cloud backstage 20 and connect with gateway 10
The information of the information and gateway of all devices for connecing, and be stored in the internal memory of 10 system of gateway;Otherwise by gateway 10 and outer net
Connect unsuccessful information to send to equipment processing module 15.
Scene protection module 12, for, after factory reset signal is received, factory reset signal being sent
To data management module 13;All send out in the information of the information and gateway of all devices for receiving the transmission of data management module 13
After sending the information for completing, the information of the information and gateway of all devices is carried out into hang-up management.
Data management module 13, for, after the factory reset signal for receiving the transmission of scene protection module 12, depositing
Storage all devices information and gateway information, by the information of the information and gateway of all devices by communication module 14 send to
Cloud backstage 20, and notify that the information of the information and gateway of 12 all devices of scene protection module is all sent completely;From gateway 10
The information and the information of gateway of all devices downloaded in the internal memory of system, are obtained from cloud backstage 20, by current gateway 10
The information of gateway replaces with from cloud backstage 20 information of the gateway downloaded, and makes the information of all devices of itself storage and from cloud
The information of all devices that backstage 20 is downloaded is completely the same;The information for completing that equipment control recovery is dispatched from the factory is sent to main control module
11。
Equipment processing module 15, for being connected unsuccessful letter with outer net in the gateway 10 for receiving the transmission of main control module 11
After breath, gateway 10 is made to be connected with the soft core of the affiliated manufacturer of equipment by LAN;Equipment control is recovered into the information that completes of dispatching from the factory
Send to main control module 11.
Herein, the gateway 10 also includes application program, after main control module 11 receives factory reset signal, master control
Factory reset signal is sent to the application program of gateway 10 by module 11, and the application program of gateway 10 is needed first to receiving
Signal is parsed, and the factory reset signal after parsing is sent to scene protection module 12.
The embodiment of the present invention provides a kind of gateway 10, by gateway 10 is divided into route and equipment control based on function,
When factory reset being carried out to gateway 10, be divided into route recovery and dispatch from the factory and recover to dispatch from the factory with equipment control, can make the two mutually not
Affect, independently carry out factory reset.Wherein, carry out equipment control recover dispatch from the factory during, will be connected with gateway 10
The information of all devices and the information of gateway sent to cloud backstage 20 by communication module 14, and entered by scene protection module 12
Row hangs up management, while gateway 10 is disconnected with the soft core of the affiliated manufacturer of equipment, so that after hang-up management operation terminates, it is impossible to
All devices to being connected with gateway 10 carry out any access and modification, on this basis, can make main control module 11 by outer net
The information of all devices is downloaded from cloud backstage 20, during download, the soft core weight of default gateway 10 and the affiliated manufacturer of equipment
It is new to set up connection, recover the function that the equipment to being connected with gateway 10 is conducted interviews and changed, and in ensureing current gateway 10
The information of all devices is completely the same with the information of all devices downloaded from cloud backstage 20, realizes that gateway 10 recovers to dispatch from the factory to set
Put;Or make gateway 10 re-establish with the soft core of the affiliated manufacturer of equipment by LAN to be connected, recover to being connected with gateway 10
The equipment function that conducts interviews and change, realize 10 factory reset of gateway.Based on this, user need not re-start equipment
The operation being connected with gateway 10, you can normally using equipment, is additionally, since during equipment control recovers to dispatch from the factory, with net
Close the synchronizing information of the information of all devices of 10 connections and all devices of the storage of cloud backstage 20, it is ensured that whole system is just
Often work.
Preferably, as shown in figure 5, data management module 13, for make the information of all devices of itself storage with from cloud
The information of all devices that backstage 20 is downloaded is completely the same, including:Data management module 13, for will download from cloud backstage 20
The information of all devices, is contrasted with the information of all devices of itself storage, if the information of all devices of itself storage
More than the information of all devices downloaded from cloud backstage 20, then control device processing module 15 delete itself storage have more set
Standby information;If the information of all devices downloaded from cloud backstage 20 is more than the information of all devices of itself storage, by logical
Letter module 14 sends the information that facility information is deleted to cloud backstage 20, so that the facility information having more is deleted on cloud backstage 20;Wherein,
Equipment processing module 15 is additionally operable under the control of data management module 13, and facility information is deleted.
In the embodiment of the present invention, when gateway 10 is connected with outer net, main control module 11 downloads all devices from cloud backstage 20
Information and gateway information during, default gateway 10 is re-established with the soft core of the affiliated manufacturer of equipment and is connected, recover it is right
The function that the equipment being connected with gateway 10 is conducted interviews and changed, therefore, the information of all devices in gateway 10 with from after cloud
The information of all devices that platform 20 is downloaded may be completely the same, it is also possible to not quite identical, in order to ensure that gateway 10 recovers to dispatch from the factory
After setting, user need not re-start the operation that equipment is connected with gateway 10, you can normally using equipment, under cloud backstage 20
The information of all devices in the information of all devices of load and current gateway 10 is contrasted, and have more in deleting gateway 10
Facility information, or cloud backstage 20 deletes the facility information that has more, with ensure all devices being connected with gateway 10 information and
The synchronizing information of all devices of the storage of cloud backstage 20.
Preferably, as shown in fig. 6, the gateway 10 also includes signal acquisition module 16 and signal forwarding module 17;Signal
Acquisition module 16, for, after factory reset signal is triggered, gathering factory reset signal, converting electrical signals to
Data signal, and the factory reset signal of data signal is sent to signal forwarding module 17;Signal forwarding module 17, uses
In factory reset signal is sent to main control module 11.
It should be noted that telecommunications of the signal of user's triggering 10 factory reset of gateway for 10 None- identified of gateway
Number, i.e. analog signal is changed by modulus (Analog-to-Digital, abbreviation AD), and converting analog signals into gateway 10 can
With the data signal for recognizing.
In the embodiment of the present invention, the electric signal of 10 None- identified of gateway is converted to by gateway 10 by signal acquisition module 16
The data signal that can be recognized, and factory reset signal is sent to main control module 11 by signal forwarding module 17, with
Guarantee carry out route recovery dispatch from the factory with equipment control recover dispatch from the factory.
Preferably, as shown in fig. 7, the gateway 10 also includes equipment and scene synchronization module 18, for judging master control mould
Whether the information of the information and gateway of all devices that block 11 is downloaded from cloud backstage 20 is all downloaded completes, if it is not, then notifying master
Control module 11 continues the information of the information and gateway for downloading all devices;Control gateway 10 continues to download, until all devices
The information of information and gateway is all downloaded.
In the embodiment of the present invention, in order to avoid main control module 11 downloads the information and gateway of all devices from cloud backstage 20
INFORMATION OF INCOMPLETE, therefore real-time judge is carried out to the download progress of main control module 11 by equipment and scene synchronization module 18, if
11 no download of main control module is completed, then with scene synchronization module 18, equipment notifies that main control module 11 continues to download, until all
The information of the information and gateway of equipment is all downloaded.
Preferably, main control module 11, the signal for being additionally operable to complete 10 factory reset of gateway pass through communication module 14
Send to cloud backstage 20, so that the signal that 10 factory reset of gateway is completed by cloud backstage 20 by standard network communication interface
Send to APP30, so that APP30 switches to the page after completing factory reset.
In the embodiment of the present invention, after 10 factory reset of gateway, main control module 11 will be recovered by communication module 14
The signal that Default Value is completed is sent to cloud backstage 20, and gateway 10 is recovered by cloud backstage 20 again by standard network communication interface
The signal that factory is provided with is sent to APP30, makes APP30 switch to the page after completing factory reset, so that user
Know that 10 factory reset of gateway is completed.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.
Claims (11)
1. a kind of method of gateway factory reset, it is characterised in that include:
After gateway receives factory reset signal, carry out respectively route recovery dispatch from the factory with equipment control recover dispatch from the factory;
Wherein, carry out equipment control to recover to dispatch from the factory, including:
The information of the information and gateway of all devices being connected with the gateway is sent to cloud backstage, and carries out hang-up management,
The gateway is disconnected with the soft core of the affiliated manufacturer of the equipment simultaneously;
SSID and password are obtained, and judges whether gateway is connected with outer net, if connection, the gateway is downloaded from the cloud backstage
The information of the information of all devices and the gateway, the information of the gateway in presently described gateway is replaced with from institute
State the information of the gateway of cloud backstage download, and make the information of all devices in presently described gateway with from the cloud
The information of all devices that backstage is downloaded is completely the same, and equipment control recovers to dispatch from the factory to complete;Otherwise, the gateway passes through office
Domain net is connected with the soft core of the affiliated manufacturer of equipment, is completed equipment control and is recovered to dispatch from the factory.
2. method according to claim 1, it is characterised in that make the information of all devices in presently described gateway
It is completely the same with the information of all devices downloaded from the cloud backstage, including:
By the letter of all devices in the information of all devices downloaded from the cloud backstage, with presently described gateway
Breath is contrasted, if the information of all devices in the gateway is more than all devices downloaded from the cloud backstage
Information, then the facility information having more in deleting the gateway;If the information of all devices downloaded from the cloud backstage
The information of all devices in more than the gateway, the then facility information that the cloud backstage deletion has more.
3. method according to claim 1, it is characterised in that the information of all devices includes:
The facility information of equipment chained list, scene chained list, database and configuration file memory storage in the gateway.
4. method according to claim 1, it is characterised in that the gateway downloads all devices from the cloud backstage
Information and the gateway information, including:
The gateway downloads the information of the information and the gateway of all devices from the cloud backstage, judges whether under whole
Load is completed, if it is not, then continue to download, until the information of the information and the gateway of all devices is all downloaded.
5. method according to claim 1, it is characterised in that the gateway passes through LAN and the affiliated manufacturer of the equipment
The connection of soft core, including:
The gateway passes through connection of the LAN with the soft core foundation of the affiliated manufacturer of the equipment based on socket, so that the net
Pass is connected with the soft core of the affiliated manufacturer of the equipment.
6. method according to claim 1, it is characterised in that after the completion of the gateway recovers to dispatch from the factory, methods described is also
Including:The signal that the gateway factory reset is completed is sent to the cloud backstage, the cloud backstage passes through standard network
Communication interface sends the signal that the gateway factory reset is completed to APP, so as to the APP is switched to complete to recover
The page after factory's setting.
7. a kind of gateway, it is characterised in that include:Main control module, scene protection module, data management module, communication module, set
Module to be processed;
The main control module, for receiving factory reset signal, carries out route recovery and dispatches from the factory, while the recovery is dispatched from the factory
Arrange signal to send to the scene protection module;The information of the information and gateway of equipment is carried out in the scene protection module
While hanging up management, control gateway is disconnected with the soft core of the affiliated manufacturer of equipment;SSID and password are obtained, the net is judged
Whether pass be connected with outer net, is if so, communicated by the foundation of the communication module and cloud backstage, from cloud backstage download with it is described
The information and the information of the gateway of all devices of gateway connection, and be stored in the internal memory of the gateway system;It is no
The gateway is connected unsuccessful information then to send to the equipment processing module with outer net;
The scene protection module, for, after the factory reset signal is received, the factory reset being believed
Number send to the data management module;In the information and institute that receive all devices that the data management module sends
After stating the information that the information of gateway is all sent completely, the information of the information of all devices and the gateway is hung up
Management;
The data management module, for receiving the factory reset signal that the scene protection module sends
Afterwards, the information of the information and the gateway of all devices is stored, the information of the information of all devices and the gateway is led to
Cross the communication module to send to cloud backstage, and notify the information and the gateway of all devices described in the scene protection module
Information be all sent completely;The letter of all devices downloaded from the internal memory of the gateway system, is obtained from cloud backstage
The information of breath and the gateway, the information of the gateway in presently described gateway is replaced with from the cloud backstage institute for downloading
The information of gateway is stated, and makes the information and all devices downloaded from the cloud backstage of all devices of itself storage
Information it is completely the same;The information for completing that equipment control recovery is dispatched from the factory is sent to the main control module;
The equipment processing module, for being connected unsuccessful with outer net in the gateway for receiving the main control module transmission
After information, the gateway is made to be connected with the soft core of the affiliated manufacturer of equipment by LAN;Equipment control is recovered to dispatch from the factory what is completed
Information is sent to the main control module.
8. gateway according to claim 7, it is characterised in that the data management module, for the institute for storing itself
The information for stating all devices is completely the same with the information of all devices downloaded from the cloud backstage, including:
The data management module, the information of all devices for will download from the cloud backstage, with itself storage
The information of all devices is contrasted, if the information of all devices of itself storage is more than from cloud backstage download
The all devices information, then control the equipment processing module delete itself storage the facility information having more;If from
Information of the information of all devices that the cloud backstage is downloaded more than all devices of itself storage, then by described
Communication module sends the information that facility information is deleted to cloud backstage, so that the facility information having more is deleted on the cloud backstage;
Wherein, the equipment processing module is additionally operable under the control of the data management module, and facility information is deleted.
9. gateway according to claim 7, it is characterised in that also including signal acquisition module and signal forwarding module;
The signal acquisition module, for, after the factory reset signal is triggered, gathering the factory reset
Signal, converts electrical signals to data signal, and the factory reset signal of data signal is sent to the signal
Forwarding module;
The signal forwarding module, for the factory reset signal is sent to the main control module.
10. gateway according to claim 7, it is characterised in that also including equipment and scene synchronization module, for judging
Whether the information for stating the information and the gateway of all devices that main control module is downloaded from the cloud backstage has all been downloaded
Into if it is not, then notifying that the main control module continues the information of the information and the gateway of the download all devices;
Control the gateway to continue to download, until the information of the information and the gateway of all devices is all downloaded.
11. gateways according to claim 7, it is characterised in that the main control module, are additionally operable to recover the gateway
The signal that factory is provided with is sent to the cloud backstage by the communication module, so that the cloud backstage is logical by standard network
Letter interface sends the signal that the gateway factory reset is completed to APP, so that the APP is switched to and completed recovery and dispatch from the factory
The page after setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611162391.2A CN106534364B (en) | 2016-12-15 | 2016-12-15 | A kind of method and gateway of gateway factory reset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611162391.2A CN106534364B (en) | 2016-12-15 | 2016-12-15 | A kind of method and gateway of gateway factory reset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534364A true CN106534364A (en) | 2017-03-22 |
CN106534364B CN106534364B (en) | 2019-11-08 |
Family
ID=58339664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611162391.2A Active CN106534364B (en) | 2016-12-15 | 2016-12-15 | A kind of method and gateway of gateway factory reset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534364B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108306796A (en) * | 2018-01-26 | 2018-07-20 | 青岛海信智慧家居系统股份有限公司 | The information processing method and device of intelligent domestic system, smart home device |
CN111580838A (en) * | 2019-02-18 | 2020-08-25 | 深圳市致趣科技有限公司 | Zigbee network recovery and backup method and system |
CN112565192A (en) * | 2020-11-06 | 2021-03-26 | 深圳数联天下智能科技有限公司 | Method, system, gateway and storage medium for gateway identification equipment |
CN113556255A (en) * | 2021-08-02 | 2021-10-26 | 京东数科海益信息科技有限公司 | Method and device for configuring smart home |
CN114285884A (en) * | 2021-12-17 | 2022-04-05 | 瀚云科技有限公司 | Gateway device connection method, gateway device management device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577284A (en) * | 2009-08-19 | 2012-07-11 | 三星电子株式会社 | Techniques for controlling gateway functionality to support device management in a communication system |
CN102724050A (en) * | 2011-03-30 | 2012-10-10 | 华为终端有限公司 | Method and device for initializing gateway in equipment management system |
CN102739429A (en) * | 2011-04-15 | 2012-10-17 | 华为终端有限公司 | Initialization method for terminal device and apparatus |
CN104243213A (en) * | 2014-09-28 | 2014-12-24 | 北京奇虎科技有限公司 | Method, device and system for acquiring configuration information of routers |
CN106100911A (en) * | 2016-08-23 | 2016-11-09 | 上海斐讯数据通信技术有限公司 | Cloud collocation method, router, Cloud Server and the system of a kind of router |
-
2016
- 2016-12-15 CN CN201611162391.2A patent/CN106534364B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577284A (en) * | 2009-08-19 | 2012-07-11 | 三星电子株式会社 | Techniques for controlling gateway functionality to support device management in a communication system |
CN102724050A (en) * | 2011-03-30 | 2012-10-10 | 华为终端有限公司 | Method and device for initializing gateway in equipment management system |
CN102739429A (en) * | 2011-04-15 | 2012-10-17 | 华为终端有限公司 | Initialization method for terminal device and apparatus |
CN104243213A (en) * | 2014-09-28 | 2014-12-24 | 北京奇虎科技有限公司 | Method, device and system for acquiring configuration information of routers |
CN106100911A (en) * | 2016-08-23 | 2016-11-09 | 上海斐讯数据通信技术有限公司 | Cloud collocation method, router, Cloud Server and the system of a kind of router |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108306796A (en) * | 2018-01-26 | 2018-07-20 | 青岛海信智慧家居系统股份有限公司 | The information processing method and device of intelligent domestic system, smart home device |
CN108306796B (en) * | 2018-01-26 | 2021-01-19 | 青岛海信智慧家居系统股份有限公司 | Intelligent home system, and information processing method and device of intelligent home equipment |
CN111580838A (en) * | 2019-02-18 | 2020-08-25 | 深圳市致趣科技有限公司 | Zigbee network recovery and backup method and system |
CN112565192A (en) * | 2020-11-06 | 2021-03-26 | 深圳数联天下智能科技有限公司 | Method, system, gateway and storage medium for gateway identification equipment |
CN113556255A (en) * | 2021-08-02 | 2021-10-26 | 京东数科海益信息科技有限公司 | Method and device for configuring smart home |
CN114285884A (en) * | 2021-12-17 | 2022-04-05 | 瀚云科技有限公司 | Gateway device connection method, gateway device management device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106534364B (en) | 2019-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106534364A (en) | Method for restoring factory settings of gateway and gateway | |
CN109391648A (en) | It is a kind of to apply correlating method, device and the communication system being sliced with network | |
CN100568854C (en) | A kind of method and interface board that keeps neighborhood | |
CN105681846B (en) | A kind of set-top box carries out the method and set-top box of Bluetooth matching | |
CN103731562B (en) | For the method and apparatus of smart machine Adaptive matching bluetooth equipment | |
CN112653577A (en) | Network element management method, device and storage medium | |
CN104601380A (en) | Software-defined network controller and host computer information recovery method thereof | |
CN104283802A (en) | Neighbor discovery method and device | |
CN103944814A (en) | Data exchange method and system and gateway server | |
CN109003350A (en) | Generation dimension logging instrument and working method | |
CN100428806C (en) | Alarm system and method thereof | |
CN103368849A (en) | OAM (Operations, Administration and Management) message processing method and device | |
CN106413127A (en) | Method and system for connecting relay device with remote network management server, and the relay device | |
CN106559296A (en) | A kind of device end control method and system based on MQTT | |
CN101374144B (en) | Method, apparatus and system for controlling conversational data synchronization | |
US8666359B2 (en) | Notification method, system and apparatus for an emergency area ID | |
CN104331032A (en) | Intelligent device control system | |
CN102104490B (en) | Comprehensive network management system for railway communication network | |
CN105075189B (en) | Receive communication event | |
CN110324839A (en) | Reconfiguration method, network equipment and terminal | |
CN108183825A (en) | A kind of fault cues system and method for video terminal device | |
CN101873228A (en) | Management system and method for material information of network equipment | |
CN106130863A (en) | The transfer approach of LAN protocol message, device and system | |
CN110851186A (en) | Network equipment restarting method and device, electronic equipment and readable storage medium | |
JP2004134878A (en) | Communication system, main apparatus function backup method, maintenance management center, and user system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |