Device networking method and device, terminal device and readable storage medium

By reading and updating cascade networking connection information from the slave device of the MESH routing system, selecting and establishing stable networking connections solves the problem of unstable routing conditions in MESH networking technology, and reduces the impact of network fluctuations on the group. The influence of network results improves the stability of the network.

CN113950120BActive Publication Date: 2024-09-06CHENGDU KANGTE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111199735.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-14
Publication Date
2024-09-06
Estimated Expiration
2041-10-14

AI Technical Summary

Technical Problem

The existing MESH networking technology has high randomness in signal strength during networking, resulting in unstable network routing conditions and being easily affected by network fluctuations.

Method used

By reading the cascade network connection information from the slave device of the MESH routing system, select the corresponding cascade device to be connected, and establish the network connection within the preset time. If it fails, select the cascade device in reverse order until it succeeds. Establish a connection and update the return connection information to ensure routing stability.

Benefits of technology

It realizes wireless networking with strong routing status stability, reduces the impact of network fluctuations on networking results, and improves the stability of the reorganization of the MESH routing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113950120B
    Figure CN113950120B
Patent Text Reader

Abstract

The present application provides a device networking method and apparatus, a terminal device and a readable storage medium, and relates to the field of wireless networking technology. For each slave device in a MESH routing system, the present application will select the terminal cascade device as the current cascade device to be connected by the slave device based on the cascade routing relationship from the master device in the MESH routing system to the corresponding terminal cascade device recorded in the cascade networking connection information stored by the slave device, and then establish a networking connection with the cascade device to be connected within a specific time period, so that each slave device is networked according to its own device routing relationship, and realize wireless networking operations with strong routing stability, and reduce the impact of network fluctuations on wireless networking results. At the same time, when the slave device cannot connect to the corresponding cascade device to be connected, the present application will promptly replace other valid cascade devices with the slave device for networking, so as to ensure that the routing system can be successfully networked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless networking technology, and in particular to a device networking method and apparatus, a terminal device, and a readable storage medium. Background Art

[0002] With the continuous development of network technology, wireless networking technology has been applied to various industries because it can build wireless local area networks. People have also put forward more requirements for wireless networking technology accordingly. Among them, MESH networking technology is an important technical branch of wireless networking technology. At present, the existing MESH networking technology is directly based on the distribution of signal strength in the communication environment each time it is networked, resulting in a large randomness in the networking results, and the overall network routing status is not stable and is greatly affected by network fluctuations. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a device networking method and apparatus, a terminal device and a readable storage medium, which can realize wireless networking operations with strong routing stability and reduce the impact of network fluctuations on wireless networking results.

[0004] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0005] In a first aspect, the present application provides a device networking method, which is applied to each slave device included in a MESH routing system, wherein the MESH routing system also includes a master device, and the method includes:

[0006] Reading the cascade networking connection information stored in the slave device, wherein the cascade networking connection information records a cascade routing relationship from the master device to a corresponding terminal cascade device;

[0007] Selecting the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device;

[0008] Establish a networking connection with the cascaded device to be connected within a time period corresponding to the preset duration.

[0009] In an optional implementation manner, the cascade networking connection information further records the cascade networking level of the corresponding terminal cascade device relative to the master device, and the method further includes:

[0010] If a networking connection cannot be established with the cascade device to be connected within the time period corresponding to the preset time length, and the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty, remove the cascade device to be connected in the cascade routing relationship to obtain a corresponding first cascade relationship;

[0011] Each cascade device is selected in reverse order according to the device cascading order of the first cascade relationship, and a network connection with the selected single cascade device is established in turn within a time period corresponding to a preset time length until a network connection is successfully established with a certain cascade device.

[0012] In an optional embodiment, the method further comprises:

[0013] Receiving return connection information from an upper cascade device to which the slave device is currently connected;

[0014] The received return connection information is used to replace the content of the cascade networking connection information stored in the slave device.

[0015] In an optional embodiment, the method further comprises:

[0016] Generate backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records a second cascade relationship from the master device to the slave device, and a cascade networking level of the slave device relative to the master device;

[0017] The return connection information of the slave device is sent to the next cascade device to which the slave device is currently connected and stored as the cascade networking connection information of the next cascade device.

[0018] In a second aspect, the present application provides a device networking apparatus, which is applied to each slave device included in a MESH routing system, wherein the MESH routing system also includes a master device, and the apparatus further includes:

[0019] A cascade information reading module, used to read the cascade networking connection information stored in the slave device, wherein the cascade networking connection information records the cascade routing relationship from the master device to the corresponding terminal cascade device;

[0020] A connection device selection module, used for selecting the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device;

[0021] The network connection establishing module is used to establish a network connection with the cascade device to be connected within a time period corresponding to a preset time length.

[0022] In an optional implementation manner, the cascade networking connection information further records the cascade networking level of the corresponding terminal cascade device relative to the master device, and the apparatus further includes:

[0023] a cascade relationship generating module, configured to, if a networking connection cannot be established with the cascade device to be connected within a time period corresponding to a preset time length, and if the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty, remove the cascade device to be connected in the cascade routing relationship to obtain a corresponding first cascade relationship;

[0024] The network connection establishment module is also used to select each cascade device in reverse order according to the device cascading order of the first cascade relationship, and to establish a network connection with the selected single cascade device in a time period corresponding to a preset time length until a network connection is successfully established with a certain cascade device.

[0025] In an optional embodiment, the device further comprises:

[0026] A backhaul connection receiving module, used for receiving backhaul connection information from an upper cascade device to which the slave device is currently connected;

[0027] The cascade information replacement module is used to use the received return connection information to replace the content of the cascade networking connection information stored in the slave device.

[0028] In an optional embodiment, the device further comprises:

[0029] a backhaul connection generation module, configured to generate backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records a second cascade relationship from the master device to the slave device, and a cascade networking level of the slave device relative to the master device;

[0030] The backhaul connection sending module is used to send the backhaul connection information of the slave device to the next cascade device currently connected to the slave device for storage as the cascade networking connection information of the next cascade device.

[0031] In a third aspect, the present application provides a terminal device for acting as a slave device other than a master device included in a MESH routing system, the terminal device comprising a processor and a memory, the memory storing a computer program executable by the processor, and the processor executing the computer program to implement the device networking method described in any one of the aforementioned embodiments.

[0032] In a fourth aspect, the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the device networking method described in any one of the aforementioned embodiments is implemented.

[0033] In this case, the beneficial effects of the embodiments of the present application include the following:

[0034] For each slave device in the MESH routing system, the present application will read the cascade networking connection information stored in the slave device, and based on the cascade routing relationship from the master device in the MESH routing system to the corresponding terminal cascade device recorded in the cascade networking connection information, select the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device, and then establish a networking connection with the corresponding cascade device to be connected within a time period corresponding to a preset duration, thereby ensuring that each slave device in the same MESH routing system can be networked according to a specific device routing relationship, achieving wireless networking operations with strong routing stability, and reducing the impact of network fluctuations on wireless networking results.

[0035] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A schematic diagram of the composition of a terminal device provided in an embodiment of the present application;

[0038] Figure 2 One of the flow diagrams of the device networking method provided in the embodiment of the present application;

[0039] Figure 3 The second flowchart of the device networking method provided in the embodiment of the present application;

[0040] Figure 4 The third flowchart of the device networking method provided in the embodiment of the present application;

[0041] Figure 5 A fourth flowchart of the device networking method provided in an embodiment of the present application;

[0042] Figure 6 One of the schematic diagrams of the composition of the device networking apparatus provided in the embodiment of the present application;

[0043] Figure 7 The second schematic diagram of the composition of the device networking apparatus provided in the embodiment of the present application;

[0044] Figure 8The third schematic diagram of the composition of the device networking device provided in the embodiment of the present application;

[0045] Fig. 9 This is the fourth schematic diagram of the composition of the device networking apparatus provided in the embodiment of the present application.

[0046] Icons: 10-terminal device; 11-memory; 12-processor; 13-communication unit; 100-device networking device; 110-cascade information reading module; 120-connection device selection module; 130-network connection establishment module; 140-cascade relationship generation module; 150-return connection receiving module; 160-cascade information replacement module; 170-return connection generation module; 180-return connection sending module. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0048] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0050] In the description of the present application, it is to be understood that the relational terms such as the term "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "comprising one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. For those of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood by specific circumstances.

[0051] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0052] Please refer to Figure 1 , Figure 1 It is a schematic diagram of the composition of the terminal device 10 provided in the embodiment of the present application. In the embodiment of the present application, the terminal device 10 can be used to act as a slave device other than the master device included in the MESH routing system, wherein the number of slave devices included in the MESH routing system is at least two, and the master device is used to represent the central control center in the MESH routing system, and each slave device in the MESH routing system needs to be directly connected to the master device or indirectly connected to the master device through other slave devices, so as to obtain the wireless networking result corresponding to the MESH routing system. Among them, the master device included in the MESH routing system can also be acted by a terminal device 10.

