A method, device and medium for network entry

By querying a pre-configured list of network information for IoT devices and attempting to connect to the network according to priority, the problem of low network access success rate after IoT devices are disconnected is solved, and more efficient network access processing is achieved.

CN115766784BActive Publication Date: 2026-03-17HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

The method for IoT devices to reconnect to the network after being disconnected is limited, relying on the most recently successfully connected network, resulting in a low success rate for reconnection.

Method used

When an IoT device detects a network outage, it queries a pre-configured list of network information and attempts to connect to the network in descending order of priority until successful. The priority ranking is based on factors such as signal strength, historical connection time, and network disconnection time.

Benefits of technology

It improves the success rate of IoT devices reconnecting to the network after being disconnected, breaks the dependence on the most recent network connection, and enhances the flexibility and success rate of network access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766784B_ABST
    Figure CN115766784B_ABST
Patent Text Reader

Abstract

This application provides a method, device, and medium for network access processing, relating to the field of smart device technology. Specifically, it includes: when an IoT device detects that it is in a network outage state, it queries a pre-configured network information list. If an available network is found in the pre-configured network information list, it performs network access connection processing according to the priority order of the available networks in the pre-configured network information list, from high to low, based on the configuration information corresponding to the available networks, until network access is successful. The method provided by this application enables IoT devices to reconnect to the network after a network outage based on the priority order of previously successfully connected and currently available networks stored in the pre-configured network information list, breaking the limitation of relying solely on the configuration information of the most recently successfully connected network to attempt network access again, thus improving the success rate of IoT device network access.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent devices, in particular to a network access processing method, device and medium. BACKGROUND

[0002] After a network disconnection, an Internet of Things device usually needs to access the network again to realize its functions. In the prior art, the network access of the Internet of Things device after a network disconnection relies on the configuration information of the last successful connection of a wireless network to attempt network connection. Once the network corresponding to the configuration information has a problem, the Internet of Things device cannot automatically connect to the network.

[0003] It can be seen that the network access method of the existing Internet of Things device after a network disconnection is relatively single, and has a strong dependence on the last successful connection network, resulting in a low network access success rate. SUMMARY

[0004] The present application provides a network access processing method, device and medium to solve the technical problem of a low network access success rate caused by the single network access method of the Internet of Things device after a network disconnection and the strong dependence on the last successful connection network in the prior art.

[0005] In a first aspect, the present application provides a network access processing method, comprising:

[0006] When the Internet of Things device monitors that it is in a network disconnection state, querying a preconfigured network information list;

[0007] If a currently available network is obtained from the preconfigured network information list, performing network access connection processing according to the configuration information corresponding to the currently available network in the preconfigured network information list in a descending order of priority of the currently available network until network access is successful.

[0008] In a specific implementation, the network access connection processing according to the configuration information corresponding to the currently available network in the preconfigured network information list in a descending order of priority of the currently available network until network access is successful comprises:

[0009] performing priority ordering processing on the network according to signal strength quality information, historical network access time information, time information from the last disconnection of the Internet of Things device to the network to the present, a first weight corresponding to the signal strength quality, a second weight corresponding to the historical network access time, and a third weight corresponding to the time from the last disconnection of the Internet of Things device to the network to the present in the configuration information of the network in the preconfigured network information list;

[0010] According to the priority order of the currently available network in the pre-configured network information list from high to low, the network connection processing is sequentially performed according to the basic service set identifier (BSSID), encryption mode, channel, service set identifier (SSID) and password in the configuration information corresponding to the currently available network until the network connection is successful.

[0011] In a specific embodiment, the network connection processing is sequentially performed according to the configuration information corresponding to the currently available network in the priority order of the currently available network in the pre-configured network information list from high to low until the network connection is successful, including:

[0012] According to the preset scale information, the weight judgment matrix corresponding to the signal strength quality, the time spent in historical network access and the time from the last disconnection of the Internet of Things device to the network to the present is obtained from the configuration information corresponding to the network in the pre-configured network information list.

[0013] According to the weight judgment matrix, the root-finding method is used to calculate and perform normalization processing to obtain a target weight matrix.

[0014] According to the target weight matrix, a fourth weight corresponding to the signal strength quality, a fifth weight corresponding to the time spent in historical network access, and a sixth weight corresponding to the time from the last disconnection of the Internet of Things device to the network to the present are obtained from the configuration information corresponding to the network in the pre-configured network information list.

