using gnu radio companion to improve student understanding ... · it is an amplitude modulation...

24
1 European GNU Radio Days 2019 June 17&18 2019 - Besançon, France Using GNU Radio Companion to improve student understanding of signal processing theory through VHF Omni-Directional Range (VOR) signal demodulation Antoine Blais, Christophe Morlaas ENAC, Université de Toulouse, France European GNU Radio Days 2019 17-18 Jun 2019 Besançon (France)

Upload: others

Post on 27-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

1

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

Using GNU Radio Companion to improve student understanding of

signal processing theory throughVHF Omni-Directional Range (VOR)

signal demodulation

Antoine Blais, Christophe Morlaas

ENAC, Université de Toulouse, France

European GNU Radio Days 201917-18 Jun 2019 Besançon (France)

Page 2: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

2

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

Introduction

● Complex notions being taught in signal theory and signal processing courses need to find some practical realizations.

● Some practicals are given to help the students understanding specific points in these courses.

● These practicals are completed by a long project which proposes, as a global case of application, to demodulate a VOR signal.

● This is realized by mean of a DVB-T USB dongle (one per pair of students), operated through the GNU Radio Companion (GRC) software.

● The simultaneous learning of this powerful software is an interesting aside of this project, but if it is not its primary goal.

● This presentation provides insight into this long project.

Introduction

Page 3: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

3

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

Outline of the presentation

1. A model of the VOR signal

2. The pedagogical approach

3. Two interesting technical points

4. Conclusions

Outline of the presentation

Page 4: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

4

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1 A model of the VOR signal (1/2)

● The VOR system is a navigation aid designed to give the angle, in relation to the magnetic north, to the aircraft from a ground radio beacon of known position.

● The VOR beacon simultaneously transmits two 30 Hz signals:

● A first one with a constant phase whatever the direction in which it is received.

● A second one with a phase which consistently varies according to the direction in which it is received.

● The onboard receiver has to measure the phase between both 30 Hz signals.

1 A model of the VOR signal

Page 5: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

5

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1 A model of the VOR signal (2/2)

1 A model of the VOR signal

180°

90°270°

45°

225° 135°

315°

https://www.slideshare.net/btinus/vor-ppt

Page 6: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

6

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1.1 Time representation (1/2)

● A noise-free time model of this signal, as seen by the receiver, is presented to the students:

● It is an Amplitude Modulation (AM) of a carrier signal at f0.

θ0 is a random initial phase.

● M(t) is an hybrid signal carrying several components.

1 A model of the VOR signal

e (t )=(1+M (t ))⋅cos (2π f 0 t+θ0), with f 0∈[108,118] MHz

Page 7: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

7

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1.1 Time representation (2/2)

with:● QDR is the magnetic bearing from the station to the aircraft,● ident(t) is the identification signal of the VOR beacon (Morse code),

● θ30

, θ1200

and θ9960

are random initial phases.

Note: the QDR may be in θ(t) (with a + sign) instead, then it is a VOR-D (Doppler) signal vs a VOR-C (Conventional) signal here.

M (t )=[ 0,3⋅cos (2 π30 t−QDR+θ30)+0,05⋅ident (t)⋅cos (2 π1020 t+θ1200)+0,3⋅cos (2π 9960 t+θ(t )+θ9960 )

−16⋅sin (θ30)

θ(t)=16⋅30⋅2π∫0

t

cos(2 π30 u+θ30)du=16⋅sin (2π 30 t+θ30)

1 A model of the VOR signal

Frequency Modulation (FM)

Page 8: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

8

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1.2 Baseband spectrum

1 A model of the VOR signal

It is interesting to note that each component can be separated by filtering without difficulty.

The overall bandwidth can be safely set by excess to 12 kHz.

Page 9: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

9

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

2 The pedagogical approach

Strong guidelines are set to the students to support them toward the solution. Indeed, the project is split in four distinct and successive steps:

1. An interactive implementation of a simple FM radio-broadcast receiver.

2. The students have to produce flow diagrams which read, display and record to a file the I & Q samples.

3. A I & Q VOR signal generator has to be implemented, component after component.

4. The VOR receiver itself has to be developed. Again, a component by component method is suggested to the students, so they can safely move towards a proper final design.

2 The pedagogical approach

Page 10: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

10

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

2.1 The FM radio-broadcast receiver

This first SDR receiver serves as:

● a presentation of the GRC GUI capabilities,

● as a proof of the SDR concept for the students: it works!

2 The pedagogical approach

Page 11: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

11

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

2.2 The read, display and record flow diagrams

● The target of the second step is a more comprehensive handling of GRC and of the USB dongle.

● The students have to produce flow diagrams which read, display and record to a file the I & Q samples.

2 The pedagogical approach

Page 12: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

12

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

1 Filesink

complexI+jQ, with Q = 0

delay == phase shiftdelay = f(QDR)

real

G1 = 0.05

G2 = G

4 = 0.3

G3 = 16

Signal source: sineFs 250 kS/sFrequency 1020 HzAmplitude 1Offset 0

Signal source: sineFrequency 30 HzAmplitude 1Offset 0

+

G1

G2

imag

cos(.)

sin(.)

Signal source: cosineFrequency 9960 HzAmplitude 1Offset 0

X

X

-G

3

G4

real

real

imag

WX GUI Scope sink

WX GUI FFT sink

complex

complex

delay

2.3 The I & Q VOR signal generator

● A detailed synoptic view is provided as a starting point.

● The aim of this step is to:● deepen the students understanding of the VOR signal structure.● provide the future receiver with synthetic test signals.

2 The pedagogical approach

Page 13: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

13

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

DVB-Tdongle

√I 2+Q2

FMdemod.

Phasecomp.

Complex signalI+jQ at F

s = 250 kS/s

Low-pass filterFc = 12 kHz, TW = 500 Hz+ decimation by 10

Complex signalI

f+jQ

f at F

s = 25 kS/s

Real signal(1+M(t)) at F

s = 25 kS/s

Band-pass filterFc

l = 30 – ΔB

30/2 Hz

Fch = 30 + ΔB

30/2 Hz

TW = 10 Hz+ decimation by 52

Band-pass filterFc

l = 9960 – ΔB

9960/2 Hz

Fch = 9960 + ΔB

9960/2 Hz

TW = 100 Hz

30 Hz real signalF

s ≈ 480 S/s

30 Hz real signalF

s ≈ 480 S/s

+ decimation by 52

Real signalÎ [108, 118] MHz

ΔB30

= 30 Hz

ΔB9960

= 2000 Hz

+

- QDR

2.4 The VOR receiver (1/2)

● A detailed synoptic view is provided as a starting point here also.

● Students have to validate their flow diagram with their own signals.

2 The pedagogical approach

Page 14: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

14

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

2.4 The VOR receiver (2/2)

A Software Course Deviation Indicator (CDI) is provided to the students to help them understanding the use of a VOR receiver onboard.

● Written in Python.

● Communicating through a ZeroMQ socket with GRC.

2 The pedagogical approach

Page 15: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

15

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

2 The pedagogical approach – evaluation

The project ends with a double evaluation:

● A one hour written examination, to check the understanding of various signal processing points.

● A test of reception of a real VOR signal with a QDR to decode.

This reception test is realized by radiating a low power VOR signal in the room, with the help of a Marconi 2030 signal generator.

The transmitted QDR is set according to the teaching team's wishes.

The students have to use their DVB-T USB dongle and their SDR VOR receiver to demodulate the signal.

Then, they can announce the QDR they have demodulated.

2 The pedagogical approach

Page 16: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

16

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3 Two interesting technical points

● The philosophy of this long project is to improve the understanding of the students in signal theory and signal processing

● Then, the use of high level blocks, like the FM Demod block, is forbidden.

● The students have to understand the different signal processing operations to be able to build them atomically.

● In this aspect, the two following ones are particularly interesting:

● The frequency demodulation of the 9960 Hz signal.

● The phase comparator.

3 Two interesting technical points

Page 17: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

17

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.1 The FM demodulation (1/2)

● The synoptic view of one specific demodulation method is given to the students.

● They not only have to implement it, but also to understand it.

● The calculation of the value of the delay is always an instructive brainstorm.

3 Two interesting technical points

Page 18: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

18

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.1 The FM demodulation (2/2)

● Let s(t) be the incoming signal:

● A multiplication by s(t) delayed:

● The second term is suppressed by the 30 Hz band-pass filter.

● If τ (has to be a multiple of Ts) is set so that 2π9960τ = π/2 [π], then:

● If what is more τ << 1/30:

3 Two interesting technical points

s (t )=cos (2 π9960 t+θ(t )+θ9960)

s (t ) . s(t−τ)=12

[cos (2 π9960 τ+(θ(t )−θ(t−τ)))

s (t ). s (t−τ)|filtered=±12

sin (θ(t)−θ(t−τ))

s (t ). s (t−τ)|filtered≈±12

(θ(t)−θ(t−τ))≈± τ2θ̇ (t )

−cos(2 π9960(2 t−τ)+(θ(t)+θ(t−τ)+2θ9960))]

Page 19: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

19

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.2 The phase comparator (1/4)

● The phase comparator, needed to extract the QDR is an opportunity to introduce the students with the principle of the Hier block.

● They are asked to embedded this phase comparator in a dedicated Hier block.

● A possible implementation for this phase comparator Hier block:

3 Two interesting technical points

Moving average filter(low-pass filter)Length: 100 périods of 30 Hz

QDMF

s ≈ 480 S/s

delay: 4

X

atan2Complex signal(30 Hz) + j (30 Hz)F

s ≈ 480 S/s

DC blocker

DC blocker X

DC blocker(high-pass filter)Length: 32 samples

π180

real

imag

Page 20: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

20

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.2 The phase comparator (2/4)

● The dedicated Hier block has to be tested and validated independently from the main flow diagram.

3 Two interesting technical points

Page 21: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

21

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.2 The phase comparator – detail of the calculation (3/4)

● Let s1(t) and s

2(t) be the inputs of the block, with f

c = 30 Hz:

● Let s1(t) be a delayed version of s

1(t) :

● If

● The two cross-products give:

3 Two interesting technical points

s1(t)=A1cos (2π f c t+ϕ1) s2(t)=A2cos (2π f c t+ϕ2)

s3(t )=s1(t−τ)=A1cos (2π f c t−2π f c τ+ϕ1)

s3(t )=A1cos (2π f c t−π/2+ϕ1)=A1 sin (2π f c t+ϕ1)

τ=1/(4 f c)

pa(t)=s1(t )×s2(t)=A1 A2cos (2π f c t+ϕ1)×cos (2π f c t+ϕ2)

pb(t)=s3(t)×s2(t )=A1 A 2sin (2π f c t+ϕ1)×cos (2π f c t+ϕ2)

Page 22: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

22

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

3.2 The phase comparator – detail of the calculation (4/4)

● The low-pass filters suppress the first terms:

● The atan2 function (a complex to arg block) is then used to recover the value of Φ

1 - Φ

2.

3 Two interesting technical points

pa(t)=A1 A 22 {cos (4 π f c t+ϕ1+ϕ2)+cos (ϕ1−ϕ2 )}

pb(t)=A1 A 22 {sin (4 π f c t+ϕ1+ϕ2)+sin (ϕ1−ϕ2)}

paf (t )=

A1 A 22

cos (ϕ1−ϕ2 )

pbf(t)=

A1 A 22

sin (ϕ1−ϕ2 )

Page 23: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

23

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

Conclusions

● It is the third year this long project is given.

● The teaching team has observed each time the benefits of this materialization of the theoretical notions taught during the related courses.

● The knowledge and skill of the students are clearly improved as well as their hindsight on the covered topics.

Conclusions

Page 24: Using GNU Radio Companion to improve student understanding ... · It is an Amplitude Modulation (AM) of a carrier signal at f 0. ... Frequency Modulation (FM) 8 European GNU Radio

24

European GNU Radio Days 2019 June 17&18 2019 - Besançon, France

Thank you for your attention

Any question ?