Next Article in Journal
Efficient Beampattern Synthesis for Sparse Frequency Diverse Array via Matrix Pencil Method
Next Article in Special Issue
Can I Trust This Location Estimate? Reproducibly Benchmarking the Methods of Dynamic Accuracy Estimation of Localization
Previous Article in Journal
Analysis of Land Use/Cover Change and Driving Forces in the Selenga River Basin
Previous Article in Special Issue
Using Perspective-n-Point Algorithms for a Local Positioning System Based on LEDs and a QADA Receiver
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simulation Tool and Online Demonstrator for CDMA-Based Ultrasonic Indoor Localization Systems

by
María Carmen Pérez-Rubio
1,*,
Álvaro Hernández
1,
David Gualda-Gómez
2,
Santiago Murano
1,3,
Jorge Vicente-Ranera
1,
Francisco Ciudad-Fernández
1,
José Manuel Villadangos
1 and
Rubén Nieto
4
1
Department of Electronics, University of Alcalá, 28801 Alcalá de Henares, Madrid, Spain
2
Signal Theory and Communications Department, Rey Juan Carlos University, 28942 Fuenlabrada, Madrid, Spain
3
Electronics Department, University of Patagonia San Juan Bosco, Comodoro Rivadavia (Chubut), Tierra del Fuego V9410 AQD, Argentina
4
Electronics Technology Department, Rey Juan Carlos University, 28933 Móstoles, Madrid, Spain
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(3), 1038; https://doi.org/10.3390/s22031038
Submission received: 24 December 2021 / Revised: 21 January 2022 / Accepted: 25 January 2022 / Published: 28 January 2022
(This article belongs to the Special Issue Advances in Indoor Positioning and Indoor Navigation)

Abstract

:
This work presents the CODEUS platform, which includes a simulation tool together with an online experimental demonstrator to offer analysis and testing flexibility for researchers and developers in Ultrasonic Indoor Positioning Systems (UIPSs). The simulation platform allows most common encoding techniques and sequences to be tested in a configurable UIPS. It models the signal modulation and processing, the ultrasonic transducers’ response, the beacon distribution, the channel propagation effects, the synchronism, and the application of different positioning algorithms. CODEUS provides results and performance analysis for different metrics and at different stages of the signal processing. The UIPS simulation tool is specified by means of the MATLAB© App-Designer environment, which enables the definition of a user-friendly interface. It has also been linked to an online demonstrator that can be managed remotely by means of a website, thus avoiding any hardware requirement or equipment on behalf of researchers. This demonstrator allows the selected transmission schemes, modulation or encoding techniques to be validated in a real UIPS, therefore enabling a fast and easy way of carrying out experimental tests in a laboratory environment, while avoiding the time-consuming tasks related to electronic design and prototyping in the UIPS field. Both simulator and online demonstrator are freely available for researchers and students through the corresponding website.

1. Introduction

The global spread and huge increase in new Location-Based Services (LBS) or context-aware computing, in which accurate information about the target location is required, have boosted the research in Indoor Positioning Systems (IPSs) in different application domains: museums and tourism [1,2], gaming and augmented reality [3], mall navigation [4], hospitals and monitoring of the elderly [5], airports [6], logistics or security, and emergency responders [7]. In general, IPSs can be divided into two main categories: infrastructure-free and infrastructure-based. The first includes Inertial Measurement Units (IMUs) [8], and vision-based [9] or magnetic-based systems [10]. These are often flexible enough to properly work in any environment, without requiring any previous adaptation. In other cases, it is necessary to have some previous knowledge about the environment. By comparison, infrastructure-dependent systems commonly take advantage of signals of opportunity or may require the installation of dedicated infrastructure. Among this range, Radio Frequency (RF)-based systems are widely used because they can apply the WiFi infrastructure already installed for communication purposes to positioning after a calibration process (fingerprinting) [11], although with a typical meter-level accuracy [12]. Other alternatives are either Bluetooth Low Energy (BLE), based on inexpensive and long-battery-life antennas for a zone-based approach [13], or Ultra-Wideband (UWB) technologies to obtain accuracies below decimeters [14,15]. In this context, some relevant surveys about IPS and their associated technologies can be found in [16,17,18]. Note also that different technologies may be complementary for indoor positioning, obtaining hybrid systems that increase coverage, reliability, and confidence. Usually, these systems use a technology that provides absolute ranging (e.g., WiFi, RF, and cameras) and another that provides relative ranging (inertial sensors) [19,20,21], using probabilistic filters (e.g., a Kalman filter [22]) for merging the data.
Acoustic-based systems such as Ultrasonic IPSs (UIPSs), which are the focus of this work, are a cost-effective solution that can reach accuracies in the range of centimeters with coverage distances up to some tens of meters. This accuracy is usually obtained using beacons with encoded transmissions and pulse compression techniques for the detection at the receiver, which also ensures a high robustness to noise and more tolerance to other negative effects [23,24]. Furthermore, ultrasonic transducers are small, their transmissions are room-constrained, and they can be easily integrated into mobile phones [25].
The final performance of an UIPS is determined by some factors; in fact, there is a wide variety of available options regarding equipment, beacon deployment, signal configuration, or positioning methods. In this regard, there is a trade-off between the minimum number of beacons to be installed to reduce costs, their geometric configuration to obtain a suitable coverage area, and the redundancy required to cope with possible occlusions. One alternative is to carry out a deployment with ultrasonic beacons only in zones where centimeter positioning is required, while using other technologies, such as inertial sensors or RF signals available in the environment, in those areas where a coarse-grained positioning is enough [25]. Beacons can emit simultaneously or at certain intervals using a time division multiple access (TDMA) technique. TDMA has the advantage of reducing the Multiple Access Interference (MAI), but decreases the position update rate, which can limit the detection of a target in motion. A common strategy to allow simultaneous emission while minimizing the MAI is the incorporation of broadband sequences from Code Division Multiple Access (CDMA) techniques. This implies assigning a different and unique waveform to each emitter, in such a manner that it can be effectively separated from the other transmissions at the receiver, even in the presence of noise [24,26]. It is worth mentioning that in ultrasonic positioning, bursting emissions are more common because they deal better with multipath interferences, at the expense of worsening the correlation properties of many sequences that are intended for periodic correlation. The bandwidth restrictions of the ultrasound transducers and the modulation scheme for the signal transmission strongly affect the aforementioned correlation properties, thus having an impact on the final system performance [23]. In addition, on the receiver side, decisions must be made about the microphone to be used, the sampling frequency, the synchronism constraints, or the implemented positioning algorithm. Spherical trilateration can be used in UIPS, based on Time of Arrival (ToA) measurements; nevertheless, in this case, it is necessary to provide some synchronization between the beacons and the target receiver. To avoid adding any technology apart from the ultrasonic signals, Time-Differences-of-Arrival (TDoA), which requires the inclusion of another beacon, can be used for 3D positioning. This hyperbolic trilateration often results in lower accuracies compared to the spherical option [27], but does not require a synchronism link between the beacons and the receiver.
It is well known that experimentally analyzing the influence of the aforementioned parameters in a real UIPS may be time consuming and arduous [28]. Thus, software simulation models are useful to obtain a full picture of how the system will behave under different circumstances. Furthermore, a predefined experimental UIPS architecture, which is flexible enough to allow the testing of different encoding techniques, modulations, or transmission schemes, can become key to obtain preliminary results with real signals, while avoiding the big efforts and hardware/software skills demanded by the implementation and prototyping of any electronic system. If this predefined architecture can be remotely configured and is accessible to the research community, it will allow the evaluation and comparison of different configurations and algorithms under the same conditions. Such an approach is desirable because the variety of beacon deployments and equipment used in experiments is so wide and customized that undertaking a fair comparison of the algorithms proposed by different research teams is not feasible [18,29].
This work presents the CODEUS platform, which is oriented to facilitate, by both simulation and preliminary experimental tests, the comparison of different encoding and modulation schemes in a typical UIPS scenario, by means of a user-friendly interface. The tool allows the convenient avoidance of the initial gap of researchers in experimental tests, and is an educational tool for PhD students working in the UIPS field. The main contributions of this work are:
  • Integration in a single simulation platform of a large variety of real-world issues and configurable parameters that affect the design and behavior of acoustic positioning systems. The platform also deals with the high-level processing stage regarding peak detection and positioning estimation.
  • Design of a remotely configurable UIPS that can be managed from a website to obtain preliminary experimental results, and to compare diverse signal designs by different authors under the same setup.
  • Validation of simulated results against the corresponding experimental tests obtained with the online demonstrator.