[0053] In this embodiment, when initializing the networking arrangement of the MESH routing system, it is necessary to determine the initial cascade relationship between any two devices that need to be directly connected in the MESH routing system (including a master device and a slave device, or a slave device and another slave device), and then establish networking connections between the corresponding two devices based on all the determined initial cascade relationships to complete the initial networking of the MESH routing system. Among them, the initial cascade relationship can be configured by the administrator of the MESH routing system according to their own needs for any two devices that need to be directly connected in the master device and all slave devices included in the MESH routing system based on the selection of the master device in the MESH routing system. The initial cascade relationship can also be directly set by the manufacturer during the production process of the MESH routing system, with the manufacturer directly configuring any two devices from these devices.

[0054] The initial cascade relationship is used to indicate the upper and lower cascade roles of the two corresponding devices in the initial arrangement, that is, whether the two corresponding devices are the upper cascade device or the lower cascade device relative to the other device in the initial arrangement. For the initial cascade relationship between the master device and a slave device, the master device needs to be set as the upper cascade device of the corresponding slave device in the initial cascade relationship.

[0055] In one implementation of this embodiment, the master device and each slave device included in the MESH routing system may be provided with a networking button (for example, a physical button, a virtual button on a control interface). When the manager or manufacturer configures the initial cascade relationship corresponding to two devices that need to be directly connected, the networking button of the device that needs to be the upper cascade device among the two devices can be pressed first, and then the networking button of the device that needs to be the lower cascade device among the two devices can be pressed, thereby completing the configuration operation of the initial cascade relationship between the two devices.

[0056] In addition, when the MESH routing system successfully completes a wireless networking operation, each device in the MESH routing system (including the master device and any slave device) will generate corresponding backhaul connection information based on the cascade connection status from the master device to itself and its own cascade networking level relative to the master device, and send the generated backhaul connection information to the next cascade device of the device, so that the next cascade device will store the received backhaul connection information as its own cascade networking connection information.

[0057] Among them, for each slave device in the MESH routing system, the cascade networking connection information stored by the slave device can be used to indicate the cascade routing status from the master device to its own currently configured upper-level cascade device, as well as the cascade networking level of its own currently configured upper-level cascade device relative to the master device. At this time, the backhaul connection information of the slave device can be generated by the slave device adding its own relevant information on the basis of its own stored cascade networking connection information, wherein the relevant information includes the identity information of the corresponding slave device and its cascade networking level relative to the master device.

[0058] Therefore, when the aforementioned MESH routing system needs to be re-networked due to physical factors such as power outages or signal shielding, each slave device in the MESH routing system will perform the relevant operations required to establish a networking connection to the currently configured upper cascade device based on the cascade networking connection information stored in itself, in an attempt to establish a networking connection between itself and the currently configured upper cascade device, thereby ensuring that the routing status of the wireless networking result finally constructed has strong stability and reducing the impact of network fluctuations on the wireless networking result.

[0059] In this process, the cascade networking level is used to indicate the number of cascade links that data needs to go through when it is transmitted from the corresponding device to the master device. For a master device, if the number of cascade links that its corresponding data needs to go through when it is transmitted from the corresponding device to the master device is zero, then the cascade networking level corresponding to the master device is empty, and the cascade connection status recorded in the backhaul connection information corresponding to the master device will only record the identity information of the master device.

[0060] In one implementation of this embodiment, the identity information of the master device can be represented by the ESSID (Extended Service Set Identifier) ​​of the wireless local area network to be constructed, and the identity information of each slave device can be represented by at least two consecutive characters in the unique device identifier (Unique Device ID) of the corresponding slave device (for example, the MAC address of the corresponding slave device). At this time, the cascade connection status corresponding to the backhaul connection information of each device in the MESH routing system can be expressed by connecting the identity information of each cascaded device involved in the cascade connection status with an interval symbol to form a character string, and the interval symbol is used at the end of the formed character string to follow the cascade networking level of the device relative to the master device.

