A wireless data synchronization acquisition method and system

By using synchronous beacons in the wireless sensor network to update the RTC clock system and time division multiple access transmission, and optimize the sampling time gap, the time consistency problem of sensor nodes is solved, high-precision data synchronization acquisition and reliable transmission are achieved, and communication blockage is avoided.

CN119584272BActive Publication Date: 2025-08-05IDQ SCIENCE & TECHNOLOGY DEVELOPMENT (GUANGDONG HENGQIN) CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411752137.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2024-10-25
Filing Date
2024-12-02
Publication Date
2025-08-05
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

In wireless sensor networks, the prior art is difficult to ensure the time consistency of the acquisition of commands to the sensor nodes, resulting in poor data synchronization, low transmission stability and reliability, and retransmission of data packets causes communication links to be blocked and waste resources.

Method used

The synchronization beacon is sent through the gateway, and the sensor node updates the RTC clock system, optimizes the sampling time and transmission time gap, and uses time-division multiple access to transmit data, retransmits unconfirmed data until successful, and maintains synchronization when the signal is lost by combining the clock prediction algorithm.

Benefits of technology

It improves the accuracy of synchronous acquisition of sensor data, ensures the integrity and reliability of data transmission, avoids communication link blockage, and improves the transmission success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584272B_ABST
    Figure CN119584272B_ABST
Patent Text Reader

Abstract

The present invention provides a wireless data synchronization acquisition method and system, which relates to the field of data transmission technology. The method includes: a gateway sends a synchronization beacon to a wireless sensor node; when the wireless sensor node receives the synchronization beacon, it extracts the RTC timestamp in the synchronization beacon and updates the internal RTC clock system; the wireless sensor node optimizes the sampling time and the transmission time interval; the wireless sensor node uses the optimized sampling time and the transmission time interval to synchronously acquire sensor data; the wireless sensor node sends the collected sensor data to the gateway according to time division multiple access; when the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node; when the wireless sensor node does not receive the confirmation message within a preset time length, it retransmits the same sensor data in the next time slot until the gateway confirms successful reception. The present invention can improve the accuracy of sensor data synchronization acquisition and ensure the integrity of sensor data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a method and system for synchronously collecting wireless data. Background Art

[0002] During the use of wireless sensors, certain specific usage scenarios require high temporal consistency and continuity of collected data, so the synchronous acquisition technology of sensors is extremely important.

[0003] However, for wireless sensor networks, data collection is affected by multiple factors, including wireless frequency, data transmission length, bandwidth, number of nodes, and redundancy checks. Achieving a high degree of synchronized data collection is difficult. Furthermore, data asynchrony reduces transmission stability and can lead to packet loss at the receiving end, further reducing data transmission reliability.

[0004] To improve data synchronization, existing technologies have attempted to incorporate various time synchronization algorithms into synchronization technologies, such as reference message time synchronization, delay measurement time synchronization, and wireless sensor network time synchronization protocols. Although these methods can ensure the consistency of data collection time between the gateway and sensor nodes, they cannot guarantee the consistency of the time when data collection commands are sent to the sensor nodes.

[0005] To address the issue of partial data loss, existing technologies primarily use buffered retransmission methods to improve data integrity and reliability in wireless communications. However, these methods are less effective when wireless communication interference is high and transmission paths are poor. This can lead to multiple data packet retransmissions, resulting in data congestion in the wireless communication chain, reducing data transmission reliability and wasting system transmission resources. Summary of the Invention

[0006] In order to solve the technical problem in the prior art that the time consistency of acquisition commands to sensor nodes cannot be ensured, and multiple retransmissions of data packets are required, resulting in data congestion in the wireless communication chain, thereby reducing the reliability of data transmission and wasting system transmission resources, the present invention provides a wireless data synchronization acquisition method and system.

[0007] The technical solutions provided by the embodiments of the present invention are as follows:

[0008] First aspect:

[0009] An embodiment of the present invention provides a method for synchronously collecting wireless data, comprising:

[0010] S1: The gateway sends a synchronization beacon to the wireless sensor node;

[0011] S2: When the wireless sensor node receives the synchronization beacon, it extracts the RTC timestamp in the synchronization beacon and updates the internal RTC clock system;

[0012] S3: The wireless sensor node optimizes the sampling time and sending time interval according to the updated RTC clock system;

[0013] S4: The wireless sensor nodes use the optimized sampling time and transmission time interval to synchronously collect sensor data;

[0014] S5: The wireless sensor node sends the collected sensor data to the gateway according to time division multiple access;

[0015] S6: When the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node;

