Equipment communication cascading method and device, storage medium and computer equipment

By configuring AP mode and Station mode in the device cluster and using the device as a relay node, the problem of limiting the number of router connections and distances is solved, and stable networked communications for multiple devices are achieved across a large range.

CN119652813APending Publication Date: 2025-03-18ENTROPY TECH (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411849740.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, the device networking method is limited by the number of device connections and the device connection distance of the router, and cannot achieve the networking communication needs of multiple devices in a large range.

Method used

By obtaining the device cluster in the area to be connected, and configuring the AP mode and Station mode of each device in the device cluster, the networked devices are used as relay nodes between unnetworked devices and routers to realize device communication cascade.

Benefits of technology

It avoids the limitations of the number and distance of the router, realizes large-scale networked communication of multiple devices, and ensures the signal stability of each networked device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652813A_ABST
    Figure CN119652813A_ABST
Patent Text Reader

Abstract

According to the equipment communication cascading method and device, the storage medium and the computer equipment provided by the invention, during equipment communication cascading, the equipment cluster of the to-be-networked area is firstly obtained, and the AP + Station dual mode of each piece of equipment is configured in the equipment cluster, so that the networked equipment is used as a relay node for networking of other equipment through the mode, and the equipment communication cascading efficiency is improved. And the limitation of the device connection number and the device connection distance of the router is avoided. For example, according to the application, networking is carried out on each device in sequence according to the networking priority, so that device communication cascade is realized; wherein for each device, network scanning is carried out by using dual modes of the device, signal intensity sorting is carried out on routers and / or networking devices in a scanning result, then the router and / or networking device with the highest signal intensity in a sorting result is used as an access end, and networking is carried out on the device based on networking data of the access end. Therefore, the signal stability of each networking device can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless signal communication technology, and in particular to a device communication cascade method, device, storage medium and computer equipment. Background Art

[0002] In today's digital age, wireless signal communication has become an important part of modern life, and routers have become an important channel for devices to connect to the Internet and obtain information. From smart home devices to mobile terminal devices, various electronic devices rely on the wireless network provided by routers to achieve data transmission and Internet access.

[0003] However, each router has its own specific maximum number of client connections. Once this limit is exceeded, new devices cannot access the network or the network performance of connected devices will be degraded. In addition, the signal strength of the router tends to weaken as the distance increases, resulting in a decrease in connection speed or unstable connection. Therefore, the current device networking method is limited by the number of devices connected to the router and the distance of device connection, and cannot meet the networking communication needs of multiple devices over a large range. Summary of the invention

[0004] The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defect that the device networking method in the prior art is limited by the number of device connections and the device connection distance of the router, and cannot meet the large-scale networking communication needs of multiple devices.

[0005] The present application provides a device communication cascade method, the method comprising:

[0006] Obtain a device cluster in the area to be networked, and configure the AP mode and the Station mode of each device in the device cluster; the device cluster is composed of a router and multiple devices; the AP mode is used to generate networking data for the corresponding device;

[0007] Determine the networking priority of each device based on the area to be networked and the router, and connect each device to the network in turn according to the networking priority;

[0008] For each device, perform a network scan through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result;

[0009] The router and / or networking device with the highest signal strength in the sorting results is used as the access end of the device, and the device is connected to the network based on the networking data of the access end to form a networked device.

[0010] Optionally, configuring the AP mode and the Station mode of each device in the device cluster includes:

[0011] Access the management interface of the device cluster, and start the AP mode and Station mode of each device in the management interface;

[0012] Generate corresponding networking data for each device based on the AP mode of each device, and restart each device to make each networking data effective.

[0013] Optionally, the determining the networking priority of each device based on the area to be networked and the router includes:

[0014] Determine the location coordinates of the router in the area to be networked, and the device distance between each device and the location coordinates;

[0015] The distances of various devices are threshold matched in a preset distance mapping table, and the networking priority of each device is determined according to the matching result; wherein the distance mapping table records the mapping relationship between multiple distance thresholds and priorities.

[0016] Optionally, the performing network search through the Station mode of the device includes:

[0017] Triggering the Station mode of the device so that the device initiates a probe request and receives a response packet returned by a router and / or networked device within the signal coverage of the device in response to the probe request;

[0018] The received response packets are parsed to obtain the network data corresponding to each response packet; the network data includes the network name, connection password and signal strength.

[0019] Optionally, the signal strength sorting of the routers and / or networked devices in the scan results to obtain the sorting result includes:

[0020] Determine the network data of each router and / or network-connected device in the scan results, and extract the signal strength of each network data;

[0021] The signal strengths are sorted in descending order to obtain a sorting result.

[0022] Optionally, the networking the device based on the networking data of the access terminal to form a networked device includes:

[0023] Acquire the networking data of the access terminal, and extract the network name and connection password from the networking data;

[0024] The network name and the connection password are automatically input into the device to establish a network connection between the device and the access terminal to form a networked device.

[0025] Optionally, the method further comprises:

[0026] The network signal strength of each device in the area to be connected to the network is detected regularly, and when it is detected that the network signal of a device is lower than a preset threshold, the network scan and network connection operation are re-performed through the Station mode of the device.

[0027] The present application also provides a device communication cascade device, comprising:

[0028] A mode configuration module, used to obtain a device cluster in the area to be networked, and configure the AP mode and Station mode of each device in the device cluster; the device cluster is composed of a router and multiple devices; the AP mode is used to generate networking data for the corresponding device;

[0029] A priority determination module, used to determine the networking priority of each device based on the area to be networked and the router, and connect each device to the network in turn according to each networking priority;

[0030] A network scanning module is used to perform a network scan for each device through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result;

[0031] The device networking module is used to use the router and / or networking device with the highest signal strength in the sorting results as the access end of the device, and connect the device to the network based on the networking data of the access end to form a networked device.

[0032] The present application also provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device communication cascading method described in any of the above embodiments.

[0033] The present application also provides a computer device, comprising: one or more processors, and a memory;

[0034] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the device communication cascading method described in any one of the above embodiments are executed.

[0035] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0036] The device communication cascade method, device, storage medium and computer device provided by the present application can obtain a device cluster in the area to be connected when performing device communication cascade. The device cluster is composed of a router and multiple devices. At this time, the AP mode and Station mode of each device can be configured in the device cluster, so that the two modes can be used to connect the connected devices as relay nodes between other non-connected devices and the router, thereby avoiding the restrictions on the number of devices connected to the router and the distance of device connection. For example, the present application can determine the networking priority of each device based on the area to be connected and the router, and connect each device in turn according to each networking priority, so as to achieve communication cascade of each device; in the process of networking, for each device, the network can be scanned through the Station mode of the device, and the signal strength of the routers and / or networked devices in the scanning results can be sorted to obtain the sorting result, and then the router and / or networked device with the highest signal strength in the sorting result is used as the access end of the device, and the device is connected to the network based on the networking data of the access end to form a networked device, so as to ensure the signal stability of each networked device. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A schematic diagram of a flow chart of a device communication cascade method provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of the structure of a device communication cascade result provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of a device communication cascade device provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] Each router has its own specific maximum number of client connections. Once this limit is exceeded, new devices cannot access the network or the network performance of connected devices will be degraded. In addition, the signal strength of the router tends to weaken as the distance increases, resulting in a decrease in connection speed or unstable connection. Therefore, the current device networking method is limited by the number of devices connected to the router and the distance of device connection, and cannot meet the networking communication needs of multiple devices on a large scale.