[0061] Taking the MESH routing system including the master device C, the slave device A and the slave device B as an example, if the master device C is the upper cascade device of the slave device A, and the slave device A is the upper cascade device of the slave device B, the identity information of the master device C is ESSID-C, the identity information of the slave device A is AA, and the identity information of the slave device B is BB, the cascade networking level of the master device C is empty, the cascade networking level of the slave device A is T1, and the cascade networking level of the slave device B is T1. At this time, the backhaul connection information of the master device C will be used as the cascade networking connection information of the slave device A, and can be expressed as "ESSID-C—"; the backhaul connection information of the slave device A will be used as the cascade networking connection information of the slave device B, and can be expressed as "ESSID-C—AA—T1"; the backhaul connection information of the slave device B can be expressed as "ESSID-C—AA—BB—T2".

[0062] In an embodiment of the present application, the terminal device 10 may include a memory 11, a processor 12, a communication unit 13, and a device networking device 100, wherein the device networking device 100 is used to implement a wireless networking operation with strong routing stability when the terminal device 10 is used as a slave device. The memory 11, the processor 12, and the communication unit 13 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the memory 11, the processor 12, and the communication unit 13 may be electrically connected to each other via one or more communication buses or signal lines.

[0063] In this embodiment, the memory 11 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 11 is used to store a computer program, and the processor 12 may execute the computer program accordingly after receiving an execution instruction. The memory 11 is also used to store the currently configured cascade networking connection information when the terminal device 10 is a slave device, wherein the cascade networking connection information records the cascade routing relationship from the master device to the terminal cascade device corresponding to the cascade networking connection information, and the cascade networking level of the terminal cascade device relative to the master device. Among them, for a slave device, the terminal cascade device corresponding to the cascade networking connection information stored in the slave device is substantially equivalent to the upper cascade device currently configured for the slave device. When the terminal device 10 is re-networked as a slave device, it can perform the relevant operations required to establish a networking connection to the upper cascade device (including other slave devices or the master device) of the currently configured terminal device 10 based on the cascade networking connection information stored in itself.

[0064] In this embodiment, the processor 12 may be an integrated circuit chip with signal processing capability. The processor 12 may be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., which may implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present application.

[0065] In this embodiment, the communication unit 13 is used to establish a communication connection between the terminal device 10 and other electronic devices, wherein the other electronic devices include a mobile terminal, the above-mentioned master device or other slave devices, etc.

[0066] In this embodiment, the device networking apparatus 100 includes at least one software function module that can be stored in the memory 11 or in the operating system of the terminal device 10 in the form of software or firmware. The processor 12 can be used to execute the executable modules stored in the memory 11, such as the software function modules and computer programs included in the device networking apparatus 100. When the terminal device 10 is used as a slave device of the MESH routing system, the device networking apparatus 100 can realize a wireless networking operation with strong routing stability, reduce the impact of network fluctuations on wireless networking results, and improve the stability of the reorganized network of the MESH routing system where the terminal device 10 is located.

[0067] Understandably, Figure 1 The block diagram shown is only a schematic diagram of a composition of the terminal device 10. The terminal device 10 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0068] In the present application, in order to ensure that the terminal device 10 can achieve wireless networking operations with strong routing stability when acting as a slave device of the MESH routing system, reduce the impact of network fluctuations on wireless networking results, and improve the stability of the reorganized network of the MESH routing system, the embodiment of the present application achieves the above-mentioned functions by providing a device networking method for the slave device included in the MESH routing system. The device networking method provided by the present application is explained in detail below.

[0069] Please refer to Figure 2 , Figure 2 It is one of the flow diagrams of the device networking method provided in the embodiment of the present application. In the embodiment of the present application, Figure 2 The device networking method shown may include steps S210 to S230, so that each slave device in the same MESH routing system can be networked according to a specific device routing relationship, to achieve wireless networking operations with strong routing stability, reduce the impact of network fluctuations on wireless networking results, and improve the stability of the reorganized network of the MESH routing system.

[0070] Step S210, reading the cascade networking connection information stored in the slave device, wherein the cascade networking connection information records the cascade routing relationship from the master device to the corresponding terminal cascade device.

[0071] In this embodiment, when the terminal device 10 participates in the networking process as a slave device, it needs to read the cascade networking connection information stored in itself, and extract the cascade routing relationship from the master device to the corresponding terminal cascade device from the cascade networking connection information, wherein the cascade routing relationship is used to represent the cascade path from the master device to the corresponding terminal cascade device. Taking the cascade networking connection information "ESSID-C—AA—T1" of the slave device B as an example, the cascade routing relationship corresponding to the cascade networking connection information is "ESSID-C—AA", that is, the cascade routing relationship from the master device C directly to the slave device A.