[0015] According to the fourth weight, the fifth weight, the sixth weight, and the signal strength quality information, the time spent in historical network access information and the time information from the last disconnection of the Internet of Things device to the network to the present, the network is prioritized.

[0016] According to the priority order of the currently available network in the pre-configured network information list from high to low, the network connection processing is sequentially performed according to the basic service set identifier (BSSID), encryption mode, channel, service set identifier (SSID) and password in the configuration information corresponding to the currently available network until the network connection is successful.

[0017] In a specific embodiment, the method further includes:

[0018] Based on the priority order of the currently available network determined by the user, the network connection processing is sequentially performed according to the configuration information corresponding to the network from high to low.

[0019] In a specific embodiment, the method further includes:

[0020] If no currently available network is found from the pre-configured network information list, an available network in the environment is selected as the network to be connected according to the preset network access method, and network access connection processing is performed.

[0021] In one specific implementation, after the IoT device successfully joins the network, it stores the configuration information corresponding to the connected network.

[0022] In one specific implementation, the method further includes:

[0023] Based on the signal strength quality and the time spent joining the network in the configuration information of the connected network, the priority of the connected network in the pre-configured network information list is set.

[0024] Secondly, this application provides an Internet of Things (IoT) device, comprising:

[0025] The monitoring module is used to query a pre-configured list of network information when an IoT device detects that it is offline.

[0026] The processing module is configured to, if a currently available network is obtained from the pre-configured network information list, perform network access connection processing in descending order of priority of the currently available networks according to the configuration information corresponding to the currently available networks, until network access is successful.

[0027] Thirdly, this application provides an Internet of Things (IoT) device, comprising:

[0028] Processor and memory;

[0029] The memory is used to store the executable instructions of the processor;

[0030] The processor is configured to execute the method as described in the first aspect by executing the executable instructions.

[0031] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.

[0032] This application provides a method, device, and medium for network access processing. When an IoT device detects that it is offline, it queries a pre-configured network information list. If an available network is found in the pre-configured network information list, it performs network access connection processing sequentially according to the priority order of the available networks in the pre-configured network information list, from high to low, based on the configuration information corresponding to the available networks, until network access is successful. This application allows IoT devices re-entering the network after an offline state to perform network access connection processing sequentially according to the priority order of previously successfully connected and currently available networks stored in the pre-configured network information list. This breaks the limitation of relying solely on the configuration information of the most recently successfully connected network to attempt network access again, improving the flexibility of network access and thus increasing the success rate of IoT device network access. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 A flowchart of an embodiment of a network access processing method provided in this application;

[0035] Figure 2 A flowchart of a second embodiment of a network access processing method provided in this application;

[0036] Figure 3 A flowchart of a third embodiment of a network access processing method provided in this application;

[0037] Figure 4 A flowchart of Embodiment 4 of a network access processing method provided in this application;

[0038] Figure 5 This is a schematic diagram of the structure of an embodiment of an Internet of Things (IoT) device provided in this application;

[0039] Figure 6 This is a schematic diagram of the structure of a second embodiment of an Internet of Things (IoT) device provided in this application. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments made by those skilled in the art under the guidance of these embodiments are within the scope of protection of this application.

[0041] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0042] In existing technologies, after an IoT device successfully connects to a network, it stores the configuration information of the currently connected network. If the IoT device disconnects from the network or loses power and is then powered on again, it attempts to connect to the corresponding network based on the configuration information of the most recently successfully connected network. If the network corresponding to the stored configuration information becomes abnormal, the IoT device cannot automatically reconnect to the network and needs to be reconfigured with an available network. However, the configuration information of the reconfigured network will overwrite the previously saved configuration information. In other words, the IoT device still only stores the configuration information of the currently connected network. If the network corresponding to the stored configuration information becomes abnormal the next time, the device will still be unable to connect to the network automatically and will still need to be reconfigured. This results in a low success rate for IoT devices to automatically reconnect to the network after a disconnection, and this cycle repeats itself, causing great inconvenience to users.

[0043] Therefore, the technical concept of this application is: how to enable IoT devices to break through the limitations of existing technologies when reconnecting to the network after being disconnected, so as to improve the success rate of network access.

