Data synchronous acquisition method and device, storage medium and electronic equipment

By periodically broadcasting multiple rounds of data acquisition commands with broadcast sequence numbers by the master control node, the target wireless sensor calculates the waiting time based on the broadcast sequence number and counts down, which solves the problem of unstable reception of synchronization control commands by wireless sensors in complex environments and achieves high-precision data synchronization acquisition.

CN121968278APending Publication Date: 2026-05-01ANHUI RONDS SCI & TECH INC CO
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ANHUI RONDS SCI & TECH INC CO
Filing Date
2026-01-20
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Wireless sensors struggle to reliably receive synchronous control commands in complex electromagnetic environments at industrial sites, leading to misaligned data acquisition timing and affecting the accuracy of equipment status monitoring.

Method used

The master control node periodically broadcasts multiple rounds of data acquisition commands with broadcast sequence numbers. The target wireless sensor calculates the waiting time based on the broadcast sequence number and counts down to ensure the synchronization of data acquisition.

Benefits of technology

It improves the reliability of command reception by wireless sensors in complex environments, avoids synchronization failure caused by single trigger failure, and achieves high-precision data time alignment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121968278A_ABST
    Figure CN121968278A_ABST
Patent Text Reader

Abstract

The invention provides a data synchronous acquisition method and device, a storage medium and electronic equipment. Wherein the target wireless sensor receives a data acquisition instruction broadcasted by the master control node; according to the broadcast serial number, determining waiting time required before data acquisition, and performing countdown; and if the countdown is finished, carrying out data acquisition, and sending the first sampling data to the master control node. Thus, the master control node periodically broadcasts a plurality of rounds of data acquisition instructions with broadcast serial numbers, so that even if the target wireless sensor misses the previous rounds of instructions, the target wireless sensor can still receive the remaining instructions subsequently, calculate the remaining time from the beginning of acquisition according to the broadcast serial numbers, and restart countdown. In the process, the instruction is repeatedly sent for multiple times, so that the probability that the instruction is successfully received is improved, and the synchronization failure caused by single triggering failure is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Data synchronization acquisition methods, devices, storage media and electronic equipment Technical Field

[0001] This application relates to the field of wireless communication, and more specifically, to a data synchronization acquisition method, apparatus, storage medium, and electronic device. Background Technology

[0002] In industrial equipment condition monitoring systems, wired sensors establish a physical connection with the data acquisition station via dedicated cables, enabling real-time data transmission and a stable power supply. The data acquisition station provides power to the wired sensors and simultaneously receives the collected equipment operating parameters such as vibration, temperature, and pressure. Due to the hard-wired connection, wired sensors can support full sampling rate and high-frequency sampling, and the data transmission process is less affected by external interference, exhibiting high reliability and low latency.

[0003] However, wired sensors have significant limitations in practical deployment. Limited by the physical length and routing path of the cables, wired sensors must be installed close to the data acquisition station or along available wiring paths, making installation difficult in complex terrain, confined spaces, or on moving parts. Furthermore, on equipment requiring high-density measurement point arrangements, such as large reciprocating machines, the wiring construction for a large number of wired sensors is costly, time-consuming, and difficult to maintain later. When the site environment is unsuitable for large-scale wiring, the application of wired sensors is severely constrained, making it difficult to meet the flexible and ever-changing layout requirements of industrial sites.

[0004] To address the lack of deployment flexibility of wired sensors, wireless sensors have been introduced into industrial monitoring systems. Wireless sensors establish data links with data acquisition stations via wireless communication protocols such as Zigbee and LoRa, enabling data uploads without the need for physical cables. Freed from the constraints of cables, wireless sensors can be easily installed in locations difficult to cover with traditional wired solutions. They are suitable for special applications such as long-distance monitoring, monitoring of rotating components, or temporary monitoring points, significantly improving deployment flexibility and adaptability.

[0005] While wireless sensors offer advantages in terms of ease of installation, practical applications have revealed challenges. Complex electromagnetic environments in industrial settings, metal obstructions, or signal attenuation can cause wireless sensors to fail to reliably receive synchronization control commands from the data acquisition station. If a wireless sensor fails to correctly receive the trigger signal, it cannot initiate data acquisition at the same time reference as other sensors, resulting in a misalignment of acquisition timing. Summary of the Invention

[0006] To overcome at least one deficiency in the prior art, this application provides a data synchronization acquisition method, apparatus, storage medium, and electronic device, which can periodically broadcast multiple rounds of data acquisition instructions with broadcast sequence numbers through a master control node, so that even if the target wireless sensor misses the first few rounds of instructions, it can still receive the remaining instructions in the subsequent rounds, and calculate the remaining time before the start of acquisition based on the broadcast sequence number, and restart the countdown to achieve synchronous data acquisition.