[0072] Step S220: Select the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected to the slave device.

[0073] In this embodiment, when a slave device reads the cascade routing relationship from the master device to the corresponding terminal cascade device from the cascade networking connection information stored in itself, the terminal cascade device corresponding to the cascade routing relationship can be regarded as the upper cascade device that needs to be connected and is currently configured for the slave device, and the terminal cascade device is the current cascade device to be connected of the slave device. Taking the cascade networking connection information "ESSID-C-AA-T1" of the slave device B as an example, the terminal cascade device of the cascade routing relationship corresponding to the cascade networking connection information is the slave device A, and the slave device A is the current cascade device to be connected of the slave device B (that is, the configured upper cascade device to be connected); taking the cascade networking connection information "ESSID-C-" of the slave device A as an example, the terminal cascade device of the cascade routing relationship "ESSID-C" corresponding to the cascade networking connection information is the master device C, and the master device C is the current cascade device to be connected of the slave device A.

[0074] Step S230: Establishing a networking connection with the cascaded device to be connected within a time period corresponding to the preset time length.

[0075] In this embodiment, after a certain slave device determines its current cascade device to be connected, it will take the moment of determining the cascade device to be connected as the starting time point of the network connection, and perform the network connection establishment operation with the cascade device to be connected at a specific time interval within the time period corresponding to the preset duration, thereby continuously trying to establish a network connection between itself and the connected cascade device within the time period corresponding to the preset duration, so that each slave device in the same MESH routing system can be networked according to a specific device routing relationship, and realize wireless networking operations with strong routing stability, reduce the impact of network fluctuations on wireless networking results, and improve the stability of the reorganized network of the MESH routing system. Among them, the duration corresponding to the preset time interval is less than the preset time length, and the duration corresponding to the preset time interval is a divisor of the preset time length. In one implementation of this embodiment, the preset duration is set to 3 minutes, and the preset time interval is set to 10 seconds.

[0076] Therefore, the present application can execute the above steps S210 to S230 to enable each slave device in the same MESH routing system to be networked according to a specific device routing relationship, thereby achieving wireless networking operations with strong routing stability, reducing the impact of network fluctuations on wireless networking results, and improving the stability of the reorganized network of the MESH routing system.

[0077] Optionally, see Figure 3 , Figure 3 This is the second flow chart of the device networking method provided in the embodiment of the present application. In the embodiment of the present application, Figure 3 The device networking method shown is similar to Figure 2 Compared with the device networking method shown in Figure 3 The device networking method shown may also include steps S240 to S250, which are used to enable the corresponding slave device to promptly replace the valid connectable cascade device for networking when it cannot connect to the currently configured cascade device to be connected, so as to ensure that the MESH routing system where the slave device is located can be fully networked successfully. Among them, the cascade networking connection information stored in each slave device also records the cascade networking level of the corresponding terminal cascade device relative to the master device.

[0078] Step S240, if a networking connection cannot be established with the cascade device to be connected within the time period corresponding to the preset duration, and the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty, remove the cascade device to be connected in the cascade routing relationship to obtain the corresponding first cascade relationship.

[0079] In this embodiment, if the cascade networking level of the cascade device to be connected currently corresponding to a slave device is empty in the corresponding cascade networking connection information, it can represent that the cascade device to be connected currently corresponding to the slave device is the master device. At this time, if the slave device fails to connect to the master device successfully, the connectable devices of the slave device also only include the master device, and the slave device can only continue to establish a networking connection with the master device until success.

[0080] If a slave device fails to establish a networking connection with the currently corresponding cascade device to be connected within the time period corresponding to the preset duration, and the cascade networking level of the cascade device to be connected in the corresponding cascade networking connection information is not empty, it can represent that the cascade device to be connected is actually other slave devices in the MESH routing system. At this time, other cascade devices (at least including the master device) in the cascade routing relationship where the cascade device to be connected is located except the cascade device to be connected can be used as connectable devices of the slave device. At this time, the identity information of the cascade device to be connected in the cascade routing relationship can be directly removed to obtain the corresponding first cascade relationship. At this time, the end cascade device of the first cascade relationship is the second to last cascade device in the cascade routing relationship.

[0081] Taking the slave device D as an example, if the cascade network connection information stored in the slave device D is "ESSID-C—AA—BB—T2", the cascade device to be connected to the slave device D is the slave device B. If the slave device D cannot establish a networking connection with the slave device B within the time period corresponding to the preset duration, the first cascade relationship corresponding to the slave device D can be expressed as "ESSID-C—AA", and the master device C and the slave device A are the connectible cascade devices of the slave device D.