The remainder of this manuscript is organized as follows: Section 2 reviews the related work; Section 3 presents the CODEUS platform overview; Section 4 is dedicated to the simulation tool, whereas Section 5 deals with the description of the online demonstrator; Section 6 describes a practical case with the online demonstrator and compares the results with those obtained from the simulator; and, finally, conclusions are discussed in Section 7.

2. Related Work

Simulations have become a key tool to deal with the design, testing, and validation of positioning systems, and several approaches can be found in the literature [30]. SMILe [31] is an open-source tool for developing and evaluating indoor RF positioning methods based on ToA or TDoA. The simulator is developed under OMNET++, which is an extensible component-based C++ framework and simulation library for building network simulators, and also includes the INET open-source model library from the OMNET++ environment to build complex wired and wireless communications. It allows the user to adjust different aspects of the simulation, such as radio wave propagation models, node mobility, or hardware clock accuracy. In addition, an analytical package was written in Python 3 to assist the user in the implementation and evaluation of ToA and TDoA solvers. PyLayers [32] is a Python platform that provides a flexible tool to investigate radio propagation channel and indoor localization algorithms using UWB radio signals. It is based on a ray-tracing model, and also comprises an indoor human mobility simulator for wearables and WBAN. The Navindoor platform is more versatile, although with less complex ToA models [33]. It is also an open-source tool, developed under object-oriented programming in MATLAB©, which allows the definition of the scenario, trajectory, and dynamics of moving people in indoor spaces, including the synthetic generation of different types of signals: beacon-based (Received Signal Strength, ToA, and Angle-of-Arrival) or beacon-free (barometer, magnetometer, inertial, and gyroscope), and their associated processing for the comparison of the resulting estimations. In Young et al. [34], IMUsim is presented as a simulation environment developed to model the aspects of IMU operation. It is based on Python under an open-source license, ready to be used with new models and algorithms, thus allowing continuous development. This simulator has been focused on inertial applications and can simulate the corresponding IMU measurements from the trajectories defined by any application.
The work in Álvarez et al. [35] specifically addresses the modeling of a beacon-based UIPS in MATLAB, considering many aspects and details in the low-level processing of ultrasonic signals, such as the effect of the beacons’ frequency response, the bandwidth, the multipath propagation, or the receiver’s movement. The system is based on Binary Phase Shift Keying (BPSK)-modulated Kasami codes and provides results in terms of ToA measurements and quality of the correlation functions (sidelobe-to-mainlobe ratio and shift of the auto-correlation peaks). Other works have attempted to optimize the ToA estimations through simulation and experimental tests of different encoding and modulation techniques. Examples of BPSK modulations with different digital codes can be widely found in the literature [23,36,37]. Most of these codes are designed for periodic correlation, and they present higher correlation sidelobes in case of aperiodic transmissions. By comparison, codes that operate on a multiple-sequence-per user basis, such as Complementary Set of Sequences (CSS) [38], provide ideal properties in the sum of the aperiodic correlation functions. Nevertheless, they may also require more complex modulation or transmission schemes, which often imply a degradation in their initial correlation properties [39]. Generalized Orthogonal codes, such as Loosely Synchronous (LS) codes, are unitary sequences that have also been used in UIPS, due to the Zero Correlation Zone (ZCZ) that appears around the main correlation peak; however, they are constrained to quasi-synchronous applications where the different incoming signals must be received within this ZCZ [40,41]. Furthermore, LS codes, in addition to CSS, do not cope well with the Doppler effect [42]. Chirp signals have often been involved due to the suitable properties of their compressed pulse against Doppler, but their performance is constrained in simultaneous multiuser environments [43]. Polyphase sequences, such as Zadoff-Chu codes [44], can be a suitable option due to their length flexibility and tolerance to Doppler. In Murano et al. [45], different Quadrature PSK (QPSK), Orthogonal Frequency Division Multiplexing (OFDM), and Orthogonal Chirp Multiplexing (OCDM) modulation schemes are compared for the transmission of Zadoff-Chu codes in an UIPS. Moreover, the Frequency-Hopping Spread Spectrum (FHSS) has been applied to IPSs to handle multiple access [46]; however, ultrasonic transducers have a narrow frequency bandwidth, so the effective bandwidth for every hop is significantly reduced when the number of simultaneous emissions increases. Taking into account the previous considerations, it can be stated that there is no unique solution for the wave design of a UIPS, and obtaining the highest possible robustness and accuracy depends on the UIPS configuration and application [41,47].
Regarding the aforementioned context, this work presents a simulator that covers all the processing levels of the ultrasonic signal, in addition to an online demonstrator, thus helping reduce the barriers to real-world validation. As an example of usability, the proposed platform has been involved in the Local Positioning Systems course from the Master in Electronic Engineering at the University of Alcalá, in addition to the Indoor Positioning and Indoor Navigation Conference (IPIN 2021) as part of Tutorial 4: Tools for Acoustic Indoor Localization Systems. The simulator helped bridge the gap between the equations and algorithmic definitions and the practical implementations required in a successful learning environment. Thus, the theoretical coaching was enhanced with a practical approach, in which attendants could easily simulate their own UIPS and test their positioning-related algorithms with real signals. The discussions and suggestions after the practical tutorial in IPIN 2021 contributed to improving the platform. As a result, a new peak detection algorithm was included to provide multipath compensation and more flexibility was enabled. As a possible indicator of the interest of the research community in Acoustic IPS (AIPS), Table 1 shows the percentage of papers related to AIPS in the last five editions of the IPIN conference. It can be observed that acoustic technology is still important in the field of IPS.

3. CODEUS Platform Overview

CODEUS includes a simulator and an online demonstrator for a UIPS based on encoding techniques. The system is based on a set of active encoded beacons located at fixed positions in the environment, and a receiver that processes the incoming signals determines the ToA (or TDoA if it is not synchronized with the beacons), and estimates its own position. Figure 1 illustrates the global block diagram of the proposed platform. The simulation model is highly configurable, because the user can define the number and location of beacons, the codes/modulation for the signal design, the type of transducer, or the medium access technique for beacons (i.e., time-multiplexed, among others). On the receiver side, it allows configuration of the location and type of receiver, its moving speed, the sampling frequency in the acquisition, and the definition of the synchronism with the emitting beacons. Furthermore, it includes other typical effects of the ultrasonic signal propagation, such as multipath, noise, temperature, or air absorption. Regarding the position computation, several algorithms can be tested, depending on the selected spherical or hyperbolic trilateration. Both numerical and graphical results are shown and can be downloaded at every stage of the processing. The modulated codes are easily exported by means of the simulator user interface and they are already adapted for experimental tests in the proposed online demonstrator, thus obtaining results with real signals that can be compared with those from the simulator. The demonstrator is based on a UIPS formed by five emitters placed at a height of 348 cm in a 70.7 cm × 70.7 cm square. It provides a coverage area of approximately 30 m2 on the floor, where four receivers are placed at certain locations of interest in a laboratory environment. Any user can remotely access and configure the UIPS from a website, and the experimental acquisitions will be available to be downloaded from the cloud. Both the online demonstrator and simulator are freely available for researchers through the website available online: http://www3.uah.es/locate-us/ (accessed on 23 December 2021), after a basic registration process.

4. Simulation Platform

A detailed description of the proposed simulation platform is provided hereinafter, by dealing with the different modules that should be set up for a correct operation: the emission module (beacons), the receiver, the channel modeling, the positioning algorithm used to estimate the receiver’s position, and the display of the final results. The MATLAB© App-Designer environment was used to incorporate the user interface and integrate the developed algorithms. The MATLAB© environment is widely used both by researchers and educators due to its signal processing potential, flexible computational possibilities, and options to create new tools, where new functionalities or updates can be easily included [33,48,49].

4.1. Emission Configuration

The first step in the emission configuration is the code selection, and the second step allows the design of the different parameters related to the emission. An example for the configuration of Kasami codes can be observed in Figure 2. Note that Kasami sequences have already been considered as a suitable option to encode ultrasonic transmissions, so they will be used in most examples hereinafter.
As mentioned above, the optimization of the signals transmitted by the beacons allows the accuracy and robustness of the ranging estimation to be enhanced. The correlation of the received signal with the emitted pattern should be as close as possible to a Kronecker delta and, in multiuser applications, the cross-correlation functions among the different emission sources should be zero. In recent decades, many encoding schemes have been proposed in UIPSs, each with their corresponding correlation properties [26] and generation methods, which can be computationally expensive. The proposed platform automatizes the generation of sequences and incorporates the most common of these in the ultrasonic signal design: Kasami sequences [50], Complementary Set of Sequences (CSS) [38,51], Loosely Synchronous codes (LS) [40], and Zadoff-Chu codes (ZC) [44,52]. Figure 3 shows the difference between aperiodic and periodic correlations for the proposed schemes. For more flexibility, the CODEUS platform allows the testing of any other encoding scheme in addition to the previous ones, by uploading a configuration file with the corresponding transmissions to be carried out.
Modulation is required to adjust the codes to be transmitted to the bandwidth available in the transducers. The modulation technique affects the correlation results from the matched filtering detection; hence, some authors have analyzed the suitability of different schemes [43,44,45,46]. Phase Shift Keying (PSK) modulations, such as Binary Phase Shift Keying (BPSK) or Quadrature Phase Shift Keying (QPSK), are widely used in UIPSs and are the option included by default in the simulation platform (BPSK for binary sequences and QPSK for complex sequences). Other options can also be tested by customizing the sequence design. The main advantages of PSK modulations are their simplicity and efficient use of the transducer bandwidth; nevertheless, they also cause some sidelobes in the surroundings of the main correlation peak, as can be observed in Figure 4, which may imply an error in the ToA determination. The PSK modulation of a sequence sk[l] is described in Equation (1):
C r n   =   cos 2 π f c n     j   ·   sin 2 π f c n ;   0 n f s O f O c f s m k n   =   l = 0 L c k 1 s k l   ·   C r n     I m s k l   ·   I m C r
where Cr[n] is the complex carrier for the QPSK modulation (note that if the sequence is binary, the imaginary part will be zero and the carrier will only have the real part, resulting in a BPSK scheme); Oc is the number of carrier cycles; Of = fc/fs is the oversampling factor, or ratio between the carrier frequency fc and the sampling frequency fs; and mk is the modulated signal to be emitted.
The platform allows the transducer models used in the emission or reception to be inserted. It also provides some preloaded models that can be selected from a list box: the Prowave 38ST160 [53] in the emission stage; and, in the reception stage, the GRAS40BE [54] or a MEMS microphone SPU414HR5HSB [55]. A FIR filter was designed to model the transducers’ effect; in this way, Figure 5 shows the measured transducer frequency response for the Prowave 38ST160 (in red), compared with the modeled one (blue line).
The simulation platform allows different techniques for multiple access, as can be observed in Figure 6. In all of these, every emitter is assigned a unique modulated code mk, so the interference among them is minimized using codes with low cross-correlation functions. In the CDMA case, all the transducers emit simultaneously. A Time Code Division Multiple Access (TCDMA) case that combines the advantages of both TDMA and CDMA is also possible, where the transducers emit consecutively over time, one after other, and each one transmits its corresponding code. Finally, the transducers can emit with a configurable separation Tshift from the others, so any overlap can be simulated (regardless of whether Tshift equals the time Te required for the emission of every code, the TCDMA method is obtained). The platform allows the configuration of the emission repetition period, in addition to the number of emissions to be performed, which can be useful for obtaining statistical comparisons.
Another key aspect is the determination of the number and location of beacons that compose an UIPS, since this strongly affects the cost, coverage area, and accuracy of the final system. The Position Dilution of Precision (PDOP) [56] is a common metric used to select the number and distribution of the beacons, as it shows the uncertainty of the receiver’s location estimation at different positions according to the noise in the measurements and the location of the beacons. As can be observed in Figure 2, the position of beacons can be defined in 3D coordinates (x, y, and z) in the simulator environment, and the PDOP can also be displayed. The parameters that can be configured to analyze this metric are: the height of the receiver; the size of the positioning volume; the interval between the points that form the grid; and the standard deviation of the Gaussian noise related to the distance measurements, considered as a constant value for all the points in the positioning volume, because the coverage of an ultrasonic location system is reduced.
For each evaluated position in the grid, the PDOP value is obtained according to Equation (2):
P D O P = σ x 2 + σ y 2 + σ z 2 σ m
where σ x 2 , σ y 2 and σ z 2 are the values of the covariance matrix C , which is obtained according to Equation (3); and σ m is the standard deviation of the Gaussian noise related to measurements.
C = σ m 2   ·   J T · J 1
The Jacobian matrix J is obtained according to Equation (4):
J = f 1 x f 1 y f 1 z f 2 x f 2 y f 2 z f n x f n y f n z
where f n is the n t h measurement from the n t h beacon, represented either by the Euclidean distance between the position of the receiver and the n t h beacon in the spherical case (assuming that emitters and receivers are synchronized) shown in Equation (5), or by the difference in Euclidean distances shown in Equation (6), using one emitter as a reference, in the case in which there is no synchronization between emitters and the receiver (hyperbolic solution).
f n = x x n 2 + y y n 2 + z z n 2
f n = x x n 2 + y y n 2 + z z n 2 x x n 2 + y y n 2 + z z n 2
where f n x , f n y and f n z are de derivatives of the n t h measurement with respect to the coordinates of the receiver.
Figure 7 shows a PDOP simulation for the spherical case (a) and the hyperbolic case (b), setting the area under analysis in the XY plane with a 6 m long side, with a resolution grid of 0.10 m, and a receiver’s height of 1 m. Note that the example uses the same UIPS configuration as the online demonstrator, which is formed by five beacons placed at a height of 348 cm in a 70.7 cm × 70.7 cm square, and which have been represented with a white rhombus in Figure 7. This distribution is also the one used by default in the simulator.
As can be observed in Figure 7, the lowest values of PDOP in both cases are in the center of the area, so in these locations the uncertainty related to the estimation of the receiver’s position is reduced in comparison with corners, where the PDOP values are high. Another consideration to take into account is that the uncertainty is higher in the hyperbolic case than in the spherical case; nevertheless, the hyperbolic case has the advantage of not requiring synchronization between the emitters and the receiver.

4.2. Receiver Configuration

Figure 8 shows a screenshot of the software for the scene configuration, where the position and model of the receiver can be selected, in addition to the sampling frequency at the reception. Thus, a downsampling factor can be simulated to consider the case in which the acquisition system has memory constraints.

4.3. Channel Modeling

The channel model considered hereinafter is based on applying the widely used ray tracing [57,58] to randomly model the multipath effect coming from an indoor environment, resulting in detecting multiple copies of the beacons’ transmission at the receiver. Together with this ray tracing, the CODEUS platform also allows a set of typical effects in air positioning systems to be inserted, such as Gaussian and impulsive noise, temperature, atmospheric absorption, and Doppler effect. All these parameters can be observed in Figure 9. The beacons transmit their corresponding modulated signal mk(t) that will be affected by the transducer response T h and the noise η t . At the reception, all the signals coming from the beacons are received, each with its corresponding propagation delay t p k , transmission delay t t k due to the multiple access technique, and attenuation A k , as indicated in Equation (7).
r t   =   k = 1 K A k T h t     m k t t p k t t k + η t
where the operator denotes the convolution and the index 1 ≤ kK indicates the number of the emitter. Note that, in a CDMA scheme, all the emitters transmit simultaneously, so t t k = 0 ; by comparison, in TCDMA schemes, an emitter transmits during a specific slot time that is modeled by this parameter t t k .
The White Gaussian Noise (AWGN) added to the emitted signal considers the energy measured from the modulated signal to insert white noise and accomplish the desired Signal to Noise Ratio (SNR) value. If the impulsive noise is also selected, then three parameters must be fulfilled: the SNR (normally smaller than the Gaussian noise), the duration of the noise specified as a percentage of the signal duration, and its location over time.
Another interesting effect involved here is the multipath, related to the multiple delayed and attenuated replicas of the transmitted signal that reach the receiver due to the specular reflections from walls and objects. The simulation platform allows three configuration options: Manual, where one delay (in ms) and gain per emitted signal is considered; a Random option that inserts two randomly delayed multipaths, with a gain exponentially attenuated according to the value of the delay; and a more Realistic option that considers the impulse response of the room through the image method described in [35,57].
The estimated ToAs or TDoAs depend on the distance between the emitter and the receiver, and on the propagation speed of sound in air, which is influenced by the temperature [59] as follows:
c = c 0 1 + T ° C 273.15
where c 0 = 331.6   m / s is the speed at 0 °C and T is the air temperature. The CODEUS platform also considers the atmospheric absorption in dB/m, which depends on the temperature, atmospheric pressure, and humidity.
Finally, the Doppler shift related to the relative movement between the receiver and the beacons is also considered. This effect is modeled by assuming a virtual sampling frequency f s ´ for the emitted signal as follows [45]:
f s ´ = f s 1 v r c
where v r is the receiver velocity vector. The signal acquired by the receiver at the actual sampling frequency f s is obtained by an interpolation and decimation process.

4.4. Positioning Algorithm

The proposed platform allows the position of the receiver to be estimated using two possible methods: Gauss–Newton (GN) [60] or Cayley–Menger (CM) [61] in the spherical case; and GN in the hyperbolic case. The GN method is based on the use of the Jacobian matrix shown in Equation (4) to solve the position of the receiver, by finding a minimum value of the vector X , as a result of an iterative process.
X = J T   ·   J 1   ·   J T   ·   B
where B is a vector of the differences between the measurements (distances or difference of distances) and the estimation of those measurements for each algorithm iteration (Equation (11)).
B = f ^ 1 f 1 f ^ 2 f 2 f ^ n f n
In the case of the CM method, the estimation of the position is based on the use of Cayley–Menger determinants [62], so the solution is geometric. Here, the number of emitters used must be constant and set at four for 3D position estimation. This method is more complex than the previous one; further details can be found in [61].
It is important to note that the positioning algorithm uses the measured distances after a filter at the correlation phase (before obtaining the distances from the ToAs or TDoAs measurements). This filter discards measurements strongly affected by the multipath: it identifies the highest correlation peak and sets a configurable validation window around this main peak. A threshold defined by the user is also considered to identify more peaks. If any peak appears outside of the validation window and exceeds the threshold, the measurement from that beacon is discarded; see Figure 10 as an example of the mentioned filter. More flexibility regarding the peak detection algorithm will be included in the future to deal with multipath situations [63].

4.5. Results and Merit Factors

When comparing the performance of various encoding schemes at the different stages of the processing, several features may be analyzed, not only at a low level with the properties of the emitted codes in the baseband, but also at high level with the positioning results. Regarding the correlation functions, the simulator provides the Sidelobe-to-Mainlobe Ratio (SMR), which is the ratio between the maximum value measured outside the modulation window of the mainlobe over the peak value of the mainlobe. This is a common merit factor in CDMA-based systems [35,45] and can be used as a measurement of the difficulty to detect the correct correlation peak in order to estimate the ToA or TDoA. It can be defined as follows:
SMR = max ( C r , m k n ) ;   n   N G ,   N G max ( C r , m k n ) ; n
where C r , m k represents the correlation between the received signal r[n] and the modulated code mk[n]; NG delimits the modulation window around the mainlobe used to avoid confusing the maximum sidelobe with the lobes corresponding to the modulation effect.
This SMR is also applied to study the goodness of codes in the baseband and after modulation, but with no channel or transmission effects; therefore, it can be divided into two merit factors: the auto-correlation bound and the cross-correlation bound. The first provides the ratio between the maximum sidelobe of the auto-correlation function and the main peak, whereas the cross-correlation bound is a measure of how two different codes are related, and is computed as the highest cross-correlation sidelobe compared with the main auto-correlation peak. In all cases, low SMR and correlation bounds are desired to clearly identify the time of arrival in the emission.
Figure 11 shows an example of the simulation platform, where different low-level parameters are displayed. In the example, the auto correlation and cross correlation of three 63-bit BPSK modulated Kasami codes are plotted, so it is possible to compare their performance in terms of correlation bounds and frequency spectrum with other family codes, and to study the differences in the case of periodic or aperiodic emission. In addition, the platform offers the correlation results after the modulation, with and without considering the transducers’ effects.
The correlation results involving all the effects (beacons and receiver location, transmission method, model of the transducers, and channel effects) are also displayed. The platform shows the mean value and typical deviation of the SMR for every emitter considering the number of realizations in the simulation, as can be observed in Figure 12.
Finally, positioning results are also presented. It is possible to choose between spherical and hyperbolic trilateration; the number of repetitions at the selected point are configurable to obtain significant statistical information, in addition to the maximum allowed error (if this error is exceeded, the measurement is considered as an outlier). The delay defined between the transducers’ emissions can be compensated for if desired. The platform provides the resulting number of outliers, the mean and standard deviation of the positioning estimates for each coordinate, and the Cumulative Distribution Function (CDF) of the Euclidian distance to the beacons, also per coordinate. The position estimates are depicted in the graph, together with the beacon distribution, as can be observed in Figure 13. It is worth mentioning that other positioning techniques, such as triangulation or hybrids, can be considered and included in CODEUS for further analysis.

5. Description of the CODEUS Online Demonstrator

The CODEUS online demonstrator is a remotely accessible and configurable UIPS that consists of three main blocks. First, a server allows remote access from any client to upload the configuration to be tested on the experimental demonstrator. Furthermore, this server manages a beacon unit based on a Field-Programmable Gate Array (FPGA) device and five ultrasonic transducers (E1–E5), and is thus flexible enough to implement the different required encoding and modulation schemes, and then drive the transducers. Finally, the same server also handles four receiving modules (R1–R4), which are in charge of acquiring the ultrasonic signals at some particular points in the environment where they have been placed.
The CODEUS online demonstrator has been deployed in a lab environment at the School of Engineering from the University of Alcala, as can be observed in Figure 14. On the left, there is a general view of the experimental setup, denoting the beacon unit in the ceiling and the four receivers (R1–R4) in the environment. It is worth mentioning that, whereas the receiver R1 is on the top of a pole at a height of 1.34 m, the other receivers R2–R4 lie on the ground, mainly close to some furniture, which make those positions interesting from the point of view of the propagation of ultrasounds, as they are affected by multipath. Note that the origin of the coordinates of the whole setup is fixed at the projection of beacon E1 on the ground. Table 2 provides the full coordinates of the five beacons (E1–E5) and the four receivers in this experimental setup.
The server provides the clients with a user-friendly interface, specified in html and php, via the HTTP protocol, so users can upload their own configuration for the five ultrasonic transmissions [64]. In this manner, it is possible to set up sequences, modulation schemes, and the repetition interval between successive transmissions. The server deals with a SQL database, by running php scripts, so the submitted configurations are stored and scheduled for their later download in the experimental setup. This download process is carried out by means of a WiFi connection between the server and the beacon unit mentioned above. This WiFi link is used by the server to open a socket and send the information to the beacon unit, again by running the corresponding php scripts. At the scheduled instant, the beacon unit starts the configured transmissions, whereas the server also manages the receiving modules to acquire the corresponding incoming signals through some USB links. These receptions will be finally uploaded to the cloud and a notification mail will be sent to the client to inform that the experimental results for their configuration are already available. Note that all the tasks developed by the server to deal with the database, the beacon unit, the receiving modules, and the cloud are implemented with php scripts. Figure 15 shows the general block diagram of the server in the CODEUS online demonstrator.
With regard to the beacon unit, this module is based on a FPGA device and five Prowave 328ST160 ultrasonic emitters, as previously described in [65]. Figure 16 depicts the general block diagram of this beacon unit, and a scheme of the distribution of the five transducers Ei in the beacon unit. The System-on-Chip (SoC) architecture implemented in the FPGA controls the WiFi link with the server, so it can receive configurations for the transducers’ emissions, and, afterwards, drive them suitably by means of a digital-analog converter (DAC) and an amplifier. For that purpose, an advanced specific peripheral was designed to cooperate with the ARM processor. Finally, an infrared synchronism module can be addressed by the peripheral to generate a common synchronism signal that can reach the receivers and synchronize acquisitions, in order to consider spherical positioning algorithms later.
The last part of the experimental setup of the CODEUS online demonstrator is the receiving module, whose general block diagram can be observed in Figure 17 [23]. This is based on the omnidirectional MEMS microphone SPU0414HR5H-SB (the beam divergence angle is about 180° @ −3 dB) that matches the emitters’ bandwidth around 41.67 kHz, and an analog-digital converter (ADC) together with a high-pass filter to discard audible frequencies that might saturate the ADC input and any aliasing effect. The converter is actually part of the STM32F103 processor unit, so it is in charge of sampling the incoming signals at 100 kHz. This acquisition can be synchronized with the beacons using the IR link available for that purpose. The receiver is capable of recording a data buffer with a length of 100 ms, which is uploaded to the server via the existing USB link.

6. Study Case of the Online Demonstrator

As a case study, this section presents some results in the particular UIPS developed in the online demonstrator, whose architectures and functionalities are described in Section 5. In order to achieve a fair comparison between simulated and experimental results, the experiments shown here with the CODEUS online demonstrator were conducted under the same configuration scheme. In this manner, 255-bit Kasami codes were involved in the transmission encoding, with a BPSK modulation with two carrier periods at a frequency fc = 41.67 kHz. One hundred acquisitions were carried out, where successive transmissions of the same beacon were separated by an interval of 100 ms and a CDMA protocol was considered, that is, all beacons transmitting simultaneously.
First, Figure 18 depicts some simulated results for the test point corresponding to R1 (see Table 2), where the upper plot represents the modeled received signal and the middle plot shows the correlation functions of that incoming signal with the codes emitted by each beacon Ei. For clarity’s sake, the last plot shows a zoom of those correlation functions, where the ToAs are determined by the maximum values from the mentioned correlation functions. Figure 18 can be compared with Figure 19, obtained from the experimental tests with the online demonstrator. Note that in the experimental tests, the maximum peaks indicating the ToA of the signals emitted by E2 and E5 appear to be overlapped, unlike in the simulated results, due to inaccuracies in the determination of coordinates for point R1 in the experimental scenario. In general terms, the simulated results offer lower SMR than the experimental tests carried out, so the main peaks after correlation can be better identified. This may be caused by the simplified model used to simulate the multipath, where not all of the multipath due to the furniture in the laboratory is considered, and by the fact that the experimental tests may encompass other effects that are not included in the simulation model.
Figure 20 shows the simulated and experimental results corresponding to the clouds of estimated positions obtained for the measurement points R1 and R3, whose coordinates are shown in Table 2. Both in the simulated and experimental tests, a spherical Gauss–Newton algorithm was used to obtain the estimated positions [60]. Note that these two points were selected because R1 is a favorable case, close to the beacons and inside the common coverage area from the five beacons, whereas R3 is a challenging point, further away and with a strong influence from multipath. As can be observed, consequently, the cloud of points for R1 presents a lower dispersion (apart from a couple of outliers in the real tests in Figure 20c, likely due to a wrong determination of TDoAs on the experimental signals). Furthermore, Figure 21 shows the error CDF for both clouds of points, both in simulation and in experimental tests, where it is possible to observe that results at R1 present lower errors than at R3. In the experimental tests, 90% of measurements present a positioning error below 10 cm for R1 and below 35 cm for R3, whereas in the simulation results, errors differ by one order of magnitude. As before, the simplified model used for the simulation of the multipath in this particular environment is likely the reason for this difference, because the simulation platform does not consider the different reflectors existing in the real environment (furniture, walls, etc.) that make the situation more complex. This model should be extended in future works, in a similar manner to [35], where an image method for simulating small-room acoustics is considered. Another relevant aspect in experimental tests is that the Automatic Controlled Gain (ACG) of the receiver (see Figure 17) is required to be tuned, because the microphone voltage input is saturated in some acquisitions (see Figure 19).

7. Conclusions

This paper presented the CODEUS platform, a new tool that includes a highly configurable UIPS software model that is complemented with an online demonstrator. The simulator allows the study of the effect of the signal design (encoding and modulation), beacon distribution, transducers, channel effects, or the type of positioning (spherical or hyperbolic) on the correlation of the received signals and on the positioning estimates. These influences can be studied and analyzed independently for each parameter, either using the options predefined in the platform, or by incorporating customized setups. This theoretical analysis can be easily extended, by exporting the configuration to the experimental demonstrator, where the simulated results can be verified in a real environment. This CODEUS online demonstrator (freely available online: http://www3.uah.es/locate-us/ (accessed on 23 December 2021)) is a remotely accessible and configurable UIPS that allows different encoding and medium access techniques to be tested under the same conditions, easily enabling experimental tests to be carried out. Thus, the signal design can be configured with the simulation platform and real acquisitions for testing purposes can be obtained through the online demonstrator.
One of possible future extensions of the CODEUS platform is providing users with a means to integrate their own processing algorithms into the simulation platform, thus making it possible to compare the performance of different peak detectors or multipath cancellation algorithms, among others. Another aspect is the sensor fusion with other technologies, such as inertial measurements commonly available in most commercial portable devices, which can be integrated with the ultrasonic measurements by applying a Kalman filter or a particle filter. Moreover, due to the utility of acoustic signals in underwater localization of vehicles and/or sensor networks, and the challenge of deploying experimental prototypes, it is expected the tool will be extended to underwater positioning systems. Although some aspects will remain the same, such as the emission configuration, others related to the channel model require further adaptations to include the underwater propagation acoustic model, bathymetry of the seabed, temperature profile, speed of wind, water density, etc.

Author Contributions

M.C.P.-R.: conceptualization, methodology and supervision of the CODEUS simulation platform. D.G.-G.: programmed the initial algorithms related to the localization methods, supervised and validated the simulation platform. S.M.: developed the software algorithms related to the first stages in the CODEUS simulation platform. J.V.-R.: programmed the CODEUS simulation user-friendly interface; Á.H.: conceptualization and supervision of the online demonstrator and the beacon unit. F.C.-F. and R.N.: developed the software related to the online demonstrator. J.M.V. developed the acquisition module. M.C.P.-R. and Á.H.: writing, reviewing and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been possible thanks to the Community of Madrid (CODEUS, ref. CM/JIN/2019-043; RACC CM/JIN/2021-016), Youth Employment Support Guarantee (ref. PEJ-2018-AI/TIC-11833) and the Spanish Ministry of Science, Innovation and Universities (PoM, PID2019-105470RA-C33).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Spachos, P.; Plataniotis, K.N. BLE Beacons for Indoor Positioning at an Interactive IoT-Based Smart Museum. IEEE Syst. J. 2020, 14, 3483–3493. [Google Scholar] [CrossRef] [Green Version]
  2. Fleck, M.; Frid, M.; Kindberg, T.; O’Brien-Strain, E.; Rajani, R.; Spasojevic, M. From informing to remembering: Ubiquitous systems in interactive museums. IEEE Pervasive Comput. 2002, 1, 13–21. [Google Scholar] [CrossRef] [Green Version]
  3. Joshi, R.; Hiwale, A.; Birajdar, S.; Gound, R. Indoor Navigation with Augmented Reality. In ICCCE 2019, Oxford, UK, 8–10 November 2019; Lecture Notes in Electrical Engineering; Springer: Singapore, 2019; pp. 159–165. [Google Scholar] [CrossRef]
  4. Renaudin, V.; Ortiz, M.; Perul, J.; Torres-Sospedra, J.; Jimenez, A.R.; Perez-Navarro, A.; Mendoza-Silva, G.M.; Seco, F.; Landau, Y.; Marbel, R.; et al. Evaluating Indoor Positioning Systems in a Shopping Mall: The Lessons Learned from the IPIN 2018 Competition. IEEE Access 2019, 7, 148594–148628. [Google Scholar] [CrossRef]
  5. Montoliu, R.; Sansano, E.; Gascó, A.; Belmonte, O.; Caballer, A. Indoor Positioning for Monitoring Older Adults at Home: Wi-Fi and BLE Technologies in Real Scenarios. Electronics 2020, 9, 728. [Google Scholar] [CrossRef]
  6. Molina, B.; Olivares, E.; Palau, C.E.; Esteve, M. A Multimodal Fingerprint-Based Indoor Positioning System for Airports. IEEE Access 2018, 6, 10092–10106. [Google Scholar] [CrossRef]
  7. Fischer, C.; Gellersen, H. Location and Navigation Support for Emergency Responders: A Survey. IEEE Pervasive Comput. 2009, 9, 38–47. [Google Scholar] [CrossRef] [Green Version]
  8. Poulose, A.; Eyobu, O.S.; Han, D.S. An Indoor Position-Estimation Algorithm Using Smartphone IMU Sensor Data. IEEE Access 2019, 7, 11165–11177. [Google Scholar] [CrossRef]
  9. Mautz, R.; Tilch, S. Survey of optical indoor positioning systems. In Proceedings of the 2011 International Conference on Indoor Positioning and Indoor Navigation, Guimaraes, Portugal, 21–23 September 2011; pp. 1–7. [Google Scholar] [CrossRef]
  10. Li, B.; Gallagher, T.; Dempster, A.G.; Rizos, C. How feasible is the use of magnetic field alone for indoor positioning? In Proceedings of the 2012 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sydney, Australia, 13–15 November 2012; IEEE: New York, NY, USA, 2012; pp. 1–9. [Google Scholar]
  11. Ozdemir, B.N.; Ceylan, A. Constructing a precise radio map and application of indoor positioning with dual-frequency Wi-Fi fingerprinting method. Measurement 2020, 163, 107997. [Google Scholar] [CrossRef]
  12. Sanchez, A.; de Castro, A.; Elvira, S.; de Rivera, G.G.; Garrido, J. Autonomous indoor ultrasonic positioning system based on a low-cost conditioning circuit. Measurement 2012, 45, 276–283. [Google Scholar] [CrossRef] [Green Version]
  13. Pascale, F.; Adinolfi, E.; Avagliano, M.; Giannella, V.; Salas, A. A Low Energy IoT Application Using Beacon for Indoor Localization. Appl. Sci. 2021, 11, 4902. [Google Scholar] [CrossRef]
  14. Kwon, S.-G.; Kwon, O.-J.; Kwon, K.-R.; Lee, S.-H. UWB and MEMS IMU Integrated Positioning Algorithm for a Work-Tool Tracking System. Appl. Sci. 2021, 11, 8826. [Google Scholar] [CrossRef]
  15. Alarifi, A.; Al-Salman, A.; Alsaleh, M.; Alnafessah, A.; Al-Hadhrami, S.; Al-Ammar, M.A.; Al-Khalifa, H.S. Ultra Wideband Indoor Positioning Technologies: Analysis and Recent Advances. Sensors 2016, 16, 707. [Google Scholar] [CrossRef]
  16. Brena, R.F.; García-Vázquez, J.P.; Galván-Tejada, C.E.; Muñoz-Rodriguez, D.; Vargas-Rosales, C.; Fangmeyer, J. Evolution of Indoor Positioning Technologies: A Survey. J. Sens. 2017, 2017, 2630413. [Google Scholar] [CrossRef]
  17. Zafari, F.; Gkelias, A.; Leung, K.K. A Survey of Indoor Localization Systems and Technologies. IEEE Commun. Surv. Tutor. 2019, 21, 2568–2599. [Google Scholar] [CrossRef] [Green Version]
  18. Mendoza-Silva, G.M.; Torres-Sospedra, J.; Huerta, J. A Meta-Review of Indoor Positioning Systems. Sensors 2019, 19, 4507. [Google Scholar] [CrossRef] [Green Version]
  19. Xing, B.; Zhu, Q.; Pan, F.; Feng, X. Marker-Based Multi-Sensor Fusion Indoor Localization System for Micro Air Vehicles. Sensors 2018, 18, 1706. [Google Scholar] [CrossRef] [Green Version]
  20. Bahillo, A.; Aguilera, T.; Álvarez, F.J.; Perallos, A. WAY: Seamless Positioning Using a Smart Device. Wirel. Pers. Commun. 2016, 94, 2949–2967. [Google Scholar] [CrossRef]
  21. Xia, M.; Xiu, C.; Yang, D.; Wang, L. Performance Enhancement of Pedestrian Navigation Systems Based on Low-Cost Foot-Mounted MEMS-IMU/Ultrasonic Sensor. Sensors 2019, 19, 364. [Google Scholar] [CrossRef] [Green Version]
  22. Kalman, R.E. A New Approach to Linear Filtering and Prediction Problems. J. Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef] [Green Version]
  23. Urena, J.; Hernandez, A.; Garcia, J.J.; Villadangos, J.M.; Perez, M.C.; Gualda, D.; Alvarez, F.J.; Aguilera, T. Acoustic Local Positioning with Encoded Emission Beacons. Proc. IEEE 2018, 106, 1042–1062. [Google Scholar] [CrossRef]
  24. Aparicio, J.; Aguilera, T.; Alvarez, F.J. Robust Airborne Ultrasonic Positioning of Moving Targets in Weak Signal Coverage Areas. IEEE Sens. J. 2020, 20, 13119–13130. [Google Scholar] [CrossRef]
  25. Gualda, D.; Pérez-Rubio, M.; Ureña, J.; Pérez-Bachiller, S.; Villadangos, J.; Hernández, Á.; García, J.; Jiménez, A. LOCATE-US: Indoor Positioning for Mobile Devices Using Encoded Ultrasonic Signals, Inertial Sensors and Graph-Matching. Sensors 2021, 21, 1950. [Google Scholar] [CrossRef] [PubMed]
  26. García, E.; Paredes, J.A.; Alvarez, F.J.; Pérez, M.C.; García, J.J. Spreading sequences in active sensing: A review. Signal Process. 2015, 106, 88–105. [Google Scholar] [CrossRef]
  27. Li, X.; Deng, Z.D.; Rauchenstein, L.T.; Carlson, T.J. Contributed Review: Source-localization algorithms and applications using time of arrival and time difference of arrival measurements. Rev. Sci. Instrum. 2016, 87, 041502. [Google Scholar] [CrossRef]
  28. Nazlibilek, S. Autonomous navigation of robotic units in mobile sensor network. Measurement 2012, 45, 938–949. [Google Scholar] [CrossRef]
  29. Pérez-Rubio, M.C.; Losada-Gutiérrez, C.; Espinosa, F.; Macias-Guarasa, J.; Tiemann, J.; Eckermann, F.; Wietfeld, C.; Katkov, M.; Huba, S.; Ureña, J.; et al. A realistic evaluation of indoor robot position tracking systems: The IPIN 2016 competition experience. Measurement 2018, 135, 151–162. [Google Scholar] [CrossRef]
  30. Urrea, C.; Saa, D. Design and Implementation of a Graphic Simulator for Calculating the Inverse Kinematics of a Redundant Planar Manipulator Robot. Appl. Sci. 2020, 10, 6770. [Google Scholar] [CrossRef]
  31. Jankowski, T.; Nikodem, M. SMILe—Simulator for Methods of Indoor Localization. In Proceedings of the 2018 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Nantes, France, 24–27 September 2018; pp. 206–212. [Google Scholar] [CrossRef]
  32. Amiot, N.; Laaraiedh, M.; Uguen, B. PyLayers: An open source dynamic simulator for indoor propagation and localization. In Proceedings of the 2013 IEEE International Conference on Communications Workshops (ICC), Budapest, Hungary, 9–13 June 2013; pp. 84–88. [Google Scholar] [CrossRef] [Green Version]
  33. DeustoTech Mobility. Available online: https://deustotech.github.io/navindoor-documentation/ (accessed on 23 July 2020).
  34. Young, A.D.; Ling, M.J.; Arvind, D.K. IMUSim: A simulation environment for inertial sensing algorithm design and evaluation. In Proceedings of the 10th ACM/IEEE International Conference on Information Processing in Sensor Networks, Chicago, IL, USA, 12–14 April 2011; pp. 199–210. [Google Scholar]
  35. Alvarez, F.J.; Aguilera, T.; Fernandez, J.A.; Moreno, J.A.; Gordillo, A. Analysis of the performance of an Ultrasonic Local Positioning System based on the emission of Kasami codes. In Proceedings of the 2010 International Conference on Indoor Positioning and Indoor Navigation, Zurich, Switzerland, 15–17 September 2010; pp. 1–5. [Google Scholar] [CrossRef]
  36. Widodo, S.; Shiigi, T.; Hayashi, N.; Kikuchi, H.; Yanagida, K.; Nakatsuchi, Y.; Ogawa, Y.; Kondo, N. Moving Object Localization Using Sound-Based Positioning System with Doppler Shift Compensation. Robotics 2013, 2, 36–53. [Google Scholar] [CrossRef] [Green Version]
  37. Moreno, J.A.; Álvarez, F.J.; Aguilera, T.; Paredes, J.A. Easily-Deployable Acoustic Local Positioning System Based on Auto-Calibrated Wireless Beacons. Sensors 2019, 19, 1385. [Google Scholar] [CrossRef] [Green Version]
  38. Tseng, C.-C.; Liu, C. Complementary sets of sequences. IEEE Trans. Inf. Theory 1972, 18, 644–652. [Google Scholar] [CrossRef]
  39. Rubio, M.C.P.; Serrano, R.S.; Urena, J.; Alonso, H.; De Marziani, C.; Franco, F.J. Correlator Implementation for Orthogonal CSS Used in an Ultrasonic LPS. IEEE Sens. J. 2012, 12, 2807–2816. [Google Scholar] [CrossRef]
  40. Stanczak, S.; Boche, H.; Haardt, M. Are LAS-codes a miracle? In Proceedings of the IEEE Global Telecommunications Conference, San Antonio, TX, USA, 25–29 November 2001. [CrossRef]
  41. Isla, J.A.; Cegla, F.B. Simultaneous transmission and reception on all elements of an array: Binary code excitation. Proc. R. Soc. A Math. Phys. Eng. Sci. 2019, 475, 20180831. [Google Scholar] [CrossRef] [Green Version]
  42. Paredes, J.A.; Aguilera, T.; Álvarez, F.J.; Lozano, J.; Morera, J. Analysis of Doppler Effect on the Pulse Compression of Different Codes Emitted by an Ultrasonic LPS. Sensors 2011, 11, 10765–10784. [Google Scholar] [CrossRef]
  43. Khyam, M.O.; Rahim, N.A.; Li, X.; Ritz, C.; Guan, Y.L.; Ge, S.S. Design of Chirp Waveforms for Multiple-Access Ultrasonic Indoor Positioning. IEEE Sens. J. 2018, 18, 6375–6390. [Google Scholar] [CrossRef]
  44. Chu, D. Polyphase codes with good periodic correlation properties (Corresp.). IEEE Trans. Inf. Theory 1972, 18, 531–532. [Google Scholar] [CrossRef]
  45. Murano, S.; Perez-Rubio, C.; Gualda, D.; Alvarez, F.J.; Aguilera, T.; De Marziani, C. Evaluation of Zadoff–Chu, Kasami, and Chirp-Based Encoding Schemes for Acoustic Local Positioning Systems. IEEE Trans. Instrum. Meas. 2019, 69, 5356–5368. [Google Scholar] [CrossRef]
  46. Gonzalez, J.R.; Bleakley, C.J. High-Precision Robust Broadband Ultrasonic Location and Orientation Estimation. IEEE J. Sel. Top. Signal Process. 2009, 3, 832–844. [Google Scholar] [CrossRef]
  47. Qi, J.; Liu, G.-P. A Robust High-Accuracy Ultrasound Indoor Positioning System Based on a Wireless Sensor Network. Sensors 2017, 17, 2554. [Google Scholar] [CrossRef] [Green Version]
  48. Richard, B.; Rastiello, G.; Giry, C.; Riccardi, F.; Paredes, R.; Zafati, E.; Kakarla, S.; Lejouad, C. CastLab: An object-oriented finite element toolbox within the Matlab environment for educational and research purposes in computational solid mechanics. Adv. Eng. Softw. 2018, 128, 136–151. [Google Scholar] [CrossRef]
  49. Din, M.M.U.; Kim, B. Development of Multi-DOF Model of Automotive LED Headlamp Assembly for Force Transmission Prediction Using MATLAB GUI. Appl. Sci. 2020, 10, 5906. [Google Scholar] [CrossRef]
  50. Kasami, T. Weight Distribution Formula for Some Class of Cyclic Codes. 1966. Available online: https://www.semanticscholar.org/paper/WEIGHT-DISTRIBUTION-FORMULA-FOR-SOME-CLASS-OF-CODES-Kasami/08ff549eb15fd2db8eedf5adcd7317223bcfffd3 (accessed on 23 December 2021).
  51. Golay, M. Complementary series. IEEE Trans. Inf. Theory 1961, 7, 82–87. [Google Scholar] [CrossRef]
  52. Mow, W.H.; Li, S.-Y. Aperiodic autocorrelation properties of perfect polyphase sequences. Electron. Lett. 1990, 26, 2068–2070. [Google Scholar] [CrossRef]
  53. Pro-Wave Electronic Corp. 328ST160, Air Ultrasonic Ceramic Transducer. Available online: http://www.prowave.com.tw/english/products/ut/open-type/328s160.htm (accessed on 23 December 2021).
  54. GRAS 40BE 1/4” Prepolarized Free-Field Microphone. Available online: https://www.grasacoustics.com/products/product/158-40BE (accessed on 23 December 2021).
  55. SPU0414HR5H-SB MEMs Microphone, Knowles Acoustics. Available online: https://datasheet.octopart.com/SPU0414HR5H-SB-Knowles-Acoustics-datasheet-21203067.pdf (accessed on 23 December 2021).
  56. Kaune, R. Accuracy studies for TDOA and TOA localization. In Proceedings of 2012 15th International Conference on Information Fusion, Singapore, 9–12 July 2012; pp. 408–415. [Google Scholar]
  57. Allen, J.B.; Berkley, D.A. Image method for efficiently simulating small-room acoustics. J. Acoust. Soc. Am. 1979, 65, 943–950. [Google Scholar] [CrossRef]
  58. Dickinson, M.; Hower, G.; Rigas, H.; Rockway, J. Ray Tracing for Atmospheric Acoustic Waves Using a Hybrid Computer. IEEE Trans. Geosci. Electron. 1972, 10, 166–172. [Google Scholar] [CrossRef]
  59. Cramer, O. The variation of the specific heat ratio and the speed of sound in air with temperature, pressure, humidity, and CO2 concentration. J. Acoust. Soc. Am. 1993, 93, 2510–2516. [Google Scholar] [CrossRef]
  60. Yan, J.; Tiberius, C.; Bellusci, G.; Janssen, G. Feasibility of Gauss-Newton method for indoor positioning. In Proceedings of the 2008 IEEE/ION Position, Location and Navigation Symposium, Monterey, CA, USA, 5–8 May 2008; pp. 660–670. [Google Scholar] [CrossRef]
  61. Thomas, F.; Ros, L. Revisiting trilateration for robot localization. IEEE Trans. Robot. 2005, 21, 93–101. [Google Scholar] [CrossRef] [Green Version]
  62. M´laren, D. An Introduction to the Geometry of N Dimensions; Dover Publications: Dover, UK, 1958. [Google Scholar]
  63. Aguilera, T.; Alvarez, F.J.; Gualda, D.; Villadangos, J.M.; Hernandez, A.; Urena, J. Multipath Compensation Algorithm for TDMA-Based Ultrasonic Local Positioning Systems. IEEE Trans. Instrum. Meas. 2018, 67, 984–991. [Google Scholar] [CrossRef]
  64. Ciudad, F.; Hernández, A.; Gualda, D.; Aparicio-Esteve, E. Design and Implementation of a Remotely Configurable Ul-trasonic Local Positioning Systems. In Proceedings of the 2019 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Pisa, Italy, 2 October 2019; pp. 1–8. [Google Scholar]
  65. Hernández, A.; García, E.; Gualda, D.; Villadangos, J.M.; Nombela, F.; Ureña, J. FPGA-Based Architecture for Managing Ultrasonic Beacons in a Local Positioning System. IEEE Trans. Instrum. Meas. 1964, 66, 1954–1964. [Google Scholar] [CrossRef]
Figure 1. General block diagram of the CODEUS platform: simulator and online demonstrator.
Figure 1. General block diagram of the CODEUS platform: simulator and online demonstrator.
Sensors 22 01038 g001
Figure 2. Example of emission configuration with five 255-bit Kasami codes modulated in BPSK with two carrier cycles at 41.67 kHz and a sampling frequency of 500 kHz.
Figure 2. Example of emission configuration with five 255-bit Kasami codes modulated in BPSK with two carrier cycles at 41.67 kHz and a sampling frequency of 500 kHz.
Sensors 22 01038 g002
Figure 3. Correlation functions for those sequences considered in the CODEUS platform: (a) normalized periodic and (b) aperiodic correlation functions of Kasami sequences with length LKas = 63; (c) SACF and (d) SCCF for CSS with MCSS = 2 and LCSS = 64; (e) normalized aperiodic correlation function of LS sequences with length LLS = 79 and Zero Correlation Zone around the origin ZCZ = 15; (f) normalized periodic and (g) aperiodic correlation function for Zadoff-Chu sequences with LZC = 61.
Figure 3. Correlation functions for those sequences considered in the CODEUS platform: (a) normalized periodic and (b) aperiodic correlation functions of Kasami sequences with length LKas = 63; (c) SACF and (d) SCCF for CSS with MCSS = 2 and LCSS = 64; (e) normalized aperiodic correlation function of LS sequences with length LLS = 79 and Zero Correlation Zone around the origin ZCZ = 15; (f) normalized periodic and (g) aperiodic correlation function for Zadoff-Chu sequences with LZC = 61.
Sensors 22 01038 g003
Figure 4. Effect of the BPSK modulation in the auto-correlation function of a 63-bit long Kasami code with fc = 41.67 kHz, fs = 12 and: (a) Oc = 2; (b) Oc = 4.
Figure 4. Effect of the BPSK modulation in the auto-correlation function of a 63-bit long Kasami code with fc = 41.67 kHz, fs = 12 and: (a) Oc = 2; (b) Oc = 4.
Sensors 22 01038 g004
Figure 5. 328ST160 transducer frequency response, measured (red) and the FIR filter model (blue) [45].
Figure 5. 328ST160 transducer frequency response, measured (red) and the FIR filter model (blue) [45].
Sensors 22 01038 g005
Figure 6. Configuration of the multiple emission scheme: (a) CDMA, (b) TCDMA (Tshift = Te), and (c) TCDMA with configurable Tshift.
Figure 6. Configuration of the multiple emission scheme: (a) CDMA, (b) TCDMA (Tshift = Te), and (c) TCDMA with configurable Tshift.
Sensors 22 01038 g006
Figure 7. Study of the PDOP considering a 6 m × 6 m area in the XY plane, and five beacons placed at a height of 348 cm, in a 70.7 cm × 70.7 cm square structure: (a) spherical; (b) hyperbolic.
Figure 7. Study of the PDOP considering a 6 m × 6 m area in the XY plane, and five beacons placed at a height of 348 cm, in a 70.7 cm × 70.7 cm square structure: (a) spherical; (b) hyperbolic.
Sensors 22 01038 g007
Figure 8. Example of a scene configuration in the simulator environment.
Figure 8. Example of a scene configuration in the simulator environment.
Sensors 22 01038 g008
Figure 9. Configuration of different channel phenomena in the CODEUS simulator environment.
Figure 9. Configuration of different channel phenomena in the CODEUS simulator environment.
Sensors 22 01038 g009
Figure 10. Example of a non-valid measurement after the peak detection algorithm.
Figure 10. Example of a non-valid measurement after the peak detection algorithm.
Sensors 22 01038 g010
Figure 11. Auto-correlation and cross-correlation results for three 63-bit Kasami codes modulated in BPSK with two carrier cycles at 41.67 kHz and a sampling frequency of 500 kHz.
Figure 11. Auto-correlation and cross-correlation results for three 63-bit Kasami codes modulated in BPSK with two carrier cycles at 41.67 kHz and a sampling frequency of 500 kHz.
Sensors 22 01038 g011
Figure 12. Correlation results after the emission of five simultaneous 255-bit BPSK modulated codes with SNR = 5 dB.
Figure 12. Correlation results after the emission of five simultaneous 255-bit BPSK modulated codes with SNR = 5 dB.
Sensors 22 01038 g012
Figure 13. Positioning estimates obtained with 255-bit BPSK modulated codes with SNR = 5 dB, after 30 realizations.
Figure 13. Positioning estimates obtained with 255-bit BPSK modulated codes with SNR = 5 dB, after 30 realizations.
Sensors 22 01038 g013
Figure 14. (a) General view of the experimental setup of the CODEUS online demonstrator, and (b) a scheme with the dimensions for that setup, where E1–E5 are the emitters and R1–R4 the receivers.
Figure 14. (a) General view of the experimental setup of the CODEUS online demonstrator, and (b) a scheme with the dimensions for that setup, where E1–E5 are the emitters and R1–R4 the receivers.
Sensors 22 01038 g014
Figure 15. General block diagram of the server designed for the CODEUS online demonstrator.
Figure 15. General block diagram of the server designed for the CODEUS online demonstrator.
Sensors 22 01038 g015
Figure 16. General block diagram of the beacon unit involved in the CODEUS online demonstrator [65].
Figure 16. General block diagram of the beacon unit involved in the CODEUS online demonstrator [65].
Sensors 22 01038 g016
Figure 17. General block diagram of the receiving module included in the CODEUS online demonstrator [23].
Figure 17. General block diagram of the receiving module included in the CODEUS online demonstrator [23].
Sensors 22 01038 g017
Figure 18. Simulated results for point R1: (top) The received signal with SNR = 10 dB; (middle) the correlation functions between this incoming signal and the codes emitted by beacons Ei; (bottom) magnification of the area of interest, where the maximum values of those correlation functions can be observed.
Figure 18. Simulated results for point R1: (top) The received signal with SNR = 10 dB; (middle) the correlation functions between this incoming signal and the codes emitted by beacons Ei; (bottom) magnification of the area of interest, where the maximum values of those correlation functions can be observed.
Sensors 22 01038 g018
Figure 19. Experimental acquisition for point R1: the received signal (top); the correlation functions between this incoming signal and the codes emitted by beacons Ei (middle); and magnification of the area of interest, where the maximum values of those correlation functions can be observed (bottom).
Figure 19. Experimental acquisition for point R1: the received signal (top); the correlation functions between this incoming signal and the codes emitted by beacons Ei (middle); and magnification of the area of interest, where the maximum values of those correlation functions can be observed (bottom).
Sensors 22 01038 g019
Figure 20. Clouds of position estimates: (a) simulated results for R1 with SNR = 10 dB; (b) simulated results for R3 with SNR = 10 dB; (c) experimental results for R1 and R3.
Figure 20. Clouds of position estimates: (a) simulated results for R1 with SNR = 10 dB; (b) simulated results for R3 with SNR = 10 dB; (c) experimental results for R1 and R3.
Sensors 22 01038 g020
Figure 21. Positioning error CDF: (a) simulated results at R1, with SNR = 10 dB; (b) simulated results at R3, with SNR = 10 dB; (c) simulated results at R1, with SNR = 0 dB; (d) simulated results at R3, with SNR = 0 dB; (e) experimental results.
Figure 21. Positioning error CDF: (a) simulated results at R1, with SNR = 10 dB; (b) simulated results at R3, with SNR = 10 dB; (c) simulated results at R1, with SNR = 0 dB; (d) simulated results at R3, with SNR = 0 dB; (e) experimental results.
Sensors 22 01038 g021
Table 1. Percentage of papers related to AIPS in the Indoor Positioning and Indoor Navigation Conference (IPIN).
Table 1. Percentage of papers related to AIPS in the Indoor Positioning and Indoor Navigation Conference (IPIN).
Year%AIPS Papers at IPIN
201610.32
20177.56
20189.01
20196.10
20217.69
Table 2. Coordinates of the five beacons (E1–E5) and the four receivers (R1–R4) in the experimental environment of the CODEUS online demonstrator.
Table 2. Coordinates of the five beacons (E1–E5) and the four receivers (R1–R4) in the experimental environment of the CODEUS online demonstrator.
CoordinateE1E2E3E4E5R1R2R3R4
x (m)0.000.000.510.00−0.510.431.09−0.800.19
y (m)0.000.5120.00−0.520.00−0.041.360.951.00
z (m)3.293.433.373.433.371.340.000.000.00
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Pérez-Rubio, M.C.; Hernández, Á.; Gualda-Gómez, D.; Murano, S.; Vicente-Ranera, J.; Ciudad-Fernández, F.; Villadangos, J.M.; Nieto, R. Simulation Tool and Online Demonstrator for CDMA-Based Ultrasonic Indoor Localization Systems. Sensors 2022, 22, 1038. https://doi.org/10.3390/s22031038

AMA Style

Pérez-Rubio MC, Hernández Á, Gualda-Gómez D, Murano S, Vicente-Ranera J, Ciudad-Fernández F, Villadangos JM, Nieto R. Simulation Tool and Online Demonstrator for CDMA-Based Ultrasonic Indoor Localization Systems. Sensors. 2022; 22(3):1038. https://doi.org/10.3390/s22031038

Chicago/Turabian Style

Pérez-Rubio, María Carmen, Álvaro Hernández, David Gualda-Gómez, Santiago Murano, Jorge Vicente-Ranera, Francisco Ciudad-Fernández, José Manuel Villadangos, and Rubén Nieto. 2022. "Simulation Tool and Online Demonstrator for CDMA-Based Ultrasonic Indoor Localization Systems" Sensors 22, no. 3: 1038. https://doi.org/10.3390/s22031038

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