[0007] In a first aspect, this application provides a data synchronization acquisition method, applied to any one of a plurality of wireless sensors communicatively connected to a master control node. The method includes: receiving a data acquisition instruction broadcast by the master control node, wherein the master control node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from the plurality of wireless sensors, the data acquisition instruction including a broadcast sequence number representing the transmission order of the corresponding data acquisition instruction; determining the waiting time required before data acquisition based on the broadcast sequence number and performing a countdown; and if the countdown ends, performing data acquisition and sending the first sampled data to the master control node.

[0008] Secondly, this application provides a data synchronization acquisition method applied to a master control node communicating with multiple wireless sensors. The method includes: periodically broadcasting multiple rounds of data acquisition instructions each time data from the multiple wireless sensors is synchronously acquired, wherein each round of data acquisition instructions includes a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions, used to instruct any one of the multiple wireless sensors to determine the required waiting time before data acquisition based on the broadcast sequence number, and to start a countdown; and if the countdown ends, data acquisition is performed, and first sampled data is sent to the master control node; and the first sampled data sent by the target wireless sensor is received.

[0009] Thirdly, this application provides a data synchronization acquisition device, applied to any one of a plurality of wireless sensors communicatively connected to a master control node. The device includes: an instruction receiving module, used to receive data acquisition instructions broadcast by the master control node, wherein the master control node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from the plurality of wireless sensors, the data acquisition instructions including a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions; a sampling timing module, used to determine the waiting time required before data acquisition based on the broadcast sequence number, and to count down; and a data feedback module, used to perform data acquisition and send the first sampled data to the master control node if the countdown ends.

[0010] Fourthly, this application provides a data synchronization acquisition device applied to a master control node communicating with multiple wireless sensors. The device includes: an instruction broadcasting module, used to periodically broadcast multiple rounds of data acquisition instructions each time data from the multiple wireless sensors is synchronously acquired, wherein each round of data acquisition instructions includes a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions, used to instruct any one of the multiple wireless sensors to determine the required waiting time before data acquisition based on the broadcast sequence number, and to start a countdown; and if the countdown ends, to perform data acquisition and send the first sampled data to the master control node; and a data acquisition module, used to receive the first sampled data sent by the target wireless sensor.

[0011] Fifthly, this application provides a storage medium storing a computer program that, when executed by a processor, implements a data synchronization acquisition method applied to a target wireless sensor or a master control node.

[0012] Sixthly, this application provides an electronic device, which includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements a method for synchronously acquiring data from a target wireless sensor or a master control node.

[0013] Compared to existing technologies, this application offers the following advantages: In the data synchronization acquisition method, apparatus, storage medium, and electronic device provided in this application, the target wireless sensor receives data acquisition instructions broadcast by the master control node. The master control node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from multiple wireless sensors. Each data acquisition instruction includes a broadcast sequence number, representing the transmission order of the corresponding data acquisition instruction. Based on the broadcast sequence number, the required waiting time before data acquisition is determined, and a countdown is initiated. If the countdown ends, data acquisition is performed, and the first sampled data is sent to the master control node. In essence, this embodiment, by periodically broadcasting multiple rounds of data acquisition instructions with broadcast sequence numbers by the master control node, ensures that even if the target wireless sensor misses the first few rounds of instructions, it can still receive the remaining instructions and calculate the remaining time before acquisition begins based on the broadcast sequence number, restarting the countdown. During this process, repeatedly sending instructions increases the probability of successful instruction reception and avoids synchronization failure caused by a single trigger failure. Attached Figure Description

[0014] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 is a flowchart illustrating a data synchronization acquisition method for a target wireless sensor provided in an embodiment of this application; Figure 2 is a flowchart illustrating a data synchronization acquisition method for a master control node provided in an embodiment of this application; Figure 3 is a schematic diagram illustrating the connection relationship between the master control node and the sensor provided in an embodiment of this application; Figure 4 is a flowchart illustrating a data synchronization acquisition device for a target wireless sensor provided in an embodiment of this application; Figure 5 is a flowchart illustrating a data synchronization acquisition device for a master control node provided in an embodiment of this application; Figure 6 is a schematic diagram illustrating the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of the embodiments of this application (hereinafter referred to as "the embodiments") clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0017] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0018] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0019] In the description of this application, it should be noted that the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0020] Based on the above statement, as described in the background section, wired sensors have significant limitations in practical deployment.

[0021] First, the limited access capacity of wired data acquisition stations cannot meet the monitoring needs of large and complex equipment. It should be understood that the number of interfaces, power supply, and data processing channels of existing wired data acquisition stations are all fixed designs, and there is a clear upper limit to the number of wired sensors that a single device can connect to. Large equipment such as reciprocating locomotives require the deployment of numerous sensors to cover multiple components and monitor multiple parameters; the access capacity of existing data acquisition stations cannot meet the high-density monitoring needs of such scenarios.

