A method and system for managing data transmission based on wireless mesh

By constructing a wireless mesh tree network and using a data packet merging transmission method, the problems of high latency and poor network stability in wireless mesh data transmission are solved, achieving efficient and stable transmission of street light data and improving network disaster resistance, thus meeting the intelligent management needs of urban street light systems.

CN120881685BActive Publication Date: 2026-03-24DONGGUAN SUKONDA NEW ENERGY LIGHTING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing wireless mesh-based data transmission management methods lack direct connection channels at the scheduling level, resulting in large relay transmission delays, poor network stability, and limited node energy and storage in multi-hop wireless networks, making it difficult to guarantee the real-time performance and reliability of data transmission.

Method used

By constructing a tree-like network based on a wireless mesh, setting the gateway as the aggregation point, optimizing the network topology, configuring subordinate paths for data transmission, and adopting a data packet merging transmission method, the system can determine in real time whether a data disaster occurs, activate the emergency networking plan, and merge multiple data packets for fast data transmission.

Benefits of technology

It achieves efficient and stable transmission of street light data, reduces transmission latency, improves transmission efficiency, enhances network disaster resistance and robustness, and ensures the data transmission needs of intelligent management of urban street light systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120881685B_ABST
    Figure CN120881685B_ABST
Patent Text Reader

Abstract

The present application relates to street lamp data transmission technical field, more particularly, to a kind of data transmission management method and system based on wireless mesh.The scheme includes setting MCU, RF wireless module, power supply module, indicating unit and wireless antenna, as for based on wireless mesh data transmission equipment;With gateway as converging point, the networking setting of equipment based on wireless mesh data transmission is carried out;For each data transmission, multiple levels of dependent path are set, whether data disaster appears in the system is judged in real time, if it appears, data disaster emergency networking plan is started;In the preset format, multiple data packets are merged for data fast transmission.The scheme builds tree-shaped network based on wireless mesh, sets gateway as converging point and optimizes networking, configures dependent path for data transmission, realizes street lamp data efficient and stable transmission, improves transmission efficiency, and guarantees the data transmission demand of intelligent management of city street lamp system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of street light data transmission technology, and more specifically, to a data transmission management method and system based on wireless mesh. Background Technology

[0002] With the advancement of smart city construction, street lighting systems are transforming from simple lighting facilities into multifunctional IoT nodes, making the efficient transmission of massive amounts of sensor data and control commands crucial. A wireless mesh-based data transmission management approach, by constructing a multi-hop self-organizing network topology and utilizing collaborative relay between nodes to achieve data relay transmission, effectively overcomes the coverage limitations of traditional star networks and reduces reliance on fixed infrastructure. This innovative model not only significantly improves the stability and anti-interference capabilities of street lighting data transmission but also flexibly addresses signal attenuation and link interruption issues in complex environments through a dynamic routing adjustment mechanism, greatly enhancing the system's reliability and robustness. More importantly, its distributed architecture and low-power characteristics are well-suited to the wide-area distribution and power-constrained nature of street lighting networks. While reducing operation and maintenance costs, it provides robust data transmission guarantees for various applications such as intelligent urban lighting control, environmental monitoring, and traffic flow analysis, holding irreplaceable strategic significance for promoting refined urban management and improving public service levels.

[0003] Prior to this invention, existing wireless mesh-based data transmission management methods primarily employed WLAN Mesh based on 802.11s. Data exchange in this method largely relied on IP addresses, with data packets being reported layer by layer to the network layer, which then identified the data forwarding rules. This approach presented several challenges and critical issues: At the scheduling level, according to the seven-layer model defined by the International Organization for Standardization (ISO), the Mesh layer routing algorithm lacked a direct connection to the physical layer, making direct scheduling of the physical layer impossible. Physical layer scheduling depended on the data link layer, hindering flexible utilization of underlying resources. Regarding relay transmission, during data relay forwarding, data packets had to be passed layer by layer to the network layer for judgment. If a packet did not belong to a relay station, it had to be sent down layer by layer to the physical layer. This large volume of data exchange resulted in significant Mesh relay latency and low algorithm efficiency. From a network stability perspective, the inability to directly assess the real-time status of the physical layer led to the potential for sending network layer broadcast packets at inappropriate times during large-scale networking, triggering a "network storm." This resulted in the wireless mesh network being flooded with broadcast packets that could not carry valid data, severely impacting network performance. Furthermore, in some multi-hop wireless network data transmission scenarios, challenges arise from limited node energy and storage, as well as dynamic changes in network topology. Ensuring real-time and reliable data transmission within limited resources, while balancing data message delivery rate and energy consumption, becomes a key challenge in designing data transmission mechanisms. For example, in wireless sensor network applications, it's necessary to consider the instability of wireless link communication quality caused by node movement and environmental changes, evaluating link quality through methods such as path loss calculation. Simultaneously, it's crucial to consider node energy status and motion characteristics when selecting appropriate forwarding nodes. At the same time, it's essential to avoid the problem of redundant copies consuming excessive storage space and energy when using multiple copies to improve data message delivery rate. Summary of the Invention

[0004] In view of the above problems, this invention proposes a data transmission management method and system based on a wireless mesh. By constructing a tree-like network based on a wireless mesh, setting the gateway as the aggregation point and optimizing the network topology, configuring subordinate paths for data transmission, and employing methods such as packet merging, this method achieves efficient and stable transmission of street light data, reduces transmission latency, improves transmission efficiency, enhances network disaster resistance and robustness, and ensures the data transmission needs of intelligent management of urban street light systems.

[0005] According to a first aspect of the present invention, a data transmission management method based on a wireless mesh is provided.

[0006] In one or more embodiments, preferably, the wireless mesh-based data transmission management method includes:

[0007] It is equipped with an MCU, an RF wireless module, a power supply module, an indicator unit, and a wireless antenna as a data transmission device for wireless mesh-based applications.

[0008] Network configuration for equipment that uses a gateway as the aggregation point for wireless mesh-based data transmission;

[0009] When equipment that transmits data via wireless mesh is started or is determined to be in a communication failure state, a re-networking process is initiated.

[0010] Regularly perform self-checks on network communications;

[0011] Set up multi-level subordinate paths for each data transmission, and determine in real time whether a data disaster has occurred in the system. If so, activate the emergency network plan for data disaster.

[0012] Multiple data packets are merged in a preset format for fast data transfer.

[0013] In one or more embodiments, preferably, the configuration of the MCU, RF wireless module, power supply module, indicator unit, and wireless antenna as a data transmission device for wireless mesh-based communication specifically includes:

[0014] The equipment structure for data transmission based on the wireless mesh communicates with the controller through the controller communication interface and performs data processing through the MCU;

