Receiving Pseudorandom PSK

4 downloads 0 Views 530KB Size Report
Sep 1, 2015 - This includes correlation with the carrier frequency which can be ... Correlation methods with carrier frequency f with T samples respectively p.
Receiving Pseudorandom PSK Thomas Janson and Christian Schindelhauer

arXiv:1509.00335v1 [cs.IT] 1 Sep 2015

University of Freiburg, Germany {janson,schindel}@informatik.uni-freiburg.de

Abstract. Pseudorandom PSK [1] enables parallel communication on the same carrier frequency and at the same time. We propose different signal processing methods to receive data modulated with pseudorandom PSK. This includes correlation with the carrier frequency which can be applied to signals in the kHz to MHz range and signal processing in the intermediate frequency where the correlation with the carrier frequency is performed analogous in the RF front end. We analyze the computation complexity for signal processing with the parameters of symbol length T and number of repetitions of each symbol K with pseudorandom PSK and show that the number of operations for each sampling point is Θ (K). Keywords: Ad-hoc network, PSK, signal-to-noise ratio, synchronization

1

Introduction

The proposed scheme for radio transmission of [1] repeats each symbol K times with pseudo random phase shifts at each repetition. If the receiver uses the same sequence of pseudo random phase shifts for correlation, it can demodulate the data from the signal. On the other hand, if a receiver uses another sequence of pseudo random phase shifts which is not applied by the sender, it receives noise with a smaller amplitude. This reduces the correlation of parallel and interfering transmissions on the same carrier frequency in expectation and makes possible to have parallel transmission at the same time, on the same carrier frequency, and possibly in the same spatial area. This is particularly interesting for ad hoc networks and distributed medium access control (MAC). According to [1], we can correlate the received signal y for known synchronization with a carrier signal with frequency f with ρ (τ ) =

T −1 X t=0

e−j2πf ·t/R ·

K−1 X k=0

y (k · T + tk (t) + t + τ )

(1)