[0022] Secondly, wired sensors suffer from poor installation flexibility and limited adaptability to various scenarios. It should be understood that wired sensors rely on cables directly connecting to the data acquisition station; the physical length of the cables, the difficulty of wiring, and the construction cost directly limit the installation range. For scenarios involving long-distance deployment, complex terrain (such as confined spaces inside equipment), or where wiring is inconvenient, the installation and construction of wired sensors are difficult and costly, making them unsuitable for diverse industrial site layouts.

[0023] Finally, wired data acquisition stations lack sufficient data dimensions from compatible wireless sensors, making it difficult to accurately reflect the equipment's operating status. It should be understood that existing wired data acquisition stations only support a limited number of compatible wireless sensors, and these sensors primarily collect basic data such as temperature and voltage. This type of data only reflects basic operating parameters and cannot cover core status parameters such as vibration and pressure fluctuations, thus lacking the ability to predict potential equipment failures or conduct in-depth analysis of the equipment's operating status.

[0024] In light of this, wireless sensors were proposed. Although wireless sensors have advantages in terms of ease of installation, in practical applications, it has been found that wireless sensors may be unable to stably receive synchronous control commands from the data acquisition station due to factors such as the complex electromagnetic environment of industrial sites, metal obstructions, or signal attenuation.

[0025] For example, in a condition monitoring system for a large compressor, multiple wireless sensors are installed in different parts of the equipment to collect temperature and vibration data. When the data acquisition station sends a unified synchronization trigger command, one wireless sensor located on the motor side, being near a large frequency converter, is affected by strong electromagnetic interference, causing its wireless communication module to receive signals with errors or even interruptions, failing to correctly parse the sent trigger command. Simultaneously, another wireless sensor installed inside the equipment's internal cavity, although not far from the data acquisition station, suffers from severe signal penetration loss due to its thick metal casing, resulting in a reception strength below the normal operating threshold, and also fails to successfully receive the synchronization command. As a result, these two wireless sensors fail to start sampling at the designated time, and the timestamps of their collected data deviate significantly from those of other sensors, disrupting data timing consistency and ultimately leading to misjudgments or omissions in the equipment's operating status.

[0026] It should be noted that the defects in the solutions in the prior art are the result of practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the embodiments of this application in the following text should be regarded as contributions to this application in the process of invention and creation, and should not be understood as technical content known to those skilled in the art.

[0027] Based on the discovery of the above-mentioned technical problems, this embodiment provides a data synchronization acquisition method. As shown in Figure 1, the method includes: S1A, receiving a data acquisition command broadcast by the master control node.

[0028] The master control node periodically broadcasts multiple rounds of data acquisition commands each time it synchronously collects data from multiple wireless sensors. The data acquisition commands include broadcast sequence numbers, which represent the transmission order of the corresponding data acquisition commands.

[0029] S2A determines the required waiting time before data collection based on the broadcast sequence number and starts a countdown.

[0030] S3A: If the countdown ends, data acquisition will begin, and the first sampled data will be sent to the master node.

[0031] In this embodiment, the master control node periodically broadcasts multiple rounds of data acquisition commands with broadcast sequence numbers. This ensures that even if the target wireless sensor misses the first few rounds of commands, it can still receive the remaining commands and calculate the remaining time before the start of acquisition based on the broadcast sequence number, thus restarting the countdown. In other words, repeatedly sending commands increases the probability of successful command reception and avoids synchronization failure caused by a single trigger failure.

[0032] In this way, as long as at least one round of instructions is successfully received before the countdown ends, the target wireless sensor can accurately align the acquisition timing, thus effectively solving the synchronization problem caused by instruction loss in complex environments.

[0033] It should be understood that the target wireless sensor implementing this method can be any one of multiple wireless sensors participating in synchronous sampling. These multiple wireless sensors can be vibration sensors, temperature sensors, pressure sensors, or acceleration sensors used to monitor the operating status of industrial equipment. During this process, the target wireless sensor establishes a connection with the master node via wireless communication protocols such as Zigbee and LORA (Long Range Radio), and is independently powered by its built-in battery.

[0034] To make the solution provided in this embodiment clearer, the steps of the method will be described in detail below with reference to Figure 1. However, it should be understood that the operations in the flowchart may not be implemented in sequence, and steps without logical contextual relationships may be reversed in order or implemented simultaneously. Furthermore, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowchart, or remove one or more operations from the flowchart. Continuing to refer to Figure 1, the method includes: S1A, receiving a data acquisition command broadcast by the master control node.

[0035] The master control node periodically broadcasts multiple rounds of data acquisition commands each time it synchronously collects data from multiple wireless sensors. The data acquisition commands include broadcast sequence numbers, which represent the transmission order of the corresponding data acquisition commands.