[0082] Step S250, selecting each cascade device in reverse order according to the device cascading order of the first cascade relationship, and establishing a network connection with the selected single cascade device in a time period corresponding to the preset time length, until a network connection is successfully established with a cascade device.

[0083] In this embodiment, after the first cascade relationship currently corresponding to a certain slave device is determined, the device cascade sequence of the first cascade relationship is determined, and then the cascade devices corresponding to the device cascade sequence are selected in reverse order, and for each selected single cascade device, a network connection with the cascade device is established at a preset time interval within a time period corresponding to a preset time length, until the slave device successfully establishes a network connection with a cascade device in at least one cascade device corresponding to the first cascade relationship. Each selected cascade device corresponds to a preset time period for attempting to establish a network connection with the slave device.

[0084] Taking the first cascade relationship corresponding to the slave device D as "ESSID-C—AA" as an example, the device cascade order corresponding to the first cascade relationship is that the next cascade device of the master device C is the slave device A. At this time, it is necessary to first try to establish a network connection between the slave device D and the slave device A within a preset time period. If the network connection between the slave device D and the slave device A is not successfully established, it is necessary to try to establish a network connection between the slave device D and the master device C within a preset time period until the network connection between the slave device D and the master device C is successfully established.

[0085] Therefore, the present application can execute the above steps S240 to S250 so that when the corresponding slave device cannot connect to the currently configured cascade device to be connected, it can promptly replace the valid connectable cascade device for networking, so as to ensure that the MESH routing system where the slave device is located can be fully networked successfully.

[0086] Optionally, see Figure 4 , Figure 4 This is the third flow chart of the device networking method provided in the embodiment of the present application. In the embodiment of the present application, Figure 4 The device networking method shown is similar to Figure 3 Compared with the device networking method shown in Figure 4 The device networking method shown may also include steps S260 and S270, which are used to timely update the device routing status of the cascaded devices to be connected stored on each slave device when the MESH routing system completes networking, timely solidify the wireless networking results of the MESH routing system, and improve the stability of the reorganized network of the MESH routing system.

[0087] Step S260, receiving the return connection information from the upper cascade device to which the slave device is currently connected.

[0088] In this embodiment, when a slave device successfully establishes a networking connection with its corresponding upper cascade device (which can be a master device or a slave device), the current upper cascade device of the slave device will automatically generate the backhaul connection information of the upper cascade device based on the cascade path status from the master device to the upper cascade device. At this time, the backhaul connection information of the upper cascade device records the device cascade relationship from the master device to the upper cascade device, and the cascade networking level of the upper cascade device relative to the master device. Then, the upper cascade device will send its own backhaul connection information to the slave device, where the slave device is the lower cascade device of the upper cascade device.

[0089] Step S270: Use the received return connection information to replace the content of the cascade networking connection information stored in the slave device.

[0090] In this embodiment, when a slave device receives the return connection information sent by the currently connected upper cascade device, the received return connection information will be regarded as the cascade networking connection information of the slave device for storage, that is, the received return connection information will be used to directly replace the originally stored cascade networking connection information for storage.

[0091] Therefore, the present application can execute the above steps S260 and S270 to timely update the device routing status of the cascaded devices to be connected stored on each slave device when the MESH routing system completes the networking, and timely solidify the wireless networking results of the MESH routing system, thereby improving the stability of the reorganized network of the MESH routing system.

[0092] Optionally, see Figure 5 , Figure 5 This is the fourth flow chart of the device networking method provided in the embodiment of the present application. In the embodiment of the present application, Figure 5 The device networking method shown is the same as the above Figure 2 , Figure 3 or Figure 4 Compared with the device networking method shown in Figure 5 The device networking method shown may also include steps S280 and S290, which are used to promptly update the device routing status of the MESH routing system to the next-level cascade device corresponding to the slave device when the MESH routing system completes the networking, so as to promptly solidify the wireless networking results of the MESH routing system and improve the stability of the reorganized network of the MESH routing system.

[0093] Step S280, generating backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records the second cascade relationship from the master device to the slave device, and the cascade networking level of the slave device relative to the master device.

