Networking method, device, equipment, storage medium and product

Through full-channel scanning and coexistence networking strategies, intelligent devices switch channels when forming networks and support multiple networking methods, solving the problems of low network efficiency and high failure rate in the existing technology, improving network efficiency and success Rate.

CN119183179APending Publication Date: 2024-12-24TP-LINK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411373144.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Existing smart home products are inefficient and have high failure rates when forming networks, and they cannot flexibly switch different networking methods, resulting in repeated operations being prone to errors.

Method used

The full-channel scanning results are used to instruct the intelligent device to perform channel switching, and based on the coexistence networking strategy, it supports the switching of SoftAP and Mesh networking methods to improve networking efficiency and success rate.

Benefits of technology

Through channel switching and coexistence networking strategies, the limitations of a single networking method are avoided, the efficiency and success rate of smart devices are improved during networking, and the possibility of operational errors is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119183179A_ABST
    Figure CN119183179A_ABST
Patent Text Reader

Abstract

The invention discloses a networking method and device, equipment, a storage medium and a product, and relates to the technical field of the Internet of Things, and the method comprises the steps: indicating a to-be-accessed intelligent device to carry out channel switching according to a full-channel scanning result of the to-be-accessed intelligent device, and obtaining the to-be-accessed intelligent device after the channel switching; the intelligent equipment to be accessed to the network after channel switching is networked based on a coexistence networking strategy, the coexistence networking strategy is a switching strategy of a first networking mode and a second networking mode, and the first networking mode and the second networking mode are used for accessing the intelligent equipment to the wireless network. Compared with a traditional networking method, the method has the advantages that the intelligent equipment to be networked is networked on the basis of the channel switching coexistence networking strategy, so that the problem that only a single networking mode can be used and different networking modes cannot be considered in the prior art is avoided; and thus, the networking efficiency and success rate of the intelligent equipment to be accessed to the network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a networking method, device, equipment, storage medium and product. Background Art

[0002] When adding smart devices to the network, the existing smart home solutions in the industry are unable to flexibly switch between different networking modes through function buttons, etc., because the user control methods of some smart devices (such as smart lamps) are limited. That is, only a single networking mode (usually SoftAP networking mode) can be used, and multiple smart devices need to be added serially, resulting in low networking efficiency and repeated operations that are prone to errors.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a networking method, device, equipment, storage medium and product, aiming to solve the technical problems of low efficiency and high failure rate in the networking of smart home products in the prior art.

[0005] To achieve the above object, the present application provides a networking method, which comprises the following steps:

[0006] Instructing the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, and obtaining the smart device to be connected to the network after the channel switching;

[0007] The smart devices to be networked after the channel switching are networked based on the coexistence networking strategy, wherein the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, and the first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

[0008] In one embodiment, the step of instructing the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, and obtaining the smart device to be connected to the network after the channel switching, includes:

[0009] Feedback a detection response frame to the intelligent device to be connected to the network according to the detection request frame sent by the intelligent device to be connected to the network when performing full channel scanning;

[0010] If the intelligent device to be connected to the network receives the detection response frame, the intelligent device to be connected to the network is instructed to switch channels, so as to obtain the intelligent device to be connected to the network after the channel switching.

[0011] In one embodiment, after the step of feeding back a detection response frame to the smart device to be connected to the network according to the detection request frame sent by the smart device to be connected to the network when performing full channel scanning, the step further includes:

[0012] If the intelligent device to be connected to the network does not receive the detection response frame, it is determined whether there is an available front-end device at present according to the information elements contained in the full channel scanning result;

[0013] If there is an available front-end device currently, instruct the intelligent device to be connected to the network to switch channels based on the RSSI value of the available front-end device, and obtain the intelligent device to be connected to the network after the channel switching;

[0014] If there is no available front-end device currently, the intelligent device to be connected to the network is instructed to switch to a random channel to obtain the intelligent device to be connected to the network after the channel is switched.

[0015] In one embodiment, the step of feeding back a probe response frame to the smart device to be connected to the network according to a probe request frame sent by the smart device to be connected to the network when performing full channel scanning includes:

[0016] When receiving a first detection request frame sent by the intelligent device to be connected to the network during the full channel scanning process, obtaining a first RSSI value of the intelligent device to be connected to the network;

[0017] If the first RSSI value is greater than or equal to a first preset threshold, feeding back a detection response frame to the smart device to be connected to the network;

[0018] If the first RSSI value is less than the first preset threshold, upon receiving a second detection request frame sent by the smart device to be connected to the network during the next full channel scan, obtaining a second RSSI value of the smart device to be connected to the network;

[0019] If the second RSSI value is greater than or equal to a second preset threshold, a detection response frame is fed back to the smart device to be networked, and the second preset threshold is less than the first preset threshold.

[0020] In one embodiment, the step of networking the intelligent device to be networked after the channel switching based on the coexistence networking strategy includes:

[0021] Determine a networking mode that matches the smart device to be networked after the channel switching based on the coexistence networking strategy, and obtain a service set identifier and password of the wireless network according to the networking mode;

[0022] The intelligent device to be networked after the channel switching is connected to the wireless network based on the service set identifier and the password, so as to form a network for the intelligent device to be networked after the channel switching.

[0023] In one embodiment, the networking method further includes:

[0024] If it is detected that there is a connected smart device in the wireless network, the historical networking information of the connected smart device is obtained, and based on the historical networking information, the connected smart device is guided to access the wireless network.

[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a networking device, which includes:

[0026] A channel switching module, used for instructing the intelligent device to be connected to the network to switch channels according to the full channel scanning result of the intelligent device to be connected to the network, so as to obtain the intelligent device to be connected to the network after the channel switching;

[0027] A coexistence networking module is used to network the smart devices to be networked after the channel switching based on the coexistence networking strategy. The coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode. The first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

[0028] In addition, to achieve the above objectives, the present application also proposes a networking device, which includes: a memory, a processor, and a networking program stored in the memory and executable on the processor, wherein the networking program is configured to implement the steps of the networking method described above.

[0029] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a networking program is stored on the storage medium. When the networking program is executed by the processor, the steps of the networking method described above are implemented.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a networking program, and when the networking program is executed by a processor, the steps of the networking method described above are implemented.

[0031] This application instructs the smart device to be networked to switch channels according to the full channel scanning result of the smart device to be networked, and obtains the smart device to be networked after the channel switching; the smart device to be networked after the channel switching is networked based on the coexistence networking strategy, and the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, and the first networking mode and the second networking mode are used to connect the smart device to the wireless network. Compared with the traditional networking method, since the above method of this application networks the smart device to be networked based on the channel switching coexistence networking strategy, it avoids the existing technology that can only use a single networking mode and cannot take into account the advantages of different networking modes, thereby improving the efficiency and success rate of the smart device to be networked when networking. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the structure of the networking device of the hardware operating environment involved in the embodiment of the present application;

[0033] Figure 2 This is a flow chart of the first embodiment of the networking method of the present application;

[0034] Figure 3 This is the historical networking information notification interaction diagram for this application networking method;

[0035] Figure 4 This is a flow chart of the second embodiment of the networking method of the present application;

[0036] Figure 5 This is a flow chart of the third embodiment of the networking method of the present application;

[0037] Figure 6 This is a structural block diagram of the first embodiment of the networking device of the present application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] Reference Figure 1 , Figure 1 A schematic diagram of the networking equipment structure of the hardware operating environment involved in the embodiment of the present application.

[0041] like Figure 1As shown, the networking device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0042] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the networking device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0043] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and a networking program.

[0044] exist Figure 1 In the networking device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the networking device of the present application can be set in the networking device, and the networking device calls the networking program stored in the memory 1005 through the processor 1001, and executes the networking method provided in the embodiment of the present application.

[0045] The present application embodiment provides a networking method, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the networking method of the present application.

[0046] In this embodiment, the networking method includes the following steps:

[0047] Step S10: instructing the smart device to access the network to switch channels according to the full channel scanning result of the smart device to access the network, so as to obtain the smart device to access the network after the channel switching.

[0048] It should be noted that the execution subject of the method of this embodiment can be a terminal device with networking function, data processing function and program running function, such as a router, a computer, etc., or an electronic device with the same or similar functions, such as the above-mentioned networking device. The following takes the networking device (hereinafter referred to as the networking device) as an example to illustrate this embodiment and the following embodiments.

[0049] It is understandable that the above-mentioned smart devices to be connected to the network may include but are not limited to smart lighting equipment (such as smart lamps, smart dimmers, etc.), smart security equipment (such as smart door locks, smart cameras), smart environmental equipment (such as smart air conditioners, smart air purifiers, etc.), smart control equipment (such as smart remote controls, smart control panels), smart monitoring equipment (such as smart blood pressure monitors, smart sleep monitors, etc.), smart switches, sensors, etc. This embodiment does not limit the categories and quantity of smart devices to be connected to the network.

[0050] It should be understood that full channel scanning is a common signal scanning method in wireless networks, which is used to detect surrounding wireless networks and their properties. This scanning method involves wireless devices (such as Wi-Fi routers, client devices, etc.) checking all available wireless channels one by one to detect signals, networks and other related information on each channel. Exemplarily, full channel scanning can be used to scan all channels in the 2.4GHz and 5GHz Wi-Fi bands to ensure that networking devices find all available wireless networks, including hidden or weak signal networks.

[0051] In a specific implementation, the target channel that needs to be switched for the smart device to be connected to the network can be determined through the above-mentioned full-channel scanning result, thereby completing the channel switching of the smart device to be connected to the network and obtaining the smart device to be connected to the network after the above-mentioned channel switching.

[0052] Step S20: Networking the smart devices to be networked after the channel switching based on the coexistence networking strategy, the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, and the first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

[0053] It should be noted that the first networking method mentioned above can be a SoftAP networking method. The SoftAP networking method is a method of creating a wireless network through the device itself, connecting other devices to the network and configuring and connecting through the device. The SoftAP networking method is usually a virtual network created by the device through the hotspot mode when it is started. Other devices can connect to the network through devices such as mobile phones or computers, and then configure and connect the devices. The second networking method mentioned above can be a Mesh networking method. The Mesh networking method is a method of connecting and communicating devices through a wireless Mesh network. In a Mesh network, each device can communicate with each other to form a network structure with wider coverage and better scalability. Each device in the Mesh network can act as a router or repeater, thereby enhancing the coverage and stability of the entire network. In particular, the first networking method and the second networking method are effective at the same time. According to the user operation, the corresponding networking method process is entered to connect the smart device to be connected to the wireless network.

[0054] It is understandable that the SoftAP networking method is that the device to be networked creates a wireless network by itself, replies to the Probe Req of the mobile phone, and allows the mobile phone to associate; the Mesh networking method is that the device to be networked sends a Probe Req, directly finds the networking front end, and the mobile phone controls the networking front end to respond to the Probe Resp of the device to be networked, and then the device to be networked is associated with the wireless network of the networking front end, and the two perform identity authentication, networking protocol interaction, and obtain SSID and password configurations. Among them, the key difference between the SoftAP networking method and the Mesh networking method is that the SoftAP networking method is first scanned and then associated, while the Mesh networking method is directly scanned and then associated with other devices.

[0055] It should be understood that by networking smart devices through the above coexistence networking strategy, the advantages of SoftAP networking and Mesh networking can be taken into account, thereby achieving the coexistence of two completely different networking solutions, SoftAP networking and Mesh networking, thereby improving the efficiency and success rate of networking. The goal of the coexistence networking strategy is to guide the mobile phone to the working channel of the smart home device as much as possible, and to improve the success rate of the mobile phone scanning and associating with the smart home device.

