Full text
GALILEO SIGNAL GENERATION -SIMULATION ANALYSIS- By Roger Canalda Pedrós Student ID: 0833118 Supervisor: Dr. Máirtín O'Droma Department of Computer and Electronic Engineering University of Limerick April 2009
GALILEO SIGNAL GENERATION -SIMULATION ANALYSIS-
Abstract This work presents the navigation signals and their allocation in the radio frequency band used in the new European Global Navigation Satellite System (GNSS): Galileo. All signals are described mathematically and then simulated using Matlab language (in transmission). Results are shown thus proving the theory provided by the European Space Agency document: “Open Service Signal in Space Interface Control Document” (OS SIS ICD). Before introducing the navigation signals, a deep study and analysis on the modulations and multiplexing schemes (Binary Phase Shift Keying (BPSK), Binary Offset Carrier (BOC), Alternate Binary Offset Carrier (AltBOC), Carrier Adaptative Sub-Carrier Modulation (CASM) and Double Binary Offset Carrier (DBOC) is carried out, also giving detailed results and simulations in Matlab proving the theory again. Moreover, the acquirement of both the autocorrelation function (ACF) and the power spectral density (PSD) of all navigation signals (in Matlab) and all modulations (in theory) is emphasised in the study. Ranging codes are also studied in this work, however from a more practical than scientific point of view, showing how they have been implemented and what type of codes they are (memory codes, based register codes, gold codes). Finally, a paper is provided reviewing the innovative aspects of the navigation signals and why these have been selected for this new GNSS.
Table of Contents 1. Document Overview...........................................................................................................6 1.2 Introduction to Galileo Satellite System.......................................................................7 2. Modulations in the Galileo Satellite System.....................................................................11 2.1 BPSK modulation.......................................................................................................11 2.1.2 Demonstrations..................................................................................................14 2.2 BOC modulation........................................................................................................16 2.2.1 Spectral Analysis of BOC...................................................................................17 2.2.2 Alternate BOC.....................................................................................................33 2.2.3 Autocorrelation function of BOC.........................................................................39 2.2.4 Coherent Adaptative Sub-carrier Modulation (CASM).......................................46 2.2.5 Double BOC.......................................................................................................52 3. Galileo Spreading Codes.................................................................................................57 3.1 Primary Codes...........................................................................................................57 3.2 Secondary Codes......................................................................................................58 3.3 Code assignation.......................................................................................................59 3.3.1 E5 ranging codes...............................................................................................59 3.3.2 E6 ranging codes...............................................................................................60 3.3.3 L1-E1 ranging codes..........................................................................................60 4. Signal Generation............................................................................................................61 4.1 E5 Signal....................................................................................................................61 4.2 E6 Signal....................................................................................................................79 4.3 E1 Signal....................................................................................................................86 4.4 L1 Signal....................................................................................................................88 5. Matlab aspects.................................................................................................................95 6. Future Lines...................................................................................................................100 Key of Terms......................................................................................................................102 Acknowledgements............................................................................................................103 Appendix A.........................................................................................................................104 GALILEO: Introducing innovative modulation techniques.............................................104 References:...................................................................................................................113 Appendix B.........................................................................................................................116 Matlab scripts.................................................................................................................116 1. Navigation Signals.....................................................................................................116 1.1 Secondary functions for navigation signals.........................................................143 2. Ranging Codes..........................................................................................................150 2.1 Secondary functions for ranging codes...............................................................153 3. ACF and PSD of BOC...............................................................................................166
1. Document Overview 1. Document Overview The present work is organised as follows: •Point 1 is this introduction which provides the scope of the document and an overview of the Galileo system. •Point 2 is an analysis of the different modulations that are used in Galileo: Binary Phase Shift Keying (BPSK), Binary Offset Carrier (BOC) and Coherent Adaptative Sub-carrier Modulation (CASM). The first two of them are studied and developed with their own autocorrelation functions (ACF) and power spectral density (PSD). In particular, it is studied the case of a BOCsin (BOC with a sine sub-carrier) and its parity depending on the parameter 'n' : number of half-periods within a symbol (chip). Moreover, it is studied the shape of a BOC signal and the reasons for why the spectrum is like it is. It provides plots related with PSD and ACF wherein ideal behaviour can be appreciated. It also gives a detailed analysis about the theoretical Alternate BOC (AltBOC) modulation, introducing the modified AltBOC used in Galileo's E5 signal. Finally, CASM modulation is studied to see how the constant envelope issue is achieved in all three bands (E5, E6 and E1-L1). At the end of this section, Double BOC (DBOC) modulation is also presented with the aim of easing the nomenclature of BOC signals and unify them, also giving its reasons to be regarded as a possible modulation for Galileo. •Point 3 has to do with the ranging codes. It explains how the Code Division Multiple Access (CDMA) codification is done. This is one of the parts that more time has been invested in terms of Matlab. Codification having to do with signal E5 is the most difficult to achieve since it was via Linear Feedback Shift Register (LFSR) and the behaviour of this device had to be programmed. Regarding other signals, their codification has been assumed, in part, due to a lack of information in [1]. Afterwards, we can find the assignation for each signal and how the ranging codes have been programmed in appendix A. •Point 4 is the generation of the three navigation signals E5, E6 and E1-L1 with Matlab. For each signal, both the autocorrelation and the spectrum are represented. Moreover, it is explained what multiplexing techniques have been used, making special emphasis in signal E5, since it is the most complex to implement (and understand) due to its multiplexing technique: AltBOC. This signal is decomposed in its real and imaginary part and plotted to understand why the resulting spectrum has the shape it has. Regarding the other signals, 6
1. Document Overview their implementation can be assumed from point 2, since the explanation of the spectrum of a BOC is shown in there. It also analyses the constant envelope behaviour of all of the signals by giving a plot of their constellations and figures like cumulative distribution function (CDF) and complementary cumulative distribution function (CCDF). Finally, it is added a plot of the Galileo band containing all signals studied in this document. •Point 5 (written in a personal style) focuses on the Matlab issues arisen while doing the simulations and providing all the plots in this project. It explains the procedures that have been followed to implement the navigation signals, ranging codes and other simulations needed for the understanding of the different parts. Add to this, it also reports the problems that have appeared during the programming and the solutions taken. •Point 6 tells about what points of this project could be investigated further to see if there is a better, new or different approach to do the same, meeting similar or better engineering requirements. It also provides not only different points of view of what could be studied regarding GNSS and compare it to GALIELO, but also possible extensions of the current work. 1.2 Introduction to Galileo Satellite System Galileo is the European global navigation satellite system providing a highly accurate, guaranteed and global positioning service under civilian control. It is inter-operable with Global Positioning System (GPS) and GLONASS, the two other current global satellite navigation systems. The fully deployed Galileo system consist of 30 satellites (27 operational and 3 spares), positioned in three circular Medium Earth Orbit planes at a nominal average orbit semi-major axis of 29601.297 Km, and at an inclination of the orbital planes of 56 degrees with reference to the equatorial plane [1]. The satellites are controlled and commanded from the Galileo Ground Control Segment (GCS) via its S-Band ground stations. The Galileo navigation service is achieved via transmission from each satellite of signals in L-Band comprising ranging codes and timing information, with the timing information included as part of a more general navigation message containing additional information relating to the satellite itself, the overall constellation and the integrity of the service. The Galileo Ground Mission Segment (GMS) determines the navigation, timing and integrity data part of the navigation messages and transmits it to the Satellite via its C-Band ground stations. The satellite constellation will be controlled from the GCS facilities installed in the GCC, and supported 7
1. Document Overview by a worldwide network of Telemetry and Telecommand (TT&C) S-band stations [13]. The radio-frequency air interface between the space and user segments is composed of three independent CDMA signals, named E5, E6 and E1-L1, and they are permanently transmitted by all Galileo satellites. The E5 signal is further sub-divided into two signals denoted as E5a and E5b. Figure 1: Galileo and GPS band The Galileo system will provide a range of services to users. The following services will be provided worldwide and independently from other systems by Galileo: •the Open Service (OS) combines the open signals, free-of-charge to users, to provide position and timing performance competitive with other satellite systems. A single frequency OS will be provided by each of the three signals: E1, E5a and E5b. Dual frequency OS will be provided by the following dual-frequency combinations: E1(B&C)-E5a and E1(B&C)- E5b [5]; •the Safety-of-Life (SoL) Service improves on the OS by providing timely warnings to the user when it fails to meet certain margins of accuracy or continuity (integrity). It is envisaged that a service guarantee will be provided. The mono-frequency SoL will be provided by each of the two signals E1(B&C) and E5b. The dual-frequency SoL will be provided by the following dual-frequency signal combination: E1(B&C)-E5b [5]; 8
1. Document Overview •the Commercial Service (CS) provides access to two additional signals for faster data throughput and increased accuracy. The signals are encrypted. It is envisaged that a service guarantee will be provided. This service will be provided by the E6(B&C) signals plus the OS signals (E1(B&C), E5a and E5b). The E6(B&C) signal contains the value-added data and is combined with OS signals for improved performance [5]; •the Public Regulated Service (PRS) provides position and timing to governmentauthorised users requiring a high continuity of service with controlled access. The PRS will be provided by E1-A and E6-A signals. These will use encrypted PRS ranging codes, navigation data messages and sub-carriers improving signal processing performances [5]; •the Galileo support to the Search and Rescue (SAR) service is Europe’s contribution to the international COSPAS-SARSAT system. Galileo will play an important part in the MEO Search & Rescue system (MEOSAR). Galileo satellites will be able to pick up signals from emergency beacons carried by ships, planes and individuals, and ultimately relay them to national rescue centres. A rescue centre can thus know the precise location of an accident. At least one Galileo satellite will be in view of any point on Earth at all times, so real-time distress alerts will be possible. The SAR distress messages will be detected by the Galileo satellites in the 406-406.1 MHz and then broadcast to the dedicated receiving ground stations in the 1544-1545 MHz band, callel L6. The data will be embedded in the OS data of the signal transmitted in the E1 carrier frequency [5]; Each Galileo satellite will broadcast 10 different navigation signals, making it possible for Galileo to offer the open (OS), safety-of-life (SOL), commercial (CS) and public regulated (PRS) services. Galileo will have an integrity signal to ensure the quality of the signals received. Galileo signals will offer a guaranteed accuracy down to 1 metre, with value-added services achieving a real-time accuracy of 10 cm. The frequencies used by the satellites are within the 1.1-1.6 GHz band, a range of frequencies particularly well-suited to mobile navigation and communication services [12]. In figure 2 we can see the different signals used in Galileo. They are composed by both in-phase and quadrature components. The first band we find is the E5, and it is subdivided into two subbands called E5a and E5b. These signals are modulated and multiplexed by AltBOC(15,10) technique. 9
2. Modulations in the Galileo Satellite System Rbsbst ,t = 1 T∫ −T/2 T/2 ∣ Ac ∣ 2·∑ m=−∞ ∞ ∑ l=−∞ ∞ Rm· pt−mlT·pt−l T dt= letting t−l T = ; dt=d, = ∣ Ac ∣ 2 T∑ m=−∞ ∞ ∑ l=−∞ ∞ R m∫ −T/2−lT T/2−lT p−mT ·pd= = ∣ Ac ∣ 2 T∑ m=−∞ ∞ Rm∑ l=−∞ ∞ ∫ −T/2−lT T/2−lT ∫ −∞ ∞ p−mT ·pd= = ∣ Ac ∣ 2 T∑ m=−∞ ∞ Rm∫ −∞ ∞ p−mT ·pd= letting Rxx =∫ −∞ ∞ x xd = ∣ Ac ∣ 2 T∑ m=−∞ ∞ RmRp−mT =Rbsbs 2.2 BOC modulation The Binary Offset Carrier (BOC) was designed to modernize the military Global Positioning System (GPS) service because it was needed to add another signal within the radio frequency bands that were already being used. At a first attempt, BOC modulations were developed to provide spectral isolation from heritage signals modulating the same carrier frequency, it was quickly determined that it also had lots of advantages, such as their constant-modulus envelope and binary phase, fact that makes them straightforward to implement. Moreover, by moving signal power away from the band centre, they offer the potential for better code-tracking accuracy and multipath rejection. Since BOC modulations offer two independent design parameters, fs and fc, they provide freedom to concentrate signal power within specific parts of the allocated band to reduce interference with the reception of other signals. Furthermore, the redundancy in the upper and low sidebands of BOC modulations offers practical advantages in receiver processing for signal acquisition, code tracking, carrier tracking, and data demodulation. 16
2. Modulations in the Galileo Satellite System Nonetheless, there are also some inconveniences. For instance, if the sub-carrier frequency is much greater than the spreading code rate, the correlation function has many closely spaced peaks that can introduce anomalous effects in code tracking. Also, wide spacing of sub-carriers can limit the spectral coherence of the received signal as a result of the dispersive effect of hardware imperfections and other channel conditions, such as ionospheric distortion [4]. 2.2.1 Spectral Analysis of BOC The following development has been initiated from [4]. The expression of a baseband offset carrier signal is given by: st = e−j·∑ k=−∞ ∞ aknTs t−knTs−t0cTs t−t0 (1) where: • ak is the data modulated spreading code. Unit magnitude with phase values chosen randomly from an alphabet. • cTs is the sub-carrier. Periodic function with period 2Ts. • μnTs spreading symbol. • n is the number of half periods of the sub-carrier during which the spreading code value remains the same. • θ and t0 reflect arbitrary offsets in phase and time. In this representation it is proved that, when the spreading code is rectangular, this offset carrier signal is a conventional Phase Shift Keying-Rectangular (PSK-R) signal modulating a periodic signal. Initial work on offset carrier modulations focused on a sinusoidal sub-carrier and a lowpass-filtered spreading symbol. The resulting complex envelope was not constant modulus. This class of offset carrier modulation has been termed linear offset carrier, since its modulus takes on a continuum of values. Further considerations lead to use square-waved sub-carrier CTs and a rectangular (unfiltered) spreading symbol μnTs, producing a constant modulus complex envelope. The resulting binary-valued modulation is called binary offset carrier. 17
2. Modulations in the Galileo Satellite System A BOC modulation is denoted by BOC(fs,fc), where fs is the sub-carrier frequency and fc is the code rate: fs=1 2Ts fc=1 nTs =2 nfs Both fs and fc will be multiples of 1.023 MHz and Mcps respectively. Expression (1) can be written in a different way depending on the parity of n. When n is even it is like this: sBOCfs, f ct = e−j·∑ k=−∞ ∞ akqnTs t−knTs−t0 (2) and when n is odd: sBOCfs, f ct = e−j·∑ k=−∞ ∞ ak−1kqnTst−knTs−t0 (3) with spreading symbol: qnTs t=∑ m=0 n−1 −1mTs t−mTs (4) Where this last summation is the n half-cycles of a square wave: n alternating ± 1 values within a (chip) duration (splitting it). For n even, qnTs has an average value of zero (balanced symbol). When n = 1 and using a rectangular no-return to zero (NRZ) spreading symbol, yields a BOC(fc/2,fc) having the same second-order parameters (ACF and PSD) as a conventional PSK-R. However, the waveforms of a BOC (fc/2,fc) are not the same because of the -1 when n is odd. Assuming that the binary values of the BOC spreading sequence are equally likely, independent, 18
2. Modulations in the Galileo Satellite System and identically distributed, the normalised baseband PSD of a BOC modulation is: SBOCfs, f cf = 1 nTs sin fTssin fnTs fcos fTs 2 for n even (5) SBOCfs, f cf = 1 nTs sin fTscos fnTs fcos fTs 2 for n odd (6) Note that when n = 1 (odd), the equation turns into: SBOCfs, f cf = 1 nTs sin fTscos fTs fcos fTs 2 =1 Ts sin fTs f 2 =Ts sinc2fTs = 1 fc sinc2fTs which is the conventional expression for the power spectral density of a PSK-R modulation, as seen above. In the PSD, the sum of mainlobes and sidelobes between the mainlobes is equal to n, twice the ratio of the sub-carrier frequency to the code rate. As in conventional PSK, the zero crossing of each lobe are spaced by twice the code rate, while the zero crossings of each sidelobe are spaced at the code rate. Maxima of the mainlobes occur at frequencies somewhat below the sub-carrier frequency because of the coherent interactions between the upper and lower sidebands [4]. To obtain the PSD function, we will start with the PSD form of a PSK modulation with independent, identically distributed spreading code and spreading symbol p(t) with spreading period T: Sf = ∣ Pf ∣ 2 T Note that it is the same expression from section 2.1, except with Ac = 1 and variance equal to the unit. Therefore, the PSD depends on the shaping pulse used. 19
2. Modulations in the Galileo Satellite System If we get the BOC spreading symbol, qnTs t=∑ m=0 n−1 −1mTs t−mTs , and T = nTs, its Fourier transform will be: QnTs f=∑ m=0 n−1 −1mF{Tst−mTs}= ∑ m=0 n−1 −1mF{rectt−mTs Ts } = = ∑ m=0 n−1 −1me−j2 fmTs sin fTs fe−jfTs =e−jfTs sin fTs f∑ m=0 n−1 −1me−j2 fmTs (7) The factor e−jfTs comes from the integral limits of the Fourier transform, m·Ts and (m+1)·Ts, because only one period is integrated. When this point has been reached, there is a two-pronged way of developing the Fourier transform of the spreading symbol qnTs depending on the parity of n. On one hand, if n is even, the summation ∑ m=0 n−1 −1me−j2fmTs yields: 1−e−j2fTse−j2 f2Ts−e−j2f3Ts...e−j2fn−2Ts−e−j2fn−1Ts To demonstrate what this series can turn into in simpler terms, n = 6 will be used as an example. Then, the summation will give: 1−e−j2 fTse−j2 f2Ts−e−j2 f3Tse−j2f4Ts−e−j2 f5Ts=... ...=1−e−j2 fTs· 1e−j2 f5 2Ts e−jfTs ·ej2 f1 2Ts−e−j2 f1 2Ts ejfTs−e−jfTs 1 · 1e−j2f9 2Ts e−jfTs ·ej2 f1 2Ts−e−j2f1 2Ts ejfTs−e−jfTs 1 =... ...=1−e−j2 fTs·1−e−j2 f2Ts ·1−e−j2f4Ts Therefore, n even will give in a general case: 20
2. Modulations in the Galileo Satellite System ∑ m=0 n−1 −1me−j2fmTs = 1−e−j2fTs ·∑ m=0 n 2−1 e−j2f2mTs (8) and if the subsequent geometric series is developed: ∑ m=0 n 2−1 e−j2 f2mTs =1−e−j2fnTs 1−e−j4 fTs it is finally proved that: ∑ m=0 n−1 −1me−j2fmTs = 1−e−j2fTs ·1−e−j2fnTs 1−e−j4 fTs (9) If in this expression common factors are extracted, it can be put in a quotient with sine and cosine functions which take part in the PSD general formula: 1−e−j2 fTs·1−e−j2 fnTs 1−e−j4 fTs =e−jfTs ·ejfTs−e−jfTs ·e−jfnTs e−2jfTs ·ejfnTs−e−jfnTs ej2 fTs−e−j2 fTs = =2j·sin fTs·sin fnTs sin2fTs· e−jfTs e−jfn−2Ts=... and using the identity “sin(2x) = 2 sin(x) cos(x)” in the denominator: ...=j ·e−jfn−1Ts ·sin fnTs cos fTs Finally, remembering that the aim of this demonstration is the Fourier transform of the spreading symbol (4) for n even, it is obtained substituting this last simplification in (7): QnTs f=e−jfTs ·sin fTs fj·e−jfn−1Ts ·sin fnTs cos fTs=j ·e−jfnTs ·sin fTs·sin fnTs f ·cos fTs (10) 21
2. Modulations in the Galileo Satellite System Thus, knowing that Sf = ∣ Pf ∣ 2 T = ∣ Pf ∣ 2 nTs and in this case P(f) is QnTs(f), if P(f) is substituted in this last expression for (10): SBOCfs, f cf = 1 nTs · sin fTs·sinnfTs f ·cos fTs 2 with fc=(n·Ts)-1 (11) On the other hand, if n is odd, the summation ∑ m=0 n−1 −1me−j2fmTs will give an even number of terms and it will be the same as the case above but with one more addend at the end. So, adapting equation (9) simplified, the summation will give: ∑ m=0 n−1 −1me−j2fmTs =j ·e−jfn−2Ts·sin fn−1Ts cos fTse−j2fn−1Ts (12) Note that the indexes have been changed as required. The appearance of this last term makes it more difficult to achieve the PSD expression when n is odd. We begin by extracting common factor in (12) and giving the expression its real and imaginary parts except from the common factor: e−j2fn−1Ts · j · ejfnTs·sin fn−1Ts cos fTs1 =e−j2 fn−1Ts ·(j ·cosnfTs·sin fn−1Ts cos fTs− −sinnfTs·sin fn−1Ts cos fTs1) (13) By applying the identity “sin(a-b) = sin(a) cos(b) – sin(b) cos(a)” and treating the second addend within the brackets, it is obtained that: − sinnfTs cos fTs·sinnfTscos fTs−sin fTscosnfTS then, if this last expression is operated together with the third addend “1” from (13): 22
2. Modulations in the Galileo Satellite System −sin2nfTscos fTssinnfTssin fTscosnfTscos fTs cos fTs and extracting the common factor twice cos(π f Ts) and using “1-sin2(n π f Ts) = cos2(n π f Ts)”: cos2nfTscos fTssinnfTssin fTscosnfTs cos fTs cosnfTs cos fTs· cos fTscosnfTssinnfTssin fTs The last term can be simplified by applying the identity “cos (a-b)” the other way round: cos fTscosnfTssinnfTssin fTs=cos fn−1Ts Now, remodulating equation (13) with simplified version of the last expression, the summation yields: ∑ m=0 n−1 −1me−j2 fmTs =e−j2 fn−1Ts ·cos fnTs cos fTs· [ cos fn−1Ts j ·sin fn−1fTs ] = =e−j2fn−1Ts ·ejfn−1Ts cos fnTs cos fTs=e−jfn−1Ts ·cos fnTs cos fTs (14) Finally, remembering that the aim of this demonstration is the Fourier transform of the spreading symbol (4) for n odd, it is obtained substituting (14) in (7): QnTs f=e−jfTs ·sin fTs f· e−jfn−1Ts ·cos fnTs cos fTs=e−jfnTs ·sin fTscosnfTs fcos fTs (15) Thus, knowing that Sf = ∣ Pf ∣ 2 T = ∣ Pf ∣ 2 nTs and in this case P(f) is QnTs(f), if P(f) is substituted in this last expression for (15): 23
2. Modulations in the Galileo Satellite System SBOCfs, f cf = 1 nTs · sin fTs·cosnfTs f ·cos fTs 2 with fc = (n·Ts)-1 (16) At the end of this demonstration, some plots regarding Galileo signals' PSD will be shown, it will be also possible to discern the differences between a sine or cosine square sub-carrier. Figure 4: PSD with sine sub-carriers for all signals Figure 5: PSD with cosine sub-carriers for all signals 24
2. Modulations in the Galileo Satellite System Figure 6: PSD with sine and cosine sub-carriers for all signals All these plots have been obtained from the ideal formula for a BOCsin or BOCcos substituting the fs and fc values appropriately: GBOCsinfs , fcf= fc · sin f 2fs sin f fc fcos f 2fs 2 GBOCcosfs , fcf= fc· 2·sin2 f 4fs sin f fc fcos f 2fs 2 As it is shown in the plots, the PSD is split in two lobes, the frequency of the maximum PSD from a cosine sub-carrier is higher than that of the maximum PSD from a sine sub-carrier, the lobe attenuation of BOC(fs,fc) is slower than that of a BPSK-R(1), and the maximum PSD of a BOC signal is about 3 dB lower than that of a BPSK-R(1) [9]. Moreover, PSD with sine sub-carrier spread more power on mainlobes whereas PSD cosine sub-carriers spread more power in sidelobes. 25
2. Modulations in the Galileo Satellite System Figure 13: Data (with mθ !=0), CDMA encoding, sub-carrier and signal s(t) PSD After all, the spectrum will be represented as one lobe repeated in the different sub-carriers frequencies provided by the transform of the sign of the sub-carrier. Figure 14: Data (mθ=0), CDMA encoding, sub-carrier and signal s(t) PSD 32
2. Modulations in the Galileo Satellite System 2.2.2 Alternate BOC The Alternate BOC (AltBOC) is a multiplexing and modulating technique, as it will be shown later in this document, that is used in Galileo E5 signal. The case of this modulation will be studied because it is of remarkable interest and because the Galileo E5 signal uses a slightly different and more complex version of this technique. Understanding this first model will ease the understanding of the real version for E5 navigation signal. From the appendix of [11] we can say that the alternate BOC modulation scheme aims at generating a single sub-carrier signal adopting a source coding similarly to the one involved in the classical BOC. The process allows to keep the BOC implementation simplicity and a constant envelope while permitting to differentiate the lobe. The standard BOC modulation, as it has shown above, is a square sub-carrier modulation and consists in multipliying a signal s(t) with a square sub-carrier of frequency fs which splits the spectrum of the signal into two parts, located at the left and right side of the carrier frequency. The idea of alternate (or baseband) BOC modulation is to perform the same process but multiplying the base band signal by a ‘complex’ rectangular sub-carrier: rcs t=signcos2fst j ·signsin2fst=crt j · sr t (17) In that way the signal spectrum is not split up, but only shifted to higher frequencies. A different signal s(t), containing a different ranging code and navigation data message, can be used for shifting to the lower and upper frequency range. By this principle the two side lobes of a BOC signal can carry different information. The alternate BOC signal can be expressed as: st=Cat· rcstCbt·rcst (18) Where: •Ca(t) is a pseudo random noise (PRN)4 code for channel a. 4 Generated via Linear Feedback Shift Register (LFSR) in Matlab (c.f. Point 3 (Galileo Spreading Codes) and appendix A to check the Matlab script). PRN has to be regarded as a sequence of pulses that repeat themselves, but after a long time or a long sequence of pulses, although it seems to lack any definite pattern. 33
2. Modulations in the Galileo Satellite System •Cb(t) is a PRN code for channel b. •rcs is the rectangular complex sub-carrier defined above. As it can be appreciated in the next figure, the signal spectrum comprises a main line which is the same as the line for the ideal (sinusoidal) complex exponential with the same frequency fs and minor harmonics spaced every 4fs. Figure 15: Magnitude of the Fourier transform of the rectangular complex sub-carriers In this plot we can see how the sum of the different components of the complex exponential are added (it has been plotted without applying the square to appreciate with more detail the several deltas with low amplitude). As it has been shown in section 2.2.1, the Fourier transform of the sign of a cosine is a real function, while the Fourier transform of the sign of a sine is an imaginary function, therefore, when they are joined in a complex exponential, the imaginary part becomes real and they can be treated in the same axe. Thus, for m odd and positive, the deltas that will null each other will be the ones located when m = 3, 7, 11... For m odd and negative, the ones that will null each other will be the ones when m = -1, -5, -9... This behaviour can be checked out in the figure of above, where the multiples are located at fs, -3·fs, 5·fs,(every 4·fs), where fs = 15·1.023MHz = 15.345 MHz. 34
2. Modulations in the Galileo Satellite System It is equivalent to modulate the data flow Ca(t)+Cb(t) by the waveform cr(t) and to add in quadrature the data flow Ca(t)-Cb(t) modulated by the waveform sr(t), because the alternate signal expression can be arranged as: st=Cat[sign cos2fst j · signsin2fst]Cbt[ signcos2fst− j· signsin2fst]= =signcos2fst·[CatCbt] j · signsin2fst·[CatCbt]= =[CatCbt]· signcos2fst j ·[Cat−Cbt]· signsin2fst= =[CatCbt]cr t j ·[Cat−Cbt]sr t (19) Figure 16: PSD of the formula (18) and (19) with separated channels Ca and Cb This plot is easier to understand if equation (18) is followed, since it is clearly seen how every channel is multiplied by the rectangular complex sub-carrier (one of them conjugated) and the result is the baseband PRN spectrum convoluted by the different deltas provided by the Fourier transform of the complex exponential, as figure 16 shows. 35
2. Modulations in the Galileo Satellite System Figure 17: PSD of the formula (18) and (19) with both channels Ca and Cb This figure shows the sum of both channels Ca(t) and Cb(t) in frequency, where it can be seen that this signal is no mirrored at all and that both lobes are different. Since the flows Ca(t) and Cb(t) can assume only values of +1 and –1, the signal s(t) can be written as: st=2·e jk 2k∈{1,2,3,4} (20) Thus, we verify that the amplitude of I and Q channel is constant. The limitations of this basic concept lies in the fact that each signal in each sideband must be a BPSK and no a QPSK, to include pilot channels, are allowed if the good constant envelope characteristics are to be kept, because some portions of the alternate signal will be at null power. So, if we wanted to add pilot channels, the expression of s(t) changes and becomes a signal with inphase and quadrature components, where the data channels5 will go in the in-phase component and 5 The data used for this example is at a rate of 50 sps and 250 sps for ra and rb respectively (c.f. Section 4 (Signal Generation) and appendix A). It consists in a random string of ±1. 36
2. Modulations in the Galileo Satellite System the pilot channels will go in the quadrature component: st=Ca t·rcs tCbt rcst j[Ca ' trcs tCb' rcst] (21) Where: •Ca(t) is the data multiplied by the PRN code for channel a. •Cb(t) is the data multiplied by the PRN code for channel b. •rcs(t) is the rectangular complex sub-carrier. •Ca'(t) is the pilot channel (only PRN code) for channel a. •Cb'(t) is the pilot channel (only PRN code) for channel b. Again, if this expression of s(t) is developed following the same steps than before, it can be written like: st= { CatCbt· Cr t−Ca' t−Cb' t· Srt } j · { Ca' tCb' t·Cr tCat−Cbt·Sr t } (22) This signal can take 9 different values, which can be written by the following formula: st=Ak· ejk 4k∈ { 0,1,2,3,4,5,6,7,9 } with : Ak=0for k=0 Ak=2 2for k odd Ak=4for k even (23) It is clearly seen that the resulting modulation will not be a constant envelope modulation. For that reason Galileo AltBOC has been modified introducing two different sub-carriers and the products of the components in order to obtain a signal that lies on an 8-PSK constellation (constant envelope) which is very important for satellites high power amplifiers. This last form of s(t) is very important because this is how E5 signal is composed. As we will see in section 4 (Navigation Signals), E5 signal will be shown as the sum of four terms, where each of the two pairs will be expressed as s(t) above. 37
2. Modulations in the Galileo Satellite System It is easier to figure out how the shape of the spectrum will be like looking at (21), since each channel is multiplied by the complex sub-carrier and we can foresee where the spectrum will be located. Figure 18: PSD of data (blue) and pilot (red) channels Figure 19: PSD of all channels together in in-phase (blue) and quadrature (red) 38
2. Modulations in the Galileo Satellite System 2.2.3 Autocorrelation function of BOC Since the correlation function is the most important point for the acquisition stage of the receiver, it will be analysed how to obtain the ACF of a BOC signal, seeing that it is easier to do the inverse Fourier transform from the PSD form. As an example the BOCsin(1,1) ACF will be derived from its PSD. From this demonstration the importance of following the adequate steps is highlighted, despite the fact that these values (fs = fc = 1), lead to a PSK. After demonstrating this, there will be an example of a BOC(2x,x). fs=1 2·Ts=1fc=1 n·Ts=1; Ts=1/2n=2 SBOC 1,1f = sinf 2·sin f f ·cosf 2 2 = sinf 2·2sinf 2·cosf 2 f ·cosf 2 2 = 2·sin2f 2 f 2 = =16 42f2sin4f 2 = 2 42f2·cos2f−4cos f3= 2 2f2·3cos2f−4cos2f 2 where sin4x=3 8cos4x 8−cos2x 2 So, to transform the last expression inversely, let cos2fk 42f2 be the reference function Gk(f) and 1 4k22f2 be the reference function Sk(f). Then, the ACF will be : gkt=F−1 { 1 42f2 } ∗F−1 { cos2fk } =−t · sign t 2∗t−ktk 2=−t−ksignt−k − tksign tk 4 skt=F−1 { 1 4k2f2 } =−t · sign t 2k2 Once this is defined, we only need to make a linear combination of these two functions [20]: 39
2. Modulations in the Galileo Satellite System ACF BOC1,1t=6·s1t2· g1t−8·g1 2 t Figure 20: Normalised ACF BOC(1,1) When the BOC signal is more complex, such as BOC(2x,x), the procedures to obtain the ACF analytically are similar to those of a BOC(1,1), however, the functions to transform inversely are more complicated. As an example, the procedure followed to obtain the ACF of a BOC(10,5) is shown below. fs=1 2·Ts=10 fc=1 n·Ts =5; Ts=1/20 n=4 SBOC 10,5f = fc sin f Ts·sin4f Ts f ·cos f ·Ts 2 The factor which complicates the inverse transform is the cos(x) in the quotient, since it is not a direct inverse transform. Therefore, trigonometric identities are applied in order to get rid of that cosine function. Whenever fs = 2fc, the n parameter will be 4, so then it will be possible to apply identity “sin(2x) = 2 sin(x) cos(x)” as many times as needed. In this case it is done like this: sin24f Ts=2·sin2f Tscos2f Ts2=2·2·sin f Tscos f Tscos2f Ts2= =16·sin2 f Ts·cos22f Ts·cos2 f Ts 40
2. Modulations in the Galileo Satellite System Therefore, the PSD yields: SBOC10,5f=16 fc 2f2·sin4 f Ts·cos22f Ts One option after this, is to develop the sinusoid as before, or to try to put both trigonometric functions with the same arguments, since the cosine argument is twice the sinusoid one. If it is applied the identity “cos2(2x) = 1 – sin2(2x)”, it can be rewritten like: cos22x=1−sin22x=1−4sin2xcos2x hence , SBOC10,5f= 16fc 2f2· sin4 f Ts−4sin6 f Tscos2 f Ts Once this point is reached, one way to continue developing this is to transform all trigonometric functions inversely, in order to have several delayed and amplitude-valued deltas to convolute them in time. Then, it has to be convoluted by the term at the beginning of the expression (whose inverse transform has already been developed) and finally obtain the ACF of BOC(10,5). By tackling this problem from another point of view (less mathematical and more practical), what it simply happens is that the autocorrelation of a binary square sub-carrier takes place. Therefore, it is enough to simulate a sine and cosine waveform with BOC(fs,fc) characteristics by using appropriate parameters such as the number of samples (sampling frequency). The main important point in this simulation is the parameter n, the number of half-periods within a chip. As the sub-carrier is always the component with highest frequency, it is what finally splits the signals the most (even the chips). In the Matlab scripts (c.f. Appendix A) the procedure followed to obtain the ACF functions can be seen. 41
2. Modulations in the Galileo Satellite System Joining all formulas and adding the binary channels as stated before it can be shown that: If we get the in-phase and quadrature components from this passband expression, it can be expressed as in baseband format: sbt= 2P[ [ s2tsin2cos3s3tsin3cos2 ] j· [ s1tcos2cos3−s1ts2ts3tsin2sin3 ] ] Now, having a look at the power of each component (remembering that the power of a sine or cosine is the amplitude to the square divided by two): P1=P ·cos22·cos23P2=P · sin22·cos23 P3=P ·sin23·cos22Pim=P · sin22·sin23 , it can be seen that a trade-off must be agreed to avoid that a great amount of available power goes into the intermodulation product (Pim) component. Indeed, conditions are needed to stablish the appropriate parameters, so in-phase and quadrature components are meant to have the same power. This leads us to say that P1 will be the 50% of the power and that both P2 and P3 will have a 25% of the power each: P1=P ·cos22·cos23=2· P · sin22·cos23 P2=P3=P ·sin22·cos23 48 cos− 223=sin23=sin2cos3sin3cos2 sin− 223=−cos23=−cos2cos3sin2sin3 st= 2P[ [ s2tsin2cos3s3tsin3cos2 ] ·cos2fs t [ s1tcos2cos3−s1ts2ts3tsin2sin3 ] ·sin2fs t]
2. Modulations in the Galileo Satellite System This system is reduced to solve the following equation: cos22=2sin22 , whose solution is: 2=arctg 1 2=±0.6155radians It has to be note the ambiguity introduced by the squares in the sines and cosines function. As we will see in section 4, the channel in the in-phase component is formed by the subtraction of s2(t) and s3(t), so we select for β2 the positive solution and for β3 the negative solution: 2=−3=m=0.6155 radians Consequently, the expression of the signals in baseband is: Knowing that the sine is an odd function and the cosine an even function, the expression can be showed like: sbt= 2P [ [ s2tsinmcosm−s3tsinmcosm ] j · [ s1tcos2ms1ts2ts3tsin2m ] ] Regarding the constant envelope issue, if the power for the different channels is analysed adding some restrictions and letting sin(m)cos(m)=A, cos2(m)=B and sin2(m)=C : sbt= 2P [ [ A ·s2t−A · s3t ] j · [ B · s1tC · s1ts2ts3t ] ] •It is assumed that channel 2 and 3 have the same power. •It is assumed that channel 1 has the 50% of the relative power and channels 2 and 3 has 25% both. The first condition expresses that the norm of the I and Q part of the signal sb(t) must be unity: A2−A2B2C2=1 The condition of equal power for both I and Q channels lead to: A2A2=B2 49 sbt= 2P [ [ s2tsinmcos−ms3tsin −mcosm ] j · [ s1tcosmcos−ms1ts2ts3tsinmsin−m ] ]
2. Modulations in the Galileo Satellite System Finally, the condition that combined power equals one leads to: A2A2B2C2=1 The system is: B=1−C2·1−C2C2=1C=1;C=1 3 Since the solution with C=1 does not lead to a reasonable result, we get C=1/3 as a useful solution. Then, B=2 3; A= 2 3 Hence, the signal can be expressed as: sbt= 2P [ [ 2 3· s2t− 2 3·s3t ] j · [ 2 3· s1t1 3· s1ts2ts3t ] ] , and now analysing the power for each component: P1=P · 2 3 2 =0.44 P P2=P · 2 3 2 =0.22 P P3=P · 2 3 2 =0.22 P PIM=P · 1 3 2 =0.11 P So, this means that only the 88.88% of the total transmitted power is useful, thus showing which is 50 BC=1 2A2=B2 2A2B2C2=1
2. Modulations in the Galileo Satellite System the trade-off for achieving the constant envelope for signal s(t). Next table will show the different combinations of the three binary channels s1(t), s2(t) and s3(t), the norm of the signal s(t), its real and imaginary part and the constellation for this case of CASM: It is observed that the norm of the signal is always 1 and so is represented in the constellation plot of above. It can also be seen from the table that for the three different binary channels, there are six possible phases, thus the name of tricode hexaphase. It is also seen that the in-phase component can only assume three different values, so unambiguous mapping from received in-phase signal to transmitted signal is not possible. The table also shows that whenever s2(t) and s3(t) (supposed data and pilot) are equal , all power is concentrated in the quadrature component [17]. 51 Re {s(t)} Im {s(t)} |s(t)| 1 1 1 0 1 1 1 1 -1 0.9428 0.3333 1 1 -1 1 -0.9428 0.3333 1 1 -1 -1 0 1 1 -1 1 1 0 -1 1 -1 1 -1 0.9428 -0.3333 1 -1 -1 1 -0.9428 -0.3333 1 -1 -1 -1 0 -1 1 s1(t) s2(t) s3(t)
2. Modulations in the Galileo Satellite System 2.2.5 Double BOC It must be said that this modulation is not used in any of the Galileo signals. The point to have into account with Double Binary Offset Carrier (DBOC) [19] is that it is a new way to write either BOCsin or BOCcos signals using only one formula, that is to say, unifying all BOC signals in one expression. It uses the same parameters that have been explained before in this document about BOC: •fs is the sub-carrier frequency and it is a multiple of 1.023 MHz. •fc is the chip rate and it is a multiple of 1.023 Mcps. •n is the number of half periods within a chip time. To begin with, we will express the BOCsin signal in baseband like: xt= ∑ m=−∞ ∞ bm∑ k=1 SF ck , m ssinBOC t−m ·T b−k ·T c where: •bm is the mth bit (symbol). •ck,m is the kth chip of the mth bit. •ssinBOC(t) is the waveform of a BOCsin signal (see figure 7). •Tb is the bit (symbol) duration. •Tc is the chip duration. Going on with the development and using the convolution operator this equation can be written like: xt=ssinBOC t∗ ∑ m=−∞ ∞∑ k=1 SF bmck , m t−m · T b−k · T c=ssinBOC t∗dt where: •d(t) is the spread data symbol. This spreading symbol will become common in all formulas since the only term that will change is the waveform (sine or cosine). 52
2. Modulations in the Galileo Satellite System Then, having a deeper look into ssinBOC(t): ssinBOC t=signsin2fst when 0tTc , this equation can be expressed (using the convolution operator again) like: ssinBOC t=pt∗∑ i=0 n−1 −1it−i ·T s where: •p(t) is a rectangular pulse of amplitude 1 and duration Ts. •n is the number of half-periods within a chip time. •Ts is the the half of the sub-carrier period. Once reached this point, the BOCcos signal can be regarded as the same as BOCsin but adding another summation that will split the half-periods into two parts, thus getting the appropriate waveform for the BOCcos signal (see figure 10): scosBOC t=p' t∗∑ l=0 1∑ i=0 n−1 −1ilt−iT s−lTs 2 where: •p'(t) is a rectangular pulse of amplitude 1 and duration Ts /2. •l accounts for the splitting of the half period. This last expression can be also written unwrapping the summation in l since it is only for 0 and 1: 53
2. Modulations in the Galileo Satellite System scosBOC t=p' t∗ [ ∑ i=0 n−1 −1it−i ·T s−∑ i=0 n−1 −1it−i ·T s−Ts 2 ] So, looking at the first scosBOC(t) expression, the BOCcos can be regarded as a BOCsin modulated signal in which the half period is further split into two parts. Therefore, if this way of splitting is generalised to higher stages, we can express a new type of modulation only varying the counter taken by l: sDBOC t=pt∗∑ l=0 n' −1∑ i=0 n−1 −1ilt−iT s−lTs n' where: • pt is a rectangular pulse of amplitude 1 and duration Ts /n'. •n' can be seen as the order of the second stage (in case of BOCcos it is 2). Finally, a DBOC signal can be expressed like: xt=sDBOC t∗dt The difference between BOC and DBOC is mainly the second order stage parameter n'. When it is increased, the signal mainlobes move further towards the outer sides of the spectrum. A proof of this is simply observed in the BOCsin and BOCcos PSD, where it has been shown that the main lobes for a cosine BOC are a little bit further than the ones from a sine BOC (see underneath explanation in figure 6, figure 6 and next plot at the end of this section) due to the n' parameter, which is 2 for BOCcos and 1 for BOCsin. To appreciate this spectral feature, the best is to get the PSD function [19]: PDBOC f= ∣ SDBOC f ∣ 2 54
2. Modulations in the Galileo Satellite System where SDBOC(t) is the Fourier transform of sDBOC(t): SDBOCf=Ts n ' sincTs n' f·e −jfTs n' ·∑ l=0 n' −1∑ i=0 n−1 −1ike−j2f iT s·e −j2f l Ts n' If every exponential is separated in the correct summation, it will be possible to apply the geometric series development: SDBOC f=Ts n' sincTs n' f· e −jfTs n' · [ ∑ l=0 n '−1 −1l· e j2 fl Ts n' ·∑ i=0 n−1 −1lej2fiT s ] = =Ts n ' sincTs n' f·e−jfTs n' · 1−−1n' · e−j2f T s 1−−e −j2fTs n' · 1−−1n·e−j2fnT s 1−−e−j2fTs = =Ts n' sincTs n ' f· e−jfTs n' · 1−−1n ' · e−j2f Ts 1e−j2fTs n' · 1−−1n·e−j2 fT c 1e−j2fT s Applying now the square absolute value we lose the first exponential term: PDBOC f= ∣ Ts n' sincTs n' f· 1−−1n ' ·e−j2 f Ts 1e −j2fTs n' · 1−−1n·e−j2fT c 1e−j2 fTs ∣ 2 Developing this last equation we get four different forms of the PSD depending on the parameters n' and n. •if n is odd and n' is odd: PDBOC f= sin fTs n' cos f T c fcos fTs n' 2 55
2. Modulations in the Galileo Satellite System •if n is odd and n' is even: PDBOC f= sin fTs n' sin f T scos f T c fcos fTs n' cos f T s 2 •if n is even and n' is odd: PDBOC f= sin fTs n' sin f T c fcos fTs n' 2 •if n is even and n' is even: PDBOC f= sin fTs n' sin f T ssin f Tc fcos fTs n' cos f T s 2 So, depending on these two parameters we can obtain different modulations: •n = 1 ; n' = 1 → DBOC = BPSK •n > 1 ; n' = 1 → DBOC = BOCsin •n > 1 ; n' = 2 → DBOC = BOCcos •n >1 ; n' > 2 → High order DBOC In the next plot we can observe how the DBOC (with n = 2 and n' = 4) is more separated from 0 than the BOCsin(1,1) or BOCcos(1,1), thus giving less interference with the signal in 0. 56
3. Galileo Spreading Codes 3. Galileo Spreading Codes The spreading codes are used to create the Code Division Multiple Access (CDMA) codification (ranging codes) for all Galileo signals. They are constructed by what is called “tiered codes”, consisting of a modulation of two codes: a primary code modulated by a secondary code, obtaining the ranging sequence. Each signal component has assigned one ranging code with different parameters which depend on their length (in time, in chips and number of registers of the Linear Feedback Shift Register (LFSR)), chip rate and symbol rate. Both codes can be implemented either by “memory codes” or “register-based codes”. Memory codes, also called “optimized pseudo-noise sequences”, are predefined codes which have been constructed expressly to have very good characteristics on correlation and need to be stored in memory because there is no systematic generation possible. Register-based codes are obtained with a LFSR (which is completely defined with a tap polynomial). There are 'r' registers (which dictates the degree of the LFSR) and r+1 taps (which will produce the sequence). 3.1 Primary Codes A primary code is generated by the xor addition of two LFSRs (see figure 28) which are truncated to the desired length (depending on the signal). Both LFSRs have the same number of registers. Having 14 registers means that the LFSR period is a 214-1 (16383) chip sequence if the tap polynomial is a primitive polynomial. So, for instance, if the longest sequence to be obtained is 10230 chips, that means that the truncation has to be done at 10230. When a sequence is completed, the registers are reloaded with the start-values. For the first LFSR, the start-values are always 1's, for the second, the start-values vary and are listed in [1] together with the initial sequences which are also predefined. All start-values codes are given in octal format. If it refers to a tap polynomial, the conversion to binary is as follows: if we have the polynomial 40503, all numbers must be turned into binary separately, that is 100 000 101 000 011, where the most significant bit (MSB) is the one at the left and the least significant bit (LSB) is the one at the right. The indexation for this goes from tap #0, LSB, to tap #14, MSB, (which are always 1 due to the LFSR structure) . If it refers to a start-value, the conversion to binary is as follows: if we have the start-value 14234, all numbers must be turned into binary separately, that is 001 100 010 011 100, where the first binary value is not used (as we have 14 registers only) and the following one is the MSB, with 57
4. Signal Generation Figure 31.a: Constellation of E5 signal The output of the multiplexer provides the signal E5 in the format that can be observed in figure 31.b. sE5 t= 1 2 2 eE5a−It j eE5a−Qt [ scE5−St− j scE5−St−Ts , E5 4 ] 1 2 2 eE5b−It j eE5b−Qt [ scE5−St j scE5−St−Ts , E5 4 ] 1 2 2 eE5a−It j eE5a−Qt [ scE5−Pt− j scE5−Pt−Ts , E5 4 ] 1 2 2 eE5b−It j eE5b−Qt [ scE5−Pt j scE5 −Pt−Ts, E5 4 ] Figure 31.b: E5 modulation type 64
4. Signal Generation The dashed signal components represent product signals according to figure 32. Each of the dashed components is the multiplication of all the others channels except itself: eE5a−I=eE5a−QeE5b−IeE5b−Q eE5b−I=eE5b−QeE5a−IeE5a−Q eE5a−Q=eE5a−IeE5b−IeE5b−Q eE5b−Q=eE5b−IeE5a−IeE5a−Q Figure 32: Product signals And the parameters scE5-P and scE5-S represent the four-valued sub-carrier functions for the single signals and the product signals respectively as shown in figure 33. scE5 −St= ∑ i=−∞ ∞ AS∣i∣8rectTS ,E5/8t−iT s , E5 8 scE5−Pt= ∑ i=−∞ ∞ AP∣i∣ 8rectTS ,E5/8t−iT s , E5 8 Figure 33: sub-carrier functions and parameters A representation of a Matlab plot of these two signals can be seen in the next figure: 65 0 1 2 3 4 5 6 7i ASi APi 21 2 − 21 2 1 2 1 2 1 2 1 2 −1 2 −1 2 −1 2 −1 2 − 21 2 − 21 2 2−1 2 2−1 2 21 2 − 21 2
4. Signal Generation Figure 34: sub-carriers representation The inclined slopes are due to hardware limitations. These plots were taken with a sampling frequency of 240·fo (fo=1.023 MHz or Mcps), which means that a lot of memory is used to store all the data. So I decided to do it with 2 samples per value. At the beginning, the sampling frequency needed not to be so high because the sub-carrier rate and chip rate were 15·fo and 10·fo respectively, and a sampling frequency of 90·fo would have been enough. However, the fact that these sub-carriers are changing their value every eight of sub-carrier period (2Ts), makes it impossible to maintain a sampling frequency so low. Therefore, one solution I found was to increase the sampling frequency up to 240·fo. As E5 bandwidth is very large, it is interesting to take advantage of it using large band signals, like the one used in this part which comprises two adjacent bands E5A and E5B. Furthermore, making use of the AltBOC modulation give several advantages such as it is only needed one single chain to transmit the four components, it is a constant modulus envelope signal (see figure 31.a), it is a broad reception signal and both sidebands can be processed independently by the user receiver. Nonetheless, it also has bad points such as the difficult implementation and intermodulation products appear due to the dashed components. Some results of the simulation in Matlab can be seen in the following plots: 66
4. Signal Generation Figure 35: ACF of AltBOC(15,10) with parameter functions (81 samples out of 9820799) As figure 35 shows, the E5 signal ACF normalised absolute value is formed by seven peaks. This plot does not match with what it is expected in [4], since what we have here it is not only one BOC modulation, but two of them and they are not square-wave signals. Moreover, the way they are multiplexed may vary the result of the ACF. That is it, if we do the same with square-wave subcarriers, the result is the same, though the peaks are more defined and narrower (see figure 36). However, it does match with what it is shown in [7], although the plot provided is not in absolute value (but it has the same number of peaks). 67
4. Signal Generation Figure 36: ACF of AltBOC(15,10) with no parameter functions (81 samples out of 9820799) Figure 37: E5 PSD separately represented in I & Q Figure 37 shows the four channels existing in E5 signal PSD. Note how the two main lobes are centred in 15·fo, as it is the sub-carrier function. Doing so, the split of the spectrum in two separate sidebands allows E5 band to be used as two separate sidebands. 68
4. Signal Generation The shape of this spectrum is quite peculiar (it has not the same shape than a normal BOC) due to the way the E5 signal is multiplexed (and modulated). In figure 31.b the expression of the signal is composed by 4 addends. Each of the addends can be divided in a real and imaginary part, since there is the data (real) and the pilot (imaginary) multiplied by the same sub-carrier function (but one of the two sub-carriers is delayed), one in the real axe and the other one in the imaginary axe. So, the first two addends correspond to the first (low amplitude), second (big one), third (low amplitude) and last lobe (very low ) of both the real and imaginary components as can be seen in figure 38 and the subsequent mathematical expressions. Figure 38: PSD of the first and second addends of the E5 signal 69
4. Signal Generation 1st addend ℜ:eE5a−It· scE5−St eE5a−Qt· scE5−St−TSE5 /4 ℑ:−eE5a−It· scE5−St−TSE5 /4 eE5a−Qt· scE5−St 2nd addend ℜ:eE5b−It· scE5−St − eE5b−Qt· scE5−St−TSE5/4 ℑ:eE5b−It· scE5−St−TSE5/4 eE5b−Qt· scE5−St 3rd addend ℜ: eE5a−It· scE5−Pt eE5a−Qt· scE5−Pt−TSE5 /4 ℑ:− eE5a−It· scE5−Pt−TSE5/4 eE5a−Qt· scE5−Pt 4th addend ℜ: eE5b −It· scE5−Pt − eE5b−Qt· scE5−Pt−TSE5 /4 ℑ: eE5b−It· scE5−Pt−TSE5 /4 eE5b−Qt· scE5−Pt So, as it can be seen in the expression above, every addend has one real and imaginary part, and each real and imaginary part of each addend has a data and pilot component (I & Q) modulated by the corresponding parametric sub-carrier. Therefore, as can be appreciated in figure 37, the first two addends form the big lobes and the last two addends form the little lobes. 70
4. Signal Generation Figure 39: PSD of the third and fourth addend of E5 signal The other two addends, which are composed by a combination of three of the four binary signals, are the ones which represent the rest of the lobes of lower amplitude (they are ten times lower approximately) that are located between the first main lobe and the last lobe (figure 39). The third and fourth addends can be also expressed separately in the real and imaginary part. 71
4. Signal Generation Figure 40.a: PSD of sub-carriers with parameters (only positive spectrum) Figure 40.b: Zoom of figure 41.a at 15.345 MHz 72
4. Signal Generation Figure 40.c: Zoom of figure 40.a at 46.035 MHz If we have a look to the Fourier transform of the sub-carriers in figure 40.a, it can be appreciated how the deltas are separated every odd multiple of 15.345 MHz from 0 to 107.415 MHz (15.345, 46.035, 76.725 and 107.415 MHz). For instance, the main harmonics corresponding to the s type sub-carrier are the ones situated at 15.345 MHz and 107.415 MHz, whereas for the p type subcarrier are the ones situated at 46.035 MHz and 76.725 MHz. Therefore, as it has been said in 2.2.1, the resulting spectra will be a main lobe (combination of all channels) convoluted with the different deltas at different frequencies. Add to this, in figures 40.b and 40.c it can also be appreciated how little ripples appear due to the so-called abrupt change of slope of the sub-carrier waveforms in time (figure 34 ). Retaking signal E5, if we rewrite the two first addends from expression in figure 31.b and as it has been shown in section 2.2.2, we can appreciate, more intuitively, how the four different channels are modulated and located in the spectrum: 73
4. Signal Generation Figure 48: Multiplexing E6 eE6−Bt= ∑ i=−∞ ∞ [ cE6−B ,∣i∣LE6−BdE6−B , [ i ] DCE6−BrectTC , E6−Bt−iT C ,E6 −B ] eE6−Ct= ∑ i=−∞ ∞ [ cE6−C ,∣i∣LE6 −CrectTC , E6−Ct−iT C ,E6 −C ] Figure 49: E6 components E6P band (channel A) is restricted and no information is provided for this signal. It is only said that its modulation is a BOCcos(10,5). In order to simulate this signal it has been added all the necessary parameters with suitable values which make the simulation simpler. Some results of the Matlab simulation are shown in the next plots. 80
4. Signal Generation Figure 50: ACF of E6 channels B&C (BPSK) and A (BOCcos(10,5)) (201 samples out of 2045999) It can be seen in this plot that the waveform of the ACF of both signals is the expected, since for a BPSK we have a triangle function, and for a BOCcos, the number of peaks is the same than for a BOCsin plus two: 2n +1. Figure 51: PSD of both bands E6P and E6C 81
4. Signal Generation It can be clearly seen clearly how both spectra are well represented. BPSK is the green one and BOCcos is the red one. In the next plot it is represented the spectrum of the BPSK modulated at 30 MHz to have a clear vision. Figure 52: PSD of E6 B&C (BPSK) band modulated @ 30MHz This signal has been simulated and implemented following [1], however, in that document there is neither information about channel A nor for the multiplexing technique it uses. Therefore, taking reference [11], which is not as updated as [1], we can find a multiplexing scheme that coincides with another references (such as [3]) and says that E6 signal is multiplexed with Coherent Adaptative sub-carrier Modulation (CASM) technique, which ensures, again, a constant envelope transmitting signal as seen in section 2.2.4. Add to this, it gives a detailed expression of E6 signal with which we can check the constant modulus envelope of this signal as well. Moreover, a new plot of the PSD for E6 signal will be given to compare it with the one above. The expression provided by [11] is given in passband, then, in-phase and quadrature components are extracted so that the analysis can be done in baseband. 82
4. Signal Generation Figure 53: E6 signal expression with modulation index m. With this expression containing all three channels we obtain this plot for its PSD: Figure 54: E6 signal PSD (blue), representing in-phase (green) and quadrature (red) components in frequency From E6 expression it can be seen clearly the channel A (BOCcos) in green and channel C (BPSK) in green as well (the centred lobe), and then channel B (BPSK) in red (centred lobe) and the multiplication of the three channels added to channel B (side lobes in red) to achieve the constant modulus (as it has been done in E5 and it will be done in E1-L1 as well). The modulation index, m, is used to control the amplitude of the different channels, giving more power to a certain channel assigning the cos(m), since for that value of m, the cosine is bigger than the sine (cos(m)=0.8165 ; sin(m)=0.5774). Regarding the constant envelope, the same plots have been obtained as for E5 signal: CDF, CCDF, and constellation. 83 SE6 t= { eE6 −At·cosm−eE6 −Ct·sinm } j· { eE6−Bt·cosmeE6−At· eE6−Bt·eE6−Ct·sinm } where m=0.6155 radians
4. Signal Generation Figure 55: Constellation for E6 signal 84 Ch A Ch B Ch C Re {s(t)} Im {s(t)} |sE6(t)| 1 1 1 0.2391 1.3938 2 1 1 -1 1.3938 0.2391 2 1 -1 1 0.2391 -1.3938 2 1 -1 -1 1.3938 -0.2391 2 -1 1 1 -1.3938 0.2391 2 -1 1 -1 -0.2391 1.3938 2 -1 -1 1 -1.3938 -0.2391 2 -1 -1 -1 -0.2391 -1.3938 2
4. Signal Generation As it is said in [11], this modulation is a modified Hexaphase, a QPSK signal resulting from the combination of two channels in phase modulated with the third channel and, as said before, the modulation index is used to set the relative power between the three channels. That is what we can observe in figure 55 and in the table beneath it, the set of symbols placed in a circle of radius r= 2 , thus reaffirming again the constant envelope. It can also be observed in the table the different combinations that the channels yield, thus giving the eight different symbols in the constellation plot (like the study of CASM in section 2.2.4). It can be observed in the following plot, figure 57, that the values for this signal are located between − 2 and 2 , and that both real and imaginary values are distributed exactly in the same way for both in-phase and quadrature components. Finally, in figure 58, it is shown the CDF and CCDF for the PAPR. Again, there is only a line in the unit value, thus confirming the constant envelope behaviour. Figure 56: CDF and CCDF for E6 signal values separated in real and imaginary parts 85
4. Signal Generation Figure 57: CDF and CCDF for E6 signal PAPR 4.3 E1 Signal The Galileo E1-signal comprises the signal components E1-B and E1-C and is transmitted in the frequency band 1559 - 1610 MHz allocated to RNSS and ARNS on a worldwide co-primary basis (ITU-R Radio Regulations). The signal components E1-B and E1-C are data-component and pilotcomponent respectively. The E1-signal provides the I/NAV message and supports Safety of Life service, Galileo system integrity and Open Service [1]. The E1 signal is modulated by a CBOC(6,1,1/11) (Composite BOC) at fo and a symbol rate of 250 Sps and multiplexed with scheme shown in figure 59. This signal modulates with two different subcarriers: sc_a = fo and sc_b = 6·fo. Furthermore, it can be seen in figure 59 that both pilot and data components are modulated onto the same sub-carrier component, with a power sharing of 50%. CBOC linearly combines BOC(1,1) and BOC(6,1) sub-carriers (both components being present at all times). These sub-carriers, as the balanced sum of two squared-wave sub-carriers, will have four different levels [6]. 86
4. Signal Generation Figure 58: Multiplexing scheme for E1 CBOC signal The power of BOC(6,1) component has to represent 1/11 of the total OS signal power. Among other parameters, then, the actual implementation of the MBOC (Multiplexed BOC) will depend upon the power share between the pilot and data channels, as well as the percentage of BOC(6,1) sub-carrier used on each of these channels. SE1 t= 1 2eE1−Bt scE1−B, a t scE1−B , bt−eE1−CtscE1−C , at−scE1−C , bt with scxt=signsin2Rs , Xt = 10 11 = 1 11 Figure 59: Resulting E1 signal The parameters α and β are chosen so that the combined power of the scE1-B,b and the scE1-C,b subcarrier components equals 1/11 of the total power of eE1-B plus eE1-C. Note that the sign of the BOC(6,1) sub-carrier is different between the data and pilot channels. This is necessary to satisfy the MBOC constraint (removal of cross-terms appearing from the cross-correlation between the BOC(1,1) and BOC(6,1) sub-carriers) [6]. 87
4. Signal Generation eE1−Bt= ∑ i=−∞ ∞ [ cE1−B ,∣i∣LL1−BdE1−B , [ i ] DCE1−BrectTC , E1−Bt−iTC , E1−B ] eE1−Ct= ∑ i=−∞ ∞ [ cE1−C ,∣i∣LL1−CrectTC , E1−Ct−iT C ,E1−C ] Figure 60: E1 signal components 4.4 L1 Signal The Galileo L1-signal consists of the signal components (or channels) L1A, L1B and L1C and is transmitted in the frequency band 1559 – 1610 MHz allocated to RNSS and ARNS on a worldwide coprimary basis (ITUR Radio Regulations) [2]. L1F is an open access signal transmitted in the L1 band comprising a data channel and a pilot channel (the L1B and L1C signal components respectively). It has unencrypted ranging codes and navigation data, which is accessible to all users. The L1F navigation data stream corresponds to a I/ NAV message type and contains integrity messages as well as encrypted commercial data. The L1P signal is a restricted access signal transmitted in L1A signal channel. Its ranging codes and navigation data are encrypted using a governmental encryption algorithm. The L1P navigation data stream corresponds to a G/NAV (signal mapped to the Public Regulated Service) message type. L1A channel is modulated with BOCcos(15,2.5) and multiplexes together with E1 signal above using the CASM multiplexer shown in figure 61. Again, this signal channel is restricted and suitable parameters were used so that the simulation could be done. Figure 61: Multiplexing scheme for L1 88
4. Signal Generation And the CASM expression resulting from the multiplexing above is: sL1 t=1 3{ [ 2·e L1−Bt− 2·e L1−Ct ] j [ 2·eL1−AteL1−At·eL1−Bt·eL1−Ct ] } The constant envelope is maintained by adding to the desired channels A, B and C an additional signal, which is the product of all desired binary signals (the second term of the imaginary part of expression above). To avoid possible confusions, E1 and L1A signals have been treated separately because there was different information in [1] and [2] and both of them were useful. E1 is within the L1 band and it would correspond to band L1F or channels B and C. Figure 62: ACF of L1A (BOCcos(15,2.5)) and E1 (BOC(6,1,1/11)) (201 samples out of 1473119) In figure 62 both ACF results coincide with what it was expected (see ACF plots in 2.2.3). For the BOCcos(15,2.5), n = 12, so it should be 23+2 = 25 peaks since it is a BOC with cosine sub-carrier. For the BOC(1,1) is the simplest representation of an ACF function and it is correct: n = 2 and number of peaks equal to 3. 89
5. Matlab aspects defined for negative values in time, its transform will be not wrong but bad placed. To avoid this, the command “fftshift ( )” has to be used twice: fftshift ( fft ( fftshift ( x ) ) ). Doing so, we obtain a shifted version of the Fourier transform of a shifted version of the signal in time, avoiding the error of placement in frequency and also an error in phase. As we mentioned before, Matlab is a numeric program that works with vectors, thus treating all variables as vectors (or matrices). Therefore, if we type “a = 5 ”, that variable will be stored as a matrix of 1x1 element. Then, vectors can be introduced as row or column and when it comes to multiply two vectors, their dimensions have to match in order to be multiplied correctly. For instance, if we have a vector of 1x5 and it has to be multiplied by another vector, that vector will have to be a 5x1 (and it has to be transposed if necessary). The same happens with matrices, if a power of a matrix has to be done, they must be squared matrices. For this reason, if we want to multiply (or divide, put to the square, square root...) an element as if it were a number (not a vector), we have to use the character “.” before the sign of the operation (e.g. a = b.*c.*d) which makes the operation element by element. Add to this, when adding or subtracting two variables (vectors), they must be the same length, and this is a very important point that has influenced remarkably in the implementation of the navigation signals. For example, letting ra and rb be two bit rates for channels A and B respectively, and ra = 5·rb, we cannot transmit the same amount of bits in the two channels if these signals have to be added in any point of the script. That is, depending on how these channels are multiplexed or/and modulated, if they have to be transmitted in the same term, then they have to be the same length. Therefore, and in this case, there will be five bits for channel A for each bit of channel B. The procedure to create the signals is as follows: •ranging codes •data stream •modulating and multiplexing •plotting In the first point the CDMA encoding is obtained for each channel. Depending on the channel, it is a memory code or a register code. Once the sequence is stored, it is oversampled so that it matches the sampling frequency and the chip rate and, lastly, the ranging code is repeated as many times as needed to fill the amount of bits that have to be split by the CDMA code. Note in the code provided 96
5. Matlab aspects in the appendix that as all signals have to be the same length, pilot channels have been adapted to data channels and data channels have also been adapted so that they have the same duration (amount of bits that each channel transmit). In the second point the data is created. Depending on the signal, the commands sign ( ) and randn ( ) have been used to obtain a random vector of ±1. In other cases, as it is only a vector of ±1, and to obtain a better plot of the PSD, the data have been selected beforehand. After that, the data are also oversampled. In the third point the signal is composed. In this point the modulation of the signal indicates how the channels have to be joined with the ranging codes and the sub-carriers. The most complex multiplexing is the one regarding E5 signal, because it has the most complex expression and because the sampling frequency is the highest and thus it is the signal that uses more memory. Once the signal is achieved, the autocorrelation is done. To do this point I have used the Matlab command xcorr ( ) with the option coeff since it is better for ACF (it gives normalized values). Moreover, I added a second variable (lag in most scripts) that collects the lag (offset) of the ACF so that when it is plot, the function has the zero in the middle. After this, the Fourier transform is done with the function shcenteredFFT ( ) where we have to pass the function to be transformed and the sampling frequency so that the frequency axe can be done. This function is a modified function that I found on a MathWorks forum to understand better how the Fourier transform is used in Matlab. In the fourth and last point the plot of the signal is displayed. Although it seems the easiest point to do, until one does not learn how it works, it takes a long time to print exactly what you want to see and which are the options to write in the command plot ( ). Apart from this, there are a lot of different aspects within the plotting that have to be taken into account and they are not as simple as they seem, such as the subplot, the xlabel, the ylabel, the axis, the xlim, the ylim, the title, adding legends, adding comments, drawing in the same plot more than one signal, what colours to use, what kind of dots or markers are used to plot the waveform, the thickness of the line in which the waveform is plotted, etc. On top of this, there is the memory issue. Matlab stores all the variables generated when a script is executed and, of course, the longer the vectors the larger is the space used in memory. So, the problem with the memory comes, above all, if the sampling frequency used is very high. For instance, if we take the signal E5 sampling frequency (around 240 MHz), it means that there are 240 million of points per second of a signal. So, the program runs quickly out of RAM memory if 97
5. Matlab aspects that issue is not taken into account. The same happens if there are a lot of plots with large signals. There are some techniques to avoid this happens, however, the most important thing is to keep the sample frequency as low as possible (in this case). For example, it is better to use the same variable all script long although it suffers some changes, just overlapping its content until the final signal is achieved, deleting the unused variables and also preallocating space better than making growing vectors in a loop. Another way is to use nested functions, which they do not copy the variables passed as arguments and no memory is used. Another hardware solution would be to increase the virtual memory or swap memory (in Linux). The issue is that sometimes the size of a variable, in bytes, is too large to be stored in memory, not because the available space, but because it surpasses the total amount permitted for a single variable. In other words, this means that there is memory available, but there is no contiguous piece of memory that is large enough to hold the specified variable. It is also recommended to turn off the unused applications so that they do not waste RAM memory. Moreover, the command xcorr ( ) returns a signal that has 2·L-1 samples, where L is the number of samples of the function to be correlated, thus doubling the size of the variable. So, its Fourier transform will also have 2·L-1 samples because the fft ( ) command returns the transformed signal with the same number of points. Hence, when it comes to work with spectral densities and autocorrelations, the amount of memory is reduced dramatically. Finally, as an a complementary material for navigation signals, there are also several plots having to do with modulations' ( BPSK, BOC and AltBOC ) ACF and PSD. The aim of those plots is to give a closer insight of how these modulations are like, both in time and frequency. The first example (not provided in the appendix since it has nothing to do with the project) that I did to get familiarised with modulations and Fourier transforms and so on was a spread spectrum BPSK signal. Simply, it consisted in modulating data as binary phased and then including the CDMA code and check how the spectrum changed. It also implemented the Fourier transform and the corresponding plots of the ACF and PSD to see the results. This example was very useful to me as a sparring for the real thing I had to do. When it comes to BOC or AltBOC the procedures that I used to simulate them were basically getting the sub-carrier function in time and find its spectrum only using the function shcenteredFFT ( ), to avoid problems with memory, and then plotting the absolute value to the square. Doing so, we obtained what we really wanted but without being so theoretical, since the PSD of a signal is defined as the Fourier transform of its autocorrelation function. In any case, the results differed 98
5. Matlab aspects basically in the amplitude of the signal. If both signals were compared (PSD and absolute value to the square) it could be appreciated how both had the same harmonics in the same frequencies but the one with the absolute value had higher amplitude than the other one. 99
6. Future Lines 6. Future Lines The study done could be extended by the following points: •Since this work has been done from the point of view of the satellite (transmitter), how would it be to do the same but in the ground segment control (receiver)? How would be the signals in the receiver? As seen in [1], [4], [9], [6], [11] and [20], how multipath and attenuations due to atmosphere and other sources (a more complicated signal propagation model must be added which accounts for signal amplification at the satellite, signal losses in free space, atmosphere, antennas, and the front-end, even Doppler effects) would distort the signal coming from the space? In what way the modulations selected are good or bad for those inconveniences? As seen in [4], [6], [9] and [20], how these signals are tracked by receivers? What kind of receiver is better? What reception schemes exist for each band? How is the performance by the power amplifiers taking into account that all signals are constant envelope? Regarding the received signal, how all those errors affect the satellite performance (in accuracy for example)? Study of possible errors in the phase of the signals, etc. •As seen in [4] and [17], from another point of view more realistic, how would be the signals simulated taking into account a limited bandwidth? How would be the effects of loss of power and shaping of the spectrum when bandlimiting? How different the ACF and PSD would be from the ideal ones? •As seen in [11] and [5], it could be studied how the compatibility works with other satellites, GPS and GLONASS. Which are the constraints and trades-off that different parts have agreed so that all three satellite systems are interoperable in space? How the spectra in all those frequencies are assigned? Interferences between satellite systems? Methods to mitigate those interferences (filters, modulations, etc.). •Which are the operational satellite systems (BEIDOU -China-, DORIS -France-, GLONASS -Russia-, GPS -USA-)? Which are the current satellite systems in development (COMPASS -China-, GALILEO -Europe-, IRNSS -India-, QZZS -Japan-)? Which are the Global Navigation Satellite Systems to be updated or renewed (EGNOS, GAGAN, GPS·C, 100
6. Future Lines LAAS, MSAS, WAAS, Star Fire)? What will be improved in the current GNSS. Compare all/some of them against GALILEO. •A deep comparison between services provided by GPS and GALILEO (maybe with GLONASS as well) and which are their characteristics. In what do they resemble and in what do they differ? Which are the features (performance) of each, e.g. accuracy, spectral efficiency, etc? Which gives a better performance? Why? •Last but not least, and introduction of a new modulation Double Binary Offset Carrier (DBOC) and check which would be the changes with respect to simple BOC. Since there is not a unified analysis of the BOC-like signals and all the formulas are provided for particular cases of ACF and PSD BOC modulations, this “new” modulation gives the opportunity to unify not only BPSK, BOCsin and BOCcos, but also a wider and more flexible range of split-spectrum modulations in a single framework. For more information see [19]. 101
Key of Terms Key of Terms •ACF: Autocorrelation Function •AltBOC: Alternate Binary Offset Carrier •ARNS: Aeronautical Radio Navigation Service •BOC: Binary Offset Carrier •BOCcos: Binary Offset Carrier with cosine sub-carrier •BOCsin: Binary Offset Carrier with sine sub-carrier •BPSK: Binary Phase Shift Keying •CASM: Coherent Adaptative Sub-carrier Modulation •CBOC: Composite Binary Offset Carrier •CCDF: Complementary Cumulative Distribution Function •CDF: Cumulative Distribution Function •CDMA: Code Division Mutlple Access •C/NAV: Commercial navigation message •DBOC: Double Binary Offset Carrier •EGNOS: European Geostationary Navigation Overlay Service •F/NAV: Freely accessible navigation message •GLONASS: GLObal'naya Navigatsionnaya Sputnikovaya Sistema •GPS: Global Positioning System •I/NAV: Integrity navigation message •JTIDS: Joint Tactical Information Distribution System •LFSR: Linear Feedback Shift Register •LSB: Least Significant Bit •MBOC: Multiplexed Binary Offset Carrier •MIDS: Multifunctional Information Distribution System •MSB: Most Significant Bit •NRZ: No-Return to Zero •PAPR: Peak-to-Average Power Ratio •PSK-R: Phase Shift Keying-Rectangular •PSD: Power Spectral Density •RNSS: Radio Navigation Satellite System 102
Acknowledgements Acknowledgements I would like to thank Dr. Máirtín O'Droma for allocating this project to me as it has given me the chance to learn a lot regarding the world of Matlab and Communications apart from having introduced me into the Galileo Satellite System. A special sense of gratitude for my parents and brother, Carme, Rafel and David, who have made this Erasmus experience possible by assisting me in every way they could. And finally, I give thanks to all my friends in Barcelona and all the friends and housemates I have met in Limerick and that, in their way, have also contributed to this project by supporting me whenever I needed it. 103
Appendix A Appendix A GALILEO: Introducing innovative modulation techniques Abstract This paper will present the different modulations and multiplexing techniques used in the Galileo Satellite System, namely Binary Offset Carrier (BOC), Alternate BOC (AltBOC) and Coherent Adaptative Sub- Carrier Modulation (CASM). While the first one can be considered the origin of all BOC- like signals, the second one can be regarded as both modulation and multiplexing technique, and the last one as a multiplexing technique to achieve a constant envelope signal that will be used in BOC-like signals. Finally, it will be introduced an unifying type modulation to gather all BOC-like signals into one formula: Double BOC (DBOC). Introduction Galileo is the European global navigation satellite system (GNSS) providing a highly accurate, guaranteed and global positioning service under civilian control. It is interoperable with Global Positioning System (GPS) and GLONASS, the two other current global satellite navigation systems (see figure in this page). American GPS has run successfully for many years but its positioning precision of civil signal is not high enough for user demands. Compared to GPS, Galileo can provide many services such as Open Service (OS), Public Regulated Service (PRS), Commercial Service (CS), Safety of Life (SOL) service and Safe and Rescue (SAR) service. European Galileo will come true that users will be satisfied with positioning precision of Galileo civil signal (signals will offer a guaranteed accuracy down to 1 metre, with value-added services achieving a real-time accuracy of 10 cm). For that, a new modulation technology will be taken by Galileo, Binary Offset Carrier (BOC), which, in the scope of emerging radionavigation satellite systems, is of special interest [9]. 104
Appendix A Binary Offset Carrier (BOC) BOC describes a class of spread-spectrum modulations recently introduced for the next generation of global navigation satellite systems. The design strategies of these BOC signals have so far focused on the spectral properties of these signals. The new generation GNSS, modernized GPS, and the European Galileo system will use BOC (or BOC-based) signals on different carriers and with different parameters. The main reasons for creating BOC signals were, on one hand, the need to improve traditional GNSS signals properties for better resistance to multipath interferences of all kinds and receiver noise, and on the other hand, the need for improved spectral sharing of the allocated bandwidth with existing signals (single carrier GPS) or future signals of the same class [15]. Since Binary Phase Shift Keying (BPSK) modulation is often used in the spread spectrum satellite communication systems, the splitting spectrum character of the BOC-modulated signals can achieve the spectrum isolation with the BPSK signals in the same band. So, BOC modulation will be widely applied gradually as the crowding of the communication band [16]. BOC modulations offer two independent design parameters: sub-carrier frequency fs (in MHz) and spreading code rate fc (in Mcps). These two parameters provide freedom to concentrate signal power within specific parts of the allocated band to reduce interference with the reception of other signals [7]. The result of the sub-carrier modulation is to split the classical BPSK spectrum in two symmetrical components with no remaining power on carrier frequency [17]. The product is a symmetric split spectrum with two main lobes shifted from the carrier frequency by the amount equal to the sub-carrier frequency (see figure in this page). When it comes to the reception of the signal, the redundancy in the upper and lower sidebands of BOC modulations offers practical advantages in receiver processing for signal acquisition, code tracking, carrier tracking, and data demodulation [7]. In most ways, receiver processing of BOC modulations is similar to receiver processing of PSK-R (Phase Shift Keying with Rectangular symbol) modulations. However, BOC modulations offer some unique 105
Appendix A scosBOC t= p' t∗∑ l=0 1∑ i=0 n−1 −1ilt−iTs−lTs 2 where: •p'(t) is a rectangular pulse of amplitude 1 and duration Ts /2. •l accounts for the splitting of the half period. If this last expression is developed by the summation in l, it will be checked out that a BOCcos is only a BOCsin modulated signal where its half periods have been split into two parts and where the second part of each split half period is multiplied by -1, thus achieving the appropriate waveform of the sign(cos(·)). Taking this step further, it can be generalised for cases where the parameter l goes not only until 1, but higher levels. Doing this, we can write a general formula that will involve the modulations studied before: sDBOC t=pt∗∑ l=0 n' −1∑ i=0 n−1 −1ilt−iT s−lTs n' where: • pt is a rectangular pulse of amplitude 1 and duration Ts /n'. •n' can be seen as the order of the second stage (in case of BOCcos it is 2). obtaining: xt=sDBOC t∗dt The advantage of this modulation is that the 112
Appendix A higher it is n' the more separated the main lobes are located from the centre sub-carrier frequency, thus avoiding interferences with GPS in L1 band for example. However, the counterpart to be assumed is to use more bandwidth. It also provides a more comfortable way to write BOC-like signals and have them all gathered into one single formula, since giving different values to n and n' several modulations can be obtained: •n = 1 ; n' = 1 → DBOC = BPSK •n > 1 ; n' = 1 → DBOC = BOCsin •n > 1 ; n' = 2 → DBOC = BOCcos •n >1 ; n' > 2 → High order DBOC Conclusions This paper introduced three modulations (BOC, AltBOC and CASM) which are currently used in the GNSS. Although it has been shown that both AltBOC and CASM can also be interpreted as a multiplexing scheme, they have been described as single modulations. It has been shown the advantages of each of them regarding Galileo signals: the spectral isolation and receiver processing that BOC signals can provide, the way in which more than one channel can be introduced in the same subcarrier with AltBOC, and the very necessary feature of constant envelope that CASM modulation provides by adding intermodulation products to the desired signal. In particular, for this last case, some mathematical calculation has been provided for the better understanding of the modulation. Finally, a new way of expressing BOC signals has been introduced, DBOC, thus giving its pros and cons and analysing the different types that can be obtained depending on its modulation parameters. References: [1] European Space Agency/European GNSS Supervisory Authority. “Galileo Open Service. Signal in Space Interface Document. OS SIS ICD , Draft 1", 2008. URL (2009-04-09): http://www.gsa.europa.eu/go/galileo/os-sis-icd/ galileo-open-service-signal-in-space-interface- control-document#Register [2] Galileo Joint Undertaking. “L1 band part of Galileo Signal in Space ICD (SIS ICD)”, pp 12,15; 2005. URL (2009-04-09): http://www2.matimop.org.il/1/foreign/Galileo %20Signal.pdf [3] Ester Armengou Miret. “Galileo Signal in Space Design", pp 10,11; May 2005. URL (2009-04-09): http://www.galileoic.org/la/files/SignalPresenta tion_MasterPolito_9thMay2005.pdf [4] John W. Betz. “Binary Offset Carrier 113
Appendix A Modulation for Radionavigation", Journal of The Institute of Navigation Vol. 48, No. 4, pp 227-229, 230-231, 235-236, 244-245; March 2002. [5] José-Ángel Ávila Rodríguez, Guenter W. Hein, Stefan Wallner, Jean-Luc Issler, Lionel Ries, Laurent Lestarquit, Antoine De Latour, Jeremie Godet, Frederic Bastide, Tony Pratt and John Owen. “The MBOC modulation. A Final Touch for the Galileo Frequency and Signal Plan", Inside GNNS, p 55; September/October 2007. [6] Olivier Julien, Christophe Macabiau, Jean- Luc Issler and Lionel Ries. “Two for One. Tracking Galileo CBOC Signal with TMBOC", Inside GNSS, pp 50-51, 53-54; Spring 2007. [7] Davide Margaria, Fabio Dovis and Paolo Mulassano. “Galileo AltBOC Signal Multiresolution Acquisition Strategy", IEEE A&E SYSTEMS MAGAZINE, pp 4-5; November 2008. [8] John G. Proakis, Masoud Salehi. “Communication Systems Engineering”. Prentice-Hall, pp 180-183 ; 1994. [9] Li Qiang, Li Huifeng, Liu Bing. “A new algorithm of BOC multipath errors simulation", Second International Conference on Space Information Technology. Proc. of SPIE Vol. 6795, 67950M, doi 10.1117/12.773751, pp 3-5; 2007. [10] Grace Xingxin Gao, Jim Spilker, Todd Walter, Per Enge. Standfor University, USA. “Code Generation Scheme and Property Analysis of Broadcast Galileo L1 and E6 Signals", p 7. URL (2009-04-09): http://waas.stanford.edu/~wwu/papers/gps/PDF /GaoIONGNSS06.pdf [11] Guenter W. Hein, Jeremie Godet, Jean-Luc Issler, Jean-Christophe Martin, Philippe Erhard, Rafael Lucas-Rodriguez and Tony Pratt. “Status of Galileo Frequency and Signal Design”, Proceedings of the 15th International Technical Meeting of the Satellite Division of the Institute of Navigation ION GPS 2002, pp 5, 10-12; September 24-27, 2002. [12] ESA Publications Division. "The First Galileo Satellites. Galileo In-Orbit Validation Element", p17; November 2005. URL (2009-04-09): http://www.mi.gov.pl/1/files/0/3141/galileo_broc hure.pdf [13] European Space Agency. “Galileo Full Operation Capability (FOC). Ground Mission Segment. High Level Requirements Document. Appendix 2-A”, p 6; 1 July 2008. [14] E. Sayrol, A. Gasull, A. Moreno, J. Salavedra, F. Vallverdú. “Senyals i sistemes 114
Appendix A analògics. Una introducció pràctica”, UPC Editions, p 91; 2001. [15] B.Muth, P. Oonincx and C.Tiberius. “A time domain fingerprint for BOC(m,n) Signals”, EURASIP Journal on Advances in Signal Processing. Volume 2007, Article ID 56104, p 1; 10 April 2007. [16] Li Yang, YongxinFeng, ChengshengPan, YumingBo. “The research of side-band acquisition for BOC modulated signals”, p 645; 2007. URL (2009-04-09) (from UL e-Resources): http://ieeexplore.ieee.org.proxy.lib.ul.ie/stamp/s tamp.jsp?arnumber=04339942 [17] Kai Borre. “The Galileo signals with emphasis on L1 OS”, 12th International Power Electronics and Motion Control Conference, ERE-PEMC 2006, pp 2027, 2028; 30-08-2006/ 01-09-2006. [18] Emilie Rebeyrol, Olivier Julien, Christophe Macabiau, Lionel Ries, Antoine Delatour, Laurent Lestarquit. “Galileo civil signal modulations”, GPS Solut (2007) 11:159-171, DOI 10.1007/s10291-006-0047-3, pp 159, 163- 165; 21 December 2006. [19] Elena Simona Lohan, Abdelmonaem Lakhzouri, Markku Renfors. “Binary-Offset- Carrier modulation techniques with applications in satellite navigation system”, Wireless Communications and Mobile Computing, Wiley InterScience, DOI 10.1002/wcm.407, pp 767-770; 7th July 2006. [20] Günter W. Hein, Markus Irsigler, José Ángel Avila Rodríguez and Thomas Pany. “Performance of Galileo L1 Signal Candidates”, pp 3-4, 6-8, 13-14. URL (2009-04-13): http://forschung.unibwmuenchen.de/papers/ktmzvhb7tqqpis3srpl7anp3 bk6izl.pdf [21] Elena Simona Lohan, Abdelmonaem Lakhzouri, Markku Renfors. “Complex doublebinary-offset-carrier modulation for a unitary characterisation of Galileo and GPS signals” The Institute of Engineering and Technology 2006. IEE Proc.-Radar Sonar Navig., Vol 153, No 5, doi:10.1049/ip-rsn:20060005, pp 403- 404; October 2006. 115
Appendix B Appendix B Matlab scripts 1. Navigation Signals function AllSign [Ie5,Qe5]=sE5n; [Ie6,Qe6,ChAe6]=sE6; [Il1,Ql1]=sL1; % figure(1);%OK % plot(abs(Ie5)); % title('E5aI & E5bI'); % % figure(2);%OK % plot(abs(Ie6)); % title('E6B'); % % figure(3);%OK % plot(abs(ChAe6)); % title('E6A'); % % figure(4);%OK % plot(abs(Il1)); % title('L1B & L1C'); % % figure(5);%OK % plot(abs(Qe5),'color','red'); % title('E5aQ & E5bQ'); % % figure(6);%OK % plot(abs(Qe6),'color','red'); % title('E6C'); % % figure(7);%OK % plot(abs(Ql1),'color','red'); % title('L1A'); % % Ie5=Ie5(0.410400e6:4.910400e6); % Qe5=Qe5(0.410400e6:4.910400e6); % % ChAe6=ChAe6(100000:1805999); % Ie6=Ie6(100000:1805999); % Ql1=Ql1(100000:end-100000); % Qe6=Qe6(0.1e6:1945999); %2045999 % z1=zeros(1,87); % z2=zeros(1,200); % I pad with zeros Ie6 to have same length as ChAe6 116
Appendix B L=length(ChAe6)-length(Ie6); L=L/2; p=zeros(1,L); Ie6=[p Ie6 p]; I=[abs(Ie5) (abs(Ie6)+abs(ChAe6)) abs(Il1)]; Q=[abs(Qe5) abs(Qe6) abs(Ql1)]; %______________________PLOT_______________________________________________ figure(8); subplot(2,1,1), plot(I); xlim([0 8.45e6]); ylabel('In-Phase'); title('Navigation Signals'); % str1(1)={'E5aI & E5bI'}; % str1(2)={'AltBOC(15,10)'}; % text(1.7e6,1e-4,str1); % str2(1)={'E6A'}; % str2(2)={'BOCcos(10,5)'}; % text(4.3e6,1.65e-4,str2); % str3(1)={'E6B'}; % str3(2)={'BPSK(5)'}; % text(5e6,2.55e-4,str3); % str4(1)={'L1B & L1C'}; % str4(2)={'CBOC(6,1,1/11)'}; % text(6e6,2.5e-4,str4); subplot(2,1,2), plot(Q,'color','red'); xlim([0 8.273e6]); ylabel('Quadrature'); title('Navigation Signals'); % str1(1)={'E5aQ & E5bQ'}; % str1(2)={'AltBOC(15,10)'}; % text(1.7e6,1e-4,str1); % str2(1)={'E6C'}; % str2(2)={'BPSK(5)'}; % text(4.4e6,1.3e-4,str2); % str3(1)={'L1A'}; % str3(2)={'BOCcos(15,2.5)'}; % text(5.85e6,1.75e-4,str3); function [RGs,IGs]=sE5 % Generates Galileo's signal E5 with AltBOC(15,10) modulation and % parameters with one eigth (T/8) of the subcarriers' period. %*************************************************************** fsamp=240*1.023e6; % Sampling frequency: 245.52 Mhz fs=15*1.023e6; % Sub-Carrier frequency: 15.345 Mhz fc=10*1.023e6; % Chiprate: 10.23 Mcps SraI=50; % Symbol rate aI: 50 Sps SrbI=250; % Symbol rate bI: 250 Sps Tsamp=1/fsamp; % Sample time 10.861 ns TraI=1/SraI; % aI symbol time 20 ms TrbI=1/SrbI; % bI symbol time 4 ms BaI=1; % 1 bits ---> 40ms duration BbI=5; % 5 bits ---> 40ms duration 117
Appendix B D=BaI*TraI; % Duration of simulation % It'd be the same if D=BbI*TrbI t=0:Tsamp:D-Tsamp; %++++++++++++++++++++++cdma sequences++++++++++++++++++++++++++++++ [CaI,CaQ,CbI,CbQ]=draftcdmaE5; CaI=expan(CaI,fsamp,fc); CaQ=expan(CaQ,fsamp,fc); CbI=expan(CbI,fsamp,fc); CbQ=expan(CbQ,fsamp,fc); % PROBLEM: Since the duration of pilot channels is longer, when it comes to % multiply the signals in Matlab, all signals must have the same length. % Therefore, quadrature channels' length will be truncated to in-phase length. CaI=fulltime(CaI',BaI); CaQ=CaQ(1:1:length(CaI)); CbI=fulltime(CbI',BbI); CbQ=CbQ(1:1:length(CbI)); % However, the shorter signal coud be padded with zeros so that they had % the same length. But, doing so it would entail memory problems. % It can also be possible to set a common length for all signals so that % all of them are 100 ms long. Then, data channels should send enough bits % to fill the whole duration. Therefore, doing so the timeline should be % varied also, which is the origin of all the inconveniences. %++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++++ DaI=-1; %-sign(randn(1,BaI)); DbI=[1 -1 1 1 -1]; %-sign(randn(1,BbI)); DaI=expan(DaI,fsamp,SraI); DbI=expan(DbI,fsamp,SrbI); %---------------------signal components---------------------------- sdaI=DaI'.*CaI; % e5aI sdaQ=CaQ'; % e5aQ sdbI=DbI'.*CbI; % e5bI sdbQ=CbQ'; % e5bQ asdaI=sdaQ.*sdbI.*sdbQ; % *e5aI = e5aQ·e5bI·e5bQ asdaQ=sdaI.*sdbI.*sdbQ; % *e5aQ = e5aI·E5bI·e5bQ asdbI=sdbQ.*sdaI.*sdaQ; % *e5bI = e5bQ·e5aI·e5aQ asdbQ=sdbI.*sdaI.*sdaQ; % *e5bQ = e5bI·e5aI·e5aQ %____________________signal parameters____________________________ % The parameters scE5-S and scE5-P represent the four-valued sub-carrier % functions for the single signals and the product signals respectively: sc_s=parameters('s'); %sc_s sc_p=parameters('p'); %sc_p samples=[sc_s(4) sc_s(3) sc_s(2) sc_s(1)]; dsc_s=[samples sc_s]; dsc_s=dsc_s(1:1:length(dsc_s)-4); %sc_s delayed Ts/4 samples=[sc_p(4) sc_p(3) sc_p(2) sc_p(1)]; 118
Appendix B dsc_p=[samples sc_p]; dsc_p=dsc_p(1:1:length(dsc_p)-4); %sc_p delayed Ts/4 % sub-carriers PLOT: % figure(1); % subplot(2,1,1),plot(t,sc_s); axis([2/fs 5/fs -1.3 1.3]); title('subcarrier AS'); xlabel('2 samples/value'); % subplot(2,1,2),plot(t,sc_p); axis([2/fs 5/fs -1.3 1.3]); title('subcarrier AP'); xlabel('2 samples/value'); %_________________________________________________________________ %keeping on signal components... A=1/(2*sqrt(2)); %e5(t) s=A*(((sdaI+(j*sdaQ)).*(sc_s-(j*dsc_s)))+((sdbI+(j*sdbQ)).*(sc_s+(j*dsc_s)))+ ((asdaI+(j*asdaQ)).*(sc_p-(j*dsc_p)))+((asdbI+(j*asdbQ)).*(sc_p+(j*dsc_p)))); Re=real(s); Im=imag(s); [Rss,lag]=xcorr(s,'coeff'); [RGs,fre]=shcenteredFFT(Re,fsamp); [IGs,fim]=shcenteredFFT(Im,fsamp); % PSD PLOT figure(2); subplot(2,1,1), plot(fre,abs(RGs)); title('E5 PSD'); ylabel('In-Phase'); xlabel('hertzs');xlim([-125e6 125e6]); subplot(2,1,2), plot(fim,abs(IGs)); title('E5 PSD'); ylabel('Quadrature'); xlabel('hertzs');xlim([-125e6 125e6]); % ACF PLOT figure(3); plot(lag,abs(Rss)); xlim([-40 40]); title('ACF AltBOC(15,10)'); function sE5nopa %Generates Galileo's signal E5 with AltBOC(15,10) modulation fsamp=120*1.023e6; % Sampling frequency: 92.07 Mhz fs=15*1.023e6; % Sub-Carrier frequency: 15.345 Mhz fc=10*1.023e6; % Chiprate: 10.23 Mcps SraI=50; % Symbol rate aI: 50 Sps SrbI=250; % Symbol rate bI: 250 Sps Tsamp=1/fsamp; % Sample time 10.861 ns TraI=1/SraI; % aI symbol time 20 ms TrbI=1/SrbI; % bI symbol time 4 ms BaI=1; % 2 bits ---> 40ms duration BbI=5; % 10 bits ---> 40ms duration D=BaI*TraI; % Duration of simulation 119
Appendix B % It'd be the same if D=BbI*TrbI t=0:Tsamp:D-Tsamp; %++++++++++++++++++++++++cdma sequences++++++++++++++++++++++++++++++ [CaI,CaQ,CbI,CbQ]=draftcdmaE5; CaI=expan(CaI,fsamp,fc); CaQ=expan(CaQ,fsamp,fc); CbI=expan(CbI,fsamp,fc); CbQ=expan(CbQ,fsamp,fc); CaI=fulltime(CaI',BaI); CaQ=CaQ(1:1:length(CaI)); CbI=fulltime(CbI',BbI); CbQ=CbQ(1:1:length(CbI)); %figure(1); %plot(t,CaI);axis([0 (900*Tsamp) -1.15 1.15]); %++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++++ DaI=-sign(randn(1,BaI)); DbI=-sign(randn(1,BbI)); DaI=expan(DaI,fsamp,SraI); DbI=expan(DbI,fsamp,SrbI); %figure(2); %subplot(2,1,1), plot(t,DaI);axis([0 .2 -1.1 1.1]); xlabel('seconds'); %subplot(2,1,2), plot(t,DbI);axis([0 .2 -1.1 1.1]); xlabel('seconds'); %++++++++++++++++++++++sub-carrier sequence++++++++++++++++++++++++ sc_s=sign(sin(2*pi*fs*t)); sc_p=sign(cos(2*pi*fs*t)); %figure(3); %hold on %plot(t,sc); axis([0 7.5/fs -1.1 1.1]); %plot(t,fullCaI,'color','r'); axis([0 5/fc -1.1 1.1]); %hold off; %---------------------signal components---------------------------- sdaI=DaI'.*CaI; % e5aI sdaQ=CaQ'; % e5aQ sdbI=DbI'.*CbI; % e5bI sdbQ=CbQ'; % e5bQ asdaI=sdaQ.*sdbI.*sdbQ; % *e5aI = e5aQ·e5bI·e5bQ asdaQ=sdaI.*sdbI.*sdbQ; % *e5aQ = e5aI·E5bI·e5bQ asdbI=sdbQ.*sdaI.*sdaQ; % *e5bI = e5bQ·e5aI·e5aQ asdbQ=sdbI.*sdaI.*sdaQ; % *e5bQ = e5bI·e5aI·e5aQ %figure(4); %subplot(2,1,1), plot(t,asdaI); axis([l1 l2 -1.1 1.1]); title('In-phase'); %subplot(2,1,2), plot(t,asdaQ); axis([l1 l2 -1.1 1.1]); title('Quadrature'); %sc_s %sc_p 120
Appendix B ind=length(sc_s); samples=[sc_s(ind-4) sc_s(ind-3) sc_s(ind-2) sc_s(ind-1)]; dsc_s=[samples sc_s]; dsc_s=dsc_s(1:1:length(dsc_s)-4); %sc_s delayed Ts/4 ind=length(sc_p); samples=[sc_p(ind-4) sc_p(ind-3) sc_p(ind-2) sc_p(ind-1)]; dsc_p=[samples sc_p]; dsc_p=dsc_p(1:1:length(dsc_p)-4); %sc_p delayed Ts/4 % % figure(5); % subplot(2,1,1),plot(t,sc_p); axis([0 3/fs -1.3 1.3]); % subplot(2,1,2),plot(t,dsc_p); axis([0 3/fs -1.3 1.3]); %_________________________________________________________________ A=1/(2*sqrt(2)); %e5(t) sE5=A*(((sdaI+(j*sdaQ)).*(sc_s-(j*dsc_s)))+((sdbI+(j*sdbQ)).*(sc_s+(j*dsc_s)))+ ((asdaI+(j*asdaQ)).*(sc_p-(j*dsc_p)))+((asdbI+(j*asdbQ)).*(sc_p+(j*dsc_p)))); Re=real(sE5); Im=imag(sE5); [Rss,lag1]=xcorr(sE5,'coeff'); [Ree,lag2]=xcorr(Re,'coeff'); [Imm,lag3]=xcorr(Im,'coeff'); [RGboc,fre]=shcenteredFFT(Ree,fsamp); [IGboc,fim]=shcenteredFFT(Imm,fsamp); [Gboc,f]=shcenteredFFT(Rss,fsamp); % PSD PLOT % figure(6); % subplot(3,1,2), plot(fre,abs(RGboc)); title('Real PSD NP'); ylabel('In- % Phase'); xlabel('hertzs'); % subplot(3,1,3), plot(fim,abs(IGboc)); title('Imaginary PSD NP'); % ylabel('Quadrature'); xlabel('hertzs'); % subplot(3,1,1), plot(f,abs(Gboc));title('E5 PSD NP'); % ACF PLOT % figure(7); % subplot(2,1,1),plot(lag2,abs(Ree)); xlim([-40 40]); title('E5 ACF RE % AltBOC(15,10) NP'); xlabel('samples'); % subplot(2,1,2),plot(lag3,abs(Imm)); xlim([-40 40]); title('E5 ACF IM % AltBOC(15,10) NP'); xlabel('samples'); figure(8); plot(lag1,abs(Rss)), xlim([-40 40]); xlabel('samples'); title('ACF AltBOC(15,10) NP'); function [RGs,IGs]=sE5n % Generates Galileo's signal E5 with AltBOC(15,10) modulation and % parameters with one eigth (T/8) of subcarriers' period. %*************************************************************** 121
Appendix B CB=fulltime(CB',BCB); CC=CC(1:1:length(CB)); %figure(1); %subplot(3,1,1), plot(t,CA); axis([0 30/fc_A -1.2 1.2]); title('CDMA A'); %subplot(3,1,2), plot(t,CB); axis([0 60/fc_A -1.2 1.2]); title('CDMA B'); %subplot(3,1,3), plot(t,CC); axis([0 15/fc_A -1.2 1.2]); title('CDMA C'); %+++++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++ DCA=-sign(randn(1,BCA)); DCA=expan(DCA,fsamp,SrA); DCB=-sign(randn(1,BCB)); DCB=expan(DCB,fsamp,SrB); %figure(2); %subplot(2,1,1), plot(t,DCA); axis([0 5/SrA -1.2 1.2]); title('bits channel A'); %subplot(2,1,2), plot(t,DCB); axis([0 2/SrB -1.2 1.2]); title('bits channel B'); %++++++++++++++++++++++++signal components++++++++++++++++++++++++++ scA=sign(cos(2*pi*fs_A*t)); %sucbarrier channel A: 15fo sca=sign(sin(2*pi*fs_a*t)); %subcarrier parameter a: fo scb=sign(sin(2*pi*fs_b*t)); %subcarrier parameter b: 6fo alfa=sqrt(10/11); %parameters for E1 signal beta=sqrt(1/11); scB=(alfa*sca)+(beta*scb); %Subcarriers ch B&C for E1 signal scC=(alfa*sca)-(beta*scb); A=1/sqrt(2); e1A=DCA'.*CA; e1B=DCB'.*CB; e1C=CC'; %----------------------E1 SIGNAL---------------------------------- sE1=A*((e1B.*scB)-(e1C.*scC)); RE1=xcorr(sE1,'coeff'); [SE1,fE1]=shcenteredFFT(RE1,fsamp); % figure(3); % plot(fE1,abs(SE1)); title('E1 PSD'); %----------------------------------------------------------------- %---------------------L1 CASM SIGNAL------------------------------ % By Galileo SIS-ICD ---> fs is fo for both channels eL1B=e1B.*sign(sin(2*pi*fo*t)); eL1C=e1C.*sign(sin(2*pi*fo*t)); %It is only provided that it's a BOCcos(15,2.5) eL1A=e1A.*scA; sCASM=(1/3)*((sqrt(2)*(eL1B-eL1C))+(j*((2*eL1A)+(eL1A.*eL1B.*eL1C)))); 128
Appendix B Re=(1/3)*(sqrt(2)*(eL1B-eL1C));%real(sCASM); Im=(1/3)*((2*eL1A)+(eL1A.*eL1B.*eL1C));%imag(sCASM); Rre=xcorr(Re,'coeff'); Rim=xcorr(Im,'coeff'); Rss=xcorr(sCASM,'coeff'); [Sreal,fre]=shcenteredFFT(Rre,fsamp); [Simag,fim]=shcenteredFFT(Rim,fsamp); [Ss,fs]=shcenteredFFT(Rss,fsamp); [ReA,lag1]=xcorr(eL1A,'coeff'); [ReC,lag2]=xcorr(eL1C,'coeff'); % ACF PLOT figure(4); subplot(2,1,1), plot(lag1,ReA); xlim([-100 100]); title('ACF L1A BOCcos(15,2.5)');xlabel('samples'); subplot(2,1,2), plot(lag2,ReC); xlim([-100 100]); title('ACF L1C BOC(1,1)');xlabel('samples'); % PSD PLOT figure(5); subplot(3,1,1), plot(fs,abs(Ss)); title('L1 CASM PSD');xlabel('hertzs'); subplot(3,1,2), plot(fre,abs(Sreal),'color','g');xlabel('hertzs'); ylabel('Inphase'); title('L1 CASM Real PSD'); subplot(3,1,3), plot(fim,abs(Simag),'color','r');xlabel('hertzs'); ylabel ('Quadrature'); title('L1 CASM Imaginary PSD'); function sE5ce % checks if signal e5 is a complex envelope signal or not. fsamp=240*1.023e6; % Sampling frequency: 245.52 Mhz fs=15*1.023e6; % Sub-Carrier frequency: 15.345 Mhz fc=10*1.023e6; % Chiprate: 10.23 Mcps SraI=50; % Symbol rate aI: 50 Sps SrbI=250; % Symbol rate bI: 250 Sps Tsamp=1/fsamp; % Sample time 10.861 ns TraI=1/SraI; % aI symbol time 20 ms %TrbI=1/SrbI; % bI symbol time 4 ms BaI=1; % 1 bits ---> 40ms duration BbI=5; % 5 bits ---> 40ms duration D=BaI*TraI; % Duration of simulation % It'd be the same if D=BbI*TrbI t=0:Tsamp:D-Tsamp; theta = linspace(0,2*pi,100); % create vector theta x = cos(theta); % generate x-coordinate y = sin(theta); % generate y-coordinate %++++++++++++++++++++++cdma sequences++++++++++++++++++++++++++++++ [CaI,CaQ,CbI,CbQ]=draftcdmaE5; CaI=expan(CaI,fsamp,fc); 129
Appendix B CaQ=expan(CaQ,fsamp,fc); CbI=expan(CbI,fsamp,fc); CbQ=expan(CbQ,fsamp,fc); CaI=fulltime(CaI',BaI); CaQ=CaQ(1:1:length(CaI)); CbI=fulltime(CbI',BbI); CbQ=CbQ(1:1:length(CbI)); %++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++++ DaI=-1;%-sign(randn(1,BaI)); DbI=[1 -1 1 1 -1];%-sign(randn(1,BbI)); DaI=expan(DaI,fsamp,SraI); DbI=expan(DbI,fsamp,SrbI); %---------------------signal components---------------------------- sdaI=DaI'.*CaI; % e5aI sdaQ=CaQ'; % e5aQ sdbI=DbI'.*CbI; % e5bI sdbQ=CbQ'; % e5bQ asdaI=sdaQ.*sdbI.*sdbQ; % *e5aI = e5aQ·e5bI·e5bQ asdaQ=sdaI.*sdbI.*sdbQ; % *e5aQ = e5aI·E5bI·e5bQ asdbI=sdbQ.*sdaI.*sdaQ; % *e5bI = e5bQ·e5aI·e5aQ asdbQ=sdbI.*sdaI.*sdaQ; % *e5bQ = e5bI·e5aI·e5aQ % figure(1) % subplot(4,2,1), plot(t,sdaI); axis([0 10/fs -1.3 1.3]); % subplot(4,2,2), plot(t,sdaQ); axis([0 10/fs -1.3 1.3]); % subplot(4,2,3), plot(t,sdbI); axis([0 10/fs -1.3 1.3]); % subplot(4,2,4), plot(t,sdbQ); axis([0 10/fs -1.3 1.3]); % subplot(4,2,5), plot(t,asdaI); axis([0 10/fs -1.3 1.3]); % subplot(4,2,6), plot(t,asdbI); axis([0 10/fs -1.3 1.3]); % subplot(4,2,7), plot(t,asdaQ); axis([0 10/fs -1.3 1.3]); % subplot(4,2,8), plot(t,asdbQ); axis([0 10/fs -1.3 1.3]); %____________________signal parameters____________________________ %The parameters scE5-S and scE5-P represent the four-valued sub-carrier %functions for the single signals and the product signals respectively: sc_s=parameters('s'); %sc_s sc_p=parameters('p'); %sc_p %ind=length(sc_s); samples=[sc_s(4) sc_s(3) sc_s(2) sc_s(1)]; dsc_s=[samples sc_s]; dsc_s=dsc_s(1:1:length(dsc_s)-4); %sc_s delayed Ts/4 %ind=length(sc_p); samples=[sc_p(4) sc_p(3) sc_p(2) sc_p(1)]; dsc_p=[samples sc_p]; dsc_p=dsc_p(1:1:length(dsc_p)-4); %sc_p delayed Ts/4 pcss=sc_s+j*dsc_s; pcsp=sc_p+j*dsc_p; %_________________________________________________________________________ % keeping on signal components... 130
Appendix B A=1/(2*sqrt(2)); % e5(t) s=A*(sdaI.*conj(pcss) + sdbI.*pcss + asdaI.*conj(pcsp) + asdbI.*pcsp + j*(sdaQ.*conj(pcss) + sdbQ.*(pcss) + asdaQ.*conj(pcsp) + asdbQ.*pcsp)); %s=A*(((sdaI+(j*sdaQ)).*(sc_s-(j*dsc_s)))+((sdbI+(j*sdbQ)).*(sc_s+(j*dsc_s)))+ ((asdaI+(j*asdaQ)).*(sc_p-(j*dsc_p)))+((asdbI+(j*asdbQ)).*(sc_p+(j*dsc_p)))); figure(1) plot(s); axis([-1.1 1.1 -1.1 1.1]); xlabel('In-Phase'); ylabel('Quadrature'); title('\bf {Equivalent 8-PSK constellation for AltBOC(15,10)}'); hold on plot(x,y,'color','m','linewidth',2); axis('equal'); hold off R=real(s); I=imag(s); % Peak-to-Peak Average Power Ratio -.-.-.-.- Defined as: 10 log (Ppeak/Paverage) avrg=(s*s')/length(s); % Mean Square Value: summation of all samples divided by number of samples peak=max(s.*conj(s)); % Peak Value: all samples to the square and then we pick the highest one papr=peak./avrg; % PAPR lineal dBpapr=10*log10(papr); % PAPR dB figure(2) subplot(1,2,1),regorcdfplot(papr,'PAPR values E5','CDF'); subplot(1,2,2),ccdfplot(papr,'PAPR values E5','CCDF'); figure(3) subplot(2,2,1),regorcdfplot(R,'real values E5','CDF'); subplot(2,2,2),ccdfplot(R,'real values E5','CCDF'); subplot(2,2,3),regorcdfplot(I,'imaginary values E5','CDF'); subplot(2,2,4),ccdfplot(I,'imaginary values E5','CDF'); function sE6ce % Checks the constant modulus envelope for signal E6 fo=1.023e6; fsamp=100*fo; fs=10*fo; fc=5*fo; SrB=1000; Tsamp=1/fsamp; BCB=10; BCA=BCB; D=BCB/SrB; 131
Appendix B t=0:Tsamp:D-Tsamp; theta = linspace(0,2*pi,100); % create vector theta x = sqrt(2)*cos(theta); % generate x-coordinate y = sqrt(2)*sin(theta); % generate y-coordinate %+++++++++++++++++++++++cdma sequences++++++++++++++++++++++++++++++ %E6 ranging codes are not provided in the SIS-ICD Draft 1 :( [CB,CC]=cdmaE6; CA=-CB; CA=expan(CA,fsamp,fc); CB=expan(CB,fsamp,fc); CC=expan(CC,fsamp,fc); CA=fulltime(CA',BCA); CB=fulltime(CB',BCB); CC=CC(1:1:length(CB)); %++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++++ DCB=[1 -1 1 -1 1 1 -1 1 -1 -1];%-sign(randn(1,BCB)); DCB=expan(DCB,fsamp,SrB); DCA=[-1 1 -1 -1 -1 1 1 1 1 -1];%sign(randn(1,BCA)); DCA=expan(DCA,fsamp,SrB); %+++++++++++++++++++++signal components+++++++++++++++++++++++++++ A=1/sqrt(2); % E6 signal channel B&C BPSK: e6B=DCB'.*CB; e6C=CC'; sBC=A*(e6B-e6C); % channels B&C in time as stated in OS SIS ICD % E6_channelA BOCcos(10,5); sc=sign(cos(2*pi*fs*t)); chA=DCA'.*CA.*sc; % channel A in time % E6 Multiplexing technique as stated in Reference [11] m=0.6155; % modulation index sE6=(chA*cos(m)-e6C*sin(m))+j*(e6B*cos(m)+chA.*e6B.*e6C*sin(m)); In=real(sE6); Q=imag(sE6); figure(1) plot(sE6);axis([-1.5 1.5 -1.6 1.6]); xlabel('Inphase');ylabel('Quadrature');title('\bf \it {Constellation for E6 signal}'); hold on plot(x,y,'color','m','linewidth',2); 132
Appendix B axis('equal'); hold off Rss=xcorr(sE6,'coeff'); Rii=xcorr(In,'coeff'); Rqq=xcorr(Q,'coeff'); [SE6,f]=shcenteredFFT(Rss,fsamp); [IN,f]=shcenteredFFT(Rii,fsamp); [QUA,f]=shcenteredFFT(Rqq,fsamp); figure(2); subplot(3,1,1), plot(f,abs(SE6));title('E6 PSD'); subplot(3,1,2), plot(f,abs(IN),'color','g');ylabel('In- Phase');xlabel('hertzs');title('E6 Real PSD'); subplot(3,1,3), plot(f,abs(QUA),'color','r');ylabel('Quadrature');xlabel('hertzs');title('E6 Imaginary PSD'); % Peak-to-Peak Average Power Ratio -.-.-.-.- Defined as: 10 log (Ppeak/Paverage) avrg=(sE6*sE6')/length(sE6); % Mean Square Value: summation of all samples divided by number of samples peak=max(sE6.*conj(sE6)); % Peak Value: all samples to the square and then we pick the highest one papr=peak./avrg; % PAPR lineal dBpapr=10*log10(papr); % PAPR dB display(avrg); display(peak); display(papr); figure(3) subplot(2,2,1),regorcdfplot(In,'real values E6','CDF'); subplot(2,2,2),ccdfplot(In,'real values E6','CCDF'); subplot(2,2,3),regorcdfplot(Q,'imaginary values E6','CDF'); subplot(2,2,4),ccdfplot(Q,'imaginary values E6','CCDF'); figure(4) subplot(1,2,1),regorcdfplot(papr,'PAPR values E6','CDF'); subplot(1,2,2),ccdfplot(papr,'PAPR values E6','CCDF'); function sL1ce %checks the constant envelope of L1 signal fo=1.023e6; fsamp=90*fo; fs_a=fo; %sub-carrier parameter a fs_b=6*fo; %sub-carrier parameter b fs_A=15*fo; %sub-carrier channel A fc_A=2.5*fo; %chip rate channel A fc=fo; %chip rate channels B&C SrA=625; SrB=250; Tsamp=1/fsamp; 133
Appendix B BCA=5; BCB=2; D=BCB/SrB; t=0:Tsamp:D-Tsamp; theta = linspace(0,2*pi,100); % create vector theta x = cos(theta); % generate x-coordinate y = sin(theta); % generate y-coordinate %++++++++++++++++++++++++++cdma sequences+++++++++++++++++++++++++++ [CA,CB,CC]=cdmaL1; CA=expan(CA,fsamp,fc_A); CB=expan(CB,fsamp,fc); CC=expan(CC,fsamp,fc); CA=fulltime(CA',BCA); CB=fulltime(CB',BCB); CC=CC(1:1:length(CB)); %+++++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++ DCA=-sign(randn(1,BCA)); DCA=expan(DCA,fsamp,SrA); DCB=-sign(randn(1,BCB)); DCB=expan(DCB,fsamp,SrB); %++++++++++++++++++++++++signal components++++++++++++++++++++++++++ scA=sign(cos(2*pi*fs_A*t)); %sucbarrier channel A: 15fo sca=sign(sin(2*pi*fs_a*t)); %subcarrier parameter a: fo scb=sign(sin(2*pi*fs_b*t)); %subcarrier parameter b: 6fo alfa=sqrt(10/11); %parameters for E1 signal beta=sqrt(1/11); scB=(alfa*sca)+(beta*scb); %Subcarriers ch B&C for E1 signal scC=(alfa*sca)-(beta*scb); A=1/sqrt(2); e1A=DCA'.*CA; e1B=DCB'.*CB; e1C=CC'; %----------------------E1 SIGNAL---------------------------------- sE1=A*((e1B.*scB)-(e1C.*scC)); %---------------------L1 CASM SIGNAL------------------------------ % By Galileo SIS-ICD ---> fs is fo for both channels eL1B=e1B.*sign(sin(2*pi*fo*t)); eL1C=e1C.*sign(sin(2*pi*fo*t)); %It is only provided that it's a BOCcos(15,2.5) eL1A=e1A.*scA; 134
Appendix B sCASM=(1/3)*((sqrt(2)*(eL1B-eL1C))+(j*((2*eL1A)+(eL1A.*eL1B.*eL1C)))); R=real(sCASM); I=imag(sCASM); pow=sCASM.*conj(sCASM); display(min(pow)); display(max(pow)); figure(1); plot(sCASM);axis([-1.1 1.1 -1.1 1.1]);xlabel('In- Phase');ylabel('Quadrature');title('\bf \it{Constellation for L1 signal}'); hold on plot(x,y,'color','m','linewidth',2); axis('equal'); hold off % Peak-to-Peak Average Power Ratio -.-.-.-.- Defined as: 10 log (Ppeak/Paverage) avrg=(sCASM*sCASM')/length(sCASM); % Mean Square Value: summation of all samples divided by number of samples peak=max(sCASM.*conj(sCASM)); % Peak Value: all samples to the square and then we pick the highest one papr=peak./avrg; % PAPR lineal dBpapr=10*log10(papr); % PAPR dB % CDF and CCDF figure(2) subplot(1,2,1),regorcdfplot(papr,'PAPR values L1','CDF'); subplot(1,2,2),ccdfplot(papr,'PAPR values L1','CCDF'); figure(3) subplot(2,2,1),regorcdfplot(R,'real values L1','CDF'); subplot(2,2,2),ccdfplot(R,'real values L1','CCDF'); subplot(2,2,3),regorcdfplot(I,'imaginary values L1','CDF'); subplot(2,2,4),ccdfplot(I,'imaginary values L1','CCDF'); function tE5 % this script implements the PSD but without doing the ACF, just % transforming the signal in time and applying the square. fsamp=240*1.023e6; % Sampling frequency: 245.52 Mhz %fs=15*1.023e6; % Sub-Carrier frequency: 15.345 Mhz fc=10*1.023e6; % Chiprate: 10.23 Mcps SraI=50; % Symbol rate aI: 50 Sps SrbI=250; % Symbol rate bI: 250 Sps %Tsamp=1/fsamp; % Sample time 10.861 ns %TraI=1/SraI; % aI symbol time 20 ms %TrbI=1/SrbI; % bI symbol time 4 ms BaI=1; % 1 bits ---> 40ms duration BbI=5; % 5 bits ---> 40ms duration %D=BaI*TraI; % Duration of simulation % It'd be the same if D=BbI*TrbI %t=0:Tsamp:D-Tsamp; %++++++++++++++++++++++cdma sequences++++++++++++++++++++++++++++++ 135
Appendix B [CaI,CaQ,CbI,CbQ]=draftcdmaE5; CaI=expan(CaI,fsamp,fc); CaQ=expan(CaQ,fsamp,fc); CbI=expan(CbI,fsamp,fc); CbQ=expan(CbQ,fsamp,fc); CaI=fulltime(CaI',BaI); CaQ=CaQ(1:1:length(CaI)); CbI=fulltime(CbI',BbI); CbQ=CbQ(1:1:length(CbI)); %++++++++++++++++++++++data stream+++++++++++++++++++++++++++++++++ DaI=-1;%-sign(randn(1,BaI)); DbI=[1 -1 1 1 -1];%-sign(randn(1,BbI)); DaI=expan(DaI,fsamp,SraI); DbI=expan(DbI,fsamp,SrbI); %---------------------signal components---------------------------- sdaI=DaI'.*CaI; % e5aI sdaQ=CaQ'; % e5aQ sdbI=DbI'.*CbI; % e5bI sdbQ=CbQ'; % e5bQ asdaI=sdaQ.*sdbI.*sdbQ; % *e5aI = e5aQ·e5bI·e5bQ asdaQ=sdaI.*sdbI.*sdbQ; % *e5aQ = e5aI·E5bI·e5bQ asdbI=sdbQ.*sdaI.*sdaQ; % *e5bI = e5bQ·e5aI·e5aQ asdbQ=sdbI.*sdaI.*sdaQ; % *e5bQ = e5bI·e5aI·e5aQ %____________________signal parameters____________________________ %The parameters scE5-S and scE5-P represent the four-valued sub-carrier %functions for the single signals and the product signals respectively: sc_s=parameters('s'); %sc_s sc_p=parameters('p'); %sc_p samples=[sc_s(4) sc_s(3) sc_s(2) sc_s(1)]; dsc_s=[samples sc_s]; dsc_s=dsc_s(1:1:length(dsc_s)-4); %sc_s delayed Ts/4 samples=[sc_p(4) sc_p(3) sc_p(2) sc_p(1)]; dsc_p=[samples sc_p]; dsc_p=dsc_p(1:1:length(dsc_p)-4); %sc_p delayed Ts/4 pcss=sc_s+j*dsc_s; pcsp=sc_p+j*dsc_p; % [PCSS,fs]=shcenteredFFT(pcss,fsamp); % [PCSP,fs]=shcenteredFFT(pcsp,fsamp); % figure(1) % subplot(1,2,1),plot(fs,abs(PCSS).^2);title('subcarrier S'); % subplot(1,2,2),plot(fs,abs(PCSP).^2,'color','red');title('subcarrier P'); % % figure(2) % plot(fs,abs(PCSS).^2); %xlim([17.536800e6 17.537600e6]); % hold on % plot(fs,abs(PCSP).^2,'color','red') 136
Appendix B % hold off %_________________________________________________________________________ % keeping on signal components... % A=1/(2*sqrt(2)); % e5(t) % s=(((sdaI+(j*sdaQ)).*(sc_s-(j*dsc_s)))+((sdbI+(j*sdbQ)).*(sc_s+(j*dsc_s)))+ ((asdaI+(j*asdaQ)).*(sc_p-(j*dsc_p)))+((asdbI+(j*asdbQ)).*(sc_p+(j*dsc_p)))); % % sd=((sdaI+(j*sdaQ)).*(sc_s-(j*dsc_s)))+((sdbI+(j*sdbQ)).*(sc_s+(j*dsc_s))); % data % % sp=((asdaI+(j*asdaQ)).*(sc_p-(j*dsc_p)))+((asdbI+(j*asdbQ)).*(sc_p+ (j*dsc_p))); % pilot % [S,fs]=shcenteredFFT(s,fsamp); % [SD,f]=shcenteredFFT(sd,fsamp); % [SP,f]=shcenteredFFT(sp,fsamp); % sd can be also expressed as: % sd=sdaI.*conj(pcss) + sdbI.*pcss + j*(sdaQ.*conj(pcss)+sdbQ.*pcss); % s1=sdaI.*conj(pcss); % s2=sdbI.*pcss; % s3=sdaQ.*conj(pcss); % s4=sdbQ.*pcss; % [S1,f]=shcenteredFFT(s1,fsamp); % [S2,f]=shcenteredFFT(s2,fsamp); % [S3,f]=shcenteredFFT(s3,fsamp); % [S4,f]=shcenteredFFT(s4,fsamp); % figure(4) % subplot(2,2,1), plot(f,abs(S1).^2);xlabel('hertzs'); % subplot(2,2,2), plot(f,abs(S2).^2);xlabel('hertzs'); % subplot(2,2,3), plot(f,abs(S3).^2,'color','red');xlabel('hertzs'); % subplot(2,2,4), plot(f,abs(S4).^2,'color','red');xlabel('hertzs'); % sp can be also expressed as: % sp=asdaI.*conj(pcsp) + asdbI.*pcsp + j*(asdaQ.*conj(pcsp) + asdbQ.*(pcsp)) as1=asdaI.*conj(pcsp); as2=asdbI.*pcsp; as3=asdaQ.*conj(pcsp); as4=asdbQ.*pcsp; [AS1,f]=shcenteredFFT(as1,fsamp); [AS2,f]=shcenteredFFT(as2,fsamp); [AS3,f]=shcenteredFFT(as3,fsamp); [AS4,f]=shcenteredFFT(as4,fsamp); figure(5) subplot(2,2,1), plot(f,abs(AS1).^2);xlabel('hertzs'); subplot(2,2,2), plot(f,abs(AS2).^2);xlabel('hertzs'); subplot(2,2,3), plot(f,abs(AS3).^2,'color','red');xlabel('hertzs'); subplot(2,2,4), plot(f,abs(AS4).^2,'color','red');xlabel('hertzs'); 137
Appendix B sc=sign(sin(2*pi*fs*t)); for i=1:length(sc) if sc(i)==-1 sc(i)=1; end end sq=sqrt(2); AS=[((sq+1)*0.5) (0.5) (-0.5) ((-sq-1)*0.5) ((-sq-1)*0.5) (-0.5) (0.5) ((sq+1)*.5)]; AP=[((-sq+1)*0.5) (0.5) (-0.5) ((sq-1)*0.5) ((sq-1)*0.5) (-0.5) (0.5) ((- sq+1)*0.5)]; if c=='s' A=AS; else A=AP; end pasc=zeros(1,length(sc)); j=1; i=1; while i<=length(sc) pasc(i)=sc(i)*A(j); pasc(i+1)=sc(i+1)*A(j); %pasc(i+2)=sc(i+2)*AS(j); ----> in case fsamp=360 MHz j=j+1; i=i+2; if j==8 j=1; end end p=pasc; function [d]=expan(info,fs,fb) % makes an oversampling of the symbols using the kron function. % if we have an m-by-n object (X) and another p-by-q (Y) object % the result will be an object Z of m*p-by-n*q % so, if we want a matrix of 110-by-10 elements, we have to introduce % a 1-by-10 object and a 110-by-1 object. vinfo=ones(fs/fb,1); dmatrix=kron(info,vinfo); d=dmatrix(:); % puts all the columns back to back in a vector % This is the same process but manually: %dmat=ones(fs/fb,1)*info; %display (dmat); %d=dmat(:); %in case fs/fb is not a integer, vinfo will be a %truncated vector and the result of the kron function %is not the expected 144
Appendix B longd=length(d); longi=length(info); a=fs/fb; b=(a*longi)-longd; if (longd~=(a*longi)) last=d(end); rest=last*ones(b,1); d=[d;rest]; end function [d]=fulltime(x,b) % Repeats the signal until desired length aux=[]; for i=1:b aux=[aux x]; end d=aux; function [X,freq]=shcenteredFFT(x,Fs) % this is a custom function that helps in plotting the autocorrelation two-sided % spectrum % x is the signal that is to be transformed % Fs is the sampling rate N=length(x); % frequency axis if mod(N,2)==0 k=-N/2:N/2-1; % N even else k=-(N-1)/2:(N-1)/2; % N odd end T=N/Fs; freq=k/T; %the frequency axis xs=fftshift(x); %to avoid error in the phase % takes the fft of the signal, and adjusts the amplitude accordingly X=fft(xs)/N; % normalize the data X=fftshift(X); %shifts the fft data so that it is centered function [handleCDF,stats] = ccdfplot(x,xl,tl) % CDFPLOT Display an empirical cumulative distribution function. 145
Appendix B % CDFPLOT(X) plots an empirical cumulative distribution function (CDF) % of the observations in the data sample vector X. X may be a row or % column vector, and represents a random sample of observations from % some underlying distribution. % % H = CDFPLOT(X) plots F(x), the empirical (or sample) CDF versus the % observations in X. The empirical CDF, F(x), is defined as follows: % % F(x) = (Number of observations <= x)/(Total number of observations) % % for all values in the sample vector X. If X contains missing data % indicated by NaN's (IEEE arithmetic representation for % Not-a-Number), the missing observations will be ignored. % % H is the handle of the empirical CDF curve (a Handle Graphics 'line' % object). % % [H,STATS] = CDFPLOT(X) also returns a statistical summary structure % with the following fields: % % STATS.min = minimum value of the vector X. % STATS.max = maximum value of the vector X. % STATS.mean = sample mean of the vector X. % STATS.median = sample median (50th percentile) of the vector X. % STATS.std = sample standard deviation of the vector X. % % In addition to qualitative visual benefits, the empirical CDF is % useful for general-purpose goodness-of-fit hypothesis testing, such % as the Kolmogorov-Smirnov tests in which the test statistic is the % largest deviation of the empirical CDF from a hypothesized theoretical % CDF. % % See also QQPLOT, KSTEST, KSTEST2, LILLIETEST. % Copyright 1993-2004 The MathWorks, Inc. % $Revision: 1.5.2.1 $ $ Date: 1998/01/30 13:45:34 $ % Get sample cdf, display error message if any [yy,xx,n,emsg] = ccdfcalc(x); % if ~isempty(eid) % error(sprintf('stats:cdfplot:%s',eid),emsg); % end % Create vectors for plotting k = length(xx); n = reshape(repmat(1:k, 2, 1), 2*k, 1); xCDF = [-Inf; xx(n); Inf]; yCDF = [0; 0; yy(1+n)]; % % Now plot the sample (empirical) CDF staircase. % hCDF = plot(xCDF , yCDF,'linewidth',2); if (nargout>0), handleCDF=hCDF; end grid ('on') xlabel(xl) ylabel('1-Probability') title (tl) 146
Appendix B axis([-2 2 -0.05 1.05]) % % Compute summary statistics if requested. % if nargout > 1 stats.min = min(x); stats.max = max(x); stats.mean = mean(x); stats.median = median(x); stats.std = std(x); end function [yCDF,xCDF,n,emsg] = ccdfcalc(x,xname) %CDFCALC Calculate an empirical cumulative distribution function. % [YCDF,XCDF] = CDFCALC(X) calculates an empirical cumulative % distribution function (CDF) of the observations in the data sample % vector X. X may be a row or column vector, and represents a random % sample of observations from some underlying distribution. On % return XCDF is the set of X values at which the CDF increases. % At XCDF(i), the function increases from YCDF(i) to YCDF(i+1). % % [YCDF,XCDF,N] = CDFCALC(X) also returns N, the sample size. % % [YCDF,XCDF,N,EMSG] = CDFCALC(X) also returns an error message if X % is not a vector or if it contains no values other than NaN. % % See also CDFPLOT. % Copyright 1993-2002 The MathWorks, Inc. % $Revision: 1.5 $ $Date: 2002/01/17 21:30:11 $ % Ensure the data is a VECTOR. yCDF = []; xCDF = []; if (nargin < 2) if isempty(inputname(1)) xname = 'X'; else xname = inputname(1); end end n = 0; if (min(size(x)) ~= 1) emsg = sprintf('Input sample %s must be a vector.', xname); return; end % Remove missing observations indicated by NaN's. x = x(~isnan(x)); n = length(x); if n == 0 emsg = sprintf('Input sample %s has no valid data (all NaN''s).', ... xname); return; end 147
Appendix B % Sort observation data in ascending order. x = sort(x(:)); % % Compute cumulative sum such that the sample CDF is % F(x) = (number of observations <= x) / (total number of observations). % Note that the bin edges are padded with +/- infinity for auto-scaling of % the x-axis. % % Get cumulative sums yCDF = (1:n)' / n; % Remove duplicates; only need final one with total count notdup = ([diff(x(:)); 1] > 0); xCDF = x(notdup); yCDF = [0; 1-yCDF(notdup)]; emsg = ''; function [handleCDF,stats] = regorcdfplot(x,xl,tl) % CDFPLOT Display an empirical cumulative distribution function. % CDFPLOT(X) plots an empirical cumulative distribution function (CDF) % of the observations in the data sample vector X. X may be a row or % column vector, and represents a random sample of observations from % some underlying distribution. % % H = CDFPLOT(X) plots F(x), the empirical (or sample) CDF versus the % observations in X. The empirical CDF, F(x), is defined as follows: % % F(x) = (Number of observations <= x)/(Total number of observations) % % for all values in the sample vector X. If X contains missing data % indicated by NaN's (IEEE arithmetic representation for % Not-a-Number), the missing observations will be ignored. % % H is the handle of the empirical CDF curve (a Handle Graphics 'line' % object). % % [H,STATS] = CDFPLOT(X) also returns a statistical summary structure % with the following fields: % % STATS.min = minimum value of the vector X. % STATS.max = maximum value of the vector X. % STATS.mean = sample mean of the vector X. % STATS.median = sample median (50th percentile) of the vector X. % STATS.std = sample standard deviation of the vector X. % % In addition to qualitative visual benefits, the empirical CDF is % useful for general-purpose goodness-of-fit hypothesis testing, such % as the Kolmogorov-Smirnov tests in which the test statistic is the % largest deviation of the empirical CDF from a hypothesized theoretical % CDF. % % See also QQPLOT, KSTEST, KSTEST2, LILLIETEST. 148
Appendix B % Copyright 1993-2004 The MathWorks, Inc. % $Revision: 1.5.2.1 $ $ Date: 1998/01/30 13:45:34 $ % Get sample cdf, display error message if any [yy,xx,n,emsg] = regorcdfcalc(x); % if ~isempty(eid) % error(sprintf('stats:cdfplot:%s',eid),emsg); % end % Create vectors for plotting k = length(xx); n = reshape(repmat(1:k, 2, 1), 2*k, 1); xCDF = [-Inf; xx(n); Inf]; yCDF = [0; 0; yy(1+n)]; % % Now plot the sample (empirical) CDF staircase. % hCDF = plot(xCDF , yCDF,'linewidth',2); if (nargout>0), handleCDF=hCDF; end grid ('on') xlabel(xl) ylabel('Probability') title (tl) axis([-2 2 -0.05 1.05]) % Compute summary statistics if requested. if nargout > 1 stats.min = min(x); stats.max = max(x); stats.mean = mean(x); stats.median = median(x); stats.std = std(x); end function [yCDF,xCDF,n,emsg] = regorcdfcalc(x,xname) %CDFCALC Calculate an empirical cumulative distribution function. % [YCDF,XCDF] = CDFCALC(X) calculates an empirical cumulative % distribution function (CDF) of the observations in the data sample % vector X. X may be a row or column vector, and represents a random % sample of observations from some underlying distribution. On % return XCDF is the set of X values at which the CDF increases. % At XCDF(i), the function increases from YCDF(i) to YCDF(i+1). % % [YCDF,XCDF,N] = CDFCALC(X) also returns N, the sample size. % % [YCDF,XCDF,N,EMSG] = CDFCALC(X) also returns an error message if X % is not a vector or if it contains no values other than NaN. % % See also CDFPLOT. 149
Appendix B % Copyright 1993-2002 The MathWorks, Inc. % $Revision: 1.5 $ $Date: 2002/01/17 21:30:11 $ % Ensure the data is a VECTOR. yCDF = []; xCDF = []; if (nargin < 2) if isempty(inputname(1)) xname = 'X'; else xname = inputname(1); end end n = 0; if (min(size(x)) ~= 1) emsg = sprintf('Input sample %s must be a vector.', xname); return; end % Remove missing observations indicated by NaN's. x = x(~isnan(x)); n = length(x); if n == 0 emsg = sprintf('Input sample %s has no valid data (all NaN''s).', ... xname); return; end % Sort observation data in ascending order. x = sort(x(:)); % % Compute cumulative sum such that the sample CDF is % F(x) = (number of observations <= x) / (total number of observations). % Note that the bin edges are padded with +/- infinity for auto-scaling of % the x-axis. % % Get cumulative sums yCDF = (1:n)' / n; % Remove duplicates; only need final one with total count notdup = ([diff(x(:)); 1] > 0); xCDF = x(notdup); yCDF = [0;yCDF(notdup)]; emsg = ''; 2. Ranging Codes function [seqE5aI,seqE5aQ,seqE5bI,seqE5bQ]=draftcdmaE5 % Implements CDMA codification for E5 signal using the scheme provided by % Galileo OS SIS ICD. Np=10230; 150
Appendix B [tpaI,tpaQ,tpbI,tpbQ]=tappol; % Tap polynomials [svaI,svaQ,svbI,svbQ]=starval; % Start values [isaI,isaQ,isbI,isbQ]=initseq; % Init Sequences for base register 2 NsaI=20; NsaQ=100; NsbI=4; NsbQ=NsaQ; % Secondary code length [scaI,scaQ,scbI,scbQ]=seccodeE5; % Secondary codes %----------------E5aI a=1; seqE5aI=[]; for i=1:NsaI pr=prilfsr(tpaI(1,:),Np); se=seclfsr(tpaI(2,:),Np,svaI(i,:),isaI(i,:)); primary=xor(pr,se); secondary=scaI(a:1:(i*Np)); a=a+Np; s=xor(primary,secondary'); seqE5aI=[seqE5aI s]; end seqE5aI=bipolar(seqE5aI); %----------------E5bI b=1; seqE5bI=[]; for i=1:NsbI pr=prilfsr(tpbI(1,:),Np); se=seclfsr(tpbI(2,:),Np,svbI(i,:),isbI(i,:)); primary=xor(pr,se); secondary=scbI(b:1:(i*Np)); b=b+Np; s=xor(primary,secondary'); seqE5bI=[seqE5bI s]; end seqE5bI=bipolar(seqE5bI); %----------------E5aQ c=1; seqE5aQ=[]; for i=1:NsaQ if i>50 pr=prilfsr(tpaQ(1,:),Np); se=seclfsr(tpaQ(2,:),Np,svaQ(101-i,:),isaQ(101-i,:)); else pr=prilfsr(tpaQ(1,:),Np); se=seclfsr(tpaQ(2,:),Np,svaQ(i,:),isaQ(i,:)); end primary=xor(pr,se); secondary=scaQ(c:1:(i*Np)); c=c+Np; s=xor(primary,secondary'); seqE5aQ=[seqE5aQ s]; end seqE5aQ=bipolar(seqE5aQ); %-----------------E5bQ d=1; seqE5bQ=[]; 151
Appendix B for i=1:NsbQ if i>50 pr=prilfsr(tpbQ(1,:),Np); se=seclfsr(tpbQ(2,:),Np,svbQ(101-i,:),isbQ(101-i,:)); else pr=prilfsr(tpbQ(1,:),Np); se=seclfsr(tpbQ(2,:),Np,svbQ(i,:),isbQ(i,:)); end primary=xor(pr,se); secondary=scbQ(d:1:(i*Np)); d=d+Np; s=xor(primary,secondary'); seqE5bQ=[seqE5bQ s]; end seqE5bQ=bipolar(seqE5bQ); function [seqL1A,seqL1B,seqL1C]=cdmaL1 % CDMA ranging codes for L1 signal. Both codes are memory codes. Np=4092; Ns=25; [mcB,mcC]=memcodL1; [cB,cC]=memseqL1(mcB,mcC); %sequences already in binary %Both, cB and cC are two matrices %of 50x4092. Each row represents %a primary code. seqL1B=cB(1:4092); seqL1A=cB(4093:8184); %Since the data is restricted, it is %used one of the memory codes for %channel B to complete channel A. seqL1B=bipolar(seqL1B); seqL1A=bipolar(seqL1A); sec=htob('380AD90'); sec=sec(1:25); %last three are padded with 0 o=ones(4092,1); xsec=kron(sec,o); sec=xsec(:); a=1; seqL1C=[]; for i=1:Ns primary=cC(i,:); secondary=sec(a:1:(i*Np)); a=a+Np; s=xor(primary,secondary'); seqL1C=[seqL1C s]; end seqL1C=bipolar(seqL1C); 152
Appendix B function [seqE6B,seqE6C]=cdmaE6 Np=5115; Ns=50; Btappol1=[1 0 0 1 0 1 0 0 1 0 0 0 0 1]; Btappol2=[1 1 1 0 0 0 0 0 0 0 0 0 1 1]; Bstarval2=[0 1 0 1 0 1 1 1 0 0 0 0 0]; Ctappol1=[1 0 0 1 0 0 0 0 1 0 0 0 0 1 1]; Ctappol2=[1 0 0 0 0 0 1 1 0 0 1 1 1 0 1]; Cstarval2=[0 1 1 0 1 0 0 0 0 1 1 1 0 1]; Cseccode=[0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 1 1 0 1 1 0 0 1 1 0 0 0 1 0]; o=ones(5115,1); seccode=kron(Cseccode,o); seccode=seccode(:); %---------------------------E6 cdma ranging code-------------------------------- pr=prilfsr(Btappol1,Np); se=E6seclfsr(Btappol2,Np,Bstarval2); primary=xor(pr,se); seqE6B=[]; seqE6B=[seqE6B primary]; % primary is a logical array. seqE6B=bipolar(seqE6B); % To convert it into double it has % to be done like that. a=1; seqE6C=[]; for i=1:Ns pr=prilfsr(Ctappol1,Np); se=E6seclfsr(Ctappol2,Np,Cstarval2); primary=xor(pr,se); secondary=seccode(a:1:(i*Np)); a=a+Np; s=xor(primary,secondary'); seqE6C=[seqE6C s]; end seqE6C=bipolar(seqE6C); 2.1 Secondary functions for ranging codes function [caI,caQ,cbI,cbQ]=tappol coaI=['40503' '50661']; cobI=['64021' '51445']; caI=transf(coaI,10,15,2,'o'); caQ=caI; cbI=transf(cobI,10,15,2,'o'); cbQ=cbI; 153