[0094] In this embodiment, when a slave device successfully establishes a networking connection with the next cascade device, the slave device will add the identity information of the slave device to the end of the cascade routing relationship in the cascade networking connection information based on the cascade networking connection information that it has determined, to obtain a second cascade relationship from the master device to the slave device, and use the cascade networking level of the slave device relative to the master device to replace the cascade networking level of the corresponding terminal cascade device in the cascade networking connection information relative to the master device to obtain the return connection information of the slave device.

[0095] In step S290, the backhaul connection information of the slave device is sent to the next cascade device to which the slave device is currently connected and stored as the cascade networking connection information of the next cascade device.

[0096] In this embodiment, when the slave device determines its own backhaul connection information, it will send its own backhaul connection information to the next cascade device to which the slave device is currently connected, so that the next cascade device to which the slave device is currently connected will store the received backhaul connection information as the cascade networking connection information of the next cascade device.

[0097] Therefore, the present application can execute the above steps S280 and S290, and when the MESH routing system completes networking, promptly update its own device routing status to the next-level cascade device corresponding to the slave device, and promptly solidify the wireless networking results of the MESH routing system, thereby improving the stability of the reorganized network of the MESH routing system.

[0098] In the present application, in order to ensure that the terminal device 10 can perform the above-mentioned device networking method through the device networking device 100 when acting as a slave device, the present application implements the above-mentioned functions by dividing the device networking device 100 into functional modules. The specific composition of the device networking device 100 provided by the present application is described below.

[0099] Please refer to Figure 6 , Figure 6 It is one of the schematic diagrams of the components of the device networking apparatus 100 provided in the embodiment of the present application. In the embodiment of the present application, the device networking apparatus 100 may include a cascade information reading module 110, a connection device selection module 120 and a network connection establishment module 130.

[0100] The cascade information reading module 110 is used to read the cascade network connection information stored in the slave device, wherein the cascade network connection information records the cascade routing relationship from the master device to the corresponding terminal cascade device.

[0101] The connection device selection module 120 is used to select the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected to the slave device.

[0102] The network connection establishing module 130 is used to establish a network connection with the cascade device to be connected within a time period corresponding to a preset time length.

[0103] Optionally, see Figure 7 , Figure 7This is the second schematic diagram of the composition of the device networking apparatus 100 provided in the embodiment of the present application. In the embodiment of the present application, the cascade networking connection information also records the cascade networking level of the corresponding terminal cascade device relative to the main end device, and the device networking apparatus 100 may also include a cascade relationship generation module 140.

[0104] The cascade relationship generation module 140 is used to remove the cascade device to be connected in the cascade routing relationship to obtain the corresponding first cascade relationship if a networking connection cannot be established with the cascade device to be connected within a time period corresponding to a preset duration and the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty.

[0105] The network connection establishment module 130 is also used to select each cascade device in reverse order according to the device cascading order of the first cascade relationship, and to establish a network connection with the selected single cascade device in a time period corresponding to a preset time length until a network connection is successfully established with a certain cascade device.

[0106] Optionally, see Figure 8 , Figure 8 This is the third schematic diagram of the composition of the device networking apparatus 100 provided in the embodiment of the present application. In the embodiment of the present application, the device networking apparatus 100 may further include a return connection receiving module 150 and a cascade information replacement module 160.

[0107] The backhaul connection receiving module 150 is used to receive the backhaul connection information from the upper cascade device to which the slave device is currently connected.

[0108] The cascade information replacement module 160 is used to replace the content of the cascade networking connection information stored in the slave device with the received return connection information.

[0109] Optionally, see Fig. 9 , Fig. 9 This is the fourth schematic diagram of the composition of the device networking apparatus 100 provided in the embodiment of the present application. In the embodiment of the present application, the device networking apparatus 100 may further include a backhaul connection generating module 170 and a backhaul connection sending module 180.

[0110] The backhaul connection generation module 170 is used to generate backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records the second cascade relationship from the master device to the slave device, and the cascade networking level of the slave device relative to the master device.

[0111] The backhaul connection sending module 180 is used to send the backhaul connection information of the slave device to the next cascade device currently connected to the slave device for storage as the cascade networking connection information of the next cascade device.

[0112] It should be noted that the basic principle and technical effects of the device networking apparatus 100 provided in the embodiment of the present application are the same as those of the aforementioned device networking method. For the sake of brief description, for any part not mentioned in this embodiment, reference may be made to the description of the aforementioned device networking method.

[0113] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0114] In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.

