Networking method and device of wireless device, storage medium and electronic device
By determining the resource level capabilities and network status information of wireless devices, wireless subnetworks are intelligently created, solving the problem of requiring user participation in wireless device networking and improving networking efficiency and success rate.
Patent Information
- Application Number
- CN202211350596.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2042-10-31
AI Technical Summary
In existing technologies, the wireless device networking process requires full user involvement, which is time-consuming and labor-intensive, and there is a lack of intelligent networking solutions.
By receiving the network startup command, the system determines the resource level and capabilities of wireless devices, obtains the network status information of the created wireless networks, and determines whether to create a target wireless subnetwork based on this information. This includes determining the network node type and performing network quality calculations, thereby enabling intelligent networking of wireless devices.
It enables intelligent networking of wireless devices, reduces user intervention in the networking process, and improves networking efficiency and success rate.
Smart Images

Figure CN115767587B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a networking method and device of wireless equipment, a storage medium and an electronic device. BACKGROUND
[0002] At present, with the continuous improvement of Internet of Things technology, users' requirements for the intelligentization of wireless home appliance equipment in the technical field of smart home are also increasing, for example, not only require wireless equipment to have diversified device functions, but also require wireless equipment to be able to self-networking.
[0003] In related technologies, the networking process of home appliance equipment generally needs the user to participate throughout the process, which consumes the user's time and energy, therefore, there is a problem of how to realize the intelligent networking of wireless equipment.
[0004] For the problem of how to realize the intelligent networking of wireless equipment in related technologies, no effective solution has been proposed. SUMMARY
[0005] The embodiments of the present application provide a networking method and device of wireless equipment, a storage medium and an electronic device, to at least solve the problem of how to realize the intelligent networking of wireless equipment in related technologies.
[0006] According to an embodiment of the present application, a networking method of wireless equipment is provided, comprising: in the case of receiving a networking start instruction sent by a target object, determining the resource level capability of the wireless equipment required for networking; obtaining network state information of a created wireless network, wherein the network state information at least includes one of the following: network signal quality, network load information; determining whether to create a target wireless sub-network according to the network state information of the created wireless network and the resource level capability of the wireless equipment required for networking.
[0007] In one exemplary embodiment, determining the resource level capability of the wireless equipment required for networking comprises: determining the power supply type possessed by the wireless equipment, the protocol type supported by the wireless equipment and the storage type corresponding to the wireless equipment; determining the resource level capability of the wireless equipment based on the power supply type possessed by the wireless equipment, the protocol type supported by the wireless equipment and the storage type corresponding to the wireless equipment.
[0008] In one example embodiment, determining whether to create a target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for networking includes: determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, wherein the resource level capability of the wireless device includes one of the following: a first resource level capability allowing to create a network and to join the created wireless network, and a second resource level capability allowing to only join the created wireless network; and determining whether to create a target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device.
[0009] In one example embodiment, determining whether to create a target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device includes: joining the created wireless network according to the network status information of the created wireless network collected by the wireless device, including: in the case that the networking node type corresponding to the wireless device is a non-root node, determining the first network status information of a first wireless sub-network corresponding to the wireless device from the network status information of the created wireless network, and calculating a first network quality value of the first wireless sub-network; for a plurality of the first wireless sub-networks, joining the network having the maximum network quality value in the plurality of the first wireless sub-networks; in the case that the networking node type corresponding to the wireless device is a root node, determining the second network status information of a second wireless sub-network corresponding to the wireless device and the third network status information of a service network having been connected to a server in advance from the network status information of the created wireless network, wherein the service network represents a network providing networking function for the target object; calculating a second network quality value of the second wireless sub-network and a third network quality value of the service network based on the second network status information and the third network status information, respectively; and joining the network having the maximum network quality value in the second wireless sub-network and the service network.
[0010] In one example embodiment, in the process of joining the created wireless network according to the network status information of the created wireless network collected by the wireless device, the method further comprises: in the case that the networking node type corresponding to the wireless device is a non-root node, determining a first network identifier corresponding to a network with a maximum network quality value in the plurality of first wireless sub-networks, searching for the first network identifier in a preset identifier record, and in the case that the search is successful, joining the network with the maximum network quality value in the plurality of first wireless sub-networks.
[0011] In one example embodiment, in the process of determining whether to create a target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device, the method further comprises: if no created wireless network to be joined is determined according to the network status information of the created wireless network collected by the wireless device, creating the target wireless sub-network in the case that the networking node type corresponding to the wireless device is a root node; performing a device sleep operation in the case that the networking node type corresponding to the wireless device is a non-root node, and after the sleep operation, re-determining whether to create the target wireless sub-network.
[0012] In one example embodiment, after determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, the method further comprises: in the case that the networking node type corresponding to the wireless device is a non-root node, if it is determined that the joining of the created wireless network according to the network status information of the created wireless network collected by the wireless device fails, performing a device sleep operation, and after the sleep operation, re-joining the created wireless network.
[0013] In one example embodiment, in the process of joining the network with the maximum network quality value in the second wireless sub-network and the service network, the method further comprises: for the root node, in the case that the network with the maximum network quality value is the service network, performing a subnet number negotiation operation on the wireless device and the service network; in the case that the subnet number negotiation operation is successful, creating a target wireless sub-network; and in the case that the subnet number negotiation operation fails, joining the network with the maximum network quality value in the second wireless sub-network.
[0014] In one example embodiment, the method further comprises: for the root node, in the case that the second network quality value of the second wireless sub-network and the third network quality value of the service network are the same, then comparing the preset preference value of the wireless device and the preset preference value of the second wireless sub-network; in the case that the preset preference value of the wireless device is less than or equal to the preset preference value of the second wireless sub-network, joining the second wireless sub-network; in the case that the preset preference value of the wireless device is greater than the preset preference value of the second wireless sub-network, joining the service network and creating a target wireless sub-network.
[0015] According to another embodiment of the embodiments of the present application, a networking device of a wireless device is further provided, comprising: a first determining module, configured to determine resource level capability of the wireless device required for networking in the case that a networking starting instruction sent by a target object is received; an obtaining module, configured to obtain network state information of a created wireless network, wherein the network state information at least comprises one of the following: network signal quality, network load information; a second determining module, configured to determine whether to create a target wireless sub-network according to the network state information of the created wireless network and the resource level capability of the wireless device required for networking.
[0016] According to still another embodiment of the embodiments of the present application, a computer readable storage medium is further provided, wherein the computer readable storage medium stores a computer program, and the computer program is set to execute the networking method of the wireless device when running.
[0017] According to still another embodiment of the embodiments of the present application, an electronic device is further provided, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the networking method of the wireless device through the computer program.
[0018] In the embodiments of the present application, in the case that a networking starting instruction sent by a target object is received, resource level capability of the wireless device required for networking is determined; network state information of a created wireless network at least comprising one of the following: network signal quality, network load information is obtained; whether to create a target wireless sub-network is determined according to the network state information of the created wireless network and the resource level capability of the wireless device required for networking; by using the technical solution, the problem of how to realize intelligent networking of the wireless device is solved, and the intelligent networking of the wireless device is realized, thereby liberating the user from the tedious networking process. BRIEF DESCRIPTION OF DRAWINGS
[0019] 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 application.
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings can also provide other drawings based on these drawings for those skilled in the art without any creative effort.
[0021] Figure 1 Fig. 1 is a hardware environment schematic diagram of a networking method of a wireless device according to an embodiment of the present application;
[0022] Figure 2 Fig. 2 is a flow chart of a networking method of a wireless device according to an embodiment of the present application;
[0023] Figure 3 Fig. 3 is a schematic diagram of a networking method of a wireless device according to an embodiment of the present application;
[0024] Figure 4 Fig. 4 is a structural block diagram of a networking device of a wireless device according to an embodiment of the present application (1);
[0025] Figure 5 Fig. 5 is a structural block diagram of a networking device of a wireless device according to an embodiment of the present application (2). DETAILED DESCRIPTION
[0026] In order to make the technical personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort should be within the scope of protection of the present application.
[0027] 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 describe a specific order or sequence. It should be understood that the data used in this way 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 limit 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.
[0028] According to an aspect of the embodiments of the present application, a networking method of a wireless device is provided. The networking method of the wireless device 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 networking method of the wireless device 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 the 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.
[0029] 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. The wireless network can include but is not limited to at least one of the following: WIFI (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.
[0030] In the embodiments, a networking method of a wireless device is provided, which is applied to the above computer terminal, Figure 2 The flowchart of the networking method of the wireless device according to the embodiments of the present application includes the following steps:
[0031] Step S202, in the case of receiving the networking start instruction sent by the target object, determining the resource level capability of the wireless device required for networking;
[0032] Among them, the network state information of the created wireless network can include the created Umesh network and / or the user's home whole house basic network, and the network state information can include network signal quality value, etc.
[0033] The network status information of the created wireless network can be collected by sending a directed acyclic graph information solicitation (DIS) to the created wireless network.
[0034] In step S204, the network status information of the created wireless network is acquired, wherein the network status information at least includes one of the following: network signal quality, network load information.
[0035] The network load information can be understood as the number of nodes in the network.
[0036] In step S206, it is determined whether to create a target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for networking.
[0037] Through the above steps, in the case that the networking start instruction sent by the target object is received, the resource level capability of the wireless device required for networking is determined, the network status information of the created wireless network is acquired, wherein the network status information at least includes one of the following: network signal quality, network load information, and it is determined whether to create a target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for networking, which solves the problem of how to solve the intelligent networking of the wireless device in the related art, and further realizes the intelligent networking of the wireless device, and liberates the user from the tedious networking process.
[0038] It should be noted that the wireless device can include a Umesh device, and the Umesh device supports a UMesh protocol. For the Umesh device, after joining the UMesh network, it is called a UMesh node. The UMesh node includes a UMesh root node and a UMesh non-root node. The wireless network can be a UMesh network.
[0039] In an exemplary embodiment, in order to better understand the process of how to determine the resource level capability of the wireless device required for networking in the above step S202, the following implementation steps are proposed, specifically including: determining the power supply type possessed by the wireless device, the protocol type supported by the wireless device, and the storage type corresponding to the wireless device; and determining the resource level capability of the wireless device based on the power supply type possessed by the wireless device, the protocol type supported by the wireless device, and the storage type corresponding to the wireless device.
[0040] The power supply type of the wireless device includes one of a battery power supply and a non-battery power supply, the protocol type supported by the wireless device includes at least one of a mobility management protocol being a dual stack mobile Internet Protocol version 4 (DSMIPv4) and a mobility management protocol being a dual stack mobile Internet Protocol version 6 (DSMIPv6), and the storage type corresponding to the wireless device includes one of persistent storage and non-persistent storage.
[0041] In an example embodiment, to better illustrate the technical solution of step S206, how to determine whether to create the target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for networking, the following steps are provided: determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, wherein the resource level capability of the wireless device includes one of a first resource level capability allowing the wireless device to create a network and join a created wireless network and a second resource level capability allowing the wireless device to only join a created wireless network; and determining whether to create the target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device.
[0042] In an example embodiment, further, to illustrate the technical solution of how to determine the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, the specific steps include: in a case where the power supply type of the wireless device is a battery power supply, the protocol type supported by the wireless device includes a first wireless protocol type and a second wireless protocol type, and the storage type corresponding to the wireless device is persistent storage, setting the networking node type of the wireless device having the first resource level capability as a root node; in a case where the power supply type of the wireless device is a non-battery power supply, the protocol type supported by the wireless device does not include any one of the first wireless protocol type and the second wireless protocol type, and the storage type corresponding to the wireless device is non-persistent storage, setting the networking node type of the wireless device having the second resource level capability as a non-root node.
[0043] In one example embodiment, a technical solution is proposed for determining whether to create a target wireless sub-network according to network status information of the created wireless network collected by the wireless device and a networking node type corresponding to the wireless device, and the specific steps include: in the case that the networking node type corresponding to the wireless device is a root node, creating a target wireless sub-network or joining the created wireless network according to the network status information of the created wireless network collected by the wireless device; in the case that the networking node type corresponding to the wireless device is a non-root node, joining the created wireless network according to the network status information of the created wireless network collected by the wireless device.
[0044] Optionally, in one embodiment, setting the networking node type of the wireless device with the resource level capability including a first resource capability as a root node includes: determining whether the resource level capability is a network creating wireless device capable of connecting to an online network, wherein the online network has been successfully connected to a server in advance; in the case that the resource level capability is a network creating wireless device capable of connecting to the online network, setting the networking node type of the resource level capability as a root node.
[0045] In one example embodiment, further, a process for joining the created wireless network according to the network status information of the created wireless network collected by the wireless device is described, and the specific steps include: in the case that the networking node type corresponding to the wireless device is a non-root node, determining first network status information of a first wireless sub-network corresponding to the wireless device from the network status information of the created wireless network, and calculating a first network quality value of the first wireless sub-network; for a plurality of first wireless sub-networks, joining a network with the largest network quality value in the plurality of first wireless sub-networks.
[0046] In one example embodiment, another technical solution is proposed for joining the created wireless network according to the network status information of the created wireless network collected by the wireless device, and the specific steps include: in the case that the networking node type corresponding to the wireless device is a root node, determining second network status information of a second wireless sub-network corresponding to the wireless device and third network status information of a service network that has been connected to a server in advance from the network status information of the created wireless network, wherein the service network represents a network providing networking function for the target object; calculating a second network quality value of the second wireless sub-network and a third network quality value of the service network based on the second network status information and the third network status information, respectively; and joining a network with the largest network quality value in the second wireless sub-network and the service network.
[0047] It should be noted that the service network which has been pre-connected with the server can be, for example, a whole-house basic network of a user's home.
[0048] In one example embodiment, in the process of joining the created wireless network according to the network status information of the created wireless network collected by the wireless device, further, for the case that the networking node type corresponding to the wireless device is a non-root node, a first network identifier corresponding to a network with a maximum network quality value in the first wireless sub-networks can be determined, the first network identifier is searched in a preset identifier record, and in the case that the search is successful, the wireless device is joined to the network with the maximum network quality value in the first wireless sub-networks; for the case that the networking node type corresponding to the wireless device is a root node, a second network identifier corresponding to a network with a maximum network quality value in the second wireless sub-networks and the service network can be determined, the second network identifier is searched in the preset identifier record, and in the case that the search is successful, the wireless device is joined to the network with the maximum network quality value in the second wireless sub-networks and the service network.
[0049] The preset identifier record includes a network identifier of the created wireless network, for example, a network MAC address or a network ID.
[0050] Optionally, in the process of determining whether to create a target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device, if the created wireless network to be joined is not determined according to the network status information of the created wireless network collected by the wireless device, the target wireless sub-network is created in the case that the networking node type corresponding to the wireless device is a root node; the device sleep operation is performed in the case that the networking node type corresponding to the wireless device is a non-root node, and after the sleep operation, it is determined again whether to create the target wireless sub-network.
[0051] Based on the above embodiment, for the case that the created wireless network to be joined by the wireless device is not successfully determined, the networking node type corresponding to the wireless device can be used to determine whether to create a target wireless sub-network, thereby improving the use universality of the embodiment.
[0052] In one embodiment, after determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, if it is determined that the wireless device fails to join the created wireless network according to the network status information of the created wireless network collected by the wireless device, a device sleep operation is performed, and after the sleep operation, the wireless device re-joins the created wireless network.
[0053] In the embodiment, when the wireless device fails to join the created wireless network, the device sleep operation is performed, which can improve the scenario coverage of the scheme, provide various device operation schemes, and greatly improve the success rate of wireless device networking.
[0054] In one example embodiment, in the process of joining the second wireless sub-network and the network with the maximum network quality value in the service network, for the root node, the wireless device and the service network can also perform a subnet number negotiation operation when the network with the maximum network quality value is the service network; when the subnet number negotiation operation is successful, a target wireless sub-network is created; and when the subnet number negotiation operation fails, the network with the maximum network quality value in the second wireless sub-network is joined.
[0055] According to the above-mentioned embodiments, the process of subnet number negotiation of the wireless device in the networking process is supplemented, the completeness and executability of the networking process are improved, and the execution degree of the networking process is improved.
[0056] In one example embodiment, a technical solution is also provided: for the root node, when the second network quality value of the second wireless sub-network and the third network quality value of the service network are the same, the preset preference value of the wireless device and the preset preference value of the second wireless sub-network are compared; when the preset preference value of the wireless device is less than or equal to the preset preference value of the second wireless sub-network, the wireless device joins the second wireless sub-network; and when the preset preference value of the wireless device is greater than the preset preference value of the second wireless sub-network, the wireless device joins the service network and creates a target wireless sub-network.
[0057] In order to better understand the process of the above-mentioned wireless device networking method, the implementation process of the above-mentioned wireless device networking will be described in combination with optional embodiments below, but not used to limit the technical solutions of the embodiments of the present application.
[0058] In the embodiment, a wireless device networking method is provided, Figure 3 is a schematic diagram of the wireless device networking method according to the embodiments of the present application, as Figure 3 shown, the specific steps are as follows:
[0059] Step S301: first power-on;
[0060] Step S302: performing UMesh network configuration binding process;
[0061] Step S303: starting UMesh networking process;
[0062] Step S304: determining whether the UMesh device is a high resource level device (corresponding to the root node of the UMesh device); if yes, performing step S305, if not, performing step S306.
[0063] Step S305: probing signal quality of the whole house basic network;
[0064] Step S306: sending DIS to probe surrounding UMesh subnet information;
[0065] Step S307: determining whether the optimal access network can be selected; if yes, performing step S308, if not, performing step S309;
[0066] Step S308: determining whether the optimal access network is a UMesh subnet; if yes, performing step S310, if not, performing step S311.
[0067] Step S309: determining whether the UMesh is a root device; if yes, performing step S312; if not, performing step S313.
[0068] Step S310: sending DAO (Destination Advertisement Object) to access the UMesh subnet;
[0069] Step S311: connecting to the router to access the whole house basic network.
[0070] Step S312: sending DIO (DODAG Information Object) to build UMesh network without the whole house basic network; wherein, DODAG represents Destination-Oriented DAG.
[0071] Step S313: silent hibernation for a period of time.
[0072] Step S314: confirming whether the UMesh subnet is successfully joined; if yes, performing step S315, if not, performing step S313.
[0073] Step S315: ending the networking.
[0074] Step S316: confirming whether the connection to the whole-house basic network is successful; if yes, executing step S317, if no, executing step S310.
[0075] Step S317: negotiating the subnet number.
[0076] Step S318: confirming whether the negotiation of the subnet number is successful; if yes, executing step S319, if no, executing step S320.
[0077] Step S319: sending DIO to build the UMesh network.
[0078] Step S320: disconnecting the whole-house basic network; executing step S310.
[0079] Further, in one embodiment, the maximum value of the quality value uq of all UMesh subnets around the computing device and the quality value rq of the whole-house basic network can be calculated, and the network corresponding to the maximum value is selected. If the network corresponding to the maximum value is the UMesh network, the device joins the network, if the network corresponding to the maximum value is the whole-house basic network, the device connects the whole-house basic network and negotiates the subnet number, and after successfully obtaining the subnet number, sends DIO to start creating a UMesh subnet. It can be determined that whether the connection to the whole-house basic network fails or the negotiation of the subnet number fails, the device will give up connecting to the whole-house basic network and try to join the UMesh subnet.
[0080] If there are whole-house basic networks and UMesh subnets with the same quality value around, the device should first compare the preference value of itself and 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 connect to the whole-house basic network to try 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.
[0081] If the network corresponding to the maximum value is not found, as a root device, the device should try to build a UMesh network without the whole-house basic network, and as a non-root device, the device needs to be in silence and sleep for a period of time, and then try to start the network again. Alternatively, for the case of failure to join the optimal access network, the device also needs to be in silence and sleep for a period of time, and then try to start the network again.
[0082] It should be noted that the silence and sleep time can be, for example, at least 5 seconds and at most 48 hours.
[0083] In one embodiment, based on Figure 3 The implementation process of the network of the wireless device is described as follows: after a UMesh device is started for the first time, the following steps are executed:
[0084] Step 1, first, the UMesh network binding process is performed, after obtaining the UMesh network ID, the SSID and password of the user's home router, the UMesh networking process is entered.
[0085] Step 2, before the UMesh network binding, the UMesh screen device (representing the root device, which can be understood as the above-mentioned root node) temporarily configures the network for other UMesh devices based on the management frame. Temporary network configuration means network configuration when there is no whole house basic network or the whole house basic network is unavailable. When the UMesh device completes the network binding and obtains the UMesh network ID, the SSID and password of the user's home router, it exits from the temporary UMesh network and forms a formal UMesh network.
[0086] Among them, the networking process of forming a temporary UMesh network or a formal UMesh network can refer to Figure 3 . In addition, the process of switching from a temporary UMesh network to a formal UMesh network can also be completed by a pre-installed key update process.
[0087] Step 3, network the UMesh device. Among them, the UMesh networking process can be different according to the different capabilities of the UMesh device. For UMesh devices with root node capabilities, a UMesh subnet can be built to become a root node, or it can join an existing UMesh subnet as a normal node. For UMesh devices without root node capabilities, they can only try to join a UMesh subnet as a normal node, and cannot create a UMesh subnet.
[0088] If the UMesh device can be continuously powered (non-battery powered), supports at least IPv6&IPv4 dual stack, can store data locally and persistently, and can determine that it has a high resource level, it belongs to a root device with UMesh root node capability. For the root device, when it is ready to start, it can determine whether to join an existing UMesh subnet or create a UMesh subnet according to its own conditions and the surrounding environment (for example, the quality of connection with the whole house basic network, the number and load of the surrounding UMesh subnet).
[0089] If the UMesh device is power limited (battery powered) and has only a low resource level, it can only play the role of a UMesh normal node, i.e. a non-root device. The non-root device can only choose to join a UMesh subnet when it starts, and cannot attempt to create a UMesh subnet.
[0090] In particular, a high-resource-level UMesh device can play the role of a UMesh normal node when needed.
[0091] In addition, the UMesh device needs to collect the following information first after starting the networking process:
[0092] 1. Whether there is an existing UMesh subnet around, which can include, for example: signal quality between the existing UMesh subnet around, load status of the existing UMesh subnet around;
[0093] 2. For the root device, information for determining whether it can be connected to the whole-house basic network, for example: signal quality of the connection to the whole-house basic network.
[0094] Based on the results of the comprehensive judgment of the above information, the subsequent networking process of the UMesh device can be determined.
[0095] Through the description of the above 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 methods of various embodiments of the present application.
[0096] Figure 4 is a structural block diagram of a networking device of a wireless device according to an embodiment of the present application (one); as shown in Figure 4 , it includes:
[0097] A first determination module 42 is configured to determine the resource level capability of the wireless device required for networking when receiving the networking start instruction sent by the target object.
[0098] Among them, the network state information of the created wireless network includes the created UMesh network and the user's whole-house basic network, and the network state information can include, for example, network signal quality value, etc.
[0099] Among them, the network state information of the created wireless network can be collected by sending a directed acyclic graph information solicitation (DIS) to the created wireless network.
[0100] The acquisition module 44 is configured to acquire network status information of the created wireless network, wherein the network status information at least includes one of the following: network signal quality, network load information.
[0101] The network load information can be understood as the number of nodes in the network.
[0102] The second determination module 46 is configured to determine whether to create a target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for the networking.
[0103] With the above device, in the case that the networking start instruction sent by the target object is received, the resource level capability of the wireless device required for the networking is determined; the network status information of the created wireless network is acquired, wherein the network status information at least includes one of the following: network signal quality, network load information; and whether to create a target wireless sub-network is determined according to the network status information of the created wireless network and the resource level capability of the wireless device required for the networking, which solves the problem of how to solve the intelligent networking of the wireless device in the related art, and further realizes the intelligent networking of the wireless device, thereby liberating the user from the tedious networking process.
[0104] It should be noted that the wireless device can include a Umesh device, and the Umesh device supports a UMesh protocol. For the Umesh device, after joining the UMesh network, it is referred to as a UMesh node. The UMesh node includes a UMesh root node and a UMesh non-root node.
[0105] In an example embodiment, the first determination module 42 is further configured to determine a power supply type of the wireless device, a protocol type supported by the wireless device, and a storage type corresponding to the wireless device; and determine the resource level capability of the wireless device based on the power supply type of the wireless device, the protocol type supported by the wireless device, and the storage type corresponding to the wireless device.
[0106] The power supply type of the wireless device includes one of the following: battery power supply, non-battery power supply; the protocol type supported by the wireless device at least includes one of the following: a mobility management protocol is a dual stack mobile Internet Protocol version 4 DSMIPv4, a mobility management protocol is a dual stack mobile Internet Protocol version 6 DSMIPv6; and the storage type corresponding to the wireless device includes one of the following: persistent storage, non-persistent storage.
[0107] In an example embodiment, the second determining module 46 is further configured to determine the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, wherein the resource level capability of the wireless device comprises one of the following: a first resource level capability allowing to create a network and to join an already created wireless network, and a second resource level capability allowing to only join an already created wireless network; and determine whether to create a target wireless sub-network according to the network status information of the already created wireless network collected by the wireless device and the networking node type corresponding to the wireless device.
[0108] Figure 5 is a structural block diagram of a networking device of a wireless device according to an embodiment of the present application (II); as shown in Figure 5 The second determining module 46 comprises a first determining unit 52 and a second determining unit 54.
[0109] In an example embodiment, the first determining unit 52 is configured to set the networking node type of the wireless device with the first resource level capability as a root node in the case that the power supply type of the wireless device is battery power supply, the protocol type supported by the wireless device comprises a first wireless protocol type and a second wireless protocol type, and the storage type corresponding to the wireless device is persistent storage; and set the networking node type of the wireless device with the second resource level capability as a non-root node in the case that the power supply type of the wireless device is non-battery power supply, the protocol type supported by the wireless device does not comprise any of the first wireless protocol type and the second wireless protocol type, and the storage type corresponding to the wireless device is non-persistent storage.
[0110] In an example embodiment, the second determining unit 54 is configured to create a target wireless sub-network or join the already created wireless network according to the network status information of the already created wireless network collected by the wireless device in the case that the networking node type corresponding to the wireless device is a root node; and join the already created wireless network according to the network status information of the already created wireless network collected by the wireless device in the case that the networking node type corresponding to the wireless device is a non-root node.
[0111] Optionally, in an embodiment, setting the networking node type of the wireless device with the first resource level capability as a root node comprises: determining whether the wireless device with the first resource level capability can connect to an online network, wherein the online network has been successfully connected to a server in advance; and setting the networking node type of the wireless device with the first resource level capability as a root node in the case that the wireless device with the first resource level capability can connect to the online network.
[0112] In an example embodiment, the second determining unit 54 is further configured to, in the case that the networking node type corresponding to the wireless device is a non-root node, determine first network state information of a first wireless sub-network corresponding to the wireless device from the network state information of the created wireless network, calculate a first network quality value of the first wireless sub-network, and join the network with the largest network quality value among the first wireless sub-networks.
[0113] In an example embodiment, the second determining unit 54 is further configured to, in the case that the networking node type corresponding to the wireless device is a root node, determine second network state information of a second wireless sub-network corresponding to the wireless device and third network state information of a service network having pre-connected to a server from the network state information of the created wireless network, wherein the service network represents a network providing networking function for the target object, calculate a second network quality value of the second wireless sub-network and a third network quality value of the service network based on the second network state information and the third network state information respectively, and join the network with the largest network quality value among the second wireless sub-network and the service network.
[0114] It should be noted that the service network having pre-connected to a server can be, for example, a whole-house basic network of a user's home.
[0115] In an example embodiment, the second determining unit 54 is further configured to, in the case that the networking node type corresponding to the wireless device is a non-root node, determine a first network identifier corresponding to the network with the largest network quality value among the first wireless sub-networks, find the first network identifier in a preset identifier record, and in the case that the finding is successful, join the wireless device to the network with the largest network quality value among the first wireless sub-networks; in the case that the networking node type corresponding to the wireless device is a root node, determine a second network identifier corresponding to the network with the largest network quality value among the second wireless sub-network and the service network, find the second network identifier in the preset identifier record, and in the case that the finding is successful, join the wireless device to the network with the largest network quality value among the second wireless sub-network and the service network.
[0116] The preset identifier record includes network identifiers of the created wireless network, such as network MAC address or network ID, etc.
[0117] Optionally, the second determining unit 54 is further configured to: in the process of determining whether to create the target wireless sub-network according to the network state information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device, if no created wireless network to be joined is determined according to the network state information of the created wireless network collected by the wireless device, create the target wireless sub-network when the networking node type corresponding to the wireless device is a root node; and perform a device sleep operation when the networking node type corresponding to the wireless device is a non-root node, and then re-determine whether to create the target wireless sub-network after the sleep operation.
[0118] According to the above embodiment, when no created wireless network to be joined is successfully determined, the networking node type corresponding to the wireless device is used to determine whether to create a target wireless sub-network, thereby improving the use universality of the embodiment.
[0119] Optionally, in other embodiments, the second determining unit 54 is further configured to: when the networking node type corresponding to the wireless device is a non-root node, perform a device sleep operation if it is determined that the created wireless network cannot be joined according to the network state information of the created wireless network collected by the wireless device, and then re-try to join the created wireless network after the sleep operation.
[0120] According to the above embodiment, when the created wireless network cannot be joined, the wireless device performs a device sleep operation, thereby improving the scenario coverage of the scheme, providing various device operation schemes, and greatly improving the success rate of wireless device networking.
[0121] In one example embodiment, the second determining unit 54 is further configured to: for the root node, when the network with the maximum network quality value is the service network, perform a subnet number negotiation operation on the wireless device and the service network; create a target wireless sub-network when the subnet number negotiation operation is successful; and join the network with the maximum network quality value in the second wireless sub-network when the subnet number negotiation operation fails.
[0122] According to the above embodiment, the process of subnet number negotiation of the wireless device during networking is supplemented, thereby improving the completeness and executability of the networking process and improving the execution degree of the networking process.
[0123] In one example embodiment, the second determining unit 54 is further configured to: for the root node, if the second network quality value of the second wireless sub-network and the third network quality value of the service network are the same, then compare the preset preference value of the wireless device and the preset preference value of the second wireless sub-network; if the preset preference value of the wireless device is less than or equal to the preset preference value of the second wireless sub-network, then join the second wireless sub-network; if the preset preference value of the wireless device is greater than the preset preference value of the second wireless sub-network, then join the service network and create a target wireless sub-network.
[0124] Embodiments of the present application also provide a storage medium comprising a stored program, wherein the program performs any of the above methods when executed.
[0125] Optionally, in the present embodiment, the storage medium can be configured to store program code for performing the following steps:
[0126] S1, in the case where a networking start instruction sent by a target object is received, determining a resource level capability of a wireless device required for networking;
[0127] S2, obtaining network state information of a created wireless network, wherein the network state information at least comprises one of the following: network signal quality, network load information;
[0128] S3, determining whether to create a target wireless sub-network according to the network state information of the created wireless network and the resource level capability of the wireless device required for networking.
[0129] Embodiments of the present application also provide an electronic device comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the above method embodiments.
[0130] Optionally, the electronic device can further comprise 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.
[0131] Optionally, in the present embodiment, the processor can be configured to execute the following steps through the computer program:
[0132] S1, in the case where a networking start instruction sent by a target object is received, determining a resource level capability of a wireless device required for networking;
[0133] S2, obtaining network state information of a created wireless network, wherein the network state information at least comprises one of the following: network signal quality, network load information;
[0134] S3, determining whether to create a target wireless sub-network according to the network status information of the created wireless network and the resource level capability of the wireless device required for the networking.
[0135] Optionally, in the embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various storage medium capable of storing program codes.
[0136] Optionally, the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and the embodiment will not be described here.
[0137] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Therefore, the present application is not limited to any specific combination of hardware and software.
[0138] The above description is only the preferred embodiments of the present application, and it should be pointed out that those skilled in the art can make several improvements and refinements without departing from the principles of the present application, and these improvements and refinements should be regarded as the protection scope of the present application.
Claims
1. A method of networking wireless devices, the method comprising: The application relates to a method for creating a target wireless sub-network. In the case that a networking starting instruction sent by a target object is received, the resource level capability of a wireless device required for networking is determined; Network state information of a created wireless network is acquired, wherein the network state information at least includes one of network signal quality and network load information; Whether to create a target wireless sub-network is determined according to the network state information of the created wireless network and the resource level capability of the wireless device required for networking; The resource level capability of the wireless device required for networking includes the power supply type of the wireless device, the protocol type supported by the wireless device and the storage type corresponding to the wireless device; the resource level capability of the wireless device is determined based on the power supply type of the wireless device, the protocol type supported by the wireless device and the storage type corresponding to the wireless device; Whether to create a target wireless sub-network is determined according to the network state information of the created wireless network and the resource level capability of the wireless device required for networking, which includes determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, wherein the resource level capability of the wireless device includes one of the first resource level capability allowing to create a network and to join the created wireless network and the second resource level capability allowing to only join the created wireless network; whether to create a target wireless sub-network is determined according to the network state information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device.
2. The method for networking the wireless devices according to claim 1, wherein, Whether to create a target wireless sub-network is determined according to the network state information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device, which includes: Joining the created wireless network according to the network state information of the created wireless network collected by the wireless device includes: In the case that the networking node type corresponding to the wireless device is a non-root node, the first network state information of a first wireless sub-network corresponding to the wireless device is determined from the network state information of the created wireless network, the first network quality value of the first wireless sub-network is calculated, and the network with the maximum network quality value is joined from a plurality of first wireless sub-networks; In the case that the networking node type corresponding to the wireless device is a root node, the second network state information of a second wireless sub-network corresponding to the wireless device and the third network state information of a service network having been connected to a server in advance are determined from the network state information of the created wireless network, wherein the service network represents a network providing networking function for the target object; the second network quality value of the second wireless sub-network and the third network quality value of the service network are calculated based on the second network state information and the third network state information respectively; and the network with the maximum network quality value is joined from the second wireless sub-network and the service network. 3.The networking method of the wireless device according to claim 2, wherein in the process of joining the created wireless network according to the network status information of the created wireless network collected by the wireless device, the method further comprises: in the case that the networking node type corresponding to the wireless device is a non-root node, determining a first network identifier corresponding to a network with a maximum network quality value in the plurality of first wireless sub-networks, searching for the first network identifier in a preset identifier record, and in the case that the search is successful, joining the network with the maximum network quality value in the plurality of first wireless sub-networks by the wireless device; in the case that the networking node type corresponding to the wireless device is a root node, determining a second network identifier corresponding to a network with a maximum network quality value in the second wireless sub-network and the service network, searching for the second network identifier in a preset identifier record, and in the case that the search is successful, joining the network with the maximum network quality value in the second wireless sub-network and the service network by the wireless device. In the process of determining whether to create a target wireless sub-network according to the network status information of the created wireless network collected by the wireless device and the networking node type corresponding to the wireless device, the method further comprises: if no created wireless network to be joined is determined according to the network status information of the created wireless network collected by the wireless device, creating the target wireless sub-network in the case that the networking node type corresponding to the wireless device is a root node; in the case that the networking node type corresponding to the wireless device is a non-root node, performing a device sleep operation, and after the sleep operation, re-determining whether to create the target wireless sub-network. After determining the networking node type corresponding to the wireless device based on the resource level capability of the wireless device, the method further comprises: in the case that the networking node type corresponding to the wireless device is a non-root node, if it is determined that the joining of the created wireless network according to the network status information of the created wireless network collected by the wireless device fails, performing a device sleep operation, and after the sleep operation, re-joining the created wireless network.
4. The method of networking wireless devices according to claim 1, wherein, In the process of joining the network with the maximum network quality value in the second wireless sub-network and the service network, the method further comprises: for the root node, in the case that the network with the maximum network quality value is the service network, performing a subnet number negotiation operation on the wireless device and the service network; in the case that the subnet number negotiation operation is successful, creating a target wireless sub-network; in the case that the subnet number negotiation operation fails, joining the network with the maximum network quality value in the second wireless sub-network. The method further comprises: for the root node, in the case that the second network quality value of the second wireless sub-network and the third network quality value of the service network are the same, comparing a preset preference value of the wireless device and a preset preference value of the second wireless sub-network. 5. The method of networking wireless devices according to any one of claims 1 to 3, wherein, 6. The method for networking the wireless devices according to claim 2, wherein, 7. The method for networking of wireless devices according to claim 2, wherein, in a case where the preset preference value of the wireless device is less than or equal to the preset preference value of the second wireless sub-network, joining the second wireless sub-network; in a case where the preset preference value of the wireless device is greater than the preset preference value of the second wireless sub-network, joining the service network and creating a target wireless sub-network.
8. A networking device of a wireless device, characterized by The method comprises: a first determining module configured to determine a resource level capability of the wireless device required for network building in a case where a network building starting instruction sent by a target object is received; an obtaining module configured to obtain network state information of a created wireless network, wherein the network state information at least comprises one of network signal quality and network load information; a second determining module configured to determine whether to create a target wireless sub-network according to the network state information of the created wireless network and the resource level capability of the wireless device required for network building; the first determining module is further configured to determine a power supply type possessed by the wireless device, a protocol type supported by the wireless device and a storage type corresponding to the wireless device, and determine the resource level capability of the wireless device based on the power supply type possessed by the wireless device, the protocol type supported by the wireless device and the storage type corresponding to the wireless device; the second determining module is further configured to determine a network building node type corresponding to the wireless device based on the resource level capability of the wireless device, wherein the resource level capability of the wireless device comprises one of a first resource level capability allowing to create a network and to join a created wireless network and a second resource level capability allowing to only join a created wireless network, and determine whether to create a target wireless sub-network according to the network state information of the created wireless network collected by the wireless device and the network building node type corresponding to the wireless device.
9. A computer readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program executes the method described in any one of claims 1 to 7 when running. 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.
Citation Information
Patent Citations
Power line carrier-based intelligent networking control system and method
CN103874291A
Networking method for wireless sensor network
CN106507506A