Mesh wired ad hoc network method, device, equipment and readable storage medium

By acquiring and detecting network port information, the problem that the existing mesh wired ad hoc network cannot be performed through the WAN port is solved, and more flexible interface selection is achieved, reducing limitations.

CN115883275BActive Publication Date: 2025-04-25SHENZHEN SKYWORTH SOFTWARE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211298171.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-04-25
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The existing mesh wired ad hoc network has limitations, especially when the gateway device is multi-VLAN and the default WAN connections all have VLAN tags, the mesh ad hoc network cannot be performed through the WAN port, which limits the selectivity of the plug-in interface.

Method used

By obtaining network port information of the WAN interface and the Ethernet interface, detecting the VLAN mode, and broadcasting network request information according to the VLAN mode, to realize mesh networking of the gateway device.

Benefits of technology

Mesh ad hoc networking is implemented through the WAN port, solving the interface selectivity limitation caused by VLAN tags, and reducing the limitations of mesh wired ad hoc networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883275B_ABST
    Figure CN115883275B_ABST
Patent Text Reader

Abstract

The present application discloses a mesh wired self-organizing network method, device, equipment and readable storage medium, which relates to the field of network communication technology and is applied to a gateway device, wherein the gateway device includes at least one Ethernet interface, wherein the method includes: obtaining network port information of a wide area network interface and each of the Ethernet interfaces; if a wired connection is detected, broadcasting network request information according to the network port information to perform mesh networking of the gateway device. The present application solves the technical problem that the current mesh wired self-organizing network has limitations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a mesh wired self-organizing network method, device, equipment and readable storage medium. Background Art

[0002] With the development of smart phones and the Internet, people's requirements for the network are increasing. The network services provided by a single router cannot meet the needs of users in special scenarios at home. In order to improve the performance of the home network, users usually choose mesh networking, which is a new type of home network networking method with flexible wiring and superior performance. There are usually two ways to pair mesh networking devices. One is to pair them at the factory, but this method will increase the factory production cost. The other is to manually set the pairing by the user, but because the setting steps are cumbersome and there are certain technical difficulties, it is difficult for users to operate, which is not convenient for mesh networking operations and easily leads to a reduced user experience.

[0003] Currently, mesh networking is usually achieved by wired connection. However, when the gateway device is multi-VLAN and the default WAN connection carries a VLAN tag, the message sent from the WAN port will carry a VLAN tag. Since the message carrying the VLAN tag is likely not to be transferred to the CPU for processing, it is easy for the signal of the device requesting to connect to the network to not be recognized. Moreover, if the user has changed the VLAN tag, the VLAN tag will even be considered illegal and discarded. Therefore, mesh networking can only be achieved by plugging in the LAN port, which limits the selectivity of the plug-in interface during the mesh networking process, resulting in limitations in mesh wired networking. Summary of the invention

[0004] The main purpose of this application is to provide a mesh wired self-organizing network method, device, equipment and readable storage medium, aiming to solve the technical problems of limitations of current mesh wired self-organizing networks.

[0005] To achieve the above object, the present application provides a mesh wired ad hoc network method, which is applied to a gateway device, wherein the gateway device includes at least one Ethernet interface, and the mesh wired ad hoc network method includes:

[0006] Obtaining network port information of the wide area network interface and each of the Ethernet interfaces;

[0007] If a wired connection is detected, network connection request information is broadcast according to the network port information to perform mesh networking of the gateway device.

[0008] Optionally, the step of broadcasting networking request information according to the network port information to perform mesh networking of the gateway device includes:

[0009] Determine, based on the network port information, a first communication link between the wide area network interface and each of the Ethernet interfaces;

[0010] By performing VLAN mode detection on each of the first communication links, VLAN mode information of the wide area network interface is obtained, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode;

[0011] According to the VLAN mode information, network request information is broadcasted to perform mesh networking of the gateway device.

[0012] Optionally, the step of broadcasting the networking request information according to the VLAN mode includes:

[0013] If the VLAN mode is the VLAN tag mode, creating a second communication link, and broadcasting the networking request information through the second communication link;

[0014] If the VLAN mode is the VLAN untag mode, the networking request information is broadcasted through each of the first communication links.

[0015] Optionally, the step of establishing the second communication link includes:

[0016] A temporary communication link is newly established, and the configuration information of the temporary communication link is modified to obtain a modification result;

[0017] According to the modification result, the temporary communication link is updated to the second communication link.

[0018] Optionally, the second configuration information includes permission information and binding relationship information, and the step of modifying the attributes of the configuration information of the temporary communication link to obtain the modification result includes:

[0019] According to the permission information, modify the user permission corresponding to the temporary communication link to obtain a first modification result;

[0020] According to the binding relationship information, the binding interface corresponding to the temporary communication link is modified to obtain a second modification result, and the first modification result and the second modification result are used together as the modification result.

[0021] Optionally, the step of performing mesh networking of the gateway device includes:

[0022] By performing identity detection and networking detection on the gateway device, an identity detection result and a networking detection result are obtained;

[0023] The mesh networking of the gateway device is performed according to the identity detection result and the networking detection result.

[0024] Optionally, the gateway device further includes a preset networking mechanism, and after the step of performing mesh networking of the gateway device according to the identity detection result and the networking detection result, further includes:

[0025] According to the preset networking mechanism, a networking pairing detection is performed on the gateway device to obtain a networking pairing detection result;

[0026] The second communication link is deleted according to the networking pairing detection result.

[0027] In addition, to achieve the above-mentioned purpose, the present application also provides a mesh wired self-organizing network device, which is applied to a gateway device, wherein the gateway device includes at least one Ethernet interface, and the mesh wired self-organizing network device includes:

[0028] A network port information acquisition module is used to acquire the network port information of the wide area network interface and each of the Ethernet interfaces;

[0029] The network port information detection module is used to broadcast network connection request information according to the network port information if a wired connection is detected, so as to perform mesh networking of the gateway device.

[0030] Optionally, the network port information detection module is further used to:

[0031] Determine, based on the network port information, a first communication link between the wide area network interface and each of the Ethernet interfaces;

[0032] By performing VLAN mode detection on each of the first communication links, VLAN mode information of the wide area network interface is obtained, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode;

[0033] According to the VLAN mode information, network request information is broadcasted to perform mesh networking of the gateway device.

[0034] Optionally, the network port information detection module is further used to:

[0035] If the VLAN mode is the VLAN tag mode, creating a second communication link, and broadcasting the networking request information through the second communication link;

[0036] If the VLAN mode is the VLAN untag mode, the networking request information is broadcasted through each of the first communication links.

[0037] Optionally, the network port information detection module is further used to:

[0038] A temporary communication link is newly established, and the configuration information of the temporary communication link is modified to obtain a modification result;

[0039] According to the modification result, the temporary communication link is updated to the second communication link.

[0040] Optionally, the network port information detection module is further used to:

[0041] According to the permission information, modify the user permission corresponding to the temporary communication link to obtain a first modification result;

[0042] According to the binding relationship information, the binding interface corresponding to the temporary communication link is modified to obtain a second modification result, and the first modification result and the second modification result are used together as the modification result.

[0043] Optionally, the network port information detection module is further used to:

[0044] By performing identity detection and networking detection on the gateway device, an identity detection result and a networking detection result are obtained;

[0045] The mesh networking of the gateway device is performed according to the identity detection result and the networking detection result.

[0046] Optionally, the network port information detection module is further used to:

[0047] According to the preset networking mechanism, a networking pairing detection is performed on the gateway device to obtain a networking pairing detection result;

[0048] The second communication link is deleted according to the networking pairing detection result.

[0049] The present application also provides a mesh networking device, which includes: a memory, a processor, and a mesh networking program stored in the memory and executable on the processor, wherein the mesh networking program implements the steps of the above-mentioned mesh wired self-organizing networking method when executed by the processor.

[0050] The present application also provides a readable storage medium, on which a mesh networking program is stored. When the mesh networking program is executed by a processor, the steps of the above-mentioned mesh wired self-organizing networking method are implemented.

[0051] The present application also provides a computer program product, including a computer program, which implements the steps of the mesh wired ad hoc network method as described above when executed by a processor.