[0044] The technical solution of this application will now be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0045] Figure 1 A flowchart illustrating one embodiment of a network access processing method provided in this application. See also... Figure 1 The method includes:

[0046] Step S101: When an IoT device detects that it is offline, it queries the pre-configured network information list.

[0047] In this embodiment, the IoT device can be a smart speaker, smart camera, or other device capable of connecting to a wireless network and transmitting data and executing commands. The pre-configured network information list stores the configuration information of networks the IoT device has successfully connected to in the past. In complex network environments, such as office building environments, different office areas have different wireless networks. When the IoT device is used in different office areas, it connects to the network belonging to that office area and stores the network configuration information corresponding to the successfully connected networks. When the number of stored networks reaches a preset number, it is updated according to the order of the pre-configured network information list. Optionally, the preset number can be set according to the usage environment of the IoT device and can be adjusted by the user in the terminal application corresponding to the registered and bound IoT device. For example, in an office building network environment, it can be set to 15; in a home network environment, it can be set to 5. When the IoT device moves from the first office area to the second office area, if the IoT device loses network access due to reasons such as its physical location exceeding the coverage area of ​​the network it connected to in the first office area, weakened network signal, or the need for the IoT device to be powered on again, the IoT device detects that it is in a disconnected state and queries the pre-configured network information list.

[0048] Step S102: If an available network is obtained from the pre-configured network information list, then according to the priority order of the available networks in the pre-configured network information list, the network connection process is carried out in descending order based on the configuration information corresponding to the available networks until the network connection is successful.

[0049] In this embodiment, the currently available network obtained from the pre-configured network information list refers to a network whose configuration information is stored in the IoT device, whose current status is normal, and whose physical location is within the coverage area of ​​the network.

[0050] In this embodiment, the IoT device prioritizes the networks stored in the pre-configured network information list. According to the priority order of the currently available networks in the pre-configured network information list, it selects the network with the highest priority and attempts to connect to the network based on the configuration information corresponding to that network. If the connection fails, it continues to attempt to connect to the network in descending order of the priority of the currently available networks until the IoT device successfully connects to the network.

[0051] In this embodiment, when an IoT device detects that it is offline, it queries a pre-configured network information list. If an available network is found in the list, it proceeds to connect to the network according to the priority order of the available networks in the list, from highest to lowest, based on the configuration information of each available network, until successful network access. The method provided in this application allows IoT devices to reconnect after an offline event based on the priority order of previously successfully connected and currently available networks stored in the pre-configured network information list. This breaks the limitation of relying solely on the configuration information of the most recently successfully connected network to attempt network access again, thus improving the success rate of IoT device network access.

[0052] In the above Figure 1 Based on the illustrated embodiment, another specific implementation of step S102 includes:

[0053] Based on the priority order of currently available networks determined by the user, network access is processed sequentially from high to low according to the network's corresponding configuration information.

[0054] In this embodiment, when an IoT device re-enters the network, the user can customize the currently available networks in the pre-configured network information list. The user can customize the sorting through the terminal application corresponding to the IoT device and select the pre-configured network information list obtained by the custom sorting as the highest priority. Then, when the IoT device re-enters the network, there is no need to sort the stored networks by priority. The network connection process can be performed in descending order of the priority of the currently available networks determined by the user, according to the configuration information corresponding to the available networks, until the network access is successful.

[0055] Figure 2 This is a flowchart of a second embodiment of a network access processing method provided in this application. In the above... Figure 1 Based on the previous embodiment, in step S102, according to the priority order of the currently available networks in the pre-configured network information list, the network connection process is performed sequentially from high to low according to the configuration information corresponding to the currently available networks until the network connection is successful. One specific implementation is as follows:

[0056] Step S201: Prioritize the networks according to the signal strength quality information, the time spent on historical network access, the time since the last disconnection between the IoT device and the network, the first weight corresponding to the signal strength quality, the second weight corresponding to the time spent on historical network access, and the third weight corresponding to the time since the last disconnection between the IoT device and the network in the pre-configured network information list.

