Next Article in Journal
An Empirical Study on the Effect of Training Data Perturbations on Neural Network Robustness
Previous Article in Journal
In Situ Pipe Prover Volume Measurement Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ultra-Low-Power Sensor Nodes for Real-Time Synchronous and High-Accuracy Timing Wireless Data Acquisition

by
Tadeusz Sondej
* and
Mariusz Bednarczyk
Faculty of Electronics, Military University of Technology, 00-908 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(15), 4871; https://doi.org/10.3390/s24154871
Submission received: 28 May 2024 / Revised: 17 July 2024 / Accepted: 23 July 2024 / Published: 26 July 2024
(This article belongs to the Section Sensor Networks)

Abstract

:
This paper presents an energy-efficient and high-accuracy sampling synchronization approach for real-time synchronous data acquisition in wireless sensor networks (saWSNs). A proprietary protocol based on time-division multiple access (TDMA) and deep energy-efficient coding in sensor firmware is proposed. A real saWSN model based on 2.4 GHz nRF52832 system-on-chip (SoC) sensors was designed and experimentally tested. The obtained results confirmed significant improvements in data synchronization accuracy (even by several times) and power consumption (even by a hundred times) compared to other recently reported studies. The results demonstrated a sampling synchronization accuracy of 0.8 μs and ultra-low power consumption of 15 μW per 1 kb/s throughput for data. The protocol was well designed, stable, and importantly, lightweight. The complexity and computational performance of the proposed scheme were small. The CPU load for the proposed solution was <2% for a sampling event handler below 200 Hz. Furthermore, the transmission reliability was high with a packet error rate (PER) not exceeding 0.18% for TXPWR ≥ −4 dBm and 0.03% for TXPWR ≥ 3 dBm. The efficiency of the proposed protocol was compared with other solutions presented in the manuscript. While the number of new proposals is large, the technical advantage of our solution is significant.

1. Introduction

Synchronous data acquisition is required in many areas, including industry, science, sports, and medicine. It is often required in local or distributed measurement systems where communication can be wired, wireless, or mixed. In the case of wired communication, synchronization is easy to ensure. This is because of the possibility of transmitting a clock signal or predictable data latency in wired interfaces. Synchronization pulses can also be sent between the measuring system devices. In the case of wireless interfaces such as radio communication in Wireless Sensor Networks (WSNs), ensuring synchronization between devices is significantly difficult, mainly because of the existence of multiple clock sources. Various methods for clock synchronization in WSNs are well-known [1,2,3,4,5]. However, clock synchronization does not always guarantee the synchronization of sensor data obtained from many nodes, and the synchronization achieved by these methods can be insufficient [6,7]. This problem increases with some specific applications, which include data acquisition at high sampling rates, long-duration continuous sampling, nonlinear clock drifts, or when a low power consumption is required.
Synchronous data acquisition is crucial, for example, for structural health monitoring [7,8,9,10,11,12] and many applications of Wireless Body Area Networks (WBANs) [13,14,15,16]. Significant challenges in WBANs are described in [17,18,19,20] and include requirements for low-power technology, small sensor dimensions, multi-device synchronous measurements, and the recording of physiological parameters, data fusion, and dissemination. Widely used radio technologies such as Bluetooth Low Energy, ZigBee, ANT, and Ultra-Wideband can be used for internal communication in WBAN star or mesh topology. Unfortunately, these technologies do not always provide the synchronization required for data acquisition. This problem especially increases in the case of a star topology with many sensor nodes. Examples of such situations are synchronous data acquisition from multi-site sensors for monitoring physical human activity [21,22,23], multichannel electromyography (EMG) [24,25], synchronous electrocardiographic (ECG) and photoplethysmographic (PPG), multi-site PPG signals’ measurement for continuous pulse wave velocity [26], and cuff-less blood pressure monitoring [27,28,29]. Furthermore, in these applications, the recommended sampling frequency (fS) is at least 1 kHz [27,30], which is mostly hard to reach. In addition to synchronous data acquisition, a low energy consumption is highly desirable, particularly for battery-powered sensor nodes used in wearable medical electronics and IoT devices [31,32]. In addition, a low power design is most important for battery-free and energy-aware autonomous wireless sensor nodes [33,34,35,36,37].
Several sampling synchronization methods are available for multi-node wireless sensor networks. However, these proposals are limited in various aspects, such as the precision of time synchronization, data latency, power consumption, and the cost of implementation. In [12], GPS receivers were used for sampling synchronization in the multichannel wireless acquisition of seismic data, but they provided an expensive, high-power-consuming, large, and inconvenient solution. GPS-based synchronization in WSNs for vibration measurement was also presented in [38]. In this work, the synchronized monitoring of acceleration data was implemented. Unfortunately, the proposed sensor node was quite complex, with large dimensions and limited applications. Similarly, a GPS module was used in [39] to synchronize the sampling process of accelerometers. Unfortunately, there are no data on synchronization errors and power consumption. In [22], a wireless wearable multi-sensor based on ZigBee communication was presented. The proposed system consisted of three sensor nodes that measured signals with a sampling rate of only 30 Hz and data synchronization with an accuracy of only 24 ms. The power consumption depends on the packet size, and it is always over several milliamperes (mA). The use of the Bluetooth interface for synchronization in a multi-nodes WBAN was presented in [40]. A synchronization accuracy of 30 μs was obtained; however, it was necessary to modify the Bluetooth protocol stack. Moreover, the classic Bluetooth standard was used, and the power required for one sensor node was 110 mW (for fS = 500 Hz). In [16], Bluetooth Low Energy (BLE) and a custom protocol for simultaneously gathering multiple bio-signals from multiple body areas was used. The best results were achieved for data synchronization with a frequency of 40 Hz. This solution also required a modification of the BLE stack. Moreover, work [16] did not provide results for energy consumption and possible data throughputs. Multi-modal data acquisition system with BLE for human motion analysis was presented in [41]. Inertial measurement unit modules were connected via BLE to an Android smartphone. However, the frequency sampling was only 60 Hz and the synchronization accuracy was evaluated by simultaneously recorded video data. A similar solution for an accurate gait analysis during running was described in [42]. Data synchronization from many sensors was performed by software based on the time stamps transmitted from sensors. The synchronization error was estimated at approximately 2 ms, but there was no information about the sensor’s energy consumption. Wi-Fi-based sensor nodes for human gait monitoring were presented in [43]. For the synchronization of independent data acquisition systems, two methods were proposed: (1) a solution involving the repeated synchronization of the entire system by issuing network requests to extract sensors’ data with a very low latency, and (2) a method where a synchronizing message is sent only at the beginning of a data-logging session. The developed algorithm allows data acquisition from six pressure sensors and two IMUs, ensuring a 24.6 Hz sampling rate and a 1 ms synchronization accuracy. Unfortunately, there was a lack of information about the energy consumption of the sensors. Another solution based on Wi-Fi sensor nodes was presented in [44]. Although a high fS (≥1 kHz) was achieved, there was no information about how the data was synchronized. Additionally, the current consumption was as high as 229 mA (unfortunately, the supply voltage was not specified). In [45], a wireless, Wi-Fi-based, group-synchronized neural recording system, which supported real-time multi-subject brain–computer interface and event-related potential, was presented. An additional wireless trigger was used to synchronize the data. A synchronization error of 237 μs was obtained. Unfortunately, there was no information about the energy consumption of the node. A low-cost Wi-Fi module was also used in a wireless data acquisition system based on MEMS accelerometers for the operational modal analysis of bridges [46]. In such systems, a significant challenge is the synchronization of data captured by multiple sensor devices. In [46], it was assumed that the synchronization error would be less than 1/10 of the sampling period. A distinct timer maintained by the network access point (the router) was used to synchronize many wireless sensors. A synchronization error of approximately 2 ms was obtained. Unfortunately, the average current consumption for one sensor during transmission was as much as 125 mA (for 12 V battery). A timing slot algorithm for a multichannel sub-1 GHz low-power wide-area network (LPWAN) was presented in [47]. After applying real-time clock compensation, a 5 µs synchronization error was obtained during ta continuous acquisition of 10 s at fS = 10.24 kHz. However, the data from each sensor (one channel) were transmitted at five different radio frequencies. Unfortunately, the energy consumption was not reported in this study. In addition, there are known custom-made solutions that do not use popular radio interfaces. A protocol based on time-division multiple access (TDMA) for bidirectional sensor-based station communication was presented in [48]. A variance in synchronization error of 7.6 μs was obtained with a clock base of 32.768 kHz. The power consumption was not reported in this study. Another energy-efficient solution based on TDMA for WBAN communication was presented in [49]. The industrial, scientific, and medical (ISM) 433 MHz band was used to implement the low-duty cycle MAC protocol. An average power of 2.4 mW was obtained at 1250 bit/s sampled data, but synchronization error was not reported.
The problems of data synchronization and energy saving have been also addressed in numerous other studies. However, many of them are limited only to the modeling and simulation of the proposal, for example [20,31,50,51]. There have only been a few implementations under real conditions, where there were many more factors affecting the final results. Many studies have limited their analysis to wireless and energy-efficient sensors, but a star topology has not been considered [33,52]. There are also known solutions implemented in application-specific integrated circuit (ASIC) devices [53,54].
The aforementioned studies indicate that the problem of data sampling synchronization in wireless sensor networks is still under consideration. Another significant problem is the acquisition of data in a synchronized manner with a very low energy consumption. As indicated in [55], this approach is gaining increasing attention owing to the growing interest in IoT battery-powered devices, energy-critical applications, and especially in WBAN applications.
From the literature survey, it was concluded that there are many TDMA MAC protocols in WBANs for data transmission. All protocols have many issues, such as energy consumption and packet collision, as it is the main concern in WBANs, which is being resolved in this study with the concept of data synchronization.
In this paper, a proprietary protocol for data synchronization, together with synchronized access to media, is proposed. The method is TDMA-oriented, not only in the sense that every node has its own reserved time slot for data transmission. but also in the sense that each node starts the sampling cycle at the same time. The idea behind the proposal is that each node in the first time slot of the TDMA cycle can precisely determine the start time of the sampling events. In addition, the proposed method operates with a low sensor energy consumption and implementation costs. For a given TDMA cycle, the duration of the time slots decreases as the number of nodes increases, and vice versa.
Aside from the proposed proprietary protocol, in this work, a custom-based, ultra-low-power, wireless multi-nodes sensor network for synchronous data acquisition was designed, prototyped, and experimentally evaluated. The proposed solution can be used for the simultaneous multi-site measurement of many human physiological, motion, and pressure signals [16,26,41,43] or other healthcare/medical devices.
The main contributions in our work are high-accuracy data acquisition synchronization; ultra-low energy consumption; high-throughput real-time data with a constant latency of data acquisition; a very low computational complexity; and low implementation costs (because our solution is based on SoC platforms and implements a light-weight TDMA method without the need to exchange various messages).
The rest of this paper is organized as follows. In Section 2, the proposed system architecture, media access control (MAC) protocol, and sensor node design are described. Section 3 describes the implementation of the proposed method. The experimental results are presented in Section 4. In the next section, the proposed solution is evaluated and discussed (Section 5). Finally, the conclusions of this study are presented in Section 6.

2. System Design

2.1. Topology of Data Acquisition System