[0044] Based on this, this application proposes the following technical solutions, see below for details:

[0045] In one embodiment, Figure 1 As shown, Figure 1 A schematic diagram of a flow chart of a device communication cascade method provided in an embodiment of the present application; the present application provides a device communication cascade method, which specifically includes the following:

[0046] S110: Obtain a device cluster in the area to be connected to the network, and configure the AP mode and the Station mode of each device in the device cluster; the device cluster is composed of a router and multiple devices; the AP mode is used to generate the networking data of the corresponding device.

[0047] In this step, when it is necessary to perform device communication cascading on the device cluster in the area to be connected, the computer device can first obtain the device cluster in the area to be connected, which is composed of a router and multiple devices. At this time, the computer device can configure the AP mode and Station mode of each device in the device cluster, so that each device can use the Station mode to connect to the router, and can also generate networking data through the AP mode, serving as a relay node for networking other distant devices.

[0048] Among them, AP mode refers to wireless access point mode, which is mainly used to create a wireless network so that surrounding devices can access the Internet or local area network through it; in AP mode, the device can act as a wireless access point to provide network connection services for other devices. Station mode refers to wireless terminal mode, which is mainly used to allow the device to communicate with the router or access point as a network terminal to obtain network access rights; in Station mode, the device can act as a client to scan and connect to an existing wireless network nearby, that is, the network provided by AP mode.