[0016] S7: When the wireless sensor node does not receive the confirmation message within the preset time period, it retransmits the same sensor data in the next time slot until the gateway confirms successful reception.

[0017] Second aspect:

[0018] An embodiment of the present invention provides a wireless data synchronization acquisition system, comprising:

[0019] processor;

[0020] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the wireless data synchronization acquisition method as described in the first aspect is implemented.

[0021] The third aspect:

[0022] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for synchronously collecting wireless data as described in the first aspect is implemented.

[0023] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0024] (1) In the present invention, the wireless sensor node updates the internal RTC clock system based on the synchronization beacon and optimizes the sampling time and the sending time interval to ensure the time consistency of the acquisition command to the sensor node and improve the accuracy of the synchronous acquisition of sensor data.

[0025] (2) In the present invention, the wireless sensor node sends the collected sensor data to the gateway according to time division multiple access; when the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node; when the wireless sensor node does not receive the confirmation message within the preset time length, it retransmits the same sensor data in the next time slot until the gateway confirms that the reception is successful, thereby avoiding wireless communication chain data congestion, maximizing the sensor data transmission success rate, and ensuring the integrity of sensor data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 A schematic diagram of a flow chart of a wireless data synchronization acquisition method provided by an embodiment of the present invention;

[0028] Figure 2 A schematic structural diagram of a wireless data synchronization acquisition system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0030] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as an "exemplary" in the present invention should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner. Furthermore, in the embodiments of the present invention, "and / or" can mean both or either of the two.

[0031] In the embodiments of the present invention, the terms "image" and "picture" may be used interchangeably. It should be noted that, when the distinction between them is not emphasized, their intended meanings are the same. The terms "of," "corresponding," and "corresponding" may be used interchangeably. It should be noted that, when the distinction between them is not emphasized, their intended meanings are the same.

[0032] In the embodiments of the present invention, sometimes a subscript such as W1 may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0033] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0034] Reference Manual Figure 1 , which shows a flow chart of a wireless data synchronization acquisition method provided by an embodiment of the present invention.

[0035] An embodiment of the present invention provides a method for synchronously collecting wireless data. The method can be implemented by a wireless data synchronous collection device, which can be a terminal or a server. The processing flow of the method for synchronously collecting wireless data can include the following steps:

[0036] S1: The gateway sends synchronization beacons to the wireless sensor nodes.

[0037] Among them, the synchronization beacon is located between the gateway and the wireless sensor node, and is responsible for transmitting accurate time information throughout the network to ensure that the clocks of all nodes remain synchronized.

[0038] Furthermore, the synchronization beacon can provide a high-precision RTC timestamp that includes temperature compensation.

[0039] In addition, the drift rate of the provided RTC timestamp is within ±5ppm over the entire temperature range, which can greatly improve the synchronization between the gateway and wireless sensor nodes, and can achieve an accuracy range of ±50μs in terms of value.

[0040] In a possible implementation, S1 specifically includes sub-steps S101 and S102:

[0041] S101: The gateway sends a synchronization beacon to the router.

[0042] It should be noted that wireless sensor networks typically have a large range, and the gateway's signal may not be able to directly reach all sensor nodes, especially in large-scale networks where sensor nodes are distributed over distant areas. The introduction of routers allows the gateway to forward beacons over multiple hops, ensuring that even remote sensor nodes receive synchronization information.

[0043] Furthermore, if routers forward beacons at the same time, beacon collisions can occur. To avoid collisions, each router in the network should back off for a period of time before forwarding a beacon, and forward beacons sequentially. To manage temporal order, each router can obtain a device serial number from its parent node after joining the network. Therefore, a beacon collision avoidance algorithm is introduced.

[0044] S102: When a router receives a synchronization beacon, it calculates a backoff time using a beacon collision avoidance algorithm to avoid conflicts caused by multiple routers forwarding beacons at the same time.

[0045] Optionally, the backoff time is:

[0046]

[0047] Among them, T s Represents the backoff time, T a Indicates the basic beacon interval, K i represents the total number of routers associated with the i-th peer router, and n represents the total number of peer routers.

[0048] Routers associated with the same router are called peer routers.

[0049] It should be noted that the beacon collision avoidance algorithm is used to ensure that the peer routers with smaller device serial numbers have completed beacon forwarding and that the routers in the cluster to which these peer routers belong have also completed beacon forwarding.

[0050] In this invention, a beacon collision avoidance algorithm is used to forward beacons in the order of device serial numbers, effectively avoiding signal conflicts and improving communication reliability and network synchronization accuracy. This not only optimizes network resource utilization and reduces transmission latency, but also enhances network scalability and dynamic adaptability. Most importantly, it ensures orderly synchronization within and between clusters, helping to ensure time consistency and efficient data transmission across the entire network.

