Network control method and device of central control equipment, equipment, medium and product

By detecting the current usable network and quality parameters of the central control equipment, intelligently judge and select networks with high priority, the problem of difficult to guarantee the network quality of central control equipment in the existing technology is solved, and more efficient network selection and quality improvement is achieved.

CN119644823APending Publication Date: 2025-03-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411646257.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, the network of central control equipment is usually set by a fixed mode by humans, making it difficult to ensure network quality.

Method used

By detecting the current useable network of the central control device, network priority information is determined, and target networks are intelligently judged and selected based on the quality parameters and priority information of the wired and wireless networks to ensure network quality.

Benefits of technology

The network selection for central control equipment is realized based on network quality and network priority, so that the selection of network can adapt to network changes, meet the network priority needs of central control equipment, and improve the network quality of central control equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644823A_ABST
    Figure CN119644823A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network control method and device for central control equipment, equipment, a medium and a product. The method comprises the following steps: detecting a current available network of the central control equipment; when the currently available network comprises a wired network and a wireless network, network priority information is determined, and the network priority information is used for indicating the type of the network preferentially used by the central control equipment; detecting a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determining a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information; and communicating with the whole-house intelligent server through the target network to control the intelligent household equipment. Through the embodiment of the invention, the network is selected for the central control equipment according to the network quality and the network priority, so that the selection of the network not only can adapt to the network change, but also can meet the network priority requirement of the central control equipment, and the network quality of the central control equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a network control method, device, equipment, medium and product for a central control device. Background Art

[0002] With the gradual application of smart homes, there are more and more smart home devices in the house. Smart home devices usually rely on central control devices for control, so the network quality of central control devices is particularly important. In the existing technology, the network of central control devices is usually a fixed mode set by humans, and it is difficult to ensure the network quality. Summary of the invention

[0003] In view of the above problems, a network control method, device, equipment, medium and product for a central control device are proposed to overcome the above problems or at least partially solve the above problems, including:

[0004] A network control method for a central control device, the method comprising:

[0005] Detecting the currently available network of the central control device;

[0006] In a case where the currently available network includes a wired network and a wireless network, determining network priority information, where the network priority information is used to indicate a network type that is preferentially used by the central control device;

[0007] detecting a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determining a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information;

[0008] Communicate with the whole-house smart server through the target network to control smart home devices.

[0009] Optionally, determining the target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter, and the network priority information includes:

[0010] When a difference between the first network quality parameter and the second network quality parameter is less than or equal to a preset difference, determining a target network from the wired network and the wireless network according to the network type indicated by the network priority information;

[0011] When the difference between the first network quality parameter and the second network quality parameter is greater than a preset difference, a target network is determined from the wired network and the wireless network according to a comparison between the first network quality parameter and the second network quality parameter.

[0012] Optionally, before communicating with the whole-house smart server through the target network to control smart home devices, the method further includes:

[0013] The central control device is configured with a network to switch from the current network to the target network.

[0014] Optionally, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0015] A network test is performed on the target network, and after the network test passes, network configuration is performed on the central control device to switch from the current network to the target network.

[0016] Optionally, it also includes:

[0017] When the number of consecutive failures of the network test is greater than the preset number, the current network is kept in use.

[0018] Optionally, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0019] Detect whether the central control device is in an idle state, and when the central control device is in an idle state, perform network configuration on the central control device to switch from the current network to the target network.

[0020] Optionally, it also includes:

[0021] In the case where the target network is a wireless network, if the data volume of the target file to be transmitted is greater than a preset data volume, the target file is transmitted by switching from the wireless network to the wired network.

[0022] Optionally, the network priority information indicates that the network type preferentially used by the central control device is a wired network.

[0023] A network control device for a central control device, the device comprising:

[0024] A currently available network detection module is used to detect the currently available network of the central control device;

[0025] A network priority information determination module, used to determine network priority information when the currently available network includes a wired network and a wireless network, wherein the network priority information is used to indicate a network type that is preferentially used by the central control device;

[0026] a target network determination module, configured to detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information;

[0027] The target network communication module is used to communicate with the whole-house smart server through the target network to control smart home devices.