[0049] It is understandable that in order to further expand the coverage and signal strength of the router network, computer devices can enable AP mode in the device, allowing these devices to generate their own network signals and their corresponding networking data as relay nodes, so that in the area to be networked, devices that are far away or have weak signals can also access the network through these relay nodes. In short, each AP mode device will broadcast its network signal, allowing other devices that are farther away to connect to it through Station mode, and then transmit data back to the router through it, thus forming a multi-level network cascade structure, realizing the direct networking of each device with the router, and can also optimize the network coverage and communication quality through the setting of relay nodes.

[0050] S120: Determine the networking priority of each device based on the area to be networked and the router, and connect the devices to the network in turn according to the networking priority.

[0051] In this step, after configuring the dual mode for each device through step S110, the computer device can also determine the networking priority of each device based on the area to be connected to the network and the router, and connect each device to the network in turn according to the networking priority, so as to avoid disorder in the networking process, resulting in failure of some devices to connect to the network or unstable networking signals.

[0052] Specifically, computer equipment can intelligently determine the networking priority of each device based on the layout of the area to be connected, the location of the router, the distance of each device, signal strength and other factors; by reasonably setting the networking priority of each device, computer equipment can gradually allow devices to access the network in an orderly and phased manner. For example, computer equipment can give priority to connecting devices with closer distances and stronger signals to the network. These devices can be used as initial nodes for stable connection and establish a reliable basic network; then other devices are connected in turn according to signal strength and network dependency, and gradually expanded to the periphery to avoid problems such as signal interference and connection failure caused by simultaneous networking, thereby improving the efficiency and stability of the overall networking.

[0053] It is understandable that the present application can avoid signal conflicts when multiple devices request connection at the same time or degradation of connection quality due to interference through hierarchical priority access. In the present application, the computer device can first connect to the device with the highest networking priority, and then process the networking requests of subsequent devices in sequence according to the preset priority list; for long-distance devices that need to rely on relay nodes, the computer device can gradually connect the long-distance devices to the network through the relay nodes after the device serving as the relay node is stably connected to the router, thereby ensuring the reliability of the device connection path and the stability of the signal.

[0054] S130: For each device, perform a network scan through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result.

[0055] In this step, when the computer device connects various devices to the network, for each device, the computer device can perform a network scan through the Station mode of the device, and sort the signal strength of the routers and / or networked devices in the scan results to obtain the sorting results, and then connect the devices to the network based on the sorting results to ensure the stability of the network signal.

[0056] Among them, the networked device refers to a device that has been connected to the router and has turned on the AP mode, so it can act as a relay node to connect other devices to the router.

[0057] Specifically, for each device to be connected to the network, the computer device can trigger the network scanning process through the Station mode of the device. In this mode, the device will automatically scan the surrounding wireless network signals and detect nearby routers and other networked devices; the scanning results can include detailed information of each detected wireless network, such as SSID (network name), signal strength (such as RSSI value), network frequency band (such as 2.4GHz or 5GHz), encryption method and other information. After obtaining the scanning results, the computer device can use the signal strength in the scanning results to sort all available wireless networks from high to low according to signal strength, and then can preferentially connect to the network with the strongest signal according to the sorting results, ensuring that the device chooses to connect to the network node with the most stable signal and the best quality, thereby improving the overall quality of the device communication cascade.

[0058] S140: Using the router and / or networking device with the highest signal strength in the sorting results as the access end of the device, and connecting the device to the network based on the networking data of the access end to form a networking device.

[0059] In this step, after obtaining the sorting results through step S130, the computer device can use the router and / or networking device with the highest signal strength in the sorting results as the access end of the device, and connect the device to the network based on the networking data of the access end to form a networked device, thereby ensuring the signal stability of each networked device.

[0060] Specifically, the computer device can lock the network device with the highest signal strength in the sorting results, such as a router or a device that has been connected to the router, and then use the network device as the access end of the device to be connected to the network and try to connect to the network. After the connection is successful, the access end serves as the data transmission path of the connected device and can provide it with network access rights. Based on this, when the device of the present application is connected to the network, it can choose the path with the strongest signal and the best connection quality to join the network, forming a stable networked device.