[0115] To summarize, in the device networking method and apparatus, terminal device and readable storage medium provided in the present application, the present application reads the cascade networking connection information stored in the slave device for each slave device in the MESH routing system, and selects the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device based on the cascade routing relationship from the master device in the MESH routing system to the corresponding terminal cascade device recorded in the cascade networking connection information, and then establishes a networking connection with the corresponding cascade device to be connected within a time period corresponding to a preset time length, thereby ensuring that each slave device in the same MESH routing system can be networked according to a specific device routing relationship, achieving wireless networking operations with strong routing stability, and reducing the impact of network fluctuations on wireless networking results.

[0116] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A device networking method, characterized in that: Applied to each slave device included in a MESH routing system, wherein the MESH routing system also includes a master device, the method includes: Reading the cascade networking connection information stored in the slave device, wherein the cascade networking connection information records a cascade routing relationship from the master device to a corresponding terminal cascade device, and the terminal cascade device is used to represent the upper cascade device currently configured by the slave device; Selecting the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device, wherein the cascade device to be connected is used to represent the upper cascade device to be connected by the slave device; Establishing a network connection with the cascade device to be connected within a time period corresponding to a preset time length; If a networking connection cannot be established with the cascade device to be connected within a time period corresponding to a preset time length, and the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty, remove the cascade device to be connected in the cascade routing relationship to obtain a corresponding first cascade relationship, wherein the cascade networking connection information further records the cascade networking level of the corresponding terminal cascade device relative to the master device; Each cascade device is selected in reverse order according to the device cascading order of the first cascade relationship, and a network connection with the selected single cascade device is established in turn within a time period corresponding to a preset time length until a network connection is successfully established with a certain cascade device.

2. The method according to claim 1, characterized in that The method further comprises: Receiving return connection information from an upper cascade device to which the slave device is currently connected; The received return connection information is used to replace the content of the cascade networking connection information stored in the slave device.

3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: Generate backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records a second cascade relationship from the master device to the slave device, and a cascade networking level of the slave device relative to the master device; The return connection information of the slave device is sent to the next cascade device to which the slave device is currently connected and stored as the cascade networking connection information of the next cascade device.

4. A device networking apparatus, characterized in that: Applied to each slave device included in the MESH routing system, wherein the MESH routing system also includes a master device, and the apparatus further includes: A cascade information reading module, used to read the cascade network connection information stored in the slave device, wherein the cascade network connection information records the cascade routing relationship from the master device to the corresponding terminal cascade device, and the terminal cascade device is used to represent the upper cascade device currently configured by the slave device; A connection device selection module, used for selecting the terminal cascade device corresponding to the cascade routing relationship as the current cascade device to be connected by the slave device, wherein the cascade device to be connected is used to represent the upper cascade device to be connected by the slave device; A network connection establishing module, used to establish a network connection with the cascade device to be connected within a time period corresponding to a preset time length; A cascade relationship generating module, configured to, if a networking connection cannot be established with the cascade device to be connected within a time period corresponding to a preset time length, and if the cascade networking level of the cascade device to be connected in the cascade networking connection information is not empty, remove the cascade device to be connected in the cascade routing relationship to obtain a corresponding first cascade relationship, wherein the cascade networking connection information further records the cascade networking level of the corresponding terminal cascade device relative to the master device; The network connection establishment module is also used to select each cascade device in reverse order according to the device cascading order of the first cascade relationship, and to establish a network connection with the selected single cascade device in a time period corresponding to a preset time length until a network connection is successfully established with a certain cascade device.

5. The device according to claim 4, characterized in that The device also includes: A backhaul connection receiving module, used for receiving backhaul connection information from an upper cascade device to which the slave device is currently connected; The cascade information replacement module is used to use the received return connection information to replace the content of the cascade networking connection information stored in the slave device.

6. The device according to any one of claims 4 to 5, characterized in that: The device also includes: a backhaul connection generation module, configured to generate backhaul connection information for the slave device based on the cascade networking connection information stored in the slave device, wherein the backhaul connection information records a second cascade relationship from the master device to the slave device, and a cascade networking level of the slave device relative to the master device; The backhaul connection sending module is used to send the backhaul connection information of the slave device to the next cascade device currently connected to the slave device for storage as the cascade networking connection information of the next cascade device.

7. A terminal device, characterized in that: Used to act as a slave device other than the master device included in the MESH routing system, the terminal device includes a processor and a memory, the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the device networking method described in any one of claims 1-3.

8. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device networking method described in any one of claims 1 to 3 is implemented.