[0052] The present application provides a mesh wired self-organizing network method, apparatus, device and readable storage medium. Compared with the current method of mesh self-organizing network of gateway devices by plugging in LAN ports, the present application obtains the network port information of the wide area network interface and each of the Ethernet interfaces, determines the VLAN mode information of the wide area network interface based on the network port information, and broadcasts the network connection request information based on the VLAN mode information if a wired connection is detected, so as to perform mesh networking of the gateway device. The mesh self-organizing network is realized through the WAN port, and the technical problem that when the gateway device is multi-VLAN and the default WAN connection carries a VLAN tag, the message sent from the WAN port will carry a VLAN tag, resulting in only the LAN port being selected for mesh self-organizing network is solved, and the technical defect that the mesh wired self-organizing network has limitations due to certain restrictions on the selection of the plug-in interface is overcome, thereby reducing the limitations of the mesh wired self-organizing network. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a flow chart of the first embodiment of the mesh wired ad hoc networking method of the present application;

[0054] Figure 2 This is a schematic diagram of the gateway device interface involved in the mesh wired ad hoc network method of this application;

[0055] Figure 3 VLAN mode detection flow chart involved in the mesh wired ad hoc network method of this application;

[0056] Figure 4 A schematic diagram of a device involved in the mesh wired ad hoc network method of this application;

[0057] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the mesh wired ad hoc networking method of this application.

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

[0059] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions 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 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 belong to the scope of protection of this application.

[0060] Currently, mesh networking is usually achieved by wired connection. However, when the gateway device is multi-VLAN and the default WAN connection carries a VLAN tag, the message sent from the WAN port will carry a VLAN tag. Since the message carrying the VLAN tag is likely not to be transferred to the CPU for processing, it is easy for the signal of the device requesting to connect to the network to not be recognized. Moreover, if the user has changed the VLAN tag, the VLAN tag will even be considered illegal and discarded. Therefore, mesh networking can only be achieved by plugging in the LAN port, which limits the selectivity of the plug-in interface during the mesh networking process, thus leading to the limitations of mesh wired networking.

[0061] The present application embodiment provides a mesh wired self-organizing network method, which is applied to a gateway device, wherein the gateway device includes at least one Ethernet interface. In the first embodiment of the mesh wired self-organizing network method of the present application, Figure 1 , the mesh wired ad hoc network method comprises:

[0062] Step S10, obtaining network port information of the wide area network interface and each of the Ethernet interfaces;

[0063] Step S20: If the gateway device detects a wired connection, it broadcasts networking request information based on the network port information to perform mesh networking of the gateway device.

[0064] In this embodiment, it should be noted that in a mesh network, the host is connected to the Internet, and the slave is connected to the host. Therefore, when mesh networking is performed, at least one gateway device needs to be connected to the Internet (that is, a wide area network or an external network) by wired means (i.e., a network cable) or WiFi relay / bridging, and other gateway devices in the mesh networking are directly or indirectly connected to the gateway device connected to the Internet through a network cable, that is, if the gateway device detects a wired connection, it means that mesh networking has begun; the gateway device can be a router that supports mesh networking; the wide area network interface (i.e., WAN port) refers to the interface for connecting the gateway device to the wide area network; the Ethernet interface (i.e., LAN port) refers to the interface for connecting the gateway device to the local area network; the network port information can be used to characterize the network connection between the wide area network interface and each of the Ethernet interfaces.

[0065] As an example, step S10 to step S20 include: obtaining network port information of the wide area network interface and each of the Ethernet interfaces, wherein the network port information can be directly obtained by obtaining configuration information of the wide area network interface, and the configuration information may include communication connection information, interface parameter information, interface network speed information, etc., and VLAN mode information of the wide area network interface can be determined based on each of the network port information, wherein the VLAN mode information is used to characterize whether a message in a first communication link carries a VLAN tag, that is, whether there is a VLAN tag in the VLAN mode of the wide area network interface communication link; if the gateway device detects a wired connection, then based on the VLAN mode information, broadcasting networking request information to perform mesh networking of the gateway device, wherein if the VLAN mode information is different, then the communication link for the wide area network interface to broadcast the networking request information is also different.

[0066] For example, if the WAN interface communication connection is in VLAN tag mode, it means that the packets sent from the WAN interface carry VLAN tags. If the WAN interface communication connection is in VLAN untag mode, the packets sent from the WAN interface do not carry VLAN tags.

[0067] The step of broadcasting the network request information according to the network port information to perform mesh networking of the gateway device includes:

[0068] Step S21, determining a first communication link between the wide area network interface and each of the Ethernet interfaces according to the network port information;

[0069] Step S22, obtaining VLAN mode information of the wide area network interface by performing VLAN mode detection on each of the first communication links, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode;

[0070] Step S23: broadcasting networking request information according to the VLAN mode information to perform mesh networking of the gateway device.

[0071] In this embodiment, it should be noted that the first communication link can be a communication transmission channel connecting the WAN interface and each of the Ethernet interfaces. Since the WAN interface may carry a VLAG tag under the premise that the WAN interface is connected to each of the LAN interfaces, in order to further ensure the accuracy of VLAN detection and thereby achieve the purpose of improving the efficiency of mesh networking, VLAN detection can be selected for the first communication link between the WAN interface and each of the LAN interfaces.

[0072] As an example, step S21 to step S23 include: determining a first communication link between the wide area network interface and each of the Ethernet interfaces based on the network port information, wherein the first communication link can be determined based on a connection identifier in the network port information, and the connection identifier can be used to indicate that the wide area network interface and each of the Ethernet interfaces are in a connected state, and if the wide area network interface is only connected to one Ethernet interface, then there is only one first communication link, and similarly, if the wide area network interface is connected to multiple Ethernet interfaces, then there are multiple first communication links; determining the VLAN mode by performing VLAN detection on each of the first communication links, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode, and the VLAN mode can be detected by presetting VLAN tag identification information or by wireshark packet capture.

[0073] For example, assuming that the connection identifiers are 1 and 0, where 1 indicates connection and 0 indicates disconnection, if the connection identifier in the communication connection information is 1, it means that the WAN interface is connected to the Ethernet interface, and if the connection identifier in the communication connection information is 0, it means that the WAN interface is not connected to the Ethernet interface; VLAN detection is performed on the communication link with the connection identifier 1, assuming that the VLAN information is A and B, where A indicates VLAN tag and B indicates VLAN untag, if there is VLAN identifier A in the communication link, it means that the message information sent by the WAN interface will carry VLAN tag, if the communication link does not carry VLAN identifier, that is, the case of B, it means that the message information sent by the WAN interface will not carry VLAN tag. In addition, detection can also be performed by capturing packets with wireshark. First, the VLAN data packet can be captured, and the VLAN tag can be located in the message header of the data packet according to the 802.1q protocol.

[0074] Wherein, the step of broadcasting the networking request information according to the VLAN mode includes:

[0075] Step S31, if the VLAN mode is the VLAN tag mode, then create a second communication link, and broadcast the networking request information through the second communication link;

[0076] Step S32: If the VLAN tag mode is the VLAN untag mode, broadcast the networking request information through each of the first communication links.

[0077] In this embodiment, it should be noted that the VLAN tag mode refers to the Ethernet frame format in the link containing a 4-byte IEEE 802.1qVLAN Tagging field, and the VLAN untag mode refers to the Ethernet frame format in the link not containing the IEEE 802.1qVLAN Tagging field. Tag is a field added to the data packet. This field has only one digital value, which can be from 1 to 4094, and can be represented as the id or number of this VLAN. There is only one VLAN packet in a VLAN packet, and the value is unique in a local area network. For example: a data packet with tag No. 2 is logically data "in virtual local area network No. 2"; the second communication link refers to a communication link with VLAN mode as VLAN untag.

[0078] As an example, step S31 to step S32 include: if the VLAN mode is the VLAN tag mode, creating a second communication link, broadcasting the networking request information through the second communication link, wherein, Figure 3 As shown in the VLAN detection flow chart, if each of the first communication links is in VLAN tag mode, it means that the message sent from the communication link at this time will carry a VLAN tag, then a second communication link is created, and the networking request information is broadcasted through the second communication link. The second communication link is in VLAN untag mode, and is not bound to the LAN side interface in order not to affect user use. If the VLAN mode is the VLAN untag mode, it means that the message sent from the communication link at this time will not carry a VLAN tag, and the networking request information can be directly broadcasted through each of the first communication links.

[0079] The step of establishing the second communication link includes:

[0080] Step S311, creating a temporary communication link, modifying the attributes of the configuration information of the temporary communication link, and obtaining a modification result;

