1 Introduction

Due to the lack of telecommunications infrastructure and high density of trees and peaks, the signal coverage of rural and remote areas are restricted. However, these areas occupy an equally important position in the development of the country especially in Internet of Things (IoT) [1]. In many countries, rural and remote areas play an important role, such as protecting natural resources, forest fire prevention, in which the IoT network can play a crucial part. Therefore, the network should cover a wide range by employing huge number of base stations, and it will raise the network cost significantly.

In this case, special telecommunication technologies are required in rural and remote areas [2], especially because of their unique isolation environment, few population, large terrain, and inability to make productive investments [3]. Although various telecommunication methods have been proposed for rural areas where these services are lacking, efforts are needed to achieve Internet and cellular access [4].

Common rural telecommunication [5] infrastructure solutions are VSAT (Very Small Aperture Terminal) [6, 7] and microwave radio. Common solutions such as VSAT [8] and microwave links [9] bring high investment and operating costs, such as on-site acquisition, on-site visits, and technology costs, and are faced with low user density and low affordability in the return. Many operators therefore invest less in their development.

High Altitude Platform Station (HAPS) [10, 11] is also known as stratosphere repeaters. Traditional ground systems have problems like small coverage and strict propagation environment. However, these problems can be eliminated by using HAPS systems [12, 13]. It is a new approach to telecommunication infrastructure solutions in rural and remote areas based on the stratospheric airborne platform. So HAPS is very suitable for Internet of Things applications in remote areas.

However, in some special scenarios, the coverage of HAPS may be affected due to the obstacle from topography such as mountains and forests [14] and the communication between the platform and the device. Coordination between multiple HAPS stations may be need in these scenarios. However, there are interference challenges between multiple HAPS stations in the cooperative HAPS systems due to inter-carrier interference (ICI) and multiple access interference (MAI).

Orthogonal frequency division multiplexing (OFDM) is a basic technology for IoT systems, such as NB-IoT. In OFDM-based IoT systems [15], the channels are divided into orthogonal sub channels, and the data is converted into several parallel data streams, which are modulated to the sub channels for transmission. Multiple carrier frequency offsets (MCFO) [16] may result in ICI [17] and MAI [18] and will hinder the synchronization between the device and HAPS.

In this paper, we propose a new frequency offset compensation algorithm for HAPS IoT systems employing space-frequency block code orthogonal frequency division multiplexing (SFBC-OFDM), which can provide nearly the ideal performance under certain conditions. Furthermore, the performance of the algorithm was analyzed, and simulation was also carried out to verify the result.

This paper is organized as description in the follows. The system model and the proposed MCFO compensation algorithm are depicted in Section II. Section III describes the theoretical analysis on BER (bit error ratio) performance and the simulation results, and finally the conclusion is depicted in section IV.

2 Methods

2.1 System model

The system model is defined in this sub-section. In this paper, we assumed that two HAPS stations collaborate to provide coverage for the same terminal through SFBC-OFDM mode. In SFBC-OFDM mode, two HAPS stations can be divided into main station and assist station. To simplify the system model, the system model can be abstracted as a relay system, in which the main HAPS is the source node and the assist HAPS is the relay node, as shown in Fig. 1.

Fig. 1
figure 1

System model. Figure 1 shows the communication links among main HAPS, assist HAPS, and devices in two phases

All stations and device work in half duplex mode. The cooperative HAPS systems will listen and then transmit to the device. When listening, the source HAPS broadcasts the information to the assist HAPS and the device. And we assume that the transmitted data can be ideally detected by the assist HAPS. When transmitting, the two HAPS can transmit the data to the device cooperatively. In this paper, we assume that SFBC is employed. According to the SFBC scheme [19] that employs Altamonte strategy [20], the encoded vectors corresponding to the two nodes can be expressed as:

$$ {\mathbf{X}}_{sd}={\left[{X}_0,-{X}_1^{\ast },\cdots, {X}_k,-{X}_{k+1}^{\ast },\cdots, {X}_{N-2},-{X}_{N-1}^{\ast}\right]}^T $$
$$ {\mathbf{X}}_{rd}={\left[{X}_1,{X}_0^{\ast },\cdots, {X}_{k+1},{X}_k^{\ast },\cdots, {X}_{N-1},{X}_{N-2}^{\ast}\right]}^T $$
(1)

