CN109495539B - Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium - Google Patents
Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109495539B CN109495539B CN201811126803.6A CN201811126803A CN109495539B CN 109495539 B CN109495539 B CN 109495539B CN 201811126803 A CN201811126803 A CN 201811126803A CN 109495539 B CN109495539 B CN 109495539B
- Authority
- CN
- China
- Prior art keywords
- gateway
- unbinding
- sub
- request
- response processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 230000004044 response Effects 0.000 claims abstract description 252
- 238000012545 processing Methods 0.000 claims abstract description 202
- 238000004891 communication Methods 0.000 claims description 27
- 238000012790 confirmation Methods 0.000 claims description 19
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 7
- 230000000977 initiatory effect Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 238000012423 maintenance Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000003345 natural gas Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
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/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the application provides a method and a device for preventing sub-equipment from being deleted by mistake, electronic equipment and a storage medium. The method comprises the following steps: the gateway receives a unbinding request initiated by the sub-equipment; the gateway acquires response processing of the unbinding request; and the gateway returns the response processing signal to the sub-equipment, indicates the sub-equipment to unbind when the response processing signal is for confirming the unbinding, and indicates the sub-equipment to abandon the unbinding when the response processing signal is for canceling the unbinding. The method can avoid the situation that the sub-equipment in the intelligent home is deleted by mistake, and improves the user experience of the intelligent home equipment.
Description
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method and an apparatus for preventing a child device from being deleted by mistake, an electronic device, and a storage medium.
Background
With the continuous development of science and technology and the continuous improvement of the living standard of people, modern people are not more and more satisfied with the current living situation, and instead, the urgent pursuit of more comfortable high-grade living environment is adopted, so that smart homes (home automation) also come with the urgent pursuit, so-called smart homes take homes as platforms, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, a high-efficiency management system of home facilities and home schedule affairs is constructed, the home safety, convenience, comfortableness and artistry are improved, and the environment-friendly and energy-saving living environment is realized.
In recent years, the smart home industry has changed dramatically: the intelligent home concept goes deep into the human heart, the technologies such as big data, artificial intelligence and the like are leap forward, and the number of industry cross-border cooperation cases is increased; at present, due to the combination of digital talkback and smart home, a normal state and a full-house intelligent mode are realized by the aid of voice assistance, so that the quantity of the sub-equipment in the smart home is increased more and more, and the system is increased more and more.
With the increase of the number of the child devices, the number and the probability of the child devices being deleted by mistake (the deletion or the unbinding of the binding relationship between the child devices and the gateway (parent node)) are both obviously increased, the child devices need to be bound into the original gateway (parent node) again after being deleted, and the setting of the same linkage algorithm (or automation) is very complicated, and particularly, in a huge control system built in a public building, the number of the child devices is thousands of tens of thousands, and under the condition that maintenance by multiple persons is needed, if the child devices are deleted by mistake, huge and complicated maintenance work is brought.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for preventing a child device from being deleted by mistake, so as to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a method for preventing a child device from being deleted by mistake, where the method is applied to a gateway, and includes: the gateway receives a unbinding request initiated by the sub-equipment; the gateway acquires response processing of the unbinding request; the gateway returns the response processing signal to the sub-equipment, when the response processing signal confirms the unbinding, the sub-equipment is indicated to be unbound, and when the response processing signal cancels the unbinding, the sub-equipment is indicated to abandon the unbinding.
In a second aspect, an embodiment of the present application provides a method for preventing a child device from being deleted by mistake, where the method is applied to a server, and includes: the server receives a sub-equipment unbinding request forwarded by the gateway; the server acquires response processing of the unbinding request; the server returns the response processing signal to the gateway, the gateway is indicated to return the response processing signal to the sub-equipment, when the response processing signal confirms to be unbound, the sub-equipment is indicated to be unbound, and when the response processing signal cancels to be unbound, the sub-equipment is indicated to give up being unbound.
In a third aspect, an embodiment of the present application provides a method for preventing a child device from being deleted by mistake, where the method includes: the sub-equipment initiates a unbinding request to the gateway; after receiving the unbinding request, the gateway sends a response signal; if the sub-equipment receives the response signal of the gateway, the sub-equipment gives up the unbinding; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
In a fourth aspect, an embodiment of the present application provides an apparatus for preventing a child device from being deleted by mistake, where the apparatus is operated in a gateway, and the apparatus includes: the request receiving module is used for receiving a unbinding request initiated by the child equipment by the gateway; a request response obtaining module, which is used for the gateway to obtain the response processing of the unbinding request; and the response signal returning module is used for returning the response processing signal to the sub-equipment by the gateway, indicating the sub-equipment to unbind when the response processing signal is to confirm the unbinding, and indicating the sub-equipment to abandon the unbinding when the response processing signal is to cancel the unbinding.
In a fifth aspect, an embodiment of the present application provides an apparatus for preventing a child device from being deleted by mistake, where the apparatus is run in a server, and the apparatus includes: the request receiving module is used for receiving the sub-equipment unbinding request forwarded by the gateway by the server; the response processing acquisition module is used for acquiring response processing of the unbinding request by the server; and the response result returning module is used for returning the response processing signal to the gateway by the server, indicating the gateway to return the response processing signal to the sub-equipment, indicating the sub-equipment to unbind when the response processing signal confirms the unbinding, and indicating the sub-equipment to abandon the unbinding when the response processing signal cancels the unbinding.
In a sixth aspect, an embodiment of the present application provides an apparatus for preventing a child device from being deleted by mistake, where the apparatus includes: the request initiating module is used for initiating a unbinding request to the gateway by the sub-equipment; the response module is used for sending a response signal after the gateway receives the unbinding request; the response processing module is used for giving up the unbinding if the sub-equipment receives a response signal of the gateway; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
In a seventh aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the method for preventing the child device from being deleted by mistake.
In an eighth aspect, the present application provides a computer-readable storage medium having program code executable by a processor, where the program code causes the processor to execute the method for preventing a child device from being deleted by mistake.
Compared with the prior art, the method, the device, the electronic equipment and the storage medium for preventing the sub-equipment from being deleted by mistake provided by the embodiments of the application receive a unbinding request initiated by the sub-equipment through the gateway; then the gateway acquires the response processing of the unbinding request; and then the gateway returns the response processing signal to the sub-equipment, and when the response processing signal confirms the unbinding, the sub-equipment is instructed to unbind, and when the response processing signal cancels the unbinding, the sub-equipment is instructed to abandon the unbinding. The method can avoid the situation that the smart home device is deleted by mistake, and meanwhile, the user experience of the smart home device is improved.
In order to make the aforementioned and other objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a network system provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for preventing a child device from being deleted by mistake according to an embodiment of the present application;
fig. 3 is a diagram illustrating a specific example of the method for preventing the child device from being deleted by mistake in fig. 2;
fig. 4 is a flowchart illustrating a method for preventing a child device from being deleted by mistake according to another embodiment of the present application;
fig. 5 is a diagram illustrating a specific example of the method for preventing the child device from being deleted by mistake in fig. 4;
fig. 6 is a diagram illustrating another specific example of the method for preventing a child device from being deleted by mistake proposed in fig. 4;
fig. 7 is a flowchart illustrating a method for preventing a child device from being deleted by mistake according to still another embodiment of the present application;
fig. 8 is a block diagram illustrating a structure of an apparatus for preventing a child device from being deleted by mistake according to an embodiment of the present application;
fig. 9 is a block diagram illustrating a structure of an apparatus for preventing a child device from being deleted by mistake according to another embodiment of the present application;
fig. 10 is a block diagram illustrating a structure of an apparatus for preventing a child device from being deleted by mistake according to still another embodiment of the present application;
fig. 11 shows a block diagram of an electronic device according to an embodiment of the present application, configured to execute a method for preventing a child device from being deleted by mistake according to an embodiment of the present application;
fig. 12 illustrates a storage unit for storing or carrying program codes for implementing the method for preventing a child device from being deleted by mistake according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
With the appearance of the internet of things, the system adds boosting to the development and application of the intelligent home system. The Internet of things enables the functions of the smart home to be leap, changes not only the functions of household appliances but also the life style, and brings convenience and direction to consumers.
The ZigBee Technology (ZigBee Technology ) is an emerging short-range, low-rate, low-power consumption two-way wireless communication Technology, which is a technical proposal between wireless tag Technology and bluetooth, and is mainly used for short-range wireless connection. It has its own radio standard, and thousands of tiny sensors coordinate with each other to realize communication. These sensors require only low power consumption and transfer data from one sensor to another in a relayed manner via radio waves, and therefore their communication efficiency is very high. With the continuous development of the internet of things, the ZigBee communication technology is gradually applied to the aspect of intelligent home.
In public buildings, thousands of intelligent household devices are usually required to build a huge control system for the intelligent household devices, however, the number of peripheral sub-devices of the intelligent household devices is large, if the sub-devices are deleted by misoperation, huge and complex maintenance work can be brought to managers, and some sub-devices are difficult to repair.
Therefore, the inventor finds that the technical problem that the user is inconvenient if the sub-device is deleted by misoperation, and proposes a method, an apparatus, an electronic device and a storage medium for preventing the sub-device from being deleted by mistake in the embodiment of the present application.
For the convenience of describing the scheme of the present application in detail, the following description will first describe an application environment in the embodiments of the present application with reference to the drawings.
Referring to fig. 1, a network system 10 according to an embodiment of the present application is provided, where the network system 10 includes: a plurality of sub-devices 11, a gateway 12, a server 13, and a mobile terminal 14. The kid device 11 can establish a network connection with the gateway 12 based on the ZigBee protocol, thereby joining the ZigBee network. The server 13 and the mobile terminal 14 may be communicatively connected to the gateway 12 by means of 2G/3G/4G/5G, WIFI, etc. for data communication or interaction. Optionally, in this embodiment of the application, the server 13 may be a network access server, a database server, a cloud server, or the like. The mobile terminal 14 may be a Personal Computer (PC), a tablet PC, a smart phone, a mobile device APP (Application), a Personal Digital Assistant (PDA), or the like.
Optionally, the sub-device 11 may be connected to the router through a gateway, and the router is further connected to the server 13 to implement communication connection with the server 13. The sub-device 11 may include a human body sensor, a door and window sensor, a temperature and humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, an intelligent socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor, an air conditioner companion, and the like, and of course, the specific type of the sub-device 11 is not limited in this embodiment.
In the embodiment of the application, the gateway 12, the server 13, and the mobile terminal 14 may be configured to set a confirmation mechanism for a corresponding deletion relationship of the device control of the child device, and if the child device is deleted due to a user misoperation, the gateway 12, the server 13, or the mobile terminal 14 may cancel a unbinding request initiated when the child device is deleted by mistake, and abandon the removal of the association relationship between the child device and the gateway, thereby preventing the child device from being deleted by mistake; if the sub-device is not deleted due to the misoperation of the user, the gateway 12, the server 13 or the mobile terminal 14 may confirm the unbinding request initiated when the sub-device is deleted by mistake, and release the association relationship between the sub-device and the gateway. Optionally, the kid device 11 may first communicate wirelessly with the gateway 12, and the information of the kid device 11 is stored in the gateway 12.
According to the method, the device, the electronic equipment and the storage medium for preventing the sub-equipment from being deleted mistakenly, the gateway receives the unbinding request initiated by the sub-equipment, then the gateway obtains the response processing of the unbinding request, then the gateway returns the response processing signal to the sub-equipment, when the response processing signal confirms the unbinding, the sub-equipment is instructed to be unbound, and when the response processing signal cancels the unbinding, the sub-equipment is instructed to give up the unbinding.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of a method for preventing a child device from being deleted by mistake is provided in the present embodiment, where the present embodiment provides a method for preventing a child device from being deleted by mistake, and the present embodiment mainly describes a processing flow of a gateway, where the method includes:
in step S110, the gateway receives a unbinding request initiated from the child device.
With the increase of the number of the sub-devices in the smart home system, the smart home system is increasingly large, and under the circumstance, if some sub-devices in the smart home system are accidentally deleted by a user, huge and complex maintenance work can be brought, and the maintenance work flow is very complicated. The prior art usually can inlay in the sub-equipment through structural design and establish physics reset button or other buttons and confirm the deletion of sub-equipment, however, inlay when establishing the physics button the mould complicated, the die sinking expense is high and the plastic part yield is low, is very unfavorable for the operation. Therefore, the embodiment of the application provides a method for preventing a child device from being deleted by mistake, which can enable the child device to send out a unbinding request before being deleted, so as to avoid the mistaken deletion caused by manual misoperation.
In this embodiment of the application, a list of each sub-device accessing to the gateway in the home device is stored in the gateway, and as an implementation manner, after the sub-device initiates a unbinding request, the gateway receives an unbinding request signal initiated by the sub-device through a communication protocol between the gateway and the sub-device, such as a ZigBee protocol, a bluetooth protocol, and the like, where the unbinding request signal includes a device identifier of the sub-device, for example: device ID (identification); the method can further include the deleted information record of the sub-device or the name of the home equipment corresponding to the sub-device control.
And step S120, the gateway acquires the response processing of the unbinding request.
Optionally, after the gateway receives the unbinding request initiated by the child device, the gateway obtaining a response to the unbinding request may include: the gateway directly performs response processing on the unbinding request or forwards the unbinding request to the server, and two implementation modes of response processing on the unbinding request returned by the server are obtained, so that the gateway or the server can confirm the unbinding request of the child equipment, and the child equipment is prevented from being deleted by mistake. Two embodiments are specifically described below:
as an embodiment, the gateway may directly perform response processing on the unbinding request initiated from the child device. Optionally, the gateway may determine whether the current to-be-deleted sub-device is deleted by mistake according to a key trigger signal of a user trigger key; the key trigger signal is preset, for example, one click of the key can be set as removing the binding, and a double click of the key can be set as confirming the binding; if the deletion is false, the response processing is to take the dissolved bind, and the sub-equipment is restored to the original state; if the sub-device is not deleted by mistake, the response is processed to confirm the unbinding, and the association relationship between the sub-device and the gateway is released; optionally, when the association between the child device and the gateway is released, the child device in the device list of the gateway is removed, and the gateway also deletes the information of the child device, such as the device ID of the child device, the device type, the automatic configuration of the device, the scene configuration information of the device, and the like.
In another embodiment, the gateway may forward the unbinding request to the server, and obtain a response to the unbinding request returned by the server. Optionally, when the gateway receives a unbinding request initiated from the child device, the gateway further sends the unbinding request to the server, and if the server performs response processing on the unbinding request before the gateway, the gateway does not understand the unbinding request at a response part, but receives response processing on the unbinding request returned by the server. Optionally, after receiving the unbinding request initiated by the sub-device, the gateway forwards the unbinding request to the server, so that the phenomenon that the unbinding request is processed when the gateway does not respond to the unbinding request or when the unbinding request is omitted can be avoided, meanwhile, the gateway can respond to the unbinding request in advance, double confirmation before the sub-device is deleted can be realized, a user can select a more convenient unbinding mode according to actual conditions, and the sub-device can be better prevented from being deleted by mistake.
And step S130, the gateway returns the response processing signal to the sub-equipment, indicates the sub-equipment to unbind when the response processing signal is to confirm the unbinding, and indicates the sub-equipment to abandon the unbinding when the response processing signal is to cancel the unbinding.
Optionally, after obtaining the response processing performed on the unbinding request, the gateway returns a response processing signal to the child device, and when the response processing signal is to confirm the unbinding, the gateway instructs the child device to unbind, and when the response processing signal is to cancel the unbinding, the gateway instructs the child device to abandon the unbinding. The method establishes a confirmation mechanism through the gateway, and can prevent the child equipment from being deleted by mistake.
As a mode, when the gateway directly responds to the unbinding request, the gateway returns a confirmation or unbinding response processing signal after response processing to the child device, and when the response processing signal is confirmation of unbinding, the gateway instructs the child device to unbind; when the answer processing signal is to cancel the unbinding, the sub-device is instructed to abandon the unbinding. In this case, the gateway also uploads a confirmation or cancellation unbinding response processing signal to the server, and instructs the server to cancel the prompt of the unbinding request after receiving the confirmation or cancellation unbinding request response processing signal from the gateway.
Optionally, after the gateway returns the response processing signal to the child device, the gateway cancels the prompt of the unbinding request.
As another mode, when the gateway forwards the unbinding request to the server and obtains a response processing to the unbinding request returned by the server, after the gateway receives a unbinding request response processing signal returned by the server, the gateway will prompt the requesting of unbinding and return the response processing signal to the sub-device, and when the response processing signal is to confirm the unbinding, the sub-device is instructed to unbind; when the answer processing signal is to cancel the unbinding, the sub-device is instructed to abandon the unbinding.
The following takes fig. 3 as an example to explain the present embodiment:
referring to fig. 3, a sub-device is bound with a gateway, a unbinding request signal is sent to the gateway before the sub-device is deleted, the gateway receives the unbinding request signal sent from the sub-device, the gateway can identify information in a binding information list in the sub-device, such as a device ID of the sub-device, a device type, an automatic configuration of the device, scene configuration information of the device, and the like, the gateway also sends a unbinding request ZigBee signal to a server at the same time, and then the gateway obtains a response processing performed on the unbinding request ZigBee signal.
As an implementation manner, the gateway can confirm whether the current sub-equipment is deleted by mistake according to a key triggering signal of a user at a gateway triggering key, if the current sub-equipment is deleted by mistake, the response processing is to remove the bind, and the sub-equipment is restored to the original state; and if the sub-device information is not deleted by mistake, the response is processed to confirm the unbinding, in this case, the association relationship between the sub-device and the gateway is released, the gateway automatically takes the prompt of the unbinding request, the sub-device is removed from the device list of the gateway, and the information of the sub-device is also deleted from the gateway.
In another embodiment, the gateway may receive a response processing signal for the unbinding request from the server, and when the gateway receives the unbinding request response processing signal from the server, the gateway will fetch a prompt for the unbinding request.
Optionally, after acquiring the response processing signal to the unbinding request, the gateway returns a response processing signal to the sub-device, which is corresponding to the unbinding request and confirms or cancels the unbinding. When the gateway returns a response processing signal for confirming or removing the binding to the sub-device, the response processing signal is also uploaded to an Internet Of Things (IOT) (cloud), wherein the IOT (cloud) may be one Of the servers. And after receiving the response processing signal for confirming or canceling the unbinding, the IOT (cloud end) cancels the prompt of the unbinding request.
After the gateway returns a response processing signal for confirming or taking the unbinding to the sub-equipment, if the response processing signal is that the unbinding is confirmed, the sub-equipment is indicated to start the unbinding; and if the answer processing signal is that the unbinding is cancelled, indicating the sub-equipment to abandon the unbinding.
In the method for preventing the child device from being deleted by mistake, the gateway receives a unbinding request initiated by the child device; then the gateway acquires the response processing of the unbinding request; and then the gateway returns the response processing signal to the sub-equipment, and when the response processing signal confirms the unbinding, the sub-equipment is instructed to unbind, and when the response processing signal cancels the unbinding, the sub-equipment is instructed to abandon the unbinding. The method can avoid the situation that the smart home device is deleted by mistake, and meanwhile, the user experience of the smart home device is improved.
Referring to fig. 4, a flowchart of a method for preventing a child device from being deleted by mistake according to another embodiment of the present application is provided, where the embodiment provides a method for preventing a child device from being deleted by mistake, and the embodiment mainly describes a processing flow of a server, where the method includes:
in step S210, the server receives the request for unbinding the child device forwarded by the gateway.
If the gateway receives the unbinding request initiated by the sub-device and is only processed by the gateway, when a plurality of sub-devices initiate the unbinding request at the same time, the gateway may cause the other sub-devices to be deleted by mistake due to poor load or network signals and the like; or the user is not in the spatial position set by the gateway, and the sub-device unbinding request is not conveniently processed through the gateway, so in the embodiment of the application, when the gateway receives the unbinding request initiated by the sub-device, the unbinding request is sent to the server in real time, the server receives the unbinding request forwarded by the gateway, and meanwhile, the server sends the unbinding request to the mobile terminal in real time. The unbinding request comprises feature information of the to-be-deleted sub-device. The method can realize that the gateway, the server or the mobile terminal confirms the deletion related information of the sub-equipment, and the user can select a more convenient unbinding mode according to the actual situation, thereby better avoiding the sub-equipment from being deleted by mistake.
In step S220, the server obtains a response to the unbinding request.
After the server receives the unbinding request forwarded by the gateway, the server acquires response processing of the unbinding request. Optionally, the obtaining, by the server, a response to the unbinding request may include: the server directly performs response processing on the unbinding request or forwards the unbinding request to the mobile terminal, and two implementation modes of response processing on the unbinding request returned by the mobile terminal are obtained, so that the server or the mobile terminal can confirm the unbinding request of the child equipment, and the child equipment is prevented from being deleted by mistake. Two embodiments are specifically described below:
as an embodiment, the server may directly perform response processing on the unbinding request forwarded by the gateway. Optionally, the server may determine whether the current to-be-deleted child device is deleted by mistake according to a key triggering signal of a user triggering a key at a server background, and if the current to-be-deleted child device is deleted by mistake, the response processing is to remove the bind, and the child device is to be retained; if not, the response is processed to confirm unbinding.
As another embodiment, the server may forward the unbinding request to the mobile terminal, and obtain a response to the unbinding request returned by the mobile terminal. Optionally, when the server receives the unbinding request forwarded from the gateway, the server further sends the unbinding request to the mobile terminal, and if the mobile terminal responds to the unbinding request before the server and the gateway, the server does not respond to the unbinding request any more, but receives a response to the unbinding request returned by the mobile terminal.
Step S230, the server returns the response processing signal to the gateway, instructs the gateway to return the response processing signal to the child device, instructs the child device to unbind when the response processing signal is a confirmation unbind, and instructs the child device to abandon the unbind when the response processing signal is a cancellation unbind.
And after the server acquires the response processing of the unbinding request, returning a response processing signal for confirming or cancelling the unbinding request corresponding to the unbinding request to the gateway, indicating the gateway to return the response processing signal for the unbinding request to the sub-equipment, indicating the sub-equipment to unbind when the response processing signal is for confirming the unbinding, and indicating the sub-equipment to abandon the unbinding when the response processing signal is for cancelling the unbinding.
As an implementation manner, when the server directly performs response processing on the unbinding request, the server returns a confirmation or unbinding response processing signal after the response processing to the gateway, instructs the gateway to return the response processing signal to the sub-device, and when the response processing signal is confirmation of unbinding, instructs the sub-device to unbind, and at this time, the association relationship between the sub-device and the gateway is to be released; optionally, when the association relationship between the child device and the gateway is to be released, the child device in the device list of the gateway is to be removed, and the information of the child device, such as the device ID of the child device, the device type, the automatic configuration of the device, the scene configuration information of the device, etc., is also deleted in the gateway; and when the answer processing signal is that the unbinding is cancelled, the sub-equipment is instructed to abandon the unbinding, and the sub-equipment is reserved at the moment.
Optionally, the server returns the response processing signal to the gateway, and after instructing the gateway to return the response processing signal to the child device, the server cancels the prompt of the unbinding request. In addition, the server also uploads a confirmation or cancellation unbinding response processing signal to the mobile terminal, and the mobile terminal is instructed to cancel the prompt of the unbinding request after receiving the confirmation or cancellation unbinding request response processing signal from the server.
As another embodiment, when the server forwards the unbinding request to the mobile terminal and obtains a response process to the unbinding request returned by the mobile terminal, after the server receives a unbinding request response process signal returned by the mobile terminal, the server will prompt to remove the unbinding request and return the response process signal to the gateway, instruct the gateway to return the response process signal to the sub-device, and instruct the sub-device to unbind when the response process signal is to confirm the unbinding; when the answer processing signal is to cancel the unbinding, the sub-device is instructed to abandon the unbinding. Under the condition, the server returns a response processing signal to the gateway, and the gateway is indicated to cancel the prompt of the unbinding request after receiving the response processing signal for confirming or canceling the unbinding request from the server; the server also uploads the response processing signal to the mobile terminal, and the mobile terminal cancels the prompt of the unbinding request after receiving the response processing signal of the confirmation or unbinding request from the server.
Optionally, in another embodiment, the obtaining, by the server, a response to the unbinding request returned by the mobile terminal includes: acquiring a key triggering signal of a mobile terminal according to an APP (mobile device) or Web (PC) triggering key of a user to confirm whether the current to-be-deleted sub-device is deleted by mistake, if so, performing response processing to remove the binding, and reserving the sub-device; if not, the response is processed to confirm unbinding.
After the mobile terminal returns the acknowledgement or cancellation unbinding response processing signal to the server, the mobile terminal gives a prompt for canceling the unbinding request, the mobile terminal indicates the server to return the response processing signal to the gateway, indicates the gateway to return the response processing signal to the sub-equipment, and indicates the sub-equipment to unbind when the response processing signal is acknowledgement and unbinding; when the answer processing signal is to cancel the unbinding, the sub-device is instructed to abandon the unbinding.
The following takes fig. 5 and fig. 6 as an example to explain the present embodiment:
referring to fig. 5, the slave device is bound with the gateway, a binding information list of the slave device and the gateway is stored in the slave device, the slave device initiates a unbinding request ZigBee signal to the gateway before being deleted, the gateway receives the unbinding request ZigBee signal initiated by the slave device, the gateway forwards the unbinding request ZigBee signal to the IOT (cloud), and the IOT (cloud) receives the unbinding request ZigBee signal forwarded by the gateway and forwards the unbinding request ZigBee signal to the APP (mobile device) or the web (pc) in real time.
After receiving the unbinding request, the IOT (cloud) can confirm whether the current sub-equipment is deleted by mistake according to a key triggering signal of a user triggering key at the IOT (cloud), if the current sub-equipment is deleted by mistake, the response is to remove the unbound sub-equipment, and the sub-equipment is restored to the original state; if the sub-device is deleted by mistake, the response is processed to confirm that the sub-device is unbound, the association relationship between the sub-device and the gateway is to be released, the gateway is to prompt the request for removing the binding, optionally, the sub-device is to be removed from the device list of the gateway while the association relationship between the sub-device and the gateway is to be released, and the information of the sub-device is also to be deleted from the gateway.
As a mode, when the IOT (cloud) returns a response processing signal for confirming or removing the binding to the gateway, the IOT (cloud) also uploads the response processing signal to the APP (mobile device) or the web (pc), where the APP (mobile device) or the web (pc) may be one of the mobile terminals. The IOT (cloud) instructs the gateway and APP (mobile device) or Web (PC) to receive the response processing signal of confirming or canceling the unbinding, and then to fetch the prompt of the unbinding request.
Optionally, after returning the response processing signal for confirming or removing the unbinding to the gateway, the IOT (cloud end) instructs the gateway to return the response processing signal to the child device, and if the response processing signal is to confirm the unbinding, instructs the child device to start the unbinding; and if the answer processing signal is that the unbinding is cancelled, indicating the sub-equipment to abandon the unbinding.
Referring to fig. 6, after receiving a ZigBee signal of a request for learning to bind, APP (mobile device) or web (pc), may determine whether the current sub-device is deleted by mistake according to a key trigger signal of a user triggering a key on APP (mobile device) or web (pc), and if the current sub-device is deleted by mistake, the response is processed to remove the binding, and the sub-device will be restored to the original state; if not, the response is processed to confirm unbinding. In one mode, the APP (mobile device) or the web (pc) will take the prompt of the unbinding request after the reply processing of the unbinding request.
Optionally, after performing response processing on the unbinding request, the APP (mobile device) or the web (pc) pushes a response processing signal to the server, and instructs the server to fetch a prompt to resolve the unbinding request; meanwhile, the indication server pushes a response processing signal to the gateway and indicates the gateway to fetch the prompt of clearing the binding request; meanwhile, the gateway is instructed to return a response processing signal to the sub-equipment, if the response processing signal is to confirm the unbinding, the sub-equipment is instructed to begin the unbinding, and if the sub-equipment is deleted, the equipment is removed from an equipment list of a client of APP (mobile equipment) or Web (PC); if the answer processing signal is to cancel the unbinding, the sub-equipment is instructed to abandon the unbinding, and the sub-equipment is reserved.
In the method for preventing the child device from being deleted by mistake, the server receives the child device unbinding request forwarded by the gateway; then the server acquires response processing of the unbinding request; and then the server returns the response processing signal to the gateway, instructs the gateway to return the response processing signal to the sub-equipment, instructs the sub-equipment to unbind when the response processing signal is to confirm the unbinding, and instructs the sub-equipment to abandon the unbinding when the response processing signal is to cancel the unbinding. According to the method, a user can select a more convenient unbinding mode according to actual conditions, so that the unbinding operation of the sub-equipment is more convenient, meanwhile, the sub-equipment in the intelligent home can be prevented from being deleted by mistake, and the user experience of the intelligent home equipment is improved.
Referring to fig. 7, a flowchart of a method for preventing a child device from being deleted by mistake according to a further embodiment of the present application is shown, where the embodiment provides a method for preventing a child device from being deleted by mistake, and the method includes:
in step S310, the child device initiates a unbinding request to the gateway.
The number of the sub-devices in the intelligent home device system is thousands, if a certain sub-device is deleted by misoperation, great inconvenience is brought to the use and maintenance of the intelligent home device, as one mode, the sub-device can be bound with the gateway, the binding information of the sub-device and the gateway is stored in the gateway, the gateway also stores a function control corresponding to the operation of the sub-device, before the sub-device is deleted, a unbinding request can be firstly sent to the gateway, and the gateway can confirm the deleted sub-device information or forward the unbinding request to the server and the mobile terminal, so that the sub-device can be prevented from being deleted by mistake due to the misoperation of a user and the like.
Step S320, after receiving the unbinding request, the gateway sends the response signal;
optionally, if the sub-device and the gateway are in the effective wireless communication range, the gateway sends the response signal after receiving the unbinding request.
Optionally, if the sub-device and the gateway are in the effective wireless communication range, the gateway automatically sends a response signal according to a communication protocol after receiving the unbinding request.
As an implementation manner, the sub-device is wirelessly connected to the gateway, if the communication between the sub-device and the gateway is within the effective wireless communication range, when the gateway receives the unbinding request signal of the sub-device, the gateway may automatically reply according to a communication protocol, for example, according to a ZigBee communication protocol, the gateway may automatically reply an ACK (Acknowledgement) after receiving data; if the wireless communication range is not within the effective wireless communication range, the gateway cannot receive the unbinding request signal from the sub-device and does not automatically reply. The limited wireless communication range can adopt different wireless communication technologies according to the actual distance between each piece of sub-equipment and the gateway, and different effective wireless communication ranges can be achieved, such as Bluetooth, WIFI, infrared or NFC.
Step 330, if the sub-device receives the response signal of the gateway, the sub-device abandons the unbinding; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
And the sub-equipment receives a response signal of the gateway to the unbinding request, and the sub-equipment executes operation according to the response signal.
As a way, when the sub-device and the gateway are in the effective wireless communication range, if the sub-device receives the response signal of the gateway, the sub-device performs the releasing binding, in which case, the sub-device is reserved; as another mode, when the sub-device does not receive a response signal of the gateway to the unbinding request, which indicates that the communication between the sub-device and the gateway is not within the valid wireless communication range, the sub-device will perform an unbinding operation, optionally, after the sub-device is deleted, the information corresponding to the sub-device, such as the device ID of the sub-device, the device type, the automation configuration of the device, the scene configuration information of the device, and the like, will be deleted in the binding information list of the gateway, and optionally, the sub-device will also be removed from the device list of the client of the mobile terminal.
In the method for preventing the child device from being deleted by mistake, the child device sends a unbinding request to the gateway; if the sub-equipment receives the response signal of the gateway, giving up the unbinding; after receiving the unbinding request, the gateway sends the response signal; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding. The method can quickly delete the sub-equipment which is badly connected with the gateway network, and improves the user experience of the intelligent home equipment.
Referring to fig. 8, a block diagram of a structure of an apparatus for preventing a child device from being deleted by mistake is provided in this embodiment, an apparatus 400 for preventing a child device from being deleted by mistake is provided, where the gateway includes the apparatus 400, and the apparatus 400 includes: a request receiving module 410, a request response acquiring module 420 and a response signal returning module 430.
A request receiving module 410, configured to receive, by the gateway, a unbinding request initiated from the child device.
Optionally, the apparatus 400 may further include a request sending module, where the request sending module is configured to send, while receiving the unbinding request initiated by the child device, a unbinding request to the server by the gateway.
A request and response obtaining module 420, configured to obtain, by the gateway, a response to the unbinding request.
And the response signal returning module 430 is configured to return the response processing signal to the child device by the gateway, instruct the child device to unbind when the response processing signal is a confirmation of unbinding, and instruct the child device to abandon the unbinding when the response processing signal is a cancellation of unbinding.
Optionally, the apparatus 400 may further include a request cancellation module, where the request cancellation module is configured to cancel the prompt of the unbinding request after the gateway returns the response processing signal to the child device.
Optionally, the apparatus 400 may further include a signal uploading module, where the signal uploading module is configured to, when the gateway returns the response processing signal to the child device, upload the response processing signal to the server, and instruct the server to cancel the prompt of the unbinding request after receiving the acknowledgement or the unbinding request response processing signal from the gateway.
The apparatus for preventing a child device from being deleted by mistake provided by this embodiment receives, through a gateway, a unbinding request initiated from the child device; then the gateway acquires the response processing of the unbinding request; and then the gateway returns the response processing signal to the sub-equipment, and when the response processing signal confirms the unbinding, the sub-equipment is instructed to unbind, and when the response processing signal cancels the unbinding, the sub-equipment is instructed to abandon the unbinding. The method can avoid the situation that the smart home device is deleted by mistake, and meanwhile, the user experience of the smart home device can be improved.
Referring to fig. 9, a block diagram of a device for preventing a child device from being deleted by mistake according to another embodiment of the present application is shown, in which the present embodiment provides a device 500 for preventing a child device from being deleted by mistake, the server includes the device 500, and the device 500 includes: a request receiving module 510, a response processing acquiring module 520 and a response result returning module 530.
And a request receiving module 510, configured to receive, by the server, the child device unbinding request forwarded by the gateway.
Optionally, the apparatus 500 may further include a request sending module, where the request sending module is configured to send the unbinding request to the mobile terminal while the server receives the unbinding request forwarded by the gateway.
A response processing obtaining module 520, configured to obtain, by the server, a response processing performed on the unbinding request.
A response result returning module 530, configured to return the response processing signal to the gateway by the server, instruct the gateway to return the response processing signal to the child device, instruct the child device to unbind when the response processing signal is a confirmation unbind, and instruct the child device to abandon the unbind when the response processing signal is a cancellation unbind.
Optionally, the apparatus 500 may further include a request cancellation module, where the request cancellation module is configured to cancel the prompt of the unbinding request after the server returns the response processing signal to the gateway and instructs the gateway to return the response processing signal to the child device.
Optionally, the apparatus 500 may further include a signal processing module, where the signal processing module is configured to return a response processing signal to the gateway by the server, and instruct the gateway to fetch a prompt to resolve the binding request when the response processing signal is returned to the child device; as one mode, the server also uploads a response processing signal to the mobile terminal, and the mobile terminal is instructed to cancel the prompt of the unbinding request after receiving the confirmation or unbinding request response processing signal from the server.
The device for preventing the sub-device from being deleted by mistake provided by the embodiment receives a sub-device unbinding request forwarded by a gateway through a server; then the server acquires response processing of the unbinding request; and then the server returns the response processing signal to the gateway, instructs the gateway to return the response processing signal to the sub-equipment, instructs the sub-equipment to unbind when the response processing signal is to confirm the unbinding, and instructs the sub-equipment to abandon the unbinding when the response processing signal is to cancel the unbinding. The method can avoid the situation that the smart home device is deleted by mistake, and meanwhile, the user experience of the smart home device can be improved.
Referring to fig. 10, a block diagram of a device for preventing a sub-device from being deleted by mistake according to yet another embodiment of the present application is shown, in which the embodiment provides a device 600 for preventing a sub-device from being deleted by mistake, the device 600 includes: a request initiating module 610, a reply module 620 and a reply processing module 630.
A request initiating module 610, configured to initiate a unbinding request to the gateway by the child device.
And the response module 620 is configured to send a response signal after the gateway receives the unbinding request.
The response processing module 630 is configured to give up the unbinding if the sub-device receives a response signal from the gateway; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
In the method for preventing the child device from being deleted by mistake, the child device sends a unbinding request to the gateway; if the sub-equipment receives the response signal of the gateway, giving up the unbinding; after receiving the unbinding request, the gateway sends the response signal; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding. The method can quickly delete the sub-equipment which is badly connected with the gateway network, and improves the user experience of the intelligent home equipment.
An electronic device provided by the present application will be described below with reference to fig. 11.
Referring to fig. 11, based on the method and the apparatus for preventing the sub-device from being deleted by mistake, another electronic device 15 capable of executing the method for preventing the sub-device from being deleted by mistake is further provided in the embodiment of the present application. The electronic device 15 may be a wall switch, a wall socket, a smart socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor, and/or an air conditioning partner, and the electronic device 15 includes a memory 151 and one or more processors 152 (only one shown) coupled to each other.
The memory 151 may be used to store software programs and modules, such as the method for preventing the sub-device from being deleted by mistake in the embodiment of the present application, and program instructions/modules corresponding to the apparatus, and the processor 152 may execute various functional applications and data processing, such as the method for preventing the sub-device from being deleted by mistake in the embodiment of the present application, by running the software programs and modules stored in the memory 151.
The memory 151 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. It will be appreciated that the configuration shown in fig. 11 is merely illustrative and that electronic device 15 may include more or fewer components than shown in fig. 11 or may have a different configuration than shown in fig. 11. The components shown in fig. 11 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 700 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 710 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (16)
1. A method for preventing a sub-device from being deleted by mistake is applied to a gateway, and is characterized by comprising the following steps:
the gateway receives a unbinding request initiated by the child device;
the gateway directly responds to the unbinding request; or,
the gateway forwards the unbinding request to a server, and the gateway acquires response processing of the unbinding request returned by the server;
and the gateway returns the response processing signal to the sub-equipment, indicates the sub-equipment to unbind when the response processing signal is for confirming the unbinding, and indicates the sub-equipment to abandon the unbinding when the response processing signal is for canceling the unbinding.
2. The method of claim 1, wherein the gateway directly replies to the unbind request by:
and if the deletion is mistaken, the response processing is to cancel the unbinding, otherwise, the response processing is to confirm the unbinding.
3. The method of claim 1, wherein after the gateway returns the reply process signal to the child device, further comprising:
and the gateway cancels the prompt of the unbinding request.
4. The method of claim 1, wherein the gateway returns the reply process signal to the child device, further comprising:
and the gateway also uploads the response processing signal to a server, and the server is indicated to cancel the unbinding request prompt after receiving the confirmation or unbinding request response processing signal from the gateway.
5. A method for preventing a sub-device from being deleted by mistake is applied to a server, and is characterized by comprising the following steps:
the server receives a sub-equipment unbinding request forwarded by the gateway;
the server directly responds to the unbinding request; or,
the server forwards the unbinding request to the mobile terminal, and the server acquires response processing of the unbinding request returned by the mobile terminal;
the server returns the response processing signal to the gateway, instructs the gateway to return the response processing signal to the sub-equipment, instructs the sub-equipment to unbind when the response processing signal confirms the unbinding, and instructs the sub-equipment to abandon the unbinding when the response processing signal cancels the unbinding.
6. The method of claim 5, wherein the server directly replies to the unbind request by:
and if the deletion is mistaken, the response processing is to cancel the unbinding, otherwise, the response processing is to confirm the unbinding.
7. The method of claim 5, wherein the server returns the reply processing signal to the gateway, instructing the gateway to return the reply processing signal to the child device, further comprising:
and the server cancels the unbinding request prompt.
8. The method of claim 5, wherein the server returns the reply processing signal to the gateway instructing the gateway to return the reply processing signal to the child device, further comprising:
sending the response processing signal to a gateway, and indicating the gateway to cancel the unbinding request prompt after receiving a confirmation or unbinding request response processing signal from a server;
and uploading the response processing signal to a mobile terminal, and indicating the mobile terminal to cancel the unbinding request prompt after receiving the confirmation or unbinding request response processing signal from the server.
9. A method for preventing a child device from being deleted by mistake, the method comprising:
the sub-equipment initiates a unbinding request to a gateway;
after the gateway receives the unbinding request, the gateway directly responds to the unbinding request; or the gateway forwards the unbinding request to a server, and the gateway acquires response processing of the unbinding request returned by the server and sends the response signal;
if the sub-equipment receives the response signal of the gateway, giving up the unbinding;
and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
10. The method of claim 9, wherein the gateway sends the reply signal after receiving the unbind request, further comprising:
and if the sub-equipment and the gateway are in the effective wireless communication range, the gateway sends the response signal after receiving the unbinding request.
11. The method of claim 10, wherein the gateway sending the reply signal after receiving the unbinding request if the kid device and the gateway are within effective wireless communication range comprises:
and if the sub-equipment and the gateway are in the effective wireless communication range, the gateway automatically sends a response signal according to a communication protocol after receiving the unbinding request.
12. An apparatus for preventing a child device from being deleted by mistake, the apparatus being run in a gateway, the apparatus comprising:
a request receiving module, configured to receive, by the gateway, a unbinding request initiated from a child device;
a request response obtaining module, configured to directly perform response processing on the unbinding request by the gateway; or the gateway forwards the unbinding request to a server, and the gateway acquires response processing of the unbinding request returned by the server;
and the response signal returning module is used for returning the response processing signal to the sub-equipment by the gateway, indicating the sub-equipment to unbind when the response processing signal is confirmed to be unbound, and indicating the sub-equipment to abandon the unbound signal when the response processing signal is unbound.
13. An apparatus for preventing a child device from being deleted by mistake, the apparatus being run on a server, the apparatus comprising:
the request receiving module is used for receiving the sub-equipment unbinding request forwarded by the gateway by the server;
a response processing obtaining module, configured to directly perform response processing on the unbinding request by the server; or the server forwards the unbinding request to the mobile terminal, and the server acquires response processing of the unbinding request returned by the mobile terminal;
and the response result returning module is used for returning the response processing signal to the gateway by the server, indicating the gateway to return the response processing signal to the sub-equipment, indicating the sub-equipment to unbind when the response processing signal confirms the unbinding, and indicating the sub-equipment to abandon the unbinding when the response processing signal cancels the unbinding.
14. An apparatus for preventing a child device from being deleted by mistake, the apparatus comprising:
a request initiating module, configured to initiate a unbinding request to a gateway by the child device;
the response module is used for the gateway to directly respond the unbinding request after receiving the unbinding request; or the gateway forwards the unbinding request to a server, and the gateway acquires response processing of the unbinding request returned by the server and sends the response signal;
the response processing module is used for giving up the unbinding if the sub-equipment receives the response signal of the gateway; and if the sub-equipment does not receive the response signal of the gateway, executing unbinding.
15. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-11.
16. A computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126803.6A CN109495539B (en) | 2018-09-26 | 2018-09-26 | Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126803.6A CN109495539B (en) | 2018-09-26 | 2018-09-26 | Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109495539A CN109495539A (en) | 2019-03-19 |
CN109495539B true CN109495539B (en) | 2021-08-31 |
Family
ID=65689930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811126803.6A Active CN109495539B (en) | 2018-09-26 | 2018-09-26 | Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495539B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995264B (en) * | 2019-12-18 | 2022-08-19 | 花瓣云科技有限公司 | Method, device and storage medium for preventing data from being deleted by mistake |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106685917A (en) * | 2016-11-09 | 2017-05-17 | 苏州数言信息技术有限公司 | Method and system for realizing intelligent binding between Internet of Things device and controller |
CN106789279A (en) * | 2016-12-26 | 2017-05-31 | 新奥科技发展有限公司 | A kind of control method of gateway, the control method and device of remote control terminal |
CN107645548A (en) * | 2017-09-13 | 2018-01-30 | 广东乐心医疗电子股份有限公司 | Data processing method, equipment server and public equipment |
CN107846668A (en) * | 2016-09-18 | 2018-03-27 | 展讯通信(上海)有限公司 | A kind of things-internet gateway and its communication means |
CN108551413A (en) * | 2018-03-27 | 2018-09-18 | 青岛海信智慧家居系统股份有限公司 | Smart home device binding method, device, gateway device and storage medium |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7003307B1 (en) * | 2002-01-31 | 2006-02-21 | Cellco Partnership | System and method for a messaging gateway |
CN101340706A (en) * | 2007-07-03 | 2009-01-07 | 华为技术有限公司 | Method, apparatus and equipment for managing binding information by network side |
CN101610206B (en) * | 2008-06-17 | 2012-04-18 | 华为技术有限公司 | Method, system and device for processing binding/unbinding |
CN104702715B (en) * | 2008-08-14 | 2019-05-28 | 三星电子株式会社 | The method and system of dynamic host configuration protocol Internet Protocol Version 4 address release |
CN201421160Y (en) * | 2009-05-18 | 2010-03-10 | 江苏技术师范学院 | Remote air conditioning intelligent control device based on ZigBee technique |
KR101523492B1 (en) * | 2009-06-09 | 2015-05-28 | 에스케이텔레콤 주식회사 | Method for Controlling of Endless Loop about Short Message Service of Inbound Roamer and apparatus thereof |
MY159280A (en) * | 2010-05-06 | 2016-12-30 | Mimos Berhad | Method of providing multi address binding in a network |
CN103401912B (en) * | 2013-07-24 | 2016-03-16 | 江苏物联网研究发展中心 | Based on the service ad hoc network method of general fit calculation |
WO2015176238A1 (en) * | 2014-05-21 | 2015-11-26 | 华为技术有限公司 | Privacy protection method, device and user terminal |
CN104967596B (en) * | 2014-10-31 | 2018-05-22 | 腾讯科技(深圳)有限公司 | User terminal and internet of things equipment binding, the implementation method to communicate and device |
CN104468837B (en) * | 2014-12-29 | 2018-04-27 | 小米科技有限责任公司 | The binding method and device of smart machine |
CN104808501B (en) * | 2015-03-31 | 2018-02-02 | 小米科技有限责任公司 | Intelligent scene delet method and device |
CN104767756B (en) * | 2015-04-15 | 2018-04-20 | 北京京东尚科信息技术有限公司 | Facility information processing method, client terminal device and service terminal device |
CN105629752A (en) * | 2015-12-30 | 2016-06-01 | 深圳众乐智府科技有限公司 | Intelligent household equipment access method and intelligent household system |
CN106656695A (en) * | 2016-11-30 | 2017-05-10 | 海尔优家智能科技(北京)有限公司 | Method for controlling intelligent household electrical appliance, intelligent gateway and cloud platform |
CN107920005B (en) * | 2017-11-17 | 2020-11-13 | 南京物联传感技术有限公司 | Intelligent terminal device rapid network access installation and debugging system and working method |
CN108494804B (en) * | 2018-05-24 | 2023-11-14 | 厦门大洋通信有限公司 | Intelligent monitoring system |
-
2018
- 2018-09-26 CN CN201811126803.6A patent/CN109495539B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846668A (en) * | 2016-09-18 | 2018-03-27 | 展讯通信(上海)有限公司 | A kind of things-internet gateway and its communication means |
CN106685917A (en) * | 2016-11-09 | 2017-05-17 | 苏州数言信息技术有限公司 | Method and system for realizing intelligent binding between Internet of Things device and controller |
CN106789279A (en) * | 2016-12-26 | 2017-05-31 | 新奥科技发展有限公司 | A kind of control method of gateway, the control method and device of remote control terminal |
CN107645548A (en) * | 2017-09-13 | 2018-01-30 | 广东乐心医疗电子股份有限公司 | Data processing method, equipment server and public equipment |
CN108551413A (en) * | 2018-03-27 | 2018-09-18 | 青岛海信智慧家居系统股份有限公司 | Smart home device binding method, device, gateway device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109495539A (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491263B (en) | Intelligent household equipment control method, device and system and storage medium | |
CN109725540B (en) | Equipment control method and device, electronic equipment and storage medium | |
KR101454120B1 (en) | Home automation device pairing by nfc-enabled portable device | |
EP3016083A1 (en) | Scenario mode recommending method and apparatus for smart device | |
CN111478832B (en) | Control method, linkage method, auxiliary method and device of intelligent terminal equipment | |
CN109753034B (en) | Control method, control device, electronic equipment and storage medium | |
CN104394044A (en) | Method and device for self-defining scene mode of intelligent equipment | |
WO2015129372A1 (en) | Audio system | |
CN113498594B (en) | Control method and device of smart home system, electronic equipment and storage medium | |
EP2846328A1 (en) | Method and apparatus of detection of events | |
CN114244644B (en) | Control method and device for intelligent home, storage medium and electronic device | |
CN109660387A (en) | Management method, device, server and the storage medium of configuration data of device | |
CN108919657B (en) | Automatic configuration method and device of panel and panel | |
CN111612958A (en) | Intelligent access control method and device, intelligent access control system and electronic equipment | |
CN109495539B (en) | Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium | |
JP2008294612A (en) | Controller | |
CN112804730A (en) | Equipment interconnection method and device, server, intelligent equipment and storage medium | |
JP2016063415A (en) | Network system, audio output method, server, device and audio output program | |
CN110324216A (en) | Automatic configuration method, apparatus, system, server and storage medium | |
CN109218085B (en) | Equipment automation and scene configuration management method and device and mobile terminal | |
CN110324217A (en) | Control method, device, electronic equipment and the storage medium of equipment triggering | |
CN111953573B (en) | Equipment distribution network processing method, equipment distribution network processing device and intelligent panel | |
CN117369299A (en) | Control method and control device of intelligent equipment and intelligent central control equipment | |
Husain et al. | Bluetooth network based remote controlled home automation system | |
CN115016302A (en) | Device control method, device and storage medium |
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 |