CN112367229A - Control method and device of intelligent household equipment, electronic equipment and storage medium - Google Patents

Control method and device of intelligent household equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN112367229A
CN112367229A CN202011257895.9A CN202011257895A CN112367229A CN 112367229 A CN112367229 A CN 112367229A CN 202011257895 A CN202011257895 A CN 202011257895A CN 112367229 A CN112367229 A CN 112367229A
Authority
CN
China
Prior art keywords
server
controlled
bound
smart home
intelligent household
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011257895.9A
Other languages
Chinese (zh)
Other versions
CN112367229B (en
Inventor
李树彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202011257895.9A priority Critical patent/CN112367229B/en
Publication of CN112367229A publication Critical patent/CN112367229A/en
Application granted granted Critical
Publication of CN112367229B publication Critical patent/CN112367229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a control method and device of intelligent household equipment, electronic equipment and a storage medium, and relates to the technical field of intelligent household equipment.

Description

Control method and device of intelligent household equipment, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method and an apparatus for controlling smart home devices, an electronic device, and a storage medium.
Background
Along with the development of internet of things, the intelligent home technology is gradually started, all intelligent home devices in a house are connected together through the internet of things technology, the remote control is convenient, the living environment intellectualization is realized, and the home safety, the comfort and the convenience are improved.
However, when a user remotely controls a home smart home device, a Domain Name Server (DNS) may have an incorrect address of the resolved Server due to an incorrect resolution, and the user cannot control the smart home device because the resolved Server is not bound to the smart home device.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for controlling smart home devices, an electronic device, and a storage medium, which can solve the above problems.
In a first aspect, an embodiment of the present application provides a method for controlling smart home devices, which is applied to a DNS server, and the method includes: receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by user equipment; analyzing the control request to obtain an analysis result; acquiring a server which indicates the user equipment to be connected with the analysis result as a first server; acquiring a server pre-bound with the intelligent household equipment to be controlled as a second server; when the first server and the second server are different, controlling the user equipment to be connected with the second server.
In a second aspect, an embodiment of the present application provides a control apparatus for smart home devices, the apparatus includes: the receiving module is used for receiving a control request which is sent by user equipment and aims at the intelligent household equipment to be controlled; the analysis module is used for analyzing the control request to obtain an analysis result; a first obtaining module, configured to obtain, as a first server, a server to which the analysis result indicates the user equipment is connected; the second acquisition module is used for acquiring the server pre-bound by the intelligent household equipment to be controlled as a second server; a control module, configured to control the user equipment to connect to the second server when the first server and the second server are different.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above-described methods.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The embodiment of the application provides a control method and device of intelligent household equipment, electronic equipment and a storage medium, a DNS server receives a control request which is sent by user equipment and aims at the intelligent household equipment to be controlled, the control request is analyzed, an analysis result is obtained, the server which is connected with the user equipment and indicated by the analysis result is obtained to serve as a first server, the server which is pre-bound with the intelligent household equipment to be controlled is obtained to serve as a second server, when the first server and the second server are different, the first server is not connected with the intelligent household equipment to be controlled, and the control user equipment is connected with the second server so as to ensure that the user equipment can successfully control the intelligent household equipment to be controlled.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
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 shows a schematic diagram of an intelligent home control system provided by an embodiment of the present application.
Fig. 2 shows a flowchart of a control method for smart home devices according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a control method for smart home devices according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a control method for smart home devices according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a control method for smart home devices according to still another embodiment of the present application;
fig. 6 is a flowchart illustrating a control method for smart home devices according to yet another embodiment of the present application;
fig. 7 is a flowchart illustrating a control method for smart home devices according to still another embodiment of the present application;
fig. 8 is a flowchart illustrating a control method for smart home devices according to yet another embodiment of the present application;
fig. 9 is a flowchart illustrating a control method for smart home devices according to yet another embodiment of the present application;
fig. 10 is a block diagram illustrating a control apparatus of a smart home device according to an embodiment of the present application;
fig. 11 is a block diagram of an electronic device for executing a control method of a smart home device according to an embodiment of the present application;
fig. 12 is a storage unit, according to an embodiment of the present application, configured to store or carry program codes for implementing a control method of a smart home device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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.
Along with the development of internet of things, the intelligent home technology is gradually started, all intelligent home devices in a house are connected together through the internet of things technology, the remote control is convenient, the living environment intellectualization is realized, and the home safety, the comfort and the convenience are improved.
However, when the user remotely controls the smart home devices in the home, the DNS server may resolve an error, which may result in an error in the resolved server address, and the server that resolves the error is not bound to the smart home devices, so the user cannot control the smart home devices through the server that resolves the error.
Therefore, the inventor finds, through long-term research, that a method, an apparatus, an electronic device, and a storage medium for controlling smart home devices provided in an embodiment of the present application are provided, where when a user uses a user device to control a smart home device to be controlled, the user device analyzes a control request when receiving the control request sent by the user device, obtains an analysis result, obtains the analysis result indicating a first server to which the user device is connected, and when the first server is not bound to the smart home device to be controlled, the user device cannot control the smart home device to be controlled, obtains a second server bound to the smart home device to be controlled, and controls the user device to be connected to the second server, thereby implementing control of the smart home device to be controlled. The specific control method of the smart home device is described in detail in the following embodiments.
In order to facilitate understanding of the control method of the smart home devices provided in the embodiment of the present application, a schematic diagram of a smart home control system is shown first in the present application, please refer to fig. 1, where the smart home control system 100 includes a user device 110, a DNS server 120, a first server 131, a plurality of smart home devices 132, a second server 141, a plurality of smart home devices 142, and a to-be-controlled smart home device 143, the user device 110, the first server 131, and the second server 141 are all connected to the DNS server 120, the plurality of smart home devices 132 are connected to the first server 131, and the plurality of smart home devices 142 and the to-be-controlled smart home device 143 are all connected to the second server 141.
In order to ensure that the intelligent home devices in different areas are controlled orderly and the control instructions of the user devices can respond in time, a server is arranged in different areas and is bound with the intelligent home devices in the areas, and the server forwards the interactive information between the user devices and the intelligent home devices in the areas, so that the intelligent home devices in different areas are well controlled.
For example, the first server 131 is arranged in the first region and is used for binding with the plurality of smart home devices 132 in the first region, and the user device may control the plurality of smart home devices 132 in the first region through the first server 131. Similarly, a second server 141 is provided in the second region for binding with the plurality of smart home devices 142 of the second region, and the user device may control the plurality of smart home devices 142 of the second region through the second server 141.
When the user equipment controls a certain intelligent home device to be controlled (for example, the intelligent home device to be controlled 143 in fig. 1), the control request is sent to the DNS server, the DNS server analyzes the control request to obtain a server (for example, a second server) in a corresponding area, the user equipment is controlled to be connected with the server, and the intelligent home device to be controlled is controlled by the server.
Optionally, an application program is installed on the user equipment, and the user can log in the application program through a user account. For a user, there may be multiple sets of properties, and for convenience of management, a corresponding relationship between the user account and the multiple sets of properties, that is, a family table, may be established. A plurality of intelligent household devices are arranged in one house, and in order to facilitate control, the corresponding relation between each house and the intelligent household devices, namely a device table, can be established. In one set of real estate, a plurality of switches may exist, each switch controls a plurality of smart home devices, and for convenience of control, a corresponding relationship between each switch and the plurality of smart home devices, that is, a gateway table, may be established.
It can be understood that a certain user can only control the corresponding smart home devices in the property.
Fig. 2 shows a flowchart of a control method for an intelligent home device according to an embodiment of the present application, please refer to fig. 2, where the control method for the intelligent home device is configured to, when a first server analyzed for the first time is not bound to an intelligent home device to be controlled, obtain a second server pre-bound to the intelligent home device to be controlled, and control a user device to be connected to the second server, so as to control the intelligent home device to be controlled. In a specific embodiment, the method for controlling the smart home devices is applied to the DNS server 120 shown in fig. 1, the control apparatus 200 of the smart home devices shown in fig. 10, and the electronic device 300 (fig. 11) configured with the control apparatus 200 of the smart home devices. The following will describe a specific flow of the present embodiment by taking the DNS server 120 as an example. As will be described in detail with respect to the flow shown in fig. 2, the method for controlling the smart home device may specifically include the following steps:
and step S110, receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by the user equipment.
The user equipment is provided with an application program, and a user can log in the application program through a user account. One account corresponds to a plurality of smart home devices, and a user can select to control one or more smart home devices (i.e., smart home devices to be controlled). The user equipment generates a control request based on an input operation of a user and transmits the control request to the DNS server.
In one embodiment, the control request includes an identifier of the smart home device to be controlled, and the DNS server determines the smart home device to be controlled according to the identifier of the smart home device to be controlled in the control request.
Optionally, the user equipment may be a mobile terminal, a smart phone, a tablet computer, a wearable device, and the like, which is not limited herein.
And step S120, analyzing the control request to obtain an analysis result.
And the DNS server analyzes the control request and acquires a server corresponding to the intelligent household equipment to be controlled as an analysis result.
In one embodiment, the corresponding relations between the plurality of smart home devices and the plurality of servers are established in advance, and are stored in the DNS server. The DNS server obtains the intelligent household equipment to be controlled according to the control request, and then obtains the server corresponding to the intelligent household equipment to be controlled as an analysis result based on the corresponding relation.
Step S130, obtaining the server to which the analysis result indicates the user equipment is connected, as a first server.
The parsing result indicates a server to which the user equipment is connected as a first server. It can be understood that the resolution result of the DNS server determines that the user equipment can be connected to the first server, so as to control the smart home equipment to be controlled.
In an embodiment, the user equipment may be connected to the first server first, and when it is determined in the subsequent step that the first server is connected to the to-be-controlled smart home device, the user may quickly control the to-be-controlled smart home device. And when the follow-up step judges that the first server is not connected with the intelligent household equipment to be controlled, disconnecting the user equipment from the first server.
The DNS server may resolve the error when there are the following situations: when a telecom operator uses a DNS hijacking method, a user is interfered with normal surfing, for example, an advertisement window is popped up, so that a DNS server has wrong analysis results; or the DNS server caches too much information, which may also result in DNS server resolution errors.
The problem that the user equipment cannot be connected with a correct server due to the fact that the DNS server is wrongly analyzed is solved, and therefore the user equipment cannot control the intelligent home equipment to be controlled is solved. Therefore, in the present embodiment, the second server is obtained through the second analysis, and the analysis result of step S120 is verified by determining whether the first server and the second server are the same server. The process of the verification is as shown in steps S140 and S150 described below.
And S140, acquiring a server pre-bound by the intelligent household equipment to be controlled as a second server.
It can be understood that the control request is analyzed again, and the second server pre-bound with the intelligent household equipment to be controlled is determined according to the second analysis result.
In an embodiment, the DNS server parses the control request again to obtain a second parsing result, where the second parsing result indicates a second server to which the smart home device to be controlled is pre-bound. For example, the correspondence between a plurality of smart home devices and a plurality of servers is established in advance, and the correspondence is stored in the DNS server. And the DNS server obtains the intelligent household equipment to be controlled according to the control request again, and then obtains a second server corresponding to the household equipment to be controlled based on the corresponding relation.
In another embodiment, the corresponding relations between the plurality of smart home devices and the plurality of servers are pre-established, and the corresponding relations are stored in all the servers, including the DNS server, the first server, and the second server. According to the analysis results of step S120 and step S130, the control ue may first connect with the first server, and then send the control request to the first server. The first server acquires the intelligent household equipment to be controlled according to the control request, and the corresponding relation is stored in the first server, so that the first server acquires the server bound with the intelligent household equipment to be controlled as a second server based on the corresponding relation, and then sends the identifier of the second server to the DNS server.
Optionally, in order to ensure the accuracy of obtaining by the second server, the server pre-bound to the to-be-controlled smart home device may be obtained multiple times, and if the servers pre-bound to the to-be-controlled smart home device are obtained multiple times and are the same server, the server is determined to be the second server.
Judging whether the first server is the same as the second server or not, if so, pre-binding the first server with the intelligent household equipment to be controlled, and connecting the user equipment with the first server to realize the control of the intelligent household equipment to be controlled; when the first server is different from the second server, the DNS server obtains an incorrect resolution result, and the process proceeds to step S150.
And S150, when the first server and the second server are different, controlling the user equipment to be connected with the second server.
When the first server and the second server are different, the first server is not pre-bound with the intelligent household equipment to be controlled, and therefore the control user equipment is connected with the second server to ensure that a user can control the intelligent household equipment to be controlled bound with the second server.
In the method for controlling the smart home device provided in this embodiment, the DNS server receives a control request, which is sent by the user equipment and is directed to the smart home device to be controlled, analyzes the control request, obtains an analysis result, obtains the analysis result, and indicates a server connected to the user equipment as a first server, obtains a server pre-bound to the smart home device to be controlled as a second server, and when the first server and the second server are different, the first server is not connected to the smart home device to be controlled, and controls the user equipment to be connected to the second server, so as to ensure that the user equipment can successfully control the smart home device to be controlled.
On the basis of the previous embodiment, this embodiment provides a method for controlling smart home devices, where whether a first server is connected to a smart home device to be controlled is checked through a second server, fig. 3 shows a flowchart of a method for controlling smart home devices according to another embodiment of the present application, and please refer to fig. 3, where the method for controlling smart home devices specifically includes the following steps:
step S210, receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by the user equipment.
And S220, analyzing the control request to obtain an analysis result.
Step S230, obtaining a server to which the analysis result indicates the user equipment is connected, as a first server.
For detailed description of steps S210 to S230, please refer to steps S110 to S130, which are not described herein again.
Step S240, sending the control request to the first server, and receiving first feedback information sent by the first server based on the control request.
The DNS server forwards the control request sent by the user equipment to the first server, and the first server analyzes the control request to obtain first feedback information.
In one embodiment, according to a pre-binding relationship between a plurality of smart home devices and a corresponding server, a corresponding relationship between the plurality of smart home devices and a plurality of servers is pre-established, and the corresponding relationship is synchronously stored in all servers, for example, in a DNS server, a first server, and a second server. The first server firstly obtains the intelligent household equipment to be controlled according to the control request, then obtains the server corresponding to the intelligent household equipment to be controlled based on the corresponding relation, and sends the server corresponding to the intelligent household equipment to be controlled to the DNS server as first feedback information.
And S250, acquiring the server to be controlled and pre-bound by the intelligent household equipment indicated by the first feedback information as the second server.
The DNS server obtains a server to be pre-bound by the intelligent household equipment to be controlled and indicated by the first feedback information as a second server according to the first feedback information fed back by the first server.
And S260, when the first server and the second server are different, controlling the user equipment to be connected with the second server.
For the detailed description of step S260, please refer to step S150, which is not described herein again.
In this embodiment, in order to verify whether a first server obtained by a DNS server based on a control request is pre-bound with an intelligent home device to be controlled, a second server is obtained by the first server based on the control request, and if the first server is different from the second server, an analysis result obtained by the DNS server is incorrect, and a user device is controlled to be connected with the second server, so that the user device controls the intelligent home device to be controlled by the second server.
In this embodiment, on the basis of the foregoing embodiment, an intelligent home device is provided, where a second server is used to check whether a first server is connected to an intelligent home device to be controlled, and fig. 4 shows a flowchart of a control method of an intelligent home device according to another embodiment of the present application, and please refer to fig. 4, where the control method of an intelligent home device specifically includes the following steps:
and S310, receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by the user equipment.
And step S320, analyzing the control request to obtain an analysis result.
Step S330, obtaining the server to which the analysis result indicates the user equipment is connected, as a first server.
For the detailed description of steps S310 to S330, refer to steps S110 to S130, which are not described herein again.
Step S340, acquiring a server corresponding to the to-be-controlled smart home device as the second server based on a mapping relationship, where the mapping relationship includes a corresponding relationship between a plurality of smart home devices and a plurality of servers.
The method comprises the steps of establishing corresponding relations between a plurality of intelligent home devices and a plurality of servers according to binding conditions of the intelligent home devices and the servers, wherein the number of the servers is set according to the using conditions of the intelligent home control system in the region, more users use the intelligent home control system in the region, the more servers are set in the region in order to ensure that control instructions of the user devices can respond in time, and conversely, the fewer users use the intelligent home control system in the region, and the fewer servers are set in the region in order to save cost. Therefore, in an area where the number of users of the smart home control system is more, a plurality of servers may be set, one server may be bound to a plurality of smart home devices, and one smart home device may be bound to a plurality of servers in the area. In a region where the number of users of the smart home control system is less, only one server may be set, and the server binds all smart home devices in the region.
Optionally, the mapping relationship is stored in a DNS server, and the DNS server obtains a server corresponding to the smart home device to be controlled, and serves as the second server. It can be understood that, in order to verify whether the resolved first server is correct, the DNS server resolves the control request multiple times (twice in this embodiment), and determines whether the first server is correct by comparing the resolution results of multiple times.
And S350, when the first server and the second server are different, controlling the user equipment to be connected with the second server.
For the detailed description of step S350, please refer to step S150, which is not described herein again.
In this embodiment, in order to verify whether a first server obtained by the DNS server based on the control request is pre-bound with the smart home device to be controlled, a second server is obtained through the DNS server, and if the first server is different from the second server, an analysis result obtained by the DNS server is incorrect, and the user device is controlled to be connected with the second server, so that the user device controls the smart home device to be controlled through the second server.
In an area with many users of the smart home control system, in order to ensure that a control instruction of user equipment can respond in time, the number of servers set in the area is multiple. The embodiment provides a control method of an intelligent home device, which is used for determining a server among a plurality of intelligent home devices to be controlled, and establishing communication between user equipment and the intelligent home device to be controlled through the server, and fig. 5 shows a flowchart of the control method of the intelligent home device according to still another embodiment of the present application, please refer to fig. 5, where the number of the servers pre-bound to the intelligent home device to be controlled is plural, and the control method of the intelligent home device may specifically include the following steps:
and S410, receiving a control request which is sent by the user equipment and aims at the intelligent household equipment to be controlled.
And step S420, analyzing the control request to obtain an analysis result.
Step S430, obtaining the server to which the analysis result indicates the user equipment is connected, as a first server.
For detailed description of steps S410 to S430, please refer to steps S110 to S130, which are not described herein again.
In some embodiments, the capability of the plurality of servers to be pre-bound to the smart home device to be controlled to receive the test signal sent by the user device may be obtained, and the server to be pre-bound to the smart home device to be controlled with the strongest capability to receive the test signal may be selected as the second server, as shown in step S440 and step S450.
Step S440, obtaining signal intensity corresponding to each server in a plurality of servers pre-bound to the intelligent household equipment to be controlled.
In one embodiment, the user equipment sends a test signal, each server to be controlled which is pre-bound to the smart home device receives the test signal, and each server to be controlled which is pre-bound to the smart home device obtains the signal strength of the received test signal and sends the signal strength to the DNS server. It can be understood that the signal strength represents the signal receiving capability of the server pre-bound to the smart home device to be controlled, and when the signal strength is higher, the signal receiving capability is stronger, and conversely, when the signal strength is lower, the signal receiving capability is weaker.
In another embodiment, the magnitude of the signal strength corresponding to each server may be represented by the distance between each server and the user equipment, where the closer the distance is, the greater the signal strength is, and the smaller the distance is, the smaller the signal strength is. For example, a plurality of distances between a plurality of servers pre-bound to the smart home device to be controlled and the user device are obtained, wherein the plurality of servers pre-bound to the smart home device to be controlled correspond to the plurality of distances one to one.
Step S450, determining a server with the highest signal strength from the plurality of servers as the second server.
When the signal intensity is higher, the ability of receiving information sent by the user equipment is higher, the server with the maximum signal intensity pre-bound by the intelligent household equipment to be controlled is determined in the signal intensities corresponding to the servers, and the server is used as the second server, so that stable and rapid communication between the user equipment and the intelligent household equipment to be controlled can be realized through the second server, wherein the servers correspond to the signal intensities one to one.
In another embodiment, the server closest to the user equipment has a stronger ability to receive the signal sent by the user equipment, and the faster the signal sending speed between the user equipment and the smart home equipment to be controlled is, the server closest to the user equipment is used as the second server, and stable and fast communication between the user equipment and the smart home equipment to be controlled can be realized through the second server. Thus, the server closest to the user equipment may be determined as the second server
In other embodiments, the remaining bandwidths of the plurality of servers pre-bound to the smart home device to be controlled may also be obtained, and the server with the largest remaining bandwidth is used as the second server, so that stable communication between the user equipment and the smart home device to be controlled may be achieved.
Step S460, when the first server and the second server are different, controlling the user equipment to connect with the second server.
For the detailed description of step S460, please refer to step S150, which is not described herein again.
In this embodiment, in the plurality of servers pre-bound to the smart home device to be controlled, the server closest to the user device is determined to be the second server, so that stable and fast communication between the user device and the smart home device to be controlled can be realized.
The embodiment provides a control method for smart home devices, where the number of servers pre-bound to be controlled for the smart home devices is multiple, fig. 6 shows a flowchart of a control method for smart home devices according to yet another embodiment of the present application, and referring to fig. 6, the control method for smart home devices specifically includes the following steps:
and step S510, receiving a control request which is sent by the user equipment and aims at the intelligent household equipment to be controlled.
And step S520, analyzing the control request to obtain an analysis result.
Step S530, obtaining the server to which the parsing result indicates the user equipment is connected, as a first server.
For the detailed description of steps S510 to S530, please refer to steps S110 to S130, which are not described herein again.
And step S540, acquiring the current time.
A plurality of servers are arranged in a certain area, and different servers are started to work at different time periods in order to guarantee the service life of the servers. And acquiring the current time, and determining a time period corresponding to the current time.
And S550, determining one server as the second server from a plurality of servers pre-bound with the intelligent household equipment to be controlled based on the current moment.
For example, the number of the servers to be pre-bound to the smart home device to be controlled is 3, and the servers are respectively a server a, a server B and a server C, and the servers are divided into 4 time periods each day according to the time interval of 6 hours. Such as 0:00-6:00, 6:00-12:00, 12:00-18:00, and 18:00-24: 00. And respectively controlling the 3 servers to work in different time periods according to the sequence of the time corresponding to the time periods and the sequence from the server A, the server B to the server C. When the current time is 0:00-6:00, determining the server A as a second server; when the current time is 6:00-12:00, determining the server B as a second server; when the current time is 12:00-18:00, determining the server C as a second server; when the current time is 18:00-24:00, the server A is determined as the second server.
When one of the 3 servers is damaged, for example, the server C is damaged, the 2 servers are respectively controlled to work in different time periods according to the sequence of the time corresponding to the time periods and the sequence from the server a to the server B. When the current time is 0:00-6:00, determining the server A as a second server, and when the current time is 6:00-12:00, determining the server B as the second server; when the current time is 12:00-18:00, the server A is determined as the second server.
In another embodiment, a plurality of servers are arranged in a certain area, and different servers are started to work at different time periods in order to ensure the service life of the servers and the working efficiency of the servers. And acquiring the current time, and determining a time period corresponding to the current time.
For example, the number of the servers pre-bound to the smart home device to be controlled is 4, and the servers are divided into 4 time periods each day according to the time interval of 6 hours. Such as 0:00-6:00, 6:00-12:00, 12:00-18:00, and 18:00-24: 00. And when the current time is 0:00-6:00, the number of the started servers is 1, and the server is determined to be used as a second server. When the current time is 6:00-12:00, the number of the opened servers is 2, and one of the 2 servers is determined as the second server. When the current time is 12:00-18:00, the number of the opened servers is 3, and one of the 3 servers is determined as the second server. When the current time is 18:00-24:00, the number of the opened servers is 3, and one of the 3 servers is determined as the second server.
And step S560, when the first server and the second server are different, controlling the user equipment to be connected with the second server.
For detailed description of step S560, please refer to step S150, which is not described herein again.
In this embodiment, in order to ensure the service life of the server and the working efficiency of the server, different second servers are determined at different times.
The present embodiment provides a method for controlling an intelligent home device, which is used to determine whether a first server and a second server are the same, fig. 7 shows a flowchart of a method for controlling an intelligent home device according to yet another embodiment of the present application, and please refer to fig. 7, where the method for controlling an intelligent home device specifically includes the following steps:
and step S610, receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by the user equipment.
And S620, analyzing the control request to obtain an analysis result.
Step S630, obtaining the server to which the analysis result indicates the user equipment is connected, as a first server.
And step S640, acquiring the server pre-bound by the intelligent household equipment to be controlled as a second server.
For the detailed description of steps S610 to S640, refer to steps S110 to S140, which are not described herein again.
Step S650, a feedback request is sent to the first server, wherein the feedback request is used for requesting to obtain the smart home devices bound to the first server.
The DNS server sends a feedback request to the first server so as to obtain the intelligent home equipment bound by the first server.
Step S660, receiving second feedback information sent by the first server based on the feedback request, where the second feedback information is used to characterize the smart home device bound to the first server.
And establishing a corresponding relation between each server and the plurality of intelligent household equipment according to the binding condition of the servers and the intelligent household equipment, and storing the corresponding relation in the corresponding server. For example, a corresponding relationship between the first server and the plurality of smart home devices 132 is established; a correspondence between the second server and the plurality of smart home devices 142 is established.
The first server obtains a plurality of smart home devices 132 corresponding to the first server based on the corresponding relationship, and generates second feedback information according to the plurality of smart home devices 132.
Step S670, when the smart home devices bound to the first server do not include the smart home device to be controlled, determining that the first server is different from the second server.
The smart home devices bound by the first server do not include the smart home devices to be controlled, and it is determined that the first server is different from the second server, that is, as shown in fig. 1, the user device 110 cannot control the smart home devices 143 to be controlled through the first server.
Step S680, when the first server and the second server are different, controlling the user equipment to connect with the second server.
For the detailed description of step S680, please refer to step S150, which is not described herein again.
The present embodiment provides a method for controlling an intelligent home device, which is configured to determine whether a first server is the same as a second server, so as to determine whether the first server is connected to an intelligent home device to be controlled, where fig. 8 shows a flowchart of a method for controlling an intelligent home device according to yet another embodiment of the present application, please refer to fig. 8, where the method for controlling an intelligent home device specifically includes the following steps:
and step S710, receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by the user equipment.
And S720, analyzing the control request to obtain an analysis result.
Step S730, obtaining the analysis result indicating the server to which the user equipment is connected, as a first server.
And step S740, acquiring the server pre-bound by the intelligent household equipment to be controlled as a second server.
For the detailed description of steps S710 to S740, refer to steps S110 to S140, which are not described herein again.
Step S750, a connection request is sent to the first server, wherein the connection request is used for requesting to acquire feedback information of successful connection between the first server and the intelligent household equipment to be controlled.
The DNS server sends the connection request to a first server, when the first server is bound with the intelligent home equipment to be controlled, the first server is connected with the intelligent home equipment to be controlled based on the connection request, and third feedback information is fed back to the DNS server. After receiving the third feedback information, the DNS server determines that the first server is successfully connected with the intelligent home equipment to be controlled, and the user controls the intelligent home equipment to be controlled through the first server.
Step S760, when third feedback information sent by the first server is not received within a preset time length, it is determined that the first server is different from the second server, wherein the third feedback information is used for representing that the first server is successfully connected with the to-be-controlled intelligent household equipment according to the connection request.
When the third feedback information sent by the first server is not received within the preset time, it is determined that the first server is connected with the intelligent household equipment to be controlled, and the user equipment cannot control the intelligent household equipment to be controlled through the first server.
Optionally, the preset time duration may be a time duration from when the first server receives the connection request when the first server is bound to the smart home device to be controlled to when the first server generates the third feedback information and sends the third feedback information to the DNS server, for example, the preset time duration may be 0.2 milliseconds.
Step S770, when the first server and the second server are different, controlling the user equipment to be connected with the second server.
For the detailed description of step S770, please refer to step S150, which is not described herein again.
In this embodiment, a flowchart of a control method of an intelligent home device is shown, please refer to fig. 9, where the method is applied to the intelligent home control system 100 shown in fig. 1, and the control method of the intelligent home device may specifically include the following steps:
step 810, the user equipment sends a control request aiming at the intelligent household equipment to be controlled to the DNS server.
Step S820, the DNS server parses the control request, and obtains a parsing result.
Step S830, the DNS server obtains a server to which the resolution result indicates the user equipment is connected, and uses the server as the first server.
Step 840, the DNS server sends a feedback request to the first server.
And step S850, the first server sends fourth feedback information to the DNS based on the feedback request, wherein the fourth feedback information is used for representing that the server bound with the intelligent household equipment to be controlled is the second server.
Step S860, when the first server is different from the second server, the DNS server sends a connection instruction to the user equipment.
The steps related to this embodiment may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
To implement the above method embodiments, this embodiment provides a control apparatus for smart home devices, fig. 10 shows a block diagram of the control apparatus for smart home devices according to an embodiment of the present application, please refer to fig. 10, which is described below with reference to the block diagram of fig. 10, where the smart home device 200 includes: a receiving module 210, a parsing module 220, a first obtaining module 230, a second obtaining module 240, and a control module 250.
The receiving module 210 is configured to receive a control request, which is sent by a user equipment and is for an intelligent home device to be controlled.
And the analysis module 220 is configured to analyze the control request to obtain an analysis result.
A first obtaining module 230, configured to obtain, as the first server, a server to which the analysis result indicates the ue is connected.
The second obtaining module 240 is configured to obtain the server pre-bound to the smart home device to be controlled, and use the server as a second server.
A control module 250, configured to control the user equipment to connect to the second server when the first server and the second server are different.
Optionally, the second obtaining module 240 includes: a feedback sub-module and a first determination sub-module.
And the feedback sub-module is used for sending the control request to the first server and receiving first feedback information sent by the first server based on the control request.
And the first determining submodule is used for acquiring the server to be controlled and pre-bound by the intelligent household equipment indicated by the first feedback information, and the server is used as the second server.
Optionally, the second obtaining module 240 includes: a second determination submodule.
And the second determining submodule is used for acquiring a server corresponding to the intelligent household equipment to be controlled as the second server based on a mapping relation, wherein the mapping relation comprises the corresponding relation between a plurality of intelligent household equipment and a plurality of servers.
Optionally, the number of the servers pre-bound to the smart home device to be controlled is multiple, and the second obtaining module 240 includes: a signal strength acquisition sub-module and a third determination sub-module.
And the signal intensity acquisition submodule is used for acquiring the signal intensity corresponding to each server in the plurality of servers pre-bound by the intelligent household equipment to be controlled.
And a third determining submodule, configured to determine, as the second server, a server with the highest signal strength from the plurality of servers.
Optionally, the second obtaining module 240 includes: a current time obtaining sub-module and a fourth determining sub-module.
And the current moment obtaining submodule is used for obtaining the current moment.
And the fourth determining submodule is used for determining one server as the second server from the plurality of servers pre-bound with the intelligent household equipment to be controlled based on the current moment.
Optionally, the control apparatus 200 of the smart home device further includes: the device comprises a request feedback module, a feedback receiving module and a judging module.
The request feedback module is used for sending a feedback request to the first server, wherein the feedback request is used for requesting to acquire the intelligent home equipment bound by the first server;
the first feedback receiving module is used for receiving second feedback information sent by the first server based on the feedback request, wherein the second feedback information is used for representing the smart home equipment bound with the first server;
and the judging module is used for determining that the first server is different from the second server when the intelligent household equipment bound by the first server does not include the intelligent household equipment to be controlled.
Optionally, the control apparatus 200 of the smart home device further includes: a request connection module and a second feedback receiving module.
The connection request is used for requesting to acquire feedback information of successful connection between the first server and the intelligent household equipment to be controlled.
And the second feedback receiving module is used for determining that the first server is different from the second server when third feedback information sent by the first server is not received within a preset time length, wherein the third feedback information is used for representing that the first server is successfully connected with the to-be-controlled intelligent household equipment according to the connection request.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 11, fig. 11 is a block diagram of an electronic device for executing a method for controlling a smart home device according to an embodiment of the present application, which shows a structural block diagram of an electronic device 300 provided in the embodiment of the present application. The electronic device 300 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 300 in the present application may include one or more of the following components: a processor 310, a memory 320, and one or more applications, wherein the one or more applications may be stored in the memory 320 and configured to be executed by the one or more processors 310, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 310 may include one or more processing cores, among other things. The processor 310 connects various parts throughout the electronic device 300 using various interfaces and lines, and performs various functions of the electronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 320 and calling data stored in the memory 320. Alternatively, the processor 710 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 310 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 310, but may be implemented by a communication chip.
The Memory 320 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 320 may be used to store instructions, programs, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the mobile terminal in use (such as a phonebook, audio-video data, chat log data), and the like.
Referring to fig. 12, fig. 12 is a storage unit for storing or carrying a program code for implementing a control method of smart home devices according to an embodiment of the present application. The computer-readable medium 400 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 400 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. Alternatively, the computer-readable storage medium 400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing 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 810 may be compressed, for example, in a suitable form.
To sum up, according to the control method, the control device, the electronic device and the storage medium for the smart home device, the DNS server receives a control request for the smart home device to be controlled sent by the user device, parses the control request, obtains a parsing result, obtains a server indicating connection of the user device as a first server according to the parsing result, obtains a server pre-bound to the smart home device to be controlled as a second server, and when the first server and the second server are different, the first server is not connected with the smart home device to be controlled, and the control user device is connected with the second server, so that the user device can be ensured to successfully control the smart home device to be controlled.
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 (10)

1. A control method of intelligent household equipment is applied to a DNS (domain name system) server, and comprises the following steps:
receiving a control request aiming at the intelligent household equipment to be controlled, which is sent by user equipment;
analyzing the control request to obtain an analysis result;
acquiring a server which indicates the user equipment to be connected with the analysis result as a first server;
acquiring a server pre-bound with the intelligent household equipment to be controlled as a second server;
when the first server and the second server are different, controlling the user equipment to be connected with the second server.
2. The method according to claim 1, wherein the step of obtaining the server pre-bound to the smart home device to be controlled as a second server specifically comprises:
sending the control request to the first server, and receiving first feedback information sent by the first server based on the control request;
and acquiring the server to be controlled pre-bound by the intelligent household equipment indicated by the first feedback information as the second server.
3. The method according to claim 1, wherein the step of obtaining the server pre-bound to the smart home device to be controlled as a second server specifically comprises:
and acquiring a server corresponding to the intelligent household equipment to be controlled as the second server based on a mapping relation, wherein the mapping relation comprises the corresponding relation between a plurality of intelligent household equipment and a plurality of servers.
4. The method according to claim 1, wherein if the number of the servers pre-bound to the smart home device to be controlled is plural, the step of obtaining the server pre-bound to the smart home device to be controlled as the second server specifically comprises:
acquiring signal intensity corresponding to each server in a plurality of servers pre-bound by intelligent household equipment to be controlled;
and determining the server with the highest signal strength from the plurality of servers as the second server.
5. The method according to claim 1, wherein if the number of the servers pre-bound to the smart home device to be controlled is plural, the step of obtaining the server pre-bound to the smart home device to be controlled as the second server specifically comprises:
acquiring the current moment;
and determining one server as the second server from a plurality of servers pre-bound with the intelligent household equipment to be controlled based on the current moment.
6. The method according to any one of claims 1 to 5, further comprising, before the step of controlling the user equipment to connect to the second server when the first server and the second server are different:
sending a feedback request to the first server, wherein the feedback request is used for requesting to acquire the intelligent home equipment bound by the first server;
receiving second feedback information sent by the first server based on the feedback request, wherein the second feedback information is used for representing the smart home equipment bound with the first server;
and when the intelligent household equipment bound by the first server does not comprise the intelligent household equipment to be controlled, determining that the first server is different from the second server.
7. The method according to any of claims 1-5, wherein before the step of controlling the user equipment to connect to the second server when the first server and the second server are different, further comprising:
sending a connection request to the first server, wherein the connection request is used for requesting to acquire feedback information of successful connection between the first server and the intelligent household equipment to be controlled;
and when third feedback information sent by the first server is not received within a preset time length, determining that the first server is different from the second server, wherein the third feedback information is used for representing that the first server is successfully connected with the intelligent household equipment to be controlled according to the connection request.
8. The utility model provides a controlling means of intelligent household equipment which characterized in that, the device includes:
the receiving module is used for receiving a control request which is sent by user equipment and aims at the intelligent household equipment to be controlled;
the analysis module is used for analyzing the control request to obtain an analysis result;
a first obtaining module, configured to obtain, as a first server, a server to which the analysis result indicates the user equipment is connected;
the second acquisition module is used for acquiring the server pre-bound by the intelligent household equipment to be controlled as a second server;
a control module, configured to control the user equipment to connect to the second server when the first server and the second server are different.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN202011257895.9A 2020-11-11 2020-11-11 Control method and device of intelligent household equipment, electronic equipment and storage medium Active CN112367229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011257895.9A CN112367229B (en) 2020-11-11 2020-11-11 Control method and device of intelligent household equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011257895.9A CN112367229B (en) 2020-11-11 2020-11-11 Control method and device of intelligent household equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112367229A true CN112367229A (en) 2021-02-12
CN112367229B CN112367229B (en) 2022-05-03

Family

ID=74514360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011257895.9A Active CN112367229B (en) 2020-11-11 2020-11-11 Control method and device of intelligent household equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112367229B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825895A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Information processing method and electronic device
CN107295116A (en) * 2017-05-11 2017-10-24 上海红阵信息科技有限公司 A kind of domain name analytic method, apparatus and system
US20170346649A1 (en) * 2016-05-31 2017-11-30 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for controlling smart home device to upload data, method and apparatus for acquiring data uploaded by smart home device
CN108683574A (en) * 2018-04-13 2018-10-19 青岛海信智慧家居系统股份有限公司 A kind of apparatus control method, server and intelligent domestic system
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN111556178A (en) * 2020-04-26 2020-08-18 北京达佳互联信息技术有限公司 Analytic system, method, equipment and storage medium
CN111918268A (en) * 2020-07-31 2020-11-10 宁波奥克斯电气股份有限公司 Control method and device of intelligent equipment, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825895A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Information processing method and electronic device
US20170346649A1 (en) * 2016-05-31 2017-11-30 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for controlling smart home device to upload data, method and apparatus for acquiring data uploaded by smart home device
CN107295116A (en) * 2017-05-11 2017-10-24 上海红阵信息科技有限公司 A kind of domain name analytic method, apparatus and system
CN108683574A (en) * 2018-04-13 2018-10-19 青岛海信智慧家居系统股份有限公司 A kind of apparatus control method, server and intelligent domestic system
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN111556178A (en) * 2020-04-26 2020-08-18 北京达佳互联信息技术有限公司 Analytic system, method, equipment and storage medium
CN111918268A (en) * 2020-07-31 2020-11-10 宁波奥克斯电气股份有限公司 Control method and device of intelligent equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112367229B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US11711434B2 (en) Information transmission method and device
US20230040580A1 (en) Binding method and system for device network configuration, and mobile terminal and storage medium
US20190152065A1 (en) Intelligent device system and intelligent device control method
CN113316926B (en) Domain name processing method, device, electronic equipment and storage medium
CN109556229B (en) Control method of air conditioning equipment and air conditioning equipment
CN109561059B (en) Account login method and system, terminal and storage medium thereof
KR20210110335A (en) Smart device network configuration method and related devices
CN112188277B (en) Screen projection control method and device, electronic equipment and computer program medium
CN110049010B (en) Method and system for connecting distributed platform terminal equipment with server
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN105430645A (en) Method of accessing intelligent device to router, intelligent device and router
CN113596832B (en) Network connection establishment method and device, storage medium and electronic device
CN113615141A (en) Account number association method, device, system, server and storage medium
CN112752325A (en) Network distribution method and device of household appliance, computer readable storage medium and processor
CN113746837B (en) Information processing method and apparatus, electronic device, and computer readable medium
CN112367229B (en) Control method and device of intelligent household equipment, electronic equipment and storage medium
CN105491153A (en) Sharing method and device and mobile terminal
CN111338673B (en) Equipment debugging method and device, electronic equipment and storage medium
CN110493120B (en) Method and equipment for sending equipment operation instruction
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
CN110366014A (en) Acquisition methods, television set, server and the mobile terminal of searching character
CN105915639B (en) Page access method and device
CN113535298A (en) Display switching method and device for cloud game desktop
CN107729302B (en) Decoding algorithm determination method, device, terminal and storage medium
EP2672663B1 (en) Apparatus and method of storing user information in home network

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