[0028] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method described above when executed by the processor.

[0029] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0030] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described above.

[0031] The embodiments of the present invention have the following advantages:

[0032] In an embodiment of the present invention, by detecting the currently available network of the central control device, when the currently available network includes a wired network and a wireless network, network priority information is determined, and the network priority information is used to indicate the type of network that the central control device preferentially uses, and a first network quality parameter of the wired network and a second network quality parameter of the wireless network are detected, and based on the first network quality parameter, the second network quality parameter and the network priority information, a target network is determined from the wired network and the wireless network, and communication is performed with the whole-house smart server through the target network to control smart home devices, thereby realizing the selection of a network for the central control device based on network quality and network priority, so that the selection of the network can not only adapt to network changes but also meet the network priority requirements of the central control device, thereby improving the network quality of the central control device. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0034] Figure 1 is a flowchart of a network control method for a central control device provided by some embodiments of the present invention;

[0035] Figure 2 is a flowchart of the steps of another network control method of a central control device provided by some embodiments of the present invention;

[0036] Figure 3 is a flowchart of the steps of another network control method of a central control device provided by some embodiments of the present invention;

[0037] Figure 4 is a flowchart of the steps of another network control method of a central control device provided by some embodiments of the present invention;

[0038] Figure 5 is a flowchart of the steps of another network control method of a central control device provided by some embodiments of the present invention;

[0039] Figure 6 It is a structural block diagram of another network control device of a central control device provided in some embodiments of the present invention. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Reference Figure 1 , showing a step flow chart of a network control method for a central control device provided by some embodiments of the present invention. The method can be applied to the central control device. The central control device is the control center of the whole-house smart environment and can be installed at the entrance of the home to control all home appliances in the whole-house smart environment. The central control device can control the smart home devices by communicating with the whole-house smart server. The whole-house smart server is used for short-range control, remote control, scene control, voice control and other settings of all the whole-house smart devices. The whole-house smart server can be set at the local end.

[0042] In some examples, smart home devices may include at least two types. One type is smart home devices controlled through a wired network or a WIFI network. The central control device can control the smart home devices by communicating with a whole-house smart server. The other type is smart home devices controlled through networks such as Bluetooth. The central control device can directly control the smart home devices through networks such as Bluetooth.

[0043] Specifically, the following steps may be included:

[0044] Step 101: Detect the currently available network of the central control device.

[0045] In actual applications, the central control device may be provided with a wired network interface, such as an RJ45 interface, and have a wireless network function, and may be connected to a wireless network, such as a WIFI network. After the central control device is started, the currently available network of the central control device may be detected.

[0046] Step 102, when the currently available network includes a wired network and a wireless network, determine network priority information, where the network priority information is used to indicate the type of network that the central control device preferentially uses.

[0047] Since the network cable connection is stable and not prone to packet loss during actual use, and there is no need to enter the router account and password, the central control can be connected to the router directly by plugging it into the central control. Therefore, when both wired and wireless networks exist at the same time, the central control device gives priority to the wired network. The network priority of the central control device can be set in advance, and the network priority information can be used to indicate that the central control device gives priority to the wired network.

[0048] Step 103: Detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information.

[0049] In the case where the currently available networks include wired networks and wireless networks, due to the difference in network quality between the wired network and the wireless network, the first network quality parameter of the wired network and the second network quality parameter of the wireless network can be detected, and then the network quality can be guaranteed based on the first network quality parameter, the second network quality parameter and the network priority information, and the network priority configured by the central control device to select an adapted network. In some examples, the network priority information indicates that the network type that the central control device preferentially uses is a wired network, and on the basis of ensuring the network quality, the wired network is preferably selected.

[0050] In some examples, the network quality parameter may be a network transmission rate, which may be calculated by sending data of a specified size to a corresponding network server.

[0051] In the embodiment of the present invention, the quality of the wired network and the wireless network is intelligently judged, the wired network is used when there is no problem with the wired network, and the wireless network is used when there is an abnormality in the wired network, ensuring that the central control can connect to the whole-house smart server under any circumstances.

[0052] In some examples, whether a wired network is available can be determined by detecting whether a network cable is connected to a wired network interface, and whether a wireless network is available can be determined by an existing WIFI account and password.

