Smart home system and smart home equipment network distribution method
By broadcasting distribution network information within the local network through smart home devices, other devices automatically receive and connect, solving the cumbersome problem of distribution network of smart home devices and improving user experience.
Patent Information
- Application Number
- CN202410970582.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-26
AI Technical Summary
The process of network distribution of smart home devices is cumbersome, and users need to manually configure network information for each device, which affects the user experience.
After connecting to the cloud server through any smart home device in the local network, the distribution network information will be broadcast, and other devices will automatically receive and connect to the distribution network, simplifying the distribution process.
There is no need for users to manually configure network information for each device, and the automated distribution process is greatly simplified and the user experience is improved.
Smart Images

Figure CN119030811A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of wireless communication technology, and more particularly to a smart home system and a smart home device networking method. Background Art
[0002] Smart home devices can be locally networked through power line carriers and other methods to facilitate the management and control of the networked smart home devices.
[0003] Smart home devices themselves also have network interfaces. If users need smart home devices to connect to the Internet, they need to manually configure network information for each smart home device through a mobile phone app. The network configuration process is cumbersome and repetitive, affecting the user experience.
[0004] Currently, users can only manually configure network information for each smart home device, which makes the network configuration process cumbersome and repetitive. This affects the user experience and is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of this specification provide a smart home system and a smart home device networking method, which enables a user to only configure network information for any smart home device in a local network. The smart home device can broadcast the network configuration information to other smart home devices in the local network, so that other smart home devices can automatically configure the network according to the received network configuration information, thereby simplifying the network configuration process.
[0006] In order to solve any of the above technical problems, the specific technical solutions of the embodiments of this specification are as follows:
[0007] On the one hand, an embodiment of this specification provides a smart home system, including:
[0008] Cloud servers;
[0009] At least two smart home devices, wherein the at least two smart home devices can be locally networked via a first communication method;
[0010] Any smart home device in the local network can be used as a first smart home device to perform a network connection between the first smart home device and the cloud server in a second communication mode, and after the network connection is successful, the first smart home device broadcasts network connection information in the local network;
[0011] Other smart home devices in the local network serve as second smart home devices, and the second smart home devices receive the network configuration information.
[0012] Furthermore, the system also includes new smart home devices;
[0013] After the new smart home device accesses the local network through the first communication method, it can receive the network configuration information, become the second smart home device after receiving the network configuration information, and perform the network configuration connection of the second communication method based on the network configuration information and the cloud server.
[0014] Further, when the first smart home device cannot broadcast the network configuration information, determining one of the second smart home devices as a new first smart home device;
[0015] The new first smart home device broadcasts the network configuration information in the local network.
[0016] Further, determining one of the second smart home devices as a new first smart home device includes:
[0017] A smart home device is determined as the new first smart home device according to the random delay time generated by each of the second smart home devices.
[0018] Further, determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices includes:
[0019] When the second smart home device does not receive the broadcasted network configuration information within the broadcast period, determining whether a voting invitation broadcasted in the local network is received within the random delay time corresponding to the second smart home device;
[0020] If the voting invitation is not received, the second smart home device is used as a candidate device, and the voting invitation is broadcasted in the local network, and it is determined whether the candidate device is used as the new first smart home device according to the voting result;
[0021] If the voting invitation is received, the second smart home device acts as a follower device and votes for the candidate device that initiated the voting invitation.
[0022] Further, determining whether the candidate device is used as the new first smart home device according to the voting result includes:
[0023] Determine whether the number of votes for the candidate device is the largest among the number of votes for all candidate devices in the local network;
[0024] If so, the candidate device is determined as the new first smart home device.
[0025] Based on the same inventive concept, the embodiment of this specification also provides a method for configuring a smart home device network, the method comprising:
[0026] After at least two smart home devices are locally networked through a first communication method, any smart home device in the local network can be used as a first smart home device to perform a network connection between the first smart home device and a cloud server through a second communication method, and after the network connection is successful, the first smart home device broadcasts network connection information in the local network;
[0027] Other smart home devices in the local network serve as second smart home devices, and the second smart home devices receive the network configuration information.
[0028] Furthermore, the method further comprises:
[0029] When a new smart home device accesses the local network through the first communication method, the new smart home device can receive the network configuration information, become a second smart home device after receiving the network configuration information, and perform network configuration connection of the second communication method with the cloud server according to the network configuration information.
[0030] Furthermore, the method further comprises:
[0031] When the first smart home device cannot broadcast the network configuration information, determining one of the second smart home devices as a new first smart home device;
[0032] The new first smart home device broadcasts the network configuration information in the local network.
[0033] Further, determining one of the second smart home devices as a new first smart home device includes:
[0034] A smart home device is determined as the new first smart home device according to the random delay time generated by each of the second smart home devices.
[0035] Further, determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices includes:
[0036] When the second smart home device does not receive the broadcasted network configuration information within the broadcast period, determining whether a voting invitation broadcasted in the local network is received within the random delay time corresponding to the second smart home device;
[0037] If the voting invitation is not received, the second smart home device is used as a candidate device, and the voting invitation is broadcasted in the local network, and it is determined whether the candidate device is used as the new first smart home device according to the voting result;
[0038] If the voting invitation is received, the second smart home device is used as a follower device and votes for the candidate device that initiates the voting invitation.
[0039] Furthermore, if the voting invitation is not received, the second smart home device is used as a candidate device, and the voting invitation is broadcasted in the local network, which further includes:
[0040] The candidate device votes for itself.
[0041] Furthermore, if the voting invitation is received, the second smart home device is used as a follower device, and voting for the candidate device that initiated the voting invitation also includes:
[0042] If voting invitations from more than one candidate device are received, voting is performed only on the candidate device corresponding to the voting invitation received first.
[0043] Further, determining whether the candidate device is used as the new first smart home device according to the voting result includes:
[0044] Determine whether the number of votes for the candidate device is the largest among the number of votes for all candidate devices in the local network;
[0045] If so, the candidate device is determined as the new first smart home device.
[0046] Furthermore, the process of determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices further includes:
[0047] If a smart home device cannot be determined as the new first smart home device based on the random delay time generated by each of the second smart home devices, the second smart home devices regenerate their own random delay times and determine a smart home device as the new first smart home device based on the regenerated random delay time.
[0048] Furthermore, in the process of determining whether the candidate device is used as the new first smart home device according to the voting result, the follower device and / or the candidate device can only vote once.
[0049] On the other hand, an embodiment of the present specification further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0050] Finally, the embodiments of this specification also provide a computer program product, wherein the computer program product includes a computer program, and the computer program implements the above method when executed by a processor.
[0051] By using the embodiments of the present specification, the user only needs to perform network connection of the second communication method for any smart home device in the local network based on the first communication method and the cloud server. After the network connection is successful, the smart home device will broadcast the network connection information in the local network. Other smart home devices in the local network receive the broadcasted network connection information and can automatically perform network connection with the cloud server according to the network connection information. The user does not need to manually perform network connection of the second communication method for each smart home device in the local network and the cloud server, thereby simplifying the network connection process and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 The figure shows a schematic diagram of the structure of a smart home system in an embodiment of this specification;
[0054] Figure 2 The figure is a flow chart of a method for configuring a network for a smart home device in an embodiment of the present specification;
[0055] Figure 3 It is a schematic diagram of a process of establishing a network connection using a second communication method with a cloud server after a new smart home device accesses a local network based on a first communication method in an embodiment of this specification;
[0056] Figure 4 It is a schematic diagram of a process of re-determining a first smart home device when the first smart home device cannot broadcast network configuration information in an embodiment of this specification;
[0057] Figure 5 It is a schematic diagram of a process of determining a smart home device as a new first smart home device according to the random delay time generated by each second smart home device in an embodiment of this specification;
[0058] Figure 6 The figure is a schematic diagram of a process of determining whether the candidate device is used as a new first smart home device according to the voting result in an embodiment of this specification;
[0059] Figure 7 The figure is a schematic diagram of the structure of a computer device in an embodiment of the present specification.
[0060]
Description of reference numerals
[0061] 101. Cloud server;
[0062] 102. Smart home devices;
[0063] 702. Computer equipment;
[0064] 704. Processing equipment;
[0065] 706. Storage resources;
[0066] 708. Drive system;
[0067] 710, input / output module;
[0068] 712. Input devices;
[0069] 714. Output devices;
[0070] 716. Presentation equipment;
[0071] 718. Graphical user interface;
[0072] 720, network interface;
[0073] 722. Communication link;
[0074] 724. Communication bus. DETAILED DESCRIPTION
[0075] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of this specification.
[0076] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this specification and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0077] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0078] It should be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0079] like Figure 1 The figure shows a schematic diagram of the structure of the smart home system in the embodiment of the present specification, including a cloud server 101 and at least two smart home devices 102 locally networked based on a first communication method.
[0080] In view of the problem that in the prior art, when a user needs to perform network connection of each smart home device 102 and the cloud server 101 in the second communication mode, each smart home device 102 needs to be manually configured separately, and the configuration process is cumbersome, in the smart home system of the embodiment of the present specification, any smart home device 102 in the local network based on the first communication mode can be used as the first smart home device, and the first smart home device and the cloud server 101 are connected to the network in the second communication mode. After the network connection is successful, the first smart home device broadcasts the network configuration information in the local network;
[0081] The smart home device 102 in the local network serves as a second smart home device, and the second smart home device receives the network configuration information.
[0082] Based on the same inventive concept, the embodiment of this specification also provides a method for configuring a smart home device network. Figure 2 The figure shows a flow chart of a method for configuring a network for a smart home device in an embodiment of the present specification. The figure describes the configuration process of smart home devices in a local network. The sequence of steps listed in the embodiment is only one of many execution sequences of steps and does not represent the only execution sequence. When the actual system or device product is executed, it can be executed in the order or in parallel according to the method shown in the embodiment or the accompanying drawings.
[0083] Specifically, Figure 2 As shown, the smart home device network configuration method includes:
[0084] Step 201: After at least two smart home devices are locally networked through the first communication method, any smart home device in the local network can be used as a first smart home device to perform a network connection between the first smart home device and the cloud server through the second communication method. After the network connection is successful, the first smart home device broadcasts the network connection information in the local network;
[0085] Step 202: other smart home devices in the local network serve as second smart home devices, and the second smart home devices receive network configuration information.
[0086] By using the embodiments of the present specification, the user only needs to perform network connection of the second communication method for any smart home device in the local network based on the first communication method and the cloud server. After the network connection is successful, the smart home device will broadcast the network connection information in the local network. Other smart home devices in the local network receive the broadcasted network connection information and can automatically perform network connection with the cloud server according to the network connection information. The user does not need to manually perform network connection of the second communication method for each smart home device in the local network and the cloud server, thereby simplifying the network connection process and improving the user experience.
[0087] In the embodiments of this specification, the first communication method includes but is not limited to power line carrier communication (PLC), the local networking can be a PLC-based networking in a local home, each smart home device in the local home can automatically initiate a local networking connection after power-on, and information can be transmitted between smart home devices through the first communication method.
[0088] The cloud server can be a server that stores data of smart home devices and / or controls smart home devices. The second communication method includes but is not limited to Internet communication. Any smart home device in the local network can be used as the first smart home device. The user can connect the first smart home device to the cloud server through the second communication method. After the network connection is successful, it means that the network information of the first smart home device is correct. Then, the first smart home device can broadcast the network information to other smart home devices in the local network. The network information may include a router account and password.
[0089] For example, a router in a user's local home can connect to a cloud server. The user configures the correct account and password of the router for a first smart home device. After successfully connecting to the router, the first smart home device can connect to the cloud server through the router. Then, the first smart home device can broadcast the correct account and password of the router to other smart home devices in the local network through the local network.
[0090] Other smart home devices in the local network serve as second smart home devices and receive the network configuration information of the first smart home device.
[0091] If the second smart home device does not establish a connection with the cloud server using the second communication method, the second smart home device can establish a connection with the cloud server based on the received network configuration information.
[0092] If the second smart home device has established a connection with the cloud server using the second communication method, the second smart home device does not need to respond to the network configuration information.
[0093] For example, if the second smart home device is not connected to the router in the local home, the second smart home device connects to the router according to the received correct router account and password. Otherwise, it does not need to respond to the received router account and password.
[0094] It can be understood that in the smart home device networking method of the embodiments of this specification, the user can manually select any smart home device as the first smart home device that broadcasts network configuration information, that is, the user can configure the network for any smart home device in the home based on the location of the smart home device, the convenience of network configuration, etc., and the user does not need to configure the network for a specific smart home device, thereby further improving the convenience of smart home device networking.
[0095] According to one embodiment of the present specification, the smart home system further includes a new smart home device;
[0096] After the new smart home device is connected to the local network through the first communication method, it can receive network configuration information, become a second smart home device after receiving the network configuration information, and perform network configuration connection through the second communication method based on the network configuration information and the cloud server.
[0097] In the embodiments of this specification, a new smart home device refers to a device that has not been added to the local network before, such as a new device or a second-hand device purchased by a user. After the new smart home device is deployed in the home and powered on, the new smart home device can automatically join the local network through PLC. When the first smart home device broadcasts the network configuration information in the local network, the new smart home device receives the network configuration information and then automatically configures the network according to the received network configuration information.
[0098] For example, when a user purchases a new or second-hand device, he only needs to deploy it at home and power it on. The device will automatically join the local network and receive the correct router account and password broadcast in the local network. Then, it will connect to the router according to the received correct router account and password, thereby establishing a communication connection with the cloud server. The user does not need to manually configure the network for the new smart home device, which improves the user experience.
[0099] Furthermore, if Figure 3 As shown, after the new smart home device receives the network configuration information, the method further includes:
[0100] Step 301: The new smart home device determines whether network configuration is required;
[0101] Step 302: If yes, perform network configuration according to the received network configuration information.
[0102] It can be understood that the new smart home device may have been manually configured by the user before joining the local network. Therefore, after joining the local network and receiving the broadcast network configuration information, the new smart home device can also determine whether network configuration is needed. If necessary, it will be configured according to the received network configuration information. If not, there is no need to process the network configuration information.
[0103] According to an embodiment of the present specification, in order to avoid interruption of broadcasting due to power failure or other failures of the first smart home device, such as Figure 4 As shown, the method also includes:
[0104] Step 401: when the first smart home device cannot broadcast the network configuration information, determine one of the second smart home devices as a new first smart home device;
[0105] Step 402: The new first smart home device broadcasts network configuration information in the local network.
[0106] In the embodiments of the present specification, the first smart home device may be unable to broadcast the network configuration information due to power outage, broadcast module failure, network failure, device downtime, etc. At this time, a smart home device will be determined from the second smart home devices in the local network as the new first smart home device, and the new first smart home device will broadcast the network configuration information in the local network to avoid broadcast interruption.
[0107] Preferably, the embodiment of this specification will determine a smart home device from the second smart home devices that have been successfully connected to the cloud server in the local network as the new first smart home device.
[0108] In an embodiment of the present specification, in order to automatically determine a new first smart home device and reduce manual participation, according to an embodiment of the present specification, determining one of the second smart home devices as the new first smart home device includes:
[0109] A smart home device is determined as a new first smart home device according to the random delay time generated by each second smart home device.
[0110] In the embodiments of this specification, the random delay time refers to a random waiting period after the broadcasted network configuration information is not received within the broadcast period. The random delay time is randomly generated by each second smart home device, so the random delay time of each second smart home device can be different, so that a new first smart home device can be quickly determined according to their respective random delay times.
[0111] According to one embodiment of this specification, Figure 5 As shown, determining a smart home device as a new first smart home device according to the random delay time generated by each second smart home device includes:
[0112] Step 501: when the second smart home device does not receive the broadcasted network configuration information within the broadcast period, it is determined whether the second smart home device receives the voting invitation broadcasted in the local network within the random delay time corresponding to the second smart home device;
[0113] Step 502: If no voting invitation is received, the second smart home device is used as a candidate device, and a voting invitation is broadcasted in the local network, and it is determined whether the candidate device is used as a new first smart home device according to the voting result;
[0114] Step 503: If a voting invitation is received, the second smart home device is used as a follower device and votes for the candidate device that initiated the voting invitation.
[0115] In the embodiment of the present specification, if any second smart home device does not receive the network configuration information within the broadcast period, it determines whether it has received the voting invitation sent by other second smart home devices within its own random delay time. If it has not received it, it will be used as a candidate device. Preferably, the candidate device has been successfully connected to the cloud server network configuration and broadcasts the voting invitation in the local network; if it has received it, it will be used as a follower device to vote for the candidate device corresponding to the voting invitation. Finally, the candidate devices determine a smart home device as the new first smart home device according to their respective voting results.
[0116] Preferably, if Figure 6 As shown, determining whether the candidate device is used as the new first smart home device according to the voting result includes:
[0117] Step 601: Determine whether the number of votes for the candidate device is the largest among the number of votes for all candidate devices in the local network;
[0118] Step 602: If yes, the candidate device is determined as a new first smart home device.
[0119] In an embodiment of the present specification, the candidate device broadcasts a voting invitation to the follower device, the follower device votes for the candidate device corresponding to the received voting invitation, and then calculates the total votes of each candidate device, and uses the candidate device with the highest total votes as the new first smart home device. Other devices in the local network are still used as second smart home devices, and the new first smart home device broadcasts the network configuration information in the local network.
[0120] In the embodiment of the present specification, if a smart home device cannot be determined as the new first smart home device according to the random delay time generated by each of the second smart home devices, for example, if there are at least two second smart home devices with the same random delay time, then the two second smart home devices will simultaneously broadcast voting invitations in the local network, and the number of votes for the two second smart home devices may be the same, so it is impossible to determine the second smart home device with the largest number of votes. In response to this situation, the second smart home devices in the embodiment of the present specification regenerate their own random delay time, and determine a smart home device as the new first smart home device based on the regenerated random delay time.
[0121] In the embodiment of the present specification, because the new first smart home device is selected according to the number of votes of each candidate device, the second smart home device can also vote for itself when serving as a candidate device.
[0122] If the same follower device receives a voting invitation from more than one candidate device, it will only vote for the candidate device corresponding to the first received voting invitation. And the follower device and / or the candidate device can only vote once, thereby avoiding the complicated process of calculating the number of votes for the candidate device and improving the speed of determining the new first smart home device.
[0123] It can be understood that, through the method for determining a new first smart home device in the embodiment of this specification, the new first smart home device can be quickly determined from the second smart home devices, thereby quickly completing the interruption recovery of broadcast distribution network information.
[0124] According to one embodiment of the present specification, the smart home device in the embodiment of the present specification may be a computer device including a computer minimum system, such as Figure 7The structure diagram of the computer device of the embodiment of this specification is shown, and the computer device in this embodiment can execute the method of the embodiment of this specification described above. The computer device 702 may include one or more processing devices 704, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 702 may also include any storage resource 706, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the storage resource 706 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 702. In one case, when the processing device 704 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 702 can perform any operation of the associated instruction. The computer device 702 also includes one or more drive systems 708 for interacting with any storage resources, such as a hard disk drive system, an optical disk drive system, and the like.
[0125] The computer device 702 may also include an input / output module 710 (I / O) for receiving various inputs (via input devices 712) and for providing various outputs (via output devices 714). A specific output mechanism may include a presentation device 716 and an associated graphical user interface (GUI) 718. In other embodiments, the input / output module 710 (I / O), the input device 712, and the output device 714 may not be included, and the computer device 702 may be used as a computer device in a network. The computer device 702 may also include one or more network interfaces 720 for exchanging data with other devices via one or more communication links 722. One or more communication buses 724 couple the components described above together.
[0126] The communication link 722 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 722 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0127] The embodiments of the present specification also provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above method is implemented.
[0128] The embodiments of the present specification also provide a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the above method.
[0129] It should be understood that in the various embodiments of the present specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present specification.
[0130] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the embodiments of this specification generally indicates that the associated objects before and after are in an "or" relationship.
[0131] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this specification can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of this specification.
[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0133] In the several embodiments provided in the embodiments of this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.
[0135] In addition, each functional unit in each embodiment of the present specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0137] The embodiments of this specification use specific embodiments to illustrate the principles and implementation methods of the embodiments of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of this specification. At the same time, for those skilled in the art, according to the ideas of the embodiments of this specification, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of this specification.
Claims
1. A smart home system, characterized in that: The system comprises: Cloud servers; At least two smart home devices, wherein the at least two smart home devices can be locally networked via a first communication method; Any smart home device in the local network can be used as a first smart home device to perform a network connection between the first smart home device and the cloud server in a second communication mode, and after the network connection is successful, the first smart home device broadcasts network connection information in the local network; Other smart home devices in the local network serve as second smart home devices, and the second smart home devices receive the network configuration information.
2. The smart home system according to claim 1, characterized in that: The smart home system also includes new smart home devices; After the new smart home device accesses the local network through the first communication method, it can receive the network configuration information, become the second smart home device after receiving the network configuration information, and perform the network configuration connection of the second communication method based on the network configuration information and the cloud server.
3. The smart home system according to claim 1 or 2, characterized in that: When the first smart home device cannot broadcast the network configuration information, determining one of the second smart home devices as a new first smart home device; The new first smart home device broadcasts the network configuration information in the local network.
4. The smart home system according to claim 3, characterized in that: Determining one of the second smart home devices as a new first smart home device includes: A smart home device is determined as the new first smart home device according to the random delay time generated by each of the second smart home devices.
5. The smart home system according to claim 4, characterized in that: Determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices includes: When the second smart home device does not receive the broadcasted network configuration information within the broadcast period, determining whether a voting invitation broadcasted in the local network is received within the random delay time corresponding to the second smart home device; If the voting invitation is not received, the second smart home device is used as a candidate device, and the voting invitation is broadcasted in the local network, and it is determined whether the candidate device is used as the new first smart home device according to the voting result; If the voting invitation is received, the second smart home device acts as a follower device and votes for the candidate device that initiated the voting invitation.
6. The smart home system according to claim 5, characterized in that: Determining whether the candidate device is used as the new first smart home device according to the voting result includes: Determine whether the number of votes for the candidate device is the largest among the number of votes for all candidate devices in the local network; If so, the candidate device is determined as the new first smart home device.
7. A method for configuring a network for smart home devices, characterized in that: The method comprises: After at least two smart home devices are locally networked through a first communication method, any smart home device in the local network can be used as a first smart home device to perform a network connection between the first smart home device and a cloud server through a second communication method, and after the network connection is successful, the first smart home device broadcasts network connection information in the local network; Other smart home devices in the local network serve as second smart home devices, and the second smart home devices receive the network configuration information.
8. The method for configuring a smart home device network according to claim 7, characterized in that: The method further comprises: When a new smart home device accesses the local network through the first communication method, the new smart home device can receive the network configuration information, become a second smart home device after receiving the network configuration information, and perform network configuration connection of the second communication method with the cloud server according to the network configuration information.
9. The method for configuring a smart home device network according to claim 7 or 8, characterized in that: The method further comprises: When the first smart home device cannot broadcast the network configuration information, determining one of the second smart home devices as a new first smart home device; The new first smart home device broadcasts the network configuration information in the local network.
10. The method for configuring a smart home device network according to claim 9, characterized in that: Determining one of the second smart home devices as a new first smart home device includes: A smart home device is determined as the new first smart home device according to the random delay time generated by each of the second smart home devices.
11. The method for configuring a smart home device network according to claim 10, characterized in that: Determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices includes: When the second smart home device does not receive the broadcasted network configuration information within the broadcast period, determining whether a voting invitation broadcasted in the local network is received within the random delay time corresponding to the second smart home device; If the voting invitation is not received, the second smart home device is used as a candidate device, and the voting invitation is broadcasted in the local network, and it is determined whether the candidate device is used as the new first smart home device according to the voting result; If the voting invitation is received, the second smart home device is used as a follower device and votes for the candidate device that initiates the voting invitation.
12. The method for configuring a smart home device network according to claim 11, characterized in that: If the voting invitation is not received, the second smart home device is used as a candidate device, and broadcasting the voting invitation in the local network further includes: The candidate device votes for itself.
13. The method for configuring a smart home device network according to claim 11, characterized in that: If the voting invitation is received, the second smart home device is used as a follower device, and voting for the candidate device that initiated the voting invitation further includes: If voting invitations from more than one candidate device are received, voting is performed only on the candidate device corresponding to the voting invitation received first.
14. The method for configuring a smart home device network according to claim 11, characterized in that: Determining whether the candidate device is used as the new first smart home device according to the voting result includes: Determine whether the number of votes for the candidate device is the largest among the number of votes for all candidate devices in the local network; If so, the candidate device is determined as the new first smart home device.
15. The method for configuring a smart home device network according to claim 10, characterized in that: The process of determining a smart home device as the new first smart home device according to the random delay time generated by each of the second smart home devices also includes: If a smart home device cannot be determined as the new first smart home device based on the random delay time generated by each of the second smart home devices, the second smart home devices regenerate their own random delay times and determine a smart home device as the new first smart home device based on the regenerated random delay time.
16. The method for configuring a smart home device network according to any one of claims 11 to 14, characterized in that: In the process of determining whether the candidate device is used as the new first smart home device according to the voting result, the follower device and / or the candidate device can only vote once.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 7 to 16 is implemented.
18. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 7 to 16 is implemented.
