1 00:00:00,630 --> 00:00:04,380 Hi, and welcome to module 9.5 of digital signal processing. 2 00:00:04,380 --> 00:00:08,870 In this module, we will touch briefly on some topics in receiver design. 3 00:00:08,870 --> 00:00:12,251 A lot of things, unfortunately, happen to the signal while it's traveling through 4 00:00:12,251 --> 00:00:15,244 the channel. The signal picks up noise, we have seen 5 00:00:15,244 --> 00:00:18,417 that already. It also gets distorted because the 6 00:00:18,417 --> 00:00:21,703 channel will act as some sort of filter that is not necessarily all pass and 7 00:00:21,703 --> 00:00:25,646 linear phase. Interference happens too, that might be 8 00:00:25,646 --> 00:00:29,862 parts of the channel that we thought were usable, and they're actually not, so the 9 00:00:29,862 --> 00:00:33,892 receiver really has to deal with a copy of the transmitted signal that is very, 10 00:00:33,892 --> 00:00:40,460 very far from the idealized version we have seen so far. 11 00:00:40,460 --> 00:00:44,744 The way receivers, especially digital receivers, can cope with the distortions 12 00:00:44,744 --> 00:00:48,713 and noise introduced by the channel, is by implemented adaptive filtering 13 00:00:48,713 --> 00:00:52,625 techniques. Now we will not have the time to go into 14 00:00:52,625 --> 00:00:56,365 very many details about adaptive signal processing, again these are topics that 15 00:00:56,365 --> 00:01:01,380 you will be able to study in more advanced signal processing classes. 16 00:01:01,380 --> 00:01:05,540 But I think it is important to give you an overview of things that have to happen 17 00:01:05,540 --> 00:01:10,390 inside a receiver, inside your ADSL receiver for instance. 18 00:01:10,390 --> 00:01:13,840 So you can enjoy this high data rates that are available today. 19 00:01:13,840 --> 00:01:18,329 And the first technique that we will look at is adaptive equalization and then we 20 00:01:18,329 --> 00:01:22,349 will look at some very simple timing recovery that it used in practice in 21 00:01:22,349 --> 00:01:27,942 receivers. Let's begin with a blast from the past. 22 00:01:27,942 --> 00:01:33,222 [NOISE] Those of you that are a little bit older will certainly have recognized 23 00:01:33,222 --> 00:01:38,342 this sound as the obligatory soundtrack every time you used to connect to the 24 00:01:38,342 --> 00:01:43,847 internet. And indeed this is the sound made by a 25 00:01:43,847 --> 00:01:49,470 V34 modem that was the standard dial up connection device seen in the 90s until 26 00:01:49,470 --> 00:01:54,889 the early 2000. Now if you have ever used a modem, you've 27 00:01:54,889 --> 00:02:00,900 heard the sound and you probably wondered what was going on, so we're going to 28 00:02:00,900 --> 00:02:06,840 analyze what we just heard from the graphical point of view. 29 00:02:06,840 --> 00:02:11,130 If we look at the block diagram for the receiver once again, what we're going to 30 00:02:11,130 --> 00:02:15,420 do is we're going to plot the base band complex samples as points on the complex 31 00:02:15,420 --> 00:02:20,270 blank. So we're going to take B, r of n has the 32 00:02:20,270 --> 00:02:26,230 as the horizontal coordinate and b, i of n as the vertical coordinate. 33 00:02:26,230 --> 00:02:30,430 And before we do so let's just look for a second at what happens inside the 34 00:02:30,430 --> 00:02:35,120 receiver when the signal at the input is a simple sinusoid, like cosine of omega c 35 00:02:35,120 --> 00:02:41,300 plus omega zero n. We are demodulating this very simple 36 00:02:41,300 --> 00:02:45,960 signal with the two carriers, the cosine of omega c n and sine of omega c n. 37 00:02:45,960 --> 00:02:51,100 And then we're filtering the result with a low pass field. 38 00:02:51,100 --> 00:02:54,480 So if we work out this formula with standard trigonometric identities, we can 39 00:02:54,480 --> 00:02:59,540 always express for instance the product of two cosine functions as the sum. 40 00:02:59,540 --> 00:03:03,680 Of the cosine of the sum of the angles plus the cosine of the difference of the 41 00:03:03,680 --> 00:03:06,435 angles. And same for the product of cosine and 42 00:03:06,435 --> 00:03:09,614 sine. So if we do that, we get four terms, two 43 00:03:09,614 --> 00:03:16,520 of which have a frequency that will fall outside of the pass band of the filter h. 44 00:03:16,520 --> 00:03:20,360 So when we apply the filter to these terms, we're left only with cosine of 45 00:03:20,360 --> 00:03:26,700 omega 0 n plus j sine of omega 0 n. Which is of course e to the j omega 0 n. 46 00:03:26,700 --> 00:03:30,934 So when the input to the receiver is a cosine, the points in the complex 47 00:03:30,934 --> 00:03:35,825 baseband sequence will be points around the circle and a difference between two 48 00:03:35,825 --> 00:03:42,714 successive points is the angle omega 0. The reason why we might be called to 49 00:03:42,714 --> 00:03:46,410 demodulate a simple sinusoid is because the receiver will send what are called 50 00:03:46,410 --> 00:03:49,826 pile tones, simple sinusoids that are used to probe the line and gauge the 51 00:03:49,826 --> 00:03:54,730 response of the channel at particular frequencies. 52 00:03:54,730 --> 00:03:58,132 So with this in mind, let's look at the slow-motion analysis of the base band 53 00:03:58,132 --> 00:04:01,744 signals. Samples, when the input is the audio file 54 00:04:01,744 --> 00:04:06,440 we just heard before. So lets start with a part that goes like 55 00:04:06,440 --> 00:04:09,706 this[SOUND]. This signal contains several sinusoids, 56 00:04:09,706 --> 00:04:14,780 that we can see here in the plot. And the sinusoids also contain abrupt 57 00:04:14,780 --> 00:04:18,460 phase reversal, meaning that, at some given points in time The phase of the 58 00:04:18,460 --> 00:04:23,324 sinusoid is augmented by pi. You can see this as this small explosions 59 00:04:23,324 --> 00:04:27,810 in the circular pattern in the plot. These phase reversals, are used by the 60 00:04:27,810 --> 00:04:31,330 transmitter and the receiver, as time markers, to estimate the propagation 61 00:04:31,330 --> 00:04:35,450 delay of the signal, from source to destination. 62 00:04:35,450 --> 00:04:38,844 The next part goes like this. [NOISE]. 63 00:04:38,844 --> 00:04:42,610 And this is a training sequence. The transmitter sends a sequence of known 64 00:04:42,610 --> 00:04:46,670 symbols, namely the receiver knows the symbol that are transmitted. 65 00:04:46,670 --> 00:04:49,797 And so the receiver can use this knowledge to train an equalizer to undo 66 00:04:49,797 --> 00:04:53,876 the affects of the channel. The last part is the data transmission 67 00:04:53,876 --> 00:04:57,452 proper, the noisy part if you want, of the audio file. 68 00:04:57,452 --> 00:05:00,990 And the interesting thing is that the transmitter and receiver perform a 69 00:05:00,990 --> 00:05:04,876 handshake procedure, using a very low bit rate QAM transmission using only four 70 00:05:04,876 --> 00:05:10,632 points, therefore two bits per symbol. To exchange the parameters of the real 71 00:05:10,632 --> 00:05:13,780 data transmission that is going to follow. 72 00:05:13,780 --> 00:05:16,390 The speed, the constellation size, and so on. 73 00:05:16,390 --> 00:05:20,248 Using the four point QAM constellation in the beginning ensures that, even in very 74 00:05:20,248 --> 00:05:23,847 noisy conditions, transmitter and receiver can exchange their vital 75 00:05:23,847 --> 00:05:29,498 information. So even from this simple qualitative 76 00:05:29,498 --> 00:05:33,268 description of what happens in a real communication scenario, we can see that 77 00:05:33,268 --> 00:05:38,130 the task that the receiver is saddled with is very complicated. 78 00:05:38,130 --> 00:05:40,760 So it's a dirty job, but a receiver has to do it. 79 00:05:40,760 --> 00:05:45,452 And a receiver has to cope with four potential sources of problem. 80 00:05:45,452 --> 00:05:49,900 Interference. The propagation delay, so the delay 81 00:05:49,900 --> 00:05:52,818 introduced by the channel. The linear distortion introduced by the 82 00:05:52,818 --> 00:05:55,602 channel. And drifts in internal clocks between the 83 00:05:55,602 --> 00:06:00,940 digital system inside the transmitter and the digital system inside the receiver. 84 00:06:00,940 --> 00:06:04,834 So when it comes to interference the handshake procedure, and the line probing 85 00:06:04,834 --> 00:06:08,256 pilot tones are used in clever ways to circumvent the major sources of 86 00:06:08,256 --> 00:06:13,000 interference. We will see some example later on when we 87 00:06:13,000 --> 00:06:16,414 discuss ADSL. The propagation delay, is tackled by a 88 00:06:16,414 --> 00:06:20,990 delay estimation procedure, that we will look at in just a second. 89 00:06:20,990 --> 00:06:24,992 The distortion to this by the channel is compensated using adaptive equalization 90 00:06:24,992 --> 00:06:29,130 techniques, and we will see some examples of that as well. 91 00:06:29,130 --> 00:06:33,156 And clock drifts are tackled by timing recovery techniques that in and of 92 00:06:33,156 --> 00:06:37,644 themselves are quite sophisticated and therefore we leave them to more advanced 93 00:06:37,644 --> 00:06:41,916 classes. Graphically, if we sum up the chain of 94 00:06:41,916 --> 00:06:45,744 events that occur between the transmissions of the original digital 95 00:06:45,744 --> 00:06:51,442 signal and the beginning of the demodulation of the received signal. 96 00:06:51,442 --> 00:06:56,660 We have a digital to analog converter and a transmitter, this is transmitter part 97 00:06:56,660 --> 00:07:01,300 of the chain that operates with a given sample period Ts. 98 00:07:01,300 --> 00:07:05,500 This generates an analog signal which is sent over a channel. 99 00:07:05,500 --> 00:07:08,472 We can represent the channel for the time being as a linear filter in the 100 00:07:08,472 --> 00:07:13,190 continuous time domain. With frequency response d of j omega. 101 00:07:13,190 --> 00:07:17,280 At the input of the receiver, we have a continuous time signal, s hat of t. 102 00:07:17,280 --> 00:07:22,690 Which is a distorted and delayed version of the original analog signal. 103 00:07:22,690 --> 00:07:27,600 We will neglect noise for the time being. This signal is sampled by an a to d 104 00:07:27,600 --> 00:07:32,110 converter that operates at a period t prime of s. 105 00:07:32,110 --> 00:07:36,100 And we obtain the sequence of samples that will be input to the modulator. 106 00:07:36,100 --> 00:07:38,210 So this is the receiver part of the chain. 107 00:07:38,210 --> 00:07:41,620 We have to take into account the distortion introduced by the channel, and 108 00:07:41,620 --> 00:07:45,850 we have to take into account the potentially time varying discrepancies in 109 00:07:45,850 --> 00:07:49,483 the clocks between the transmitter and the receiver. 110 00:07:49,483 --> 00:07:52,981 These two systems are geographically remote and there is no guarantee that the 111 00:07:52,981 --> 00:07:56,200 two internal clocks that're used in the A to D and D to A converters are 112 00:07:56,200 --> 00:08:00,310 synchronized or run exactly at the same frequency. 113 00:08:00,310 --> 00:08:03,280 Let's start with problem of delay compensation. 114 00:08:03,280 --> 00:08:07,100 To simplify the analysis we'll assume that the clocks at transmitter and 115 00:08:07,100 --> 00:08:10,346 receiver are synchronized and synchronous. 116 00:08:10,346 --> 00:08:14,470 So T prime of s is equal to T s, and the channel acts as a simple delay. 117 00:08:14,470 --> 00:08:17,370 So the received signal is simply a delayed version of the transmitted 118 00:08:17,370 --> 00:08:20,822 signal. Which implies that the frequency response 119 00:08:20,822 --> 00:08:24,112 of the channel is simply e to the minus j omega d. 120 00:08:24,112 --> 00:08:27,000 So, the channel introduces a delay of d seconds. 121 00:08:27,000 --> 00:08:30,800 We can express this in samples in the following way. 122 00:08:30,800 --> 00:08:34,790 We write d as the product of the sampling period, times b plus tau. 123 00:08:34,790 --> 00:08:38,414 Where b is an integer. And tau is strictly less than one-half in 124 00:08:38,414 --> 00:08:41,376 magnitude. So b is called the bulk delay because it 125 00:08:41,376 --> 00:08:45,282 gives us an integer number of samples of delay at the receiver and tau is the 126 00:08:45,282 --> 00:08:50,846 fractional delay. So the fraction of samples introduced by 127 00:08:50,846 --> 00:08:56,480 the continuous time delay of d. So, how do we compensate for this delay? 128 00:08:56,480 --> 00:08:59,560 Well, the bulk delay is rather easy to tackle. 129 00:08:59,560 --> 00:09:02,793 Imagine the transmitter begins transmission by sending just an impulse 130 00:09:02,793 --> 00:09:06,206 over the channel. So, the discreet time signal is this one, 131 00:09:06,206 --> 00:09:10,290 it's just a delta and a 0. It gets sent to D-to-A converter. 132 00:09:10,290 --> 00:09:13,157 And the converter will output a continuous time signal that looks like an 133 00:09:13,157 --> 00:09:17,370 interpolation function like the sinc. And like all interpolation functions, it 134 00:09:17,370 --> 00:09:21,420 will have a maximum peak at zero that corresponds to the known zero sample. 135 00:09:21,420 --> 00:09:23,545 This signal gets transmitted over the channel. 136 00:09:23,545 --> 00:09:27,100 And it gets to the receiver after a delay d that we can estimate for instance by 137 00:09:27,100 --> 00:09:31,870 looking at the displacement of the peak of the interpolation function. 138 00:09:31,870 --> 00:09:34,670 The receiver converts this into a discrete time sequence. 139 00:09:34,670 --> 00:09:38,360 Now in the figure here it looks as if the sample incidence at the transmitter and 140 00:09:38,360 --> 00:09:41,920 receiver are perfectly aligned. Now this is not necessarily the case 141 00:09:41,920 --> 00:09:44,958 because the starting time for the interpolator at the transmitter and the 142 00:09:44,958 --> 00:09:48,709 sampler at the receiver are not necessarily synchronous. 143 00:09:48,709 --> 00:09:52,789 But any difference in starting time can be integrated into the propagation delay 144 00:09:52,789 --> 00:09:56,310 as long as the sampling periods are the same. 145 00:09:56,310 --> 00:10:00,531 So with this, all we need to do at the receiver is to look for the maximum value 146 00:10:00,531 --> 00:10:05,565 in the sequence of samples. Because of the shape of the interpolating 147 00:10:05,565 --> 00:10:09,850 function, we know that the real maximum will be at most half a sample in either 148 00:10:09,850 --> 00:10:13,554 direction of the location, of the maximum sample value. 149 00:10:13,554 --> 00:10:17,389 So, add the receiver to offset the bulk delay, we will just set the nominal time 150 00:10:17,389 --> 00:10:20,752 n equal to 0, to coincide with the location of the maximum value of the 151 00:10:20,752 --> 00:10:25,114 sample sequence. Now of course we need to compensate for 152 00:10:25,114 --> 00:10:28,720 the fractional delay, so we need to estimate tau. 153 00:10:28,720 --> 00:10:31,230 And to do that we'll use a different technique. 154 00:10:31,230 --> 00:10:34,578 Let me add in passing, that in real communication devices, of course we're 155 00:10:34,578 --> 00:10:37,728 not using impulses to offset the bulk delay. 156 00:10:37,728 --> 00:10:41,292 Because impulses are full-band signals and so they would be filtered out by the 157 00:10:41,292 --> 00:10:46,410 passband characteristic of the channel. The trick is to embed discontinuities in 158 00:10:46,410 --> 00:10:51,310 pilot tones and to recognize this discontinuities at the receiver. 159 00:10:51,310 --> 00:10:54,775 As we have seen in the animation at the beginning of this module, we use phase 160 00:10:54,775 --> 00:10:58,750 reversals, which are abrupt discontinuities in sinusoids, to provide 161 00:10:58,750 --> 00:11:02,948 a recognizable instant in time for the receiver to latch on. 162 00:11:02,948 --> 00:11:07,702 Okay, so what about the fractional delay? Well, for the fractional delay, we use a 163 00:11:07,702 --> 00:11:11,860 sinusoid instead of a delta, so we build a bass band signal, which is simply a 164 00:11:11,860 --> 00:11:16,894 complex exponential at a known frequency, omega 0. 165 00:11:16,894 --> 00:11:20,664 This will be converted to a real signal before being sent to the D-to-A 166 00:11:20,664 --> 00:11:24,369 converter, and so what we transmit actually is cosine of omega c, the 167 00:11:24,369 --> 00:11:30,270 carrier frequency, plus the pilot frequency omega 0, times n. 168 00:11:30,270 --> 00:11:34,560 The receiver will receive a delayed version of this, which contains the delay 169 00:11:34,560 --> 00:11:39,190 now in sample, and fraction of sample, b plus tau. 170 00:11:39,190 --> 00:11:43,155 After we demodulate this cosine you remember we got a complex exponential and 171 00:11:43,155 --> 00:11:47,900 we can also compensate already for the bulk delay which we know. 172 00:11:47,900 --> 00:11:52,373 So for an integer number of sample b we obtain a base band signal at b of n which 173 00:11:52,373 --> 00:11:58,325 is e to the j omega and minus tau. Since we know the frequency of omega 0 we 174 00:11:58,325 --> 00:12:02,420 can just multiply this quantity by e to the minus j omega 0 n and obtain e to the 175 00:12:02,420 --> 00:12:09,200 minus j omega 0 tau, which is a constant. And which we can invert given that we 176 00:12:09,200 --> 00:12:12,469 know the frequency omega 0. And so now we have an estimate for both 177 00:12:12,469 --> 00:12:16,527 the bulk delay and the fractional delay. Now we have to bring back the signal to 178 00:12:16,527 --> 00:12:20,140 the original timing. The bulk delay is really no problem. 179 00:12:20,140 --> 00:12:23,550 It's just an integer number of samples. What creates a problem is the fractional 180 00:12:23,550 --> 00:12:28,375 delay because that will shift the peaks with respect to the sampling intervals. 181 00:12:28,375 --> 00:12:33,266 So if we want to compensate for the bulk delay we need to compute subsample values 182 00:12:33,266 --> 00:12:37,865 and in theory to do that we should use a sinc fractional delay namely a filter 183 00:12:37,865 --> 00:12:45,198 with impulse response sinc of n plus tau. In practice however, we will use a local 184 00:12:45,198 --> 00:12:48,558 interpolation and this is a very practical application of the Lagrange 185 00:12:48,558 --> 00:12:52,560 interpolation technique that we saw in module 6.2. 186 00:12:52,560 --> 00:12:56,220 So graphically the situation is like so, we have a stream of samples coming in. 187 00:12:56,220 --> 00:13:00,828 And for each sample, we want to compute the subsample value with a distance of 188 00:13:00,828 --> 00:13:06,112 tau from the nearest sample interval. And we want to only use a local 189 00:13:06,112 --> 00:13:11,510 neighborhood of samples to estimate this. Now, you remember from module 6.2. 190 00:13:11,510 --> 00:13:14,994 The Lagrange approximation works by building a linear combination of Lagrange 191 00:13:14,994 --> 00:13:18,312 polynomials weighed by the samples of the function. 192 00:13:18,312 --> 00:13:21,822 So, as per usual, we choose the sampling interval equal to 1, so that we lighten 193 00:13:21,822 --> 00:13:25,882 the notation. We have a continuous time function x of 194 00:13:25,882 --> 00:13:29,858 t, and we want to compute x of n plus tau, with tau less than one half in 195 00:13:29,858 --> 00:13:34,764 magnitude. So we have samples of this function at 196 00:13:34,764 --> 00:13:39,500 integers, n, and the local Lagrange approximation around n, is given by this 197 00:13:39,500 --> 00:13:44,670 linear combination of Lagrange polynomials. 198 00:13:44,670 --> 00:13:48,560 Weighted by the samples of the functions around the approximation point. 199 00:13:48,560 --> 00:13:54,102 So we use the notation x L of n and t. N is the center point and t is the value 200 00:13:54,102 --> 00:13:59,760 from the center point at which we want to compute the approximation. 201 00:13:59,760 --> 00:14:03,244 And the Lagrange polynomials are given by this formula here, which is the same as 202 00:14:03,244 --> 00:14:07,524 in module 6.2. So the delayed compensated input signal 203 00:14:07,524 --> 00:14:11,300 will be set equal to the Lagrange approximation at tau. 204 00:14:11,300 --> 00:14:14,120 So let's look at an example. Assume that we want a second order 205 00:14:14,120 --> 00:14:17,470 approximation. So we pick N equal to 1 and we will have 206 00:14:17,470 --> 00:14:22,850 three Lagrange polynomials. And so, we will need to use three samples 207 00:14:22,850 --> 00:14:28,135 of the sequence to compute interpolation. These three polynomials will be centered 208 00:14:28,135 --> 00:14:31,852 in n minus 1 and in n plus 1 and scaled by the values of the samples at these 209 00:14:31,852 --> 00:14:35,832 locations. And finally, we will sum the poll numbers 210 00:14:35,832 --> 00:14:38,613 together and compute their value in n plus tau. 211 00:14:38,613 --> 00:14:42,500 So, we start with the first one, which is centered in n minus 1. 212 00:14:42,500 --> 00:14:47,108 And, like all interpolation polynomials, its value is 1 in n minus 1, and 0, at 213 00:14:47,108 --> 00:14:52,990 other integer values of the argument. The second polynomial will be centered in 214 00:14:52,990 --> 00:14:56,760 n, and the third polynomial will be centered in n plus 1. 215 00:14:56,760 --> 00:14:59,880 When we sum them together, we obtain a second order curve that goes through the 216 00:14:59,880 --> 00:15:02,760 points, that interpolates the three points, and then we can compute the 217 00:15:02,760 --> 00:15:07,680 approximation as the value of this curve in n plus tau. 218 00:15:07,680 --> 00:15:12,300 Now the nice thing about this approach, is that if we look at the approximation, 219 00:15:12,300 --> 00:15:16,686 if we take the Lagrange approximation around n. 220 00:15:16,686 --> 00:15:20,956 We can define a set of coefficients, d tau of k, which are the values of each 221 00:15:20,956 --> 00:15:26,610 Lagrange polynomial in tau. So d tau of k, are 2 N plus 1 values, the 222 00:15:26,610 --> 00:15:32,872 form, the coefficients, of an FIR filter. And we can compute the value of the 223 00:15:32,872 --> 00:15:37,224 Lagrange approximation simply as the convolution of the incoming sequence with 224 00:15:37,224 --> 00:15:42,482 this interpolation filter. So for example, if these are the three 225 00:15:42,482 --> 00:15:47,450 Lagrange polynomials for n equal to 1, we can compute these polynomials for t equal 226 00:15:47,450 --> 00:15:54,440 to tau, where tau is the fractional delay that we estimated before. 227 00:15:54,440 --> 00:15:58,730 And we will obtain three coefficients, like here, for instance, is an example 228 00:15:58,730 --> 00:16:02,736 for tau equal to 0.2. Three coefficients that give us an FIR 229 00:16:02,736 --> 00:16:05,810 filter, and then we can just simply filter the samples coming into the 230 00:16:05,810 --> 00:16:10,530 receiver with this filter, to compensate for the fractional delay. 231 00:16:10,530 --> 00:16:13,130 So again, the algorithm is, estimate the fractional delay. 232 00:16:13,130 --> 00:16:16,954 The bulk delay is no problem, again. Compute the 2 N plus 1 Lagrangian 233 00:16:16,954 --> 00:16:19,984 coefficients and filter it with the resulting FIR. 234 00:16:19,984 --> 00:16:23,689 The added advantage of this strategy is that if the delay changes over time for 235 00:16:23,689 --> 00:16:27,451 any reason, all we need to do is to keep the estimation running and update the FIR 236 00:16:27,451 --> 00:16:32,140 coefficients as the estimation changes over time. 237 00:16:32,140 --> 00:16:35,825 Okay, now that we know how to compensate for the propagation delay introduced by 238 00:16:35,825 --> 00:16:39,280 the channel. Let's go see the rechannel it with an 239 00:16:39,280 --> 00:16:41,935 arbitrary frequency response D j of omega. 240 00:16:41,935 --> 00:16:46,951 And the transmission chain goes from the pass band signal s of n, discreet time, 241 00:16:46,951 --> 00:16:51,891 into a D-to-A converter, analog signal s of t, it gets filtered by the channel, 242 00:16:51,891 --> 00:16:59,550 gives us hat s of t, which is sampled at the receiver to give us. 243 00:16:59,550 --> 00:17:04,600 A received fast band signal, hat s of n. But now we have seen in the previous 244 00:17:04,600 --> 00:17:07,780 module that this block diagram can be converted into an all digital scheme 245 00:17:07,780 --> 00:17:11,680 where our band pass signal s of n gets filtered by the discrete time equivalent 246 00:17:11,680 --> 00:17:17,450 of the channel. And, gives us a filtered version of the 247 00:17:17,450 --> 00:17:22,330 bandpass signal, as would appear inside the receiver. 248 00:17:22,330 --> 00:17:25,978 So the problem now, is that we would like to undo the effects of the channel, on 249 00:17:25,978 --> 00:17:30,361 the transmitted signal. And the classic way to do that, is to 250 00:17:30,361 --> 00:17:34,708 filter the received signal hat s of n, by a filter E, that compensates for the 251 00:17:34,708 --> 00:17:40,230 distortion or the filtering introduced by the channel. 252 00:17:40,230 --> 00:17:45,246 So the target is that the output of the filtering operation gives us a signal hat 253 00:17:45,246 --> 00:17:50,380 s e of n, which is equal to the transmitted signal. 254 00:17:50,380 --> 00:17:53,127 How do we do that? In theory, it would be enough to pick a 255 00:17:53,127 --> 00:17:56,922 transfer function for the filter E, which is just the reciprocal of the equivalent 256 00:17:56,922 --> 00:18:01,952 transfer function of the channel. But the problem is that we don't know the 257 00:18:01,952 --> 00:18:04,680 transfer function of the channel in advance because each time we transmit 258 00:18:04,680 --> 00:18:08,270 data over the channel, this transfer function may change. 259 00:18:08,270 --> 00:18:12,650 And also, even while we're transmitting data, the transfer function might change 260 00:18:12,650 --> 00:18:16,200 because it is a physical system that might be subject to. 261 00:18:16,200 --> 00:18:19,740 Drifts and modifications. So what do we do? 262 00:18:19,740 --> 00:18:25,562 We need to use adaptive equalization. So the filter that compensates for the 263 00:18:25,562 --> 00:18:30,409 distortion introduced by the channel is called an equalizer. 264 00:18:30,409 --> 00:18:34,669 And what we want to do Is to change the filter in time, so change the filter 265 00:18:34,669 --> 00:18:39,355 coefficients in a DPS realization as a function of the error that we obtain when 266 00:18:39,355 --> 00:18:47,610 we compare the output of the filter with the signal that we would like to obtain. 267 00:18:47,610 --> 00:18:52,260 In our case the signal that we would like to obtain is the transmitted signal. 268 00:18:52,260 --> 00:18:56,660 And so we take the received signal, we filter it with the equalizer. 269 00:18:56,660 --> 00:19:00,720 We look at the result. We take the difference, with respect to 270 00:19:00,720 --> 00:19:04,440 the original signal, and we use the error, which should be zero in the ideal 271 00:19:04,440 --> 00:19:08,580 case, to drive the adaptation of the equalizer. 272 00:19:08,580 --> 00:19:13,898 But wait, how do we get the exact transmitted signal at the receiver? 273 00:19:13,898 --> 00:19:17,340 Well, we use two tricks. The first one is boot strapping. 274 00:19:17,340 --> 00:19:22,730 The transmitter will send a prearranged sequence of symbols to the receiver. 275 00:19:22,730 --> 00:19:26,470 So let's call the sequence of symbols a t of n. 276 00:19:26,470 --> 00:19:31,720 This gets modulated and generates a pass band signal s of n. 277 00:19:31,720 --> 00:19:35,990 Now at the receiver the sequence a t of n is known. 278 00:19:35,990 --> 00:19:41,974 And the receiver has an exact copy of the modulator, of the transmitter, inside of 279 00:19:41,974 --> 00:19:46,485 itself. So the transmitter can generate locally, 280 00:19:46,485 --> 00:19:50,138 an exact copy of the pass band signal s of n. 281 00:19:50,138 --> 00:19:54,428 And so, for the bootstrapping part of the adaptation, we actually have an exact 282 00:19:54,428 --> 00:19:58,718 copy of the transmitted pass band signal that we can use to drive the adaptation 283 00:19:58,718 --> 00:20:03,890 of the coefficients. The training sequence is just long enough 284 00:20:03,890 --> 00:20:06,620 to bring the equalizer to a workable state. 285 00:20:06,620 --> 00:20:10,290 For the handshake procedure that we saw in the video before, for instance. 286 00:20:10,290 --> 00:20:13,911 This would correspond to the moment where the receiver starts demodulating the four 287 00:20:13,911 --> 00:20:17,550 point QIM. At that moment, the receiver will switch 288 00:20:17,550 --> 00:20:20,890 strategy and implement a data driven adaptation. 289 00:20:20,890 --> 00:20:25,770 The thing works like this. The received signal gets equalized, gets 290 00:20:25,770 --> 00:20:30,606 demodulated and then the slicer will recover the sequence of transmitted 291 00:20:30,606 --> 00:20:34,107 symbols. Since the receiver has a copy of the 292 00:20:34,107 --> 00:20:38,880 transmitter inside of itself, it can use the sequence of transmitted symbol. 293 00:20:38,880 --> 00:20:42,430 To build a local copy of the transmitted signal. 294 00:20:42,430 --> 00:20:47,120 Now of course, errors might happen in the slicing process, and so this local copy 295 00:20:47,120 --> 00:20:52,496 is not completely error-free. But the assumption is that the equalizer 296 00:20:52,496 --> 00:20:56,272 is doing already enough of a good job to keep the number of errors in this 297 00:20:56,272 --> 00:21:01,548 sequence sufficiently low. So that the difference, with respect to 298 00:21:01,548 --> 00:21:05,708 the received signal, is enough to refine the adaptation of the equalizer, and 299 00:21:05,708 --> 00:21:11,800 especially to track the time varying conditions of the channel. 300 00:21:11,800 --> 00:21:14,293 What we have seen, is just a qualitative overview of what happens inside of a 301 00:21:14,293 --> 00:21:17,765 receiver. And there're still so many questions that 302 00:21:17,765 --> 00:21:21,940 we would have to answer to be thorough. For instance, how do we carry out the 303 00:21:21,940 --> 00:21:25,140 adaptation of the coefficients in the equalizer? 304 00:21:25,140 --> 00:21:30,394 How do we compensate for different clock rates in geographically diverse receivers 305 00:21:30,394 --> 00:21:34,544 and transmitters? How do we recover from the interference 306 00:21:34,544 --> 00:21:40,900 from other transmission devices, and how do we improve the resilience to noise? 307 00:21:40,900 --> 00:21:45,500 The answers to all those questions require a much deeper understanding of 308 00:21:45,500 --> 00:21:50,650 adaptive signal processing, and hopefully that'll be the topic of your next signal 309 00:21:50,650 --> 00:21:54,119 processing class.