The structure of the multi-node wireless system with synchronous data acquisition is shown in Figure 1.
Sensor nodes (Device 1…N) are responsible for the sampling of signals (like EMG, ECG, accelerometers, etc.) and transmitting them as raw data to the central node (Host) in real time (data streaming). Then, the Host transmits the collected data to a monitoring station at a higher level through a wired (e.g., UART) or wireless (e.g., Wi-Fi and BLE) interface. These Devices cannot communicate with each other. We assume that the distance between the Devices and the Host is small (approximately a few meters, as in the WBAN network). This distance could be greater, but this would be at the cost of worsening the synchronization parameters and increasing the energy consumption. Therefore, this solution is not considered. Both the Host and Devices can be implemented in a specialized SoC technology with all the necessary electronic circuits and parts for a given system, including a transceiver and a microcontroller. In some cases, the Host can also be equipped with an additional application processor (e.g., nRF5340 dual-core SoC [56]) for data processing and/or other tasks and can be powered from high-capacity sources (e.g., USB). In our architecture, the Host acts not only as a central node to collect data, but also as a master to control channel access.
To avoid data collisions during transmission and energy consumption owing to retransmission, the TDMA technique is used for media access control. The time slot assignment in the TDMA scheme is made a priori, and the Host is responsible for it, as well as for the sampling synchronization within Devices. The principle of time slot allocation is very simple. The first slot always belongs to the Host, and the others to the Devices. In addition, each element of the system has its own clock source for determining the interval of the sampling events. Additionally, to achieve a low energy consumption by Devices and synchronized data acquisition during sampling events, some modifications can be made, such as SoC peripheral hardware event control, a Direct Memory Access (DMA) controller, SoC firmware optimization, and sleep SoC during non-transmission periods.

2.2. Media Access Control for Proposed Protocol

Communication between the elements of the system is based on the TDMA scheme with specific control strategies to realize a low energy consumption, real-time signal sampling, high-accuracy data synchronization, and a Device-to-Host bulk data streaming direction. The proposed basic timing slot configuration is shown in Figure 2.
The TDMA scheme is based on a Super Frame (SUF) divided into three types of slots: SYNC, DEV, and BREAK. The first slot (SYNC) of each Super Frame is used by the Host to transmit the synchronization packet . All the sensor nodes start listening to the sync packet, shortly before they expect it. Owing to the broadcasting nature of the transmitted packet, it can be received by all participants in the system. The end of the received sync packet determines the moment of the sampling timer synchronization and the beginning of the Sampling Windows (SW) in the receiving nodes (red line in Figure 2). The sensor nodes then start to sample the measured signals with an interval that can be individually defined for each node. The assignment of DEV slots to the sensor nodes establishes a TDMA schedule and guarantees deterministic packet transmission. Each sensor node receives one time slot (DEV 1…DEV N), during which, it can transmit data to the Host. In the SUFN frame, the sensor node can transmit data from a previous sampling window (SWN). The BREAK slot is used by the Host to process the data collected from the sensors.
A detailed configuration of the time slots for the proposed protocol is shown in Figure 3. The total duration of the Super Frame is tSUF, which is equal to, e.g., 50 ms, 100 ms, and 200 ms. This depends on the number of nodes, types of measured signals, and target application. The SYNC slot always has a constant duration (e.g., 3 ms). This value is sufficient to transfer even several hundred bytes from the Host to the Devices, however, in our proposal, it is used to send only a few bytes of the synchronization packet.
If the sync packet is received (red dashed line in Figure 3), the receiving nodes synchronize with the local extra sampling timer. Time td is required for this action. This synchronization restarts with the sampling timer. In the next step, the sensor nodes will start to transmit data in their assigned slots. The duration of each slot depends on the number of sensors, but the sum of all the DEV, SYNC, and BREAK slots cannot exceed tSUF. This is configured during the setup process prior to the system initialization. In a TDMA scheme, a guard interval of 50 µs between time slots is used to reduce interference and prevent overlapping transmissions due to clock drifts at the sensor nodes. If the Device is not in the RX (SYNC slot) or TX (DEV slot) mode, it spends time in a power-down mode to minimize energy consumption. A short-term wake-up may only occur during the sampling process, unless it is not implemented in the hardware approach (without the participation of the SoC CPUs). An extra BREAK slot with a constant duration (e.g., 1 ms) is reserved for data processing from all sensor nodes, for example, for DMA transfer initialization (e.g., from the Host to a higher-level system). This slot is assigned only to the Host.

2.3. Data Synchronization

To achieve real-time signal sampling and high-accuracy data synchronization, we propose a hardware/software method that determines the appropriate starting moment for signal sampling and the packetized data sent in dedicated time slots. To do this, we use the fixed length of the synchronization packet sent in the SYNC slot. The end of the frame while receiving it indicates the moment of synchronization with the Host. However, to maintain the precise sampling of the sensors (Devices), an additional hardware sampling timer is started immediately upon the reception of a sync packet. This counter is already preconfigured by the software, so that its first interruption (first sampling event in Figure 3) occurs after a fixed time of td. Delay td depends primarily on the speed of the CPU used in the SoC and on how to trigger the start of the sampling timer. This start can be performed by software or hardware using an appropriate connection controller between the peripherals in the SoC. The slight td dispersion may be due to the radio propagation time of the sync packet, but it is insignificant. The sampling frequency can be the same (fS_DEV1 = fS_DEV2 = fS_DEVN) or different for each of these Devices. The most important step is to maintain the first sampling event at the same time. It is also assumed that the sampling period in each Device is uniform during the SUF frame. Therefore, tSUF should be an integer multiple of tSAMPDEVN.

3. Implementation of the Proposed Solution

3.1. Test Bench

To implement and experimentally test the proposed solution, we developed a system consisting of four identical sensor nodes (Sensor) and a central unit (Central). Figure 4 shows the diagram of a test bench, including the Sensors, Central, PC computer, and multichannel time counter.
The Sensors and Central have an output line (TP—test point) directly from the used SoC, which are wire-connected to the multichannel precise time and frequency counter MTC108 [57]. MTC108 is used to measure the frequency of the Central and Sensor clocks, and to measure the time dependencies of the proposed protocol. Communication between the Central and the PC computer is carried out in the virtual serial port mode. This makes it very easy to display various messages and data in real time on a computer, for example, in the free SerialPlot software (Version: 0.12.0). The Central is implemented on the nRF52-DK development board. The nRF52-DK board contains a specialized nRF52832 (nRF52) SoC by Nordic Semiconductor [58], low-frequency quartz (changed from the original 32.768 kHz to 40.000 kHz), and a J-Link debugger with a built-in virtual serial port.

3.2. Sensor Node Design

A custom-designed board was used to make the Sensors. Several boards of the same construction type were constructed. A block diagram and photograph of the prototype board are shown in Figure 5.
The main element of the sensor board is an EYSHJNZXZ radio module by Taiyo Yuden (Taiyo Yuden Co., Ltd., Tokio, Japan) [59] with an embedded 32 MHz source clock and a PCB pattern antenna. It is a very small (11.3 mm × 5.1 mm) module with an nRF52 SoC (the same as that in the Central). Although this module is no longer produced, our proposed solution can use many other modules with nRF52 or similar SoCs. The nRF52 SoC includes an energy-efficient high-performance ARM-Cortex-M4F core, running at 64 MHz, many peripherals and interfaces, Flash and SRAM memories, and a 2.4 GHz multi-protocol radio controller. An important feature of nRF52 is the Programmable Peripheral Interconnect (PPI) that enables peripherals to interact autonomously with each other using tasks and events independent of the CPU. The use of the PPI technique and a DMA controller significantly reduces the power consumption. An external low-frequency quartz and a coil for the built-in DC/DC regulator are connected to the radio module. As for the Central, to achieve, for example, the 100 ms TDMA frame duration, we use a 40.000 kHz low-frequency clock. An ultra-low-power ADXL362 (Analog Devices Inc., Wilmington, DE, USA) accelerometer and an LPS22HB (STMicroelectronics, Geneva, Switzerland) pressure sensor are used as exemplary sensors. One I/O line (TP) of nRF52 is used in the experiments. The designed sensor board is powered directly using a CR2032 battery. The software (nRF52 SoC firmware) implementing the proposed protocol is written in C, in the Keil MDK development environment, with the support of the Nordic SDK libraries.
In the nRF52 SoC used in the Sensor, one of the main and most important elements for our solution is the radio controller and the way it communicates with the microcontroller. Figure 6 shows a simplified block diagram of the nRF52 SoC with the important elements of the radio controller (RC). The RC is one of the peripherals of the SoC. It has the following features: a [2400–2500] MHz or [2360–2460] MHz frequency band with a 1 MHz channel spacing; supports Frequency-Shift Keying (FSK) modulation; a data rate of 1 Mb/s or 2 Mb/s; a transmitter output power from −40 dBm to +4 dBm; and a receiver sensitivity from −89 dBm to −96 dBm, depending on the radio configuration. The RC uses a fixed channel with a center frequency of 2421 MHz. This channel is selected to avoid interference with channels 37–39 used in Bluetooth Low Energy and to mitigate the influence of IEEE 802.11 networks (Wi-Fi). This frequency value is located at the edge of Wi-Fi channel 1. For operations using a 20 MHz channel spacing in Wi-Fi networks, the transmitted spectrum should have a −20 dBr (dB relative to the maximum spectral density of the signal) at an 11 MHz frequency offset relative to the center frequency (according to IEEE Std 802.11™). Consequently, the signals received from Wi-Fi networks are negligibly small.
As mentioned earlier, the manner in which the RC interacts with the microcontroller is very important. The RC has its own DMA controller, which provides direct access to the RAM of the microcontroller. In the RAM, there are dedicated buffers in which the received or transmitted on-air data frame is saved. Therefore, during the transmission or reception of data by the RC, the microcontroller can be in sleep mode. This significantly affects energy savings. In addition, various events occurring in the RC, such the packets sent or received, interrupt the microcontroller directly. Moreover, in our design, we use PPI to control the other peripherals via the radio, without the need to wake up the microcontroller from sleep mode. For example, a PPI task involves a radio disabled event with the main clock stop task.
The Radio packet buffer (for the RX or TX, as shown in Figure 6) is an element of the basic on-air radio packet of the nRF52 SoC. The layout of the packet is shown in Figure 7.
The PREAMBLE and ADDRESS fields are set once during the configuration of the radio controller, and the S0, LENGTH, S1, and PAYLOAD fields (as user fields) can be set before each frame is sent, whereas the CRC field is calculated and set by the hardware. The total number of bytes of fields for the user cannot exceed 258.

3.3. Configuration of the Proposed Protocol

The proposed protocol was implemented using a previously described Sensor and Central. The SUF duration (tSUF) was assumed to be 100 ms, the SYNC slot duration (tSYNC) was assumed to be 3 ms, and the BREAK slot duration (tBREAK) was assumed to be 1 ms. The number of sensor nodes in the system was four. Therefore, the slot duration (tDEV) for one sensor node (DEV) was 24 ms. The length of the sync packet was fixed at 12 bytes. The contents of the sync packet are shown in Figure 8.
For the implementation of the proposed protocol, the first four bytes have a constant value and allow the Sensor to check whether the received packet is a sync packet. The noTxSyncPacket field is incremented when this packet is sent and is used to investigate the number of lost packets. On the other hand, the CMDDEV1…4 fields in our case have a value of 0, but may be used in the future to send any data from the Central to the Sensors. However, as we mentioned earlier (Section 2.2), for our solution, the content of the sync packet is not important, but the moment of its receipt is.
The data packets (Figure 9) sent from the Sensors to the Central are of variable lengths.
The S0, S1, and RSV fields have a fixed value, whereas the others are variable. The noTxDataPacket field is incremented when this packet is sent, and the noDevRxSyncPacket field contains the number of the received sync packets. These fields allow for the investigation of the number of lost packets and the management of data on the Central side. The noRestDataPacketInSlot field contains the number of data packets to be sent in the assigned DEV slot during the SUF frame. This situation occurs when the amount of data to be sent from the Sensor to the Central does not fit into one on-air frame. The SENSORDATA field has a variable length and contains the data sent to the Central. In our case, these are samples of accelerometer (ADXL362) signals measured by the Sensor.