[0036] It should be understood that before step S1A, a unified time reference can be pre-established to ensure that each wireless sensor can receive subsequent broadcast commands at the accurate time. Specifically, before receiving data acquisition commands broadcast by the master control node, the wireless sensors need to perform a P2P point-to-point time synchronization process with the master control node to achieve high-precision synchronization of the time reference. During this process, the master control node, acting as the master clock source, periodically sends time calibration signals to all wireless sensors. Upon receiving this time calibration signal, each wireless sensor automatically compares the time deviation between its local clock and the acquisition station clock, and corrects its internal clock according to the deviation value. In this way, the clocks of all wireless sensors are kept consistent with the master control node.

[0037] After synchronizing the time between the target wireless sensors and the master control node through the above embodiments, in this embodiment, when the master control node needs to synchronously collect data from multiple wireless sensors, it does not send a single trigger command all at once. Instead, it uses a periodic broadcasting of multiple rounds of data collection commands to improve the reliability of command reception. This can be understood as follows: by repeatedly sending control signals with sequential identifiers, this embodiment enables each target wireless sensor to autonomously determine the timing of subsequent actions based on the received command sequence number.

[0038] Based on the above explanation of step S1A, referring to Figure 1, we will now explain step S2A in Figure 1: S2A, based on the broadcast sequence number, determine the waiting time required before data collection and start a countdown.

[0039] As an optional implementation, the target wireless sensor can determine the remaining broadcast count based on the broadcast sequence number and the total broadcast count of the master node; and determine the waiting time based on the broadcast count and the broadcast cycle duration.

[0040] This embodiment can be understood as follows: by combining the broadcast sequence number with the total number of broadcasts, each target wireless sensor can autonomously calculate the unified data acquisition start time based on the information received locally.

[0041] For example, in practical applications, the master control node continuously sends 10 synchronization broadcast signals to all wireless sensors at fixed intervals of 10 milliseconds. Each broadcast signal carries a broadcast sequence number, which increments from 1 to 10, to identify which round of signal transmission is being sent. Each target wireless sensor does not need to receive all 10 broadcast signals; as long as it successfully receives any one, it can compare the received broadcast sequence number with the known total number of broadcasts from the master control node to calculate the remaining broadcasts that have not yet arrived. Furthermore, multiplying the remaining broadcasts by the broadcast period of 10 milliseconds determines the waiting time required before data acquisition, and a built-in timer starts counting down. When the countdown ends, all target wireless sensors, regardless of when they received the broadcast signal, will start data acquisition at the same time, ensuring that the data acquisition start times of all target wireless sensors are completely consistent.

[0042] Based on the above description of S2A in the embodiments, the following will continue to describe step S3A in Figure 1: S3A, if the countdown ends, data acquisition is performed and the first sampled data is sent to the master control node.

[0043] This can be understood as follows: when the countdown ends, each target wireless sensor immediately initiates its local data acquisition process, sampling the connected monitoring points to obtain initial sample data. This initial sample data is then transmitted to the master control node via a wireless communication link. This ensures that all target wireless sensors initiate sampling at the same time, thereby achieving high-precision time alignment.

[0044] It should be understood that wireless sensors typically rely on built-in batteries for power and cannot continuously receive external power like wired sensors. It's important to note that if a wireless sensor remains in high-power standby or receiving mode for extended periods, its communication module and main control unit will continue to consume power even when no actual sampling is being performed, leading to rapid battery depletion. Research has shown that in most industrial monitoring scenarios, data acquisition does not need to be continuous 24 / 7 but rather concentrated within specific time windows. If wireless sensors continue to operate at full power during non-acquisition periods, a significant amount of wasted energy will result.

[0045] Therefore, before step S1A shown in Figure 1, the target wireless sensor receives a data acquisition plan table sent by the master control node, in which a data acquisition window and a sleep window are planned; according to the data acquisition plan table, it enters sleep mode in the sleep window and changes from sleep mode to wake-up mode in the data acquisition window to receive the data acquisition command broadcast by the master control node.

[0046] This embodiment can be understood as follows: by receiving and following a unified data acquisition schedule in advance, each target wireless sensor can operate on demand, avoiding continuous power consumption during unnecessary periods.

[0047] In practical applications, the master control node can dynamically calculate and generate a fixed acquisition sequence containing multiple key time periods based on the actual monitoring needs of the industrial site, including data acquisition volume, preset acquisition cycle, and equipment monitoring parameter types. This sequence is then used as a data acquisition plan and distributed to all connected target wireless sensors via wireless communication links. This data acquisition plan clearly defines the data acquisition window for data acquisition and the dormant window for which no active monitoring is performed.

[0048] Based on this, each target wireless sensor, upon receiving the data acquisition schedule, will adjust its operating status according to the time arrangement. When in a sleep window, the target wireless sensor actively enters a low-power sleep mode, shutting down or reducing the operating power of the RF module and the main control unit; when the time enters the data acquisition window, the target wireless sensor is awakened from sleep mode, switches to normal operating status, and prepares to receive data acquisition commands broadcast by the main control node.