[0081] Step S312: updating the temporary communication link to the second communication link according to the modification result.

[0082] In this embodiment, it should be noted that: since the user can currently change the VLAN tag, it is necessary to modify the attributes of the second configuration information to obtain the second communication link.

[0083] As an example, step S311 to step S312 include: creating a new temporary communication link, modifying the attributes of the configuration information of the temporary communication link, and obtaining a modification result, wherein the temporary communication link and the configuration information can be considered as the initial communication link and the initial configuration information of the initial communication link, and the attribute modification can include user authority modification and binding interface modification; based on the modification result, updating the temporary communication link to the second communication link, wherein the second communication link is the communication link after the attribute modification.

[0084] The second configuration information includes permission information and binding relationship information, and the step of modifying the attributes of the configuration information of the temporary communication link to obtain the modification result includes:

[0085] Step S3111, modifying the user authority corresponding to the temporary communication link according to the authority information to obtain a first modification result;

[0086] Step S3112: modify the binding interface corresponding to the temporary communication link according to the binding relationship information to obtain a second modification result, and use the first modification result and the second modification result together as the modification result.

[0087] As an example, step S3111 to step S3112 include: modifying the user rights corresponding to the temporary communication link according to the permission information to obtain a first modification result, wherein the permission information may include user viewing rights, user deletion rights, user modification rights, user addition rights, etc., and modifying the user rights mainly changes the user viewing rights to be invisible to prevent the user from changing the VLAN tag by himself, thereby causing the CPU to determine that the message is illegal and discarded when identifying the message; modifying the binding interface corresponding to the temporary communication link according to the binding relationship information to obtain a second modification result, wherein the binding relationship information may include the binding relationship between the wide area network interface and each Ethernet interface, that is, setting the wide area network interface not to be bound to each Ethernet interface, so that the wide area network interface will not have a VLAN tag; the first modification result and the second modification result are taken together as the modification result.

[0088] The step of performing mesh networking of the gateway device includes:

[0089] Step A10: Based on the first broadcast result, perform identity detection and network detection on the gateway device to obtain an identity detection result and a network detection result;

[0090] Step A20: Perform mesh networking of the gateway device based on the identity detection result and the networking detection result.

[0091] As an example, step A10 to step A20 include: when receiving networking request information in the network, performing identity detection and networking detection on the gateway device to obtain identity detection results and networking detection results, wherein the identity detection refers to detecting the factory identity information of the gateway device, that is, at the factory, the gateway device of the mesh network does not specify the host and sub-machine. Since when performing mesh networking, the gateway device in the network can receive networking request information broadcast by other gateway devices while broadcasting networking request information, it is necessary to detect the identity of the gateway device to determine whether it is a host or a sub-machine. The networking detection refers to detecting whether the gateway device can connect to the network; based on the identity detection result and the networking detection result, the mesh networking of the gateway device is performed.

[0092] The gateway device further includes a preset networking mechanism, and after the step of performing mesh networking of the gateway device according to the identity detection result and the networking detection result, further includes:

[0093] Step A21, performing a networking pairing test on the gateway device according to the preset networking mechanism to obtain a networking pairing test result;

[0094] Step A22: deleting the second communication link according to the networking pairing detection result.

[0095] In this embodiment, the preset networking mechanism means that the user can complete the mesh networking through wps button pairing or APP operation pairing.

[0096] As an example, step A21 to step A22 include: performing a network pairing test on the gateway device according to the preset networking mechanism to obtain a network pairing test result, wherein the network pairing test result can be used to characterize whether the mesh networking of the gateway device is completed; deleting the second communication link according to the network pairing test result, and if it is detected that the mesh networking is completed at this time, the second communication link can be deleted, thereby releasing more resource space and reducing the operating pressure of the gateway device.

[0097] For example, you can determine whether the mesh networking is completed by detecting the light color of the wps button or the APP operation prompt. When the light of the wps button is green or the APP prompts that the networking is completed, it is determined that the gateway device has completed the mesh networking. When the light of the wps button is red or the APP prompts that the networking fails, it is determined that the gateway device has not completed the mesh networking.