[0051] S2: When the wireless sensor node receives the synchronization beacon, it extracts the RTC timestamp in the synchronization beacon and updates the internal RTC clock system.

[0052] It should be noted that updating the internal RTC clock system can ensure that the time of the sensor node and the time of beacon transmission are highly consistent.

[0053] S3: The wireless sensor node optimizes the sampling time and the sending time interval according to the updated RTC clock system.

[0054] It should be noted that the updated RTC clock system optimizes sampling time and transmission time intervals to ensure synchronous data collection across the entire wireless sensor network, with a synchronization accuracy of up to ±50μs.

[0055] In a possible implementation, S3 specifically includes: the wireless sensor node optimizes the sampling time and the sending time interval based on the updated RTC clock system and introduces a delay calibration mechanism.

[0056] In a possible implementation, S3 specifically includes sub-steps S301 to S303:

[0057] S301: Determine the maximum beacon transmission delay of the sensor network:

[0058] T c =T a ×(K0+1)

[0059] Among them, T c represents the maximum beacon transmission delay, T a represents the basic beacon interval, and K0 represents the total number of routers in the sensor network.

[0060] It's important to note that calculating the maximum beacon transmission delay in the sensor network ensures that nodes adjust their time accordingly. Because beacons are transmitted between different routers, transmission delay is inevitable. By determining the maximum delay value, all nodes in the network can obtain the same time reference, reducing clock skew between nodes.

[0061] S302: Determine a beacon transmission delay compensation value with the goal of ensuring the maximum beacon transmission delay:

[0062]

[0063] Among them, T b represents the beacon transmission delay compensation value, T tx represents the beacon forwarding time between nodes, d represents the number of hops between the sensor node and the gateway, T sj represents the backoff time of the jth router from the gateway to the sensor node, and m represents the total number of routers from the gateway to the sensor node.

[0064] It's important to note that nodes can compensate for delays caused by multi-hop beacon transmissions by calculating the beacon transmission delay compensation value. Each node applies delay compensation based on the number of hops between itself and the gateway and the backoff time of each router. This approach effectively reduces time deviations introduced by varying beacon transmission paths and improves time synchronization accuracy.

[0065] S303: Optimize the sampling time and the sending time interval according to the updated RTC clock system and the beacon transmission delay compensation value.

[0066] In this invention, a delay compensation mechanism allows nodes to optimize data sampling times and transmission time intervals based on updated RTC clock systems and transmission delay compensation values. The optimized sampling times ensure that all nodes synchronously collect data within consistent time intervals, thus avoiding data time misalignment. Furthermore, the optimized transmission time intervals reduce data conflicts between nodes, ensuring orderly and efficient communication.

[0067] S4: The wireless sensor nodes use the optimized sampling time and sending time interval to synchronously collect sensor data.

[0068] S5: The wireless sensor node sends the collected sensor data to the gateway according to time division multiple access.

[0069] Time Division Multiple Access (TDMA) is a multiple access technology used to transmit data over a shared communication channel. It divides time into multiple time slots and assigns them to different users or nodes, enabling them to use the same communication channel at different times without signal collisions. TDMA is widely used in wireless communication systems, particularly in wireless sensor networks (WSNs).

[0070] S6: When the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node.

[0071] S7: When the wireless sensor node does not receive the confirmation message within the preset time period, it retransmits the same sensor data in the next time slot until the gateway confirms successful reception.

[0072] Specifically, the retransmission module consists of a buffer, a wireless communication system, and a data processing system. The buffer receives the timestamp sent by the beacon, and the data processing system extracts data from the buffer and sends the data packets to the gateway in a first-in, first-out manner. The gateway immediately sends an acknowledgment message to the sensor node after receiving each data packet. If the node does not receive the acknowledgment message within a certain time range, the data processing system retransmits the same data packet to the gateway in the next allocated time slot until the sensor node receives the acknowledgment message. The time slots mentioned are determined by the wireless communication system. Wireless communication systems often use time division multiple access, or TDMA networks, to avoid conflicts. Based on the TDMA network within the wireless communication system, the appropriate time slots will be allocated to each sensor node to schedule the transmission of buffered data.

[0073] Optionally, the time division multiple access allocates at least 50% of the time slots for retransmitting sensor data.

[0074] In the present invention, through the retransmission mechanism, the wireless communication system can maximize the transmission success rate of communication and ensure the integrity of sensor data transmission even in harsh environments such as multi-path, moving parts and other abnormal situations.