[0049] In this way, by binding the acquisition behavior to a time window, the target wireless sensor remains active only during the time period when it needs to respond to commands and perform sampling, while minimizing energy consumption at other times, thereby effectively reducing the overall energy consumption level and extending battery life.

[0050] It should be noted that due to strong electromagnetic interference, metal structure obstruction, or signal attenuation in industrial environments, a wireless sensor may fail to receive data acquisition commands broadcast by the master node after being woken up. Research has shown that even if the wireless sensor has entered wake-up mode from sleep mode according to the data acquisition schedule, if it does not receive a command within a preset time, it cannot determine whether to start data acquisition, causing it to miss the synchronization window. Therefore, there is currently a lack of remedial mechanisms for extreme communication failure scenarios; once a command is lost, the node's data acquisition will fail.

[0051] Therefore, as an optional implementation, if the target wireless sensor does not receive the data acquisition command broadcast by the master node after a preset time in the wake-up mode, the target wireless sensor sends a query command to other wireless sensors among the multiple wireless sensors; receives the response command returned by the wireless sensor according to the query command, wherein the response command includes the remaining waiting time of the other wireless sensors; counts down according to the remaining waiting time; if the countdown ends, data acquisition is performed, and the first sampled data is sent to the master node.

[0052] This embodiment can be understood as follows: through inter-node communication remediation, a target wireless sensor that failed to receive instructions from the master control node can still complete synchronous data acquisition.

[0053] It should be understood that in a monitoring system, multiple wireless sensors are installed in different locations to synchronously collect vibration and temperature data. Assume one target wireless sensor is located in the metal shielded area behind the motor. During a certain acquisition cycle, although this target wireless sensor has entered wake-up mode from sleep mode according to the data acquisition schedule, it fails to receive the data acquisition command broadcast by the master control node due to strong electromagnetic interference. In this case, if it continues to wait, the sensor will miss the entire acquisition window. However, according to this method, if no command is received after a preset time, the target wireless sensor will actively send a query command to other surrounding wireless sensors. At this time, another wireless sensor in a nearby location has successfully received the command and calculated the remaining waiting time to be 30 milliseconds, returning this information through a response command. After obtaining the remaining waiting time, the target wireless sensor immediately starts a countdown. When the countdown ends, it accurately starts local sampling and sends the first sampled data to the master control node.

[0054] Thus, even under extremely unfavorable communication conditions, the target wireless sensor can still achieve accurate synchronous data acquisition by relying on information from its companion nodes, avoiding data loss due to single-point communication failure.

[0055] Based on the same inventive concept as the data synchronization acquisition method for target wireless sensors provided in this embodiment, this embodiment also provides a data synchronization acquisition method for a master control node. This master control node is communicatively connected to multiple wireless sensors. As shown in Figure 2, the method includes: S1B, periodically broadcasting multiple rounds of data acquisition commands each time data from multiple wireless sensors are synchronously acquired.

[0056] Each round of data acquisition instructions includes a broadcast sequence number, which represents the transmission order of the corresponding data acquisition instructions. This sequence number is used to instruct any one of the multiple wireless sensors to determine the required waiting time before data acquisition and to start a countdown. If the countdown ends, data acquisition is performed, and the first sampled data is sent to the master control node.

[0057] S2B receives the first sampled data sent by the target wireless sensor.

[0058] In this embodiment, the master control node does not send a trigger signal only once when it needs to collect data from multiple wireless sensors simultaneously. Instead, it sends multiple rounds of data collection commands. Each round of data collection commands contains a broadcast sequence number, which starts from 1 and increments sequentially to represent the transmission order of the corresponding data collection commands.

[0059] Taking a monitoring scenario in an industrial setting as an example, after entering the synchronous acquisition window, the master control node continuously sends 10 data acquisition commands to all wireless sensors at 10-millisecond intervals, with broadcast sequence numbers from 1 to 10. Each target wireless sensor, upon receiving any one of these commands, can calculate the remaining number of broadcast rounds it needs to wait for based on the currently received broadcast sequence number and the known total number of broadcasts (10). Combining this with the 10-millisecond broadcast cycle, it can then estimate the waiting time required before data acquisition and start a countdown.

[0060] When the countdown ends, the target wireless sensor immediately begins data acquisition, obtaining the first sampled data, and sends this first sampled data to the master control node. The master control node then receives the first sampled data from each target wireless sensor for subsequent integration and analysis.

[0061] In this way, even if individual target wireless sensors fail to receive the first few rounds of instructions due to interference, as long as they can receive an instruction in the subsequent rounds, the opportunity to collect data can be avoided, thereby improving the reliability of data collection through wireless sensors in complex environments.