[0053] In some embodiments of the present invention, a target network is determined from the wired network and the wireless network based on the first network quality parameter, the second network quality parameter and the network priority information, including: when the difference between the first network quality parameter and the second network quality parameter is less than or equal to a preset difference, determining the target network from the wired network and the wireless network based on the network type indicated by the network priority information; when the difference between the first network quality parameter and the second network quality parameter is greater than the preset difference, determining the target network from the wired network and the wireless network based on a comparison between the first network quality parameter and the second network quality parameter.

[0054] In some examples, the network quality parameter may be a network transmission rate, the difference between the first network quality parameter and the second network quality parameter may be a difference in the network transmission rate, and the preset difference may be 30%.

[0055] When the difference between the first network quality parameter and the second network quality parameter is less than or equal to the preset difference, that is, the network qualities of the wired network and the wireless network are not much different, the corresponding network can be used preferentially according to the preset network priority information, such as giving priority to the wired network.

[0056] When the difference between the first network quality parameter and the second network quality parameter is greater than the preset difference, that is, the network quality of the wired network and the wireless network is greatly different, then the network with better quality can be selected as the target network. For example, if the network transmission rate of the wireless network is 30% higher than that of the wired network, then the wireless network is selected as the target network.

[0057] Step 104, communicating with the whole-house smart server through the target network to control smart home devices.

[0058] In actual applications, the central control device can use a target network with better quality to communicate with the whole-house smart server, and then control the smart home devices through the whole-house smart server.

[0059] In some embodiments of the present invention, before communicating with the whole-house smart server through the target network to control smart home devices, the method further includes:

[0060] The central control device is configured with a network to switch from the current network to the target network.

[0061] After selecting the target network, if the current network is not the target network, configure the network for the central control device, such as by sending a Bind packet, and then control the central control device to switch from the current network to the target network. If the current network is the target network, continue to use the current network.

[0062] In some embodiments of the present invention, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0063] A network test is performed on the target network, and after the network test passes, network configuration is performed on the central control device to switch from the current network to the target network.

[0064] In some embodiments of the present invention, it also includes:

[0065] When the number of consecutive failures of the network test is greater than the preset number, the current network is kept in use.

[0066] For example, the preset number of times is 5 times, 10 times, or 20 times.

[0067] After selecting the target network, you can further perform network tests on the target network. For example, after connecting to the router through the target network, you can use the Ping command to test the connectivity of the network. You can also send a test packet to a specified website. If you receive a reply message from the specified website, it means that the network test has passed. You can also use a test tool to test the bandwidth, delay, jitter and other indicators of the target network. If there are no problems with these indicators, it means that the network test has passed.

[0068] After the network test passes, you can switch to the target network for use. After the network test fails, repeat the test. When the network test fails continuously and the number of consecutive failures is greater than the preset number, keep using the current network and do not switch to the target network.

[0069] For example, if the target network is a wired network and five consecutive attempts fail, a prompt will appear: "Wired network abnormality, switch to wireless network". If the router's WIFI account and password are saved, the account and password will be automatically used to connect, and the correctness of the account and password will be verified before using the WIFI network.

[0070] In some examples, if both the wired network and the wireless network cannot be connected, a prompt may be displayed: "Network abnormality, please insert the network cable or enter the correct WIFI account and password."

[0071] In some embodiments of the present invention, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0072] Detect whether the central control device is in an idle state, and when the central control device is in an idle state, perform network configuration on the central control device to switch from the current network to the target network.

[0073] In actual applications, in order to avoid the impact of network switching on business, before network switching, it is possible to detect whether the central control device is in an idle state. Only when the communication is completed and the central control is idle, the central control device is allowed to configure the network to switch from the current network to the target network.

[0074] In some embodiments of the present invention, it also includes:

[0075] In the case where the target network is a wireless network, if the data volume of the target file to be transmitted is greater than a preset data volume, the target file is transmitted by switching from the wireless network to the wired network.