3.4. Samples Acquisition in the Sensor

In the implementation of the proposed solution, in the Sensor, samples of measurement signals were acquired in each sampling event (see Figure 3) in two ways: (1) by simulating the sample values and (2) by reading samples from a real sensor (ADXL362) connected to the nRF52 SoC microcontroller (see Figure 5a). The sampling events were determined using an additional nRF52 SoC low-power timer (RTC2 instance), referred to in our proposal as the sampling timer. The simulation consisted of entering the data directly into the SENSORDATA field of the data packet (see Figure 9). In turn, data from the three-axis ADXL362 accelerometer were read in real time, every 10 ms duration, in each sampling event using the SPI interface with an 8 MHz clock. With this clock, reading one sample of data from the three axes took approximately 25 µs. Therefore, in each sampling event of the SUFN frame, every 10 ms, the microcontroller was woken up (by the sampling timer). Then for approximately 25 µs, the data from the accelerometer were read and saved to the buffer, and the microcontroller was put back to sleep. Subsequently, in the next frame (SUFN+1), the data collected in the buffer were transmitted to the Central.

3.5. Power Measurement

Because one of the goals of our study was to minimize the energy consumption of the Sensor, it was necessary to precisely measure the power, especially under dynamic conditions. Energy consumption depends on the hardware solutions and microcontroller software. Therefore, we used the ULINKplus adapter for sensor node implementation and testing. ULINKplus is an innovative and useful adapter for simultaneous debugging and precise energy measurements. The ULINKplus adapter stands out from the dynamic power measurement devices currently available on the market. It has a very high sampling rate (up to 20 MHz), wide measurement range, high resolution (16-bit A/C), and high accuracy, and it can correlate current and voltage measurements in the program code being executed. In addition, the ULINKplus adapter allows for the easy calculation of energy over a selected time interval (between two cursors). Owing to this, in the used nRF52 SoC, clocked at 64 MHz, it was possible to accurately synchronize the power and energy consumption with the executed program code.
The power measurements for the Sensor radio module were performed according to the configuration shown in Figure 10.
An HMP2030 power supply was used as the energy source. The ULINKplus enabled precise measurements of the voltage, current, and energy. These measurements concerned only the radio module, as different types of sensors (e.g., accelerometer and biopotential analog front end) can be unique in terms of their overall energy consumption. Moreover, radio transceivers require most of the power required for typical wireless sensors. To accurately measure the impulse current changes, the decoupling capacitors of the radio module were only 1 µF and 100 nF. The selection of these capacitors is important, because their large capacity makes it impossible to observe impulse changes in the current, for example, when receiving or transmitting very short data packets or during hardware-software processes inside the nRF52 SoC.

4. Experimental Results

4.1. Base Frequency Measurements

In both the Central and Sensors, the base clock was the low-frequency clock (LFXO) of the nRF52 SoC. A crystal resonator (ECS-400-12.5-13X, ECS Inc., Lenexa, KS, USA) was used. The LFXO oscillator in the toggle-out mode (fLFXO divided by two) was connected to the TP line via the PPI. The CPU of nRF52 was in sleep mode. Frequency measurements were performed using an MTC108 (Frequency Mode, Gate = 10 s, and Samples Number = 10). The measurement results are shown in Table 1.
Two cases were tested. The first one was with the Central based on nRF52-DK, and the second was with the Central based on the Sensor board. The mean frequencies were almost the same, but the standard deviation (StdDev) was the highest for the Central based on the nRF52-DK. This was owing to the power supply of the nRF52-DK board from the USB of the desktop computer.

4.2. Super Frame Duration Measurement

The SUF durations in the Central and Sensors (generated from the received sync packets) are shown in Table 2. For these and subsequent measurements, MTC108 was in the multichannel Time Interval mode, and the samples number was 1000. Measurements were made for the Central and Sensors simultaneously. The results are the averages of three independent measurements.
For all Sensors, the StdDev of tSUF was approximately twice as large as that of the Central and was approximately five clock cycles of the nRF52 CPU (CPU clock = 64 MHz). The larger value of StdDev in the Sensors resulted from the additional dispersion of the detection of the moment of receiving the sync packet.

4.3. Super Frame Synchronization Measurement

The next measurements concerned the achievement of the SUF synchronization moment between the Central and the Sensors. To obtain this, the time tM1 was introduced and measured, as shown in Figure 11.
The tM1 is the time between the start of a SYNC slot at the Central and the reception of the end of the sync packet at the Sensor, as shown in Figure 11. Measurements were made for two distances between the Central and the Sensor: 0.5 and 1.0 m. The results are shown in Table 3.
For the proposed protocol configuration, the measured tM1 is approximately 264 µs (with a sync packet length of 12 bytes), which is slightly higher for a distance of 1 m. The tM1 is highly dependent on the length of the sync packet. Therefore, the length of this packet must be constant for the adopted protocol implementation. The StdDev for all the sensors is very small and does not exceed 74 ns.

4.4. Sampling Moments Synchronization Measurement

For synchronous data acquisition, it is important to ensure the same sampling moments in all Sensors (as well as in the Central). For this, time tM2 was introduced and measured, as shown in Figure 11. The distance between the Central and the Sensors was 0.5 m. Table 4 presents the results.
It can be observed that the maximum difference in tM2 between the sensors was not greater than 1 µs. The higher StdDev value (compared with Table 3) was the effect of additional dispersion caused by the start of an extra timer for the sampling process.
Knowing the average times of tM1 and tM2, time td can be calculated as the difference between the obtained averages. In our implementation, based on an nRF52832 SoC, we obtained td = 47.318 µs. The average value of StdDev given in Table 3 and Table 4 is 66 ns, so it is approximately four CPU clock ticks.

4.5. Packet Error Rate Measurements

The Packet Error Rate (PER) is the ratio (in percent) of the number of test packets not successfully received by the Central to the total number of test packets sent to the Central (from the Sensor). Simulated test packets, one per slot, with known contents, were sent from the Sensors. Therefore, the Central could easily verify the correctness of the received packets. In the case of at least one byte of corruption, the entire packet was discarded. To estimate the PER, 10 thousand packets were sent for each test. The PER was measured by considering several factors: the Sensor’s transmitter output power (TXPWR), the data rate (DR) of the radio, the number of data bytes transferred (BN) (in the PAYLOAD field) sent in the packet, and the distance (D) between the Sensor and the Central. In the on-air transmitted data packet of the nRF52 SoC, in addition to the payload data, there were also additional fields, for example PREAMBLE, ADDRESS, and CRC (see Figure 7). However, in the performed tests, BN was the payload size only. The results of PER versus TXPWR for two DR and a constant BN = 100 bytes with D = 2 m are presented in Figure 12.
The PER did not exceed 0.18% for TXPWR ≥ −4 dBm. For TXPWR ≥ 3 dBm, the PER ≤ 0.03%. It is obvious that increasing the DR or decreasing the TXPWR increased the PER.
The PER versus TXPWR results for various BNs and a constant DR = 1 Mb/s and D = 2 m are shown in Figure 13.
Increasing BN increases the PER, however, it is highly dependent on the TXPWR. For TXPWR ≥ 0 dBm, the PER value does not significantly depend on BN and does not exceed the value of 0.1%.
The results of the PER versus D for various DRs, a constant TXPWR, and a BN = 100 B are shown in Figure 14.
Because even small PER values were not observed for TXPWR ≥ 0 dBm and D ≤ 3 m, the test was performed for TXPWR = −12 dBm. For the adopted measurement conditions, the PER did not exceed 2% for D ≤ 2 m. For D = 3 m, a large increase in the PER was observed, especially for DR = 2 Mb/s.

4.6. Sensor Radio Module Power Measurements

To measure the power consumption of the Sensor radio module, a ULINKplus adapter (ARM Keil, Aschheim, Germany) was used, as shown in Figure 10. This adapter cooperates with the Keil MDK environment, which supports the energy calculations. An example of the radio module power consumption (Current and Voltage) during the RX and TX phases is shown in Figure 15.
In this example, two momentary increases in the radio module current consumption can be observed. One peak was caused by the CPU wake-up and then turning on the transceiver RX mode. This was in the range of the SYNC slot. The other peak was caused by the CPU wake-up again and then preparing the data packet (100 bytes in size) and switching the transceiver to the TX mode at a power of +4 dBm.
The radio module power consumption (PRM) versus BN for various TXPWRs for the proposed protocol is shown in Figure 16 and Figure 17 for DR = 1 Mb/s and 2 Mb/s, respectively.
Note that, if the BN exceeded the allowable size of the PAYLOAD field for the on-air frame, another frame was sent. PRM was the mean value measured over 8 s. The radio module supply voltage was 3.0 V and the internal DC/DC converter was on. The slot duration was tDEV = 24 ms. For this reason, the maximum numbers of BNs were 2500 and 5000 for DR = 1 Mb/s and 2 Mb/s, respectively. In each case, the power consumption increased with an increase in the number of transmitted bytes (BNs) and transmitter power (TXPWR), which is obvious. This is because the highest power consumption occurred when the nRF52 CPU was on and when the transceiver was active (RX or TX mode). Moreover, if BN > 10, the power consumption significantly depended on the DR (it was higher for 1 Mb/s than for 2 Mb/s, because it took a longer time to transmit the data).

5. Evaluation and Discussion

5.1. Synchronization of Data Acquisition

One of the main goals of this study was to achieve synchronous data acquisition in distributed wireless sensor networks. It was assumed that the synchronization of the sample reading for all nodes would not be worse than 100 µs. For this purpose, a proprietary protocol based on the TDMA technique with the organization described in Section 2.2 was proposed. The following configuration parameters were adopted in the TDMA cycle: a tSUF duration of 100 ms and a device slot duration tDEV of 24 ms. Both the Central and the Sensors used a base clock equal to 40.000 kHz, which gave a period of exactly 25 µs. The experimental tests confirmed that the reproduced mean value of the tSUF duration for the Sensors (see Table 2) was 100.000 ms and the standard deviation was only approximately 80 ns. However, in saWSNs, it is important to achieve the same starting point for the signal sampling moments. In the proposed solution, the maximum difference (r) between the first sampling moments (Figure 11, tM2) of all the Sensors was 0.826 µs. It should be noted that the r difference could increase with the next sampling moments within the tSUF duration. This depended on the sampling rate and stability of the base clocks in the Sensors (see Section 5.5).
It is also worth paying attention to the value of the delay td (see Figure 3 and Figure 11). The average td in our implementation was approximately 47 µs. This was a fixed value and did not affect the accuracy of the sampling synchronization. From the perspective of the synchronization of data acquisition in the saWSN, the measure of the dispersion of synchronization moments (described as standard deviation) is more important. In our implementation, it was only 66 ns, which resulted in approximately four clock cycles. Achieving such a small dispersion was possible using the PPI controller, appropriate interrupt priorities, and optimizing the microcontroller program code.
The synchronous data acquisition was tested in a real application. For each of the four Sensors, the ADXL362 accelerometer (see Figure 5a) was connected to the nRF52 SoC via the SPI interface. All the Sensors, placed approximately 0.3 m apart, were attached to one common bar that was rotated. Sampling events were triggered by an additional sampling timer implemented in the Sensors at a frequency of 100 Hz (10 samples per SUF). Data samples from each accelerometer (three-axis) collected in the given super frame (SUFN) were formed into a packet and sent to the Central during the next super frame (SUFN+1). The signals obtained for the X-axis are shown in Figure 18a and the magnified fragment is shown in Figure 18b. The presented waveforms confirm the very good synchronization of the data readings from the Sensors.