[0057] In this embodiment, the pre-configured network information list is a list of networks that have had successful historical connections stored in the IoT device. It prioritizes these networks based on their signal strength quality information, the time spent connecting to the network in the past, and the time elapsed since the last disconnection between the IoT device and the network. The scores are then weighted using a first weight, a second weight, and a third weight, and summed. The signal strength quality information recorded in this pre-configured network information list includes the signal strength quality at the time of successful network connection and the corresponding percentage score. Here, signal strength quality refers to the percentage quality calculated from the Received Signal Strength Indication (RSSI) of the corresponding network received by the IoT device, ranging from 0 to 100. 0 represents an RSSI of -100 dBm, and 100 represents an RSSI of -50 dBm. RSSI values ​​from 1 to 99 can be calculated using linear interpolation. When calculating the priority ranking, signal strength quality scores from 0 to 100 correspond to scores from 0 to 100, and a first weight is preset for the signal strength quality item. This first weight can be 0.40.

[0058] In this embodiment, the historical network access time information includes: the historical network access time obtained by recording the time difference from when the IoT device first attempts to connect to the network to when it successfully connects, and the corresponding percentage score. For example, the corresponding scores between the historical network access time and the percentage score can be shown in Table 1 below, and the historical network access time is weighted by a second weight, which can be 0.30.

[0059] Table 1. Correspondence between time spent on historical network access and percentage score.

[0060] Time spent for historical onboarding Corresponding score Less than 1500 ms 90 1500-3000 ms 80 3000-5000 ms 60 More than 5000 ms 40

[0061] In this embodiment, the time information from the last disconnection between the IoT device and the network to the present includes the time since the last disconnection and the corresponding percentage score. A third weight is assigned to the configuration information corresponding to the network in the pre-configured network information list to weight the time since the last disconnection of the IoT device and the network, and this third weight can be 0.30. For example, the corresponding scores between the time since the last disconnection of the IoT device and the network and the percentage score are shown in Table 2 below.

[0062] Table 2. Corresponding Score Table of IoT Device and Network Last Disconnection Time to Percentage Points

[0063]

[0064] In this embodiment, the networks in the pre-configured network information list are prioritized based on a weighted sum of the percentage scores corresponding to the signal strength quality, historical network access time, and the time elapsed since the last disconnection between the IoT device and the network, all within the network's configuration information from the pre-configured network information list. The total score is calculated by weighting these scores together. It's worth noting that the weights of each configuration item in the pre-configured network information list can be adjusted by the user in the IoT device's terminal application based on their actual network environment. For example, if the user prioritizes the response speed of the IoT device reconnecting to the network after a disconnection for a smooth, seamless user experience, the second weight corresponding to the historical network access time can be increased to 0.60 or higher, with the weights of the remaining items adjusted accordingly.

[0065] In this embodiment, the IoT device can prioritize the stored networks at preset intervals or only when it detects a network outage. If the priority prioritization is performed at preset intervals, the preset interval can be one day. If the priority prioritization occurs after the IoT device has lost network access, only the currently available networks can be prioritized, thus shortening the time required for network access.

[0066] Step S202: According to the priority of the currently available networks in the pre-configured network information list from high to low, perform network access connection processing in turn based on the basic service set identifier (BSSID), encryption method, channel, service set identifier (SSID), and password in the configuration information corresponding to the currently available networks, until network access is successful.

[0067] In this embodiment, the configuration information corresponding to the network in the pre-configured network information list also includes BSSID, encryption method, channel, SSID, and password. The encryption method and channel information of the wireless network are parameters that the underlying wireless communication (Wireless Fidelity, or WiFi) driver module of the IoT device needs to determine when connecting to the wireless network.

[0068] In this embodiment, the IoT device matches the SSID of the corresponding network in the pre-configured network information list according to the priority from high to low of the currently available networks. If the SSID of the corresponding network is detected to have been modified, the BSSID is used for matching. If the match is successful, the network password is loaded to realize network access.

[0069] In this embodiment, networks are prioritized based on their signal strength and quality, historical network access time, and the time elapsed since the last disconnection between the IoT device and the network, according to the configuration information of the networks in the pre-configured network information list. Then, network connection is initiated sequentially based on the Basic Service Set Identifier (BSSID), encryption method, channel, SSID, and password of the currently available networks, from highest to lowest priority in the pre-configured network information list, until successful network access. The method provided in this application allows IoT devices to select from historically connected networks based on their priority when reconnecting after a network disconnection. This improves the success rate of reconnection and ensures that the connected network is the preferred one among the currently available networks, which is beneficial for the continuous and stable operation of the IoT device.