[0075] In actual applications, nodes may intermittently fail to receive synchronization beacons due to signal loss, network delays, etc. The clock prediction algorithm allows nodes to maintain good time synchronization accuracy even when no beacons are received, which is particularly important for improving system robustness.

[0076] In a possible implementation manner, after S1, the method further includes:

[0077] S8: When the wireless sensor node does not receive the synchronization beacon, it updates the internal RTC clock system through the clock prediction algorithm.

[0078] In a possible implementation, updating the internal RTC clock system by using a clock prediction algorithm in S8 specifically includes sub-steps S801 to S804:

[0079] S801: Calculate the clock change in each time interval:

[0080] ΔC k =C k -C k-1

[0081] Where, ΔC k represents the clock change in the kth time interval, C k represents the reference clock value at time k, C k-1 Indicates the reference clock value at time k-1.

[0082] S802: Predict the clock change in the next time interval based on the clock change in each time interval:

[0083]

[0084] in, represents the predicted clock change in the k+1th time interval.

[0085] It's important to note that by taking a weighted average of the clock changes within each time interval, we can improve clock prediction accuracy, reduce the impact of jitter on synchronization, and mitigate errors caused by clock drift and beacon loss. This method combines information from recent and historical clock changes, adapting to dynamic changes while ensuring the stability of the synchronization process.

[0086] S803: Predict the reference clock value at the next moment based on the predicted clock change in the next time interval:

[0087]

[0088] in, Indicates the reference clock value at time k+1.

[0089] S804: Update the internal RTC clock system according to the predicted value of the reference clock value at the next moment.

[0090] In this invention, when a wireless sensor node fails to receive a synchronization beacon in a timely manner due to signal interference, path obstruction, or other reasons, the clock prediction algorithm ensures that the node's time remains closely synchronized with the reference clock. By predicting clock changes, the node can estimate the next reference time based on the existing time information, thereby maintaining the accuracy of the internal RTC clock.

[0091] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0092] (1) In the present invention, the wireless sensor node updates the internal RTC clock system based on the synchronization beacon and optimizes the sampling time and the sending time interval to ensure the time consistency of the acquisition command to the sensor node and improve the accuracy of the synchronous acquisition of sensor data.

[0093] (2) In the present invention, wireless sensor nodes transmit collected sensor data to the gateway using time division multiple access (TDMA). When the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node. If the wireless sensor node does not receive the confirmation message within a preset time, it retransmits the same sensor data in the next time slot until the gateway confirms successful reception. This avoids data congestion in the wireless communication chain, maximizes the transmission success rate of sensor data, and ensures the integrity of sensor data transmission.

[0094] Reference Manual Figure 2 , which shows a structural diagram of a wireless data synchronization acquisition system provided by the present invention.

[0095] The present invention further provides a wireless data synchronization acquisition system 20, which is applied to the above-mentioned wireless data synchronization acquisition method, comprising:

[0096] Processor 201.

[0097] The memory 202 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 201 , the wireless data synchronization acquisition method of the method embodiment is implemented.

[0098] The wireless data synchronous acquisition system 20 provided by the present invention can execute the above-mentioned wireless data synchronous acquisition method and achieve the same or similar technical effects. To avoid repetition, the present invention will not elaborate on it again.

[0099] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0100] (1) In the present invention, the wireless sensor node updates the internal RTC clock system based on the synchronization beacon and optimizes the sampling time and the sending time interval to ensure the time consistency of the acquisition command to the sensor node and improve the accuracy of the synchronous acquisition of sensor data.

[0101] (2) In the present invention, the wireless sensor node sends the collected sensor data to the gateway according to time division multiple access; when the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node; when the wireless sensor node does not receive the confirmation message within the preset time length, it retransmits the same sensor data in the next time slot until the gateway confirms that the reception is successful, thereby avoiding wireless communication chain data congestion, maximizing the sensor data transmission success rate, and ensuring the integrity of sensor data transmission.

[0102] It should be understood that the processor in the embodiments of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0103] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0104] The above embodiments can be implemented in whole or in part through software, hardware (such as circuits), firmware, or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired method (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains a collection of one or more available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, or magnetic tape), an optical medium (such as a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0105] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0106] In this disclosure, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, "at least one of a, b, or c" can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0107] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0108] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0109] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0110] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of the device or unit, which can be electrical, mechanical or other forms.

[0111] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0112] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0113] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0114] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for synchronously collecting wireless data as described in the method embodiment is implemented.

[0115] The computer-readable storage medium provided by the present invention can implement the steps and effects of the wireless data synchronization acquisition method of the above method embodiment. To avoid repetition, the present invention will not elaborate on them.