5.2. Data Transmission Reliability

The reliability of the data transfer is the most significant assessment parameter for any communication network. This is particularly important in saWSNs, where there is no time to retransmit the lost data packets. From Figure 12 and Figure 13, it can be seen that, even for small transmitter output power (TXPWR ≥ −4 dBm), a PER of ≤1% can be obtained, and it does not depend significantly on DR and BN. Moreover, for TXPWR ≥ 0 dBm, the PER was less than about 0.1%. Therefore, the dependence between the packet error rate and the distance between nodes was tested with a constant TXPWR of—12 dBm. As can be seen in Figure 14, even for this low value of transmission power, for a distance of ≤2 m, the PER was less than approximately 2%. In each case (Figure 12, Figure 13 and Figure 14), a decrease in DR resulted in a decrease in the PER. The results confirmed that reliable data transfer without the loss of the radio packet iwa possible at a distance of up to 2 m between the Central and Sensor. These are the distances that usually occur in WBAN networks.

5.3. Energy Saving

Another main aim of this study was to save the sensor node energy. Wireless sensors are often battery-powered, and the operating time between recharges or battery replacement is expected to be as long as possible. For this purpose, various hardware and software techniques that minimize the energy consumption have been adapted. In the proposed solution, the ULINKplus adapter was used to optimize the nRF52 SoC code to enhance the power efficiency.
An analysis of the average power consumption of the radio module (Figure 16 and Figure 17) showed that, for small values of BN (approximately 10), the power was slightly dependent on BN, TXPWR, and DR. This was because the operating time of the nRF52 transceiver in the TX mode was comparable to that in the RX mode. Thus, for a small number of BNs, extending the duration of the Super Frame would be beneficial. However, as BN increased (above 10), TXPWR and DR had an increasing influence on the energy consumption. This dependence was less visible at DR = 2 Mb/s, because a higher data rate caused a decrease in the transmission time and, thus, a reduction in energy consumption. The results of the average power measurement in the radio module (EYSHJNZXZ) within 8 s are presented in Table 5.
For DR = 2 Mb/s, there was a lower power consumption than that for DR = 1 Mb/s, whereas for TXPWR ≥ 0 dBm, the PER did not depend much on DR (see Figure 12 and Figure 13), and to save energy, it was more beneficial to set a higher DR and TXPWR. For example, for BN = 1000, the energy profit between DR = 1 Mb/s and 2 Mb/s was greater than the TXPWR difference between −4 dBm and 0 dBm (see Table 5). Further energy savings are possible, for example, by manipulating the times that the Sensors receive sync packets (e.g., every other Super Frame). Additionally, the dynamic management of TXPWR can be introduced.

5.4. Proposed Protocol

The proprietary protocol presented in this paper is based on TDMA, the sleep/wake-up techniques, and continuous data synchronization. As a result, a low-energy-consumption protocol was achieved. Periodic resynchronization was established by the sync packet transmission at the beginning of each Super Frame. Very-high-accuracy sampling synchronization (0.8 µs) was possible due to the use of tasks and events programming, as well as a priority interrupt management in the nRF52 SoC. Thanks to the proposed SUF organization, a fixed latency of 2× tSUF was achieved in the data acquisition. Increasing the tSUF would increase the latency, but also reduce power consumption. In the proposed SUF configuration, the duration of the SYNC slot was fixed at 3 ms. This was an excessive value, because sending a 12-bytes-length sync packet takes only 224 µs (for DR = 2 Mb/s). Therefore, additional data packets (e.g., with configurations, information, or requests) could be transferred in the SYNC slot from the Host to the Device or vice versa. Also, during the same SYNC slot, it was possible to send a sync packet twice. Thanks to this, the risk of losing the sync packet in Devices was reduced. Unfortunately, the loss of this packet would result in the loss of Device data for the previous SUF frame. But, in some applications, such as WBANs, data synchronization may be more important than temporary data loss. In addition, the proposed protocol could be modified so that the loss of one or a maximum of several sync packets would not stop the process of sampling and sending data from the Device to the Host. During this time, there will be no significant desynchronization of data acquisition, especially for tSUF < 1 s. Of course, this depends on the stability of the clock used and the sampling frequency.
Another feature of the proposed protocol is the ease of configuring the number of devices. It can vary from one to several dozen and depends on the required throughput for the data of an individual Device and the duration of tSUF. However, there is one limitation: tSUF should be an integer multiple of tSAMPDEVN (see Figure 3). Removing this limitation is possible, but would require the other synchronization method of the sampling timer.
The advantage of the protocol is the possibility to maintain energy-efficient and high-throughput communication with very fast sensor node responses (in time ≤ tSUF) in the case of a temporary loss of communication.
Although the proposed protocol is based on the very well-known TDMA technique, a novel scheme for its use was proposed. First of all, compared to other solutions based on TDMA, the proposal does not require sending any synchronizing information (e.g., timestamps or coordinates) or performing any calculations. It does not focus on time synchronization or clock correction, but only on the synchronization of sampling moments. The moment of sync packet reception is important, not its content. In connection with the hardware (not polling) triggering processes (e.g., triggering the sampling timer) in a SoC, an accuracy of data acquisition synchronization below 1 µs can be achieved, which is not possible in many traditional protocols. In this approach, the CPU activity time is minimized, and, at the same time, a significant amount of energy is saved.
Furthermore, the proposed solution does not require any additional hardware and ensures a low computational cost. The implementation consists of only a radio transceiver and a microcontroller with nested interrupts support. The software implemented in the microcontroller does not require complex calculations. It is mainly based on one-time configuration and events handling. This is a light-weight protocol based on TDMA with a very high precision of sampling events synchronization and a low energy consumption.
It is worth emphasizing that, in this solution, the operation of individual nodes, including their loss, does not affect the operation of the entire WSN. The node can be turned off and go into the energy-saving mode at any time. It can also be included in the network organization immediately (after one SUF frame). Thanks to this, nodes can dynamically disconnect/connect, for example, based on motion detection, the threshold values of measured signals, etc. This offers even additional energy-saving opportunities.
Another feature that distinguishes this solution from other protocols is the possibility of real-time data transmission. During the SUF frame duration, the Sensor collects the samples of the measured signals in a buffer and sends them in the next SUF frame. As a result, the Central receives those samples in real time with a constant delay equal to 2 × tSUF, which is the same for all nodes.
Summarizing the discussion on the proposed protocol, it is worth noting that, despite the fact that there are many traditional protocols (e.g., Bluetooth Low Energy, ZigBee, 802.15.4), the TDMA technique is still popular. In [60], a TDMA approach was applied to molecular communication via diffusion-based nano-sensor networks for data-gathering applications in in-body medical systems. The design of a hybrid LPWAN mesh network using a custom TDMA for IoT applications that delivers data over the distance of several kilometers with only low-power nodes was presented in [61]. In [62], a heuristic TDMA scheduling algorithm was presented to achieve optimized time slot scheduling with multichannel communication. A new efficient TDMA scheduling algorithm based on a genetic algorithm was presented in [63]. There are also known new approaches combining TDMA and CSMA (carrier sense multiple access) techniques [55,64].

5.5. Technical Analysis of the Proposed Scheme

The proposed protocol can be implemented in a network with different numbers of sensor nodes (devices) and variable SUF durations, however, it has an impact on the performance of the saWSN. As the proposed scheme is dedicated mainly to synchronous data acquisition, an important factor is also the stability of the clock, which determines the moments of the signal sampling.
Increasing the number of devices (DN) reduces the duration of the tDEV slot and, in turn, directly affects the maximum throughput data (MDT) for each device. This relationship is shown in Figure 19.
The MDT decreased with an increase in the DN and the duration of tSUF. However, this depended on the DR, which is obvious. For DN = 1, the MDT was close to the DR. For the nRF52 SoC used in the test bench, the on-air maximum packet length was 258 bytes, including a maximum of 255 bytes of payload data. Therefore, the maximum theoretical use of the DR for data transfer was 95%. In real applications, however, the effective throughput is even lower due to the specific protocol implementation (for example, additional time is needed for control, process switching, etc.). In this implementation, the use of DR for effective data transfer was approximately 80% (i.e., DN = 1, tSUF = 1 s, DR = 2 Mb/s, MDT = 1.58 Mb/s).
In the analysis shown in Figure 19, it is assumed that the durations of all tDEV slots are the same. However, tDEV does not have to be uniform for all devices and can be adapted to a specific application (e.g., the max. throughput for Device 1 may be greater than that of Device 2). In all these cases, however, the condition described by Equation (1) must be met.
t D E V 1 + t D E V 2 + + t D E V N   t S U F t S Y N C t B R E A K
Another important factor affecting the performance of the proposed saWSN scheme is tSUF. The tSUF has an impact on the energy consumption and the accuracy of the data acquisition synchronization. A calculator [65] was used to analyze the influence of tSUF on the total average nRF52 SoC current for different values of BN and DR. The simulation assumed: VCC = 3.0 V, DC/DC = on, TXPWR = 0 dBm, data packet length extension = on, and length of the sync packet = 12 bytes. The results for DR = 1 Mb/s and 2 Mb/s are shown in Figure 20 and Figure 21, respectively.
In all cases, the power consumption decreased with increasing tSUF. This was due to the fact that, as tSUF increased, sync packets were transmitted less frequently, so the device remained in the sleep mode for longer. This is particularly important for small amounts of data transferred (i.e., low BN). Therefore, to save energy, tSUF should be longer for small values of BN. Increasing DR also reduced PRM, as the transmission time was shorter. For example, for tSUF = 100 ms and BN = 500 B, the PRM was 1.05 mW and 0.61 mW for DR = 1 Mb/s and 2 Mb/s, respectively.
Although increasing tSUF saves energy, at the same time, the data latency increases. Moreover, an increase in tSUF adversely affects the synchronization of data acquisiton. Because data synchronization is very important in this research, the impact of the sampling frequency (fS), tSUF, and clock stability on the synchronization error was analyzed. For this purpose, the maximum sampling period error (SPEmax) that could occur in the device was determined. According to Figure 3, it was assumed that the first sampling moments in all devices were synchronized with each other with an accuracy (sA) of about 0.8 µs (see Section 5.1). It was also assumed that, in each device, an extra timer with a nominal frequency fLFXO = 40.000 kHz was used for the sampling process. The SPEmax is described by Equation (2).
S P E M A X = t S U F   ×   f S 1 × f L F X O × d + s A × f S
where:
  • SA—synchronization accuracy
