Method, device, storage medium and electronic device for determining target wireless network
By determining the network quality parameters of wireless devices and identifying the maximum network quality value, the problem of how wireless devices select target wireless networks when they are already connected to a network is solved, thus improving the accuracy and richness of the determination of target wireless networks.
Patent Information
- Application Number
- CN202211349232.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2042-10-31
AI Technical Summary
In the existing technology, the problem of how to determine the target wireless network that a wireless device should join has not been effectively solved, especially when the device is already connected to a network.
By determining the network quality parameters of multiple wireless subnetworks corresponding to a wireless device, the following steps are taken: determining the network quality parameters of multiple wireless subsystems corresponding to a wireless device; determining the multiple wireless devices based on these parameters; determining the network quality values of the multiple wireless subsystems based on their network quality parameters, and determining the first network quality value of each of the multiple wireless subsystems based on their network quality parameters; determining the network identifier of the target subsystem corresponding to the maximum network quality value, and obtaining the wireless network identifier record of the wireless device during network configuration; if the network identifier of the target subsystem exists in the wireless network identifier record, identifying the target subsystem as the target wireless network to be joined by the wireless device.
This technology enables accurate identification of the target wireless network to which a wireless device should join, even when the device is already connected to a network, thereby improving the accuracy and richness of the target wireless network identification process.
Smart Images