[0098] The present application provides a mesh wired self-organizing network method. Compared with the current method of mesh self-organizing network of gateway devices by plugging in LAN ports, the present application first obtains the network port information of the wide area network interface and each Ethernet interface, and determines the VLAN mode information of the wide area network interface based on the network port information; if a wired connection is detected, the network connection request information is broadcasted based on the VLAN mode information to perform mesh networking of the gateway device. The mesh self-organizing network is realized through the WAN port, and the technical problem that when the gateway device is multi-VLAN and the default WAN connection carries a VLAN tag, the message sent from the WAN port will carry a VLAN tag, resulting in only the LAN port being selected for mesh self-organizing network is solved. The technical defect that the mesh wired self-organizing network has limitations due to certain restrictions on the selection of the plug-in interface is overcome, thereby reducing the limitations of the mesh wired self-organizing network.

[0099] In addition, the embodiment of the present application also provides a mesh wired ad hoc network device, which is applied to a gateway device, wherein the gateway device includes at least one Ethernet interface, such as Figure 4 As shown, the mesh wired self-organizing network device includes:

[0100] A network port information acquisition module 10 is used to acquire network port information of a wide area network interface and each of the Ethernet interfaces;

[0101] The network port information detection module 20 is used to broadcast network connection request information according to the network port information if a wired connection is detected, so as to perform mesh networking of the gateway device.

[0102] Optionally, the network port information detection module 20 is further used for:

[0103] Determine, based on the network port information, a first communication link between the wide area network interface and each of the Ethernet interfaces;

[0104] By performing VLAN mode detection on each of the first communication links, VLAN mode information of the wide area network interface is obtained, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode;

[0105] According to the VLAN mode information, network request information is broadcasted to perform mesh networking of the gateway device.

[0106] Optionally, the network port information detection module 20 is further used for:

[0107] If the VLAN mode is the VLAN tag mode, creating a second communication link, and broadcasting the networking request information through the second communication link;

[0108] If the VLAN mode is the VLAN untag mode, the networking request information is broadcasted through each of the first communication links.

[0109] Optionally, the network port information detection module 20 is further used for:

[0110] A temporary communication link is newly established, and the configuration information of the temporary communication link is modified to obtain a modification result;

[0111] According to the modification result, the temporary communication link is updated to the second communication link.

[0112] Optionally, the network port information detection module 20 is further used for:

[0113] According to the permission information, modify the user permission corresponding to the temporary communication link to obtain a first modification result;

[0114] According to the binding relationship information, the binding interface corresponding to the temporary communication link is modified to obtain a second modification result, and the first modification result and the second modification result are used together as the modification result.

[0115] Optionally, the network port information detection module 20 is further used for:

[0116] By performing identity detection and networking detection on the gateway device, an identity detection result and a networking detection result are obtained;

[0117] The mesh networking of the gateway device is performed according to the identity detection result and the networking detection result.

[0118] Optionally, the network port information detection module 20 is further used for:

[0119] According to the preset networking mechanism, a networking pairing detection is performed on the gateway device to obtain a networking pairing detection result;

[0120] The second communication link is deleted according to the networking pairing detection result.

[0121] The mesh wired self-organizing network device provided by the present application adopts the mesh wired self-organizing network method in the above embodiment to solve the technical problem of the limitations of the current mesh wired self-organizing network. Compared with the prior art, the beneficial effects of the mesh wired self-organizing network device provided by the embodiment of the present application are the same as the beneficial effects of the mesh wired self-organizing network method provided by the above embodiment, and other technical features in the mesh wired self-organizing network device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0122] An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the mesh wired self-organizing network method in the above-mentioned embodiment one.

[0123] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0124] like Figure 5 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0125] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0126] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0127] The electronic device provided by the present application adopts the mesh wired self-organizing network method in the above embodiment, which solves the technical problem that the current mesh wired self-organizing network has limitations. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the mesh wired self-organizing network method provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0128] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0129] The above is only a specific implementation 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.

[0130] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the mesh wired ad hoc network method in the above-mentioned embodiment 1.

[0131] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a system or a device or used in combination with it. The program code contained on the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0132] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0133] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: obtains the network port information of the wide area network interface and each of the Ethernet interfaces; if a wired connection is detected, broadcasts the network connection request information based on the network port information to perform mesh networking of the gateway device.

[0134] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0137] The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above-mentioned mesh wired ad hoc network method, which solves the technical problem that the current mesh wired ad hoc network has limitations. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the mesh wired ad hoc network method provided by the above-mentioned embodiment, and will not be repeated here.