[0015] The MCU communicates with the RF wireless module and communicates with other wireless mesh-based data transmission equipment through the RF wireless module.

[0016] The wireless antenna is connected to the RF wireless transceiver module to convert digital signals into wireless signals;

[0017] The indicator unit is used to indicate the working status of the device;

[0018] The power supply module provides power to the device.

[0019] In one or more embodiments, preferably, the networking setup of the equipment for data transmission based on a wireless mesh, with the gateway as the aggregation point, specifically includes:

[0020] Using a gateway as the aggregation point, the scattered wireless mesh-based data transmission equipment is automatically organized into a tree-like network structure, with each wireless mesh-based data transmission equipment serving as an intermediate node or a leaf node.

[0021] The cost per wireless signal transmission is determined through testing. This cost per transmission is defined as the error content ratio, which is related to the transmission distance and the medium. The cost is determined through pre-testing. During the testing process, the cost per transmission for each device transmitting data based on the wireless mesh needs to be determined for its eight closest physical points. These eight points refer to the devices transmitting data based on the wireless mesh.

[0022] The cumulative cost per transmission for each scheme is calculated using the first calculation formula;

[0023] Assuming the first to Nth wireless mesh-based data transmission equipment as the aggregation point, when j is the aggregation point, the average transmission cost is calculated using the second calculation formula.

[0024] Choose the gateway with the lowest average transmission cost as the aggregation point;

[0025] The average transmission costs are sorted, and the equipment for data transmission based on the wireless mesh corresponding to the second to fourth smallest average transmission costs in the sort is selected as the alternative gateway.

[0026] The first calculation formula is:

[0027] D=∏from i=1 to i=M(Ai)

[0028] Where Ai is the difference between the transmission cost of path 1 and the i-th path, i is the path number in the current scheme, M is the total number of path numbers in the current scheme, and D is the cumulative sum of transmission costs for each transmission.

[0029] The second calculation formula is:

[0030] Pj=(1-D1j)×(1-D2j)×…×(1-DNj))÷(N-1)

[0031] Where Pj is the average transmission cost, D1j, D2j, ..., DNj are the cumulative sum of transmission costs for each transmission from the aggregation point to the first to the Nth wireless mesh-based data transmission equipment, where Djj is 0 and N is the total number of wireless mesh-based data transmission equipment.

[0032] In one or more embodiments, preferably, the step of initiating a renetworking process when the equipment for data transmission based on the wireless mesh starts up or is determined to be in a communication failure state specifically includes:

[0033] The equipment that transmits data via wireless mesh initiates a broadcast to acquire data from surrounding equipment that transmits data via wireless mesh.

[0034] Based on the aggregation point and alternative gateways, the optimal route is determined.

[0035] The remaining wireless mesh-based data transmission equipment is divided into two categories: intermediate nodes and terminal nodes.

[0036] The terminal node initiates a network formation request to the gateway;

[0037] After receiving the networking request, the intermediate node forwards it to the upstream node until it reaches the gateway device.

[0038] In one or more embodiments, preferably, the long-term network communication self-test specifically includes:

[0039] Terminal nodes periodically initiate communication status self-checks to determine whether the terminal is communicating normally;

[0040] If no signal is received from the superior node for an extended period, a heartbeat signal is sent to the superior node. If the superior node receives the heartbeat signal and is online, it responds with an acknowledgment signal. If the terminal receives the acknowledgment signal, it considers the terminal communication to be normal.

[0041] In one or more embodiments, preferably, the step of setting up multi-level subordinate paths for each data transmission, and determining in real time whether a data disaster has occurred in the system, and if so, activating the data disaster emergency networking plan, specifically includes:

[0042] The subordinate path is set to the path with the second smallest average transmission cost between the terminal node and the optimal route;

[0043] If the transmission volume of a single path exceeds 80% of the total transmission volume of the channel in real-time data transmission, the path is considered to have experienced a data disaster.

[0044] In the event of activating the emergency networking plan for data disasters, a distributed transmission command is issued to the source location of the data disaster.

[0045] When a distributed sending command is received at the source location, supplementary sending is performed on the subordinate path. This supplementary sending does not mean retransmission, but rather sending previously unseen data through the subordinate path. In addition, a judgment logic is set at the source location to prevent duplicate information from being sent again.

[0046] In one or more embodiments, preferably, the step of merging multiple data packets in a preset format for fast data transmission specifically includes:

[0047] Receive data packets and parse them;

[0048] Extract terminal data, merge unsent terminal data, and reassemble the transmission message;

[0049] Send a message to the next higher-level node.

[0050] According to a second aspect of the present invention, a data transmission management system based on a wireless mesh is provided.

[0051] In one or more embodiments, preferably, the wireless mesh-based data transmission management system includes:

[0052] The device setup module is used to set up the MCU, RF wireless module, power supply module, indicator unit and wireless antenna as a data transmission device for wireless mesh-based applications.

[0053] The networking strategy module is used to configure the networking of equipment that performs wireless mesh-based data transmission with the gateway as the aggregation point.

[0054] The renetwork setup module is used to initiate a renetworking process when equipment based on wireless mesh data transmission starts up or is determined to be in a communication failure state.

[0055] The network self-test module is used for long-term self-testing of network communication.

[0056] The data disaster monitoring module is used to set up multi-level subordinate paths for each data transmission, and to determine in real time whether a data disaster has occurred in the system. If a data disaster occurs, the emergency networking plan for data disaster will be activated.

[0057] The node data aggregation and transmission module is used to merge multiple data packets in a preset format for fast data transmission.

[0058] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processor, implement the method as described in any one of the first aspects of the present invention.

[0059] According to a fourth aspect of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in any one aspect of the present invention.

[0060] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0061] In this invention, transmission efficiency is improved by 66.7% and network traffic is reduced through efficient transmission, data packet merging, and routing optimization.

[0062] The present invention designs a multi-level subordinate path and a dynamic networking mechanism, which can quickly restore communication in the event of data disaster or link interruption, and ensure the stable and uninterrupted data transmission of the street light system.

[0063] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.

[0064] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0065] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0066] Figure 1 This is a flowchart of a data transmission management method based on a wireless mesh according to an embodiment of the present invention.

[0067] Figure 2 This is a flowchart illustrating the configuration of an MCU, RF wireless module, power supply module, indicator unit, and wireless antenna in a wireless mesh-based data transmission management method according to an embodiment of the present invention, serving as a data transmission equipment for wireless mesh.

[0068] Figure 3 It is a typical data transmission device based on wireless mesh.

[0069] Figure 4 This is a flowchart illustrating the network setup of an equipment for wireless mesh-based data transmission management method according to an embodiment of the present invention, which uses a gateway as the aggregation point for wireless mesh-based data transmission.