[0062] It should be noted that, as shown in Figure 3, although wireless sensors have significant advantages in deployment flexibility and ease of construction, they are not suitable for all monitoring scenarios due to limitations in power supply, data stability, and sampling frequency. Therefore, in industrial settings, wired sensors connected by cables are still necessary to complete high-precision, high-frequency, or continuous data acquisition tasks. However, wired sensors typically upload data in real time via physical links, while wireless sensors, based on wireless communication protocols such as Zigbee and LoRa, independently transmit data according to their own set sampling periods. The lack of a unified coordination mechanism in the acquisition timing results in inconsistent timestamps between the wired and wireless sensors, making accurate time alignment difficult. This, in turn, affects the correlation analysis of multi-source data and fails to accurately reconstruct the true operating conditions of the equipment.

[0063] However, in practical applications, if data from wired sensors is actively read only after multiple rounds of data acquisition commands have been broadcast, there will be slight but not negligible timing jitter in the communication and response between different sensors and between the controller and the acquisition hardware. It should be understood that "active reading" here refers to the master node issuing a new sampling command at the trigger moment and then waiting for data to return from each channel. The entire process involves multiple stages, including command transmission, hardware response, analog signal acquisition, and analog-to-digital conversion, each of which may introduce inconsistent delays. Even with high-performance hardware, it is difficult to guarantee perfect synchronization of the start time of each acquisition, thus affecting the time alignment accuracy of the final data.

[0064] Therefore, the master control node also communicates with multiple wired sensors via parallel channels and caches synchronous sampling data uploaded by multiple wired sensors through parallel channels. Once multiple rounds of data acquisition commands have been broadcast, the master control node triggers the reading of the current synchronous sampling data from the cache space, which serves as the second sampling data synchronized with the first sampling data.

[0065] This embodiment can be understood as achieving data synchronization between wired and wireless sensors through a mechanism based on hardware triggering and cached data matching.

[0066] Referring again to Figure 3, in practical applications, the master control node connects to multiple wireless sensors via wireless communication and to multiple wired sensors via parallel channels. These wired sensors are sampled uniformly by a Field-Programmable Gate Array (FPGA). Because the FPGA possesses hardware-level parallel processing capabilities, it can control all wired sensors to start data acquisition at almost the same time, and the sampling start time deviation between channels can be controlled at the microsecond level, thus ensuring a high degree of consistency between the data from multiple wired sensors.

[0067] During this process, the FPGA continuously acquires data from all wired sensors and caches the acquired data in real time in its local storage. Simultaneously, the master node periodically broadcasts multiple rounds of data acquisition commands to all wireless sensors whenever synchronous data acquisition is needed. Each round of commands includes a broadcast sequence number, identifying which number the command was issued. Upon receiving these commands, each wireless sensor begins a countdown based on the last received sequence number, and simultaneously initiates its own data acquisition action at the end of the countdown, completing the acquisition of its first sample and sending it back to the master node.

[0068] Referring again to Figure 3, the microcontroller unit (MCU) of the master control node communicates with the FPGA via a specific pin. The moment the master control unit finishes sending the last round (e.g., the tenth) of broadcast signals, it synchronously triggers a level transition on a specific pin connected to the field-programmable gate array (FPGA). This level change is a precise and detectable physical event, which the FPGA can capture in real time with a microsecond-level time resolution and record as a synchronization reference time stamp. Therefore, this synchronization reference time stamp actually represents the precise start time of the unified data acquisition by multiple wireless sensor groups. Based on this, the master control node, combined with preset acquisition duration parameters, extracts a segment of data from the continuously buffered wired sensor data on the FPGA, starting from the synchronization reference time stamp and lasting for the same duration, as the second sampled data. Since the second sampled data is perfectly aligned with the first sampled data uploaded by the wireless sensors on the time axis, high-precision synchronization matching between wired and wireless sensor data is achieved.

[0069] In this way, by using FPGA to achieve high-precision parallel sampling and data buffering of multiple wired sensors, and combining the hardware level triggering method after the wireless acquisition command is broadcast, a unified synchronization starting point can be determined. Finally, the sampling data that strictly corresponds to the wireless data can be extracted from the buffered wired data, achieving precise alignment of wired and wireless sensor data on the time axis, with a synchronization accuracy of up to 0.3 milliseconds.

[0070] Based on the same inventive concept as the data synchronization acquisition method for target wireless sensors provided in this embodiment, this embodiment also provides a data synchronization acquisition device. This device includes at least one software functional module that can be stored in a memory or embedded in an electronic device. The processor in the electronic device is used to execute the executable module stored in the memory. For example, the software functional modules and computer programs included in this device. Referring to Figure 4, functionally, the device may include: an instruction receiving module 11A, used to receive data acquisition instructions broadcast by the master node, wherein the master node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from multiple wireless sensors. The data acquisition instructions include a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions; a sampling timing module 12A, used to determine the required waiting time before data acquisition based on the broadcast sequence number and to perform a countdown; and a data feedback module 13A, used to perform data acquisition and send the first sampled data to the master node if the countdown ends.