[0116] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0117] (1) In the present invention, the wireless sensor node updates the internal RTC clock system based on the synchronization beacon and optimizes the sampling time and the sending time interval to ensure the time consistency of the acquisition command to the sensor node and improve the accuracy of the synchronous acquisition of sensor data.

[0118] (2) In the present invention, the wireless sensor node sends the collected sensor data to the gateway according to time division multiple access; when the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node; when the wireless sensor node does not receive the confirmation message within the preset time length, it retransmits the same sensor data in the next time slot until the gateway confirms that the reception is successful, thereby avoiding wireless communication chain data congestion, maximizing the sensor data transmission success rate, and ensuring the integrity of sensor data transmission.

[0119] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

[0120] There are a few points to note:

[0121] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention. Other structures may refer to conventional designs.

[0122] (2) For the sake of clarity, the thickness of layers or regions in the drawings used to describe the embodiments of the present invention are exaggerated or reduced, that is, these drawings are not drawn to scale. It is understood that when an element such as a layer, film, region, or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or intervening elements may be present.

[0123] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to form new embodiments.

[0124] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A wireless data synchronous acquisition method, characterized in that: include: S1: The gateway sends a synchronization beacon to the wireless sensor node; S2: When the wireless sensor node receives the synchronization beacon, it extracts the RTC timestamp in the synchronization beacon and updates the internal RTC clock system; S3: The wireless sensor node optimizes the sampling time and sending time interval according to the updated RTC clock system; S4: The wireless sensor nodes use the optimized sampling time and transmission time interval to synchronously collect sensor data; S5: The wireless sensor node sends the collected sensor data to the gateway according to time division multiple access; S6: When the gateway receives the sensor data, it sends a confirmation message to the corresponding wireless sensor node; S7: When the wireless sensor node does not receive the confirmation message within the preset time, it retransmits the same sensor data in the next time slot until the gateway confirms successful reception; Wherein, the S1 specifically includes: S101: The gateway sends a synchronization beacon to the router; S102: When a router receives a synchronization beacon, it calculates a backoff time using a beacon collision avoidance algorithm to avoid collisions caused by multiple routers forwarding beacons at the same time. The backoff time is specifically: Among them, T s Indicates the backoff time, T a Indicates the basic beacon interval, K i represents the total number of routers associated with the i-th peer router, and n represents the total number of peer routers; Wherein, the S3 is specifically: The wireless sensor nodes use the updated RTC clock system and introduce a delay calibration mechanism to optimize the sampling time and transmission time interval; Wherein, the S3 specifically includes: S301: Determine the maximum beacon transmission delay of the sensor network: T c =T a ×(K0+1) Among them, T c represents the maximum beacon transmission delay, T a represents the basic beacon interval, K0 represents the total number of routers in the sensor network; S302: Determine a beacon transmission delay compensation value with the goal of ensuring the maximum beacon transmission delay: Among them, T b represents the beacon transmission delay compensation value, T tx represents the beacon forwarding time between nodes, d represents the number of hops between the sensor node and the gateway, T sj represents the backoff time of the jth router from the gateway to the sensor node, and m represents the total number of routers from the gateway to the sensor node; S303: Optimizing the sampling time and the sending time interval according to the updated RTC clock system and the beacon transmission delay compensation value.

2. The wireless data synchronous acquisition method according to claim 1, characterized in that: Time division multiple access allocates at least 50% of the time slots for retransmission of sensor data.

3. The wireless data synchronous acquisition method according to claim 1, characterized in that: After S1, the following steps are also included: S8: When the wireless sensor node does not receive the synchronization beacon, it updates the internal RTC clock system through a clock prediction algorithm.

4. The wireless data synchronous acquisition method according to claim 3, characterized in that: The internal RTC clock system is updated by the clock prediction algorithm in S8, specifically including: S801: Calculate the clock change in each time interval: ΔC k =C k -C k-1 Where, ΔC k represents the clock change in the kth time interval, C k represents the reference clock value at time k, C k-1 Indicates the reference clock value at time k-1; S802: Predict the clock change in the next time interval based on the clock change in each time interval: in, represents the predicted clock change in the k+1th time interval; S803: Predict the reference clock value at the next moment based on the predicted clock change in the next time interval: in, Indicates the reference clock value at time k+1; S804: Update the internal RTC clock system according to the predicted value of the reference clock value at the next moment.

5. A wireless data synchronization acquisition system, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the wireless data synchronization acquisition method according to any one of claims 1 to 4 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the wireless data synchronous acquisition method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method, system and equipment for wireless ad hoc network of sensor

    CN114340006A