[0070] Figure 5 This is a common tree-structured network diagram.

[0071] Figure 6 This is a flowchart illustrating the renetworking process initiated when a wireless mesh-based data transmission management method is started or determined to be in a communication failure state, according to an embodiment of the present invention.

[0072] Figure 7 A flowchart illustrating the communication process between terminals.

[0073] Figure 8 This is a flowchart of a long-term network communication self-test in a data transmission management method based on a wireless mesh according to an embodiment of the present invention.

[0074] Figure 9 This is a flowchart illustrating a wireless mesh-based data transmission management method according to an embodiment of the present invention, which sets up multi-level subordinate paths for each data transmission, determines in real time whether a data disaster has occurred in the system, and if so, activates an emergency network plan for the data disaster.

[0075] Figure 10 This is a flowchart illustrating a wireless mesh-based data transmission management method according to an embodiment of the present invention, which involves merging multiple data packets in a preset format for fast data transmission.

[0076] Figure 11 This is a process for setting up network optimization.

[0077] Figure 12 This is a structural diagram of a wireless mesh-based data transmission management system according to an embodiment of the present invention.

[0078] Figure 13 This is a structural diagram of an electronic device according to one embodiment of the present invention. Detailed Implementation

[0079] In some of the processes described in the specification, claims, and accompanying drawings of this invention, multiple operations appearing in a specific order are included. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or may be executed in parallel. The operation numbers, such as 101, 102, etc., are merely used to distinguish different operations and do not represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first," "second," etc., in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.

[0080] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0081] With the advancement of smart city construction, street lighting systems are transforming from simple lighting facilities into multifunctional IoT nodes, making the efficient transmission of massive amounts of sensor data and control commands crucial. A wireless mesh-based data transmission management approach, by constructing a multi-hop self-organizing network topology and utilizing collaborative relay between nodes to achieve data relay transmission, effectively overcomes the coverage limitations of traditional star networks and reduces reliance on fixed infrastructure. This innovative model not only significantly improves the stability and anti-interference capabilities of street lighting data transmission but also flexibly addresses signal attenuation and link interruption issues in complex environments through a dynamic routing adjustment mechanism, greatly enhancing the system's reliability and robustness. More importantly, its distributed architecture and low-power characteristics are well-suited to the wide-area distribution and power-constrained nature of street lighting networks. While reducing operation and maintenance costs, it provides robust data transmission guarantees for various applications such as intelligent urban lighting control, environmental monitoring, and traffic flow analysis, holding irreplaceable strategic significance for promoting refined urban management and improving public service levels.

[0082] Prior to this invention, existing wireless mesh-based data transmission management methods primarily employed WLAN Mesh based on 802.11s. Data exchange in this method largely relied on IP addresses, with data packets being reported layer by layer to the network layer, which then identified the data forwarding rules. This approach presented several challenges and critical issues: At the scheduling level, according to the seven-layer model defined by the International Organization for Standardization (ISO), the Mesh layer routing algorithm lacked a direct connection to the physical layer, making direct scheduling of the physical layer impossible. Physical layer scheduling depended on the data link layer, hindering flexible utilization of underlying resources. Regarding relay transmission, during data relay forwarding, data packets had to be passed layer by layer to the network layer for judgment. If a packet did not belong to a relay station, it had to be sent down layer by layer to the physical layer. This large volume of data exchange resulted in significant Mesh relay latency and low algorithm efficiency. From a network stability perspective, the inability to directly assess the real-time status of the physical layer led to the potential for sending network layer broadcast packets at inappropriate times during large-scale networking, triggering a "network storm." This resulted in the wireless mesh network being flooded with broadcast packets that could not carry valid data, severely impacting network performance. Furthermore, in some multi-hop wireless network data transmission scenarios, challenges arise from limited node energy and storage, as well as dynamic changes in network topology. Ensuring real-time and reliable data transmission within limited resources, while balancing data message delivery rate and energy consumption, becomes a key challenge in designing data transmission mechanisms. For example, in wireless sensor network applications, it's necessary to consider the instability of wireless link communication quality caused by node movement and environmental changes, evaluating link quality through methods such as path loss calculation. Simultaneously, it's crucial to consider node energy status and motion characteristics when selecting appropriate forwarding nodes. At the same time, it's essential to avoid the problem of redundant copies consuming excessive storage space and energy when using multiple copies to improve data message delivery rate.

[0083] This invention provides a data transmission management method and system based on a wireless mesh. The solution constructs a tree-like network based on a wireless mesh, sets the gateway as the aggregation point and optimizes the network topology, configures subordinate paths for data transmission, and employs methods such as packet merging. This achieves efficient and stable transmission of streetlight data, reduces transmission latency, improves transmission efficiency, enhances network disaster resistance and robustness, and ensures the data transmission needs of intelligent management of urban streetlight systems.

[0084] According to a first aspect of the present invention, a data transmission management method based on a wireless mesh is provided.

[0085] Figure 1 This is a flowchart of a data transmission management method based on a wireless mesh according to an embodiment of the present invention.

[0086] In one or more embodiments, preferably, the wireless mesh-based data transmission management method includes:

[0087] S101, configurable with MCU, RF wireless module, power supply module, indicator unit and wireless antenna, as a data transmission device for wireless mesh;

[0088] S102. Network setup for equipment that uses a gateway as the aggregation point for wireless mesh-based data transmission;

[0089] S103. When the equipment for data transmission based on the wireless mesh starts up or is determined to be in a communication failure state, initiate a re-networking process.

[0090] S104. Conduct long-term self-tests of network communication;

[0091] S105. Set up multi-level subordinate paths for each data transmission, and determine in real time whether a data disaster has occurred in the system. If it has, activate the emergency networking plan for data disaster.

[0092] S106. Merge multiple data packets in a preset format for fast data transmission.

[0093] This invention proposes a street light data transmission management method based on a wireless mesh. By constructing a tree-like network topology and a multi-level routing mechanism, it achieves efficient and reliable data transmission. The system uses a gateway as the aggregation point, automatically selects the optimal path by calculating the average transmission cost, and sets subordinate paths to handle traffic overload. A packet merging strategy is adopted to integrate multiple terminal data packets smaller than 16 bytes into a long message of up to 64 bytes, improving transmission efficiency by 66.7%. Simultaneously, the system possesses real-time self-checking and dynamic optimization capabilities: when single-path traffic exceeds 80%, distributed transmission is triggered, utilizing subordinate paths for traffic diversion; when node communication is abnormal, automatic re-networking is initiated. This method has been verified in a smart street light project, reducing network latency from 28ms to 22ms and packet loss rate from 4% to 2%, significantly improving the stability and resilience of street light data transmission and providing solid support for intelligent urban lighting management.