Then, the coded data are both OFDM modulated as \( {\mathbf{x}}_{\alpha }={\mathbf{F}}_N^{-1}{\mathbf{X}}_{\alpha } \) (α ∈ {sd, rd}), where \( {\mathbf{F}}_N^{-1} \) is the inverse Fourier matrix. Finally, a cyclic prefix (CP) is added to the top of xα, which is utilized to eliminate the inter-symbol interference (ISI). And Ng is the length of the CP.

The discrete time model of the received signal after removing the CP is as described in formula (2)

$$ {\mathbf{y}}_d=\sum \limits_{\alpha = sd, rd}{\boldsymbol{\Xi}}_{\alpha}\cdot {\mathbf{x}}_{\alpha}\cdot {\mathbf{h}}_{\alpha }+{\mathbf{w}}_d $$
(2)

where L is the length of the frequency selective channel

$$ {\displaystyle \begin{array}{l}{\mathbf{y}}_d={\left[{y}_d(0),{y}_d(1),\cdots, {y}_d\left(N-1\right)\right]}^T,\\ {}\;{\mathbf{h}}_{\alpha }=\mathit{\operatorname{diag}}\left\{{\mathbf{h}}_{\alpha }(0),{\mathbf{h}}_{\alpha }(1),\cdots, {\mathbf{h}}_{\alpha}\left(N-1\right)\right\},\\ {}{\mathbf{h}}_{\alpha}\;(n)=\left[{h}_{\alpha}\;\left(n,0\right),\cdots, {h}_{\alpha}\;\left(n,L-1\right)\right],\\ {}{\boldsymbol{\Xi}}_{\alpha }=\mathit{\operatorname{diag}}\left\{{\boldsymbol{\Xi}}_{\alpha }(0),{\boldsymbol{\Xi}}_{\alpha }(1),\cdots, {\boldsymbol{\Xi}}_{\alpha}\left(N-1\right)\right\},\\ {}{\boldsymbol{\Xi}}_{\alpha }(n)=\mathit{\operatorname{diag}}\left\{\underset{L}{\underbrace{e^{j\frac{2\pi \cdot {\varepsilon}_{\alpha}\cdot n}{N}},\cdots, {e}^{j\frac{2\pi \cdot {\varepsilon}_{\alpha}\cdot n}{N}}}}\right\},\\ {}{\mathbf{w}}_{\alpha }={\left[{w}_{\alpha }(0),{w}_{\alpha }(1),\cdots, {w}_{\alpha}\left(N-1\right)\right]}^T.\end{array}} $$

In consequence, the frequency domain received signals can be expressed as

$$ {\displaystyle \begin{array}{l}{\mathbf{Y}}_d\\ {}={\left[\begin{array}{c}{\boldsymbol{\Lambda}}_{sd}\\ {}{\boldsymbol{\Lambda}}_{rd}\end{array}\right]}^T\cdot \left[\begin{array}{cc}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{sd}\right\}& 0\\ {}0& \mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{rd}\right\}\end{array}\right]\cdot \left[\begin{array}{c}{\mathbf{X}}_{sd}\\ {}{\mathbf{X}}_{rd}\end{array}\right]+{\mathbf{W}}_d\end{array}} $$
$$ =\left(\left[\begin{array}{c}{\boldsymbol{\Lambda}}_{\varepsilon_{sd},0}\\ {}{\boldsymbol{\Lambda}}_{\varepsilon_{rd},0}\end{array}\right]+{\left[\begin{array}{c}{\boldsymbol{\Pi}}_{sd}\\ {}{\boldsymbol{\Pi}}_{rd}\end{array}\right]}^T\right)\cdot \left[\begin{array}{cc}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{sd}\right\}& 0\\ {}0& \mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{rd}\right\}\end{array}\right]\cdot \left[\begin{array}{c}{\mathbf{X}}_{sd}\\ {}{\mathbf{X}}_{rd}\end{array}\right]+{\mathbf{W}}_d $$
(3)

where Hα (α ∈ {sd, rd}) is the diagonal channel transform function (CTF) matrix given by Hα =  diag {Hα(0), Hα(1), ⋯, Hα(N − 1)}, which is assumed to be unchanged during at least 2 sub-carriers. It is assumed that the CTF on every sub-carriers are independent, and they are Rayleigh random variables. Λα denotes the ICI coefficient matrix caused by MCFO, in which Λα[k, l] is defined as