d = 1 f L F X O f L F X O   ×   v 10 6 1 f L F X O + f L F X O   ×   v 10 6  
vfLFXO frequency variation in ppm
The SPEmax analysis for fLFXO clock stabilities of 50 ppm and 20 ppm is shown in Figure 22 and Figure 23, respectively.
An increase in fS caused an almost linear increase in the SPEmax error in each case. Moreover, SPEmax grew very quickly with the increasing duration of SUF (tSUF). Therefore, to obtain the expected accuracy of the data acquisition synchronization for the selected fS, the tSUF should be carefully selected. The SPEmax was directly influenced by the clock stability. For example, for SPEmax not to exceed 10% for tSUF = 1 s, the maximum fS is 1 kHz and 2.5 kHz for the clock stabilities of 50 ppm and 20 ppm, respectively. The value of SPEmax ≥ 100% means that, in the saWSN, there is a desynchronization of the sampling moments by at least one sampling period, so it is a case that should not occur.
In the proposed type of sensor node, it is worth paying attention to one factor that affects the energy consumption. It is a digital interface for communication between the SoC and another on-board sensor (e.g., digital accelerometer). Typically, a three- or four-wire SPI or two-wire I2C interface is used. Although an I2C is a user-friendly interface, it consumes more energy than an SPI. This is because the I2C operates at a much lower clock frequency than the SPI (typically 400 kHz versus 10 MHz), requiring longer CPU or DMA controller activity. Moreover, the I2C bus requires pull-up resistors (Rp) (typically 2 kΩ for 400 kHz). A low state on the I2C bus forces a quite high current to flow through these Rp, for example, for VI2CBUS = 3 V, 2 × 2 kΩ, it is as high as 3 mA. This value is quite large compared to the nRF52 SoC radio (7.1 mA for TXPWR at 0 dBm [58]). Therefore, to save energy in the sensor node, it is better to use the SPI interface than I2C.
The energy consumption of the sensor node may also be influenced by other factors connected with the SoC type. For example, in the used nRF52 SoC, the Real-Time Counter (RTC) tick event should be disabled, because it increases the energy consumption, even if the RTC interrupt is turned off. This is particularly important for the energy-saving mode of operation (i.e., sleeping mode).
The above-mentioned details, the use of hardware features such as PPI, DMA, and other autonomous controllers, the sleep and fast wake-up technique, tasks and events programming, proper interrupts usage, including nested ones, avoiding the polling technique, and optimizing the code to minimize the energy consumption using special debuggers (with power measurement features) are design elements that may be defined as deep energy-efficient coding (DEEC). DEEC allows for the design of various types of sensors for energy-aware applications.

5.6. Complexity and Computational Performance of the Proposed Scheme

The proposed type of sensor node can be used as an IoT node with strict constraints in terms of memory, power, computational capability, and communication resources. The implemented protocol is light-weight and requires a low computing power. The implementation of the proposed protocol in the nRF52 SoC and Keil MDK environment requires only 8.6 kB and 1.1 kB of program and data memory, respectively. Moreover, due to the use of the PPI technique, DMA, and a Cortex-M4 nested vectored interrupt controller, the load on the nRF52 CPU is very small. These practices save energy and allow the other algorithms to run in parallel. However, the use of PPI and DMA techniques is not necessary. All operations can be implemented in software. Unfortunately, the exclusive use of software solutions worsens the accuracy of synchronization and increases the CPU load and energy consumption.
In order to determine the computational complexity of the proposed scheme, the CPU execution cycles (clock ticks) were measured. For this purpose, a Data Watchpoint and Trace (DWT) cycle counter located at the core of the Cortex-M4 processor was used. First, the clock ticks (nct) and execution times (et) for the initialization procedures (performed once at start-up) were measured. For the proposed solution, they were very small, i.e., nct = 5204 and et = 81 µs (for CPU clock = 64 MHz). However, the number of clock ticks required to perform all procedures during an elementary SUF frame is more important. For this purpose, nct and et were measured in the sensor nodes between successive sync packet reception events (marked with a dashed red line in Figure 3) for tSUF = 100 ms and DR = 2 Mb/s. The measurements were carried out for different sampling frequencies and different sampling event handler times (seht), with the assumption that two bytes of data were sent for one sample. For each case, 30 measurements were made, and the mean value was calculated. The results for seht = 2 µs are presented in Table 6 and Figure 24.
The CPU activity was calculated as the ratio of nct with the sleep mode to nct without the sleep mode approach. If the CPU is always active, approximately 6.5 million clock ticks are required during one SUF frame. However, it should be noted that, in this case, the processor is active for many periods in the SUF, during which it does not perform any tasks. Therefore, to estimate the real computational complexity of the proposed solution, the processor should be put into sleep mode if it does not perform any tasks.
Table 6. Selected results of computational complexity 1.
Table 6. Selected results of computational complexity 1.
Sampling Events
Per One SUF
fS
[Hz]
nctet
[ms]
CPU Activity [%]
0 2-33,067 20.52 20.51 2
1106,473,031 3101.14 3100.00 3
11034,7020.540.54
1010044,9410.700.69
1001000150,0622.342.32
100010,0001,186,15318.5318.34
1 Results for tSUF = 100 ms, DR = 2 Mb/s, CPU clock = 64 MHz, seht = 2 µs. 2 Sampling process disabled (no sampling events). 3 CPU of the nRF52 always in the active mode (without the sleep mode approach).
As shown in Table 6, only approximately 33 thousand clock ticks are needed for the protocol handling algorithm and only approximately 45 thousand clock ticks are required to gather data at the frequency of 100 Hz (at seht = 2 µs).
The CPU activity measured with the sleep-mode-enabled approach can be taken as the average CPU load for a given microprocessor and its operating frequency (in this case—nRF52, 64 MHz). The CPU load for the proposed solution versus the sampling frequency for various seht is shown in Figure 24.
Figure 24. Analysis of CPU load versus fS for various sampling event handler time (seht) (A = 128 clock ticks (c.t.) = 2 µs, B = 640 c.t. = 10 µs, C = 1280 c.t. = 20 µs, D = 3200 c.t. = 50 µs).
Figure 24. Analysis of CPU load versus fS for various sampling event handler time (seht) (A = 128 clock ticks (c.t.) = 2 µs, B = 640 c.t. = 10 µs, C = 1280 c.t. = 20 µs, D = 3200 c.t. = 50 µs).
Sensors 24 04871 g024
The seht is the time needed to handle a single event of the sampling process, for example, variant A is the time needed to read the Analog-to-Digital Converter (ADC) and trigger it again in the nRF52 SoC. Other variants (B, C, and D) were simulated. It can be seen that, at a low fS (<200 Hz), the CPU load is very small (<2%) and depends little on fS and seht. In these cases, the CPU load is mainly due to the protocol handling. However, for a higher fS, the CPU load increases and depends on the value of seht.
The evaluation of the computational complexity showed that even a simple low-cost microcontroller can be used for the proposed scheme. The use of a high-performance microcontroller (such as Cortex-M4) in the scheme allows for the parallel running of complex algorithms, for example, for digital signal processing. The two basic elements required to implement the proposed solution are a microcontroller and a radio transceiver. In the past, these were usually separate chips, but today, they are SoCs, such as nRF52 and nRF53 series (Nordic Semiconductor), CC1352 series (Texas Instruments), EFR32BG series (Silicon Labs), BlueNRG series (STMicroelectronics), SmartBondTM series (Dialog Semiconductor), and many others. Besides the many obvious advantages of SoCs (e.g., small dimensions and lower costs), they have many features that are important for energy saving and program code simplification. This results from the fact that the integrated transceiver is a peripheral device of the microcontroller, and its operation is supported by the hardware (e.g., DMA, peripheral interconnect feature).
In terms of the power supply, the proposed sensor node does not have any special requirements. The power supply is typical, similar to that of Bluetooth Low Energy (typically from 1.8 V to 3.6 V), and depends mainly on the SoC used. The maximum peak current mainly depends on the transmitter output power (in this implementation, it is approximately 10 mA for TXPWR = +4 dBm). However, the current of the SoC in sleep mode is important, because the average power consumption largely depends on it.
The proposed scheme also has low communication resource requirements. They only depend on the type of interface needed to communicate with the devices connected to the sensor node (e.g., accelerometer and digital analog front end). The most common are popular interfaces, such as I2C, SPI, and UART.

5.7. Synchronization Accuracy and Energy Efficiency Comparison with Related Works

The solution implemented in the proposed sensor node was compared with other related works in which the results of the average power consumption and/or data synchronization accuracy were given. This comparison is presented in Table 7. Unfortunately, not all data can be linked due to insufficient information. In such cases, “n/r” was entered. As shown, data synchronization accuracy at the µs level is possible. In the proposed solution, it was 0.8 µs, which is a very good result.
Because power consumption largely depends on the throughput data, the relationship between them is also presented. Although there is a very large variance in the results, in many cases [22,40,49,66], it is approximately 1÷2 mW × (kb/s)−1. In the proposed solution, it is 0.015 and 0.021 mW × (kb/s)−1 for transmitter output powers of 0 dBm and +4 dBm, respectively.

5.8. Limitations of the Proposed Scheme

The proposed scheme for wireless sensor networks also has the following limitations.
  • All slots in the protocol follow one another in a predefined order, which cannot be changed while the network is running. This can only be changed at the protocol implementation stage.
  • No changes in the protocol are possible when the system is configured. In some cases, for example, when additional information in the synchronization packet is required (and, consequently, the packet length will increase), starting a new implementation of the protocol will be necessary (but only to a small extent regarding the sampling process).
  • No retransmission occurs in the case of packet loss. For this reason, gaps in data streams may occur.
  • The duration of the Super Frame (tSUF) should be an integer multiple of tSAMPDEVN.
  • The proposed solution is only suitable for networks with a fixed star configuration.

6. Conclusions

In this study, a proprietary protocol for synchronous data acquisition in real-time applications of a WSN was proposed. The analysis of the proposed solution was performed in a real test bench. As a hardware design, a commonly available SoC nRF52 operating in the ISM 2.4 GHz band was used. The experiments confirmed a very high sampling synchronization accuracy (at the level of 0.8 µs) and ultra-low power consumption (only 15 µW per 1 kb/s throughput data and for transmitter output power of 0 dBm). The proposed solution exhibited a good performance in terms of functionality, communication, and energy efficiency because of the sleep/wake-up techniques, tasks and events programming, as well as the DMA and the nRF52 SoC programmable peripheral interconnect feature, minimizing the CPU activity. Additionally, optimization of the sensor node firmware was considered and the ULINKplus adapter was used, which enabled deep energy-efficient coding. This adapter, with energy measurement and simultaneous debugging functions, creates new possibilities for designing energy-efficient and high-performance electronics, especially for battery-powered or battery-free devices.
The proposed solution is designed for systems with periodic data acquisition. When the samples’ data buffer is full, the sensor data are packetized and sent as one frame in a predefined slot of the TDMA cycle. This requires, however, prior planning of the entire system, and no changes can be enacted while the network is running. In the proposed protocol, there is no retransmission due to packet loss that may occur in the radio channel. The radio channel condition is indeed the only factor affecting the transmission reliability. Data collisions do not occur, because TDMA is used. Thus, the complex mechanisms for data anticollision and reliable data transmission like in Bluetooth or the ZigBee solution are not necessary. The proposed solution is dedicated to WSN applications, especially for WBAN, where synchronous data acquisition is more important than the temporary loss of data packets, for example, in a novel cuff-less continuous non-invasive blood-pressure-monitoring method based on pulse arrival time. The effectiveness of the proposed solution was evaluated through experiments conducted under a lab-controlled test bench. The results demonstrated an improved energy efficiency, data synchronization accuracy, and high throughput for real-time data. A comparison with other proposals is presented in Table 7. Such sensors can be used as edge devices in the rapidly developing medical IoT, particularly when there is a need for synchronous and accuracy continuous or periodic data acquisition.
Future work will include data encryption and large-scale testing using physiological signal acquisition. Mechanisms for the retransmission of lost packets and the adjustment of the output power according to the estimated RSSI value will also be considered.