[0094] Figure 2 This is a flowchart illustrating the configuration of an MCU, RF wireless module, power supply module, indicator unit, and wireless antenna in a wireless mesh-based data transmission management method according to an embodiment of the present invention, serving as a data transmission equipment for wireless mesh.

[0095] like Figure 2 As shown, in one or more embodiments, preferably, the configuration of the MCU, RF wireless module, power supply module, indicator unit, and wireless antenna as a data transmission device for wireless mesh-based communication specifically includes:

[0096] S201, The equipment structure for data transmission based on wireless mesh communicates with the controller through the controller communication interface and performs data processing through the MCU;

[0097] S202, The MCU communicates with the RF wireless module and communicates with other wireless mesh-based data transmission equipment through the RF wireless module;

[0098] S203, The wireless antenna is connected to the RF wireless transceiver module to convert digital signals into wireless signals;

[0099] S204. The indicator unit is used to indicate the working status of the device;

[0100] S205, The power supply module supplies power to the device.

[0101] This embodiment provides a wireless mesh-based data transmission device. The device includes an MCU (Microcontroller Unit, a chip-level computer that integrates a computer's CPU, RAM, ROM, various I / O interfaces, interrupt system, timer / counter, etc., onto a single silicon chip, enabling data processing and control), an RF wireless module (Radio Frequency module, a module that uses radio frequency technology for wireless communication, enabling wireless data transmission and reception), a power supply module, an indicator unit, and a wireless antenna. The device communicates with a controller via a controller communication interface, for example, connecting to a street light controller using an RS485 communication interface to exchange data. The MCU processes the received data, performing operations such as data parsing, calculation, and storage. The MCU communicates with the RF wireless module, which in turn communicates with other wireless mesh-based data transmission devices to form a wireless mesh network. For example, in a city street light data transmission scenario, the RF wireless modules of multiple devices communicate with each other to relay street light data. The wireless antenna connects to the RF wireless transceiver module, converting the digital signals output by the RF wireless transceiver module into wireless signals for transmission, and simultaneously receiving wireless signals and converting them back into digital signals for transmission to the RF wireless transceiver module. The indicator unit uses LED indicators to show the device's operating status; for example, a solid green LED indicates normal operation, while a flashing red LED indicates a malfunction. The power supply module uses a lithium battery to power all components, ensuring normal operation and enabling wireless mesh-based data transmission. Figure 3The diagram illustrates a typical wireless mesh-based data transmission device comprising an MCU, an RF wireless module, a power supply module, an indicator unit, and a wireless antenna. The device communicates with a controller via a controller communication interface and performs data processing via the MCU. The MCU communicates with the RF wireless module, which in turn communicates with other wireless mesh-based data transmission devices. The wireless antenna connects to the RF wireless transceiver module to convert digital signals into wireless signals. The indicator unit indicates the device's operating status, and the power supply module provides power to the device.

[0102] Figure 4 This is a flowchart illustrating the network setup of an equipment for wireless mesh-based data transmission management method according to an embodiment of the present invention, which uses a gateway as the aggregation point for wireless mesh-based data transmission.

[0103] like Figure 4 As shown, in one or more embodiments, preferably, the networking setup of the equipment for data transmission based on a wireless mesh, with the gateway as the aggregation point, specifically includes:

[0104] S401. Using a gateway as the aggregation point, the scattered wireless mesh-based data transmission equipment is automatically organized into a tree-like network structure, where each wireless mesh-based data transmission equipment is an intermediate node or a leaf node.

[0105] S402. The cost of each wireless signal transmission is determined through testing. The cost of each transmission is the error content ratio, which is related to the transmission distance and the medium. It is determined through pre-testing. During the testing process, it is necessary to determine the cost of each transmission between each piece of equipment for data transmission based on the wireless mesh and its 8 closest physical points. The 8 points refer to the equipment for data transmission based on the wireless mesh.

[0106] S403. Calculate the cumulative value of each transmission cost for each scheme using the first calculation formula;

[0107] S404. Sequentially assuming the first to Nth devices for wireless mesh-based data transmission as aggregation points, when j is the aggregation point, the average transmission cost is calculated using the second calculation formula.

[0108] S405. Select the gateway with the lowest average transmission cost as the aggregation point;

[0109] S406. Sort the average transmission costs and select the equipment for data transmission based on wireless mesh corresponding to the second to fourth smallest average transmission costs as alternative gateways.

[0110] The first calculation formula is:

[0111] D=∏from i=1 to i=M (Ai)

[0112] Where Ai is the difference between the transmission cost of path 1 and the i-th path, i is the path number in the current scheme, M is the total number of path numbers in the current scheme, and D is the cumulative sum of transmission costs for each transmission.

[0113] The second calculation formula is:

[0114] Pj=(1-D1j)×(1-D2j)×…×(1-DNj))÷(N-1)

[0115] Where Pj is the average transmission cost, D1j, D2j, ..., DNj are the cumulative sum of transmission costs for each transmission from the aggregation point to the first to the Nth wireless mesh-based data transmission equipment, where Djj is 0, and N is the total number of wireless mesh-based data transmission equipment. Specifically, "transmission cost" refers to "error rate".

