Control method and device of smart home system, storage medium and program product
By determining the first networked device in the smart home system and establishing a communication connection with the non-networked device, the problem of response delay of the non-networked device is solved, and communication efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410774148.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-10
AI Technical Summary
In smart home systems, non-networked devices cannot respond to users' voice commands in a timely manner, resulting in low communication efficiency and affecting user experience.
By determining the first networked device among the N networked devices and using it to establish a communication connection with the non-networked device, the communication efficiency between the non-networked device and the server is improved.
It achieves timely response of non-networked devices and improves the user experience of non-networked devices in the smart home system.
Smart Images

Figure CN118631601A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of home appliance technology, and in particular to a control method, device, storage medium and program product of a smart home system. Background Art
[0002] At present, smart home appliances that can interact with users' voice are gradually becoming popular in households. For houses with larger residential areas, there may be multiple smart home appliances. Multiple smart home appliances can form a smart home system, but there may be isolated non-networked devices in the smart home system, and non-networked devices cannot respond to users' voices in time, and response timeouts may occur. Therefore, the existing control methods of smart home systems have technical problems such as low communication efficiency of non-networked devices. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention is to provide a control method for a smart home system.
[0005] A second aspect of the present invention is to provide a control device for a smart home system.
[0006] A third aspect of the present invention is to provide a control device for a smart home system.
[0007] A fourth aspect of the present invention is to provide a readable storage medium.
[0008] A fifth aspect of the present invention is to provide a computer program product.
[0009] In view of this, according to a first aspect of the present invention, a control method of a smart home system is proposed, which is executed by a server. The smart home system includes a server and M home appliances, the M home appliances include at least one non-networked device and N networked devices, M is an integer greater than 1, and N is a positive integer less than M. The control method of the smart home system includes:
[0010] Receiving a first strength value sent by each networked device to obtain N first strength values, wherein the first strength value represents the received signal strength of the networked device when the non-networked device scans the networked device;
[0011] Determining a first networked device among the N networked devices according to the N first strength values;
[0012] Sending a first instruction to a first networked device;
[0013] After receiving the first instruction, the first networked device establishes a communication connection with the non-networked device.
[0014] The control method of the smart home system in the present technical solution realizes the communication connection between the non-networked device and the server by determining the first networked device among N networked devices, thereby improving the communication efficiency between the non-networked device and the server, ensuring that the non-networked device can respond to the user's voice in a timely manner, and thereby improving the user experience of the non-networked device in the smart home system.
[0015] According to a second aspect of the present invention, a control device of a smart home system is provided, which is applied to a server. The smart home system includes a server and M home appliances, the M home appliances include at least one non-networked device and N networked devices, M is an integer greater than 1, and N is a positive integer less than M. The control method device of the smart home system includes:
[0016] A processing module, configured to receive a first strength value sent by each networked device, and obtain N first strength values, wherein the first strength value represents a received signal strength of the networked device when the non-networked device scans the networked device;
[0017] The processing module is further used to determine a first networked device among the N networked devices according to the N first strength values;
[0018] The processing module is further used to send a first instruction to the first networked device;
[0019] After receiving the first instruction, the first networked device establishes a communication connection with the non-networked device.
[0020] The control device of the smart home system in the present technical solution realizes the communication connection between the non-networked device and the server by determining the first networked device among N networked devices, thereby improving the communication efficiency between the non-networked device and the server, ensuring that the non-networked device can respond to the user's voice in a timely manner, and thereby improving the user experience of the non-networked device in the smart home system.
[0021] According to a third aspect of the present invention, a control device for a smart home system is provided, comprising a processor and a memory, wherein a program or instruction is stored in the memory, and when the program or instruction is executed by the processor, the steps of the control method for the smart home system in any of the above technical solutions are implemented. Therefore, the control device for the smart home system has all the beneficial effects of the control method for the smart home system in any of the above technical solutions, which will not be described in detail here.
[0022] According to a fourth aspect of the present invention, a readable storage medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, a control method for a smart home system as in any of the above technical solutions is implemented. Therefore, the readable storage medium has all the beneficial effects of the control method for a smart home system in any of the above technical solutions, which will not be described in detail here.
[0023] According to a fifth aspect of the present invention, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the control method of the smart home system in any of the above technical solutions. Therefore, the computer program product has all the beneficial effects of the control method of the smart home system in any of the above technical solutions, which will not be described in detail here.
[0024] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0026] Figure 1 A schematic diagram showing a flow chart of a control method for a smart home system in an embodiment of the present invention is shown;
[0027] Figure 2 One of the flow charts of the control method of the smart home system in the embodiment of the present invention is shown;
[0028] Figure 3 A second flow chart of a control method for a smart home system in an embodiment of the present invention is shown;
[0029] Figure 4 One of the structural block diagrams of the control device of the smart home system in the embodiment of the present invention is shown;
[0030] Figure 5 The second structural block diagram of the control device of the smart home system in the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0031] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0033] Combine the following Figures 1 to 5 , the control method, device, storage medium and program product of the smart home system provided by the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0034] like Figure 1 As shown, an embodiment of the present invention provides a control method for a smart home system, and the control method for the smart home system includes:
[0035] Step 102, receiving a first strength value sent by each networked device to obtain N first strength values;
[0036] Step 104, determining a first networked device among the N networked devices according to the N first strength values;
[0037] Step 106: Send a first instruction to the first networked device.
[0038] In this embodiment, a control method for a smart home system is proposed, which is executed by a server. The smart home system includes a server and M home appliances, where M is an integer greater than 1. The M home appliances include at least one non-networked device and N networked devices, where M is an integer greater than 1 and N is a positive integer less than M. The non-networked device is a home appliance that cannot communicate with the server, and the networked device is a home appliance that can communicate with the server.
[0039] Exemplarily, the server may be a server in the cloud.
[0040] Exemplarily, the home appliance device is a smart home appliance device capable of voice interaction.
[0041] For example, the server can communicate with networked devices within the residence through the network.
[0042] By way of example, the smart home system may include household appliances such as televisions, air conditioners, washing machines and refrigerators.
[0043] The server receives the first strength value sent by each networked device, and obtains N first strength values, wherein the first strength value represents the receiving signal strength of the networked device when the non-networked device scans the networked device.
[0044] It should be noted that a non-networked device can initiate a device scan and send a signal to each networked device. When a networked device receives the signal, it can determine the first strength value of the signal. The first strength value of the signal will weaken as the distance increases. Therefore, the first strength value can be used to determine the distance between the non-networked device and the networked device.
[0045] Exemplarily, the first strength value may be represented by RSSI (Received Signal Strength Indicator).
[0046] For example, the first strength value may include RSSI values of a plurality of non-networked devices.
[0047] For example, a non-networked device can communicate with a networked device via a hotspot.
[0048] The server determines a first networked device among the N networked devices according to the N first strength values, wherein the first networked device is a networked device that sends a maximum value among the N first strength values.
[0049] It should be noted that the first networked device is the networked device that sends the maximum value of the N first strength values. Therefore, the first networked device is the home appliance closest to the non-networked device, ensuring the communication efficiency between the first networked device and the non-networked device.
[0050] The server sends a first instruction to the first networked device, wherein after the first networked device receives the first instruction, the first networked device can establish a communication connection with the non-networked device.
[0051] Exemplarily, the first networked device may serve as a communication relay between the server and the non-networked device, and may be capable of forwarding instructions or data of the server to the non-networked device.
[0052] It should be noted that, the first networked device that is closest to the non-networked device is determined among the N networked devices, and communication between the non-networked device and the server is achieved through the first networked device, thereby improving the communication efficiency between the non-networked device and the server.
[0053] The control method of the smart home system in this embodiment realizes the communication connection between the non-networked device and the server by determining the first networked device among N networked devices, improves the communication efficiency between the non-networked device and the server, ensures that the non-networked device can respond to the user's voice in a timely manner, and thereby improves the user experience of the non-networked device in the smart home system.
[0054] In some embodiments, optionally, a control method for a smart home system is proposed. After sending a first instruction to a first networked device, the control method for the smart home system further includes:
[0055] Step 202, receiving the second strength value sent by each networked device to obtain N second strength values;
[0056] Step 204, determining Q networked devices from the N networked devices based on the N second strength values;
[0057] Step 206, when the Q networked devices include the first networked device, group the Q networked devices and the non-networked devices into a first device group;
[0058] Step 208, when the Q networked devices do not include the first networked device, group the Q networked devices into a first device group;
[0059] When at least one device in the first device group receives a voice command, a home appliance is selected from the first device group to respond to the voice command.
[0060] In this embodiment, N networked devices communicate with the server through at least one router, each networked device is connected to only one router, and the server receives the second strength value sent by each networked device to obtain N second strength values, wherein the second strength value represents the received signal strength of the networked device when the networked device communicates with the router.
[0061] It should be noted that a networked device can send a signal to a router connected to the networked device. When the router receives the signal, it can determine the second strength value of the signal. The second strength value of the signal will weaken as the distance increases. Therefore, the second strength value can be used to determine the distance between the router and the networked device.
[0062] Exemplarily, the second strength value may be a C-RSSI (Media Access Control Received Signal Strength Indicator, hardware address layer) of a MAC (Media Access Control) connection route.
[0063] The server determines Q networked devices from the N networked devices according to the N second strength values.
[0064] Exemplarily, the N second strength values are sorted from large to small to obtain a list corresponding to the second strength values, and the Q networked devices include the networked devices that send the first five second strength values in the list.
[0065] Exemplarily, the Q networked devices are household appliances that are located in close proximity within a residence.
[0066] In the case where the Q networked devices include a first networked device, the server divides the Q networked devices and non-networked devices into a first device group, wherein when at least one device in the first device group receives a voice command, a household appliance device is selected from the first device group to respond to the voice command.
[0067] Exemplarily, when the Q networked devices include a first networked device, non-networked devices may be classified into the first device group.
[0068] When the Q network-connected devices do not include the first network-connected device, the server divides the Q network-connected devices into a first device group.
[0069] Exemplarily, the first device group includes household appliances for receiving or responding to user voice.
[0070] For example, the voice may specifically be the user's control voice for the home appliance.
[0071] It should be noted that grouping the Q networked devices that are relatively close to each other into the first device group ensures the response efficiency of the first device group to the user's voice.
[0072] For example, Figure 2 As shown, the smart home system includes routers 1 and 2, networked device A, networked device B, networked device C, networked device D, networked device E, networked device F, networked device G, networked device H, networked device I, networked device J, non-networked device 1, and non-networked device 2. The first device group may include networked device E connected to router 1, networked device D, networked device F connected to router 2, networked device G, non-networked device 1, and non-networked device 2.
[0073] The control method of the smart home system in this embodiment obtains a first networked device by grouping N networked devices. The first networked device includes networked devices that are relatively close, thereby ensuring the response efficiency of the first device group to the user's voice.
[0074] In some embodiments, optionally, a control method for a smart home system is proposed, and based on N second strength values, Q networked devices are determined from N networked devices, including:
[0075] Step 302, obtaining a preset intensity threshold;
[0076] Step 304: Among the N networked devices, determine the networked devices that send a second strength value greater than a strength threshold as Q networked devices.
[0077] In this embodiment, the server obtains a preset strength threshold, wherein the strength threshold is a threshold corresponding to the second strength value.
[0078] Exemplarily, the strength threshold may be -60 dBm.
[0079] Among the N network-connected devices, the server determines the network-connected devices that send second strength values greater than the strength threshold as Q network-connected devices.
[0080] In the control method of the smart home system in this embodiment, the server determines the networked devices that send a second strength value greater than the strength threshold as Q networked devices, thereby ensuring the accuracy of the Q networked devices and further ensuring the accuracy of the first device group.
[0081] In some embodiments, optionally, a control method for a smart home system is proposed. After the Q networked devices are divided into a first device group, the control method for the smart home system further includes:
[0082] Step 402, determining device group information of the first device group based on device information corresponding to the Q networked devices;
[0083] Step 404: Send the device group information of the first device group to the Q networked devices.
[0084] In this embodiment, the server obtains device information corresponding to Q networked devices and device information of non-networked devices.
[0085] The server uses the device information corresponding to the Q networked devices and the device information of the non-networked devices as the device group information of the first device group.
[0086] Exemplarily, the device group information may include information such as BSSID (Basic Service Set Identifier), MAC, CH (Channel), RSSI, etc.
[0087] The server sends the device group information of the first device group to the Q networked devices, so that each of the Q networked devices can understand the device information of other devices in the first device group.
[0088] The control method of the smart home system in this embodiment uses the device information corresponding to Q networked devices and the device information of non-networked devices as the device group information of the first device group, and then sends the device group information of the first device group to the Q networked devices, thereby ensuring the operating efficiency of each household appliance in the first device group.
[0089] In some embodiments, optionally, a control method for a smart home system is proposed. After the Q networked devices and the non-networked devices are divided into a first device group, the control method for the smart home system further includes:
[0090] Step 402, determining device group information of the first device group based on device information corresponding to the Q networked devices and device information of the non-networked devices;
[0091] Step 404, sending the device group information of the first device group to Q networked devices;
[0092] When receiving the device group information of the first device group, the first networked device sends the device group information of the first device group to the non-networked device.
[0093] In this embodiment, the server obtains device information corresponding to Q networked devices and device information of non-networked devices.
[0094] Exemplarily, the device group information may include information such as BSSID (Basic Service Set Identifier), MAC, CH (Channel), RSSI, etc.
[0095] The server uses the device information corresponding to the Q networked devices and the device information of the non-networked devices as the device group information of the first device group.
[0096] The server sends the device group information of the first device group to the Q networked devices, so that each of the Q networked devices can understand the device information of other devices in the first device group.
[0097] At the same time, upon receiving the device group information of the first device group, the first networked device sends the device group information of the first device group to the non-networked device, so that the non-networked device can understand the device information of other devices in the first device group.
[0098] The control method of the smart home system in this embodiment uses the device information corresponding to Q networked devices and the device information of non-networked devices as the device group information of the first device group, and then sends the device group information of the first device group to the Q networked devices, thereby ensuring the operating efficiency of each household appliance in the first device group.
[0099] In some embodiments, optionally, a control method for a smart home system is proposed, in which, when a first device group includes a non-networked device and the first networked device receives device group information of the first device group, the first networked device sends the device group information of the first device group to the non-networked device.
[0100] In this embodiment, when the first device group includes a non-networked device and the first networked device receives the device group information of the first device group, the first networked device can send the device group information of the first device group to the non-networked device so that the non-networked device can understand the device information of other devices in the first device group.
[0101] In the control method of the smart home system in this embodiment, the first networked device can send the device group information of the first device group to the non-networked device, thereby ensuring the operating efficiency of each home appliance in the first device group.
[0102] In some embodiments, optionally, a control method for a smart home system is proposed, receiving a second intensity value sent by each networked device to obtain N second intensity values, specifically including:
[0103] Step 502, sending a second instruction to each networked device;
[0104] Step 504: Receive the second strength value sent by each networked device to obtain N second strength values.
[0105] In this embodiment, the server sends a second instruction to each networked device, wherein when the networked device receives the second instruction, it needs to communicate with the router and receive a signal sent by the router to determine the second strength value.
[0106] After determining the second strength value, the networked device sends the second strength value to the server.
[0107] The server receives the second strength value sent by each networked device, and obtains N second strength values.
[0108] In the control method of the smart home system in this embodiment, the server sends a second instruction to each networked device, and then receives the second intensity value sent by each networked device to obtain N second intensity values, thereby ensuring the data accuracy of the N second intensity values and at the same time ensuring the data integrity of the N second intensity values.
[0109] In some embodiments, optionally, a control method for a smart home system is proposed. After the Q networked devices are divided into a first device group, the control method for the smart home system further includes:
[0110] Step 602, receiving a device set sent by each networked device in the first device group, and obtaining Q device sets;
[0111] Step 604, based on the Q device sets, determine the number of networked devices included in the first device group;
[0112] Step 606: Determine a master device among the Q networked devices according to the number of networked devices included in the first device group and the Q device sets.
[0113] In this embodiment, the server receives a device set sent by each networked device in the first device group, and obtains Q device sets, wherein the device set sent by the second networked device includes the second networked device and at least one of the Q home appliances that responds to the first notification, the first notification is a notification sent by the second networked device, and the second networked device is any one of the Q networked devices.
[0114] Exemplarily, the device set may be a device list storing corresponding information of networked devices.
[0115] It should be noted that the second networked device can send a first notification to all networked devices among the Q networked devices except the second networked device. After receiving the first notification, the other networked devices will respond to the first notification and reply to the second networked device. The second networked device determines the networked devices in the first device group that can communicate with the second networked device based on the networked devices that respond to the first notification, and thus obtains a device set.
[0116] The server determines the number of network-connected devices included in the first device group based on the Q device sets.
[0117] Exemplarily, the server removes duplicate household appliances from the Q device sets to determine the number of networked devices included in the first device group.
[0118] The server determines a master device among the Q networked devices based on the number of networked devices included in the first device group and the Q device sets, wherein when at least two of the Q networked devices receive voice, the master device determines a target networked device that responds to the voice among the at least two networked devices, and the target networked device is a networked device used to respond to the voice.
[0119] Exemplarily, the server compares the number of networked devices included in the Q device sets with the number of networked devices included in the first device group, and determines the master device among the Q networked devices.
[0120] Exemplarily, the master device may be a networking device that can communicate with the most networking devices among the plurality of networking devices.
[0121] For example, the voice received by the networked device may be a voice control instruction of the user to the networked device.
[0122] For example, the target networked device may be a home appliance that is closest to the user in a residence.
[0123] It should be noted that when the smart home system includes multiple routers, multiple device sets are obtained through mutual scanning and communication between networked devices. The server can avoid interference from multiple routers through multiple device sets and determine the correct main device among multiple networked devices.
[0124] It should also be noted that the server determines the master device among the Q networked devices by comparing the number of networked devices included in the first device group and the number of networked devices included in multiple device sets, so that the master device can communicate with all networked devices in the first device group, thereby ensuring the accuracy of the determination of the master device and the control range of the master device.
[0125] For example, for an online master device, a networked device with a good router signal should be selected as the master device.
[0126] Exemplarily, the master device's determination algorithm is as follows: Figure 3 As shown, the smart home system includes device A on channel 1, device B on channel 6, device C on channel 11 and an artificial intelligence cloud. The algorithm for determining the master device includes steps such as looping and conditional judgment. In the looping step, all devices are sent to scan in sequence according to the channels existing in the cloud. If the channel is already in the target channel, no channel setting is performed. After sending, all devices complete the report or reply to the timeout within 2 seconds after sending to switch to the next channel. The conditional judgment step judges the situations of 1 host, 2 hosts, and 3 or more hosts respectively.
[0127] The details are as follows:
[0128] 1. De-duplicate the scan data of each device based on the total amount of scan data reported by each networked device (i.e., data of a set of Q devices), and count the total number of devices.
[0129] 2. Sort the results after deduplication based on the number reported by each device.
[0130] 3. First select the device with the most reports as the main device number one.
[0131] 4. Compare the number of devices on the master device No. 1 with the total number of devices scanned. If the two numbers are equal, it means that there is only one master device in the network and it can cover all slave devices. If they are not equal, it is necessary to extract the list of devices that are not scanned by the first master device.
[0132] 5. Compare the extracted list with the scanned list of the remaining devices to find out the devices that can be fully included. If the remaining devices cannot be fully included, it means that there are at least 3 or more main devices, and the host is the server.
[0133] 6. If it is completely included, and there are multiple networked devices that can be completely included in the scan results, select the one that can be completely included and has the largest number of scanned devices as the main device No. 2. If there are multiple devices with the same conditions that can be used as the main device No. 2, air conditioners, refrigerators, washing machines and other devices with control screens are preferred as the main device No. 2.
[0134] 7. If it is completely contained and there are no other devices, and the main device number 1 and the main device number 2 do not intersect, the server should be the main device.
[0135] 8. If master device No. 1 and master device No. 2 have each other's master devices in their sub-device lists, master device No. 1 and master device No. 2 will be used as master devices.
[0136] The control method of the smart home system in this embodiment ensures that the main device can cover all networked devices in the first device group, thereby ensuring the accuracy of determining the main device among Q networked devices, while ensuring the control range of the main device, thereby improving the user experience of home appliances.
[0137] In some embodiments, optionally, a control method for a smart home system is proposed. Before receiving the first strength value sent by each networked device and obtaining N first strength values, the control method for the smart home system further includes:
[0138] Step 702, receiving channel information sent by each household appliance to obtain M channel information, wherein the channel information is information about the channel where the networked device is located;
[0139] Step 704: Determine a channel list according to the M channel information.
[0140] In this embodiment, data is transmitted between M household appliances via at least one channel, and the server receives channel information sent by each household appliance to obtain multiple channel information, wherein the channel information is information about the channel where the household appliance is located.
[0141] The server determines a channel list according to the plurality of channel information, wherein the channel list includes information of each channel.
[0142] In the control method of the smart home system in this embodiment, the server determines the channel list according to the M channel information, thereby ensuring the data integrity and data accuracy of the channel information.
[0143] In some embodiments, optionally, a control method for a smart home system is proposed. After determining the channel list, the control method for the smart home system further includes:
[0144] Step 802, determining a first instruction according to the channel list;
[0145] Step 804, sending a first instruction to the M home appliances, wherein each home appliance scans based on the channel list after receiving the first instruction and sends a first notification to obtain a device set;
[0146] Step 806: Receive the device set sent by each household appliance to obtain M device sets.
[0147] In this embodiment, the server generates a first instruction according to the channel list, wherein the first instruction is an instruction sent by the server to each network-connected device.
[0148] The server sends a first instruction to M home appliances.
[0149] It should be noted that each channel is connected to at least one home appliance. After receiving the first instruction, each home appliance can determine all channels in the smart home system according to the channel list. The current home appliance scans all channels, that is, sends a first notification to each channel in turn. The home appliance that receives the first notification through the channel can respond to the first notification, and the home appliance collects the home appliances that respond to the first notification to obtain a device set.
[0150] The server receives the device set sent by each home appliance and obtains M device sets.
[0151] Exemplarily, the first notification may be a broadcast frame.
[0152] For example, all networked devices report BSSID and channel to the server (i.e. instruction 1, including BSSID, MAC, CH, RSSI). The server uses the access layer IP (Internet Protocol) to group devices into a large network based on residential standards, and counts the BSSID and corresponding channel under the current residence, forming a product information table with the MAC list as the index on the server.
[0153] For example, when the device is online for 30 seconds or offline, the server sends instruction 2, i.e., scanning instruction, to each device at the same time, so that each device starts scanning. Instruction 2 includes a list of channels to be scanned (based on the channel list reported by the residence in the first step) and BSSID, such as CH1, BSSID1, CH2, BSSID2, and the number of devices to be scanned by the device. The channel list can be arranged in order from small to large.
[0154] When switching channel networks, you need to use the BSSID of the target channel to send an action frame and then switch back to the routing network. Be careful to use the correct BSSID.
[0155] For example, when scanning broadcasts, it should include whether the device is connected to the network, the current channel information, and the MAC address.
[0156] Exemplarily, the connected device adds the received scan information of the offline device to the scanned device list reported to the server (instruction 4), and the offline device transmits the scanned device list to the connected devices in its list (via a custom MAC frame). After receiving all device lists, the server organizes the groups.
[0157] Instruction 4 includes a scan list consisting of C-RSSI, channel, category, networking status (connected / not connected), online status (offline / online), RSSI, etc. of the MAC connection router.
[0158] In the control method of the smart home system in this embodiment, the server generates a first instruction based on the channel list and sends the first instruction to each household appliance. Through the first instruction, each household appliance scans each channel, thereby ensuring the data integrity and data accuracy of the device set.
[0159] In some embodiments, optionally, a control method for a smart home system is proposed, wherein after a networked device receives a first instruction, the networked device can send a first notification to a first channel to determine a home appliance in the first channel that responds to the first notification, wherein the first channel is a channel where the networked device is located;
[0160] The networked device can send a first notification to a plurality of second channels to determine a home appliance in the plurality of second channels that responds to the first notification, wherein the second channel is a channel other than the first channel in at least one channel;
[0161] The network-connected device determines the home appliances that respond to the first notification in the first channel and the home appliances that respond to the first notification in multiple second channels as a device set.
[0162] In this embodiment, after the networked device receives the first instruction, the networked device first sends a first notification to the first channel to determine the home appliance in the first channel that responds to the first notification, wherein the first channel is the channel where the networked device is located.
[0163] After scanning the first channel, the networked device sends a first notification to multiple second channels to determine the home appliances in the multiple second channels that respond to the first notification, wherein the second channel is a channel other than the first channel in at least one channel.
[0164] The network-connected device determines the home appliances that respond to the first notification in the first channel and the home appliances that respond to the first notification in multiple second channels as a device set.
[0165] For example, for networked devices, each networked device first scans its own channel for 200ms, and then sends a broadcast frame (i.e., a scan packet) to all other devices that perform scanning according to the existing action frame format. The broadcast is performed every 50ms. If the receiving device is in the same channel as the sending device and uses the same protocol, the receiving device can receive the scan packet. The device that receives the scan packet also broadcasts once.
[0166] For example, after scanning its own channel, each device switches channels every 100ms, starting from the low channel until all listed channels are scanned. The scan and response adopt the instruction 3 format, where instruction 3 includes MAC, C-RSSI of the connected router, channel, category, network status (connected / not connected), and online status (offline / online).
[0167] In some embodiments, optionally, a control method for a smart home system is proposed, where after the non-networked device receives the first instruction, the non-networked device can send a first notification to each channel to determine the home appliance device in each channel that responds to the first notification;
[0168] The non-networked device determines the home appliances that respond to the first notification in each channel as a device set.
[0169] In this embodiment, after the non-networked device receives the first instruction, the non-networked device sends a first notification to each channel to determine the home appliance device in each channel that responds to the first notification.
[0170] The non-networked device then determines the household appliances that respond to the first notification in each channel as a device set.
[0171] Exemplarily, the unconfigured device scans in order of channels, starting from channel 1 to channel 13, and records the received response device information (instruction 3), and counts the channels where the devices with response device signal values greater than -60dBm are located. If there are multiple channels, a lower channel is selected as the hotspot, and the hotspot device does not need to be restarted.
[0172] In some embodiments, optionally, a control method for a smart home system is proposed, and a first networked device among N networked devices is determined according to N first strength values, including:
[0173] Step 902: Determine the networked device that sends the maximum value of N first strength values as the first networked device.
[0174] In this embodiment, the server determines the networked device that sends the maximum value among the N first strength values as the first networked device.
[0175] Exemplarily, the server determines a networked device that is closest to the non-networked device among the N networked devices as the first networked device.
[0176] In the control method of the smart home system in this embodiment, the networked device that sends the maximum value of N first strength values is determined as the first networked device, thereby ensuring the accuracy of selecting the first networked device.
[0177] The above methods may be implemented in various ways depending on the specific features and / or example applications. For example, the methods may be implemented by a combination of hardware, firmware, and / or software. For example, in a hardware implementation, the processor may be implemented in at least one application-specific integrated circuit, a digital signal processor, a digital signal processing device, a programmable logic device, a field programmable gate array, a controller, a microcontroller, a microprocessor, an electronic device, other device units for performing the above functions, and / or a combination thereof.
[0178] like Figure 4 As shown, an embodiment of the present invention provides a control device for a smart home system, and the control device 1000 for the smart home system includes:
[0179] The processing module 1002 is used to receive a first strength value sent by each networked device to obtain N first strength values, wherein the first strength value represents the received signal strength of the networked device when the non-networked device scans the networked device;
[0180] The processing module 1002 is further configured to determine a first networked device among the N networked devices according to the N first strength values;
[0181] The processing module 1002 is further configured to send a first instruction to the first networked device.
[0182] In this embodiment, a control device 1000 for a smart home system is proposed and applied to a server. The smart home system includes a server and M home appliances, where M is an integer greater than 1. The M home appliances include at least one non-networked device and N networked devices, where M is an integer greater than 1 and N is a positive integer less than M. The non-networked device is a home appliance that cannot communicate with the server, and the networked device is a home appliance that can communicate with the server.
[0183] Exemplarily, the server may be a server in the cloud.
[0184] Exemplarily, the home appliance device is a smart home appliance device capable of voice interaction.
[0185] For example, the server can communicate with networked devices within the residence through the network.
[0186] By way of example, the smart home system may include household appliances such as televisions, air conditioners, washing machines and refrigerators.
[0187] The processing module 1002 receives the first strength value sent by each networked device to obtain N first strength values, wherein the first strength value represents the received signal strength of the networked device when the non-networked device scans the networked device.
[0188] It should be noted that a non-networked device can send a signal to a networked device. When the networked device receives the signal, it can determine the first strength value of the signal. The first strength value of the signal will weaken as the distance increases. Therefore, the first strength value can be used to determine the distance between the non-networked device and the networked device.
[0189] Exemplarily, the first strength value may be represented by RSSI (Received Signal Strength Indicator).
[0190] For example, the first strength value may include RSSI values of a plurality of non-networked devices.
[0191] For example, a non-networked device can communicate with a networked device via a hotspot.
[0192] The processing module 1002 determines a first networked device among the N networked devices according to the N first strength values, wherein the first networked device is a networked device that sends a maximum value among the N first strength values.
[0193] It should be noted that the first networked device is the networked device that sends the maximum value of the N first strength values. Therefore, the first networked device is the home appliance closest to the non-networked device, ensuring the communication efficiency between the first networked device and the non-networked device.
[0194] The processing module 1002 sends a first instruction to the first networked device, wherein after the first networked device receives the first instruction, the first networked device can establish a communication connection with the non-networked device.
[0195] Exemplarily, the first networked device may serve as a communication relay between the server and the non-networked device, and may be capable of forwarding instructions or data of the server to the non-networked device.
[0196] It should be noted that, the first networked device that is closest to the non-networked device is determined among the N networked devices, and communication between the non-networked device and the server is achieved through the first networked device, thereby improving the communication efficiency between the non-networked device and the server.
[0197] The control device 1000 of the smart home system in this embodiment realizes the communication connection between the non-networked device and the server by determining the first networked device among N networked devices, thereby improving the communication efficiency between the non-networked device and the server, ensuring that the non-networked device can respond to the user's voice in a timely manner, and thereby improving the user experience of the non-networked device in the smart home system.
[0198] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0199] The processing module 1002 is further configured to receive a second strength value sent by each networked device, and obtain N second strength values, wherein the second strength value represents a received signal strength of the networked device when the networked device communicates with the router;
[0200] The processing module 1002 is further configured to determine Q networked devices from the N networked devices based on the N second strength values;
[0201] The processing module 1002 is further configured to, when the Q networked devices include the first networked device, group the Q networked devices and the non-networked devices into a first device group;
[0202] The processing module 1002 is further configured to group the Q networked devices into a first device group when the Q networked devices do not include the first networked device;
[0203] When at least one device in the first device group receives a voice, a home appliance is selected from the first device group to respond to the voice.
[0204] The control device 1000 of the smart home system in this embodiment obtains a first networked device by grouping N networked devices. The first networked device includes networked devices that are relatively close, thereby ensuring the response efficiency of the first device group to the user's voice.
[0205] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0206] The processing module 1002 is further used to obtain a preset intensity threshold;
[0207] The processing module 1002 is further configured to determine, among the N networked devices, networked devices that send second strength values greater than a strength threshold as Q networked devices.
[0208] The control device 1000 of the smart home system in this embodiment determines the networked devices that send a second intensity value greater than the intensity threshold as Q networked devices among N networked devices, thereby ensuring the accuracy of the Q networked devices and further ensuring the accuracy of the first device group.
[0209] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0210] The processing module 1002 is further configured to determine device group information of the first device group based on device information corresponding to the Q networked devices;
[0211] The processing module 1002 is further configured to send the device group information of the first device group to the Q networked devices.
[0212] The control device 1000 of the smart home system in this embodiment uses the device information corresponding to Q networked devices and the device information of non-networked devices as the device group information of the first device group, and then sends the device group information of the first device group to the Q networked devices, thereby ensuring the operating efficiency of each household appliance in the first device group.
[0213] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0214] The processing module 1002 is further configured to send a second instruction to each networked device, wherein the networked device communicates with the router to obtain a second strength value when receiving the second instruction;
[0215] The processing module 1002 is further configured to receive a second strength value sent by each networked device to obtain N second strength values.
[0216] In the control device 1000 of the smart home system in this embodiment, the server sends a second instruction to each networked device, and then receives the second intensity value sent by each networked device to obtain N second intensity values, thereby ensuring the data accuracy of the N second intensity values and at the same time ensuring the data integrity of the N second intensity values.
[0217] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0218] The processing module 1002 is further configured to receive a device set sent by each networked device in the first device group, and obtain Q device sets, wherein the device set sent by the second networked device includes the second networked device and at least one home appliance among the Q home appliances that responds to the first notification, the first notification is a notification sent by the second networked device, and the second networked device is any one networked device among the Q networked devices;
[0219] The processing module 1002 is further configured to determine the number of networked devices included in the first device group based on the Q device sets;
[0220] The processing module 1002 is further configured to determine a master device among the Q networked devices according to the number of networked devices included in the first device group and the Q device sets;
[0221] In which, when at least two of the Q networked devices receive voice, the main device determines a target networked device that responds to the voice among the at least two networked devices.
[0222] The control device 1000 of the smart home system in this embodiment ensures that the main device can cover all networked devices in the first device group, thereby ensuring the accuracy of determining the main device among Q networked devices, while ensuring the control range of the main device, thereby improving the user experience of home appliances.
[0223] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0224] The processing module 1002 is further used to receive channel information sent by each household appliance to obtain M channel information, wherein the channel information is information about the channel where the networked device is located;
[0225] The processing module 1002 is further configured to determine a channel list according to the M channel information.
[0226] In the control device 1000 of the smart home system in this embodiment, the server determines the channel list according to the M channel information, thereby ensuring the data integrity and data accuracy of the device set.
[0227] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0228] The processing module 1002 is further configured to determine a first instruction according to the channel list;
[0229] The processing module 1002 is further configured to send a first instruction to the M home appliances, wherein each home appliance scans based on the channel list after receiving the first instruction and sends a first notification to obtain a device set;
[0230] The processing module 1002 is further configured to receive a device set sent by each household appliance to obtain M device sets.
[0231] In the control device 1000 of the smart home system in this embodiment, the server generates a first instruction based on the channel list and sends the first instruction to each household appliance. Through the first instruction, each household appliance scans each channel, thereby ensuring the data integrity and data accuracy of the device set.
[0232] In some embodiments, optionally, the control device 1000 of the smart home system further includes:
[0233] The processing module 1002 is further configured to determine a networked device that sends a maximum value among the N first strength values as a first networked device.
[0234] The control device 1000 of the smart home system in this embodiment determines the networked device that sends the maximum value among N first strength values as the first networked device, thereby ensuring the accuracy of selecting the first networked device.
[0235] In some embodiments, optionally, Figure 5 As shown, a control device 1100 for a smart home system is proposed. The control device 1100 for the smart home system includes a processor 1102 and a memory 1104. The memory 1104 stores a program or instruction. When the program or instruction is executed by the processor 1102, the steps of the control method for the smart home system in any of the above technical solutions are implemented. Therefore, the control device 1100 for the smart home system has all the beneficial effects of the control method for the smart home system in any of the above technical solutions, which will not be repeated here.
[0236] In some embodiments, optionally, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the control method of the smart home system in any of the above embodiments is implemented, thereby having all the beneficial technical effects of the control method of the smart home system in any of the above embodiments.
[0237] The readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0238] A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices, but is not limited thereto. A non-exhaustive list of more specific examples of computer readable storage media includes: a portable computer floppy disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, a static random access memory, a portable optical disk read-only memory, a digital universal disk, a memory card, a floppy disk, an encoding mechanical device (such as a punched card or a groove with a raised structure having instructions recorded thereon), and any suitable combination of the above devices. The computer readable storage medium used herein should not be understood as a transmission signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium, or an electrical signal transmitted through a wire, etc.
[0239] In some embodiments, optionally, a computer program product is provided, including computer instructions, which, when executed by a processor, implement a control method for a smart home system as in any of the above embodiments, thereby having all the beneficial technical effects of the control method for a smart home system in any of the above embodiments.
[0240] It should be clarified that in the claims, specification and drawings of the present invention, the term "multiple" refers to two or more than two. Unless otherwise clearly defined, the orientation or position relationship indicated by the terms "upper" and "lower" is based on the orientation or position relationship shown in the drawings, which is only for the purpose of more conveniently describing the present invention and making the description process simpler, rather than indicating or implying that the device or element referred to must have the specific orientation described, be constructed and operated in a specific orientation, so these descriptions cannot be understood as limiting the present invention; the terms "connect", "install", "fix" and the like should be understood in a broad sense. For example, "connection" can be a fixed connection between multiple objects, or a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances of the above data.
[0241] In the claims, specification and drawings of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments" and the like means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the claims, specification and drawings of the present invention, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any at least one embodiment or example in a suitable manner.
[0242] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control method for a smart home system, characterized in that: The smart home system is executed by a server, wherein the smart home system includes the server and M home appliances, wherein the M home appliances include at least one non-networked device and N networked devices, wherein M is an integer greater than 1, and N is a positive integer less than M, and the control method of the smart home system includes: Receiving a first strength value sent by each of the networked devices to obtain N first strength values, wherein the first strength value represents a received signal strength of the networked device when the non-networked device scans the networked device; Determining a first networked device among the N networked devices according to the N first strength values; Sending a first instruction to the first networked device; After receiving the first instruction, the first networked device establishes a communication connection with the non-networked device.
2. The control method of the smart home system according to claim 1, characterized in that: The N networked devices communicate with the server via at least one router, and after sending the first instruction to the first networked device, the control method of the smart home system further includes: receiving a second strength value sent by each of the networked devices to obtain N second strength values, wherein the second strength value represents a received signal strength of the networked device when the networked device communicates with the router; Determine Q networked devices from the N networked devices based on the N second strength values; Grouping the Q networked devices into a first device group; When at least one device in the first device group receives a voice, a home appliance device is selected from the first device group to respond to the voice.
3. The control method of the smart home system according to claim 2, characterized in that: The determining Q networked devices from the N networked devices based on the N second strength values includes: Get the preset intensity threshold; Among the N network-connected devices, network-connected devices that send a second strength value greater than a strength threshold are determined to be Q network-connected devices.
4. The control method of the smart home system according to claim 2, characterized in that: After the Q networked devices are divided into the first device group, the control method of the smart home system further includes: Determine device group information of the first device group based on device information corresponding to the Q networked devices; The device group information of the first device group is sent to the Q network-connected devices.
5. The control method of the smart home system according to claim 2, characterized in that: When the first device group includes a non-networked device and the first networked device receives the device group information of the first device group, the first networked device sends the device group information of the first device group to the non-networked device.
6. The control method of the smart home system according to claim 2, characterized in that: The receiving the second strength value sent by each of the networked devices to obtain N second strength values specifically includes: Sending a second instruction to each of the networked devices, wherein the networked device communicates with the router to obtain a second strength value when receiving the second instruction; The second strength value sent by each of the networked devices is received to obtain N second strength values.
7. The control method of the smart home system according to claim 2, characterized in that: After the Q networked devices are divided into the first device group, the control method of the smart home system further includes: receiving a device set sent by each of the networked devices in the first device group to obtain Q device sets, wherein the device set sent by the second networked device includes the second networked device and at least one of the Q home appliances that responds to the first notification, the first notification is a notification sent by the second networked device, and the second networked device is any one of the Q networked devices; Based on the Q device sets, determining the number of the networked devices included in the first device group; Determine a master device among the Q networked devices according to the number of the networked devices included in the first device group and the Q device sets; In which, when at least two of the Q networked devices receive voice, the main device determines a target networked device that responds to the voice among the at least two networked devices.
8. The control method of the smart home system according to claim 1, characterized in that: The M household appliances transmit data via at least one channel, and before receiving the first strength value sent by each of the networked devices to obtain the N first strength values, the control method of the smart home system further includes: Receiving channel information sent by each of the household appliances to obtain M channel information, wherein the channel information is information about the channel where the networked device is located; A channel list is determined according to the M channel information.
9. The control method of the smart home system according to claim 8, characterized in that: After determining the channel list, the control method of the smart home system further includes: Determine a first instruction according to the channel list; Sending the first instruction to the M home appliances, wherein after receiving the first instruction, each home appliance scans based on the channel list and sends a first notification to obtain a device set; The device set sent by each of the household electrical appliances is received to obtain M device sets.
10. The control method of the smart home system according to claim 9, characterized in that: After the networked device receives the first instruction, the networked device can send the first notification to a first channel to determine the home appliance device that responds to the first notification in the first channel, wherein the first channel is a channel where the networked device is located; The networked device is capable of sending the first notification to a plurality of second channels to determine the home appliances that respond to the first notification in the plurality of second channels, wherein the second channel is a channel other than the first channel in at least one of the channels; The networking device determines the home devices that respond to the first notification in the first channel and the home devices that respond to the first notification in a plurality of the second channels as the device set.
11. The control method of the smart home system according to claim 9, characterized in that: After the non-networked device receives the first instruction, the non-networked device can send the first notification to each of the channels to determine the home appliance device in each of the channels that responds to the first notification; The non-networked device determines the household devices that respond to the first notification in each of the channels as the device set.
12. The control method of the smart home system according to any one of claims 1 to 11, characterized in that: The step of determining a first networked device among the N networked devices according to the N first strength values includes: The networked device that sends the maximum value of the N first strength values is determined as the first networked device.
13. A control device for a smart home system, characterized in that: Applied to a server, the smart home system includes the server and M home appliances, the M home appliances include at least one non-networked device and N networked devices, M is an integer greater than 1, and N is a positive integer less than M, and the control device of the smart home system includes: a processing module, configured to receive a first strength value sent by each of the networked devices, and obtain N first strength values, wherein the first strength value represents a received signal strength of the networked device when the non-networked device scans the networked device; The processing module is further configured to determine a first networked device among the N networked devices according to the N first strength values; The processing module is further configured to send a first instruction to the first networked device; After receiving the first instruction, the first networked device establishes a communication connection with the non-networked device.
14. A control device for a smart home system, characterized in that: include: processor; A memory, wherein a program or instruction is stored in the memory, and the processor implements the steps of the control method of the smart home system as described in any one of claims 1 to 12 when executing the program or instruction in the memory.
15. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method of the smart home system according to any one of claims 1 to 12 are implemented.
16. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the control method of the smart home system as claimed in any one of claims 1 to 12.