[0056] It is understandable that the networking method proposed in this embodiment can be applied to WiFi devices on the client side, such as lamps, switches, smart central control, various sensors, smart home devices such as sweeping robots, doorbells, door locks, IPC (IPCAMERA, network camera), wireless NVR (Network Video Recorder), visual host and other security equipment, and this embodiment does not limit this.

[0057] In a feasible implementation manner, the networking method may further include:

[0058] Step S30: If it is detected that there is a connected smart device in the wireless network, the historical networking information of the connected smart device is obtained, and based on the historical networking information, the connected smart device is guided to access the wireless network.

[0059] In the specific implementation, the smart devices to be connected to the network may stay in the main channel for a long time. In order to enable these smart devices to be connected to the network to scan and WPS to join the network as soon as possible after the Registrar is turned on, the information of the Mesh pairing Registrar of the smart devices that have been connected to the network (that is, the above-mentioned historical networking information) can be informed to the smart devices to speed up the scanning and association of the smart devices to be connected to the network, and guide the smart devices to be connected to the network to access the wireless network. In addition, such notification signaling can be sent by designing a dedicated detection / notification chip on the product, or by using unused wireless frequency bands for dual-band devices, so as to avoid the need for the devices that have been connected to the network to switch channels and affect normal functions. The smart device to be connected to the network can carry its own main channel information in the Probe Req, so that the smart device that has been connected to the network can learn this information and switch to the corresponding channel to send it when the networking information notification is needed, without having to notify on all channels.

[0060] refer to Figure 3 , Figure 3 This is the interactive diagram of the historical networking information notification of this application networking method. Figure 3 In the Mesh onboarding process, the user's smart central control screen can notify the smart devices to be connected to the network through different bearer protocols (including but not limited to wireless management frames and data frames) to start Mesh networking. It can even tell the smart devices to be connected to the network to find the Registrar at a specified time and on a specified channel to improve the scanning success rate, thereby avoiding the time-consuming full channel scanning. Among them, Mesh onboarding refers to the process of adding smart devices to the Mesh network and networking them. Vendor Action refers to a management frame in the IEEE802.11 wireless LAN standard defined by the Wi-Fi Alliance. WPS (WPS Push Button Configuration) refers to a method for simplifying Wi-Fi network configuration. IoT (Internet of Things) specifically refers to IoT devices, which can be interpreted as IoT smart home devices (i.e. smart devices to be connected to the network).

[0061] This embodiment instructs the intelligent device to be networked to switch channels according to the full channel scanning result of the intelligent device to be networked, and obtains the intelligent device to be networked after the channel switching; the intelligent device to be networked after the channel switching is networked based on the coexistence networking strategy, the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, the first networking mode and the second networking mode are used to connect the intelligent device to the wireless network; if it is detected that there is an intelligent device that has been networked in the wireless network, the historical networking information of the intelligent device that has been networked is obtained, and the intelligent device to be networked is guided to access the wireless network based on the historical networking information. Compared with the traditional networking method, since the above method of this embodiment networks the intelligent device to be networked based on the channel switching coexistence networking strategy, it avoids the existing technology that can only use a single networking mode and cannot take into account the advantages of different networking modes, thereby improving the efficiency and success rate of the intelligent device to be networked when networking; at the same time, by learning the historical networking information of the intelligent device that has been networked, the network access efficiency of the intelligent device to be networked is further improved.

[0062] refer to Figure 4 , Figure 4 This is a flow chart of the second embodiment of the networking method of the present application.

[0063] In a feasible implementation manner, the step S10 may include:

[0064] Step S101: feeding back a probe response frame to the smart device to be connected to the network according to the probe request frame sent by the smart device to be connected to the network when performing full channel scanning.

[0065] It should be understood that the above-mentioned probe request frame may be Probe Req (i.e., Probe Request), which is a management frame in the Wi-Fi network and can be used for requests sent by wireless devices to surrounding access points when looking for available networks. The smart device to be connected to the network will send a Probe Request frame when it wants to connect to the Wi-Fi network to search for available networks nearby. The above-mentioned probe response frame may be Probe Resp (i.e., Probe Response), which is also a management frame in the Wi-Fi network and is sent as a response to the above-mentioned Probe Request frame. When the smart device to be connected to the network sends a ProbeRequest frame to find an available network, nearby Wi-Fi access points will receive this request and respond.

[0066] In the specific implementation, in order to improve the success rate of mobile phone association, the SoftAP of the smart device should work on the same channel (called the main channel) most of the time. When temporarily switching to other channels and scanning for Mesh networking, it is allowed to respond to the ProbeReq of the mobile phone, but the DS Parameter Set field in ProbeResp must declare the channel as the main channel to avoid other channels being maintained in the mobile phone scanning list and failure due to channel errors when the user operates to associate the SoftAP of the smart device, so as to ensure that the mobile phone can successfully scan the wireless network of the smart device when the smart device switches channels to detect the front end of the Mesh network.

[0067] Step S102: if the intelligent device to be connected to the network receives the detection response frame, the intelligent device to be connected to the network is instructed to switch channels, so as to obtain the intelligent device to be connected to the network after the channel switching.

[0068] In a feasible implementation manner, after step S101, the following may also be included:

[0069] Step S103: If the intelligent device to be connected to the network does not receive the detection response frame, it is determined whether there is an available front-end device at present according to the information elements included in the full channel scanning result.

[0070] It should be noted that the information element contained in the above-mentioned full channel scan result may be a Vendor IE (Vendor Information Element), which is an information element in a Wi-Fi network and is used to transmit additional information customized by the manufacturer in a Wi-Fi frame. Such additional information may include device model, manufacturer identification, support information for specific functions, etc., which is not limited in this embodiment. In addition, the above-mentioned available front-end device may represent a front-end device that supports the auxiliary notification networking method described in this article, which does not mean that the front-end has started the network configuration service.

[0071] Step S104: If there is an available front-end device, the smart device to be connected to the network is instructed to switch channels based on the RSSI value of the available front-end device, so as to obtain the smart device to be connected to the network after the channel switching.

[0072] It should be noted that the above-mentioned available front-end devices can refer to computer devices or terminal devices that directly interact with users and are used to access the network, run applications, and perform various tasks. These devices are usually located at the front end of the network architecture and provide users with access to the network and services.

[0073] It is understandable that the above RSSI value is the abbreviation of Received Signal Strength Indication, which means received signal strength indication. In wireless communications, especially in technologies such as Wi-Fi and Bluetooth, the RSSI value is an indicator used to measure the signal strength received by a device. RSSI values ​​are usually expressed as negative numbers, and the larger the value, the stronger the signal strength. For example, an RSSI value of -50dBm is higher than an RSSI value of -70dBm because -50dBm represents a stronger signal.

[0074] In a specific implementation, if there are multiple available front-end devices, the available front-end device with the highest RSSI value can be selected from these multiple available front-end devices, and the channel of the smart device to be connected to the network is switched to the channel of the available front-end device with the highest RSSI value, thereby obtaining the smart device to be connected to the network after the channel switching.

[0075] Step S105: If there is no available front-end device currently, instruct the intelligent device to be connected to the network to switch to a random channel, and obtain the intelligent device to be connected to the network after the channel switching.

[0076] It is understandable that the random channels mentioned above may be random channels 1 / 6 / 11, which are the three main wireless channels used by Wi-Fi networks in the 2.4 GHz frequency band. Random channels 1 / 6 / 11 are usually used for configuration and optimization of Wi-Fi networks to ensure that interference and conflicts are minimized in crowded wireless environments. For example, when multiple Wi-Fi networks are deployed in one area, they can be configured on channels 1, 6, and 11 to minimize interference between them.

[0077] This embodiment feeds back a detection response frame to the intelligent device to be networked according to the detection request frame sent by the intelligent device to be networked when performing full channel scanning; if the intelligent device to be networked receives the detection response frame, it instructs the intelligent device to be networked to switch channels, and obtains the intelligent device to be networked after channel switching; if the intelligent device to be networked does not receive the detection response frame, it determines whether there is an available front-end device at present according to the information elements contained in the full channel scanning result; if there is an available front-end device at present, it instructs the intelligent device to be networked to switch channels based on the RSSI value of the available front-end device, and obtains the intelligent device to be networked after channel switching; if there is no available front-end device at present, it instructs the intelligent device to be networked to switch to a random channel, and obtains the intelligent device to be networked after channel switching. Compared with the traditional networking method, the above method of this embodiment instructs the intelligent device to be networked to switch channels through the detection request frame sent by the intelligent device to be networked when performing full channel scanning and the received detection response frame, and provides a channel switching strategy when the intelligent device to be networked does not receive the detection response frame, thereby improving the channel switching efficiency of the intelligent device to be networked.

[0078] refer to Figure 5 , Figure 5 This is a flow chart of the third embodiment of the networking method of the present application.

[0079] In a feasible implementation manner, the step S101 may include:

[0080] Step S1011: when receiving a first detection request frame sent by a smart device to be connected to the network during a full channel scanning process, obtaining a first RSSI value of the smart device to be connected to the network.

[0081] Step S1012: If the first RSSI value is greater than or equal to a first preset threshold, a detection response frame is fed back to the smart device to be connected to the network.

[0082] Step S1013: If the first RSSI value is less than a first preset threshold, upon receiving a second detection request frame sent by the smart device to be connected to the network during the next full channel scan, a second RSSI value of the smart device to be connected to the network is obtained.

[0083] Step S1014: If the second RSSI value is greater than or equal to a second preset threshold, a detection response frame is fed back to the smart device to be networked, and the second preset threshold is less than the first preset threshold.

[0084] In the specific implementation, in the face of the topology of dense deployment of intelligent devices to be connected to the network, the scanning message interaction may seriously occupy the air interface and cause the scanning interaction to time out and fail, including: 1. The mobile phone is scanning, and the SoftAP of a large number of terminal devices receives the Probe Req at the same time and responds; 2. The terminal device is in a scanning state where SoftAP and Mesh Onboarding coexist, and the sent Probe Req will be received and responded to by a large number of terminal devices around. In order to prevent insufficient air interfaces in similar situations, the number of Probe Resp needs to be suppressed, for example: 1. When receiving the Probe Req (i.e. the above-mentioned first probe request frame), perform an RSSI check, and do not respond if the RSSI value (i.e. the above-mentioned first RSSI value) is lower than the specified threshold (i.e. the above-mentioned first preset threshold). This threshold can be set dynamically. When the mobile phone scans for the second time, a lower threshold (i.e., the second preset threshold) is used to prevent the mobile phone from being too far away and the RSSI of the message from always failing to reach the threshold and being unable to be replied. 2. Add a mark to the Probe Req protocol message sent by the terminal device (such as using a private Vendor IE) to ensure that the terminal devices in parallel networking will not reply to each other. The terminal device only replies to the Probe Req of the mobile phone.

[0085] In a feasible implementation manner, the step S20 may include:

[0086] Step S201: determining a networking mode that matches the smart device to be networked after the channel switching based on the coexistence networking strategy, and obtaining a service set identifier and a password of the wireless network according to the networking mode.

[0087] Step S202: connecting the intelligent device to be connected to the network after the channel switching to the wireless network based on the service set identifier and the password, so as to form a network for the intelligent device to be connected to the network after the channel switching.

[0088] In this embodiment, when a first detection request frame sent by the intelligent device to be connected to the network is received during a full channel scan, a first RSSI value of the intelligent device to be connected to the network is obtained; if the first RSSI value is greater than or equal to a first preset threshold, a detection response frame is fed back to the intelligent device to be connected to the network; if the first RSSI value is less than the first preset threshold, when a second detection request frame sent by the intelligent device to be connected to the network is received during the next full channel scan, a second RSSI value of the intelligent device to be connected to the network is obtained; if the second RSSI value is greater than or equal to a second preset threshold, a detection response frame is fed back to the intelligent device to be connected to the network, and the second preset threshold is less than the first preset threshold; based on the coexistence networking strategy, a networking mode matching the intelligent device to be connected to the network after the channel switching is determined, and a service set identifier and a password of the wireless network are obtained according to the networking mode; based on the service set identifier and the password, the intelligent device to be connected to the network after the channel switching is connected to the wireless network, so as to network the intelligent device to be connected to the network after the channel switching. Compared with traditional networking methods, the above method in this embodiment compares the RSSI value of the intelligent device to be connected during the full channel scanning process with the preset threshold, and does not respond to the intelligent device to be connected that is below the preset threshold, thereby avoiding the situation in which the scanning message interaction seriously occupies the air interface and causes the scanning interaction timeout failure in the topology where the intelligent devices to be connected are densely deployed.

[0089] In addition, an embodiment of the present application further proposes a storage medium, on which a networking program is stored. When the networking program is executed by a processor, the steps of the networking method described above are implemented.

[0090] Reference Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the networking device of the present application.

[0091] like Figure 6 As shown, the networking device proposed in the embodiment of the present application includes:

[0092] A channel switching module 601 is used to instruct the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, so as to obtain the smart device to be connected to the network after the channel switching;

[0093] The coexistence networking module 602 is used to network the smart devices to be networked after the channel switching based on the coexistence networking strategy. The coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode. The first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

[0094] This embodiment instructs the smart device to be networked to switch channels according to the full channel scanning result of the smart device to be networked, and obtains the smart device to be networked after the channel switching; the smart device to be networked after the channel switching is networked based on the coexistence networking strategy, and the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, and the first networking mode and the second networking mode are used to connect the smart device to the wireless network. Compared with the traditional networking method, since the above method of this embodiment networks the smart device to be networked based on the channel switching coexistence networking strategy, it avoids the existing technology that can only use a single networking mode and cannot take into account the advantages of different networking modes, thereby improving the efficiency and success rate of the smart device to be networked when networking.

[0095] Based on the first embodiment of the networking device of the present application, a second embodiment of the networking device of the present application is proposed.

[0096] In this embodiment, the channel switching module 601 is also used to feed back a detection response frame to the intelligent device to be connected according to the detection request frame sent by the intelligent device to be connected when performing full channel scanning; if the intelligent device to be connected receives the detection response frame, it instructs the intelligent device to be connected to switch channels to obtain the intelligent device to be connected after the channel switching.

[0097] Furthermore, the channel switching module 601 is also used to determine whether there is an available front-end device according to the information elements contained in the full channel scanning result if the intelligent device to be connected to the network has not received the detection response frame; if there is an available front-end device, then based on the RSSI value of the available front-end device, instruct the intelligent device to be connected to switch channels to obtain the intelligent device to be connected to the network after the channel switching; if there is no available front-end device, then instruct the intelligent device to be connected to switch to a random channel to obtain the intelligent device to be connected to the network after the channel switching.

[0098] Furthermore, the channel switching module 601 is also used to obtain a first RSSI value of the smart device to be connected when receiving a first detection request frame issued by the smart device to be connected during a full channel scan; if the first RSSI value is greater than or equal to a first preset threshold, then a detection response frame is fed back to the smart device to be connected; if the first RSSI value is less than the first preset threshold, then when receiving a second detection request frame issued by the smart device to be connected during the next full channel scan, the second RSSI value of the smart device to be connected is obtained; if the second RSSI value is greater than or equal to a second preset threshold, then a detection response frame is fed back to the smart device to be connected, and the second preset threshold is less than the first preset threshold.

[0099] Furthermore, the coexistence networking module 602 is also used to determine a networking mode that matches the smart device to be networked after the channel switching based on the coexistence networking strategy, and obtain a service set identifier and password of the wireless network according to the networking mode; based on the service set identifier and the password, the smart device to be networked after the channel switching is connected to the wireless network to network the smart device to be networked after the channel switching.

[0100] Furthermore, the coexistence networking module 602 is also used to obtain historical networking information of the connected smart device if it is detected that there is a connected smart device in the wireless network, and guide the connected smart device to access the wireless network based on the historical networking information.

[0101] Other embodiments or specific implementations of the networking device of the present application can refer to the above-mentioned method embodiments and will not be described in detail here.

[0102] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0103] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0105] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A networking method, characterized in that: The method comprises the following steps: Instructing the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, and obtaining the smart device to be connected to the network after the channel switching; The smart devices to be networked after the channel switching are networked based on the coexistence networking strategy, wherein the coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode, and the first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

2. The networking method according to claim 1, characterized in that: The step of instructing the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, and obtaining the smart device to be connected to the network after the channel switching, comprises: Feedback a detection response frame to the intelligent device to be connected to the network according to the detection request frame sent by the intelligent device to be connected to the network when performing full channel scanning; If the intelligent device to be connected to the network receives the detection response frame, the intelligent device to be connected to the network is instructed to switch channels, so as to obtain the intelligent device to be connected to the network after the channel switching.

3. The networking method according to claim 2, characterized in that: After the step of feeding back a detection response frame to the smart device to be connected to the network according to the detection request frame sent by the smart device to be connected to the network when performing full channel scanning, the step further includes: If the intelligent device to be connected to the network does not receive the detection response frame, it is determined whether there is an available front-end device at present according to the information elements contained in the full channel scanning result; If there is an available front-end device currently, instruct the intelligent device to be connected to the network to switch channels based on the RSSI value of the available front-end device, and obtain the intelligent device to be connected to the network after the channel switching; If there is no available front-end device currently, the intelligent device to be connected to the network is instructed to switch to a random channel to obtain the intelligent device to be connected to the network after the channel is switched.

4. The networking method according to claim 2, characterized in that: The step of feeding back a detection response frame to the intelligent device to be connected to the network according to the detection request frame sent by the intelligent device to be connected to the network when performing full channel scanning includes: When receiving a first detection request frame sent by the intelligent device to be connected to the network during the full channel scanning process, obtaining a first RSSI value of the intelligent device to be connected to the network; If the first RSSI value is greater than or equal to a first preset threshold, feeding back a detection response frame to the smart device to be connected to the network; If the first RSSI value is less than the first preset threshold, upon receiving a second detection request frame sent by the smart device to be connected to the network during the next full channel scan, obtaining a second RSSI value of the smart device to be connected to the network; If the second RSSI value is greater than or equal to a second preset threshold, a detection response frame is fed back to the smart device to be networked, and the second preset threshold is less than the first preset threshold.

5. The networking method according to claim 1, characterized in that: The step of networking the intelligent devices to be networked after the channel switching based on the coexistence networking strategy includes: Determine a networking mode that matches the smart device to be networked after the channel switching based on the coexistence networking strategy, and obtain a service set identifier and password of the wireless network according to the networking mode; The intelligent device to be networked after the channel switching is connected to the wireless network based on the service set identifier and the password, so as to form a network for the intelligent device to be networked after the channel switching.

6. The networking method according to claim 1, characterized in that: The networking method further includes: If it is detected that there is a connected smart device in the wireless network, the historical networking information of the connected smart device is obtained, and based on the historical networking information, the connected smart device is guided to access the wireless network.

7. A networking device, characterized in that: The networking device comprises: A channel switching module, used for instructing the smart device to switch channels according to the full channel scanning result of the smart device to be connected to the network, so as to obtain the smart device to be connected to the network after the channel switching; A coexistence networking module is used to network the smart devices to be networked after the channel switching based on the coexistence networking strategy. The coexistence networking strategy is a switching strategy between the first networking mode and the second networking mode. The first networking mode and the second networking mode are used to connect the smart devices to the wireless network.

8. A networking device, characterized in that: The device comprises: a memory, a processor, and a networking program stored in the memory and executable on the processor, wherein the networking program is configured to implement the steps of the networking method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a networking program is stored on the storage medium. When the networking program is executed by a processor, the steps of the networking method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a networking program, and when the networking program is executed by a processor, the steps of the networking method according to any one of claims 1 to 6 are implemented.