[0116] This embodiment provides a method for setting up a network of data transmission equipment based on a wireless mesh. A tree-like network structure is constructed using a gateway as the aggregation point. The specific implementation is as follows: 100 wireless mesh-based data transmission devices (hereinafter referred to as "equipment") are distributed within a 5 square kilometer park. Each device is equipped with an MCU, an RF wireless module, a power supply module, an indicator unit, and a wireless antenna. The devices communicate wirelessly with each other via the RF wireless module. One device is used as the initial gateway (aggregation point), and the remaining 99 devices are automatically arranged into a tree-like network structure, with each device serving as either an intermediate node or a leaf node. The wireless signal transmission cost between each device and its 8 closest physically located devices (i.e., 8 points) is determined through pre-testing. The transmission cost is a percentage of the error content, which is related to the transmission distance and the medium. For example, when testing the transmission cost between equipment A and its nearest equipment B, test points with distances of 10 meters, 20 meters, and 30 meters are set up between equipment A and equipment B, respectively. 1000 data transmission tests are performed at each test point, and the number of transmission errors is counted. The error percentages are calculated to be 2%, 5%, and 10%, respectively. The final transmission cost between equipment A and equipment B is determined to be 5% (taking the median value). Similarly, the transmission cost tests between all equipment and its eight nearest nearest equipment are completed. The first calculation formula D=∏(Ai) from i=1 to i=M(Ai) is used to calculate the cumulative transmission cost for each scheme, where Ai is the difference between the transmission cost of path 1 and the i-th path, i is the path number in the current scheme, M is the total number of path numbers in the current scheme, and D is the cumulative sum of the transmission costs for each transmission. For example, if a transmission path contains 3 sub-paths with transmission costs of 2%, 3%, and 4% respectively, then A1 = 1 - 2% = 0.98, A2 = 1 - 3% = 0.97, A3 = 1 - 4% = 0.96, and D = 0.98 × 0.97 × 0.96 ≈ 0.9126. Assuming the 1st to 100th equipment are used as the aggregation point, when the j-th equipment is used as the aggregation point, the average transmission cost is calculated using the second formula Pj = 1 - (D1j + D2j + ... + DNj) ÷ (N - 1), where Pj is the average transmission cost, D1j, D2j, ..., DNj are the cumulative sum of transmission costs from the aggregation point to the 1st to 100th equipment, Djj is 0, and N is the total number of equipment (100). For example, when the 50th piece of equipment is used as the convergence point, the cumulative transmission cost from it to the 1st piece of equipment is calculated as D1_50 = 0.92, the cumulative transmission cost to the 2nd piece of equipment is D2_50 = 0.93, ..., and the cumulative transmission cost to the 100th piece of equipment is D100_50 = 0.95 (D50_50 = 0). Then, P50 = 1 - (0.92 + 0.93 + ... + 0.95) ÷ 99 ≈ 0.05.The average transmission cost calculated when using 100 devices as aggregation points is sorted, and the device with the lowest average transmission cost is selected as the final gateway (aggregation point). For example, device 88 has the lowest average transmission cost of 0.03, so it is selected as the aggregation point. Simultaneously, the devices with the second to fourth lowest average transmission costs (e.g., devices 35, 62, and 91) are selected as backup gateways. If the primary gateway fails, a new aggregation point can be chosen from the backup gateways to ensure network stability and reliability.

[0117] It should be noted that a gateway acts as the aggregation point, automatically organizing scattered terminal devices into a tree-like network structure. Each terminal can be an intermediate node or a leaf node. A common diagram of an automatically formed tree-like network structure is shown below. Figure 5 As shown, the entire search process consists of three parts. The first part analyzes the cost of wireless signal transmission, which is essentially a loss of precision. For example, if the original transmitted data has an error of 0.01%, the precision loss is considered to be 0.01%. Generally, the transmission cost of wireless signals is mainly affected by two factors (distance and transmission medium), so it needs to be obtained through testing. The second part, based on the obtained transmission cost of the wireless signal, iterates through each possible path to form a total cumulative cost for each transmission. This is actually a product of multiple precision losses, where D is the cumulative cost for each transmission. The third part analyzes the average transmission cost generated by each point as a gateway, or as a convergence point. The point with the lowest cost is selected as the gateway, and three alternative gateways need to be set up for replacement in case of gateway failure.

[0118] Figure 6 This is a flowchart illustrating the renetworking process initiated when a wireless mesh-based data transmission management method is started or determined to be in a communication failure state, according to an embodiment of the present invention.

[0119] like Figure 6 As shown, in one or more embodiments, preferably, the step of initiating a renetworking process when the equipment for data transmission based on the wireless mesh starts up or is determined to be in a communication failure state specifically includes:

[0120] S601, The equipment for wireless mesh data transmission initiates a broadcast to acquire information from surrounding equipment for wireless mesh data transmission.

[0121] S602. Based on the aggregation point and alternative gateways, determine the optimal route;

[0122] S603. The remaining equipment for wireless mesh-based data transmission is divided into two categories: intermediate nodes and terminal nodes.

[0123] S604. The terminal node initiates a network formation request to the gateway.

[0124] S605. After receiving the networking request, the intermediate node forwards it to the superior node until it reaches the gateway device.

[0125] This embodiment provides a re-networking implementation method for wireless mesh-based data transmission equipment. Taking 50 wireless mesh-based data transmission devices (each device integrating an MCU, RF wireless module, power supply module, indicator unit, and wireless antenna) deployed on a city street as an example, when device number 15 shuts down due to power depletion and restarts, or device number 23 detects three consecutive communication failures with the gateway, the device automatically initiates a re-networking process. First, the device initiating the re-networking (such as device 15 or 23) broadcasts information about surrounding wireless mesh-based data transmission devices through its RF wireless module. Surrounding networked and online devices (such as devices numbered 14, 16, 22, and 24) receive the broadcast and return their own network information, including their node number, the hop count of their path (the hop count refers to the number of nodes data passes through from that node to the gateway, used to measure the length of the transmission path), etc. Taking equipment 15 as an example, it receives network information from equipment 14 showing a hop count of 3, equipment 16 showing 4, equipment 22 showing 5, and equipment 24 showing 6. Equipment 15 determines the optimal route based on these hop counts and, following the principle of minimum hop count, selects the path where equipment 14 is located as the optimal route, and initiates a network request to the gateway corresponding to this path (assuming the gateway number is 01). At this point, the remaining equipment transmitting data based on the wireless mesh is divided into intermediate nodes and terminal nodes. Equipment that has not initiated a network request and is in the middle of the data transmission path is an intermediate node (such as equipment 14), and equipment that initiates a network request is a terminal node (such as equipment 15). After receiving the network request from equipment 15, intermediate node equipment 14 forwards the request to its superior node (assuming the superior node is equipment 12), and equipment 12 continues to forward it to the superior node until the request is sent to gateway device 01. After receiving the networking request, gateway device 01 confirms the networking operation and sends the networking information of device 15 to the management platform, while also sending networking authorization information to device 15. This authorization information is forwarded sequentially down through intermediate nodes. Intermediate node device 12 receives the authorization information and forwards it to device 14, which then forwards it to terminal device 15. Upon receiving the networking authorization information, device 15 confirms successful networking and saves the networking status in its own storage unit. It also displays the successful networking status through an indicator unit (such as lighting a green LED), thus completing the entire renetworking process. Figure 7The diagram illustrates a communication process between terminals. A terminal initiates a broadcast to obtain information from surrounding nodes. Nearby, networked and online terminals return their own network information. Upon receiving information from other nodes, the terminal determines the optimal route based on the returned hop count and initiates a network formation request to the gateway. Intermediate nodes, upon receiving the request, forward it to their superior nodes until it reaches the gateway device. The gateway device, upon receiving the request, confirms the network formation and reports the network information to the platform. Simultaneously, it sends network authorization information to the terminal. Intermediate nodes, upon receiving the authorization information, forward it to their subordinate nodes. Finally, the terminal, upon receiving the authorization information, confirms successful network formation and saves the network status.