Author Contributions

Conceptualization, T.S.; methodology, T.S. and M.B.; software, T.S.; validation, T.S.; formal analysis, T.S. and M.B.; investigation, T.S. and M.B.; resources, T.S. and M.B.; data curation, T.S.; writing—original draft preparation, T.S. and M.B.; writing—review and editing, T.S. and M.B.; visualization, T.S.; supervision, T.S.; project administration, T.S.; funding acquisition, T.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the Military University of Technology under Grant GBMON/13-996/2018/WAT and UGB 755.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors would like to thank Arkadiusz Bochyński from Military University of Technology for the PCB project and initial nRF52 SoC configuration.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Rhee, I.-K.; Lee, J.; Kim, J.; Serpedin, E.; Wu, Y.-C. Clock Synchronization in Wireless Sensor Networks: An Overview. Sensors 2009, 9, 56–85. [Google Scholar] [CrossRef] [PubMed]
  2. Wu, Y.; Chaudhari, Q.; Serpedin, E. Clock Synchronization of Wireless Sensor Networks. IEEE Signal Process. Mag. 2011, 28, 124–138. [Google Scholar] [CrossRef]
  3. Djenouri, D.; Bagaa, M. Synchronization Protocols and Implementation Issues in Wireless Sensor Networks: A Review. IEEE Syst. J. 2016, 10, 617–627. [Google Scholar] [CrossRef]
  4. Malović, M.; Brajović, L.; Mišković, Z.; Šekara, T. Simultaneity Analysis In A Wireless Sensor Network. Metrol. Meas. Syst. 2015, 22, 275–288. [Google Scholar] [CrossRef]
  5. Liu, G.; Yan, S.; Mao, L. Receiver-Only-Based Time Synchronization Under Exponential Delays in Underwater Wireless Sensor Networks. IEEE Internet Things J. 2020, 7, 9995–10009. [Google Scholar] [CrossRef]
  6. Li, J.; Mechitov, K.A.; Kim, R.E.; Spencer, B.F. Efficient time synchronization for structural health monitoring using wireless smart sensor networks. Struct. Control Health Monit. 2016, 23, 470–486. [Google Scholar] [CrossRef]
  7. Laflamme, S.; Ubertini, F.; Di Matteo, A.; Pirrotta, A.; Perry, M.; Fu, Y.; Li, J.; Wang, H.; Hoang, T.; Glisic, B.; et al. Roadmap on measurement technologies for next generation structural health monitoring systems. Meas. Sci. Technol. 2023, 34, 0930012023. [Google Scholar] [CrossRef]
  8. Yu, X.; Fu, Y.; Li, J.; Mao, J.; Hoang, T.; Wang, H. Recent advances in wireless sensor networks for structural health monitoring of civil infrastructure. J. Infrastruct. Intell. Resil. 2024, 3, 100066. [Google Scholar] [CrossRef]
  9. Veluthedath Shajihan, S.A.; Chow, R.; Mechitov, K.; Fu, Y.; Hoang, T.; Spencer, B.F. Development of Synchronized High-Sensitivity Wireless Accelerometer for Structural Health Monitoring. Sensors 2020, 20, 4169. [Google Scholar] [CrossRef]
  10. Fu, Y.; Mechitov, K.; Hoang, T.; Kim, J.R.; Memon, S.A.; Spencer, B.F., Jr. Efficient and high-precision time synchronization for wireless monitoring of civil infrastructure subjected to sudden events. Struct. Control Health Monit. 2020, 28, e2643. [Google Scholar] [CrossRef]
  11. Malon, K.; Skokowski, P.; Lopatka, J. Optimization of wireless sensor network deployment for electromagnetic situation monitoring. Int. J. Microw. Wirel. Technol. 2018, 10, 746–753. [Google Scholar] [CrossRef]
  12. Isakow, Z. Wireless acquisition of multi-channel seismic data using the Seismobile system. E3S Web Conf. 2017, 24, 01008. [Google Scholar] [CrossRef]
  13. Latré, B.; Braem, B.; Moerman, I.; Blondia, C.; Demeester, P. A survey on wireless body area networks. Wirel. Netw. 2011, 17, 1–18. [Google Scholar] [CrossRef]
  14. Movassaghi, S.; Abolhasan, M.; Lipman, J.; Smith, D.; Jamalipour, A. Wireless Body Area Networks: A Survey. IEEE Commun. Surv. Tutor. 2014, 16, 1658–1686. [Google Scholar] [CrossRef]
  15. Hasan, K.; Biswas, K.; Ahmed, K.; Nafi, N.S.; Islam, S. A comprehensive review of wireless body area network. J. Netw. Comput. Appl. 2019, 143, 178–198. [Google Scholar] [CrossRef]
  16. Serrani, A.; Aliverti, A. Performance Assessment for the Validation of Wireless Communication Engines in an Innovative Wearable Monitoring Platform. Sensors 2024, 24, 2782. [Google Scholar] [CrossRef] [PubMed]
  17. Gravina, R.; Alinia, P.; Ghasemzadeh, H.; Fortino, G. Multi-sensor fusion in body sensor networks: State-of-the-art and research challenges. Inf. Fusion 2017, 35, 68–80. [Google Scholar] [CrossRef]
  18. Gandhi, V.; Singh, J. An automated review of body sensor networks research patterns and trends. J. Ind. Inf. Integr. 2020, 18, 100132. [Google Scholar] [CrossRef]
  19. Khan, R.A.; Pathan, A.-S.K. The state-of-the-art wireless body area sensor networks: A survey. Int. J. Distrib. Sens. Netw. 2018, 14, 1–23. [Google Scholar] [CrossRef]
  20. Olatinwo, D.D.; Abu-Mahfouz, A.M.; Hancke, G.P.; Myburgh, H.C. Energy Efficient Priority-Based Hybrid MAC Protocol for IoT-Enabled WBAN Systems. IEEE Sens. J. 2023, 23, 13524–13538. [Google Scholar] [CrossRef]
  21. Lubina, P.; Rudzki, M. Artificial neural networks in accelerometer-based human activity recognition. In Proceedings of the 2015 22nd International Conference Mixed Design of Integrated Circuits & Systems (MIXDES), Torun, Poland, 25–27 June 2015; pp. 63–68. [Google Scholar] [CrossRef]
  22. Mo, L.; Liu, S.; Gao, R.X.; John, D.; Staudenmayer, J.W.; Freedson, P.S. Wireless Design of a Multisensor System for Physical Activity Monitoring. IEEE Trans. Biomed. Eng. 2012, 59, 3230–3237. [Google Scholar] [CrossRef] [PubMed]
  23. Attal, F.; Mohammed, S.; Dedabrishvili, M.; Chamroukhi, F.; Oukhellou, L.; Amirat, Y. Physical Human Activity Recognition Using Wearable Sensors. Sensors 2015, 15, 31314–31338. [Google Scholar] [CrossRef] [PubMed]
  24. Yang, Y.-H.; Ruan, S.-J.; Chen, P.-C.; Liu, Y.-T.; Hsueh, Y.-H. A Low-Cost Wireless Multichannel Surface EMG Acquisition System. IEEE Consum. Electron. Mag. 2020, 9, 14–19. [Google Scholar] [CrossRef]
  25. Ergeneci, M.; Gokcesu, K.; Ertan, E.; Kosmas, P. An Embedded, Eight Channel, Noise Canceling, Wireless, Wearable sEMG Data Acquisition System with Adaptive Muscle Contraction Detection. IEEE Trans. Biomed. Circuits Syst. 2018, 12, 68–79. [Google Scholar] [CrossRef] [PubMed]
  26. Sondej, T.; Sieczkowski, K.; Olszewski, R.; Dobrowolski, A. Simultaneous multi-site measurement system for the assessment of pulse wave delays. Biocybern. Biomed. Eng. 2019, 39, 488–502. [Google Scholar] [CrossRef]
  27. Esmaili, A.; Kachuee, M.; Shabany, M. Nonlinear Cuffless Blood Pressure Estimation of Healthy Subjects Using Pulse Transit Time and Arrival Time. IEEE Trans. Instrum. Meas. 2017, 66, 3299–3308. [Google Scholar] [CrossRef]
  28. Ganti, V.G.; Carek, A.M.; Nevius, B.N.; Heller, J.A.; Etemadi, M.; Inan, O.T. Wearable Cuff-less Blood Pressure Estimation at Home via Pulse Transit Time. IEEE J. Biomed. Health Inform. 2020, 25, 1926–1937. [Google Scholar] [CrossRef] [PubMed]
  29. Yang, S.; Zaki, W.S.W.; Morgan, S.P.; Cho, S.-Y.; Correia, R.; Zhang, Y. Blood pressure estimation with complexity features from electrocardiogram and photoplethysmogram signals. Opt. Quant. Electron. 2020, 52, 135. [Google Scholar] [CrossRef]
  30. Wilkinson, I.B.; McEniery, C.M.; Schillaci, G.; Boutouyrie, P.; Segers, P.; Donald, A.; Chowienczyk, P.J. ARTERY Society guidelines for validation of non-invasive haemodynamic measurement devices: Part 1, arterial pulse wave velocity. Artery Res. 2010, 4, 34–40. [Google Scholar] [CrossRef]
  31. Skiadopoulos, K.; Tsipis, A.; Giannakis, K.; Koufoudakis, G.; Christopoulou, E.; Oikonomou, K.; Kormentzas, G.; Stavrakakis, I. Synchronization of data measurements in wireless sensor networks for IoT applications. Ad. Hoc. Netw. 2019, 89, 47–57. [Google Scholar] [CrossRef]
  32. Yang, F.; Wu, Q.; Hu, X.; Ye, J.; Yang, Y.; Rao, H.; Ma, R.; Hu, B. Internet of Things Enabled Data Fusion Method for Sleep Healthcare Applications. IEEE Internet Things J. 2021, 8, 15892–15905. [Google Scholar] [CrossRef] [PubMed]
  33. Moreno-Cruz, F.; Toral-López, V.; Escobar-Molero, A.; Ruíz, V.U.; Rivadeneyra, A.; Morales, D.P. treNch: Ultra-Low Power Wireless Communication Protocol for IoT and Energy Harvesting. Sensors 2020, 20, 6156. [Google Scholar] [CrossRef] [PubMed]
  34. Kanoun, O.; Bradai, S.; Khriji, S.; Bouattour, G.; El Houssaini, D.; Ben Ammar, M.; Naifar, S.; Bouhamed, A.; Derbel, F.; Viehweger, C. Energy-Aware System Design for Autonomous Wireless Sensor Nodes: A Comprehensive Review. Sensors 2021, 21, 548. [Google Scholar] [CrossRef] [PubMed]
  35. Dziadak, B.; Makowski, Ł.; Michalski, A. Survey of Energy Harvesting Systems for Wireless Sensor Networks in Environmental Monitoring. Metrol. Meas. Syst. 2016, 23, 495–512. [Google Scholar] [CrossRef]
  36. Bouřa, A. A simple and affordable powering circuit for iot sensor nodes with energy harvesting. Metrol. Meas. Syst. 2020, 27, 575–587. [Google Scholar] [CrossRef]
  37. Haghi, M.; Neubert, S.; Geissler, A.; Fleischer, H.; Stoll, N.; Stoll, R.; Thurow, K. A Flexible and Pervasive IoT-Based Healthcare Platform for Physiological and Environmental Parameters Monitoring. IEEE Internet Things J. 2020, 7, 5628–5647. [Google Scholar] [CrossRef]
  38. Salazar-Lopez, J.R.; Millan-Almaraz, J.R.; Gaxiola-Camacho, J.R.; Vazquez-Becerra, G.E.; Leal-Graciano, J.M. GPS-Based Network Synchronization of Wireless Sensors for Extracting Propagation of Disturbance on Structural Systems. Sensors 2024, 24, 199. [Google Scholar] [CrossRef] [PubMed]
  39. Hassan, M.; Hussein, A.; Nassr, A.A.; Karoumi, R.; Sayed, U.M.; Abdelraheem, M. Optimizing Structural Health Monitoring Systems Through Integrated Fog and Cloud Computing Within IoT Framework. IEEE Access 2024, 12, 89628–89646. [Google Scholar] [CrossRef]
  40. Pflugradt, M.; Mann, S.; Tigges, T.; Görnig, M.; Orglmeister, R. Multi-modal signal acquisition using a synchronized wireless body sensor network in geriatric patients. Biomedizinische Technik. Biomed. Eng. 2016, 61, 57–68. [Google Scholar] [CrossRef]
  41. Malawski, F.; Kapela, K.; Krupa, M. Synchronization of External Inertial Sensors and Built-in Camera on Mobile Devices. In Proceedings of the 2023 IEEE Symposium Series on Computational Intelligence (SSCI), Mexico City, Mexico, 5–8 December 2023; pp. 772–777. [Google Scholar] [CrossRef]
  42. Verdel, N.; Mohorcic, M.; Drobnic, M.; Supej, M.; Depolli, M. Time Synchronization in Wireless IMU Sensors for Accurate Gait Analysis During Running. In Proceedings of the 2023 IEEE International Workshop on Sport, Technology and Research (STAR), Trento, Italy, 14–16 September 2023; pp. 126–129. [Google Scholar] [CrossRef]
  43. Masalskyi, V.; Čičiurėnas, D.; Dzedzickis, A.; Prentice, U.; Braziulis, G.; Bučinskas, V. Synchronization of Separate Sensors’ Data Transferred through a Local Wi-Fi Network: A Use Case of Human-Gait Monitoring. Future Internet 2024, 16, 36. [Google Scholar] [CrossRef]
  44. Wang, Q.; Chai, X.; Wang, Y.; Liu, D.; Chen, M.; Li, Y.; Liu, X.; Bai, O. A high data rate, multi-nodes wireless personal-area sensor network for real-time data acquisition and control. In Proceedings of the 2017 First International Conference on Electronics Instrumentation & Information Systems (EIIS), Harbin, China, 3–5 June 2017; pp. 1–5. [Google Scholar] [CrossRef]
  45. Huang, Y.; Huan, Y.; Zou, Z.; Pei, W.; Gao, X.; Wang, Y.; Zheng, L. A wearable group-synchronized EEG system for multi-subject brain-computer interfaces. Front. Neurosci. 2023, 17, 1176344. [Google Scholar] [CrossRef] [PubMed]
  46. Hasani, H.; Freddi, F.; Piazza, R.; Ceruffi, F. A Wireless Data Acquisition System Based on MEMS Accelerometers for Operational Modal Analysis of Bridges. Sensors 2024, 24, 2121. [Google Scholar] [CrossRef] [PubMed]
  47. Gao, S.; Zhang, X.; Du, C.; Ji, Q. A Multichannel Low-Power Wide-Area Network with High-Accuracy Synchronization Ability for Machine Vibration Monitoring. IEEE Internet Things J. 2019, 6, 5040–5047. [Google Scholar] [CrossRef]
  48. Bernhard, H.; Berger, A.; Springer, A. Timing synchronization of low power wireless sensor nodes with largely differing clock frequencies and variable synchronization intervals. In Proceedings of the 2015 IEEE 20th Conference on Emerging Technologies & Factory Automation (ETFA), Luxembourg, 8–11 September 2015; pp. 1–7. [Google Scholar] [CrossRef]
  49. Marinkovic, S.J.; Popovici, E.M.; Spagnol, C.; Faul, S.; Marnane, W.P. Energy-Efficient Low Duty Cycle MAC Protocol for Wireless Body Area Networks. IEEE Trans. Inf. Technol. Biomed. 2009, 13, 915–925. [Google Scholar] [CrossRef] [PubMed]
  50. Ullah, S.; Kwak, K.S. An ultra low-power and traffic-adaptive medium access control protocol for wireless body area network. J. Med. Syst. 2012, 36, 1021–1030. [Google Scholar] [CrossRef]
  51. Sadhukhan, D.; Rao, S.V. Energy efficient multi-beacon guard method for periodic data gathering in time-synchronized WSN. Wireless Netw. 2020, 26, 5337–5354. [Google Scholar] [CrossRef]
  52. Morrison, D.; Ablitt, T.; Redouté, J. Miniaturized Low-Power Wireless Sensor Interface. IEEE Sens. J. 2015, 15, 4731–4732. [Google Scholar] [CrossRef]
  53. Teo, T.H.; Qian, X.; Gopalakrishnan, P.K.; Hwan, Y.S.; Haridas, K.; Pang, C.Y.; Cha, H.K.; Je, M. A 700-µW Wireless Sensor Node SoC for Continuous Real-Time Health Monitoring. IEEE J. Solid-State Circuits 2010, 45, 2292–2299. [Google Scholar] [CrossRef]
  54. Yoon, D.-Y.; Jeong, C.-J.; Cartwright, J.; Kang, H.-Y.; Han, S.-K.; Kim, N.-S.; Ha, D.-S.; Lee, S.-G. A New Approach to Low-Power and Low-Latency Wake-Up Receiver System for Wireless Sensor Nodes. IEEE J. Solid-State Circuits 2012, 47, 2405–2419. [Google Scholar] [CrossRef]
  55. Liang, B.; Liu, X.; Zhou, H.; Leung, V.C.M.; Liu, A.; Chi, K. Channel Resource Scheduling for Stringent Demand of Emergency Data Transmission in WBANs. IEEE Trans. Wirel. Commun. 2021, 20, 2341–2352. [Google Scholar] [CrossRef]
  56. Nordic Semiconductor. nRF5340 Product Specification. v1.3. 2022. Available online: https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.pdf (accessed on 27 October 2022).
  57. Szplet, R.; Kwiatkowski, P.; Różyc, K.; Jachna, Z.; Sondej, T. Picosecond-precision multichannel autonomous time and frequency counter. Rev. Sci. Inst. 2017, 88, 125101–125112. [Google Scholar] [CrossRef] [PubMed]
  58. Nordic Semiconductor. nRF52832 Product Specification. v1.4. 2017. Available online: https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf (accessed on 16 November 2017).
  59. Taiyo Yuden Co., Ltd. Bluetooth Low Energy Module EYSHJNZXZ Data Report, Ver. 1.5; Taiyo Yuden Co., Ltd.: Tokyo, Japan, 2018.
  60. Shitiri, E.; Cho, H.-S. A TDMA-Based Data Gathering Protocol for Molecular Communication via Diffusion-Based Nano-Sensor Networks. IEEE Sens. J. 2021, 21, 19582–19595. [Google Scholar] [CrossRef]
  61. Jiang, X.; Zhang, H.; Yi, E.A.B.; Raghunathan, N.; Mousoulis, C.; Chaterji, S.; Peroulis, D.; Shakouri, A.; Bagchi, S. Hybrid Low-Power Wide-Area Mesh Network for IoT Applications. IEEE Internet Things J. 2021, 8, 901–915. [Google Scholar] [CrossRef]
  62. Lin, K.; Liu, J.; Zhang, Y.; Li, P. A Reliable Low-power and High Throughput Wireless Sensor Network Data Collection. In Proceedings of the 2021 IEEE Wireless Communications and Networking Conference (WCNC), Naijing, China, 29 March–1 April 2021; pp. 1–7. [Google Scholar] [CrossRef]
  63. Osamy, W.; El-Sawy, A.A.; Khedr, A.M. Effective TDMA scheduling for tree-based data collection using genetic algorithm in wireless sensor networks. Peer-Peer Netw. Appl. 2020, 13, 796–815. [Google Scholar] [CrossRef]
  64. Poudel, S.; Moh, S. Energy-Efficient and Fast MAC Protocol in UAV-Aided Wireless Sensor Networks for Time-Critical Applications. Sensors 2020, 20, 2635. [Google Scholar] [CrossRef] [PubMed]
  65. Nordic Semiconductor Online Power Profiler. Available online: https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le (accessed on 30 October 2021).
  66. Mo, L.; Liu, S.; Gao, R.X.; Freedson, P.S. Energy-efficient and data synchronized body sensor network for physical activity measurement. In Proceedings of the 2013 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Minneapolis, MN, USA, 6–9 May 2013; pp. 1120–1124. [Google Scholar] [CrossRef]
  67. Vanveerdeghem, P.; Van Torre, P.; Stevens, C.; Knockaert, J.; Rogier, H. Synchronous Wearable Wireless Body Sensor Network Composed of Autonomous Textile Nodes. Sensors 2014, 14, 18583–18610. [Google Scholar] [CrossRef] [PubMed]
  68. Milenković, A.; Otto, C.; Jovanov, E. Wireless sensor networks for personal health monitoring: Issues and an implementation. Comput. Commun. 2016, 29, 2521–2533. [Google Scholar] [CrossRef]
  69. Zhang, C.; Wang, Y.; Liang, Y.; Shu, M.; Chen, C. An Energy-Efficient MAC Protocol for Medical Emergency Monitoring Body Sensor Networks. Sensors 2016, 16, 385. [Google Scholar] [CrossRef]
  70. Lewandowski, M.; Bernas, M.; Loska, P.; Szymała, P.; Płaczek, B. Extending Lifetime of Wireless Sensor Network in Application to Road Traffic Monitoring. In Computer Networks. CN 2019. Communications in Computer and Information Science; Gaj, P., Sawicki, M., Kwiecień, A., Eds.; Springer: Cham, Switzerland, 2019; Volume 1039. [Google Scholar] [CrossRef]
  71. Asgarian, F.; Najafi, K. BlueSync: Time Synchronization in Bluetooth Low Energy with Energy-Efficient Calculations. IEEE Internet Things J. 2022, 9, 8633–8645. [Google Scholar] [CrossRef]
  72. Zong, Y.; Liu, S.; Liu, X.; Gao, S.; Dai, X.; Gao, Z. Robust Synchronized Data Acquisition for Biometric Authentication. IEEE Trans. Ind. Inform. 2022, 18, 9072–9082. [Google Scholar] [CrossRef]
  73. Cerone, G.L.; Giangrande, A.; Ghislieri, M.; Gazzoni, M.; Piitulainen, H.; Botter, A. Design and Validation of a Wireless Body Sensor Network for Integrated EEG and HD-sEMG Acquisitions. IEEE Trans. Neural. Syst. Rehabil. Eng. 2022, 30, 61–71. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Block diagram of multi-nodes system for wireless synchronous data acquisition.