[0061] In the above embodiment, when performing device communication cascading, a device cluster of the area to be networked can be obtained. The device cluster is composed of a router and multiple devices. At this time, the AP mode and Station mode of each device can be configured in the device cluster, so that the two modes can be used to connect the connected devices as relay nodes between other non-networked devices and the router, thereby avoiding the limitations of the number of devices connected to the router and the distance of device connection. For example, the present application can determine the networking priority of each device based on the area to be networked and the router, and connect each device in turn according to each networking priority, so as to achieve communication cascading of each device; in the networking process, for each device, the network can be scanned through the Station mode of the device, and the signal strength of the routers and / or networked devices in the scanning results can be sorted to obtain the sorting results, and then the router and / or networked device with the highest signal strength in the sorting results is used as the access end of the device, and the device is connected to the network based on the networking data of the access end to form a networked device, so as to ensure the signal stability of each networked device.

[0062] In one embodiment, the process of configuring the AP mode and the Station mode of each device in the device cluster in step S110 may include:

[0063] S111: Access the management interface of the device cluster, and start the AP mode and the Station mode of each device in the management interface.

[0064] S112: Generate corresponding networking data for each device based on the AP mode of each device, and restart each device to make each networking data effective.

[0065] In this embodiment, when the computer device configures the mode of each device, it can access the management interface of the device cluster, and then start the AP mode and Station mode of each device in the management interface. Then, the computer device can generate corresponding networking data for each device based on the AP mode of each device, and restart each device to make the networking data take effect.

[0066] Specifically, the computer device can be connected to each device in the device cluster by wire or wirelessly, so that the automatic configuration operation of the device can be implemented on the computer device. In detail, the computer device can enter the setting page of each device, and find and select AP mode and Station mode in the relevant options of the setting page, such as network settings and wireless settings, to enable the dual-mode configuration of each device. In addition, when the computer device detects that each device has turned on the AP mode, it can also automatically generate corresponding networking data for each device, such as network name, connection password, signal strength, etc.

[0067] It should be noted that when the device turns on AP mode for the first time, the computer device can generate and store networking data in the device according to preset rules; when the device turns on AP mode again, the device can directly obtain the networking data generated for the first time and use it.

[0068] It can be understood that through the centralized configuration of computer devices, the present application can reduce the complexity of manual operations and the possibility of configuration errors, thereby ensuring that the device cluster can operate in the best network state and form a stable and reliable networking environment in the area to be connected.

[0069] In one embodiment, the process of determining the networking priority of each device based on the area to be networked and the router in step S120 may include:

[0070] S121: Determine the location coordinates of the router in the area to be connected to the network, and the device distance between each device and the location coordinates.

[0071] S122: Perform threshold matching on the distances of various devices in a preset distance mapping table, and determine the networking priority of each device according to the matching result.

[0072] In this embodiment, when determining the networking priority, the computer device can first determine the location coordinates of the router in the area to be networked, and the device distance between each device and the location coordinates, and then perform threshold matching on each device distance in a preset distance mapping table, and determine the networking priority of each device based on the matching results.

[0073] Among them, the distance mapping table refers to a data table or data structure used to store the mapping relationship between device thresholds and networking priorities. It provides a basis for the allocation of device networking priorities by defining the association between multiple distance thresholds, such as 5 meters, 10 meters or 15 meters and corresponding priority levels.

[0074] Specifically, the storage content in the distance mapping table can be stored in the form of key-value pairs; wherein the key represents the distance threshold, such as 0-5 meters, 5-10 meters, 10-15 meters, etc., and the value represents the networking priority corresponding to the device within the distance threshold, such as the networking priority corresponding to the distance priority of 0-5 meters is 1, the networking priority corresponding to the distance priority of 5-10 meters is 2, the networking priority corresponding to the distance priority of 10-15 meters is 3, etc.

[0075] In one embodiment, the process of performing network search through the station mode of the device in step S130 may include:

[0076] S131: Triggering the Station mode of the device so that the device initiates a detection request and receives a response packet returned by a router and / or networked device within the signal coverage range of the device in response to the detection request.

[0077] S132: Analyze the received response packets to obtain the network data corresponding to each response packet.