[0076] In actual applications, since wireless is unstable and will be retransmitted after disconnection, while wired network will not be interrupted, when the data volume of the target file to be transmitted is greater than the preset data volume, that is, when large files need to be transmitted, such as OTA (Over-the-Air) files, LOG (log) files, etc., you can give priority to using wired network for transmission.

[0077] In an embodiment of the present invention, by detecting the currently available network of the central control device, when the currently available network includes a wired network and a wireless network, network priority information is determined, and the network priority information is used to indicate the type of network that the central control device preferentially uses, and a first network quality parameter of the wired network and a second network quality parameter of the wireless network are detected, and based on the first network quality parameter, the second network quality parameter and the network priority information, a target network is determined from the wired network and the wireless network, and communication is performed with the whole-house smart server through the target network to control smart home devices, thereby realizing the selection of a network for the central control device based on network quality and network priority, so that the selection of the network can not only adapt to network changes but also meet the network priority requirements of the central control device, thereby improving the network quality of the central control device.

[0078] Reference Figure 2, showing a step flow chart of another network control method for a central control device provided by some embodiments of the present invention. The method can be applied to the central control device. The central control device is the control center of the whole-house smart environment and can be installed at the entrance of the home to control all home appliances in the whole-house smart environment. The central control device can control the smart home devices by communicating with the whole-house smart server. The whole-house smart server is used for short-range control, remote control, scene control, voice control and other settings of all the whole-house smart devices. The whole-house smart server can be set at the local end.

[0079] In some examples, smart home devices may include at least two types. One type is smart home devices controlled through a wired network or a WIFI network. The central control device can control the smart home devices by communicating with a whole-house smart server. The other type is smart home devices controlled through networks such as Bluetooth. The central control device can directly control the smart home devices through networks such as Bluetooth.

[0080] Specifically, the following steps may be included:

[0081] Step 201: Detect the currently available network of the central control device.

[0082] In actual applications, the central control device may be provided with a wired network interface, such as an RJ45 interface, and have a wireless network function, and may be connected to a wireless network, such as a WIFI network. After the central control device is started, the currently available network of the central control device may be detected.

[0083] Step 202, when the currently available network includes a wired network and a wireless network, determine network priority information, where the network priority information is used to indicate the type of network that the central control device preferentially uses.

[0084] Since the network cable connection is stable and not prone to packet loss during actual use, and there is no need to enter the router account and password, the central control can be connected to the router directly by plugging it into the central control. Therefore, when both wired and wireless networks exist at the same time, the central control device gives priority to the wired network. The network priority of the central control device can be set in advance, and the network priority information can be used to indicate that the central control device gives priority to the wired network.

[0085] Step 203: Detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information.

[0086] In the case where the currently available networks include wired networks and wireless networks, due to the difference in network quality between the wired network and the wireless network, the first network quality parameter of the wired network and the second network quality parameter of the wireless network can be detected, and then the network quality can be guaranteed based on the first network quality parameter, the second network quality parameter and the network priority information, and the network priority configured by the central control device to select an adapted network. In some examples, the network priority information indicates that the network type that the central control device preferentially uses is a wired network, and on the basis of ensuring the network quality, the wired network is preferably selected.

[0087] In some examples, the network quality parameter may be a network transmission rate, which may be calculated by sending data of a specified size to a corresponding network server.

[0088] In the embodiment of the present invention, the quality of the wired network and the wireless network is intelligently judged, the wired network is used when there is no problem with the wired network, and the wireless network is used when there is an abnormality in the wired network, ensuring that the central control can connect to the whole-house smart server under any circumstances.

[0089] In some examples, whether a wired network is available can be determined by detecting whether a network cable is connected to a wired network interface, and whether a wireless network is available can be determined by an existing WIFI account and password.

[0090] Step 204: configure the network for the central control device to switch from the current network to the target network.

[0091] After selecting the target network, if the current network is not the target network, configure the network for the central control device, such as by sending a Bind packet, and then control the central control device to switch from the current network to the target network. If the current network is the target network, continue to use the current network.

[0092] Step 205, communicating with the whole-house smart server through the target network to control smart home devices.

[0093] In actual applications, the central control device can use a target network with better quality to communicate with the whole-house smart server, and then control the smart home devices through the whole-house smart server.