Figure 1. Block diagram of multi-nodes system for wireless synchronous data acquisition.
Sensors 24 04871 g001
Figure 2. Super Frame structure for proposed solution.
Figure 2. Super Frame structure for proposed solution.
Sensors 24 04871 g002
Figure 3. Frame and timing slot configuration for proposed MAC protocol.
Figure 3. Frame and timing slot configuration for proposed MAC protocol.
Sensors 24 04871 g003
Figure 4. System configuration for tests of the proposed solution.
Figure 4. System configuration for tests of the proposed solution.
Sensors 24 04871 g004
Figure 5. Block diagram (a) and the photo (b) of the designed sensor board.
Figure 5. Block diagram (a) and the photo (b) of the designed sensor board.
Sensors 24 04871 g005
Figure 6. Simplified block diagram of the nRF52832 SoC.
Figure 6. Simplified block diagram of the nRF52832 SoC.
Sensors 24 04871 g006
Figure 7. On-air radio packet layout of the nRF52 SoC.
Figure 7. On-air radio packet layout of the nRF52 SoC.
Sensors 24 04871 g007
Figure 8. Contents of the sync packet for implementation proposed protocol.
Figure 8. Contents of the sync packet for implementation proposed protocol.
Sensors 24 04871 g008
Figure 9. Contents of the data packet for implementation proposed protocol.
Figure 9. Contents of the data packet for implementation proposed protocol.
Sensors 24 04871 g009
Figure 10. Block diagram of the power consumption measurement in radio module.
Figure 10. Block diagram of the power consumption measurement in radio module.
Sensors 24 04871 g010
Figure 11. Timing definition for Central–Sensors synchronization measurements.
Figure 11. Timing definition for Central–Sensors synchronization measurements.
Sensors 24 04871 g011
Figure 12. PER versus TXPWR for different data rates.
Figure 12. PER versus TXPWR for different data rates.
Sensors 24 04871 g012
Figure 13. PER versus TXPWR for different BNs and constant DR (1 Mb/s) and D (2 m).
Figure 13. PER versus TXPWR for different BNs and constant DR (1 Mb/s) and D (2 m).
Sensors 24 04871 g013
Figure 14. PER versus D for different DRs and constant TXPWR (−12 dBm) and BN (100 B).
Figure 14. PER versus D for different DRs and constant TXPWR (−12 dBm) and BN (100 B).
Sensors 24 04871 g014
Figure 15. Example of Sensor radio module current consumption during RX and TX phases.
Figure 15. Example of Sensor radio module current consumption during RX and TX phases.
Sensors 24 04871 g015
Figure 16. Radio module power consumption versus BN for different TXPWRs and DR = 1 Mb/s (VCC = 3.0 V).
Figure 16. Radio module power consumption versus BN for different TXPWRs and DR = 1 Mb/s (VCC = 3.0 V).
Sensors 24 04871 g016
Figure 17. Radio module power consumption versus BN for different TXPWRs and DR = 2 Mb/s.
Figure 17. Radio module power consumption versus BN for different TXPWRs and DR = 2 Mb/s.
Sensors 24 04871 g017
Figure 18. Synchronous data acquisition from four Sensors with accelerometers: (a) example of X-axis signals and (b) zoomed fragment.
Figure 18. Synchronous data acquisition from four Sensors with accelerometers: (a) example of X-axis signals and (b) zoomed fragment.
Sensors 24 04871 g018
Figure 19. Analysis of maximum device throughput versus number of devices for different tSUF and DR.
Figure 19. Analysis of maximum device throughput versus number of devices for different tSUF and DR.
Sensors 24 04871 g019
Figure 20. Analysis of average nRF52 SoC power consumption (PRM) versus tSUF for different sizes of data payloads (BN) and DR = 1 Mb/s.
Figure 20. Analysis of average nRF52 SoC power consumption (PRM) versus tSUF for different sizes of data payloads (BN) and DR = 1 Mb/s.
Sensors 24 04871 g020
Figure 21. Analysis of average nRF52 SoC power consumption (PRM) versus tSUF for different sizes of data payloads (BN) and DR = 2 Mb/s.
Figure 21. Analysis of average nRF52 SoC power consumption (PRM) versus tSUF for different sizes of data payloads (BN) and DR = 2 Mb/s.
Sensors 24 04871 g021
Figure 22. Analysis of maximum sampling period error versus fS for different tSUF and constant fLFXO stability of 50 ppm.
Figure 22. Analysis of maximum sampling period error versus fS for different tSUF and constant fLFXO stability of 50 ppm.
Sensors 24 04871 g022
Figure 23. Analysis of maximum sampling period error versus fS for different tSUF and constant fLFXO stability of 20 ppm.
Figure 23. Analysis of maximum sampling period error versus fS for different tSUF and constant fLFXO stability of 20 ppm.
Sensors 24 04871 g023
Table 1. Results of central and sensor clock base frequency measurements 1.
Table 1. Results of central and sensor clock base frequency measurements 1.
Freq. [mHz]Central A 2Central B 3Sensor 1Sensor 2Sensor 3Sensor 4
Mean−9+404+216+423+573+460
Min−120+402+216+421+569+459
Max+180+406+217+425+576+461
StdDev110.041.440.291.332.180.78
1 The results (except StdDev) are shown as a difference to a frequency of 20 kHz (measured with an accuracy of 1 mHz). 2 Based on nRF52-DK. 3 Based on Sensor board.
Table 2. Results of Central and Sensor SUF durations (tSUF) 1.
Table 2. Results of Central and Sensor SUF durations (tSUF) 1.
Time IntervalCentralSensor 1Sensor 2Sensor 3Sensor 4
Mean [ns]+422+421+420+439+440
StdDev [ns]4075778786
1 Mean is shown as a difference to a time interval of 100 ms (measured with accuracy of 1 ns).
Table 3. Results of SUF synchronization achievement (tM1).
Table 3. Results of SUF synchronization achievement (tM1).
Time Interval
[µs]
Central–Sensor
Distance [m]
Sensor 1Sensor 2Sensor 3Sensor 4
Mean0.5264.269264.515264.393264.448
StdDev0.0510.0460.0540.061
Mean1.0264.292264.524264.380264.462
StdDev0.0530.0490.0540.074
Table 4. Results of sampling synchronization achievement (tM2).
Table 4. Results of sampling synchronization achievement (tM2).
Time Interval [µs]Sensor 1Sensor 2Sensor 3Sensor 4
Mean311.271312.097311.828311.717
StdDev0.0960.0870.0790.092
Table 5. Selected results of average current measurement in radio module within 8 s (tSUF = 100 ms, VCC = 3.0 V, DC/DC on).
Table 5. Selected results of average current measurement in radio module within 8 s (tSUF = 100 ms, VCC = 3.0 V, DC/DC on).
Payload Size (BN) [bytes]Throughput
[kb/s]
Max fS 1 [Hz]TXPWR
[dBm]
IRM [µA] @ DR = 1 Mb/sIRM [µA] @ DR = 2 Mb/sPower [mW]
@ 1 Mb/s
Power [mW]
@ 2 Mb/s
100.7866.7−473690.220.21
100.7866.7077700.230.21
100.7866.7+484740.250.22
1007.81666.7−4114890.340.27
1007.81666.70126950.380.29
1007.81666.7+41541090.460.33
100078.136666.7−45823401.751.02
100078.136666.706913932.071.18
100078.136666.7+49485262.841.58
1 Frequency sampling assuming that one sample = 12 bits (typical resolution of an analog-to-digital converter built into the microcontroller.
Table 7. Comparison of the proposed solution with other related works.
Table 7. Comparison of the proposed solution with other related works.
Reference
Work
Radio BandRF TransceiverProtocolSuper Frame DurationSynchronization
Accuracy
Power Consumption
@ Throughput Data
Power Consumption
[µW]/throughput Data [kb/s]
Marinkovic et al., 2009, [49]433 MHzADF7020Proprietary1 sn/r2.04 mW
@ 1250 b/s
1671
Mo et al., 2012, [22]2.4 GHzn/rZigBeen/a<24 ms19.98 mW
@ 15840 b/s
1292
Mo et al., 2013, [66]2.4 GHzn/rProprietaryn/r6 ms22.2 mW
@ 14400 b/s
1579
Vanveerdeghem et al., 2014, [67]2.4 GHzADF7242Proprietaryn/rn/r90 mW
@ 25 packet/s
n/r
Bernhard et al., 2015, [48]2.4 GHznRF51822Proprietary0.1 s7.6 µsn/r
@ 320 b/s
n/r
Morrison et al., 2015, [52]915 MHznRF905Proprietaryn/an/a0.19 mW
@ 3.2 b/s
60,800
Milenković et al., 2016, [68]2.4 GHzCC2420ZigBee1 s30.5 µs8.31 mW
@ 1920 b/s
4432
Pflugradt et al., 2016, [40]2.4 GHzCC2560Bluetoothn/a30 µs100 mW
@ 96000 b/s
1067
Chongqing Zhang et al., 2016, [69]2.4 GHzCC2520Proprietaryn/rn/r2.6 mW
@160 b/s
16,640
Wang et al., 2017, [44]2.4 GHzCC3200WiFin/an/r847.3 mW
@ 1 kHz
n/r
Shang Gao et al., 2019, [47]Sub-1-GHzSX1278LoRan/a5 µsn/r
@ n/r
n/r
Lewandowski et al., 2019, [70]2.4 GHzn/rZigBee0.5 sn/r9.14 mW
@ n/r
n/r
Asgarian et al., 2022, [71]2.4 GHznRF51822 or nRF52832BLE 1n/a0.3 µs 2n/r
@ n/r
n/r
Zong et al., 2022, [72]n/rn/rProprietary1 s1 µsn/r
@ n/r
n/r
Cerone et al., 2022, [73]868 MHzCC1310Proprietary 3n/a<500 µs21.45 mW
@ n/r
n/r
This work2.4 GHznRF52832Proprietary0.1 s0.8 µs1.18 mW
@ 78,130 b/s, TXPWR = 0 dBm
1.58 mW
@ 78,130 b/s, TXPWR = +4 dBm
15
21
n/a—not applicable; n/r—not reported. 1 Modified Bluetooth Low Energy (BLE). 2 Per 60 s. 3 Additional synchronization module is required.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sondej, T.; Bednarczyk, M. Ultra-Low-Power Sensor Nodes for Real-Time Synchronous and High-Accuracy Timing Wireless Data Acquisition. Sensors 2024, 24, 4871. https://doi.org/10.3390/s24154871

AMA Style

Sondej T, Bednarczyk M. Ultra-Low-Power Sensor Nodes for Real-Time Synchronous and High-Accuracy Timing Wireless Data Acquisition. Sensors. 2024; 24(15):4871. https://doi.org/10.3390/s24154871

Chicago/Turabian Style

Sondej, Tadeusz, and Mariusz Bednarczyk. 2024. "Ultra-Low-Power Sensor Nodes for Real-Time Synchronous and High-Accuracy Timing Wireless Data Acquisition" Sensors 24, no. 15: 4871. https://doi.org/10.3390/s24154871

APA Style

Sondej, T., & Bednarczyk, M. (2024). Ultra-Low-Power Sensor Nodes for Real-Time Synchronous and High-Accuracy Timing Wireless Data Acquisition. Sensors, 24(15), 4871. https://doi.org/10.3390/s24154871

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop