1 00:00:07,610 --> 00:00:09,350 My name is Barland Seaver. 2 00:00:09,350 --> 00:00:10,770 I wanted to tell you a little bit... 3 00:00:12,370 --> 00:00:13,770 Can't hear me? 4 00:00:17,290 --> 00:00:20,530 Testing, testing... 5 00:00:20,530 --> 00:00:23,410 Should be longer. 6 00:00:24,070 --> 00:00:25,070 Is that better? 7 00:00:26,250 --> 00:00:27,330 Alright. 8 00:00:29,370 --> 00:00:31,110 Thank you for coming. 9 00:00:31,110 --> 00:00:32,690 My name is Barland Seaver. 10 00:00:33,310 --> 00:00:35,550 I wanted to tell you a little bit about some of the experiments... 11 00:00:35,550 --> 00:00:40,550 that I've done over the past year with Software Defined Radio, just so you get a bit of a flavor... 12 00:00:40,550 --> 00:00:42,130 of some of the cool things you can do. 13 00:00:43,870 --> 00:00:48,610 I'm the Applications Specialist slash SDR Evangelist at Edis Research. 14 00:00:49,090 --> 00:00:52,210 And luckily I get to have a bit of fun with the products. 15 00:00:53,710 --> 00:00:57,110 This is a little journey I went on earlier this year. 16 00:00:57,110 --> 00:01:01,030 I really love SDR, showing people the cool things you can do with it. 17 00:01:01,030 --> 00:01:07,170 This was in Europe, and this was a lab that I took part in... 18 00:01:07,170 --> 00:01:11,990 teaching this group of people from developing nations about SDR. 19 00:01:12,450 --> 00:01:18,570 And usually when I travel I also have the good fortune of teaching the local constabulary about SDR as well. 20 00:01:18,570 --> 00:01:21,250 But I always seem to show up at exactly the right time. 21 00:01:22,090 --> 00:01:26,990 But today I'd like to quickly show you things that you can do with restaurant pages... 22 00:01:26,990 --> 00:01:33,050 the traffic message channel on RDS, the radio data service, looking at primary surveillance radar... 23 00:01:33,050 --> 00:01:36,030 and some RFID applications. 24 00:01:36,170 --> 00:01:40,830 And pretty much everything I've done is using GNU Radio, which I'm sure you've heard about. 25 00:01:40,830 --> 00:01:45,730 It's a really neat open source DSP slash SDR framework. 26 00:01:45,830 --> 00:01:49,230 And it's got a very vibrant community behind it. 27 00:01:50,650 --> 00:01:55,810 Over the past few years there's been an explosion in bandwidth... 28 00:01:55,810 --> 00:01:59,070 that you can actually achieve to peripherals that you plug into your computer. 29 00:01:59,070 --> 00:02:04,730 So this is, for example, 50 MHz worth of spectrum being captured in real time... 30 00:02:04,730 --> 00:02:07,870 going through another piece of software I love to use called Boardline. 31 00:02:09,190 --> 00:02:12,130 Does anybody know what band we're looking at here? 32 00:02:12,130 --> 00:02:13,010 Any guesses? 33 00:02:16,790 --> 00:02:17,610 One guess? 34 00:02:17,610 --> 00:02:18,670 Come on, anyone? 35 00:02:21,130 --> 00:02:23,610 It's actually the cellular band. 36 00:02:24,090 --> 00:02:29,330 In the middle here you've got some GSM channels and some wider bandwidth channels. 37 00:02:29,330 --> 00:02:32,230 Actually, the title slide here is a portion of that. 38 00:02:32,230 --> 00:02:35,770 And what's really cool about this program is that you can run the FFT so fast... 39 00:02:35,770 --> 00:02:39,790 you can see the frequency correction burst in the control channel coming down on GSM. 40 00:02:39,790 --> 00:02:43,290 And that's what your handset uses to synchronize its internal oscillator. 41 00:02:45,570 --> 00:02:47,910 This is actually a video of it running. 42 00:02:47,910 --> 00:02:51,350 I think... maybe... there we go. 43 00:02:52,330 --> 00:02:55,090 My laptop just needs a moment. 44 00:02:56,290 --> 00:02:57,490 There we go. 45 00:02:57,490 --> 00:02:59,030 So this is actually it scrolling past. 46 00:02:59,030 --> 00:03:01,870 You have some traffic, GSM traffic there on the left-hand side... 47 00:03:01,870 --> 00:03:03,930 and on the right-hand side you can see the control channel. 48 00:03:03,930 --> 00:03:13,490 At this kind of resolution and transform size you can see the symmetry that's due to the GMSK modulation that's used for 2G GSM. 49 00:03:13,490 --> 00:03:18,990 And this video here is actually the 400 MHz band. 50 00:03:18,990 --> 00:03:23,930 I think this was 100 MHz per second, so this is 100 MHz worth of bandwidth. 51 00:03:23,930 --> 00:03:29,710 This is going over a 10 GHz pipe from a higher end USRP. 52 00:03:30,390 --> 00:03:33,490 The USRP that I used... 53 00:03:33,490 --> 00:03:38,540 Just before I get to that, if graphics doesn't quite do it for you and you want to kick it old school... 54 00:03:38,540 --> 00:03:42,160 with some ASCII art, you can have an ASCII art FFT. 55 00:03:42,200 --> 00:03:44,700 You might want to SSH into a remote console or something. 56 00:03:44,700 --> 00:03:46,880 You don't want to do X11 forwarding. 57 00:03:46,880 --> 00:03:48,820 You can just pop open one of these. 58 00:03:48,820 --> 00:03:52,660 This is actually 200 MHz worth of bandwidth. 59 00:03:52,700 --> 00:03:55,720 Centered on the middle of the FM broadcast band. 60 00:03:56,080 --> 00:04:02,760 You can stream an incredible number of Hz essentially into your machine. 61 00:04:02,760 --> 00:04:06,660 What I've used for my experiments is pretty much this, the USRP B200. 62 00:04:07,780 --> 00:04:10,300 You can pass it around if you want to have a look. 63 00:04:11,380 --> 00:04:13,740 It's USB 3.0, bus powered. 64 00:04:13,800 --> 00:04:18,120 You can get up to 56 MHz of RF bandwidth over USB 3.0. 65 00:04:18,120 --> 00:04:20,800 It tunes from 70 MHz to 60 GHz. 66 00:04:21,040 --> 00:04:26,680 The B210 can do 2x2 MIMO, so you can have full duplex 2 channels. 67 00:04:27,380 --> 00:04:32,580 You can do all sorts of incredible stuff with this, like I've run an LTE base station off it. 68 00:04:33,360 --> 00:04:35,080 The first thing, restaurant pages. 69 00:04:35,080 --> 00:04:41,200 Whenever I have these title slides, the actual FFT there is related to the signal that's being analyzed. 70 00:04:41,360 --> 00:04:43,240 I'm sure you know what these pages look like. 71 00:04:43,240 --> 00:04:45,760 You go into the restaurant, you order your food, you're given one. 72 00:04:45,940 --> 00:04:48,920 They beep when your order is ready, assuming it is in fact ready. 73 00:04:48,920 --> 00:04:55,560 If you consider the rate at which orders come into the restaurant and then the rate at which food is picked up, it should be roughly the same. 74 00:04:55,560 --> 00:04:58,280 But it's possible to tip that balance slightly. 75 00:04:58,500 --> 00:05:01,120 For example, if everybody might be paged at once. 76 00:05:01,940 --> 00:05:06,640 If you want to figure out the frequency, you can either look at the frequency, which is sometimes on the device. 77 00:05:06,700 --> 00:05:09,480 You can look at the FCC ID and look it up on the database. 78 00:05:09,860 --> 00:05:12,280 It tells you what the licensed frequencies are there. 79 00:05:12,280 --> 00:05:17,320 Or you can actually just use an SDR like a spectrum analyzer and find the strong signal. 80 00:05:17,320 --> 00:05:18,400 This is an example here. 81 00:05:18,400 --> 00:05:20,220 This is using HD-SDR. 82 00:05:20,520 --> 00:05:21,800 There's the page. 83 00:05:22,320 --> 00:05:23,720 I have some audio here. 84 00:05:23,720 --> 00:05:28,180 Let's see if we can hear what it sounds like. 85 00:05:42,350 --> 00:05:44,950 That's some custom pager protocol. 86 00:05:44,970 --> 00:05:54,830 If you actually look at the FFT at a higher resolution, you can see the two different frequencies that are used in this frequency shift keyed modulation. 87 00:05:54,870 --> 00:05:58,490 One frequency will be a 1, the other frequency will be a 0. 88 00:05:58,490 --> 00:06:08,410 The interesting thing about this plot here is that there's no long run of 1s or 0s, which pretty much gives you a clue about the line encoding used for this modulation. 89 00:06:08,730 --> 00:06:19,990 Once you actually construct this flow graph in GNU Radio, you can demodulate that and then extract the raw bits and then process those to figure out what protocol is actually in use. 90 00:06:21,210 --> 00:06:22,830 This is the first step. 91 00:06:22,830 --> 00:06:27,170 You need to record your channel and then identify the signal of interest. 92 00:06:27,210 --> 00:06:30,430 And then you move that down to baseband to center it on the dial. 93 00:06:30,430 --> 00:06:32,550 And you can use that with one of these blocks. 94 00:06:32,830 --> 00:06:44,250 Once you actually have that moved to 0, to DC, then you need to figure out what the deviation is for your frequency shift keying, which is finding the frequency range from the left-hand peak to the right-hand peak. 95 00:06:44,250 --> 00:06:50,030 So that might be a 0 to 1, and you need to figure out what that range is. 96 00:06:50,030 --> 00:07:04,070 Once you've figured out that range, you can then put it through the quadrature demodulator with the appropriate gain, and that will scale your signal along this time series to be between 1 and negative 1, which is kind of normalized units for your incoming stream. 97 00:07:04,070 --> 00:07:08,790 After that, you need to figure out how quickly your bits are coming in. 98 00:07:08,790 --> 00:07:10,330 So this is your board rate. 99 00:07:10,590 --> 00:07:14,330 And you can do this with a simple construction in GNU Radio. 100 00:07:14,330 --> 00:07:17,230 This is using this thing called cyclostationary analysis. 101 00:07:17,450 --> 00:07:23,370 And you basically multiply the original signal by a delayed version of itself and then take the FFT. 102 00:07:23,370 --> 00:07:29,090 It's a little bit of a trick, but it's cool because it actually shows you the periodicity of the incoming bit stream. 103 00:07:29,090 --> 00:07:37,290 And here you look at the first peak, and then you can just simply read off what the board rate is of your incoming bit stream. 104 00:07:37,290 --> 00:07:48,290 And once you've got all this information, then you can do clock recovery, which actually means that you take in your raw samples and then you slice and you extract a 1 or a 0. 105 00:07:48,290 --> 00:07:50,490 If it's above 0, you treat it as a 1. 106 00:07:50,490 --> 00:07:52,850 If it's below 0, then you treat it as a 0. 107 00:07:52,850 --> 00:07:54,350 And then you have your raw bit stream. 108 00:07:54,350 --> 00:07:56,490 And this is what it looks like coming out. 109 00:07:56,490 --> 00:08:02,030 So you see some sort of repeating preamble here, and then you have some sort of a payload after that. 110 00:08:02,390 --> 00:08:05,390 And presumably in there it's encoded what pages should go off. 111 00:08:06,130 --> 00:08:11,010 We always say flow graphs are easy, you just throw a couple blocks together and you're all sweet. 112 00:08:11,010 --> 00:08:13,530 I told a bit of a fib in the previous one. 113 00:08:13,530 --> 00:08:15,410 I hid all of the disabled blocks. 114 00:08:15,410 --> 00:08:23,950 The disabled blocks are in grey, and I produced all of those plots by adding these graphical syncs along the way to probe the signal. 115 00:08:23,950 --> 00:08:26,270 But this is more a complete picture. 116 00:08:26,390 --> 00:08:30,530 I get a lot of crap about my flow graphs. 117 00:08:32,770 --> 00:08:41,210 So those blocks I was telling you about there, you've got frequency translation, quadrature demod, clock recovery, figuring out what the baud rate is. 118 00:08:41,810 --> 00:08:44,590 And so once you've got your raw bit stream, these are the raw bits. 119 00:08:44,630 --> 00:08:48,310 So this is a little program I wrote a while ago to look at a different system. 120 00:08:48,310 --> 00:08:59,590 But you can import raw bits and then play around with different combinations of line encoding, character encoding, start bit, stop bits and so on to try and tease out some sort of information from these raw bits. 121 00:08:59,730 --> 00:09:04,670 So here you can see again you've got no long strings and ones and zeros, they're alternating pretty quickly. 122 00:09:04,710 --> 00:09:08,350 And that gives you a good clue that they're probably using Manchester encoding. 123 00:09:08,370 --> 00:09:14,650 So when you turn on Manchester encoding it halves the number of bits because what happens is it treats your information in pairs. 124 00:09:14,650 --> 00:09:17,970 So like a zero and a one will be treated as a zero. 125 00:09:17,970 --> 00:09:20,450 A one and a zero will be treated as a one. 126 00:09:20,510 --> 00:09:27,030 It's just a way of enabling better clock recovery so you have more transitions in your data for the receiver to synchronize. 127 00:09:27,030 --> 00:09:30,810 Once you do that it starts looking more like a proper packet. 128 00:09:30,810 --> 00:09:35,190 And you can verify that it is in fact Manchester encoded by moving the bit offset. 129 00:09:35,190 --> 00:09:39,530 So let's say you forget the first bit in this unencoded view. 130 00:09:39,530 --> 00:09:45,130 And then once you move the bits you get line encoding violations and they're highlighted in red. 131 00:09:45,130 --> 00:09:52,670 And that's basically because with Manchester you can't have a zero zero or a one one in the raw input stream. 132 00:09:52,670 --> 00:09:56,070 Because you need to have a transition through the middle there. 133 00:09:56,070 --> 00:09:58,410 So that's just good verification there. 134 00:09:58,410 --> 00:10:09,510 Once you actually capture multiple pager transmissions then you can put them side by side and highlight the differing bits to figure out where the ID might be encoded. 135 00:10:09,530 --> 00:10:13,010 So you can see there are some bits changing here and at the end there. 136 00:10:13,890 --> 00:10:23,190 And now once you actually get a pager you check the ID and then you look in your Manchester decoded stream and think, oh hang on, what do you know, there it is. 137 00:10:23,430 --> 00:10:29,170 There's also this odd byte at the end that was changing, as you saw before, that's the checksum. 138 00:10:29,450 --> 00:10:34,850 And you can go through and try a whole bunch of different CRCs, algorithms. 139 00:10:34,850 --> 00:10:37,730 Turned out it wasn't actually CRC, it was really simple. 140 00:10:38,130 --> 00:10:41,930 You add up your bytes and you mod 255, it's a very simple check. 141 00:10:41,930 --> 00:10:44,750 And so that matches, as you can see there. 142 00:10:44,850 --> 00:10:46,870 So that's pretty much the packet format. 143 00:10:46,870 --> 00:10:48,610 And to do it in the modulator you just do the reverse. 144 00:10:48,610 --> 00:10:53,770 So you construct your packet, add your preamble, your magic header, the pager number, the checksum. 145 00:10:53,770 --> 00:10:59,750 You interpolate that to start producing the stream that will be sent out of your radio. 146 00:11:00,090 --> 00:11:05,770 You frequency modulate, before that you should actually do some pulse shaping, I didn't bother. 147 00:11:05,990 --> 00:11:09,230 And then you resample so that you can send it directly to the transmitter. 148 00:11:09,270 --> 00:11:12,970 So this is actually the transmitter, the modulator. 149 00:11:13,410 --> 00:11:18,150 And you've got the steps that I just talked about there, goes out of the USERP at the end. 150 00:11:18,150 --> 00:11:25,730 And when you look at it on the FFT again it looks very similar to what we captured off the air from the original system. 151 00:11:25,870 --> 00:11:28,170 So you get something like this, 152 00:11:32,510 --> 00:11:36,530 put the number in, that's the Goonie radio program. 153 00:11:39,980 --> 00:11:41,000 There you go. 154 00:11:42,940 --> 00:11:44,820 So that's system number one. 155 00:11:44,820 --> 00:11:49,680 I actually had a bit of fun, my colleagues and I went out for lunch to this place. 156 00:11:49,680 --> 00:11:57,000 And I took my laptop and my USERP and I was just saying, just ignore me, I'm going to be capturing a little bit more data to try and figure out what's going on. 157 00:11:57,100 --> 00:12:06,620 But in actual fact it was all working and I looked at my boss's pager ID and then I set up this WiFi tethering from my phone to my laptop. 158 00:12:06,620 --> 00:12:12,520 So I would have an XMR piece of server running on my laptop and then I would have this web interface on my telephone. 159 00:12:12,680 --> 00:12:17,400 And so I could actually just type the numbers in on my telephone away from the table and set them off. 160 00:12:17,400 --> 00:12:19,540 So I just said I was going to the bathroom or whatever. 161 00:12:19,600 --> 00:12:26,600 And then I typed in his number and his thing went off and then he went to get his order and then lots of chaos ensued when he tried to claim his order at the kitchen. 162 00:12:27,320 --> 00:12:30,860 But he liked the troll, I think he enjoyed that. 163 00:12:30,940 --> 00:12:38,060 So there's another pager system, this actually uses more of a standard, an established standard POCSAG which is used for normal pagers as you might recall. 164 00:12:38,340 --> 00:12:43,980 You can actually decode pagers already with a nice out-of-tree module for Goonie radio called GL POCSAG. 165 00:12:43,980 --> 00:12:50,880 I took that and modified it a little bit for this one and this is the flow graph there but this is just your POCSAG decoder block right in there. 166 00:12:51,200 --> 00:12:59,280 And if you look at that on the scope you can see your preamble again, your payload and actually the decoded frames coming out on the left hand side. 167 00:12:59,560 --> 00:13:09,500 Now the decoded frames have this odd structure for this system where you have a bunch of differing number of idles and then some sort of an address and data payload after that. 168 00:13:09,500 --> 00:13:14,460 Let's look at one in particular, so initially you have a sink so the receiver can lock. 169 00:13:14,460 --> 00:13:22,280 You have a varying number of idles, you have an address field and then some sort of data payload and then another padding idle at the end. 170 00:13:22,280 --> 00:13:27,440 So what's going on here is with POCSAG in this system, the zeros are just padding. 171 00:13:27,440 --> 00:13:36,000 I think the next four hexadecimal digits here are actually the system ID of the pager system at that particular restaurant. 172 00:13:36,000 --> 00:13:40,480 And then the last byte here is actually encoding the pager address. 173 00:13:40,480 --> 00:13:52,440 But for POCSAG the way it works is for the address you take the last three bits, you multiply them by two and that's what gives you the index into this slotted structure that you transmit. 174 00:13:52,560 --> 00:13:56,140 So as you can see here, this is three, you multiply it by two and you get six. 175 00:13:56,140 --> 00:14:05,980 And the reason why they do this is back in the day when everybody had the beepers, to save battery power, the radio's receiver would only wake up when the radio was on. 176 00:14:06,000 --> 00:14:10,060 It would wake up in the slot where it might expect its address to be. 177 00:14:10,220 --> 00:14:19,480 So if you consider that you're going to send a page to a particular beeper, you're going to send it to an address, it knows what its own address is and it knows what slot it can expect it to be in. 178 00:14:19,480 --> 00:14:25,540 So the radio will stay off after the sync in all of the other slots where it would never be addressed because it would be for somebody else. 179 00:14:25,540 --> 00:14:30,400 And it would wake up in the slot, check, if it's there then it receives everything, if it's not then it goes back to sleep. 180 00:14:30,400 --> 00:14:32,680 And that can save you a huge amount of battery power. 181 00:14:33,860 --> 00:14:39,300 So to construct that again, you have your preamble, you have your sync, you have your system and page or address. 182 00:14:39,720 --> 00:14:47,560 You put it in the right slot, you pad it with idles, and then you need to apply this forward error correction, which is this BCH code that the standard uses. 183 00:14:48,000 --> 00:14:54,100 And if you do that, we're now with my colleagues again, so we had a bunch of pages to play with. 184 00:14:54,360 --> 00:14:55,280 And you can kind of... 185 00:14:55,280 --> 00:15:02,410 We'll do 39, and then we'll do 56, and 82... 186 00:15:04,130 --> 00:15:05,930 Anyway, you get the idea. 187 00:15:06,370 --> 00:15:11,190 And then the final system was a ZigBee one, and this is pretty cool because it actually reverses the role. 188 00:15:11,190 --> 00:15:17,010 So in this case the pages transmit back to the restaurant where you've actually sat down. 189 00:15:17,010 --> 00:15:25,070 So on the tables, underneath the tables, they have RFID chips and this has an integrated reader that will read out the id of the table you're sitting at. 190 00:15:25,070 --> 00:15:29,970 And then when your order is ready, they come and deliver it to you, but they know where you're sitting. 191 00:15:30,450 --> 00:15:34,490 And it uses ZigBee, and so it operates in the 2.4 gig ISM band. 192 00:15:34,550 --> 00:15:43,790 And you can actually decode this with GRIEE802.15.4, which is a really elegant implementation of the entire stack and a transceiver as well. 193 00:15:43,790 --> 00:15:45,530 So this is what the flow graph looks like there. 194 00:15:45,530 --> 00:15:47,370 You've got your USERP source coming in. 195 00:15:47,370 --> 00:15:51,530 You've got your PHY implemented, MAC, and another app stack on top of that. 196 00:15:51,530 --> 00:15:56,230 And it just goes out to your sink if you want to have a full transceiver. 197 00:15:56,270 --> 00:16:02,250 But in this case, that was a little setup, just recording there when the pages would be placed on the table. 198 00:16:02,250 --> 00:16:07,390 You can see that there's an obvious transmission happening there and the packets coming out on the left-hand side. 199 00:16:07,390 --> 00:16:11,770 If you drop this into Wireshark, then you can see decoded ZigBee data there. 200 00:16:11,970 --> 00:16:17,130 If you can remember the two page numbers we had, turn them into hex, what do you know, they're in the payload. 201 00:16:17,130 --> 00:16:21,890 I actually went then to the kitchen and looked at their screen and figured out what table number we were sitting at. 202 00:16:21,890 --> 00:16:25,910 It happened to be 36, turn it into hex, that's in the payload too. 203 00:16:27,790 --> 00:16:34,670 Now if you want to take a page of hostage for whatever reason, then usually when you take it out of range of the system, it can't hear the beacon anymore. 204 00:16:34,870 --> 00:16:38,390 And so it'll get angry and light up and make lots of noise. 205 00:16:38,390 --> 00:16:47,530 If you wanted to take one hostage, then you could simulate your own beacon and it wouldn't get angry for whatever reason you would want to do that. 206 00:16:47,530 --> 00:16:48,930 So that's the pages. 207 00:16:48,930 --> 00:16:50,590 Any questions so far? 208 00:16:51,470 --> 00:16:52,950 Any comments? 209 00:16:52,950 --> 00:16:55,810 Just feel free to shout out whenever you want. 210 00:16:56,150 --> 00:17:02,450 The next thing I looked at was cracking the encryption on the traffic message channel that's used in RDS. 211 00:17:02,450 --> 00:17:11,010 The background here is actually a large portion of the FM broadcast band, so you can see the various radio stations there. 212 00:17:11,010 --> 00:17:22,330 What's really neat is if you zoom right in, you can actually see over a very short space of time how the carrier is actually modulated by the audio that's being broadcast by that station. 213 00:17:22,330 --> 00:17:24,590 So I think here, for example, somebody's actually talking. 214 00:17:24,590 --> 00:17:25,870 This is a bit of speech here. 215 00:17:25,870 --> 00:17:30,250 You see these are moving much more, so there's probably a lot more modulation going on, but this is someone's speech. 216 00:17:30,250 --> 00:17:37,650 And if you also look closely, you can see modulated on there the 19 kHz pilot tone, which is used to recreate stereo audio and so on. 217 00:17:37,770 --> 00:17:44,790 This is a sort of wider view, but if you look at it in a video, you can see that kind of modulation taking place there. 218 00:17:45,230 --> 00:17:50,210 It's kind of a good way to get an idea of how a signal works. 219 00:17:52,090 --> 00:18:01,750 So, with RDS, you've probably seen on your radio receiver, it'll actually tell you the station name and the name of the song and so on. 220 00:18:02,590 --> 00:18:05,510 And it's a sub-carrier on commercial FM stations. 221 00:18:05,510 --> 00:18:07,850 It's not audible, because it's filtered out. 222 00:18:08,130 --> 00:18:11,150 It's BPSK and it runs at this odd baud rate. 223 00:18:11,150 --> 00:18:14,830 You can listen and decode with this out-of-tune module called GR-RDS. 224 00:18:14,830 --> 00:18:17,730 And this is an example here. 225 00:18:17,730 --> 00:18:19,910 This is Sutro Tower in San Francisco. 226 00:18:19,990 --> 00:18:22,950 They broadcast a whole bunch of FM radio stations out of that. 227 00:18:23,590 --> 00:18:32,470 And if you, for example, hook up a B200, then you can run the program and this is what you get on the screen. 228 00:18:32,470 --> 00:18:33,290 This is the baseband. 229 00:18:33,290 --> 00:18:35,150 I'm listening to a particular station here. 230 00:18:35,150 --> 00:18:39,850 You can see the RDS traffic scrolling up on the left-hand side. 231 00:18:39,850 --> 00:18:46,310 It decodes that and then forms this sort of text panel down the bottom, so you get the station name and the program name and so on. 232 00:18:46,350 --> 00:18:51,630 And this is actually, once you look at the demodulated portion of the signal. 233 00:18:52,010 --> 00:18:56,150 This big peak here is the 19 kHz pilot tone. 234 00:18:56,170 --> 00:18:59,290 To the left-hand side of that is your mono, left plus right. 235 00:18:59,870 --> 00:19:04,290 To the right-hand side of this is your stereo difference channel, so that's left minus right. 236 00:19:04,290 --> 00:19:10,730 And then your receiver will combine the two to recreate your independent left and right channel, so you get stereo audio again. 237 00:19:10,910 --> 00:19:15,990 Beyond that, you actually have your RDS subcarrier up here, which is on the... 238 00:19:15,990 --> 00:19:20,850 You basically multiply this pilot tone up to center in on that subcarrier. 239 00:19:22,390 --> 00:19:27,230 So, what we want to do then is look at the traffic message channel. 240 00:19:27,230 --> 00:19:31,150 And this is a compact representation of traffic events in your area. 241 00:19:31,150 --> 00:19:35,850 So you basically have what events it is, where it is, how long it might last. 242 00:19:35,850 --> 00:19:40,970 And some examples are traffic congestion, when accidents happen, or when there's roadwork, for example. 243 00:19:40,970 --> 00:19:41,830 And here's an example. 244 00:19:41,830 --> 00:19:43,670 This is the nav system in my car. 245 00:19:43,770 --> 00:19:46,830 You have these congestion icons that pop up. 246 00:19:47,270 --> 00:19:51,390 Sorry, these are roadwork, and then you have the highway congestion along there. 247 00:19:51,670 --> 00:19:53,710 Now, the thing is, I thought, oh, that's cool. 248 00:19:54,130 --> 00:19:59,970 It would be nice to receive this and make your own map, because I like making maps and visualizing things. 249 00:19:59,970 --> 00:20:04,130 This is an example of what you see as it's received. 250 00:20:04,130 --> 00:20:10,310 So , congestion, average speed, sunny periods, and things like this. 251 00:20:11,910 --> 00:20:17,450 Basically, this isn't particularly helpful, but the problem is that the location codes are actually encrypted. 252 00:20:17,870 --> 00:20:19,690 Elsewhere in the world, they're not encrypted. 253 00:20:19,690 --> 00:20:20,990 In America, they are. 254 00:20:20,990 --> 00:20:25,290 Now, apart from receiving, with GRDS, you can transmit, obviously. 255 00:20:25,290 --> 00:20:29,570 This is in my car, and it's coming from somewhere else. 256 00:20:30,110 --> 00:20:35,670 As it happens, just a B200 there on my laptop, making my own little FM radio station. 257 00:20:35,670 --> 00:20:44,170 As you might recall, that plot we saw before, this is the same plot, but with no noise, because we're actually synthesizing the signal. 258 00:20:44,170 --> 00:20:49,210 So here you've got your mono, your pilot, your stereo difference, and the RDS. 259 00:20:49,670 --> 00:20:53,170 And this is actually then being received by the car radio. 260 00:20:53,170 --> 00:20:57,030 So the location codes are 16-bit for a geographical area. 261 00:20:57,030 --> 00:20:58,950 The encryption keys are 16-bits. 262 00:20:59,070 --> 00:21:05,150 And every day, they pick one of 31 keys, which are already pre-programmed in the receiver. 263 00:21:05,610 --> 00:21:10,250 And that ID is broadcast continuously over the course of the day. 264 00:21:10,330 --> 00:21:21,150 So, if you actually have a look, then, if you filter out all of the sort of boring traffic stuff, like congestion, then you get interesting things coming out. 265 00:21:21,150 --> 00:21:26,490 So I modified it, so it prints out the encryption ID, and then you get these temperature reports. 266 00:21:26,490 --> 00:21:28,810 And I thought, oh, you know, interesting temperature reports. 267 00:21:28,810 --> 00:21:33,730 Maybe I can create pretty graphs of how temperature changes through the course of the day somewhere in the Bay Area. 268 00:21:35,090 --> 00:21:40,450 But as it turned out, I kept looking over the course of each day, and I noticed these patterns appear. 269 00:21:40,450 --> 00:21:45,790 So every day, there would always be three unique temperature reports. 270 00:21:46,230 --> 00:21:50,030 And it turned out that it's not actually really temperature. 271 00:21:50,030 --> 00:21:57,170 So when I say temperature from now on, that's simply what the standard claims is the translation of this event ID. 272 00:21:57,170 --> 00:22:00,290 It's not actually a temperature report. 273 00:22:00,290 --> 00:22:01,470 It's weird. 274 00:22:01,470 --> 00:22:08,690 But what happens is you get these three unique lines every day that are temperature for a particular encrypted location. 275 00:22:09,270 --> 00:22:18,650 And once you actually start logging all this data, I would check every day and make a log for that particular key ID, you get these patterns. 276 00:22:18,750 --> 00:22:29,070 So you get this group of three, and over the course, while you're in the same group period, let's call it, the encrypted location IDs would be the same, and the temperatures would be different. 277 00:22:29,070 --> 00:22:32,770 But you can see these patterns form with the groupings. 278 00:22:33,110 --> 00:22:41,470 So what we want to do is then find out the hidden value of these location codes, which is the plain text location code that's been encrypted. 279 00:22:41,550 --> 00:22:45,430 And also, this is the unobserved value, and maybe recover the key. 280 00:22:45,430 --> 00:22:49,910 So we would collect this data, and then you can build up this table over time. 281 00:22:49,910 --> 00:22:58,450 So imagine days going across the top, we have our key ID, which translates to some hidden key, and then we have these periods that can randomly change. 282 00:22:58,450 --> 00:23:01,550 They can persist for several days or weeks and then just change. 283 00:23:01,550 --> 00:23:11,170 But the idea is that you build this table that maps from your unknown key to your unknown plain text location to the event that was transmitted and the encrypted location. 284 00:23:11,170 --> 00:23:12,910 So you build this table up. 285 00:23:12,910 --> 00:23:16,530 And then once you have sufficient amount of data, then you can do some analysis. 286 00:23:16,530 --> 00:23:18,470 And 16 bits is obviously very short. 287 00:23:18,530 --> 00:23:23,030 You have this reuse of these patterns through these groups. 288 00:23:23,230 --> 00:23:31,010 And you can use singular events that occur as well to help with your breakdown of this data. 289 00:23:31,410 --> 00:23:34,730 And these singular events you can then use as known plain text. 290 00:23:34,730 --> 00:23:41,010 So singular events are unique occurrences, such as this odd one where there was some object reported to me on the road. 291 00:23:41,010 --> 00:23:45,050 This doesn't happen very often compared to, say, traffic congestion, which is everywhere. 292 00:23:46,090 --> 00:23:49,270 So once you've done that, then you build this sort of table. 293 00:23:49,410 --> 00:23:52,190 And then you start iterating and doing this exhaustive search. 294 00:23:52,190 --> 00:24:04,530 So the first thing you do is you calculate every possible key and every possible plain text location that can match the results that you got for key number one and this potential hidden location number one. 295 00:24:04,550 --> 00:24:05,790 And then you start filtering. 296 00:24:05,790 --> 00:24:10,110 So you repeat for that same day with that same key ID for the other two hidden locations. 297 00:24:10,110 --> 00:24:14,090 And then you take out all the possible keys that don't work, because you verify. 298 00:24:14,090 --> 00:24:23,050 You take the possible key, you take the encrypted location, you take the possible unencrypted ones, you put them through the encryption process and see whether they match with what you got. 299 00:24:23,050 --> 00:24:27,410 And if they don't, and you try all the possibilities, then you take it out of your pool. 300 00:24:27,770 --> 00:24:31,610 And so you iterate then on all of the other keys on all of the other locations. 301 00:24:31,770 --> 00:24:38,590 Another way of looking at that is you have your incoming data, you have this iteration loop, you have your pool of possible locations, pool of possible keys. 302 00:24:38,590 --> 00:24:44,210 You keep going through validating, refining, removing the invalid entries, and then at the end you're left with this. 303 00:24:45,010 --> 00:24:49,130 I haven't collected all the data, but it's looking pretty good so far. 304 00:24:49,270 --> 00:25:06,450 Some encryption IDs have one possible key match, and the interesting thing is due to the algorithm, you can have multiple possible key matches for any one day, but because of the nature of the algorithm, you can query an encrypted location code and get one unencrypted match back. 305 00:25:06,450 --> 00:25:10,890 So that's how that works. 306 00:25:11,470 --> 00:25:30,530 And then unfortunately, these singular events are usually these terrible things, like , I mean this is reported on the air, so vehicle fires, flooding, hopefully everyone's okay, but unfortunately this makes for a good additional input point data sample for the system. 307 00:25:30,930 --> 00:25:32,610 Okay, so that's RDS. 308 00:25:33,250 --> 00:25:34,430 Aviation radar. 309 00:25:34,430 --> 00:25:38,730 You might have heard me talk about this before in the context of MODIS and ADS-B. 310 00:25:39,070 --> 00:25:41,170 Just a quick recap then. 311 00:25:41,310 --> 00:25:44,510 Primary surveillance radar is when you've got the big, big dish that spins. 312 00:25:44,830 --> 00:25:47,810 And secondary surveillance radar is this antenna across the top. 313 00:25:47,810 --> 00:25:59,870 The primary system works in a way that it sends out this big radio pulse, and that is then reflected off the metallic skins of aircraft, and anything else that happens to be a good reflector for RF. 314 00:25:59,870 --> 00:26:06,450 It's collected in this big dish, and then they paint this radar scope that spins around, you know, you've seen it in the movies and photos and so on. 315 00:26:06,570 --> 00:26:15,090 The secondary system is different in that this sends out an interrogation, and that's received by the transponder that needs to be on an aircraft. 316 00:26:15,090 --> 00:26:29,810 The transponder hears the interrogation, and then sends back to this antenna the score code or the altitude of the aircraft, so that air traffic control can plot it, instead of just having these anonymous blips that come up, so that they can label it on their radar scope. 317 00:26:30,050 --> 00:26:33,630 So this system is an active system, you need the transponder on the aircraft. 318 00:26:33,650 --> 00:26:39,230 The primary system is a passive system, you don't need to have a transponder active or anything like that. 319 00:26:39,230 --> 00:26:46,970 The object just needs to be there and have a sufficient radar cross-section, so that it can transmit some sort of RF energy back into the receiver. 320 00:26:47,390 --> 00:26:59,830 So, with primary surveillance, the radar continually sends out what's called a bang or a strong pulse, and then it waits a little while in receive mode for any echoes that come back off objects, and then it starts again. 321 00:26:59,830 --> 00:27:03,350 This is called a pulse repetition period, or pulse repetition frequency. 322 00:27:04,130 --> 00:27:15,690 And with ADS-B, which is part of the active system, these transponders continually and independently send out position, heading, altitude, vertical rate, flight ID, score code. 323 00:27:15,910 --> 00:27:21,290 And a typical 747 has 31 radios, which makes somebody like me really excited. 324 00:27:22,990 --> 00:27:31,710 But anyway, the next time you fly, which is probably quite soon, you can try spotting all the different antennas that are both above and below the aircraft. 325 00:27:33,110 --> 00:27:36,470 Now, this is what a MODIS frame looks like. 326 00:27:36,470 --> 00:27:44,990 You have this preamble at the beginning, a certain number of pulses positioned appropriately, and then, interestingly, remember from Manchester encoding, this is exactly the same sort of encoding here. 327 00:27:44,990 --> 00:27:49,570 So depending on which bit is actually on, then you get your bits out and you can form a packet. 328 00:27:49,570 --> 00:28:03,050 Now, you may have heard me talk about this before, and others as well, so I'll skip all the details, but this is what a GNU radio, this is my GNU radio decoder that I wrote many years ago, and you can see the packets coming in there. 329 00:28:03,050 --> 00:28:05,910 You've got the preamble up front, and then your payload after that. 330 00:28:06,350 --> 00:28:09,110 You may have seen these, but I'll show them again. 331 00:28:09,110 --> 00:28:10,230 You can do pretty plots. 332 00:28:10,230 --> 00:28:12,750 So this is a system I put together called Aviation Mapper. 333 00:28:12,750 --> 00:28:15,110 These are all the planes flying through the Bay Area. 334 00:28:15,110 --> 00:28:18,970 You've got SFO, SJC, and Oakland International Airport. 335 00:28:18,970 --> 00:28:23,410 When transponders go bad, they produce all these crazy graphics on your screen. 336 00:28:23,410 --> 00:28:29,190 Basically, the position reports flip the wrong way around, so you get what I call these sort of colored rainbows. 337 00:28:29,750 --> 00:28:33,750 You can produce really nice flight trials to see where the air traffic is going. 338 00:28:36,950 --> 00:28:39,390 This is San Francisco International Airport. 339 00:28:39,690 --> 00:28:44,950 I went there with my B200 at the edge of the runway there. 340 00:28:44,950 --> 00:28:47,730 And it's cool, because you can track planes as they come in. 341 00:28:47,730 --> 00:28:49,070 This is a parallel approach. 342 00:28:49,150 --> 00:28:50,450 You see these two icons. 343 00:28:50,450 --> 00:28:51,430 They're both green. 344 00:28:51,710 --> 00:28:55,870 There are the planes coming in as soon as the nose wheel will touch the tarmac. 345 00:28:55,890 --> 00:28:57,370 You see that one already did there on the top. 346 00:28:57,370 --> 00:28:57,970 It went red. 347 00:28:57,970 --> 00:29:00,530 That one's going to go red in a second when the nose wheel comes down. 348 00:29:00,530 --> 00:29:01,270 There you go. 349 00:29:01,610 --> 00:29:03,490 And then they taxi back to the terminal. 350 00:29:03,710 --> 00:29:05,750 You can also do this for takeoffs. 351 00:29:05,750 --> 00:29:08,750 I think this is a Virgin America flight here about to take off on this runway. 352 00:29:08,930 --> 00:29:10,490 I've sped it up a little bit, obviously. 353 00:29:11,670 --> 00:29:15,130 But it kind of looks cool as it does. 354 00:29:15,130 --> 00:29:19,110 That'll go from red to green then when it's rotated and lifted off into the air. 355 00:29:19,230 --> 00:29:20,290 There it goes. 356 00:29:21,750 --> 00:29:23,230 Up, up, and away. 357 00:29:24,070 --> 00:29:28,270 It's just incredible when you look at the speeds to which they accelerate and then suddenly take off. 358 00:29:28,270 --> 00:29:29,770 I love aviation. 359 00:29:29,770 --> 00:29:32,110 I think it's one of mankind's coolest achievements. 360 00:29:32,250 --> 00:29:33,410 Anyway, there it goes. 361 00:29:33,710 --> 00:29:36,370 It's following the flight path and another plane just took off prior to that. 362 00:29:36,370 --> 00:29:38,450 Look out for the plane and it's alright. 363 00:29:43,530 --> 00:29:44,710 Oh no. 364 00:29:44,970 --> 00:29:48,110 But it's okay because they're at wildly different altitudes, as you can see. 365 00:29:48,790 --> 00:29:52,910 Now, since altitude information is sent as well, you can plot this in real time in Google Earth. 366 00:29:52,910 --> 00:29:55,670 This is the 3D front end that I created for it. 367 00:29:55,670 --> 00:29:57,530 That's that same plane taking off. 368 00:29:57,530 --> 00:30:01,310 And you can see one in the distance coming in to land at Oakland International Airport. 369 00:30:01,690 --> 00:30:04,230 There's SFO and other planes sort of taxiing about. 370 00:30:05,230 --> 00:30:05,810 Off it goes. 371 00:30:05,810 --> 00:30:07,810 There's that same plane coming across overhead. 372 00:30:09,070 --> 00:30:14,750 And why not do a virtual cockpit view so you can be in the pilot seat and experience what the takeoff is like yourself. 373 00:30:14,990 --> 00:30:17,570 So this is that same plane from that point of view. 374 00:30:17,570 --> 00:30:19,890 And this side I have running live for Sydney. 375 00:30:20,210 --> 00:30:22,130 I moved from Sydney, Australia. 376 00:30:22,130 --> 00:30:31,090 And the night before I got on the plane to move here, I was in some tower in one of the suburbs, setting up my USOAP1 that's been running ever since there. 377 00:30:31,090 --> 00:30:37,650 So you can go on my website and actually look at the live 3D airspace of Sydney using this system. 378 00:30:37,650 --> 00:30:40,230 This is actually coming back from the West Coast. 379 00:30:40,230 --> 00:30:41,650 Sorry, the East Coast. 380 00:30:41,650 --> 00:30:42,970 Landing in SFO. 381 00:30:43,090 --> 00:30:45,070 This is sped up again a little bit. 382 00:30:46,710 --> 00:30:48,630 And coming in for landing there. 383 00:30:48,630 --> 00:30:49,270 Boom. 384 00:30:49,570 --> 00:30:51,570 And then coming, waiting for the holding point. 385 00:30:51,570 --> 00:31:00,410 And then Google Earth did something really weird with their automatic extrusion of the burnt out fuselages of planes it looks like at the airport. 386 00:31:00,410 --> 00:31:01,830 I don't know what was happening there. 387 00:31:02,590 --> 00:31:05,370 And in addition, so this is Sydney now. 388 00:31:05,370 --> 00:31:09,810 Apart from Mode S, aircraft also send ACARS messages, which are like text messages. 389 00:31:09,810 --> 00:31:12,010 And these are shown up in these balloons. 390 00:31:12,050 --> 00:31:26,870 These are messages like automated status reports from the engines back to Rolls-Royce, or it might be, there's a bad transponder again, or it might be flight path information, which is these thicker white lines, or information back to air traffic control and various other status messages. 391 00:31:27,050 --> 00:31:33,150 Now, I found that there were a lot of messages regarding blocked toilets on aircraft, so I've added this Easter egg for that. 392 00:31:36,230 --> 00:31:38,090 And you get flight information like these. 393 00:31:38,090 --> 00:31:44,070 These are the flight plans for aircraft that are going into Asia and across to Western Australia. 394 00:31:44,450 --> 00:31:45,950 Now, so this is all the active system. 395 00:31:45,950 --> 00:31:51,590 Remember, this is where the aircraft is transmitting this information down to the ground that you can receive. 396 00:31:51,590 --> 00:31:52,930 What about the primary system? 397 00:31:52,930 --> 00:31:56,610 This is the passive system where you have the big radar spinning, sending out a big pulse. 398 00:31:56,610 --> 00:31:57,630 What about that? 399 00:31:57,630 --> 00:32:04,730 So, as it turns out in the Bay Area, near Moffat Air Force Base, there is this ASR9 primary surveillance radar. 400 00:32:04,730 --> 00:32:08,150 This is pretty much the main radar that's used in all airports across the country. 401 00:32:08,150 --> 00:32:09,830 It spins around, there's a picture. 402 00:32:10,190 --> 00:32:12,970 And I went out there with my B200, there it is in the background. 403 00:32:13,770 --> 00:32:20,310 And as it spins, just look at the left-hand scope there, it's being triggered by the big pulse that comes out of the radar. 404 00:32:20,310 --> 00:32:26,950 Can you hear that? 405 00:32:27,150 --> 00:32:29,470 Not the noise from my laptop. 406 00:32:30,150 --> 00:32:31,110 Yeah, did you hear that? 407 00:32:31,110 --> 00:32:37,330 So that's actually the audio that I filtered out as it spins past the radio. 408 00:32:37,330 --> 00:32:40,310 So you can kind of hear the crackling, which is all the pulses going out. 409 00:32:40,770 --> 00:32:50,550 And initially I wanted to look at this because I wanted to derive what the parameters of the radar actually were, like what the pulse repetition frequency was and the rotation rate and so on. 410 00:32:50,550 --> 00:32:53,850 But as I was doing that, I noticed... let me just play it again. 411 00:32:56,470 --> 00:33:00,270 You can see here, this big bang is the big pulse that comes out. 412 00:33:00,270 --> 00:33:04,530 But just after that, you see that there are these other little pulses that appear. 413 00:33:05,590 --> 00:33:07,890 You can see there, there's some other stuff that happens. 414 00:33:07,890 --> 00:33:09,050 And I thought, well, hang on a minute. 415 00:33:09,530 --> 00:33:11,410 Could that be radar returns? 416 00:33:11,410 --> 00:33:14,570 They're probably going to be close in from ground clutter and buildings and so on. 417 00:33:14,570 --> 00:33:16,570 But there's clearly stuff coming back. 418 00:33:16,910 --> 00:33:19,350 And I thought, well, maybe you can plot that. 419 00:33:19,350 --> 00:33:26,790 Now, just remember for this entire bit, all I'm using is this little radio and that omnidirectional WIP antenna. 420 00:33:26,990 --> 00:33:31,510 I'm not using a directional antenna with lots of gain like that. 421 00:33:31,510 --> 00:33:33,370 That's the next step of the project. 422 00:33:34,510 --> 00:33:38,710 But what you actually see then are these radar returns. 423 00:33:38,710 --> 00:33:39,870 So remember this diagram? 424 00:33:39,870 --> 00:33:49,970 If we actually pull up the time series plot of the magnitude of the data that I recorded, you can see on the left-hand side here the big bang there and then these returns that come back. 425 00:33:50,570 --> 00:34:06,010 So what you can do is, if you ever are in the Bay Area and you want to hang out with me on a big hill next to a water treatment facility near the radar, then it's quite a nice view actually at sunset. 426 00:34:06,210 --> 00:34:10,730 But some of my friends and I went up there last Friday to try and collect a little bit more data. 427 00:34:10,730 --> 00:34:12,630 You see we've got the antennas out. 428 00:34:12,930 --> 00:34:23,430 And they were really nice in terms of sacrificing their hand because unfortunately the Thunderbolt connector on my laptop died and the only way to make it work is if you push the Thunderbolt plug-in with all of your might. 429 00:34:23,710 --> 00:34:34,970 And that was actually hooked up to a PCI Express adapter box which had a 10 gigabit Ethernet card in there that was then hooked up to an X300, X310 so we could sample at 100 megs a second. 430 00:34:35,250 --> 00:34:37,770 And it's all powered off the battery there so it was a bit of fun. 431 00:34:37,770 --> 00:34:44,410 This was a very nice reminder of the good times I had with my friend Matt Robert who actually got me into SDR back in Australia. 432 00:34:44,410 --> 00:34:48,690 This is the same kind of scene but instead on the hill overlooking Sydney Airport. 433 00:34:49,010 --> 00:34:50,430 So good times. 434 00:34:50,430 --> 00:34:51,710 I highly recommend you do it. 435 00:34:51,710 --> 00:34:56,310 Grab some batteries, laptops, SDR, go to some location and the police come out. 436 00:34:56,910 --> 00:35:02,190 But anyway, so once you record all those returns from the radar you need to do some processing. 437 00:35:02,190 --> 00:35:12,110 So the first thing you do is you do a windowed average of your entire sample stream to figure out what the distribution of magnitudes are. 438 00:35:12,170 --> 00:35:15,390 Because the vast majority of samples you receive are going to be noise. 439 00:35:15,390 --> 00:35:17,630 And that's this big peak here on the left hand side. 440 00:35:17,630 --> 00:35:18,670 This is a histogram. 441 00:35:18,850 --> 00:35:22,510 So your magnitudes go along the bottom and your counts go up. 442 00:35:22,670 --> 00:35:26,230 Now if you do a log scaling of this you can see that this is mostly noise. 443 00:35:26,230 --> 00:35:33,290 And then you've probably got some interesting stuff here on the left hand side because you're not going to have your pulses come back too often relative to all the other samples. 444 00:35:33,530 --> 00:35:38,390 So basically you pick some threshold here to say everything below that is going to be noise, I'm going to ignore it. 445 00:35:38,750 --> 00:35:44,570 Once you do that then you look at the left hand side of the previous graph and you think well these are probably going to be returns. 446 00:35:45,250 --> 00:35:50,230 And what we're going to do first is we want to synchronize to the strongest pulses which come from the radar. 447 00:35:50,370 --> 00:35:52,370 So they're probably going to be few and far between. 448 00:35:52,370 --> 00:35:56,830 So again we're going to pick some high threshold here and that's going to be our synchronization level. 449 00:35:56,830 --> 00:36:00,290 So you do the log scaling and you probably pick something around about there. 450 00:36:00,610 --> 00:36:04,910 Once you do that then you can do a histogram of the length of these strong pulses. 451 00:36:04,910 --> 00:36:06,770 You can see there's quite a big peak there. 452 00:36:06,770 --> 00:36:12,470 So the chances are that our standard pulse length is going to be whatever that peak maps to down at the bottom. 453 00:36:12,470 --> 00:36:14,290 And you program that into the system as well. 454 00:36:14,290 --> 00:36:20,250 Once you do that then it will actually detect the strong pulses, synchronize and then you can produce this overlay plot. 455 00:36:20,250 --> 00:36:26,250 So this is lots and lots of strong pulses overlaid on one another and you can use this to check that in fact the system is working. 456 00:36:26,250 --> 00:36:28,410 You have this nice empty space in the middle. 457 00:36:28,410 --> 00:36:30,990 If you've seen eye diagrams this is kind of the same thing. 458 00:36:31,110 --> 00:36:35,250 After that initial pulse comes out then you have those interesting returns after that. 459 00:36:35,690 --> 00:36:40,290 Load moron looks good, do a log plot and some more interesting things come out there. 460 00:36:41,110 --> 00:36:43,950 Now remember how I was talking about pulse repetition frequency? 461 00:36:43,950 --> 00:36:48,290 This is the period from when a pulse is sent out to when the next pulse is sent out. 462 00:36:48,290 --> 00:36:54,370 This here is showing you the number of samples between one pulse and the next pulse. 463 00:36:54,750 --> 00:37:01,110 Now the odd thing here is that you actually end up having these two lines coming out from the grouping of these red dots. 464 00:37:01,170 --> 00:37:02,670 I was expecting one. 465 00:37:02,770 --> 00:37:07,970 And what this actually shows you is that the radar is operating in this mode called dual PRF. 466 00:37:07,970 --> 00:37:11,450 So it's actually switching between two pulse repetition frequencies. 467 00:37:11,450 --> 00:37:15,830 It might send out ten pulses at one, switch to the other one and send another nine or ten. 468 00:37:15,830 --> 00:37:18,030 It's completely random and it keeps switching back and forth. 469 00:37:18,030 --> 00:37:21,030 And it does this to resolve ambiguities. 470 00:37:21,590 --> 00:37:23,910 So the system needs to take this into account now as well. 471 00:37:23,910 --> 00:37:24,790 You can program that in. 472 00:37:24,790 --> 00:37:28,090 Once you do, then you can draw this histogram of the PRFs. 473 00:37:28,090 --> 00:37:36,190 And you can see very clearly you have a PRF of about 950 Hz and the other one is 1250. 474 00:37:36,190 --> 00:37:38,690 So these are the two PRFs that are switching in between. 475 00:37:38,690 --> 00:37:39,770 Program that in. 476 00:37:39,870 --> 00:37:46,670 Once you graph the amplitude of the strong pulses, this was six revolutions of the radar. 477 00:37:46,670 --> 00:37:50,190 So you can see the peaks where it sort of begins to face the radio. 478 00:37:51,390 --> 00:37:53,230 And this is sort of zooming in on one. 479 00:37:53,330 --> 00:37:59,950 Once you actually program in everything and it starts tracking all the pulses, not just the strong ones, then you get everything in between. 480 00:37:59,950 --> 00:38:05,170 So these are when it sort of faces the radio and this is everything outside that as it spins around. 481 00:38:06,910 --> 00:38:10,530 Now, once you actually synchronize, this is what it looks like if you animate it. 482 00:38:10,530 --> 00:38:12,930 So the first pulse here is what came out of the radar. 483 00:38:12,930 --> 00:38:17,650 Everything after that is what is actually coming back from that main pulse back into the radio. 484 00:38:17,750 --> 00:38:19,410 So this is closest in. 485 00:38:19,410 --> 00:38:20,850 As I said, it's not going to be like an airplane. 486 00:38:20,850 --> 00:38:22,830 It's probably going to be big buildings and so on. 487 00:38:23,950 --> 00:38:25,870 Now, you can turn this into a pretty plot. 488 00:38:25,870 --> 00:38:27,050 This is what it looks like. 489 00:38:27,070 --> 00:38:33,090 So the way this works is that every scan line going from left to right is triggered by a pulse that comes out of the radar. 490 00:38:33,570 --> 00:38:39,870 And then once it's triggered, it just starts recording for this amount of time until it reaches the end of the scan line. 491 00:38:39,870 --> 00:38:45,270 So this is pulses going down the vertical and across the horizontal. 492 00:38:45,270 --> 00:38:46,330 It's just time. 493 00:38:46,650 --> 00:38:49,490 And you can see these interesting patterns start to emerge. 494 00:38:49,490 --> 00:38:55,730 If you zoom further in, you can see this kind of odd shape here and various other things pop out. 495 00:38:56,630 --> 00:39:00,590 So you've got that and then you've got this odd hotspot further out. 496 00:39:00,610 --> 00:39:07,570 If you do an up-polar unwrap and put it on Google Maps, you can see that it perfectly aligns with physical features in the Bay Area. 497 00:39:07,850 --> 00:39:09,090 So let's zoom in a little bit. 498 00:39:09,090 --> 00:39:10,370 The radar's here. 499 00:39:10,590 --> 00:39:15,150 Then you've got all this sort of ground clutter and buildings and so on around the shore. 500 00:39:15,330 --> 00:39:19,190 And you've got this odd kind of stippled line that's enclosed in red. 501 00:39:19,190 --> 00:39:20,670 And I was thinking, what could that possibly be? 502 00:39:20,670 --> 00:39:21,550 I mean, that's on the water. 503 00:39:21,550 --> 00:39:25,630 It doesn't seem to match anything that I've seen. 504 00:39:25,630 --> 00:39:29,230 As it turns out, it's all the power line pylons that cross the bay. 505 00:39:29,230 --> 00:39:33,710 So they're actually reflecting the radar energy that comes off the primary radar. 506 00:39:34,410 --> 00:39:39,350 Now, if you look further out, those other hotspots actually map to the bridge. 507 00:39:39,530 --> 00:39:45,310 I think there's some sort of a gasoline pipeline or something like that and San Mateo Bridge further out. 508 00:39:45,870 --> 00:39:47,830 Now, that was one revolution. 509 00:39:47,830 --> 00:39:51,310 If you do all six, then you can see this kind of repeats over and over again. 510 00:39:51,330 --> 00:39:56,370 But what happens when you actually overlay all of these images on top of one another? 511 00:39:56,510 --> 00:40:01,430 Well, what I've done here is I've taken the very first revolution, mapped it into the red channel. 512 00:40:01,430 --> 00:40:04,730 Taken, I think, the fourth one, mapped that into the green channel. 513 00:40:04,770 --> 00:40:07,850 And taken the very last one and mapped that into the red channel. 514 00:40:07,850 --> 00:40:14,770 So what happens is all of these static objects that reflect the radar energy will then come out in white on this plot. 515 00:40:14,770 --> 00:40:20,970 And anything that ends up moving, you'll see this kind of RGB triplet or RGB smearing. 516 00:40:20,990 --> 00:40:24,490 Because, essentially, your colors map to time. 517 00:40:24,610 --> 00:40:26,050 So there's nothing interesting in this one. 518 00:40:26,050 --> 00:40:27,370 It's all white. 519 00:40:27,370 --> 00:40:28,530 But look at this one. 520 00:40:29,130 --> 00:40:30,210 See that? 521 00:40:31,030 --> 00:40:32,370 Something was moving. 522 00:40:32,690 --> 00:40:33,770 So we can zoom in on that. 523 00:40:33,770 --> 00:40:36,090 There's some sort of RGB smearing there. 524 00:40:36,330 --> 00:40:37,550 And this is another plot. 525 00:40:37,550 --> 00:40:38,010 Same thing. 526 00:40:38,010 --> 00:40:39,510 Something's moving further out. 527 00:40:40,030 --> 00:40:43,590 Now, as I said, bigger antenna, more gain, more directional. 528 00:40:43,590 --> 00:40:47,290 You can look at objects that are further out with smaller radar cross-sections. 529 00:40:47,310 --> 00:40:51,310 I don't actually know what this was, but if you do a polar unwrap, you can see that it's up there. 530 00:40:51,510 --> 00:40:56,450 And if you put the map underneath, then it's on the shoreline. 531 00:40:56,450 --> 00:40:58,990 You can't quite see it, but there's actually a road here. 532 00:40:59,130 --> 00:41:06,710 And if you consider the rotation rate and the distance across which it traveled and so on, I think it was probably a truck. 533 00:41:06,710 --> 00:41:09,250 It might have been a truck moving about 40 kilometers an hour. 534 00:41:09,490 --> 00:41:11,050 That's just my initial guess. 535 00:41:11,590 --> 00:41:16,570 And this was actually from my hotel room just the other night when I got in at Vegas. 536 00:41:16,570 --> 00:41:19,850 You can see a BA-747 landing. 537 00:41:20,170 --> 00:41:21,810 I just had the system running there. 538 00:41:21,810 --> 00:41:28,350 The problem with this setup, though, was that the primary surveillance radar for Las Vegas McCarran Airport is here. 539 00:41:28,390 --> 00:41:29,810 Mandalay Bay is there. 540 00:41:29,990 --> 00:41:33,050 And it's essentially a straight shot over. 541 00:41:33,050 --> 00:41:37,050 So anything in this larger region, you won't actually be able to resolve. 542 00:41:37,050 --> 00:41:54,030 And if you think about why, when the radar spins and turns and points in my direction there, it's going to not only saturate the receiver because it's so powerful, but if there's some other object around here, you're receiving samples and you need to consider the flight time of your wave, 543 00:41:54,030 --> 00:41:55,090 of your photons. 544 00:41:55,390 --> 00:41:57,650 So consider the main pulse coming out. 545 00:41:57,650 --> 00:42:03,670 It's going to go off something here, come back together, and it's just going to be hidden underneath all of the main energy. 546 00:42:03,870 --> 00:42:09,070 So when you want to track objects in this kind of separated by static setup, they have to be further out. 547 00:42:09,070 --> 00:42:11,770 And you can actually take this into account in the system. 548 00:42:11,770 --> 00:42:14,930 So you can generate what's known as a spatial distortion map. 549 00:42:15,110 --> 00:42:21,370 Now if the radar and the receiver are at the same point, the transmitter and the receiver, then what you want to look at is this 2D offset. 550 00:42:21,630 --> 00:42:30,470 The red channel is the spatial X offset and the blue channel is the spatial Y offset for this spatial map represented by this area. 551 00:42:30,470 --> 00:42:34,150 So there's going to be no spatial offset because they're co-located. 552 00:42:34,150 --> 00:42:43,390 If they're not, if there's some bi-static setup where your transmitter and receiver are separated, then you can barely see it here, but there's sort of this differing shading of blue and red. 553 00:42:43,390 --> 00:42:44,670 I don't know if you can see that. 554 00:42:44,670 --> 00:42:49,550 So the radar is sort of moved off a little bit at a particular angle from the receiver. 555 00:42:49,550 --> 00:43:03,490 If you exaggerate this and normalize it to the area, then you can very clearly see this sort of spatial distortion that you have to apply to the data that comes back to make it look like in your plot, original plot, that your receiver is actually where your radar transmitter is. 556 00:43:04,310 --> 00:43:07,070 But anyway, that's future work. 557 00:43:07,070 --> 00:43:09,770 So this is a plot from the Mandalay Bay. 558 00:43:10,770 --> 00:43:12,770 Not a lot going on there, but if you... 559 00:43:13,470 --> 00:43:14,630 Oh, no, this one there is. 560 00:43:14,630 --> 00:43:16,210 So there's some sort of smearing there. 561 00:43:16,450 --> 00:43:17,830 It's very weak. 562 00:43:18,050 --> 00:43:20,770 Again, remember this is just an omnidirectional antenna like that. 563 00:43:21,990 --> 00:43:23,350 And there's another one. 564 00:43:23,350 --> 00:43:26,610 This was quite odd because this is quite close in. 565 00:43:26,610 --> 00:43:29,390 Some clutter, but it only appeared in one of the rotations. 566 00:43:29,390 --> 00:43:35,070 So I'm not entirely sure what was going on there, but we can analyze it some more later. 567 00:43:36,190 --> 00:43:37,770 So that's primary radar. 568 00:43:37,770 --> 00:43:39,990 On to the next thing, RFID. 569 00:43:40,230 --> 00:43:43,090 You're probably familiar with FastTrack or EasyPass. 570 00:43:43,090 --> 00:43:44,990 They're toll tags that you put on your car. 571 00:43:44,990 --> 00:43:51,510 They're read by the bridges when you go through, and then you're charged for your use of the road there. 572 00:43:51,510 --> 00:43:54,350 It uses 900 MHz ISM. 573 00:43:54,350 --> 00:43:59,250 There's a wake-up signal to wake it up, and it's pulse position modulated payload like Mode S. 574 00:43:59,530 --> 00:44:08,950 And it uses backscatter modulation so that the receiver actually receives this backscatter energy. 575 00:44:08,950 --> 00:44:13,130 So what's going on there is that your tag doesn't have an active transmitter in it. 576 00:44:13,130 --> 00:44:18,530 It's just a little long-life battery, but there's an antenna inside it, and it has a radio receiver. 577 00:44:18,530 --> 00:44:31,970 So when it's woken up and it receives this payload, it will actually change the impedance across the antenna in such a way that the receiver can see those very subtle changes in radio energy coming back. 578 00:44:31,970 --> 00:44:38,590 Because the antenna will change its characteristics, change its radar cross-section, and the receiver can actually pick that up. 579 00:44:39,290 --> 00:44:43,630 There's this great talk at Black Hat a few years ago, and this was quite inspiring for me. 580 00:44:43,990 --> 00:44:49,490 But my initial questioning came from when I saw these antennas in San Francisco. 581 00:44:49,490 --> 00:44:50,870 I was wondering what they were used for. 582 00:44:50,870 --> 00:44:56,790 So I got the B200 out and had the Yagi pointed at it, and I recorded this thing and had a closer look. 583 00:44:56,970 --> 00:45:07,430 And then I went to the toll gates at the Golden Gate Bridge and looked totally inconspicuous and not suspicious sitting there in the bus stop with my antenna pointed at the toll booths. 584 00:45:07,430 --> 00:45:08,950 And I saw the same signal. 585 00:45:09,450 --> 00:45:12,030 So if you look at that, this is what's being transmitted out. 586 00:45:12,030 --> 00:45:27,070 You have your wake-up, you have some sort of preamble there, you have your pulse position payload, and then you have this constant carrier that's used to energize the tag and then the backscatter will be modulated on top of this. 587 00:45:27,070 --> 00:45:31,850 Because when you receive this, the signal will have these subtle variations in it. 588 00:45:31,850 --> 00:45:33,130 And we'll see what that looks like. 589 00:45:33,290 --> 00:45:34,530 So this is just zooming in. 590 00:45:34,530 --> 00:45:35,790 You can see the payload there. 591 00:45:35,790 --> 00:45:38,010 It looks very much like a MODIS frame. 592 00:45:38,010 --> 00:45:39,810 And then you have this constant carrier. 593 00:45:40,230 --> 00:45:50,170 So I'll skip this, but essentially it shows you how I can use what's known as an RF circulator to turn a single antenna into a simultaneous transmitter and receiver. 594 00:45:50,290 --> 00:45:58,150 Essentially the RF energy comes in, goes out of the antenna, but it blocks any of that energy passing through to the receiver. 595 00:45:58,150 --> 00:46:02,870 Anything coming back from the antenna goes into the receiver, but doesn't go around any further. 596 00:46:02,870 --> 00:46:04,290 It's a really neat device. 597 00:46:05,730 --> 00:46:07,830 And this is the Goody Radio program. 598 00:46:07,830 --> 00:46:12,990 This is being transmitted out, and you might recognize this from the plots before, this is what's actually being received. 599 00:46:12,990 --> 00:46:17,910 So you receive a bit of the signal that you sent out, but what you want to look for is this area here. 600 00:46:18,450 --> 00:46:20,610 Imagine this is just a carrier. 601 00:46:20,710 --> 00:46:22,370 Don't worry about the squiggles there. 602 00:46:22,650 --> 00:46:28,370 But the interrogation goes out when you put a tag there, then you see you've got some modulation on top of that. 603 00:46:28,370 --> 00:46:31,170 And that's actually the backscatter from the tag. 604 00:46:31,850 --> 00:46:33,810 And that's what it looks like sort of blown up here. 605 00:46:33,810 --> 00:46:37,210 So there's this additional modulation on top that you can then decode. 606 00:46:37,210 --> 00:46:43,450 And that contains your unencrypted, unauthenticated tag ID that identifies you as an individual. 607 00:46:43,590 --> 00:46:47,850 So this is the preamble that it's looking for in that backscatter modulation. 608 00:46:47,850 --> 00:46:53,930 There's a fixed series of bits, and when it hits the preamble it knows that a packet is then coming and will decode that. 609 00:46:53,930 --> 00:46:56,050 So as you can see here, you have... 610 00:46:56,050 --> 00:47:01,110 remember like with the frequency shift keying from the pager, you have exactly the same scenario here. 611 00:47:01,110 --> 00:47:04,770 So it decodes anything above and below into a 0 or a 1. 612 00:47:04,770 --> 00:47:07,510 And that's how you determine the tag ID. 613 00:47:08,310 --> 00:47:11,510 So this is a little video here to give you a better idea. 614 00:47:11,630 --> 00:47:13,470 This is what's going out. 615 00:47:13,910 --> 00:47:15,810 And this is what's being received. 616 00:47:15,810 --> 00:47:22,050 And you can see here is that backscatter modulation where I'm actually holding the tag over the antenna. 617 00:47:22,050 --> 00:47:23,970 And you can see that it's moving there. 618 00:47:24,350 --> 00:47:25,810 So there's nothing there now. 619 00:47:28,010 --> 00:47:30,650 There's nothing there now, it's just supposed to be a carrier. 620 00:47:30,650 --> 00:47:33,550 And now I put the tag back and you can see that it's being modulated there. 621 00:47:33,650 --> 00:47:37,470 So backscatter is really cool and it's used in all sorts of different areas. 622 00:47:38,970 --> 00:47:44,450 So here I was just reading this tag outside. 623 00:47:44,630 --> 00:47:50,450 I've just put one under the windshield there and I can put the antenna over there and then it picks it up. 624 00:47:50,450 --> 00:47:52,110 This is the flow graph. 625 00:47:52,110 --> 00:47:56,270 This is both transmitting and receiving out of the same unit through that circulator. 626 00:47:56,890 --> 00:48:00,150 And that's just the fast track decoder block there. 627 00:48:00,330 --> 00:48:02,870 Another thing we tried to look at is the keyless entry. 628 00:48:02,870 --> 00:48:04,850 For example, the Toyota Prius. 629 00:48:04,970 --> 00:48:15,690 We've got that wire there stuck in the handle which is where the low frequency broadcast comes from the car that wakes up the little UHF remote control. 630 00:48:15,690 --> 00:48:20,790 And the UHF portion we're receiving on that little whip antenna there. 631 00:48:20,790 --> 00:48:32,370 Here we're actually using the X310 because we're doing AHF or LF recording with one side of the one channel and then VHF, UHF on the other side. 632 00:48:32,370 --> 00:48:37,730 And then my colleague here is just pressing the button on the remote sometimes so we get some additional activity. 633 00:48:37,890 --> 00:48:41,650 And this is neat, this is the time domain of the LF portion. 634 00:48:41,650 --> 00:48:43,650 So this is the car constantly sending our thing. 635 00:48:43,650 --> 00:48:44,550 Is anybody there? 636 00:48:44,550 --> 00:48:46,550 Is my real owner there? 637 00:48:47,090 --> 00:48:49,590 Again, you can see the pulses, you can decode that. 638 00:48:49,970 --> 00:48:54,230 Zooming in there, pretty obvious that you can turn that into 0s and 1s. 639 00:48:54,390 --> 00:48:56,890 This is actually the reply. 640 00:48:56,890 --> 00:49:01,630 So the car sends out a challenge and this is the reply from the UHF remote. 641 00:49:01,850 --> 00:49:05,630 And again, you can see this on and off keying here and you can turn that into 0s and 1s. 642 00:49:05,630 --> 00:49:07,910 I'm pretty sure the crypto is secure so I didn't go beyond this. 643 00:49:07,910 --> 00:49:13,310 But just to give you an idea that with these sort of systems that use different frequencies simultaneously you can do this analysis. 644 00:49:13,310 --> 00:49:18,030 Now this is using Bordline, so I've actually got both FFTs overlaid on each other. 645 00:49:18,030 --> 00:49:21,890 So you can look at them as they happen together in time, which is really handy. 646 00:49:21,890 --> 00:49:26,290 The blue is the low frequency coming from the car, the red is what's coming back from the remote. 647 00:49:26,630 --> 00:49:30,230 And so if you look at that... 648 00:49:31,110 --> 00:49:40,830 in time you can see that the broadcasts come periodically from the car and then every so often the remote answers with this challenge, which is what you see in red. 649 00:49:40,830 --> 00:49:44,650 And this is a little plug-in, a little block that I made for GNU Radio. 650 00:49:44,650 --> 00:49:50,850 This is the original flow graph running here, but you can just drop this block in, have Bordline come up and visualize things there. 651 00:49:52,370 --> 00:49:54,270 And yeah, that's just a block there. 652 00:49:54,290 --> 00:49:58,910 The final thing with RFID is I just had a quick look at using the badge system in our building. 653 00:49:58,910 --> 00:50:01,930 This uses essentially Backscatter as well. 654 00:50:02,130 --> 00:50:09,990 You have the chip in the card and then every so often the reader will send out this broadcast, this interrogation, which is this periodic thing here. 655 00:50:09,990 --> 00:50:12,810 And then below you see that the card then replies. 656 00:50:12,810 --> 00:50:19,330 It has a chip in there, it has an antenna that changes the characteristics of, and it will read out the data there. 657 00:50:19,330 --> 00:50:20,690 So that's what's happening here. 658 00:50:20,690 --> 00:50:26,850 You can see as you zoom in, the stronger ones are what's coming from the reader and the weaker ones are the Backscatter from the card. 659 00:50:26,850 --> 00:50:29,090 And then you can go ahead and demodulate them. 660 00:50:29,330 --> 00:50:30,790 I imagine that's pretty secure as well. 661 00:50:30,790 --> 00:50:34,130 Let's just zoom in some more, as you can see there. 662 00:50:35,210 --> 00:50:37,730 Alright, so just to wrap up then. 663 00:50:38,530 --> 00:50:41,330 Who said about the ISE3 project? 664 00:50:44,790 --> 00:50:48,870 Google actually followed our activities and they launched their website. 665 00:50:48,970 --> 00:50:53,030 Was it Space... I've had a mental blank. 666 00:50:53,030 --> 00:50:55,590 I haven't even seen it yet, it was just launched yesterday. 667 00:50:55,650 --> 00:50:58,750 It's like Space Probe for All or something like that. 668 00:50:58,750 --> 00:51:00,810 So I encourage you to check it out. 669 00:51:01,730 --> 00:51:02,950 Where is it? 670 00:51:04,530 --> 00:51:05,690 I don't know. 671 00:51:05,730 --> 00:51:08,390 Just have a Google, it's pretty cool. 672 00:51:08,510 --> 00:51:12,430 So NASA sent out the Space Probe over 36 years ago. 673 00:51:12,790 --> 00:51:14,830 It had a lot of firsts. 674 00:51:15,130 --> 00:51:22,330 So it was 1978 that it was sent out, and it tracked the comet for the first time, studied the solar wind and the Earth's magnetic field. 675 00:51:22,730 --> 00:51:31,210 And they found that it was coming back toward Earth, because it has this interesting orbit that sort of goes ahead of the Earth and goes around the Sun. 676 00:51:31,210 --> 00:51:35,690 And they picked its signal up, because the radios were left on. 677 00:51:35,990 --> 00:51:53,370 And so they found that it was coming back toward the Earth, and they thought, oh cool, let's see whether we can try and talk to the satellite, talk to the Space Probe, and maybe fire its thrusters to bring it back into orbit around the Earth, and then turn the science instruments back on and open it up for STEM education for public consumption. 678 00:51:53,590 --> 00:51:55,810 And so they did a Kickstarter and raised some money. 679 00:51:56,410 --> 00:52:05,890 And then the problem was that NASA actually had gotten rid of all of the equipment they used to talk to the Space Probe from their Deep Space Network ground stations. 680 00:52:05,890 --> 00:52:08,850 So they realized, well hang on, we need something as a replacement. 681 00:52:08,850 --> 00:52:15,710 And therefore they saw SDR as a potential, and they got in touch, and I came on board. 682 00:52:16,310 --> 00:52:21,970 And so we went to Arecibo, which is the world's largest single-dish radio telescope in Puerto Rico. 683 00:52:22,310 --> 00:52:26,330 And you can see the platform here, which is suspended above the dish. 684 00:52:26,330 --> 00:52:30,430 This is called the dome that houses the actual receiver and transmitter equipment. 685 00:52:30,430 --> 00:52:37,710 And then the raw RF is then piped back down to the control room. 686 00:52:38,090 --> 00:52:40,630 So this is kind of the view from above there. 687 00:52:40,770 --> 00:52:43,450 The scale is just mind-blowingly incredible. 688 00:52:43,450 --> 00:52:44,950 I mean, this thing is absolutely huge. 689 00:52:44,950 --> 00:52:48,870 I went for a jog once around the dish, and it's like a kilometer in circumference. 690 00:52:49,150 --> 00:52:50,550 It's insane. 691 00:52:50,790 --> 00:52:58,150 They also have two one-megawatt klystrons that they use for S-band radar imaging. 692 00:52:58,150 --> 00:53:04,110 And when you actually multiply that by the gain of the dish, it comes out to two terawatts, which is insane. 693 00:53:04,110 --> 00:53:07,870 Birds sometimes fly in there, and they get zapped and die and then boil and then burn. 694 00:53:08,850 --> 00:53:18,250 So once we actually hooked all the stuff up, here we used the N210, the USRP N210, which is a network device, hooked that up to the IF patch panel. 695 00:53:18,250 --> 00:53:23,130 We actually saw the weak carrier being broadcast by the probe. 696 00:53:23,130 --> 00:53:31,230 And the reason why it was weak was because the ephemeris, which says basically we need to point the dish in the sky, was old. 697 00:53:31,810 --> 00:53:38,030 And once the gurus there did a bit of pointing on the dish to pick up the signal, it was really, really strong. 698 00:53:38,030 --> 00:53:39,130 This is the weak version. 699 00:53:39,130 --> 00:53:40,390 You can just see it there. 700 00:53:40,510 --> 00:53:43,490 It's slanted due to the Doppler effect as the Earth rotates. 701 00:53:43,910 --> 00:53:48,550 But this is the GNU radio side of things, and you can see the signal is really, really strong. 702 00:53:48,550 --> 00:53:56,270 So then the next challenge was to send a command to it to turn telemetry back on after all this time, so we could see and assess the state of the space probe. 703 00:53:56,750 --> 00:54:03,570 And as we were sending things out, I was just using a B200 here to verify that in fact the RF energy was leaving the dish. 704 00:54:03,650 --> 00:54:05,470 It was a good little test. 705 00:54:06,210 --> 00:54:07,870 And then this is what happened. 706 00:54:11,750 --> 00:54:20,630 So that was the moment where we actually saw that unmodulated carrier suddenly turn into modulated data, and the telemetry had been turned back on on that transponder. 707 00:54:20,630 --> 00:54:22,950 So that was a great milestone in the project. 708 00:54:23,810 --> 00:54:27,690 And then after that, we were recording telemetry on both channels. 709 00:54:27,790 --> 00:54:30,090 That's transponder A and transponder B. 710 00:54:30,370 --> 00:54:34,230 The signal was very strong because, of course, you're using the biggest dish on the planet. 711 00:54:35,870 --> 00:54:38,890 And since then, we've processed that a lot. 712 00:54:38,890 --> 00:54:42,890 The next stage of the project was to actually fire the thrusters. 713 00:54:42,890 --> 00:54:44,690 So this is some software that I put together. 714 00:54:44,690 --> 00:54:48,650 You can download this off my GitHub and connect it to the live stream on my website. 715 00:54:48,810 --> 00:54:51,230 That actually shows you some of the telemetry elements. 716 00:54:51,230 --> 00:54:54,710 This is all the stuff about the propulsion system on the space probe. 717 00:54:54,710 --> 00:55:00,510 And we would look at this when we would go and then program the thruster firing on the space probe. 718 00:55:00,510 --> 00:55:04,910 So we wanted to fire this thruster this number of times to change its trajectory. 719 00:55:05,570 --> 00:55:10,370 And then we also created this graphing system so that we can actually look at what was happening. 720 00:55:10,370 --> 00:55:13,210 This is the signal strength that's reported by the space probe. 721 00:55:13,250 --> 00:55:16,810 And as we would fire the thrusters, this is the accelerometer data that comes back. 722 00:55:16,810 --> 00:55:22,250 So every time you fire the thruster, the accelerometer should register a pulse to let you know that it worked. 723 00:55:23,350 --> 00:55:25,830 And so I know we're running short of time, so I'm going to wrap up. 724 00:55:25,830 --> 00:55:32,950 But the problem was that there's plenty of fuel left on the space probe, but you need pressure to push the fuel out through the thrusters. 725 00:55:32,950 --> 00:55:38,130 And that's nitrogen, and unfortunately that nitrogen seems to have disappeared over three decades. 726 00:55:38,190 --> 00:55:41,390 So we tried every single combination, but we just couldn't get enough thrust out. 727 00:55:41,390 --> 00:55:42,710 So it's going to continue on its merry way. 728 00:55:42,710 --> 00:55:45,330 It's going to do a lunar flyby today or tomorrow. 729 00:55:45,330 --> 00:55:49,190 But we've turned the science instrumentation back on, and we're receiving science data from it. 730 00:55:49,290 --> 00:55:49,970 So that's good. 731 00:55:49,970 --> 00:55:56,470 This is the team outside McMoons, which is the old McDonald's that was converted into mission control at NASA Ames. 732 00:55:57,250 --> 00:55:58,950 And thank you very much. 733 00:56:11,860 --> 00:56:14,000 Sorry, I completely forgot to mention. 734 00:56:14,000 --> 00:56:20,740 If you have an SDR here and you want to tune to 915 megahertz at one mega sample per second, I've been transmitting something the entire presentation. 735 00:56:20,880 --> 00:56:22,680 It's this little thing I've been working on. 736 00:56:22,900 --> 00:56:25,560 I'll leave it running while I... this is the last thing I'll disconnect. 737 00:56:25,560 --> 00:56:26,680 Or I'll take it over there. 738 00:56:26,680 --> 00:56:30,340 But if you want to tune in, 915 megahertz, one mega sample per second. 739 00:56:30,580 --> 00:56:34,940 I haven't updated it from last year when we were at a different conference, so excuse the plug. 740 00:56:34,940 --> 00:56:36,480 But you might enjoy it anyway. 741 00:56:36,480 --> 00:56:36,760 All right. 742 00:56:36,760 --> 00:56:37,000 Cheers. 743 00:56:37,000 --> 00:56:37,360 Thanks.