[0126] Figure 8 This is a flowchart of a long-term network communication self-test in a data transmission management method based on a wireless mesh according to an embodiment of the present invention.

[0127] like Figure 8 As shown, in one or more embodiments, preferably, the long-term network communication self-test specifically includes:

[0128] S801: The terminal node periodically initiates a communication status self-check to determine whether the terminal is communicating normally.

[0129] S802: If no signal is received from the superior node for an extended period, a heartbeat signal is sent to the superior node. If the superior node receives the heartbeat signal and is online, it responds with an acknowledgment signal. If the terminal receives the acknowledgment signal, it considers the terminal communication to be normal.

[0130] This embodiment provides a communication self-test implementation method for a data transmission device based on a wireless mesh. Taking 100 data transmission devices (hereinafter referred to as "terminals") deployed in a smart street light system as an example, terminal number 35 is configured to initiate a communication status self-test every 30 seconds. This terminal monitors the timestamp of the signal received by the RF wireless module from the upper-level node (numbered 20) through its MCU. When no signal is received from the upper-level node for 60 consecutive seconds (i.e., two self-test cycles), it is determined that "no signal has been received for a long time". At this time, the terminal automatically sends a heartbeat signal (a specific format data packet used to detect whether the communication link is normal) to the upper-level node 20. After receiving the heartbeat signal, the RF wireless module of the upper-level node 20 parses the signal and confirms that it is online (by detecting the voltage of the power supply module and judging the status of the indicator unit). Then, it immediately sends an acknowledgment signal (an acknowledgment data packet containing the node ID, timestamp, and checksum) to terminal 35 through its RF wireless module. If terminal 35 receives an acknowledgment signal via its RF wireless module within a 5-second timeout period after sending a heartbeat signal (this timeout period is pre-configured in the terminal's firmware), it considers communication with the upstream node to be normal and continues to maintain the current network state. If terminal 35 does not receive an acknowledgment signal within the timeout period, its MCU determines that communication has failed and immediately triggers a re-networking process: First, it initiates a broadcast to obtain information from surrounding nodes via its RF wireless module. Surrounding networked and online terminals (such as terminals numbered 34, 36, and 25) return their respective network information (including node ID, hop count, signal strength, etc.). Terminal 35's MCU calculates the optimal route based on this information (selecting the path with the fewest hops and a signal strength ≥ -80dBm). Assuming it chooses to connect to the gateway (numbered 01) via node 34, it sends a network request to node 34. Node 34, acting as an intermediate node, forwards the request to the upstream node, up to gateway 01. After confirming the network formation, the gateway sends authorization information to terminal 35. This information is forwarded level by level through intermediate nodes. After receiving the authorization information, terminal 35 saves the new network state and completes the reconstruction of the communication link.

[0131] Figure 9 This is a flowchart illustrating a wireless mesh-based data transmission management method according to an embodiment of the present invention, which sets up multi-level subordinate paths for each data transmission, determines in real time whether a data disaster has occurred in the system, and if so, activates an emergency network plan for the data disaster.

[0132] like Figure 9 As shown, in one or more embodiments, preferably, the step of setting up multi-level subordinate paths for each data transmission, and determining in real time whether a data disaster has occurred in the system, and if so, activating the data disaster emergency networking plan, specifically includes:

[0133] S901, The subordinate path is set to the path with the second smallest average transmission cost between the terminal node and the optimal route;

[0134] S902. If the transmission volume of a single path exceeds 80% of the total data transmission volume of the channel, it is considered that a data disaster has occurred on that path.

[0135] S903. When the emergency networking plan for data disaster is activated, a distributed transmission command is issued to the source location of the data disaster.

[0136] S904. When a distributed transmission command is received at the source location, supplementary transmission is performed on the subordinate path. The supplementary transmission does not mean retransmission, but rather the transmission of data that has not occurred before through the subordinate path. In addition, a judgment logic is set at the source location to prevent retransmission of duplicate information.

[0137] This embodiment provides a multi-level subordinate path and data disaster emergency handling implementation method for data transmission equipment based on a wireless mesh. Taking 150 wireless mesh-based data transmission devices (hereinafter referred to as "terminals") deployed in a smart transportation system as an example, terminals T1-T5 deployed at the main road intersection constitute key data acquisition nodes. The system sets up multi-level subordinate paths for each terminal. For example, the optimal route path for terminal T3 is T3→T7→T12→Gateway G1 (average transmission cost 0.05), and its subordinate path is set to T3→T8→T10→Gateway G1 (average transmission cost 0.07, the second lowest). The system monitors the data transmission volume of each path in real time. When the transmission volume of the path between terminals T7 and T12 reaches 81% of the total data transmission volume of the channel (e.g., total bandwidth 10Mbps, current traffic 8.1Mbps), it determines that a data disaster has occurred on that path. Here, "total data transmission volume of the channel" refers to the theoretical maximum bandwidth. Gateway G1 immediately sends a distributed transmission command to the source of the data disaster (i.e., terminal T7, which caused the traffic limit to be exceeded by sending data). After receiving the command, the MCU of terminal T7 initiates a supplementary transmission mechanism via the subordinate path: it continues to transmit real-time collected traffic flow data (such as vehicle speed and traffic volume) through the main path, while simultaneously supplementing the transmission of historical data (such as the intersection congestion index from 5 minutes ago) that was not sent due to a full buffer through the subordinate path T7→T9→T11→Gateway G1. To avoid duplicate transmissions, the MCU of terminal T7 sets up a judgment logic in the transmission buffer: it generates a hash value (a fixed-length string calculated from the data content to uniquely identify the data) for the data to be transmitted and compares it with the list of hash values ​​of already transmitted data. For example, if the calculated hash value of the traffic event alarm information to be transmitted is "ABC123", if this value already exists in the hash value list, it is determined to be duplicate information and will not be transmitted through the subordinate path. This mechanism alleviates the pressure on the main path and avoids the impact of redundant data on the entire network. During data disaster emergency handling, the system continuously monitors the load of each path. When the traffic on the primary path drops below a threshold (e.g., 70%), gateway G1 sends a recovery command to terminal T7. Terminal T7 then gradually reduces the data transmission volume on the subordinate paths, eventually restoring normal single-path transmission mode. This implementation effectively solves network congestion problems caused by sudden traffic surges (such as packet-sweeping attacks or abnormal data collection), ensuring reliable transmission of critical data. Multi-level subordinate paths are set up for each data transmission, and the system is monitored in real time for data disasters. If a data disaster occurs, an emergency network contingency plan is activated.

[0138] Figure 10 This is a flowchart illustrating a wireless mesh-based data transmission management method according to an embodiment of the present invention, which involves merging multiple data packets in a preset format for fast data transmission.

[0139] like Figure 10 As shown, in one or more embodiments, preferably, the step of merging multiple data packets in a preset format for fast data transmission specifically includes:

[0140] S1001. Receive the data packet and parse the data packet;

[0141] S1002. Extract terminal data, merge unsent terminal data, and reassemble the transmission message;

[0142] S1003, Send a message to the next higher level node.

[0143] This embodiment provides a data packet merging and transmission implementation method for a data transmission equipment based on a wireless mesh. Taking a smart street light system with 200 terminal nodes (street light devices) as an example, each terminal node collects monitoring data such as light intensity, current, and voltage every 5 minutes, generating a data packet with a length of 12 bytes. The system uses a preset PHY message format for data transmission, where the maximum length of the wireless data packet is 64 bytes, and the data area can accommodate multiple terminal data packets. The relay node R12 (as the superior routing node) deployed at the street intersection receives data packets from subordinate terminal nodes T31-T40 in real time. When the RF wireless module of relay node R12 receives a data packet sent by terminal T35, its MCU first parses the packet: extracting fields such as length (0x0C, indicating 12 bytes), type (0x03, indicating street light monitoring data), and version (0x01, indicating protocol version 1.0) from the header, and verifying the validity of the frame sequence number frameSeq (0x18) and sender ID sender (0x0023, i.e., T35). Subsequently, the MCU extracts the terminal data (including 10 bytes of net data such as illumination value of 500 lux and voltage of 225V) from the data area and stores it in a 60-byte merge buffer. The MCU of relay node R12 monitors the merge buffer status in real time. When it receives a data packet (12 bytes long) from terminal T36 (ID: 0x0024), it finds that the buffer is already occupied by 24 bytes (12+12), which is still less than the maximum capacity of 60 bytes. Therefore, it appends T36's data to the buffer according to the specified format. At this point, if a data packet (14 bytes long) is received from terminal T37 (ID: 0x0025), the buffer usage will reach 38 bytes (24+14), which is still within the threshold, so merging continues. When a data packet is received from terminal T38, the total buffer length reaches 50 bytes. The MCU determines that receiving another data packet may cause an overflow (50+12=62>60), and thus triggers the sending process. The MCU reassembles and sends the message according to the preset format: constructs a header (length=0x32, i.e., 50 bytes, type=0x03, version=0x01, frameSeq=0x2A, gwID=0x0001, sender=0x000C, i.e., R12, receiver=0x0001, i.e., gateway), and arranges the terminal data in the data area in sequence: 0x0023 (T35) + 0x0A (data length) + illumination voltage data (10 bytes) + 0x0024 (T36) + 0x0A (data length) + corresponding data (10 bytes) + 0x0025 (T37) + 0x0C (data length) + corresponding data (12 bytes) + 0x0026 (T38) + 0x0A (data length) + corresponding data (10 bytes).The reassembled complete message, totaling 64 bytes, is sent to the next-level node R5 via the RF wireless module, and then forwarded layer by layer by R5 to the aggregation gateway G1. At the gateway, the MCU parses the merged data according to the terminal ID and stores the data from each terminal in its corresponding database. Through this merging transmission strategy, the original 48 bytes of data (4×12) that needed to be sent four times is compressed into a single 64-byte transmission, improving data transmission efficiency by 66.7% while reducing the number of packets in the network and lowering the probability of collisions.

[0144] Figure 11 This is a process for setting up network optimization. The routing path after a terminal successfully forms a network may not be the optimal path, and the network routing path needs to be optimized through the network optimization process. Each networked terminal periodically sends network status information to surrounding terminals. After receiving the network status information, the surrounding terminals determine whether there is a better routing path. If there is a better path, they initiate a network formation request to the gateway.

[0145] According to a second aspect of the present invention, a data transmission management system based on a wireless mesh is provided.

[0146] Figure 12 This is a structural diagram of a wireless mesh-based data transmission management system according to an embodiment of the present invention.

[0147] In one or more embodiments, preferably, the wireless mesh-based data transmission management system includes:

[0148] The device setup module 1201 is used to set up the MCU, RF wireless module, power supply module, indicator unit and wireless antenna as a data transmission device for wireless mesh;

[0149] The networking strategy module 1202 is used for networking settings of equipment that performs wireless mesh-based data transmission with the gateway as the aggregation point;

[0150] The renetwork setup module 1203 is used to initiate a renetworking process when equipment based on wireless mesh data transmission starts up or is determined to be in a communication failure state.

[0151] The network self-test module 1204 is used for long-term self-testing of network communication.

[0152] The data disaster monitoring module 1205 is used to set up multi-level subordinate paths for each data transmission, and to determine in real time whether a data disaster has occurred in the system. If a data disaster occurs, the emergency networking plan for data disaster will be activated.

[0153] The node data aggregation and transmission module 1206 is used to merge multiple data packets in a preset format for fast data transmission.

[0154] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processor, implement the method as described in any one of the first aspects of the present invention.

[0155] According to a fourth aspect of the present invention, an electronic device is provided. Figure 13 This is a structural diagram of an electronic device according to one embodiment of the present invention. Figure 13 The electronic device shown is a general-purpose wireless mesh-based data transmission management device. (Refer to...) Figure 13 The electronic device 1300 includes one or more (only one is shown in the figure) processors 1302, memory 1304, and wireless module 1306 coupled to each other. The memory 1304 stores programs that can execute the contents of the foregoing embodiments, and the processor 1302 can execute the programs stored in the memory 1304.

[0156] The processor 1302 may include one or more processing cores. The processor 1302 connects to various parts within the electronic device 1300 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1304, and by calling data stored in the memory 1304. Optionally, the processor 1302 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1302 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and target applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1302 and may be implemented separately using a communication chip.

[0157] The memory 1304 may include random access memory (RAM) or read-only memory (ROM). The memory 1304 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1304 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 1300 during use (such as the aforementioned text documents).

[0158] The wireless module 1306 is used to receive and transmit electromagnetic waves, realizing the mutual conversion between electromagnetic waves and electrical signals, thereby communicating with communication networks or other devices, such as communicating with base stations based on mobile communication protocols. The wireless module 1306 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM cards), memory, etc. The wireless module 1306 can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other electronic devices through wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks (WLANs), or metropolitan area networks (MANs). The aforementioned wireless networks can use various communication standards, protocols, and technologies, including but not limited to WLAN and Bluetooth protocols, and may even include protocols that are not yet developed.