[0070] Figure 3 This is a flowchart of a third embodiment of a network access processing method provided in this application. In the above... Figure 1 Based on the previous embodiment, in step S102, according to the priority order of the currently available networks in the pre-configured network information list, the network connection process is performed sequentially from high to low according to the configuration information corresponding to the currently available networks until the network connection is successful. Another specific implementation method is as follows:

[0071] Step S301: Based on the preset scaling information, obtain the weight judgment matrix corresponding to the signal strength quality, the time spent on historical network access, and the time from the last disconnection between the IoT device and the network to the present, in the configuration information corresponding to the network in the pre-configured network information list.

[0072] Step S302: Based on the weight judgment matrix, calculate and normalize the target weight matrix using the root-finding method.

[0073] Step S303: Based on the target weight matrix, obtain the fourth weight corresponding to the signal strength quality, the fifth weight corresponding to the time spent on historical network access, and the sixth weight corresponding to the time since the last disconnection between the IoT device and the network in the configuration information of the network in the pre-configured network information list.

[0074] In this embodiment, the Analytic Hierarchy Process (AHP) is used to take the signal strength quality, the time spent on historical network access, and the time since the last disconnection between the IoT device and the network from the configuration information of the network in the pre-configured network information list as the indicator layer, and the currently available networks in the pre-configured network information list as the target layer. By establishing a weight judgment matrix for each element of the indicator layer and calculating, the corresponding weights of the aforementioned three elements in each network of the target layer are obtained.

[0075] In this embodiment, the signal strength quality, historical network access time, and the time elapsed since the last disconnection between the IoT device and the network from the pre-configured network information list are used as the judgment elements with corresponding weights. Signal strength quality is element 1, historical network access time is element 2, and the time elapsed since the last disconnection between the IoT device and the network is element 3. Element a in the weight judgment matrix A is used as the judgment element. ij This represents the importance comparison result between element i and element j. This importance comparison result can be obtained through preset scaling information, and the weight judgment matrix A satisfies the formula:

[0076]

[0077] Among them, a ij This represents the element in the i-th row and j-th column of the weight judgment matrix A. In this embodiment, there are three elements, i = 1, 2, 3, and j = 1, 2, 3. For example, the correspondence between the importance comparison results and their quantification values ​​reflected in the preset scaling information is shown in Table 3 below.

[0078] Table 3. Quantitative Correspondence Table of Importance of Element i Compared with Other Elements

[0079]

[0080]

[0081] In this embodiment, for example, the IoT device can be set by default: if the importance comparison result of element 1 and element 2 is "important", then element a in the corresponding weight judgment matrix A will be set accordingly. 12 =5; if the importance comparison result between element 1 and element 3 is "very important", then the weight corresponds to element a in the judgment matrix A.13 =7; if the importance comparison result of element 2 and element 3 is "important", then the corresponding weight judgment matrix element a 23 =5. The weight judgment matrix A can be obtained based on the default settings of IoT devices.

[0082]

[0083] In this embodiment, based on the aforementioned weight judgment matrix A, the formula is used: The target weight matrix W is obtained.

[0084]

[0085] In formula (2), n is the dimension of the weight judgment matrix A. In this embodiment, n = 3.

[0086] In this embodiment, the target weight matrix W is obtained by normalizing the weight judgment matrix after taking the root of each row. Therefore, it can be concluded that under the default importance level among the elements, the fourth weight corresponding to signal strength quality is 0.71, the fifth weight corresponding to the time spent on historical network access is 0.22, and the sixth weight corresponding to the time from the last disconnection between the IoT device and the network to the present is 0.07.

[0087] In this embodiment, the importance comparison results between elements by the IoT device can also be set by the user through the terminal application bound to the IoT device. The IoT device can respond to the importance comparison results selected by the user, such as "equally important", "relatively important", "important", "very important", "extremely important" or "median of two adjacent judgments", and automatically correspond to the quantified values ​​in the preset scaling information, and recalculate the corresponding weights according to the above method.

[0088] Step S304: Based on the fourth weight, the fifth weight, the sixth weight, and the signal strength quality information, the time spent on historical network access, and the time information from the last disconnection between the IoT device and the network to the present, the network is prioritized.

[0089] Step S305: According to the priority of the currently available networks in the pre-configured network information list from high to low, perform network access connection processing in sequence according to the basic service set identifier (BSSID), encryption method, channel, service set identifier (SSID), and password in the configuration information corresponding to the currently available networks, until network access is successful.

[0090] In this embodiment, based on the fourth weight, fifth weight, sixth weight, signal strength quality information in the configuration information corresponding to the network in the pre-configured network information list, the time spent on historical network access, and the time information from the last disconnection between the IoT device and the network to the present, and their corresponding percentage scores, the networks in the pre-configured network information list are prioritized and sorted from high to low according to the final weighted sum score.

[0091] In this embodiment, after prioritizing the networks in the pre-configured network information list, the IoT device connects to the network in the following manner: Figure 2 As shown in step S202 of the embodiment, it will not be repeated here.

[0092] In this embodiment, by establishing pairwise comparison relationships between network influencing factors in the pre-configured network information list based on preset scaling information, namely signal strength quality, time spent on historical network access, and time since the last disconnection of the IoT device from the network, the comparison using relative scales improves the accuracy of weight judgment when prioritizing each factor in the network, thereby improving the efficiency of IoT devices selecting the highest priority currently available network in the pre-configured network information list for network access.

[0093] Figure 4 This is a flowchart of Embodiment 4 of a network access processing method provided in this application. In the above... Figure 1 , Figure 2 and Figure 3 Based on the embodiments, the method further includes:

[0094] Step S401: If no currently available network is obtained from the pre-configured network information list, select an available network in the environment as the network to be connected according to the preset network access method, and perform network access connection processing.

[0095] In this embodiment, if no currently available network is found from the pre-configured network information list, it means that the networks corresponding to the historically successfully connected networks stored by the IoT device cannot be connected in the current environment. In this case, it is necessary to select an available network in the physical environment where the IoT device is located as the network to be connected, based on the network access method preset when the device was manufactured, to perform the network access connection process. The preset network access method may be, but is not limited to, Hotspot Network Configuration (Soft Access Point, abbreviated as: softAP), Smart Config, or Bluetooth Network Configuration.

[0096] Step S402: After the IoT device successfully joins the network, the configuration information corresponding to the connected network is stored.

[0097] In this embodiment, after the IoT device successfully enters the network according to the preset network access method, it stores the configuration information corresponding to the network it is connected to in the flash memory module of the IoT device, so that the stored configuration information will not be lost even if the device is powered off.

[0098] Step S403: Based on the signal strength quality and the time spent joining the network in the configuration information of the connected network, set the priority of the connected network in the pre-configured network information list.

[0099] In this embodiment, the priority of a network in the pre-configured network information list is set based on the signal strength and quality of the connected network and the time spent on this network access. It should be noted that since the network is currently connected, there is no data entry for the time elapsed since the last disconnection between the IoT device and the network. This data entry for the network can be assigned a value of 100, and then... Figure 2 or Figure 3 The method shown in the embodiment performs priority sorting. (and) Figure 2 or Figure 3 The same implementation method applies here. The priority sorting process for the currently connected network can be performed once at a preset interval, or it can be performed only when the network is detected to be disconnected.

[0100] In this embodiment, if no currently available network is found from the pre-configured network information list, an available network in the environment is selected as the network to be connected according to a preset network access method. Network access connection processing is then performed, and the configuration information corresponding to the connected network is stored and its priority is sorted. The method provided in this embodiment ensures that when the network configuration information stored by the IoT device corresponds to a network that is unavailable in the current environment, it can still access the network using a preset network access method. It also stores the configuration information of the newly connected network and updates its priority information, expanding its pre-configured network information list, while ensuring that the IoT device can access the network under different network conditions.

[0101] Figure 5 This is a structural schematic diagram of an embodiment of an Internet of Things (IoT) device provided in this application. (Refer to...) Figure 5 The IoT device 500 includes a monitoring module 501 and a processing module 502. The monitoring module 501 queries a pre-configured network information list when the IoT device detects that it is offline. The processing module 502, if an available network is found in the pre-configured network information list, performs network connection processing according to the priority order of the available networks in the pre-configured network information list, from high to low, based on the configuration information corresponding to the available networks, until network access is successful.

[0102] Optionally, the processing module 502 is specifically used to prioritize the networks based on the signal strength quality information, the time spent on historical network access, the time from the last disconnection between the IoT device and the network to the present, the first weight corresponding to the signal strength quality, the second weight corresponding to the time spent on historical network access, and the third weight corresponding to the time from the last disconnection between the IoT device and the network to the present, in the network information configuration information corresponding to the network in the pre-configured network information list.

[0103] The processing module 502 is specifically used to perform network access connection processing according to the priority of the currently available networks in the pre-configured network information list from high to low, based on the basic service set identifier (BSSID), encryption method, channel, service set identifier (SSID), and password in the configuration information corresponding to the currently available networks, until the network access is successful.

[0104] Optionally, the processing module 502 is specifically used to obtain, based on preset scaling information, the signal strength quality, the time spent on historical network access, and the weight judgment matrix corresponding to the configuration information of the network in the pre-configured network information list, and the time since the last disconnection between the IoT device and the network.

[0105] The processing module 502 is specifically used to calculate and normalize the target weight matrix based on the weight judgment matrix using the root-finding method.

[0106] The processing module 502 is specifically used to obtain, according to the target weight matrix, the fourth weight corresponding to the signal strength quality in the configuration information of the network in the pre-configured network information list, the fifth weight corresponding to the time spent on historical network access, and the sixth weight corresponding to the time from the last disconnection between the IoT device and the network to the present.

[0107] The processing module 502 is specifically used to prioritize the networks based on the fourth weight, the fifth weight, the sixth weight, and the signal strength quality information, the time spent on historical network access, and the time information from the last disconnection between the IoT device and the network to the present, as well as the network configuration information in the pre-configured network information list.

[0108] The processing module 502 is specifically used to perform network access connection processing according to the priority of the currently available networks in the pre-configured network information list from high to low, based on the basic service set identifier (BSSID), encryption method, channel, service set identifier (SSID), and password in the configuration information corresponding to the currently available networks, until the network access is successful.

[0109] The processing module 502 is also used to perform network connection processing in descending order of priority of currently available networks as determined by the user, according to the configuration information corresponding to the networks.

[0110] The processing module 502 is also used to select an available network in the environment as the network to be connected according to the preset network access method if no currently available network is obtained from the pre-configured network information list, and to perform network access connection processing.

[0111] Optionally, the processing module 502 is specifically used to store the configuration information corresponding to the connected network after the IoT device successfully joins the network.

[0112] The processing module 502 is also used to set the priority of the connected network in the pre-configured network information list based on the signal strength quality and the time spent on this network access in the configuration information corresponding to the connected network.

[0113] This application provides an embodiment of an Internet of Things (IoT) device that can perform the above-described... Figure 1 , Figure 2 , Figure 3 and Figure 4 The technical solutions of the method embodiments shown are similar in implementation principle and beneficial effect, and will not be described again here.

[0114] Figure 6 This is a schematic diagram illustrating the structure of a second embodiment of an Internet of Things (IoT) device provided in this application. (Refer to...) Figure 6 The IoT device 600 includes a processor 601 and a memory 602. The memory 602 stores executable instructions of the processor. The processor 601 is configured to execute any of the aforementioned method embodiments by executing the executable instructions.

[0115] The IoT device provided in this application has similar principles and technical effects when used to execute the technical solutions in any of the foregoing method embodiments, and will not be described again here.

[0116] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the technical solutions provided in any of the foregoing method embodiments.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for handling onboarding, the method comprising: The application comprises the following technical scheme: When the Internet of Things device detects that it is in a network outage state, a preconfigured network information list is queried, the preconfigured network information list stores configuration information corresponding to a network to which the Internet of Things device has successfully connected in the past, and the configuration information includes time information, signal strength quality information and time information of the Internet of Things device from the last disconnection to the present corresponding to the network. If a currently available network is obtained from the preconfigured network information list, network connection processing is performed according to the configuration information corresponding to the currently available network in the preconfigured network information list in a priority order from high to low until network connection is successful, including: obtaining a target weight matrix corresponding to the signal strength quality, the time spent in historical network access and the time from the last disconnection to the present of the Internet of Things device corresponding to the configuration information of the network in the preconfigured network information list according to preset scale information; obtaining a fourth weight corresponding to the signal strength quality, a fifth weight corresponding to the time spent in historical network access and a sixth weight corresponding to the time from the last disconnection to the present of the Internet of Things device corresponding to the configuration information of the network in the preconfigured network information list according to the target weight matrix; performing priority ordering processing on the network according to the fourth weight, the fifth weight, the sixth weight and the signal strength quality information, the time information spent in historical network access and the time information from the last disconnection to the present of the Internet of Things device corresponding to the configuration information of the network in the preconfigured network information list; and performing network connection processing in a priority order from high to low of the currently available network in the preconfigured network information list until network connection is successful.

2. The method of claim 1, wherein, The network connection processing in the priority order from high to low of the currently available network in the preconfigured network information list until network connection is successful comprises: performing priority ordering processing on the network according to the signal strength quality information, the time information spent in historical network access, the time information from the last disconnection to the present of the Internet of Things device corresponding to the configuration information of the network in the preconfigured network information list, a first weight corresponding to the signal strength quality, a second weight corresponding to the time spent in historical network access and a third weight corresponding to the time from the last disconnection to the present of the Internet of Things device; performing network connection processing according to basic service set identification (BSSID), encryption mode, channel, service set identification (SSID) and password in the configuration information corresponding to the currently available network in a priority order from high to low until network connection is successful.

3. The method of claim 1, wherein, The target weight matrix corresponding to the signal strength quality, the time spent in historical network access, and the time from the last disconnection of the Internet of Things device from the network to the present is obtained according to preset scale information in the configuration information corresponding to the network in the preconfigured network information list, including: According to preset scale information, a weight judgment matrix corresponding to the signal strength quality, the time spent in historical network access, and the time from the last disconnection of the Internet of Things device from the network to the present is obtained in the configuration information corresponding to the network in the preconfigured network information list. According to the weight judgment matrix, a root-finding method is used to calculate and perform normalization processing to obtain a target weight matrix. Accordingly, the network connection processing is performed in the order of the priority of the currently available network in the preconfigured network information list from high to low until the network access is successful, including: According to the basic service set identifier (BSSID), the encryption method, the channel, the service set identifier (SSID), and the password in the configuration information corresponding to the currently available network, the network connection processing is performed in the order of the priority of the currently available network in the preconfigured network information list from high to low until the network access is successful.

4. The method according to any one of claims 1 to 3, characterized in that, Also includes: Based on the priority order of the currently available network determined by the user, the network connection processing is performed in the order of the priority of the currently available network from high to low according to the configuration information corresponding to the network.

5. The method of claim 4, wherein, Also includes: If no currently available network is obtained from the preconfigured network information list, a network available in the environment is selected as a network to be connected according to a preset network access method, and the network connection processing is performed.

6. The method of claim 5, wherein, After the Internet of Things device successfully accesses the network, the configuration information corresponding to the connected network is stored.

7. The method of claim 6, wherein, Also includes: According to the signal strength quality, the time spent in this network access, and the priority of the connected network in the preconfigured network information list.

8. An Internet of Things device, comprising: Includes: A monitoring module is configured to monitor the Internet of Things device when it is in a network disconnection state, query a preconfigured network information list, and store configuration information corresponding to a network that the Internet of Things device has historically connected successfully in the preconfigured network information list. The configuration information includes time information, signal strength quality information, and time information from the last disconnection of the Internet of Things device from the network to the present. The processing module is configured to, if a currently available network is obtained from the preconfigured network information list, perform network access connection processing according to the configuration information corresponding to the currently available network in the preconfigured network information list in a descending order of priority of the currently available network until network access is successful, including: obtaining a target weight matrix corresponding to signal strength quality, time spent in historical network access, and time from the last disconnection of the Internet of Things device to the network to the present in the configuration information corresponding to the network in the preconfigured network information list according to preset scale information; obtaining a fourth weight corresponding to the signal strength quality, a fifth weight corresponding to the time spent in historical network access, and a sixth weight corresponding to the time from the last disconnection of the Internet of Things device to the network to the present in the configuration information corresponding to the network in the preconfigured network information list according to the target weight matrix; performing priority ordering processing on the network according to the fourth weight, the fifth weight, the sixth weight, and the signal strength quality information, the time spent in historical network access information, and the time from the last disconnection of the Internet of Things device to the network to the present information in the configuration information corresponding to the network in the preconfigured network information list; and performing network access connection processing in a descending order of priority of the currently available network in the preconfigured network information list until network access is successful.

9. An Internet of Things device, characterized by Comprise: a processor and a memory; the memory is used to store executable instructions of the processor; wherein the processor is configured to execute the executable instructions to perform the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Networking method and a device of a ZigBee device

    CN109257798A