[0071] In this embodiment, the instruction receiving module 11A is used to implement step S1A in FIG1, the sampling timing module 12A is used to implement step S2A in FIG1, and the data feedback module 13A is used to implement step S3A in FIG1. ​​Therefore, for a detailed description of each of the above modules, please refer to the specific implementation of the corresponding steps.

[0072] Optionally, the sampling timing module 12A is also specifically used to: determine the remaining number of broadcasts based on the broadcast sequence number and the total number of broadcasts of the master node; and determine the waiting time based on the number of broadcasts and the broadcast period duration.

[0073] Optionally, the instruction receiving module 11A is also used to receive a data acquisition plan table sent by the master node, wherein the acquisition plan table plans a data acquisition window and a sleep window; the sampling timing module 12A is also used to enter sleep mode in the sleep window according to the data acquisition plan table, and change from sleep mode to wake-up mode in the data acquisition window, so as to receive the data acquisition instruction broadcast by the master node.

[0074] Optionally, the data feedback module 13A is further configured to: if no data acquisition instruction broadcast by the master node is received after a preset time in wake-up mode, send a query instruction to other wireless sensors among the multiple wireless sensors; receive a response instruction returned by the wireless sensor according to the query instruction, wherein the response instruction includes the remaining waiting time of the other wireless sensors; count down according to the remaining waiting time; and if the countdown ends, perform data acquisition and send the first sampled data to the master node.

[0075] Based on the same inventive concept as the data synchronization acquisition method applied to the master control node provided in this embodiment, this embodiment also provides a data synchronization acquisition device, which includes at least one software functional module that can be stored in a memory or embedded in an electronic device. The processor in the electronic device is used to execute the executable module stored in the memory. For example, the software functional module and computer program included in the device. Referring to FIG5, functionally, the device may include: an instruction broadcasting module 11B, used to periodically broadcast multiple rounds of data acquisition instructions when synchronously acquiring data from multiple wireless sensors, wherein each round of data acquisition instructions includes a broadcast sequence number, which represents the transmission order of the corresponding data acquisition instructions, and is used to instruct any one of the multiple wireless sensors to determine the waiting time required before data acquisition according to the broadcast sequence number and to count down; and if the countdown ends, data acquisition is performed and the first sampled data is sent to the master control node; and a data acquisition module 12B, used as a data receiving module, used to receive the first sampled data sent by the target wireless sensor.

[0076] In this embodiment, the instruction broadcasting module 11B is used to implement step S1B in FIG2, and the data acquisition module 12B is used to implement step S2B in FIG2. Therefore, for a detailed description of each of the above modules, please refer to the specific implementation of the corresponding steps.

[0077] Optionally, the master control node is also connected to multiple wired sensors via parallel channels and caches the synchronous sampling data uploaded by multiple wired sensors via parallel channels. The data acquisition module 12B is also used to: if the broadcast of multiple rounds of data acquisition instructions is completed, trigger the reading of the synchronous sampling data at the current moment from the cache space as the second sampling data synchronized with the first sampling data.

[0078] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0079] It should also be understood that if the above embodiments are implemented as software functional modules 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 this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0080] Therefore, this embodiment also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, which, when executed by a processor, implements the data synchronization acquisition method provided in this embodiment. The storage medium can be any medium capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0081] This embodiment provides an electronic device for implementing a data synchronization acquisition method. This electronic device can be any wireless sensor or a master control node. As shown in FIG6, the electronic device may include a processor 22 and a memory 21. The memory 21 stores a computer program, and the processor implements the data synchronization acquisition method provided in this embodiment by reading and executing the computer program corresponding to the above embodiments stored in the memory 21.

[0082] Referring again to Figure 6, the electronic device also includes a communication unit 23. The memory 21, processor 22, and communication unit 23 are electrically connected to each other directly or indirectly via system bus 24 to realize data transmission or interaction.

[0083] The memory 21 can be an information recording device based on any electronic, magnetic, optical, or other physical principles, used to record execution instructions, data, etc. In some embodiments, the memory 21 can be, but is not limited to, volatile memory, non-volatile memory, memory drive, etc.

[0084] In some embodiments, the volatile memory may be random access memory (RAM); in some embodiments, the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, etc.; in some embodiments, the storage drive may be a disk drive, solid-state drive, any type of storage disk (such as optical disc, DVD, etc.), or similar storage media, or a combination thereof.

[0085] The communication unit 23 is used to send and receive data over a network. In some embodiments, the network may include a wired network, a wireless network, a fiber optic network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and / or network switching nodes, through which one or more components of the service request processing system can connect to the network to exchange data and / or information.