$$ {\displaystyle \begin{array}{l}{\Lambda}_{\varepsilon_{\alpha }}\left[k,l\right]=\frac{1}{N}\cdot \sum \limits_{n=0}^{N-1}{e}^{\frac{j2\pi n\left({\varepsilon}_{\alpha }-k+l\right)}{N}}\kern0.36em \\ {}=\frac{\sin \left(\pi \left(l-k+{\varepsilon}_{\alpha}\right)\right)}{N\cdot \sin \left(\pi \left(l-k+{\varepsilon}_{\alpha}\right)/N\right)}\cdot \exp \left( j\pi \left(1-\frac{1}{N}\right)\left(l-k+{\varepsilon}_{\alpha}\right)\right)\end{array}} $$
(4)

In which, εα is the normalized frequency offset. And it is obvious that when k = l, \( {\Lambda}_{\varepsilon_{\alpha }}\left[k,l\right] \) is a constant value for fixed εα, which is denoted as \( {\Lambda}_{\varepsilon_{\alpha },0} \) and \( {\boldsymbol{\varLambda}}_{\varepsilon_{\alpha },0}=\mathit{\operatorname{diag}}\left\{\underset{N}{\underbrace{\varLambda_{\varepsilon_{\alpha },0},\cdots, {\varLambda}_{\varepsilon_{\alpha },0}}}\right\} \). It is known that the diagonal elements of Λα are the power weighting coefficients of sub-carrier k, which can be depicted as \( {\boldsymbol{\Lambda}}_{\varepsilon_{\alpha },0} \) and the other elements are power leakage weighting coefficients caused by the MCFO, which is expressed as Πα with elements of:

$$ {\Pi}_{\alpha}\left[k,l\right]=\left\{\begin{array}{cc}{\Lambda}_{\alpha}\left[k,l\right]& k\ne l\\ {}0& k=l\end{array}\right.. $$
(5)

From formula (3), it can be observed that due to the existence of MCFO, not only ICI, but also MAI emerges, and the orthogonality of SFBC is destroyed. Consequently, the SFBC decode is much more complicated than conventional methods, which should be processed with an efficient MCFO compensation filter.

2.2 Proposed MCFO compensation algorithm

It is assumed that the multiple carrier frequency offsets and channel transfer functions of two links are ideally estimated by using the properties transmitted known pilots (see [21] and references therein). In the scenario in which HAPS stations collaborate, the measurement of simple mixing procedure has no effect on multiple frequency offsets compensation, as performed in a single out system [22] (Fig. 2).

Fig. 2
figure 2

Receiver architecture of cooperative HAPS systems. Figure 2 shows coordination mechanism for the receiver of cooperative HAPS systems

2.2.1 MCFO mixing and modified SFBC decoding

As shown in formula (3), the received signal is interfered by the interference signal from both source-device link and assist-device link. In order guarantee the performance of SFBC, the received signals should be mixed with the two link’s CFO independently as:

$$ {\displaystyle \begin{array}{l}{\mathbf{y}}_{sd}={\boldsymbol{\Xi}}_{sd}^{-1}\cdot {\mathbf{y}}_d={\mathbf{x}}_{rd}\cdot {\mathbf{h}}_{sd}+{\boldsymbol{\Xi}}_{sd}^{-1}\cdot {\boldsymbol{\Xi}}_{rd}\cdot {\mathbf{x}}_{rd}\cdot {\mathbf{h}}_{rd}+{\mathbf{w}}_{sd}^{\prime}\\ {}{\mathbf{y}}_{rd}={\boldsymbol{\Xi}}_{rd}^{-1}\cdot {\mathbf{y}}_d={\boldsymbol{\Xi}}_{rd}^{-1}\cdot {\boldsymbol{\Xi}}_{sd}\cdot {\mathbf{x}}_{rd}\cdot {\mathbf{h}}_{sd}+{\mathbf{x}}_{rd}\cdot {\mathbf{h}}_{rd}+{\mathbf{w}}_{rd}^{{\prime\prime}}\end{array}} $$
(6)

where α = sd, rd. If we transform the above formula to frequency domain, the expression can be:

$$ {\mathbf{Y}}_{\alpha }={\mathbf{F}}_N{\mathbf{y}}_{\alpha }, $$
(7)

in which the signals on the successive two sub-carriers k and k + 1 are repressed as:

$$ {\displaystyle \begin{array}{l}{Y}_{\alpha, k}\\ {}=\left({X}_k{H}_{sd,k}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}+{X}_{k+1}{H}_{rd,k}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right)\\ {}+\left(\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_l{H}_{sd,l}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },l-k}+\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_{l+1}{H}_{rd,l}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },l-k}\right)+{W}_{sd,k}\\ {}{Y}_{\alpha, k+1}\\ {}=\left(-{X}_{k+1}^{\ast }{H}_{sd,k}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}+{X}_k^{\ast }{H}_{rd,k}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right)\\ {}+\left(\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k+1\end{array}}^{N-1}-{X}_{l+1}^{\ast }{H}_{sd,l}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },l-k}+\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k+1\end{array}}^{N-1}{X}_l^{\ast }{H}_{rd,l}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },l-k}\right)+{W}_{rd,k+1}\end{array}} $$
(8)

Because of the existing of ICI coefficients, the conventional SFBC decoder is ill-fitted and designed. In the algorithm, the decoded signals on successive two sub-carriers are defined as follows:

$$ {\displaystyle \begin{array}{l}{\hat{X}}_{\alpha, k}=\frac{Y_{\alpha, k}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}^{\ast }+{Y}_{\alpha, k+1}^{\ast }{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}}{\left({\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right|}^2\right)}\\ {}{\hat{X}}_{\alpha, k+1}=\frac{Y_{\alpha, k}{\hat{H}}_{rd,k}^{\ast }{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}^{\ast }-{Y}_{\alpha, k+1}^{\ast }{\hat{H}}_{sd,k}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}}{\left({\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right|}^2\right)}\end{array}} $$
(9)

2.2.2 Minimum Euclidean Distance Decision Criterion

As is shown in formula (9), two signals, i.e., \( {\hat{\mathbf{X}}}_{sd} \) and \( {\hat{\mathbf{X}}}_{rd} \), are obtained. But they are both not accurate enough. As a result, there should be a suitable criterion to decide the reliability. In this paper, the criterion is chosen as Minimum Euclidean Distance Decision Criterion (MEDDC). With this criterion, we can compare the Euclidean distances from the two signals to their respectively nearest constellation point to select the output, which can be written as:

$$ {\hat{X}}_{MEDDC,k}=\underset{\vartheta_i}{\arg \min}\left(\left\Vert {\hat{X}}_{\alpha, k}-{\vartheta}_i\right\Vert \right) $$
(10)

in which, ϑi is the coordinate of the i-th constellation point for M-ary modulation, for instance, as shown in Fig. 4. Because the Euclidean distances from \( {\hat{X}}_{sd,k} \) to ϑ0 is less than that from \( {\hat{X}}_{rd,k} \) to ϑ3. Therefore, ϑ0 is selected to be the demodulated result (Fig. 3).

Fig. 3
figure 3

Euclidean distance comparison. Figure 3 illustrates the Euclidean distance of \( {\hat{X}}_{sd,k} \) and \( {\hat{X}}_{rd,k} \) to its corresponding nearest constellation point

2.2.3 Interference reconstructing eliminator

After MEDDC, the ICI and MAI are proposed to be reconstructed and then eliminated. The quasi-transmitted SFBC signals \( {\hat{\mathbf{X}}}_Q={\left[{\mathbf{X}}_Q^{sd},{\mathbf{X}}_Q^{rd}\right]}^T \) can be re-constructed with \( {\hat{\mathbf{X}}}_{MEDDC} \) through utilizing formula (1). Then, the ICI and MAI components in (8) can be calculated with \( {\hat{\mathbf{X}}}_Q \), the estimated ICI and CTF matrixes as:

$$ {\displaystyle \begin{array}{l}{\mathbf{Y}}_{- ICI,\alpha}\\ {}={\mathbf{Y}}_{\alpha }-{\left[\begin{array}{c}{\boldsymbol{\Pi}}_{\varepsilon_{sd}-{\varepsilon}_{\alpha }}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{sd}\right\}\\ {}{\boldsymbol{\Pi}}_{\varepsilon_{rd}-{\varepsilon}_{\alpha }}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{sd}\right\}\end{array}\right]}^T\cdot \left[\begin{array}{c}{\mathbf{X}}_Q^{sd}\\ {}{\mathbf{X}}_Q^{rd}\end{array}\right]\\ {}\approx {\boldsymbol{\Lambda}}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{sd}\right\}{\mathbf{X}}_{sd}+{\boldsymbol{\Lambda}}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\mathit{\operatorname{diag}}\left\{{\mathbf{H}}_{rd}\right\}{\mathbf{X}}_{rd}+{\mathbf{W}}_{\alpha}\end{array}} $$
(11)

Finally, the transmitted signal can be decoded again through re-employing formula (9) as:

$$ {\displaystyle \begin{array}{l}{\hat{X}}_k=\frac{Y_{- ICI,k}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha}}^{\ast }+{Y}_{- ICI,k+1}^{\ast }{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}}{\left({\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right|}^2\right)}\\ {}{\hat{X}}_{k+1}=\frac{Y_{- ICI,k}{\hat{H}}_{rd,k}^{\ast }{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}^{\ast }-{Y}_{- ICI,k+1}^{\ast }{\hat{H}}_{sd,k}{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}}{\left({\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd}-{\varepsilon}_{\alpha },0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{\alpha },0}\right|}^2\right)}\end{array}} $$
(12)

2.3 Proposed MCFO compensation algorithm with iterative MEDDC

The proposed algorithm in this paper can be iteratively utilized to further increase the BER performance. Figure 4 gives the illustration of proposed algorithm with two iterations, in which the ICI eliminating and modified SFBC decoder would be independently implemented after quasi-transmitted SFBC signals re-constructing. At last, the MEDDC is proposed to be utilized again for decreasing the BER of the systems.

Fig. 4
figure 4

Proposed receiver architecture in SFBC cooperative HAPS systems with multiple CFO. Figure 4 shows the coordination for the receiver of cooperative HAPS systems when adopting SFBC

3 Results and discussion

3.1 BER analysis results

3.1.1 BER derivation of cooperative communication systems

It is assumed that each sub-carrier is modulated by M-ary phase shift keying (PSK) with Gray bit mapping. The received signals, which are interfered by MCFO, can be rewritten the Eq. (3) in element expression as:

$$ {\displaystyle \begin{array}{l}{Y}_{d,k}\\ {}=\left({X}_{sd,k}{H}_{sd,k}{\Lambda}_{\varepsilon_{sd},0}+{X}_{rd,k}{H}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right)\\ {}+\left(\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_{sd,l}{H}_{sd,l}{\Lambda}_{\varepsilon_{sd},l-k}+\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_{rd,l}{H}_{rd,l}{\Lambda}_{\varepsilon_{rd},l-k}\right)+{W}_{d,k}\end{array}} $$
(13)

Take \( {\hat{X}}_{sd,k} \), for example, its decoded result can be depicted as:

$$ {\displaystyle \begin{array}{l}{\hat{X}}_{\alpha, k}\\ {}=\frac{Y_{d,k}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd},0}^{\ast }+{Y}_{d,k+1}^{\ast }{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}}{{\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd},0}\right|}^2}\\ {}={X}_{sd,k}+\frac{{W^{\ast}}_{d,k+1}{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}+{W}_{d,k}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd},0}^{\ast }}{{\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd},0}\right|}^2}\\ {}+\frac{\left(\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_{sd,l}\left({H}_{sd,l}{\Lambda}_{\begin{array}{l}{\varepsilon}_{sd}\\ {}l-k\end{array}}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd},0}^{\ast }+{H^{\ast}}_{sd,l}{\Lambda^{\ast}}_{\begin{array}{l}{\varepsilon}_{sd}\\ {}l+1-k\end{array}}{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right)\right)}{{\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd},0}\right|}^2}\\ {}+\frac{\left(\sum \limits_{\begin{array}{l}l=0\\ {}l\ne k\end{array}}^{N-1}{X}_{rd,l}\left({H}_{rd,l}{\Lambda}_{\begin{array}{l}{\varepsilon}_{rd}\\ {}l-k\end{array}}{\hat{H}}_{sd,k}^{\ast }{\Lambda}_{\varepsilon_{sd},0}^{\ast }-{H^{\ast}}_{rd,l}{\Lambda^{\ast}}_{\begin{array}{l}{\varepsilon}_{rd}\\ {}l+1-k\end{array}}{\hat{H}}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right)\right)}{{\left|{\hat{H}}_{sd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{\hat{H}}_{rd,k}\right|}^2\cdot {\left|{\Lambda}_{\varepsilon_{rd},0}\right|}^2}\end{array}} $$

Then, the instantaneous signal to interference plus noise ratio (SINR) of the k ‐ th sub-carrier can be written as:

$$ {SINR}_k=\frac{\sigma_x^2\left({\left|{H}_{sd,k}{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{H}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right|}^2\right)}{\xi (k)+{\sigma}_W^2} $$
(14)

where ξ(k) denotes the ICI/MAI power components. Because the CTF on every sub-carriers are assumed to be independent, it can be concluded that ξ(k) is independent with \( {\left|{H}_{sd,k}{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{H}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right|}^2 \). Furthermore, it is easy to know that ξ(k) is nonnegative. Average power allocation is assumed so that \( {\sigma}_x^2={\sigma}_s^2/M \) with M transmitter nodes. Therefore, according to [20], the instantaneous BER of the k ‐ th sub-carrier can be approximately written as

$$ {\displaystyle \begin{array}{l}{P}_{con}(k)\\ {}\simeq \frac{2}{\log_2M}Q\left(\sin \frac{\pi }{M}\sqrt{2\cdot {SINR}_k}\right)\\ {}=\frac{2}{\log_2M}Q\left(\sin \frac{\pi }{M}\sqrt{\frac{2{\sigma}_x^2\left({\left|{H}_{sd,k}{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{H}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right|}^2\right)}{\xi (k)+{\sigma}_W^2}}\right)\end{array}} $$
(15)

In consequence, the average BER for the k ‐ th sub-carrier can be expressed:

$$ {P}_b\left(\xi (k),\gamma \right)={\int}_0^{\infty }p\left({z}_k\right){P}_{con}(k){dz}_k $$
(16)

where \( {z}_k={\left|{H}_{sd,k}{\Lambda}_{\varepsilon_{sd},0}\right|}^2+{\left|{H}_{rd,k}{\Lambda}_{\varepsilon_{rd},0}\right|}^2 \), p(zk) denotes the probability density function (PDF) of zk. Pb(ξ(k), γ) can be obtained as formula (17)

$$ {P}_{b, proposed}\left(\xi (k),\gamma \right) $$
(17)

where ς = sin2(π/M), \( \gamma ={\sigma}_x^2/{\sigma}_W^2 \), \( \beta ={\sigma}_x^2/\left({\sigma}_W^2+\xi (k)\right) \), and \( \vartheta =1/4{\beta \varsigma \sigma}_1^2 \). The proof is as Appendix 1.

Finally, we average Pb(ξ(k), γ) over all sub-carriers with index k as follows to get the BER:

$$ {P}_{b\_ all}\left(\gamma \right)=\frac{1}{N}\sum \limits_{k=0}^{N-1}{P}_b\left(\xi (k),\gamma \right) $$
(18)

3.1.2 BER analysis

Theorem 1: The function Pb(ξ(k), γ) in formula (17) is a monotonically increasing function with respect to ξ(k).

Proof See Appendix 2.

It can be seen from Theorem 1 and in equation ξ(k) ≥ 0 that when ξ(k) = 0, the system can achieve the optimal BER performance with specified signal to noise ratio (SNR) γ. Therefore, the lower bound to the BER performance of the SFBC collaborative communication systems with errors caused by Gaussian noise and multiple CFO can be depicted as formula (19):

$$ {P}_{b\_ all}^{LB}=\frac{1}{N}\sum \limits_{k=0}^{N-1}{P}_b\left(0,\gamma \right) $$
(19)

where ς = sin2(π/M), \( \gamma ={\sigma}_x^2/{\sigma}_W^2 \), \( {\sigma}_1^2={\left|{\Lambda}_{\varepsilon_{sd},0}\right|}^2{\sigma}_H^2 \), and \( {\sigma}_2^2={\left|{\Lambda}_{\varepsilon_{rd},0}\right|}^2{\sigma}_H^2 \).

Theorem 2: The function Pb(ξ(k), γ) in formula (17) is a monotonically decreasing function with respect to γ.

Proof See Appendix 3.

Through employing Theorem 2, it can be concluded that the BER performance of cooperative systems goes better along with the increase of SNR.

3.1.3 BER analysis of proposed MCFO compensation algorithm

When the proposed MCFO compensation algorithm is employed, the received signals are mixed with the one link’s CFO before decoding. Therefore, take being mixed with the source-destination link for instance, the MCFO of the two links would be adjusted to be 0 and εrd − εsd. Thus, \( {\sigma}_1^2 \) and \( {\sigma}_2^2 \) in formula (17) would be changed to \( {\sigma}_H^2 \) and \( {\sigma}_p^2={\left|{\Lambda}_{\varepsilon_{rd}-{\varepsilon}_{sd},0}\right|}^2{\sigma}_H^2 \). Consequently, formula (17) can be rewritten as formula (20):

$$ {P}_b\left(\xi (k),\gamma \right) $$
(20)

where ς = sin2(π/M), \( \gamma ={\sigma}_x^2/{\sigma}_W^2 \). As shown in the above formula, the BER performance of the algorithm is not depending on the value of εsd and εrd but the difference of them. Therefore, it can be concluded that the proposed equalizer not only can compensate the fractional parts of the MCFO but also can compensate the integral parts.

$$ {P}_b\left(\xi (k),\gamma \right)=\left\{\begin{array}{cc}\frac{1}{\log_2M}\cdot \left(1-\frac{\left(4{\varsigma \sigma}_1^2+3\left(1/\gamma +\xi (k)/{\sigma}_x^2\right)\right){\left(4{\varsigma \sigma}_1^2\right)}^{1/2}}{{\left(4{\varsigma \sigma}_1^2+2\left(1/\gamma +\xi (k)/{\sigma}_x^2\right)\right)}^{3/2}}\right)& \left|{\Lambda}_{\varepsilon_{sd},0}\right|=\left|{\Lambda}_{\varepsilon_{rd},0}\right|\\ {}\frac{1}{\log_2M}\left[1+\frac{\sqrt{2\varsigma }}{\left({\sigma}_2^2-{\sigma}_1^2\right)}\left[\sum \limits_{i=1}^2{\left(-1\right)}^{i-1}{\sigma}_i^2\sqrt{\sigma_i^2/\left(2{\varsigma \sigma}_i^2+\frac{\xi (k)}{\sigma_x^2}+\frac{1}{\gamma}\right)}\right]\right]& \left|{\Lambda}_{\varepsilon_{sd},0}\right|\ne \left|{\Lambda}_{\varepsilon_{rd},0}\right|\end{array}\right. $$
(21)
$$ {P}_{b\_ all}^{LB}=\frac{1}{N}\sum \limits_{k=0}^{N-1}{P}_b\left(0,\gamma \right)=\left\{\begin{array}{cc}\frac{1}{\log_2M}\cdot \left(1-\frac{\left(4{\varsigma \sigma}_1^2+3/\gamma \right){\left(4{\varsigma \sigma}_1^2\right)}^{1/2}}{{\left(4{\varsigma \sigma}_1^2+2/\gamma \right)}^{3/2}}\right)& \left|{\Lambda}_{\varepsilon_{sd},0}\right|=\left|{\Lambda}_{\varepsilon_{rd},0}\right|\\ {}\frac{1}{\log_2M}\left[1+\frac{\sqrt{2\varsigma }}{\left({\sigma}_2^2-{\sigma}_1^2\right)}\left[\sum \limits_{i=1}^2{\left(-1\right)}^{i-1}{\sigma}_i^2\sqrt{\sigma_i^2/\left(2{\varsigma \sigma}_i^2+\frac{1}{\gamma}\right)}\right]\right]& \left|{\Lambda}_{\varepsilon_{sd},0}\right|\ne \left|{\Lambda}_{\varepsilon_{rd},0}\right|\end{array}\right. $$
(22)
$$ {P}_{b, proposed}\left(\xi (k),\gamma \right)=\left\{\begin{array}{cc}\frac{1}{\log_2M}\cdot \left(1-\frac{\left(4{\varsigma \sigma}_H^2+3\left(1/\gamma +\xi (k)/{\sigma}_x^2\right)\right){\left(4{\varsigma \sigma}_H^2\right)}^{1/2}}{{\left(4{\varsigma \sigma}_H^2+2\left(1/\gamma +\xi (k)/{\sigma}_x^2\right)\right)}^{3/2}}\right)& {\Lambda}_{\varepsilon_{sd},0}={\Lambda}_{\varepsilon_{rd},0}\\ {}\frac{2}{\log_2M}\left[\frac{1}{2}+\frac{\sqrt{2\varsigma }}{2\left({\sigma}_p^2-{\sigma}_H^2\right)}\left[{\sigma}_H^2\sqrt{\sigma_H^2/\left(2{\varsigma \sigma}_H^2+\frac{\xi (k)}{\sigma_x^2}+\frac{1}{\gamma}\right)}-{\sigma}_p^2\sqrt{\sigma_p^2/\left(2{\varsigma \sigma}_p^2+\frac{\xi (k)}{\sigma_x^2}+\frac{1}{\gamma}\right)}\right]\right]& {\Lambda}_{\varepsilon_{sd},0}\ne {\Lambda}_{\varepsilon_{rd},0}\end{array}\right. $$
(23)

3.2 Simulation results

For simulating the wireless channel and mobile environment, the channel B of M.1225 Pedestrian (PB), in which the terminal velocity is 30 km/h, is utilized. Both fixed and random MCFO are taken into consideration in the simulation. The utilization of fixed MCFO is aimed at verifying the correctness of theoretical analysis, and the random MCFO is for more realistic scenario.

The comparison between the theoretical worst BER performance and that from simulation is depicted in Fig. 5, which shows that the BER curve obtained from the theoretical analysis can gracefully match those in the simulation. We can also see that the BER lower bound degrades along with the increasing of εα, (α = sd, rd). The degradation is with the reason that the SINR shown in (14) is reduced due to power leakage caused by MCFO.

Fig. 5
figure 5

Comparison of theoretical BER lower bound and the BER performance obtained from the simulation. Figure 5 shows the comparison between the theoretical worst BER performance and that from simulation

Figure 6 shows the BER of systems without SFBC versus SNR for the proposed MCFO compensation algorithm, where the MCFO are assumed to be random. The results of proposed algorithm with 1 MEDDC and proposed algorithm with 2 MEDDC are presented. The result shows that the proposed algorithm can eliminate the MCFO effectively even when the MCFO is distributed in a relatively large range. It can also be found that when the MCFO range increases, the performance of proposed algorithm with 2 MEDDC is better than that with 1 MEDDC. Therefore, if the MCFO ranges continuously increase, the algorithm is proposed to be employed with more MEDDC iterations (Fig. 7).

Fig. 6
figure 6

BER performance of systems without code versus SNR with |εrd − εsd|max = 0.2. Figure 6 shows the BER performance of systems without code versus SNR for the proposed MCFO compensation algorithm, and the simulation setup is no frequency offset no compensation. |εrd − εsd|max = 0.2, and PB channel was used

Fig. 7
figure 7

BER performance of systems without coding versus SNR for the proposed MCFO compensation algorithm. Figure 7 depicts the BER performance of systems without coding versus SNR for the proposed MCFO compensation algorithm, and the simulation setup is no frequency offset no compensation. εrd, εsd ∈ [1.9, 2.1] and εrd, εsd ∈ [1.8, 2.2], PB channel was used.

When the SNR is fixed at 10 dB, 15 dB, and 20 dB respectively, the relationship between the normalized MCFO difference range and the BER obtained by using the proposed MCFO equalizer is depicted in Fig. 8. It can be observed that the proposed algorithm can reduce the error floor. From the illustration, it is concluded that through using the proposed equalizer, the ICI and ISI introduced by MCFO can be almost eliminated.

Fig. 8
figure 8

Effect of |εsd − εrd|max on the BER performance. Figure 8 shows the effect of |εsd − εrd|max on the BER performance of proposed algorithm in collaborative communication systems when PB channel was used

In this paper, we propose a new frequency offset compensation algorithm for HAPS IoT systems employing space-frequency block code orthogonal frequency division multiplexing (SFBC-OFDM), which can provide nearly the ideal performance under the condition that the multiple carrier frequency offsets and channel transfer functions of two links can be ideally estimated by using the properties transmitted known pilots. However, all proposed methods and algorithms are based on the usage of HAPS IoT systems. And much work remains to be done on the usage of HAPS IoT systems.

4 Conclusion

In the cooperative HAPS IoT systems, MCFO caused by the multiple carriers may introduce ICI and MAI, which may be impediment in the usage of the systems. To solve the problem caused by ICI and MAI, a MCFO compensation algorithm is proposed in this paper. The proposed algorithm eliminates the interference through utilizing modified SFBC decoder and MEDDC. Furthermore, the BER performance of cooperative communication systems utilizing MCFO is analyzed. Simulation is also carried out to verify the performance of the algorithm. The BER performance loss degraded to around 1 dB when |εrd − εsd| ≤ 0.5 in multi-path Rayleigh channel. Therefore, it is concluded that the proposed compensation algorithm can effectively solve the problem of frequency offset in cooperative HAPS systems. Thus, the coordination between HAPS stations can provide better communication service in the special scenarios described in the introduction section through coordination by employing the algorithm.