[0078] In this embodiment, when the device needs to be connected to the Internet, the computer device can trigger the Station mode of the device to enable the device to initiate a detection request and receive the response packet returned by the router and / or networked device within the signal coverage of the device after responding to the detection request; then the computer device can perform data analysis on each response packet received by the device, so as to obtain the network data corresponding to each response packet. Since the network data includes the network name, connection password and signal strength, the computer device can determine the wireless network to be connected by the device based on the parsed network data, thereby improving the quality of the device's network connection.

[0079] Specifically, after the computer device triggers the Station mode of the device, in the Station mode, the device can act as a client in the wireless network, start the wireless network scanning function, and start searching and recording all available wireless network signals within its signal coverage. In this process, the device can actively send a detection request to the surrounding environment, and the detection request will be received and responded to by all routers and networked devices within its signal coverage, thereby generating and returning a response packet; each response packet here carries detailed network information, including the network name, encryption method, connection password, signal strength, network frequency band, current device load information and other data; after the device receives these response packets, the computer device will parse the data in each response packet one by one, extract the key information therein, and form networking data, so that the subsequent device networking process can accurately obtain the characteristics and connection parameters of each network device available in the current network environment, thereby improving the quality of device networking.

[0080] In one embodiment, the process of performing signal strength sorting on the routers and / or networked devices in the scan results to obtain the sorting results in step S130 may include:

[0081] S133: Determine the networking data of each router and / or networking device in the scanning result, and extract the signal strength in each networking data.

[0082] S134: Sort the signal strengths in descending order to obtain a sorting result.

[0083] In this embodiment, after obtaining the scanning results of the device, the computer device can determine the networking data of each router and / or networking device in the scanning results, and extract the signal strength in each networking data, and then sort the signal strengths from high to low to obtain the sorting results, and then select the network access terminal with the strongest signal for the device based on the sorting results.

[0084] Specifically, the signal strength in each network data is usually expressed in percentage, dBm (decibel milliwatt) or similar units, which is mainly used to measure the quality of the signal. In this application, the computer device can use an appropriate sorting algorithm, such as a descending sorting algorithm, to sort the signal strengths, so that the first in the sorting result is the network device with the strongest signal. In addition, the sorting algorithm here can also use bubble sort, selection sort, insertion sort, etc., which are not limited here.

[0085] In one embodiment, the process of connecting the device to a network based on the networking data of the access terminal to form a networked device in step S140 may include:

[0086] S141: Acquire the networking data of the access end, and extract the network name and connection password from the networking data.

[0087] S142: Automatically input the network name and connection password into the device to connect the device to the access terminal to form a networked device.

[0088] In this embodiment, after determining the access end of the device, the computer device can obtain the networking data of the access end, and then extract the network name and connection password in the networking data, so that the network name and connection password can be input into the device to connect the device to the access end to form a networked device.

[0089] It is understandable that after the computer device inputs the network name and connection password into the device, the device will initiate a connection request to the access end based on this, so that the access end can perform security verification on the network name and connection password carried in the connection request, and establish a secure connection with it after the verification is passed. At this time, the device has officially completed the communication cascade, becoming a part of the network and forming a networked device, so it can interact with the access end and other devices. In this process, the computer device can improve the networking efficiency through automated extraction and automated input, thereby ensuring the security and stability of the network connection, so that the device can quickly and reliably access the corresponding network.

[0090] In one embodiment, the method may further include:

[0091] S150: Regularly detect the strength of the network signal of each device in the networked area, and when it is detected that the network signal of a device is lower than a preset threshold, re-scan the network and perform network operations through the Station mode of the device.

[0092] In this embodiment, after the device cluster in the area to be connected to the network realizes communication cascade, the computer device can also periodically detect the strength of the network signal of each device in the area to be connected to the network, and when it is detected that the network signal of a device is lower than a preset threshold, the network scan and networking operation are re-performed through the Station mode of the device to maintain the stability of the network signal.

[0093] It is understandable that during the network connection process, the computer device can periodically detect the signal strength and network status of each device to ensure that the connection quality of the device is always in the best state. If the signal fluctuation or quality degradation of the access point is detected, the computer device can rescan in real time and select a more stable access point for switching based on the latest ranking result of the signal strength in the scan results to avoid data transmission interruption or connection loss caused by unstable signal.

[0094] In order to better explain the text matching method of this application, the following will be Figure 2 To further illustrate, schematically, Figure 2 As shown, Figure 2 A structural diagram of a device communication cascade result provided in an embodiment of the present application.

[0095] Figure 2In the example, taking devices 1, 4, and 7 as examples, the priorities of devices 1, 4, and 7 decrease step by step. Therefore, when communicating and cascading devices 1, 4, and 7, device 1 can automatically search / enter the network name and connection password of the WIFI router through the Station mode to connect to the WIFI router, and start the AP mode at the same time, so that device 4 can automatically search / enter the network name and connection password of device 1 through the Station mode to connect to device 1, and start the AP mode; similarly, device 7 can automatically search / enter the network name and connection password of device 4 through the Station mode to connect to device 4, thereby realizing the communication cascade of devices 1, 4, and 7. In addition, the communication cascade process of devices 2, 5, 8 and devices 3, 6, and 9 is consistent with that of devices 1, 4, and 7, and will not be repeated here.

[0096] The device communication cascade apparatus provided in an embodiment of the present application is described below. The device communication cascade apparatus described below and the device communication cascade method described above can be referenced to each other.

[0097] In one embodiment, Figure 3 As shown, Figure 3 A schematic diagram of the structure of a device communication cascade device provided in an embodiment of the present application; the present application also provides a device communication cascade device, including a mode configuration module 210, a priority determination module 220, a network scanning module 230 and a device networking module 240, specifically including the following:

[0098] The mode configuration module 210 is used to obtain a device cluster in the area to be networked and configure the AP mode and Station mode of each device in the device cluster; the device cluster is composed of a router and multiple devices; the AP mode is used to generate networking data for the corresponding device.

[0099] The priority determination module 220 is used to determine the networking priority of each device based on the area to be connected to the network and the router, and connect each device to the network in turn according to each networking priority.

[0100] The network scanning module 230 is used to perform a network scan on each device through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result.

[0101] The device networking module 240 is used to use the router and / or networking device with the highest signal strength in the sorting results as the access end of the device, and connect the device to the network based on the networking data of the access end to form a networked device.

[0102] In the above embodiment, when performing device communication cascading, a device cluster of the area to be networked can be obtained. The device cluster is composed of a router and multiple devices. At this time, the AP mode and Station mode of each device can be configured in the device cluster, so that the two modes can be used to connect the connected devices as relay nodes between other non-networked devices and the router, thereby avoiding the limitations of the number of devices connected to the router and the distance of device connection. For example, the present application can determine the networking priority of each device based on the area to be networked and the router, and connect each device in turn according to each networking priority, so as to achieve communication cascading of each device; in the networking process, for each device, the network can be scanned through the Station mode of the device, and the signal strength of the routers and / or networked devices in the scanning results can be sorted to obtain the sorting results, and then the router and / or networked device with the highest signal strength in the sorting results is used as the access end of the device, and the device is connected to the network based on the networking data of the access end to form a networked device, so as to ensure the signal stability of each networked device.

[0103] In one embodiment, the mode configuration module 210 may include:

[0104] The mode start submodule is used to access the management interface of the device cluster and start the AP mode and Station mode of each device in the management interface.

[0105] The data generation submodule is used to generate corresponding networking data for each device based on the AP mode of each device, and restart each device to make each networking data effective.

[0106] In one embodiment, the priority determination module 220 may include:

[0107] The distance determination submodule is used to determine the location coordinates of the router in the area to be networked, and the device distance between each device and the location coordinates.

[0108] The priority matching submodule is used to perform threshold matching on the distance of each device in a preset distance mapping table, and determine the networking priority of each device according to the matching result; wherein the distance mapping table records the mapping relationship between multiple distance thresholds and priorities.

[0109] In one embodiment, the network scanning module 230 may include:

[0110] The network detection submodule is used to trigger the Station mode of the device so that the device initiates a detection request and receives a response packet returned by a router and / or networked device within the signal coverage range of the device in response to the detection request.

[0111] The data analysis submodule is used to analyze the received response packets to obtain the network data corresponding to each response packet; the network data includes the network name, connection password and signal strength.

[0112] In one embodiment, the network scanning module 230 may further include:

[0113] The signal strength extraction submodule is used to determine the networking data of each router and / or networking device in the scanning result, and extract the signal strength in each networking data.

[0114] The signal strength sorting submodule is used to sort the signal strengths from high to low to obtain a sorting result.

[0115] In one embodiment, the device networking module 240 may include:

[0116] The connection data extraction submodule is used to obtain the network data of the access end and extract the network name and connection password in the network data.

[0117] The network connection submodule is used to automatically input the network name and connection password into the device so as to connect the device to the access terminal to form a networked device.

[0118] In one embodiment, the method may further include:

[0119] The timing detection module is used to periodically detect the strength of the network signal of each device in the network area, and when it is detected that the network signal of a device is lower than a preset threshold, the network scan and network operation are re-performed through the Station mode of the device.

[0120] In one embodiment, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device communication cascade method described in any of the above embodiments.

[0121] In one embodiment, the present application also provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device communication cascade method as described in any one of the above embodiments.

[0122] Indicatively, Figure 4 As shown, Figure 4 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 4The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301, for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the device communication cascade method of any of the above embodiments.

[0123] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.

[0124] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

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

[0126] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0127] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A device communication cascade method, characterized in that: The method comprises: Obtain a device cluster in the area to be networked, and configure the AP mode and the Station mode of each device in the device cluster; the device cluster is composed of a router and multiple devices; the AP mode is used to generate networking data for the corresponding device; Determine the networking priority of each device based on the area to be networked and the router, and connect each device to the network in turn according to the networking priority; For each device, perform a network scan through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result; The router and / or networking device with the highest signal strength in the sorting results is used as the access end of the device, and the device is connected to the network based on the networking data of the access end to form a networked device.

2. The device communication cascade method according to claim 1, characterized in that: The configuring the AP mode and the Station mode of each device in the device cluster includes: Access the management interface of the device cluster, and start the AP mode and Station mode of each device in the management interface; Generate corresponding networking data for each device based on the AP mode of each device, and restart each device to make each networking data effective.

3. The device communication cascade method according to claim 1, characterized in that: The determining the networking priority of each device based on the area to be networked and the router includes: Determine the location coordinates of the router in the area to be networked, and the device distance between each device and the location coordinates; The distances of various devices are threshold matched in a preset distance mapping table, and the networking priority of each device is determined according to the matching result; wherein the distance mapping table records the mapping relationship between multiple distance thresholds and priorities.

4. The device communication cascade method according to claim 1, characterized in that: The network search is performed through the Station mode of the device, including: Triggering the Station mode of the device so that the device initiates a probe request and receives a response packet returned by a router and / or networked device within the signal coverage of the device in response to the probe request; The received response packets are parsed to obtain the network data corresponding to each response packet; the network data includes the network name, connection password and signal strength.

5. The device communication cascade method according to claim 1, characterized in that: The signal strength sorting of the routers and / or networked devices in the scan results to obtain the sorting results includes: Determine the network data of each router and / or network-connected device in the scan results, and extract the signal strength of each network data; The signal strengths are sorted in descending order to obtain a sorting result.

6. The device communication cascade method according to claim 1, characterized in that: The step of networking the device based on the networking data of the access terminal to form a networked device includes: Acquire the networking data of the access terminal, and extract the network name and connection password from the networking data; The network name and the connection password are automatically input into the device to establish a network connection between the device and the access terminal to form a networked device.

7. The device communication cascade method according to claim 1, characterized in that: The method further comprises: The network signal strength of each device in the area to be connected to the network is detected regularly, and when it is detected that the network signal of a device is lower than a preset threshold, the network scan and network connection operation are re-performed through the Station mode of the device.

8. A device communication cascade device, characterized in that: include: A mode configuration module, used to obtain a device cluster in the area to be networked, and configure the AP mode and Station mode of each device in the device cluster; The device cluster is composed of a router and multiple devices; the AP mode is used to generate networking data of corresponding devices; A priority determination module, used to determine the networking priority of each device based on the area to be networked and the router, and connect each device to the network in turn according to each networking priority; A network scanning module is used to perform a network scan for each device through the Station mode of the device, and sort the signal strengths of the routers and / or networked devices in the scan results to obtain a sorting result; The device networking module is used to use the router and / or networking device with the highest signal strength in the sorting results as the access end of the device, and connect the device to the network based on the networking data of the access end to form a networked device.

9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device communication cascade method as described in any one of claims 1 to 7.

10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the device communication cascade method according to any one of claims 1 to 7 are executed.