[0086] The processor 22 may be an integrated circuit chip with signal processing capabilities, and may include one or more processing cores (e.g., a single-core processor or a multi-core processor). By way of example only, the processor described above may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction-set Processor (ASIP), a Graphics Processing Unit (GPU), a Physics Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller unit, a Reduced Instruction Set Computing (RISC) computer, or a microprocessor, or any combination thereof.

[0087] It is understood that the structure shown in Figure 6 is for illustrative purposes only. Electronic devices may have more or fewer components than those shown in Figure 6, or may have different configurations. The components shown in Figure 6 may be implemented using hardware, software, or a combination thereof.

[0088] It should be understood that the apparatus and methods disclosed in the above embodiments can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0089] The above descriptions are merely various embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data synchronization acquisition method, characterized in that, The method, applicable to any one of multiple wireless sensors communicatively connected to a master control node, includes: receiving a data acquisition instruction broadcast by the master control node, wherein the master control node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from the multiple wireless sensors, the data acquisition instruction including a broadcast sequence number representing the transmission order of the corresponding data acquisition instruction; determining the required waiting time before data acquisition based on the broadcast sequence number and performing a countdown; and if the countdown ends, performing data acquisition and sending the first sampled data to the master control node.

2. The data synchronization acquisition method according to claim 1, characterized in that, Based on the broadcast sequence number, the required waiting time before data collection is determined, including: determining the remaining broadcast count based on the broadcast sequence number and the total broadcast count of the master node; and determining the waiting time based on the broadcast count and the broadcast cycle duration.

3. The data synchronization acquisition method according to any one of claims 1-2, characterized in that, The method further includes: receiving a data acquisition plan table sent by the master control node, wherein the acquisition plan table plans a data acquisition window and a sleep window; according to the data acquisition plan table, entering a sleep mode in the sleep window, and changing from sleep mode to wake-up mode in the data acquisition window to receive data acquisition instructions broadcast by the master control node.

4. The data synchronization acquisition method according to claim 3, characterized in that, The method further includes: if no data acquisition instruction broadcast by the master node is received after the wake-up mode has exceeded a preset time, a query instruction is sent to other wireless sensors among the plurality of wireless sensors; a response instruction is received from the wireless sensors according to the query instruction, wherein the response instruction includes the remaining waiting time of the other wireless sensors; a countdown is performed based on the remaining waiting time; if the countdown ends, data acquisition is performed, and the first sampled data is sent to the master node.

5. A data synchronization acquisition method, characterized in that, An application to a master control node communicating with multiple wireless sensors includes the following method: periodically broadcasting multiple rounds of data acquisition instructions each time data from the multiple wireless sensors is synchronously acquired, wherein each round of data acquisition instructions includes a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions, used to instruct any one of the multiple wireless sensors to determine the required waiting time before data acquisition based on the broadcast sequence number, and to start a countdown; and if the countdown ends, data acquisition is performed, and first sampled data is sent to the master control node; and the first sampled data sent by the target wireless sensor is received.

6. The data synchronization acquisition method according to claim 5, characterized in that, The master control node is also connected to multiple wired sensors via a parallel channel and caches the synchronous sampling data uploaded by the multiple wired sensors through the parallel channel. The method further includes: if the broadcast of the multi-round data acquisition instructions is completed, the synchronous sampling data at the current moment is triggered to be read from the cache space as the second sampling data synchronized with the first sampling data.

7. A data synchronization acquisition device, characterized in that, An apparatus for use with any one of multiple wireless sensors connected in communication with a master node, comprising: an instruction receiving module for receiving data acquisition instructions broadcast by the master node, wherein the master node periodically broadcasts multiple rounds of data acquisition instructions each time it synchronously acquires data from the multiple wireless sensors, the data acquisition instructions including a broadcast sequence number representing the transmission order of the corresponding data acquisition instructions; a sampling timing module for determining the required waiting time before data acquisition based on the broadcast sequence number and performing a countdown; and a data feedback module for performing data acquisition and sending the first sampled data to the master node if the countdown ends.

8. A data synchronization acquisition device, characterized in that, An apparatus for a master control node communicating with multiple wireless sensors includes: an instruction broadcasting module, configured to periodically broadcast multiple rounds of data acquisition instructions each time data from the multiple wireless sensors is synchronously acquired, wherein each round of data acquisition instructions includes a broadcast sequence number, representing the transmission order of the corresponding data acquisition instructions, used to instruct any one of the multiple wireless sensors to determine the required waiting time before data acquisition based on the broadcast sequence number, and to start a countdown; and if the countdown ends, to perform data acquisition and send the first sampled data to the master control node; and a data acquisition module, configured to receive the first sampled data sent by the target wireless sensor.

9. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the data synchronization acquisition method according to any one of claims 1-4 or 5-6.

10. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the data synchronization acquisition method according to any one of claims 1-4 or 5-6.