where φk are pseudorandom phase shifts with 0 ≤ k < K, sample rate R, T samples per symbol, and ( φk ·R k ·R if t ≤ T − φ2πf tk (t) = 2πf φk ·R . (2) −T + 2πf otherwise

2

Thomas Janson, Christian Schindelhauer

In a real channel, we also encounter effects like attenuation due to path path and multi-path propagation which is not subject of the analysis in this paper. Here, we show different signal processing methods how we can also efficiently synchronize to the transmitter signal besides demodulation of data after synchronization. This makes necessary correlate the received signal with the carrier (which is a sinusoidal carrier with pseudorandom phase shifts) at every sample position to determine the point of synchronization, i.e. start and end of a symbol. 1.1

Contribution

We propose correlation methods for the K-repetition scheme [1] necessary for synchronization and demodulating data. We improve the number computations of a correlation at a sample time from Θ (K · T ) to Θ (T ), where K is the number of repetitions of each symbol and T is the number of samples per symbol. Table 1.1 shows the computational complexity of the proposed methods. We sampling freq. method additions multiplications phase error carrier ρ Θ (K · T ) Θ (T ) 0 ρma2 Θ (K) Θ (K) 0 carrier 1 carrier ρma3 Θ (K) Θ (1) < p−1 3K − 1 K 0 intermediate ρma5 Table 1. Correlation methods with carrier frequency f with T samples respectively p periods per symbol and K repetitions of each symbol with pseudo-random phase shifts

present methods for signal processing at the carrier frequency or at a smaller intermediate frequency, where correlation with the carrier frequency is done analogously in the radio fronted. For sampling at the carrier frequency we assume oversampling with T samples per symbol and consider the correlation at each sample point. The phase error relates only to computational errors of the signal processing method and not e.g. errors due to sampling.

2

Correlation with Carrier Signal

We show algorithms for signal processing with correlation of the received signal y (τ ) at sampling point τ and a reference signal containing a sinusoidal carrier with frequency f . We suppose oversampling with a rate R with T samples per symbol. In the first algorithm ρma1 (τ ) for correlation at sample point τ , we set K = 1 and get PSK without repetition of the symbols. We assume that at time τ = 0, the phase angle of the reference signal for correlation is zero with e−j2πf ·0 = 0. We intend to compute the correlation of a window of T samples for each sample point, i.e. for the windows with sample ranges [0, T − 1] , [1, T ] , . . . , [τ, τ + T − 1]. If we compare the correlation sum at two subsequent points τ −1 and τ with windows [τ − T, τ − 1] and [τ − T + 1, τ ], the calculation only differs by the sample

Receiving Pseudorandom PSK

3

points τ −T and τ and the remaining T −1 summands are the same. Comparable to a moving average (ma), we can compute the correlation for the received signal y (τ ) at sample point τ from the correlation result ρma1 (τ − 1) at the preceding sample point with ρma1 (τ ) = ρma1 (τ − 1) + y (τ ) · e−j2πf ·τ /R − y (τ − T ) · e−j2πf ·(τ −T )/R . (3) This equation is recursive and we can initialize ρma1 (0) := 0 and y (τ ) = 0 for τ < 0. If we buffer the intermediate results of x (τ )·e−j2πf ·τ /R in a ring buffer with T elements (which is initialized with zeroes), we can save the computational costs for the third term x (τ ) · e−j2πf ·(τ −T )/R . Then, we only need one multiplication and two additions of complex values for each sample point. Since we correlate the received signal y (τ ) with a periodically carrier ej2πf τ , the complex values can be pre-calculated and kept in a lookup table for given discrete sampling points. Lemma 1. After T sequential runs of ρma1 (τ ) at τ = 0, . . . , T −1, the operation ρma1 outputs the same result as ρ (τ ) of Equation (1) for K = 1. Proof: For K = 1, Equation (1) simplifies to ρ (τ ) =

T −1 X t=0

y (τ + t − T + 1) · e−j2πf ·t/R .

(4)

The original equation (1) returns at t = 0 which requires the reception of the samples at τ = [0, T ) for simplification. Without loss of generality we have added here the term − (T − 1) and get the first correlation output at τ = T − 1. For the first T runs, the term y (τ − T ) of Equation (3) is zero. With ρma1 (0) := 0, we get after T iterations a sum of y (τ ) · e−j2πf ·τ /R with τ = [0, T ) which is ρma1 (T − 1) =

T −1 X t=0

y (t) · e−j2πf ·t/R = ρ (T − 1) .

The proof for T ≥ 0 follows by induction. ρma1 (τ + 1) = ρma1 (τ ) +y (τ + 1) · e−j2πf ·(τ +1)/R − y ((τ + 1) − T ) · e−j2πf ·((τ +1)−T )/R ! T −1 X −j2πf ·t/R = y (τ + t − T + 1) · e t=0

+y (τ + 1) · e−j2πf ·(τ +1)/R − y ((τ + 1) − T ) · e−j2πf ·((τ +1)−T )/R

=

T X t=1

y (τ + t − T + 1) · e−j2πf ·t/R

= ρma1 (τ + 1) 

4

Thomas Janson, Christian Schindelhauer

For a repetition of symbols with K > 1, we can use a moving average as well with K−1 X ρma2 (τ ) = ρma1 (τ − T · k) · ejφk . (5) k=0

For each summand in Equation (5) we need two additions and two multiplications of complex values. The overall computational complexity of φam2 (τ ) is Θ (K). Lemma 2. After T · K sequential runs of ρma2 (τ ) at τ = 0, . . . , T − 1, the operation ρma2 outputs the same result as ρ (τ ) of Equation (1) for K ≥ 1. Proof: We have already proven the statement for K = 1 in the proof of Lemma 1. To proof the case K > 1 we insert Equation (4) into (5) and get ! K−1 −1 X TX −j2πf ·t/R ρma2 (τ ) = y (τ − T · k + t − T + 1) · e · ejφk . k=0

t=0

We state in [1] that the delay tk (t) replaces the phase shift with operation ejφk and hence ρma2 (τ ) = ρ (τ ). Please note, that we assumed for the computation of ρ (τ ) to have the samples for [τ, τ + K · T ) in advance and in ρma2 we compute the result from the preceding samples (τ − K · T, τ ] which taken into account in the last transformation of the equation. Consequently, we need T · K iterations before ρma2 (τ ) is initialized and outputs the correlation of a window of length T · K.  In the next calculation procedure φma3 (τ ), we reduce the number of multiplications from 2 · K to one with the sacrifice of a precision loss. ρma3 (τ ) = ρma3 (τ − 1) +

K−1 X

!

y (τ + t0k )

k=0



K−1 X k=0

· e−j2πf ·τ /R !

y (τ − T +

with pre-calculated values t0k :=

t0k )

φk · R . 2πf

· e−j2πf ·(τ −T )/R .

(6)

(7)

We assume that we compute the correlation for each sampling point τ = 0, 1, . . . sequentially. The third summand of Equation (6) has already been computed for the correlation at (T − 1) sample points before and we can buffer these intermediate results in a ring buffer with T elements to reduce the number of computational steps. Then we only have to compute the sum of the second summand at sample points τ which are K additions, perform only one multiplication with e−j2πf ·τ /R for correlation (instead of 2 · K multiplications before),

Receiving Pseudorandom PSK

5

and compute two additional sums of complex values for the overall sum of the three summands of Equation (6). We include the phase shifts φk of the repeated symbols with the time shift t0k in Equation (7). The difference to Equation (2) is that we do not perform the modulo-operation and we will make a computational error at the end of each symbol where the the sample point τ + t0k is in the following sample (instead of at the beginning of the correct symbol with the modulo operation). Let us estimate this error and assume that each symbol is send for p periods of the carrier frequency, i.e. for time p/f for carrier frequency f . In worst case, φ1 = 0 and φk0 = 2π for 2 ≤ k 0 ≤ K. Then we read almost all information of the last period from the subsequent next symbol. We can represent the correlation of p periods as superposition of the correlation of p individual correlations, where we know that the last is erroneous. Figure 1 shows an example of a correlation < error margin

=

Fig. 1. Error margin of correlation method ρma3 in Equation (6) for P = 4 periods

with p = 4 periods of the carrier where each vector illustrates the correlation of one period and the last correlation with the red-colored vector is erroneous. The error in the amplitude is at most 1/(p − 2) if the erroneous correlation  of the 

1 1 ≤ p−1 last period has a phase shift of π. The phase error is at most sin p−1 for p ≥ 2. With the sacrifice of the computation error we can first compute the sum of K samples and then perform the multiplication with the complex value to compute the correlation. Compared to Equation (5), this reduces the number of multiplications of a correlation from 2 · K to 1.

3

Processing at an Intermediate Frequency

For carrier frequencies in the GHz range, oversampling and correlation with a rate larger than the carrier frequency is mostly too fast for current hardware and correlation is implemented in hardware. The output of the radio front end are complex values in an intermediate frequency which is slower than the carrier frequency. Let us assume that we have G complex-valued samples yc (τ ) in the intermediate frequency. The discrete sample points τ are in this case in the intermediate frequency.

6

Thomas Janson, Christian Schindelhauer

Just like in Equation (3) for a correlation with the carrier, we can use once again a moving average at the intermediate frequency for K = 1 with ρma4 (τ ) = ρma4 (τ − 1) + yc (τ ) − yc (τ − G) .

(8)

Since the correlation is performed in analog hardware in the radio front end, this only needs two (complex) additions. For K > 1 we can use K moving averages with

ρma5 (τ ) =

K−1 X k=0

ρma4 (τ − k · G) · ejφk .

(9)

A correlation with ρma5 (τ ) needs 3 · K − 1 complex additions and K complex multiplications for the phase shifts with φk .

yc (⌧

K · G)

yc (⌧

2G)

yc (⌧

...

G)

yc (⌧ )

...

...

bu↵er of received signal + ⇢ma4,K (⌧ ) ⇢ma4,K (⌧ ej bu↵ered intermediate results

...

1) 1

⇥ +

+ ⇢ma4,1 (⌧ )

+ ⇢ma4,2 (⌧ )

⇢ma4,2 (⌧ ej

⇢ma4,1 (⌧

1) 1

⇥ +

ej

1) 1

⇥ + ⇢ma5 (⌧ )

Fig. 2. Block diagram for signal processing of method ρma5 (τ ) at sample point τ for K repetitions of each symbol with pseudorandom phase shifts φk with 0 ≤ k < K

The block diagram in Figure 2 shows the computation of ρma5 (τ ). The computations in the grey boxes are independent from each other and can be computed in parallel. The total sum (at the bottom of the chart) depends on the intermediate results (in the grey boxes) and it is also possible to add these K values with a tree-like concatenation with only log (K) instead of K computational steps shown in the chart. Then the overall number of computational steps is only Θ (log K) if we can perform K operations in parallel.

Receiving Pseudorandom PSK

4

7

Conclusions

We show that computational costs for synchronizing and demodulating data in the K-repetition scheme are only increased by factor Θ (K) compared to signal processing of a modulation without repeating each symbol K times. This indicates the practical applicability of the K-repetition scheme. We show methods for correlation with the carrier (a sinusoidal signal with carrier frequency f and K pseudorandom phase shifts). These are mostly applicable for carrier frequencies in the kHz to MHz range where the clock speed of a processor is high enough. We also show methods for demodulating the K-repetition scheme at an intermediate frequency where correlation with the carrier is done at the radio front. This is the typical application for carrier frequencies in the GHz range and needs Θ (K) operations per sampling point. If we can run K operations in parallel, we also show that the number of computational steps is only Θ (log K).

References 1. T. Janson, A. Ens, and C. Schindelhauer. Turning Interferences into Noise in Ad Hoc Networks. Telecommunication Systems, accepted in June 2015.