[0094] Reference Figure 3, showing a step flow chart of another network control method for a central control device provided by some embodiments of the present invention. The method can be applied to the central control device. The central control device is the control center of the whole-house smart environment and can be installed at the entrance of the home to control all home appliances in the whole-house smart environment. The central control device can control the smart home devices by communicating with the whole-house smart server. The whole-house smart server is used for short-range control, remote control, scene control, voice control and other settings of all the whole-house smart devices. The whole-house smart server can be set at the local end.

[0095] In some examples, smart home devices may include at least two types. One type is smart home devices controlled through a wired network or a WIFI network. The central control device can control the smart home devices by communicating with a whole-house smart server. The other type is smart home devices controlled through networks such as Bluetooth. The central control device can directly control the smart home devices through networks such as Bluetooth.

[0096] Specifically, the following steps may be included:

[0097] Step 301: Detect the currently available network of the central control device.

[0098] In actual applications, the central control device may be provided with a wired network interface, such as an RJ45 interface, and have a wireless network function, and may be connected to a wireless network, such as a WIFI network. After the central control device is started, the currently available network of the central control device may be detected.

[0099] Step 302, when the currently available network includes a wired network and a wireless network, determine network priority information, where the network priority information is used to indicate the type of network that the central control device preferentially uses.

[0100] Since the network cable connection is stable and not prone to packet loss during actual use, and there is no need to enter the router account and password, the central control can be connected to the router directly by plugging it into the central control. Therefore, when both wired and wireless networks exist at the same time, the central control device gives priority to the wired network. The network priority of the central control device can be set in advance, and the network priority information can be used to indicate that the central control device gives priority to the wired network.

[0101] Step 303: Detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information.

[0102] In the case where the currently available networks include wired networks and wireless networks, due to the difference in network quality between the wired network and the wireless network, the first network quality parameter of the wired network and the second network quality parameter of the wireless network can be detected, and then the network quality can be guaranteed based on the first network quality parameter, the second network quality parameter and the network priority information, and the network priority configured by the central control device to select an adapted network. In some examples, the network priority information indicates that the network type that the central control device preferentially uses is a wired network, and on the basis of ensuring the network quality, the wired network is preferably selected.

[0103] In some examples, the network quality parameter may be a network transmission rate, which may be calculated by sending data of a specified size to a corresponding network server.

[0104] In the embodiment of the present invention, the quality of the wired network and the wireless network is intelligently judged, the wired network is used when there is no problem with the wired network, and the wireless network is used when there is an abnormality in the wired network, ensuring that the central control can connect to the whole-house smart server under any circumstances.

[0105] In some examples, whether a wired network is available can be determined by detecting whether a network cable is connected to a wired network interface, and whether a wireless network is available can be determined by an existing WIFI account and password.

[0106] Step 304: Perform a network test on the target network, and after the network test passes, configure the network for the central control device to switch from the current network to the target network.

[0107] After selecting the target network, you can further perform network tests on the target network. For example, after connecting to the router through the target network, you can use the Ping command to test the connectivity of the network. You can also send a test packet to a specified website. If you receive a reply message from the specified website, it means that the network test has passed. You can also use a test tool to test the bandwidth, delay, jitter and other indicators of the target network. If there are no problems with these indicators, it means that the network test has passed.

[0108] After the network test passes, you can switch to the target network for use. After the network test fails, repeat the test. When the network test fails continuously and the number of consecutive failures is greater than the preset number, keep using the current network and do not switch to the target network.

[0109] For example, if the target network is a wired network and five consecutive attempts fail, a prompt will appear: "Wired network abnormality, switch to wireless network". If the router's WIFI account and password are saved, the account and password will be automatically used to connect, and the correctness of the account and password will be verified before using the WIFI network.

[0110] In some examples, if both the wired network and the wireless network cannot be connected, a prompt may be displayed: "Network abnormality, please insert the network cable or enter the correct WIFI account and password."

[0111] Step 305, communicating with the whole-house smart server through the target network to control smart home devices.

[0112] In actual applications, the central control device can use a target network with better quality to communicate with the whole-house smart server, and then control the smart home devices through the whole-house smart server.