Figure CN115767682B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a target wireless network determination method and device, a storage medium and an electronic device. BACKGROUND
[0002] At present, with the continuous enhancement of smart home technology, users have higher and higher requirements for the intelligence of wireless devices based on smart home technology. For example, users expect wireless devices to be able to automatically access the network.
[0003] In the related art, it has been realized to select a network that a device needs to join according to the user's demand, or to determine a network that the device needs to join according to the network state found, but these methods do not consider whether the device itself has connected to the network, nor do they mention how to determine the target wireless network that needs to be joined in the case that the device has already connected to the network.
[0004] Therefore, in the related art, there is a problem of how to determine the target wireless network that a wireless device needs to join.
[0005] For the problem of how to determine the target wireless network that a wireless device needs to join in the related art, no effective solution has been proposed. SUMMARY
[0006] Embodiments of the present application provide a target wireless network determination method and device, a storage medium and an electronic device to at least solve the problem of how to determine the target wireless network that a wireless device needs to join in the related art.
[0007] According to one embodiment of an embodiment of the present application, a target wireless network determination method is provided, comprising: determining network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage range of the plurality of wireless sub-networks each includes the wireless device; determining first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, and determining a maximum network quality value from the first network quality values of the plurality of wireless sub-networks; determining a network identifier of a target sub-network corresponding to the maximum network quality value, and obtaining a wireless network identifier record of the wireless device when performing network setting; determining a network identifier of a target sub-network corresponding to the maximum network quality value, and obtaining a wireless network identifier record of the wireless device when performing network setting; in a case where the network identifier of the target sub-network exists in the wireless network identifier record, determining the target sub-network as the target wireless network that the wireless device needs to join.
[0008] In one example embodiment, determining the network quality parameters of the plurality of wireless sub-networks corresponding to the wireless device comprises: for any wireless sub-network of the plurality of wireless sub-networks, determining a preference value corresponding to a root node of the any wireless sub-network, a node signal strength of a target node of the any wireless sub-network, and a number of nodes of the any wireless sub-network; and determining the network quality parameters of the plurality of wireless sub-networks according to the preference value corresponding to the root node of the any wireless sub-network, the node signal strength of the target node of the any wireless sub-network, and the number of nodes of the any wireless sub-network.
[0009] In one example embodiment, determining the node signal strength of the target node of the any wireless sub-network comprises: obtaining a monitoring history of the signal strengths of all nodes in the any wireless sub-network, obtaining a first node with the largest signal strength from the monitoring history, and obtaining the signal strength of the first node of the any wireless sub-network, wherein the first node is the target node; or determining a second node with the smallest distance to a monitoring device from all nodes in the any wireless sub-network, and obtaining the signal strength of the second node of the any wireless sub-network, wherein the second node is the target node, and the monitoring device is a device monitoring the signal strengths of the nodes in the wireless sub-network.
[0010] In one example embodiment, in the process of determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, the method further comprises: for any wireless sub-network of the plurality of wireless sub-networks, determining a first product of the preference value corresponding to the root node of the any wireless sub-network and a weight coefficient of the preference value; determining a second product of the number of nodes of the any wireless sub-network and a weight coefficient of the number of nodes; obtaining a difference value of the first product and the second product, and determining a sum value between the difference value and the node signal strength of the target node of the any wireless sub-network as the first network quality value of the any wireless sub-network.
[0011] In one example embodiment, after determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, the method further comprises: obtaining at least one second network quality value greater than a preset network quality value from the first network quality values of the plurality of wireless sub-networks; and determining the obtained at least one second network quality value as the network quality values of the plurality of wireless sub-networks.
[0012] In an example embodiment, determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device comprises: in a case where the wireless device also corresponds to a wireless network that has connected to a server, determining a third network quality value of the wireless network that has connected to the server; obtaining the maximum network quality value from the third network quality value and the first network quality value; and determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device.
[0013] In an example embodiment, determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device comprises: in a case where the target sub-network corresponding to the maximum network quality value comprises a wireless network that has connected to a server, obtaining other preference values corresponding to root nodes of other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server; in a case where the preset preference value of the wireless device is greater than the other preference values, joining the wireless network that has connected to the server and creating the target wireless network to be joined by the wireless device based on the wireless network that has connected to the server.
[0014] In an example embodiment, determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device comprises: in a case where the preset preference value of the wireless device is less than or equal to the other preference values, determining the other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server as the target wireless network to be joined by the wireless device.
[0015] In an example embodiment, in the process of determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, the method further comprises: in a case where the first network quality values of the plurality of wireless sub-networks are all less than a preset network quality value, if the device type of the wireless device is a root node, creating the target wireless network to be joined by the wireless device; and if the device type of the wireless device is a non-root node, controlling the wireless device to perform a sleep operation and, after the sleep operation ends, re-determining the target wireless network to be joined by the wireless device.
[0016] According to another embodiment of the present application, a determination apparatus of a target wireless network is also provided, comprising: a first determination module configured to determine network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage of the plurality of wireless sub-networks all comprises the wireless device; a second determination module configured to determine first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, and determine a maximum network quality value from the first network quality values of the plurality of wireless sub-networks; a third determination module configured to determine a network identity of a target sub-network corresponding to the maximum network quality value, and acquire a wireless network identity record of the wireless device when performing a network setting; and a fourth determination module configured to determine the target sub-network as a target wireless network to be joined by the wireless device in a case where it is determined that the network identity of the target sub-network exists in the wireless network identity record.
[0017] According to still another aspect of the present application, a computer readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the above-mentioned determination method of a target wireless network when running.
[0018] According to still another aspect of the present application, an electronic device is also provided, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the above-mentioned determination method of a target wireless network through the computer program.
[0019] In the embodiments of the present application, the network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device are determined, wherein the network coverage of the plurality of wireless sub-networks all comprises the wireless device; first network quality values of the plurality of wireless sub-networks are determined according to the network quality parameters of the plurality of wireless sub-networks respectively, and a maximum network quality value is determined from the first network quality values of the plurality of wireless sub-networks; a network identity of a target sub-network corresponding to the maximum network quality value is determined, and a wireless network identity record of the wireless device when performing a network setting is acquired; and the target sub-network is determined as a target wireless network to be joined by the wireless device in a case where it is determined that the network identity of the target sub-network exists in the wireless network identity record. With the above technical solution, the problem of how to determine a target wireless network to be joined by a wireless device is solved, and thus the target wireless network to be joined by the wireless device can be determined. BRIEF DESCRIPTION OF DRAWINGS
[0020] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the present application.
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0022] Figure 1 Fig. 1 is a hardware environment schematic diagram of a target wireless network determination method according to an embodiment of the present application;
[0023] Figure 2 Fig. 2 is a flow chart of a target wireless network determination method according to an embodiment of the present application;
[0024] Figure 3 Fig. 3 is an architecture schematic diagram of a target wireless network according to an embodiment of the present application;
[0025] Figure 4 Fig. 4 is a structural block diagram of a target wireless network determination device according to an embodiment of the present application (1);
[0026] Figure 5 Fig. 5 is a structural block diagram of a target wireless network determination device according to an embodiment of the present application (2). DETAILED DESCRIPTION
[0027] In order to make the personnel in the technical field better understand the present application, the following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without any creative effort should belong to the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily mean a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an aspect of the embodiments of the present application, a method for determining a target wireless network is provided. The method for determining the target wireless network is widely applied to smart home, smart home, smart home device ecology, intelligence house ecology and other whole-house intelligent digital control application scenarios. Optionally, in the embodiments, the method for determining the target wireless network can be applied to the hardware environment composed of the terminal device 102 and the server 104 as shown in the figure. Figure 1 As shown in the figure, Figure 1 The server 104 is connected with the terminal device 102 through a network, which can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal, a database can be set on the server or independently of the server, which is used to provide data storage services for the server 104, cloud computing and / or edge computing services can be configured on the server or independently of the server, which is used to provide data operation services for the server 104.
[0030] The network can include but is not limited to at least one of the following: wired network, wireless network. The wired network can include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network can include but is not limited to at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), Bluetooth. The terminal device 102 can not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart oven, smart refrigerator, smart oven, smart oven, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection equipment, smart television, smart clothesline, smart curtain, smart audio and video, smart socket, smart sound, smart sound box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.
[0031] In the embodiments, a method for determining a target wireless network is provided, which is applied to the computer terminal, Figure 2 is a flowchart of the method for determining a target wireless network according to the embodiments of the present application, which includes the following steps:
[0032] Step S202, determining network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage of the plurality of wireless sub-networks all includes the wireless device;
[0033] It should be noted that the wireless sub-network can be understood as a Umesh network, and the wireless device can be understood as a Umesh device supporting the Umesh network protocol, but is not limited thereto.
[0034] Step S204, determining a first network quality value of each of the plurality of wireless sub-networks according to the network quality parameter of the wireless sub-network, and determining a maximum network quality value from the first network quality values of the plurality of wireless sub-networks;
[0035] Step S206, determining the network identifier of the target sub-network corresponding to the maximum network quality value, and obtaining the wireless network identifier record of the wireless device when performing the network setting.
[0036] Step S208, in a case where the network identifier of the target sub-network exists in the wireless network identifier record, determining the target sub-network as the target wireless network to be joined by the wireless device.
[0037] Through the above steps, the network quality parameter of the plurality of wireless sub-networks corresponding to the wireless device is determined, wherein the network coverage of the plurality of wireless sub-networks includes the wireless device; a first network quality value of each of the plurality of wireless sub-networks is determined according to the network quality parameter of the wireless sub-network, and a maximum network quality value is determined from the first network quality values of the plurality of wireless sub-networks; the network identifier of the target sub-network corresponding to the maximum network quality value is determined, and the wireless network identifier record of the wireless device when performing the network setting is obtained; in a case where the network identifier of the target sub-network exists in the wireless network identifier record, the target sub-network is determined as the target wireless network to be joined by the wireless device, thereby solving the problem of how to determine the target wireless network to be joined by the wireless device in the related art, and the target wireless network to be joined by the wireless device can be determined.
[0038] Based on the above embodiment, the target sub-network can be determined according to the maximum value of the first network quality values of the plurality of wireless sub-networks, and whether the target sub-network is the target wireless network to be joined by the wireless device is determined by taking whether the network identifier of the target sub-network exists in the wireless network identifier record as a condition, thereby not only enriching the determination process of the target wireless network, but also improving the accuracy of determining the target wireless network.
[0039] In one exemplary embodiment, for how to determine the network quality parameter of the plurality of wireless sub-networks corresponding to the wireless device in the above step S202, a technical solution is proposed, and the specific steps include: for any wireless sub-network of the plurality of wireless sub-networks, determining the preference value corresponding to the root node of the any wireless sub-network, the node signal strength of the target node of the any wireless sub-network, and the node quantity of the any wireless sub-network; and obtaining the network quality parameter of the plurality of wireless sub-networks according to the preference value corresponding to the root node of the any wireless sub-network, the signal strength of the target node of the any wireless sub-network, and the node quantity of the any wireless sub-network.
[0040] Further, the process for determining the preference value corresponding to the root node of any wireless sub-network comprises: obtaining the device factory data of the wireless device corresponding to the root node, determining the device memory of the wireless device, the network bandwidth of the wireless device and the power supply type of the wireless device from the device factory data; determining the preference value of the root node from the preset preference value according to the corresponding relationship between the preference value of the root node and the device memory, the network bandwidth and the power supply type. Wherein, the preference value of the root node is in direct proportion to the device memory and the network bandwidth, the power supply type comprises continuous power supply and non-continuous power supply, and the wireless device supporting continuous power supply has a higher preference value than the wireless device supporting non-continuous power supply.
[0041] In an exemplary embodiment, further, a technical solution for how to determine the signal strength of the target node of any wireless sub-network is proposed, and the specific steps are as follows: obtaining the monitoring history record of the signal strength of all nodes in the wireless sub-network, obtaining the first node with the maximum signal strength from the monitoring history record, and obtaining the signal strength of the first node of the wireless sub-network, wherein the first node is the target node; or determining the second node with the minimum distance from the monitoring device from all nodes in the wireless sub-network, and obtaining the signal strength of the second node of the wireless sub-network, wherein the second node is the target node, and the monitoring device is a device for monitoring the signal strength of the nodes in the wireless sub-network.
[0042] Wherein, the above monitoring history record can include the historical monitoring value of the node and the signal strength, for example, for node A, the historical monitoring value of the signal strength of node A includes (Monday, 60dbm), (Tuesday, 61dbm), (Wednesday, 62dbm), (Thursday, 60dbm), (Friday, 60dbm).
[0043] It should be noted that the above monitoring device can be understood as a device for monitoring the signal strength of all nodes in any wireless sub-network, which is configured with, for example, infrared monitoring device, sound wave monitoring device, etc., and can be the above wireless device or professional monitoring device, which is not limited in the present application.
[0044] In an example embodiment, for implementing the process of determining the first network quality value of each of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks in step S204, the following technical solution is proposed, specifically comprising: determining a first product of a preference value corresponding to a root node of any one of the plurality of wireless sub-networks and a weight coefficient of the preference value; determining a second product of a node quantity of the any one of the plurality of wireless sub-networks and a weight coefficient of the node quantity; obtaining a difference value between the first product and the second product, and determining a sum value between the difference value and a node signal strength of a target node of the any one of the plurality of wireless sub-networks as the first network quality value of the any one of the plurality of wireless sub-networks.
[0045] In an example embodiment, further, after determining the first network quality value of each of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, at least one second network quality value greater than a preset network quality value can be obtained from the first network quality values of the plurality of wireless sub-networks; and the obtained at least one second network quality value is determined as the network quality value of the plurality of wireless sub-networks.
[0046] Optionally, before obtaining at least one second network quality value greater than a preset network quality value from the first network quality values of the plurality of wireless sub-networks, the preset network quality value is obtained, wherein the preset network quality value can be determined according to historical network records or specified by a user, and the present application does not limit this.
[0047] For the process of obtaining at least one second network quality value greater than a preset network quality value from the first network quality values of the plurality of wireless sub-networks, the first network quality values of the plurality of wireless sub-networks can be sorted in size first, and then each first network quality value of each wireless sub-network is compared with the preset network quality value in sequence according to the sorting result until all first network quality values of all wireless sub-networks are compared with the preset network quality value. Alternatively, the first network quality value greater than the preset network quality value for the first time can be directly determined as the second network quality value. The present application does not limit this.
[0048] Further, for the plurality of second network quality values, the largest second network quality value is determined as the network quality value of the plurality of wireless sub-networks.
[0049] In other embodiments, if a fourth network quality value less than the preset network quality value is obtained from the first network quality values of the plurality of wireless sub-networks, it is determined that the network status of the wireless sub-network having the fourth network quality value is unqualified, the wireless sub-network having the fourth network quality value is deleted from the plurality of wireless sub-networks, and a target wireless network is determined from the plurality of wireless sub-networks after the wireless sub-network having the fourth network quality value is deleted.
[0050] In one example embodiment, for the process of determining the target sub-network as the target wireless network to be joined by the wireless device in step S206, the following steps can be used: determining a third network quality value of a wireless network that has connected to a server and to which the wireless device also corresponds; obtaining the maximum network quality value from the third network quality value and the first network quality value; and determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device.
[0051] In one example embodiment, a method of determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device is provided, which specifically includes: in a case where the target sub-network corresponding to the maximum network quality value includes a wireless network that has connected to a server, obtaining other preference values corresponding to root nodes of other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server; in a case where the preset preference value of the wireless device is greater than the other preference values, joining the wireless network that has connected to the server and creating the target wireless network to be joined by the wireless device based on the wireless network that has connected to the server.
[0052] In one example embodiment, a method of determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device is also provided, which specifically includes: in a case where the preset preference value of the wireless device is less than or equal to the other preference values, determining the other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server as the target wireless network to be joined by the wireless device.
[0053] In one example embodiment, in the process of determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, if the first network quality values of the plurality of wireless sub-networks are all less than the preset network quality value, the wireless device creates a target wireless network to be joined by the wireless device if the device type of the wireless device is a root node; and controls the wireless device to perform a sleep operation, and after the sleep operation ends, re-determines the target wireless network to be joined by the wireless device if the device type of the wireless device is a non-root node.
[0054] In order to better understand the process of the above-mentioned target wireless network determination method, the implementation method flow of the above-mentioned target wireless network determination will be described in combination with optional embodiments below, but not used to limit the technical solutions of the embodiments of the present application.
[0055] In the present embodiment, a schematic diagram of the architecture of the target wireless network is provided. In the present embodiment, when there is a whole-house basic network (equivalent to the above-mentioned wireless network having connected to the server) in a user's home, each UMesh sub-network (equivalent to the above-mentioned wireless sub-network) in the user's home is connected to the whole-house basic network through a sub-network root node, as shown in Figure 3 Figure 3 is a schematic diagram of the architecture of the target wireless network according to the embodiments of the present application. In the topology of the UMesh network, each UMesh sub-network root node has two interfaces: one interface (ROOT1 / ROOT2 / ROOT3) is located in the whole-house basic network and is connected to a traditional router in the whole-house basic network via Wi-Fi or Ethernet, which is called the external network interface of the UMesh root node; and the other interface is located in the UMesh sub-network and is connected to the nodes in the UMesh sub-network via Wi-Fi Mesh, which is called the sub-network interface of the UMesh root node (not shown). Figure 3 Figure 3
[0056] All UMesh root nodes can interconnect and interoperate in the whole-house basic network based on IPv6 through the respective external network interfaces, and complete the cooperation and inter-network data communication between the UMesh sub-networks through the UMesh management protocol.
[0057] For example, the UMesh root node can configure a ULA format unicast address on the external network interface, and join the UMesh root node multicast group (FF13::101). The construction rule of the corresponding ULA format unicast address prefix may, for example, include:
[0058] 1. The fixed prefix is FD00: / 8;
[0059] 2. Global ID is a 40-bit random ID derived from the UMesh network ID.
[0060] 3. Subnet number is fixed as 1.
[0061] Then, the ULA (Unique Local IPv6 Unicast Addresses [RFC4193]) unicast address of the external interface of the UMesh root node can be formed by combining the above prefix and the interface identifier of the UMesh root node.
[0062] Optionally, the external interface of the UMesh root node does not need to perform SLAAC (Stateless Address Autoconfiguration) and should ignore the PIO (Prefix Information Option) information in the RA (Router Advertisement Message) message.
[0063] It should be noted that the unicast address of the subnet interface of the UMesh root node can be understood as the inter-network unicast address of the UMesh root node.
[0064] In one embodiment, a determination method of the above target wireless network is proposed in combination with the following steps, and the quality values of the multiple UMesh subnets and the whole-house basic network can be calculated respectively, and the optimal access network (i.e., the target wireless network) can be selected by comparison.
[0065] For devices representing non-root nodes, the whole-house basic network can be skipped, and only the UMesh subnet quality can be calculated.
[0066] The specific implementation steps are as follows:
[0067] Step 1. Four parameters are required for the quality judgment of each UMesh subnet:
[0068] Parameter 1. UMesh network ID of each UMesh network. Before accessing the network, it is necessary to determine whether the UMesh network ID to be accessed is consistent with the UMesh network ID obtained by the node itself through the UMesh network binding process. If not, it is not possible to attempt to join the UMesh, and the UMesh subnet needs to be directly shielded in the subsequent calculation process.
[0069] Parameter 2, each UMesh subnet should have a preference value (up), which should be preset in the root node of the UMesh subnet, indicating whether the root node should be more preferentially selected as a root node. The preference value should be embodied in the Prf of the DIO packet, and the value range is 0-7. For example, a screen-equipped device should have a higher preference value (such as 7), and a wireless module of a washing machine should have a lower preference value (such as 0).
[0070] Parameter 3, the signal strength of the best node in each UMesh subnet (us).
[0071] Parameter 4, the number of nodes in each UMesh subnet (the value should roughly reflect the load of the subnet) (un).
[0072] In an embodiment, the quality value of the UMesh subnet (equivalent to the first network quality value described above) can be calculated according to the following formula: let the signal strength of the best node in the UMesh subnet be us, the preference value of the root node of the UMesh subnet be up, and the number of nodes in the UMesh subnet be un, then the quality value uq of the UMesh subnet can be calculated according to the following formula:
[0073] uq = us + (kp * up) - (kn * un).
[0074] Wherein, kp is a constant representing the weight of the preference value, which is recommended to be 10 here. kn is a constant representing the weight of the number of nodes, which can be 5, for example.
[0075] Step 2, the quality value rq of the whole-house basic network is the signal strength of the best router in the whole-house basic network.
[0076] Step 3, the quality value of the network has a minimum value (qmin, equivalent to the preset network quality value described above), if the network is searched but the calculated quality value is less than the minimum value, it indicates that the network state is very poor and cannot be accessed, and the network should be ignored in the process of networking. Qmin can be set to -100, for example.
[0077] Step 4, calculate the uq of all UMesh subnets around the wireless device and the rq of the whole-house basic network, and select the network corresponding to the maximum value of uq and rq. If the network corresponding to the maximum value is a UMesh network, directly join the network corresponding to the maximum value, if the network corresponding to the maximum value is the whole-house basic network, connect the whole-house basic network and negotiate the subnet number, and after successfully obtaining the subnet number, send DIO and start creating a UMesh subnet.
[0078] Step 5, whether the connection of the whole house basic network fails or the negotiation of the subnet number fails, the connection to the whole house basic network is abandoned, and the joining of the UMesh subnet is attempted.
[0079] Step 6, if the whole house basic network and the UMesh subnet with the same quality value exist around the device, the device should first compare the preference value of itself with the preference value of the UMesh subnet, if the preference value of itself is greater than the preference value of the UMesh subnet, the device should access the whole house basic network to attempt to create a new UMesh subnet, otherwise (the preference value of itself <= the preference value of the UMesh subnet) the device should join the UMesh subnet.
[0080] Step 7, if the optimal access network is not found (i.e. no UMesh subnet or whole house basic network with quality up to the standard exists around), for the wireless device corresponding to the root node, the UMesh network without the whole house basic network should be attempted to be established, for the wireless device corresponding to the non-root node, the device needs to be in silence and sleep for a period of time, and then the network establishment is restarted.
[0081] Step 8, if the joining of the optimal access network fails, the device needs to be in silence and sleep for a period of time, and then the network establishment is restarted.
[0082] Step 9, the time of silence and sleep and the number of reattempts depend on the implementation. Here, it is suggested that the silence and sleep time is doubled each time, and the silence and sleep time can be, for example, 5 seconds, 48 hours, but is not limited thereto.
[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method of each embodiment of the present application.
[0084] Figure 4 is a structural block diagram of a target wireless network determination device according to an embodiment of the present application (one); as shown in Figure 4 , comprising:
[0085] A first determination module 42 is configured to determine network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage range of the plurality of wireless sub-networks all includes the wireless device.
[0086] It should be noted that the wireless sub-networks can be understood as Umesh networks, and the wireless devices can be understood as Umesh devices supporting Umesh network protocols, but are not limited thereto.
[0087] The second determining module 44 is configured to determine first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, and determine a maximum network quality value from the first network quality values of the plurality of wireless sub-networks.
[0088] The third determining module 46 is configured to determine a network identifier of a target sub-network corresponding to the maximum network quality value, and acquire a wireless network identifier record of the wireless device when performing network configuration setting.
[0089] The fourth determining module 48 is configured to determine the target sub-network as a target wireless network to be joined by the wireless device in a case where the network identifier of the target sub-network exists in the wireless network identifier record.
[0090] The above apparatus determines network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage of the plurality of wireless sub-networks all includes the wireless device; determines first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks, and determines a maximum network quality value from the first network quality values of the plurality of wireless sub-networks; determines a network identifier of a target sub-network corresponding to the maximum network quality value, and acquires a wireless network identifier record of the wireless device when performing network configuration setting; and determines the target sub-network as a target wireless network to be joined by the wireless device in a case where the network identifier of the target sub-network exists in the wireless network identifier record, thereby solving the problem of how to determine a target wireless network to be joined by the wireless device in the related art, and further determining the target wireless network to be joined by the wireless device.
[0091] In an example embodiment, the first determining module 42 is further configured to, for any wireless sub-network of the plurality of wireless sub-networks, determine a preference value corresponding to a root node of the any wireless sub-network, a node signal strength of a target node of the any wireless sub-network, and a node quantity of the any wireless sub-network; and obtain the network quality parameters of the plurality of wireless sub-networks according to the preference value corresponding to the root node of the any wireless sub-network, the node signal strength of the target node of the any wireless sub-network, and the node quantity of the any wireless sub-network.
[0092] Furthermore, the first determining module 42 is also configured to: obtain the device manufacturing data of the wireless device corresponding to the root node; determine the device memory, network bandwidth, and power supply type of the wireless device from the device manufacturing data; and determine the root node's preference value from preset preference values based on the correspondence between the root node's preference value and the device memory, network bandwidth, and power supply type. The root node's preference value is directly proportional to both the device memory and the network bandwidth. The power supply type includes continuous power supply and non-continuous power supply, with wireless devices supporting continuous power supply having a higher preference value than those supporting non-continuous power supply.
[0093] In an exemplary embodiment, the first determining module 42 is further configured to: obtain a monitoring history of the signal strength of all nodes in any wireless subnetwork, obtain a first node with the maximum signal strength from the monitoring history, and obtain the signal strength of the first node of any wireless subnetwork, wherein the first node is the target node; or, determine a second node with the smallest distance from the monitoring device from all nodes in any wireless subnetwork, and obtain the signal strength of the second node of any wireless subnetwork, wherein the second node is the target node, and the monitoring device is a device for monitoring the signal strength of nodes in the wireless subnetwork.
[0094] In an exemplary embodiment, the second determining module 44 is further configured to: for any one of the plurality of wireless subnetworks, determine a first product of the preference value corresponding to the root node of the any one wireless subnetwork and the weight coefficient of the preference value; determine a second product of the number of nodes of the any one wireless subnetwork and the weight coefficient of the number of nodes; obtain the difference between the first product and the second product, and determine the sum of the difference and the node signal strength of the target node of the any one wireless subnetwork as a first network quality value of the any one wireless subnetwork.
[0095] In one exemplary embodiment, the second determining module 44 is further configured to: obtain at least one second network quality value greater than a preset network quality value from the first network quality values of the plurality of wireless sub-networks; and determine the obtained at least one second network quality value as the network quality value of the plurality of wireless sub-networks.
[0096] Optionally, before obtaining at least one second network quality value greater than the preset network quality value from the first network quality values of the plurality of wireless sub-networks, a preset network quality value is obtained. The preset network quality value can be determined based on historical network records or can be specified by the user. This application does not impose any restrictions on this.
[0097] For the process of obtaining at least one second network quality value greater than a preset network quality value from the first network quality values of the plurality of wireless sub-networks, the first network quality values of the plurality of wireless sub-networks can be sorted by size first, and then the first network quality value of each wireless sub-network can be compared with the preset network quality value in turn according to the sorting result, until the first network quality values of all wireless sub-networks have been compared with the preset network quality value. Alternatively, the first network quality value that is first greater than the preset network quality value can be directly determined as the second network quality value. This application does not impose any restrictions on this.
[0098] Furthermore, for multiple second network quality values, the largest second network quality value is determined as the network quality value of the multiple wireless sub-networks.
[0099] In other embodiments, if a fourth network quality value less than a preset network quality value is obtained from the first network quality values of the plurality of wireless sub-networks, the network status of the wireless sub-network with the fourth network quality value is determined to be unqualified, the wireless sub-network with the fourth network quality value is deleted from the plurality of wireless sub-networks, and the target wireless network is determined from the plurality of wireless sub-networks from which the wireless sub-network with the fourth network quality value has been deleted.
[0100] In an exemplary embodiment, the third determining module 46 is further configured to: determine a third network quality value of the wireless network that has been connected to the server when the wireless device also corresponds to a wireless network that has been connected to the server; obtain the maximum network quality value from the third network quality value and the first network quality value; and determine the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device.
[0101] Figure 5 This is a structural block diagram (II) of a target wireless network determination device according to an embodiment of this application; as shown Figure 5 As shown, the fourth determining module 48 further includes:
[0102] The acquisition unit 52 is configured to, when determining that the target subnetwork corresponding to the maximum network quality value includes a wireless network that is already connected to the server, acquire other preference values corresponding to the root nodes of other target subnetworks besides the wireless network that is already connected to the server among the multiple target subnetworks; when determining that the preset preference value of the wireless device is greater than the other preference values, join the wireless network that is already connected to the server, and create a target wireless network to be joined by the wireless device based on the wireless network that is already connected to the server.
[0103] The first network determination unit 54 is used to determine, when it is determined that the preset preference value of the wireless device is less than or equal to the other preference values, other target sub-networks among the plurality of target sub-networks besides the wireless network that has been connected to the server as the target wireless network to be joined by the wireless device.
[0104] The second network determination unit 56 is configured to, when determining that the first network quality values of the plurality of wireless sub-networks are all less than the preset network quality value, create a target wireless network to be joined by the wireless device if the device type of the wireless device is a root node; and control the wireless device to perform a sleep operation if the device type of the wireless device is a non-root node, and re-determine the target wireless network to be joined by the wireless device after the sleep operation ends.
[0105] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.
[0106] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0107] S1, determine the network quality parameters of multiple wireless sub-networks corresponding to the wireless device, wherein the network coverage of the multiple wireless sub-networks all include the wireless device;
[0108] S2, determine the first network quality value of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, and determine the maximum network quality value from the first network quality values of the plurality of wireless sub-networks;
[0109] S3, determine the network identifier of the target sub-network corresponding to the maximum network quality value, and obtain the wireless network identifier record of the wireless device when performing network configuration settings;
[0110] S4, if it is determined that the network identifier of the target sub-network exists in the wireless network identifier record, the target sub-network is determined as the target wireless network to be joined by the wireless device.
[0111] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0112] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0113] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0114] S1, determine the network quality parameters of multiple wireless sub-networks corresponding to the wireless device, wherein the network coverage of the multiple wireless sub-networks all include the wireless device;
[0115] S2, determine the first network quality value of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, and determine the maximum network quality value from the first network quality values of the plurality of wireless sub-networks;
[0116] S3, determine the network identifier of the target sub-network corresponding to the maximum network quality value, and obtain the wireless network identifier record of the wireless device when performing network configuration settings;
[0117] S4, if it is determined that the network identifier of the target sub-network exists in the wireless network identifier record, the target sub-network is determined as the target wireless network to be joined by the wireless device.
[0118] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0119] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0120] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0121] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for determining a target wireless network, characterized in that, The method comprises: determining network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, wherein the network coverage of the plurality of wireless sub-networks each comprises the wireless device; determining first network quality values of the plurality of wireless sub-networks respectively according to the network quality parameters of the plurality of wireless sub-networks, and determining a maximum network quality value from the first network quality values of the plurality of wireless sub-networks; determining a network identifier of a target sub-network corresponding to the maximum network quality value, and obtaining a wireless network identifier record of the wireless device when performing network setting; in a case where it is determined that the network identifier of the target sub-network exists in the wireless network identifier record, determining the target sub-network as a target wireless network to be joined by the wireless device; determining the target sub-network as the target wireless network to be joined by the wireless device, comprising: in a case where the wireless device further corresponds to a wireless network that has connected to a server, determining a third network quality value of the wireless network that has connected to the server; obtaining the maximum network quality value from the third network quality value and the first network quality value; determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device; The method further comprises: in a case where a fourth network quality value less than a preset network quality value is obtained from the first network quality values of the plurality of wireless sub-networks, determining that a network state of a wireless sub-network with the fourth network quality value is unqualified, deleting the wireless sub-network with the fourth network quality value from the plurality of wireless sub-networks, and determining a target wireless network from the plurality of wireless sub-networks after the wireless sub-network with the fourth network quality value is deleted; determining network quality parameters of a plurality of wireless sub-networks corresponding to a wireless device, comprising: for any wireless sub-network of the plurality of wireless sub-networks, determining a preference value corresponding to a root node of the any wireless sub-network, a node signal strength of a target node of the any wireless sub-network, and a node quantity of the any wireless sub-network; and obtaining the network quality parameters of the plurality of wireless sub-networks according to the preference value corresponding to the root node of the any wireless sub-network, the node signal strength of the target node of the any wireless sub-network, and the node quantity of the any wireless sub-network; determining the preference value corresponding to the root node of the any wireless sub-network, comprising: obtaining device factory data of a wireless device corresponding to the root node, determining a device memory of the wireless device, a network bandwidth of the wireless device, and a power supply type of the wireless device from the device factory data; and determining the preference value of the root node from preset preference values according to a correspondence relationship between the preference value of the root node and the device memory, the network bandwidth, and the power supply type.
2. The method of claim 1, wherein, determining the node signal strength of the target node of the any wireless sub-network, comprising: obtaining a monitoring history record of signal strengths of all nodes in the any wireless sub-network, obtaining a first node with a maximum signal strength from the monitoring history record, and obtaining the signal strength of the first node of the any wireless sub-network, wherein the first node is the target node; and Or, a second node with the smallest distance to the monitoring device is determined from all nodes of any wireless sub-network, and a signal strength of the second node of the any wireless sub-network is obtained, wherein the second node is a target node, and the monitoring device is a device for monitoring signal strengths of nodes in the wireless sub-network.
3. The method of claim 1, wherein, In the process of determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, the method further comprises: For any wireless sub-network of the plurality of wireless sub-networks, a first product of a preference value corresponding to a root node of the any wireless sub-network and a weight coefficient of the preference value is determined; A second product of a node quantity of the any wireless sub-network and a weight coefficient of the node quantity is determined; A difference value of the first product and the second product is obtained, and a sum value between the difference value and a node signal strength of a target node of the any wireless sub-network is determined as the first network quality value of the any wireless sub-network.
4. The method of claim 1, wherein, After the first network quality values of the plurality of wireless sub-networks are determined according to the network quality parameters of the plurality of wireless sub-networks respectively, the method further comprises: At least one second network quality value greater than a preset network quality value is obtained from the first network quality values of the plurality of wireless sub-networks; and the at least one obtained second network quality value is determined as the network quality value of the plurality of wireless sub-networks.
5. The method of claim 1, wherein, The target sub-network corresponding to the maximum network quality value is determined as the target wireless network to be joined by the wireless device, comprising: In a case where it is determined that the target sub-network corresponding to the maximum network quality value includes a wireless network that has connected to a server, other preference values corresponding to root nodes of other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server are obtained; In a case where it is determined that a preset preference value of the wireless device is greater than the other preference values, the wireless device joins the wireless network that has connected to the server, and the target wireless network to be joined by the wireless device is created based on the wireless network that has connected to the server.
6. The method of determining a target wireless network according to claim 5, wherein, In the process of determining the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device, the method further comprises: In a case where it is determined that the preset preference value of the wireless device is less than or equal to the other preference values, the other target sub-networks in the plurality of target sub-networks except the wireless network that has connected to the server are determined as the target wireless network to be joined by the wireless device.
7. The method of claim 1, wherein, In the process of determining the first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, the method further comprises: In a case where it is determined that the first network quality values of the plurality of wireless sub-networks are all less than a preset network quality value, if a device type of the wireless device is a root node, a target wireless network to be joined by the wireless device is created; If the device type of the wireless device is a non-root node, the wireless device is controlled to perform a sleep operation, and after the sleep operation ends, the target wireless network to be joined by the wireless device is re-determined.
8. A determination apparatus of a target wireless network, characterized in that, Comprising: The first determining module is configured to determine network quality parameters of a plurality of wireless sub-networks corresponding to the wireless device, wherein the network coverage of the plurality of wireless sub-networks all comprises the wireless device; The second determining module is configured to determine first network quality values of the plurality of wireless sub-networks according to the network quality parameters of the plurality of wireless sub-networks respectively, and determine a maximum network quality value from the first network quality values of the plurality of wireless sub-networks; The third determining module is configured to determine a network identifier of a target sub-network corresponding to the maximum network quality value, and acquire a wireless network identifier record of the wireless device when performing network setting; The fourth determining module is configured to determine the target sub-network as a target wireless network to be joined by the wireless device in a case where the network identifier of the target sub-network exists in the wireless network identifier record. The third determining module is further configured to determine a third network quality value of a wireless network having connected to a server in a case where the wireless device further corresponds to the wireless network having connected to the server; obtain the maximum network quality value from the third network quality value and the first network quality value; and determine the target sub-network corresponding to the maximum network quality value as the target wireless network to be joined by the wireless device. The determining apparatus is further configured to: in a case where a fourth network quality value less than a preset network quality value is obtained from the first network quality values of the plurality of wireless sub-networks, determine that a network state of a wireless sub-network having the fourth network quality value is unqualified, delete the wireless sub-network having the fourth network quality value from the plurality of wireless sub-networks, and determine a target wireless network from the plurality of wireless sub-networks after the wireless sub-network having the fourth network quality value is deleted. The first determining module is further configured to: for any wireless sub-network of the plurality of wireless sub-networks, determine a preference value corresponding to a root node of the any wireless sub-network, a node signal strength of a target node of the any wireless sub-network, and a node quantity of the any wireless sub-network; and obtain the network quality parameters of the plurality of wireless sub-networks according to the preference value corresponding to the root node of the any wireless sub-network, the node signal strength of the target node of the any wireless sub-network, and the node quantity of the any wireless sub-network. The first determining module is further configured to: acquire device factory data of the wireless device corresponding to the root node, determine a device memory of the wireless device, a network bandwidth of the wireless device, and a power supply type of the wireless device from the device factory data; and determine the preference value of the root node from preset preference values according to a corresponding relationship between the preference value of the root node and the device memory, the network bandwidth, and the power supply type.
9. A computer readable storage medium, characterized in that, The computer-readable storage medium comprises a stored program, wherein the program performs the method described in any one of claims 1 to 7 when executed. 10.An electronic device comprising a memory and a processor, the electronic device characterized by, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 by using the computer program. The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 by using the computer program.
Citation Information
Patent Citations
Terminal wireless access point reclosure method and device using the same
CN103118419A
Selection system and selection method of wireless network access point
CN103327578A