[0159] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0160] In this invention, transmission efficiency is improved by 66.7% and network traffic is reduced through efficient transmission, data packet merging, and routing optimization.

[0161] The present invention designs a multi-level subordinate path and a dynamic networking mechanism, which can quickly restore communication in the event of data disaster or link interruption, and ensure the stable and uninterrupted data transmission of the street light system.

[0162] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0163] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0164] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0165] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0166] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A data transmission management method based on a wireless mesh, characterized in that, The method includes: It is equipped with an MCU, an RF wireless module, a power supply module, an indicator unit, and a wireless antenna as a data transmission device for wireless mesh-based applications. Network configuration for equipment that uses a gateway as the aggregation point for wireless mesh-based data transmission; When equipment that transmits data via wireless mesh is started or is determined to be in a communication failure state, a re-networking process is initiated. Regularly perform self-checks on network communications; Set up multi-level subordinate paths for each data transmission, and determine in real time whether a data disaster has occurred in the system. If so, activate the emergency network plan for data disaster. Multiple data packets are merged into a preset format for fast data transmission; The networking setup for the equipment that uses a gateway as the aggregation point to perform wireless mesh-based data transmission specifically includes: Using a gateway as the aggregation point, the scattered wireless mesh-based data transmission equipment is automatically organized into a tree-like network structure, with each wireless mesh-based data transmission equipment serving as an intermediate node or a leaf node. The cost per wireless signal transmission is determined through testing. This cost per transmission is defined as the error content ratio, which is related to the transmission distance and the medium. The cost is determined through pre-testing. During the testing process, the cost per transmission for each device transmitting data based on the wireless mesh needs to be determined for its eight closest physical points. These eight points refer to the devices transmitting data based on the wireless mesh. The cumulative cost per transmission for each scheme is calculated using the first calculation formula; Assuming the first to Nth wireless mesh-based data transmission equipment as the aggregation point, when j is the aggregation point, the average transmission cost is calculated using the second calculation formula. Choose the gateway with the lowest average transmission cost as the aggregation point; The average transmission costs are sorted, and the equipment for data transmission based on the wireless mesh corresponding to the second to fourth smallest average transmission costs in the sort is selected as the alternative gateway. The first calculation formula is: D=∏from i=1 to i=M(Ai) Where Ai is the difference between the transmission cost of path 1 and the i-th path, i is the path number in the current scheme, M is the total number of path numbers in the current scheme, and D is the cumulative sum of transmission costs for each transmission. The second calculation formula is: Pj=(1-D1j)×(1-D2j)×…×(1-DNj))÷(N-1) Where Pj is the average transmission cost, D1j, D2j, ..., DNj are the cumulative sum of transmission costs for each transmission from the aggregation point to the first to the Nth wireless mesh-based data transmission equipment, where Djj is 0 and N is the total number of wireless mesh-based data transmission equipment.