[0113] Reference Figure 4 , showing a step flow chart of another network control method for a central control device provided by some embodiments of the present invention. The method can be applied to the central control device. The central control device is the control center of the whole-house smart environment and can be installed at the entrance of the home to control all home appliances in the whole-house smart environment. The central control device can control the smart home devices by communicating with the whole-house smart server. The whole-house smart server is used for short-range control, remote control, scene control, voice control and other settings of all the whole-house smart devices. The whole-house smart server can be set at the local end.

[0114] In some examples, smart home devices may include at least two types. One type is smart home devices controlled through a wired network or a WIFI network. The central control device can control the smart home devices by communicating with a whole-house smart server. The other type is smart home devices controlled through networks such as Bluetooth. The central control device can directly control the smart home devices through networks such as Bluetooth.

[0115] Specifically, the following steps may be included:

[0116] Step 401: Detect the currently available network of the central control device.

[0117] In actual applications, the central control device may be provided with a wired network interface, such as an RJ45 interface, and have a wireless network function, and may be connected to a wireless network, such as a WIFI network. After the central control device is started, the currently available network of the central control device may be detected.

[0118] Step 402, when the currently available network includes a wired network and a wireless network, determine network priority information, where the network priority information is used to indicate the type of network that the central control device preferentially uses.

[0119] Since the network cable connection is stable and not prone to packet loss during actual use, and there is no need to enter the router account and password, the central control can be connected to the router directly by plugging it into the central control. Therefore, when both wired and wireless networks exist at the same time, the central control device gives priority to the wired network. The network priority of the central control device can be set in advance, and the network priority information can be used to indicate that the central control device gives priority to the wired network.

[0120] Step 403: Detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information.

[0121] In the case where the currently available networks include wired networks and wireless networks, due to the difference in network quality between the wired network and the wireless network, the first network quality parameter of the wired network and the second network quality parameter of the wireless network can be detected, and then the network quality can be guaranteed based on the first network quality parameter, the second network quality parameter and the network priority information, and the network priority configured by the central control device to select an adapted network. In some examples, the network priority information indicates that the network type that the central control device preferentially uses is a wired network, and on the basis of ensuring the network quality, the wired network is preferably selected.

[0122] In some examples, the network quality parameter may be a network transmission rate, which may be calculated by sending data of a specified size to a corresponding network server.

[0123] In the embodiment of the present invention, the quality of the wired network and the wireless network is intelligently judged, the wired network is used when there is no problem with the wired network, and the wireless network is used when there is an abnormality in the wired network, ensuring that the central control can connect to the whole-house smart server under any circumstances.

[0124] In some examples, whether a wired network is available can be determined by detecting whether a network cable is connected to a wired network interface, and whether a wireless network is available can be determined by an existing WIFI account and password.

[0125] Step 404 , detecting whether the central control device is in an idle state, and when the central control device is in an idle state, performing network configuration on the central control device to switch from the current network to the target network.

[0126] In actual applications, in order to avoid the impact of network switching on business, before network switching, it is possible to detect whether the central control device is in an idle state. Only when the communication is completed and the central control is idle, the central control device is allowed to configure the network to switch from the current network to the target network.

[0127] Step 405, communicating with the whole-house smart server through the target network to control smart home devices.

[0128] In actual applications, the central control device can use a target network with better quality to communicate with the whole-house smart server, and then control the smart home devices through the whole-house smart server.

[0129] Reference Figure 5 , showing a step flow chart of another network control method for a central control device provided by some embodiments of the present invention. The method can be applied to the central control device. The central control device is the control center of the whole-house smart environment and can be installed at the entrance of the home to control all home appliances in the whole-house smart environment. The central control device can control the smart home devices by communicating with the whole-house smart server. The whole-house smart server is used for short-range control, remote control, scene control, voice control and other settings of all the whole-house smart devices. The whole-house smart server can be set at the local end.

[0130] In some examples, smart home devices may include at least two types. One type is smart home devices controlled through a wired network or a WIFI network. The central control device can control the smart home devices by communicating with a whole-house smart server. The other type is smart home devices controlled through networks such as Bluetooth. The central control device can directly control the smart home devices through networks such as Bluetooth.

[0131] Specifically, the following steps may be included:

[0132] Step 501: Detect the currently available network of the central control device.

[0133] In actual applications, the central control device may be provided with a wired network interface, such as an RJ45 interface, and have a wireless network function, and may be connected to a wireless network, such as a WIFI network. After the central control device is started, the currently available network of the central control device may be detected.

[0134] Step 502, when the currently available network includes a wired network and a wireless network, determine network priority information, where the network priority information is used to indicate the type of network that the central control device preferentially uses.

[0135] Since the network cable connection is stable and not prone to packet loss during actual use, and there is no need to enter the router account and password, the central control can be connected to the router directly by plugging it into the central control. Therefore, when both wired and wireless networks exist at the same time, the central control device gives priority to the wired network. The network priority of the central control device can be set in advance, and the network priority information can be used to indicate that the central control device gives priority to the wired network.

[0136] Step 503: Detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information.

[0137] In the case where the currently available networks include wired networks and wireless networks, due to the difference in network quality between the wired network and the wireless network, the first network quality parameter of the wired network and the second network quality parameter of the wireless network can be detected, and then the network quality can be guaranteed based on the first network quality parameter, the second network quality parameter and the network priority information, and the network priority configured by the central control device to select an adapted network. In some examples, the network priority information indicates that the network type that the central control device preferentially uses is a wired network, and on the basis of ensuring the network quality, the wired network is preferably selected.

[0138] In some examples, the network quality parameter may be a network transmission rate, which may be calculated by sending data of a specified size to a corresponding network server.

[0139] In the embodiment of the present invention, the quality of the wired network and the wireless network is intelligently judged, the wired network is used when there is no problem with the wired network, and the wireless network is used when there is an abnormality in the wired network, ensuring that the central control can connect to the whole-house smart server under any circumstances.

[0140] In some examples, whether a wired network is available can be determined by detecting whether a network cable is connected to a wired network interface, and whether a wireless network is available can be determined by an existing WIFI account and password.

[0141] Step 504, communicating with the whole-house smart server through the target network to control smart home devices.

[0142] In actual applications, the central control device can use a target network with better quality to communicate with the whole-house smart server, and then control the smart home devices through the whole-house smart server.

[0143] Step 505: When the target network is a wireless network, if the data volume of the target file to be transmitted is greater than a preset data volume, the target file is transmitted by switching from the wireless network to the wired network.

[0144] In actual applications, since wireless is unstable and will be retransmitted after disconnection, while wired network will not be interrupted, when the data volume of the target file to be transmitted is greater than the preset data volume, that is, when large files need to be transmitted, such as OTA (Over-the-Air) files, LOG (log) files, etc., you can give priority to using wired network for transmission.

[0145] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0146] Reference Figure 6 , shows a schematic diagram of the structure of a network control device of a central control device provided by some embodiments of the present invention, which may specifically include the following modules:

[0147] The currently available network detection module 601 is used to detect the currently available network of the central control device;

[0148] A network priority information determination module 602, configured to determine network priority information when the currently available network includes a wired network and a wireless network, wherein the network priority information is used to indicate a network type that is preferentially used by the central control device;

[0149] a target network determination module 603, configured to detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information;

[0150] The target network communication module 604 is used to communicate with the whole-house smart server through the target network to control smart home devices.

[0151] In some embodiments of the present invention, determining a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter, and the network priority information includes:

[0152] When a difference between the first network quality parameter and the second network quality parameter is less than or equal to a preset difference, determining a target network from the wired network and the wireless network according to the network type indicated by the network priority information;

[0153] When the difference between the first network quality parameter and the second network quality parameter is greater than a preset difference, a target network is determined from the wired network and the wireless network according to a comparison between the first network quality parameter and the second network quality parameter.

[0154] In some embodiments of the present invention, before communicating with the whole-house smart server through the target network to control smart home devices, the method further includes:

[0155] The central control device is configured with a network to switch from the current network to the target network.

[0156] In some embodiments of the present invention, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0157] A network test is performed on the target network, and after the network test passes, network configuration is performed on the central control device to switch from the current network to the target network.

[0158] In some embodiments of the present invention, it also includes:

[0159] When the number of consecutive failures of the network test is greater than the preset number, the current network is kept in use.

[0160] In some embodiments of the present invention, before configuring the central control device to switch from the current network to the target network, the method further includes:

[0161] Detect whether the central control device is in an idle state, and when the central control device is in an idle state, perform network configuration on the central control device to switch from the current network to the target network.

[0162] In some embodiments of the present invention, it also includes:

[0163] In the case where the target network is a wireless network, if the data volume of the target file to be transmitted is greater than a preset data volume, the target file is transmitted by switching from the wireless network to the wired network.

[0164] In some embodiments of the present invention, the network priority information indicates that the network type preferentially used by the central control device is a wired network.

[0165] In an embodiment of the present invention, by detecting the currently available network of the central control device, when the currently available network includes a wired network and a wireless network, network priority information is determined, and the network priority information is used to indicate the type of network that the central control device preferentially uses, and a first network quality parameter of the wired network and a second network quality parameter of the wireless network are detected, and based on the first network quality parameter, the second network quality parameter and the network priority information, a target network is determined from the wired network and the wireless network, and communication is performed with the whole-house smart server through the target network to control smart home devices, thereby realizing the selection of a network for the central control device based on network quality and network priority, so that the selection of the network can not only adapt to network changes but also meet the network priority requirements of the central control device, thereby improving the network quality of the central control device.

[0166] Some embodiments of the present invention further provide an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.

[0167] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0168] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.

[0169] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0171] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0172] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0173] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0177] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0178] The network control method, device, equipment, medium and product of the central control equipment provided are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A network control method for a central control device, characterized in that: The method comprises: Detecting the currently available network of the central control device; In a case where the currently available network includes a wired network and a wireless network, determining network priority information, where the network priority information is used to indicate a network type that is preferentially used by the central control device; detecting a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determining a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information; Communicate with the whole-house smart server through the target network to control smart home devices.

2. The method according to claim 1, characterized in that The determining a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter, and the network priority information includes: When a difference between the first network quality parameter and the second network quality parameter is less than or equal to a preset difference, determining a target network from the wired network and the wireless network according to the network type indicated by the network priority information; When the difference between the first network quality parameter and the second network quality parameter is greater than a preset difference, a target network is determined from the wired network and the wireless network according to a comparison between the first network quality parameter and the second network quality parameter.

3. The method according to claim 1 or 2, characterized in that: Before communicating with the whole-house smart server through the target network to control smart home devices, the method further includes: The central control device is configured with a network to switch from the current network to the target network.

4. The method according to claim 3, characterized in that Before configuring the central control device to switch from the current network to the target network, the method further includes: A network test is performed on the target network, and after the network test passes, network configuration is performed on the central control device to switch from the current network to the target network.

5. The method according to claim 4, characterized in that Also includes: When the number of consecutive failures of the network test is greater than the preset number, the current network is kept in use.

6. The method according to claim 3, characterized in that Before configuring the central control device to switch from the current network to the target network, the method further includes: Detect whether the central control device is in an idle state, and when the central control device is in an idle state, perform network configuration on the central control device to switch from the current network to the target network.

7. The method according to claim 1 or 2, characterized in that: Also includes: In the case where the target network is a wireless network, if the data volume of the target file to be transmitted is greater than a preset data volume, the target file is transmitted by switching from the wireless network to the wired network.

8. The method according to claim 1, characterized in that The network priority information indicates that the network type preferentially used by the central control device is a wired network.

9. A network control device for a central control device, characterized in that: The device comprises: A currently available network detection module is used to detect the currently available network of the central control device; A network priority information determination module, used to determine network priority information when the currently available network includes a wired network and a wireless network, wherein the network priority information is used to indicate a network type that is preferentially used by the central control device; a target network determination module, configured to detect a first network quality parameter of the wired network and a second network quality parameter of the wireless network, and determine a target network from the wired network and the wireless network according to the first network quality parameter, the second network quality parameter and the network priority information; The target network communication module is used to communicate with the whole-house smart server through the target network to control smart home devices.

10. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 8 when executed by the processor.

11. 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 1 to 8 is implemented.

12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.