[0138] The present application also provides a computer program product, including a computer program, which implements the steps of the mesh wired ad hoc network method as described above when executed by a processor.

[0139] The computer program product provided by the present application solves the technical problem of the limitations of the current mesh wired ad hoc network. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the mesh wired ad hoc network method provided by the above embodiment, which will not be repeated here.

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

Claims

1. A mesh wired ad hoc network method, characterized in that: Applied to a gateway device, the gateway device includes at least one Ethernet interface, and the mesh wired ad hoc network method includes: Obtaining network port information of the wide area network interface and each of the Ethernet interfaces; If a wired connection is detected, broadcasting network request information according to the network port information to perform mesh networking of the gateway device; The step of broadcasting the network request information according to the network port information to perform mesh networking of the gateway device includes: Determine, based on the network port information, a first communication link between the wide area network interface and each of the Ethernet interfaces; By performing VLAN mode detection on each of the first communication links, VLAN mode information of the wide area network interface is obtained, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode; Broadcasting networking request information according to the VLAN mode information to perform mesh networking of the gateway device; The step of broadcasting the networking request information according to the VLAN mode includes: If the VLAN mode is the VLAN tag mode, creating a second communication link, and broadcasting the networking request information through the second communication link; If the VLAN mode is the VLAN untag mode, the networking request information is broadcasted through each of the first communication links.

2. The mesh wired ad hoc network method according to claim 1, characterized in that: The step of establishing a second communication link comprises: A temporary communication link is newly established, and the configuration information of the temporary communication link is modified to obtain a modification result; According to the modification result, the temporary communication link is updated to the second communication link.

3. The mesh wired ad hoc network method according to claim 2, characterized in that: The configuration information includes permission information and binding relationship information, and the step of modifying the attributes of the configuration information of the temporary communication link to obtain the modification result includes: According to the permission information, modify the user permission corresponding to the temporary communication link to obtain a first modification result; According to the binding relationship information, the binding interface corresponding to the temporary communication link is modified to obtain a second modification result, and the first modification result and the second modification result are used together as the modification result.

4. The mesh wired ad hoc network method according to claim 3, characterized in that: The step of performing mesh networking of the gateway device comprises: By performing identity detection and networking detection on the gateway device, an identity detection result and a networking detection result are obtained; The mesh networking of the gateway device is performed according to the identity detection result and the networking detection result.

5. The mesh wired ad hoc network method according to claim 4, characterized in that: The gateway device further includes a preset networking mechanism, and after the step of performing mesh networking of the gateway device according to the identity detection result and the networking detection result, further includes: According to the preset networking mechanism, a networking pairing detection is performed on the gateway device to obtain a networking pairing detection result; The second communication link is deleted according to the networking pairing detection result.

6. A mesh wired ad hoc network device, characterized in that: Applied to a gateway device, the gateway device includes at least one Ethernet interface, and the mesh wired ad hoc network device includes: A network port information acquisition module is used to acquire the network port information of the wide area network interface and each of the Ethernet interfaces; A network port information detection module, for broadcasting network connection request information according to the network port information if a wired connection is detected, so as to perform mesh networking of the gateway device; Wherein, the network port information detection module is also used for: Determine, based on the network port information, a first communication link between the wide area network interface and each of the Ethernet interfaces; By performing VLAN mode detection on each of the first communication links, VLAN mode information of the wide area network interface is obtained, wherein the VLAN mode includes a VLAN tag mode and a VLAN untag mode; Broadcasting networking request information according to the VLAN mode information to perform mesh networking of the gateway device; The network port information detection module is also used for: If the VLAN mode is the VLAN tag mode, creating a second communication link, and broadcasting the networking request information through the second communication link; If the VLAN mode is the VLAN untag mode, the networking request information is broadcasted through each of the first communication links.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the mesh wired ad hoc network method described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The readable storage medium stores a program for implementing mesh networking, and the program for implementing mesh networking is executed by a processor to implement the steps of the mesh wired ad hoc networking method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Mesh wired ad-hoc network method, distributed routing device and equipment

    CN111800322A

  • Networking method for realizing EasyMesh based on set top box WiFi and set top box

    CN112235617A