2. The data transmission management method based on wireless mesh as described in claim 1, characterized in that, The setup includes an MCU, an RF wireless module, a power supply module, an indicator unit, and a wireless antenna, serving as a data transmission device for wireless mesh-based communication. Specifically, it comprises: The equipment structure for data transmission based on wireless mesh communicates with the controller through the controller communication interface and performs data processing through the MCU; The MCU communicates with the RF wireless module and communicates with other wireless mesh-based data transmission equipment through the RF wireless module. The wireless antenna is connected to the RF wireless transceiver module to convert digital signals into wireless signals; The indicator unit is used to indicate the working status of the device; The power supply module provides power to the device.

3. The data transmission management method based on wireless mesh as described in claim 1, characterized in that, When the equipment for data transmission based on the wireless mesh starts up or is determined to be in a communication failure state, a re-networking process is initiated, which specifically includes: The equipment that transmits data via wireless mesh initiates a broadcast to acquire data from surrounding equipment that transmits data via wireless mesh. Based on the aggregation point and alternative gateways, the optimal route is determined. The remaining wireless mesh-based data transmission equipment is divided into two categories: intermediate nodes and terminal nodes. The terminal node initiates a network formation request to the gateway; After receiving the networking request, the intermediate node forwards it to the upstream node until it reaches the gateway device.

4. The data transmission management method based on wireless mesh as described in claim 1, characterized in that, The long-term self-test for network communication specifically includes: Terminal nodes periodically initiate communication status self-checks to determine whether the terminal is communicating normally; If no signal is received from the superior node for an extended period, a heartbeat signal is sent to the superior node. If the superior node receives the heartbeat signal and is online, it responds with an acknowledgment signal. If the terminal receives the acknowledgment signal, it considers the terminal communication to be normal.

5. The data transmission management method based on wireless mesh as described in claim 3, characterized in that, The system sets up multi-level subordinate paths for each data transmission, and determines in real time whether a data disaster has occurred in the system. If a data disaster occurs, the emergency network plan for data disasters is activated, specifically including: The subordinate path is set to the path with the second smallest average transmission cost between the terminal node and the optimal route; If the transmission volume of a single path exceeds 80% of the total transmission volume of the channel in real-time data transmission, the path is considered to have experienced a data disaster. In the event of activating the emergency networking plan for data disasters, a distributed transmission command is issued to the source location of the data disaster. When a distributed sending command is received at the source location, supplementary sending is performed on the subordinate path. This supplementary sending does not mean retransmission, but rather sending data that has not occurred before through the subordinate path. In addition, a judgment logic is set at the source location to prevent retransmission of duplicate information.

6. The data transmission management method based on wireless mesh as described in claim 1, characterized in that, The method of merging multiple data packets in a preset format for fast data transmission specifically includes: Receive data packets and parse them; Extract terminal data, merge unsent terminal data, and reassemble the transmission message; Send a message to the next higher-level node.

7. A data transmission management system based on a wireless mesh, characterized in that, The system is used to implement the method as described in any one of claims 1-6, the system comprising: The device setup module is used to set up the MCU, RF wireless module, power supply module, indicator unit and wireless antenna as a data transmission device for wireless mesh-based applications. The networking strategy module is used to configure the networking of equipment that performs wireless mesh-based data transmission with the gateway as the aggregation point. The renetwork setup module is used to initiate a renetworking process when equipment based on wireless mesh data transmission starts up or is determined to be in a communication failure state. The network self-test module is used for long-term self-testing of network communication. The data disaster monitoring module is used to set up multi-level subordinate paths for each data transmission, and to determine in real time whether a data disaster has occurred in the system. If a data disaster occurs, the emergency networking plan for data disaster will be activated. The node data aggregation and transmission module is used to merge multiple data packets in a preset format for fast data transmission.

8. A computer-readable storage medium storing computer program instructions thereon, characterized in that, The computer program instructions, when executed by a processor, implement the method as described in any one of claims 1-6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Multistage wireless forwarding street lamp Internet of Things node equipment

    CN115914291A

  • Named data network hybrid congestion control method based on data packet queuing time delay

    CN116582489A