WEBVTT

00:07.610 --> 00:09.350
My name is Barland Seaver.

00:09.350 --> 00:10.770
I wanted to tell you a little bit...

00:12.370 --> 00:13.770
Can't hear me?

00:17.290 --> 00:20.530
Testing, testing...

00:20.530 --> 00:23.410
Should be longer.

00:24.070 --> 00:25.070
Is that better?

00:26.250 --> 00:27.330
Alright.

00:29.370 --> 00:31.110
Thank you for coming.

00:31.110 --> 00:32.690
My name is Barland Seaver.

00:33.310 --> 00:35.550
I wanted to tell you a little bit about some of the experiments...

00:35.550 --> 00:40.550
that I've done over the past year with Software Defined Radio, just so you get a bit of a flavor...

00:40.550 --> 00:42.130
of some of the cool things you can do.

00:43.870 --> 00:48.610
I'm the Applications Specialist slash SDR Evangelist at Edis Research.

00:49.090 --> 00:52.210
And luckily I get to have a bit of fun with the products.

00:53.710 --> 00:57.110
This is a little journey I went on earlier this year.

00:57.110 --> 01:01.030
I really love SDR, showing people the cool things you can do with it.

01:01.030 --> 01:07.170
This was in Europe, and this was a lab that I took part in...

01:07.170 --> 01:11.990
teaching this group of people from developing nations about SDR.

01:12.450 --> 01:18.570
And usually when I travel I also have the good fortune of teaching the local constabulary about SDR as well.

01:18.570 --> 01:21.250
But I always seem to show up at exactly the right time.

01:22.090 --> 01:26.990
But today I'd like to quickly show you things that you can do with restaurant pages...

01:26.990 --> 01:33.050
the traffic message channel on RDS, the radio data service, looking at primary surveillance radar...

01:33.050 --> 01:36.030
and some RFID applications.

01:36.170 --> 01:40.830
And pretty much everything I've done is using GNU Radio, which I'm sure you've heard about.

01:40.830 --> 01:45.730
It's a really neat open source DSP slash SDR framework.

01:45.830 --> 01:49.230
And it's got a very vibrant community behind it.

01:50.650 --> 01:55.810
Over the past few years there's been an explosion in bandwidth...

01:55.810 --> 01:59.070
that you can actually achieve to peripherals that you plug into your computer.

01:59.070 --> 02:04.730
So this is, for example, 50 MHz worth of spectrum being captured in real time...

02:04.730 --> 02:07.870
going through another piece of software I love to use called Boardline.

02:09.190 --> 02:12.130
Does anybody know what band we're looking at here?

02:12.130 --> 02:13.010
Any guesses?

02:16.790 --> 02:17.610
One guess?

02:17.610 --> 02:18.670
Come on, anyone?

02:21.130 --> 02:23.610
It's actually the cellular band.

02:24.090 --> 02:29.330
In the middle here you've got some GSM channels and some wider bandwidth channels.

02:29.330 --> 02:32.230
Actually, the title slide here is a portion of that.

02:32.230 --> 02:35.770
And what's really cool about this program is that you can run the FFT so fast...

02:35.770 --> 02:39.790
you can see the frequency correction burst in the control channel coming down on GSM.

02:39.790 --> 02:43.290
And that's what your handset uses to synchronize its internal oscillator.

02:45.570 --> 02:47.910
This is actually a video of it running.

02:47.910 --> 02:51.350
I think... maybe... there we go.

02:52.330 --> 02:55.090
My laptop just needs a moment.

02:56.290 --> 02:57.490
There we go.

02:57.490 --> 02:59.030
So this is actually it scrolling past.

02:59.030 --> 03:01.870
You have some traffic, GSM traffic there on the left-hand side...

03:01.870 --> 03:03.930
and on the right-hand side you can see the control channel.

03:03.930 --> 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.

03:13.490 --> 03:18.990
And this video here is actually the 400 MHz band.

03:18.990 --> 03:23.930
I think this was 100 MHz per second, so this is 100 MHz worth of bandwidth.

03:23.930 --> 03:29.710
This is going over a 10 GHz pipe from a higher end USRP.

03:30.390 --> 03:33.490
The USRP that I used...

03:33.490 --> 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...

03:38.540 --> 03:42.160
with some ASCII art, you can have an ASCII art FFT.

03:42.200 --> 03:44.700
You might want to SSH into a remote console or something.

03:44.700 --> 03:46.880
You don't want to do X11 forwarding.

03:46.880 --> 03:48.820
You can just pop open one of these.

03:48.820 --> 03:52.660
This is actually 200 MHz worth of bandwidth.

03:52.700 --> 03:55.720
Centered on the middle of the FM broadcast band.

03:56.080 --> 04:02.760
You can stream an incredible number of Hz essentially into your machine.

04:02.760 --> 04:06.660
What I've used for my experiments is pretty much this, the USRP B200.

04:07.780 --> 04:10.300
You can pass it around if you want to have a look.

04:11.380 --> 04:13.740
It's USB 3.0, bus powered.

04:13.800 --> 04:18.120
You can get up to 56 MHz of RF bandwidth over USB 3.0.

04:18.120 --> 04:20.800
It tunes from 70 MHz to 60 GHz.

04:21.040 --> 04:26.680
The B210 can do 2x2 MIMO, so you can have full duplex 2 channels.

04:27.380 --> 04:32.580
You can do all sorts of incredible stuff with this, like I've run an LTE base station off it.

04:33.360 --> 04:35.080
The first thing, restaurant pages.

04:35.080 --> 04:41.200
Whenever I have these title slides, the actual FFT there is related to the signal that's being analyzed.

04:41.360 --> 04:43.240
I'm sure you know what these pages look like.

04:43.240 --> 04:45.760
You go into the restaurant, you order your food, you're given one.

04:45.940 --> 04:48.920
They beep when your order is ready, assuming it is in fact ready.

04:48.920 --> 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.

04:55.560 --> 04:58.280
But it's possible to tip that balance slightly.

04:58.500 --> 05:01.120
For example, if everybody might be paged at once.

05:01.940 --> 05:06.640
If you want to figure out the frequency, you can either look at the frequency, which is sometimes on the device.

05:06.700 --> 05:09.480
You can look at the FCC ID and look it up on the database.

05:09.860 --> 05:12.280
It tells you what the licensed frequencies are there.

05:12.280 --> 05:17.320
Or you can actually just use an SDR like a spectrum analyzer and find the strong signal.

05:17.320 --> 05:18.400
This is an example here.

05:18.400 --> 05:20.220
This is using HD-SDR.

05:20.520 --> 05:21.800
There's the page.

05:22.320 --> 05:23.720
I have some audio here.

05:23.720 --> 05:28.180
Let's see if we can hear what it sounds like.

05:42.350 --> 05:44.950
That's some custom pager protocol.

05:44.970 --> 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.

05:54.870 --> 05:58.490
One frequency will be a 1, the other frequency will be a 0.

05:58.490 --> 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.

06:08.730 --> 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.

06:21.210 --> 06:22.830
This is the first step.

06:22.830 --> 06:27.170
You need to record your channel and then identify the signal of interest.

06:27.210 --> 06:30.430
And then you move that down to baseband to center it on the dial.

06:30.430 --> 06:32.550
And you can use that with one of these blocks.

06:32.830 --> 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.

06:44.250 --> 06:50.030
So that might be a 0 to 1, and you need to figure out what that range is.

06:50.030 --> 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.

07:04.070 --> 07:08.790
After that, you need to figure out how quickly your bits are coming in.

07:08.790 --> 07:10.330
So this is your board rate.

07:10.590 --> 07:14.330
And you can do this with a simple construction in GNU Radio.

07:14.330 --> 07:17.230
This is using this thing called cyclostationary analysis.

07:17.450 --> 07:23.370
And you basically multiply the original signal by a delayed version of itself and then take the FFT.

07:23.370 --> 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.

07:29.090 --> 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.

07:37.290 --> 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.

07:48.290 --> 07:50.490
If it's above 0, you treat it as a 1.

07:50.490 --> 07:52.850
If it's below 0, then you treat it as a 0.

07:52.850 --> 07:54.350
And then you have your raw bit stream.

07:54.350 --> 07:56.490
And this is what it looks like coming out.

07:56.490 --> 08:02.030
So you see some sort of repeating preamble here, and then you have some sort of a payload after that.

08:02.390 --> 08:05.390
And presumably in there it's encoded what pages should go off.

08:06.130 --> 08:11.010
We always say flow graphs are easy, you just throw a couple blocks together and you're all sweet.

08:11.010 --> 08:13.530
I told a bit of a fib in the previous one.

08:13.530 --> 08:15.410
I hid all of the disabled blocks.

08:15.410 --> 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.

08:23.950 --> 08:26.270
But this is more a complete picture.

08:26.390 --> 08:30.530
I get a lot of crap about my flow graphs.

08:32.770 --> 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.

08:41.810 --> 08:44.590
And so once you've got your raw bit stream, these are the raw bits.

08:44.630 --> 08:48.310
So this is a little program I wrote a while ago to look at a different system.

08:48.310 --> 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.

08:59.730 --> 09:04.670
So here you can see again you've got no long strings and ones and zeros, they're alternating pretty quickly.

09:04.710 --> 09:08.350
And that gives you a good clue that they're probably using Manchester encoding.

09:08.370 --> 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.

09:14.650 --> 09:17.970
So like a zero and a one will be treated as a zero.

09:17.970 --> 09:20.450
A one and a zero will be treated as a one.

09:20.510 --> 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.

09:27.030 --> 09:30.810
Once you do that it starts looking more like a proper packet.

09:30.810 --> 09:35.190
And you can verify that it is in fact Manchester encoded by moving the bit offset.

09:35.190 --> 09:39.530
So let's say you forget the first bit in this unencoded view.

09:39.530 --> 09:45.130
And then once you move the bits you get line encoding violations and they're highlighted in red.

09:45.130 --> 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.

09:52.670 --> 09:56.070
Because you need to have a transition through the middle there.

09:56.070 --> 09:58.410
So that's just good verification there.

09:58.410 --> 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.

10:09.530 --> 10:13.010
So you can see there are some bits changing here and at the end there.

10:13.890 --> 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.

10:23.430 --> 10:29.170
There's also this odd byte at the end that was changing, as you saw before, that's the checksum.

10:29.450 --> 10:34.850
And you can go through and try a whole bunch of different CRCs, algorithms.

10:34.850 --> 10:37.730
Turned out it wasn't actually CRC, it was really simple.

10:38.130 --> 10:41.930
You add up your bytes and you mod 255, it's a very simple check.

10:41.930 --> 10:44.750
And so that matches, as you can see there.

10:44.850 --> 10:46.870
So that's pretty much the packet format.

10:46.870 --> 10:48.610
And to do it in the modulator you just do the reverse.

10:48.610 --> 10:53.770
So you construct your packet, add your preamble, your magic header, the pager number, the checksum.

10:53.770 --> 10:59.750
You interpolate that to start producing the stream that will be sent out of your radio.

11:00.090 --> 11:05.770
You frequency modulate, before that you should actually do some pulse shaping, I didn't bother.

11:05.990 --> 11:09.230
And then you resample so that you can send it directly to the transmitter.

11:09.270 --> 11:12.970
So this is actually the transmitter, the modulator.

11:13.410 --> 11:18.150
And you've got the steps that I just talked about there, goes out of the USERP at the end.

11:18.150 --> 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.

11:25.870 --> 11:28.170
So you get something like this,

11:32.510 --> 11:36.530
put the number in, that's the Goonie radio program.

11:39.980 --> 11:41.000
There you go.

11:42.940 --> 11:44.820
So that's system number one.

11:44.820 --> 11:49.680
I actually had a bit of fun, my colleagues and I went out for lunch to this place.

11:49.680 --> 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.

11:57.100 --> 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.

12:06.620 --> 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.

12:12.680 --> 12:17.400
And so I could actually just type the numbers in on my telephone away from the table and set them off.

12:17.400 --> 12:19.540
So I just said I was going to the bathroom or whatever.

12:19.600 --> 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.

12:27.320 --> 12:30.860
But he liked the troll, I think he enjoyed that.

12:30.940 --> 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.

12:38.340 --> 12:43.980
You can actually decode pagers already with a nice out-of-tree module for Goonie radio called GL POCSAG.

12:43.980 --> 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.

12:51.200 --> 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.

12:59.560 --> 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.

13:09.500 --> 13:14.460
Let's look at one in particular, so initially you have a sink so the receiver can lock.

13:14.460 --> 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.

13:22.280 --> 13:27.440
So what's going on here is with POCSAG in this system, the zeros are just padding.

13:27.440 --> 13:36.000
I think the next four hexadecimal digits here are actually the system ID of the pager system at that particular restaurant.

13:36.000 --> 13:40.480
And then the last byte here is actually encoding the pager address.

13:40.480 --> 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.

13:52.560 --> 13:56.140
So as you can see here, this is three, you multiply it by two and you get six.

13:56.140 --> 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.

14:06.000 --> 14:10.060
It would wake up in the slot where it might expect its address to be.

14:10.220 --> 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.

14:19.480 --> 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.

14:25.540 --> 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.

14:30.400 --> 14:32.680
And that can save you a huge amount of battery power.

14:33.860 --> 14:39.300
So to construct that again, you have your preamble, you have your sync, you have your system and page or address.

14:39.720 --> 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.

14:48.000 --> 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.

14:54.360 --> 14:55.280
And you can kind of...

14:55.280 --> 15:02.410
We'll do 39, and then we'll do 56, and 82...

15:04.130 --> 15:05.930
Anyway, you get the idea.

15:06.370 --> 15:11.190
And then the final system was a ZigBee one, and this is pretty cool because it actually reverses the role.

15:11.190 --> 15:17.010
So in this case the pages transmit back to the restaurant where you've actually sat down.

15:17.010 --> 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.

15:25.070 --> 15:29.970
And then when your order is ready, they come and deliver it to you, but they know where you're sitting.

15:30.450 --> 15:34.490
And it uses ZigBee, and so it operates in the 2.4 gig ISM band.

15:34.550 --> 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.

15:43.790 --> 15:45.530
So this is what the flow graph looks like there.

15:45.530 --> 15:47.370
You've got your USERP source coming in.

15:47.370 --> 15:51.530
You've got your PHY implemented, MAC, and another app stack on top of that.

15:51.530 --> 15:56.230
And it just goes out to your sink if you want to have a full transceiver.

15:56.270 --> 16:02.250
But in this case, that was a little setup, just recording there when the pages would be placed on the table.

16:02.250 --> 16:07.390
You can see that there's an obvious transmission happening there and the packets coming out on the left-hand side.

16:07.390 --> 16:11.770
If you drop this into Wireshark, then you can see decoded ZigBee data there.

16:11.970 --> 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.

16:17.130 --> 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.

16:21.890 --> 16:25.910
It happened to be 36, turn it into hex, that's in the payload too.

16:27.790 --> 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.

16:34.870 --> 16:38.390
And so it'll get angry and light up and make lots of noise.

16:38.390 --> 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.

16:47.530 --> 16:48.930
So that's the pages.

16:48.930 --> 16:50.590
Any questions so far?

16:51.470 --> 16:52.950
Any comments?

16:52.950 --> 16:55.810
Just feel free to shout out whenever you want.

16:56.150 --> 17:02.450
The next thing I looked at was cracking the encryption on the traffic message channel that's used in RDS.

17:02.450 --> 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.

17:11.010 --> 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.

17:22.330 --> 17:24.590
So I think here, for example, somebody's actually talking.

17:24.590 --> 17:25.870
This is a bit of speech here.

17:25.870 --> 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.

17:30.250 --> 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.

17:37.770 --> 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.

17:45.230 --> 17:50.210
It's kind of a good way to get an idea of how a signal works.

17:52.090 --> 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.

18:02.590 --> 18:05.510
And it's a sub-carrier on commercial FM stations.

18:05.510 --> 18:07.850
It's not audible, because it's filtered out.

18:08.130 --> 18:11.150
It's BPSK and it runs at this odd baud rate.

18:11.150 --> 18:14.830
You can listen and decode with this out-of-tune module called GR-RDS.

18:14.830 --> 18:17.730
And this is an example here.

18:17.730 --> 18:19.910
This is Sutro Tower in San Francisco.

18:19.990 --> 18:22.950
They broadcast a whole bunch of FM radio stations out of that.

18:23.590 --> 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.

18:32.470 --> 18:33.290
This is the baseband.

18:33.290 --> 18:35.150
I'm listening to a particular station here.

18:35.150 --> 18:39.850
You can see the RDS traffic scrolling up on the left-hand side.

18:39.850 --> 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.

18:46.350 --> 18:51.630
And this is actually, once you look at the demodulated portion of the signal.

18:52.010 --> 18:56.150
This big peak here is the 19 kHz pilot tone.

18:56.170 --> 18:59.290
To the left-hand side of that is your mono, left plus right.

18:59.870 --> 19:04.290
To the right-hand side of this is your stereo difference channel, so that's left minus right.

19:04.290 --> 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.

19:10.910 --> 19:15.990
Beyond that, you actually have your RDS subcarrier up here, which is on the...

19:15.990 --> 19:20.850
You basically multiply this pilot tone up to center in on that subcarrier.

19:22.390 --> 19:27.230
So, what we want to do then is look at the traffic message channel.

19:27.230 --> 19:31.150
And this is a compact representation of traffic events in your area.

19:31.150 --> 19:35.850
So you basically have what events it is, where it is, how long it might last.

19:35.850 --> 19:40.970
And some examples are traffic congestion, when accidents happen, or when there's roadwork, for example.

19:40.970 --> 19:41.830
And here's an example.

19:41.830 --> 19:43.670
This is the nav system in my car.

19:43.770 --> 19:46.830
You have these congestion icons that pop up.

19:47.270 --> 19:51.390
Sorry, these are roadwork, and then you have the highway congestion along there.

19:51.670 --> 19:53.710
Now, the thing is, I thought, oh, that's cool.

19:54.130 --> 19:59.970
It would be nice to receive this and make your own map, because I like making maps and visualizing things.

19:59.970 --> 20:04.130
This is an example of what you see as it's received.

20:04.130 --> 20:10.310
So , congestion, average speed, sunny periods, and things like this.

20:11.910 --> 20:17.450
Basically, this isn't particularly helpful, but the problem is that the location codes are actually encrypted.

20:17.870 --> 20:19.690
Elsewhere in the world, they're not encrypted.

20:19.690 --> 20:20.990
In America, they are.

20:20.990 --> 20:25.290
Now, apart from receiving, with GRDS, you can transmit, obviously.

20:25.290 --> 20:29.570
This is in my car, and it's coming from somewhere else.

20:30.110 --> 20:35.670
As it happens, just a B200 there on my laptop, making my own little FM radio station.

20:35.670 --> 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.

20:44.170 --> 20:49.210
So here you've got your mono, your pilot, your stereo difference, and the RDS.

20:49.670 --> 20:53.170
And this is actually then being received by the car radio.

20:53.170 --> 20:57.030
So the location codes are 16-bit for a geographical area.

20:57.030 --> 20:58.950
The encryption keys are 16-bits.

20:59.070 --> 21:05.150
And every day, they pick one of 31 keys, which are already pre-programmed in the receiver.

21:05.610 --> 21:10.250
And that ID is broadcast continuously over the course of the day.

21:10.330 --> 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.

21:21.150 --> 21:26.490
So I modified it, so it prints out the encryption ID, and then you get these temperature reports.

21:26.490 --> 21:28.810
And I thought, oh, you know, interesting temperature reports.

21:28.810 --> 21:33.730
Maybe I can create pretty graphs of how temperature changes through the course of the day somewhere in the Bay Area.

21:35.090 --> 21:40.450
But as it turned out, I kept looking over the course of each day, and I noticed these patterns appear.

21:40.450 --> 21:45.790
So every day, there would always be three unique temperature reports.

21:46.230 --> 21:50.030
And it turned out that it's not actually really temperature.

21:50.030 --> 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.

21:57.170 --> 22:00.290
It's not actually a temperature report.

22:00.290 --> 22:01.470
It's weird.

22:01.470 --> 22:08.690
But what happens is you get these three unique lines every day that are temperature for a particular encrypted location.

22:09.270 --> 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.

22:18.750 --> 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.

22:29.070 --> 22:32.770
But you can see these patterns form with the groupings.

22:33.110 --> 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.

22:41.550 --> 22:45.430
And also, this is the unobserved value, and maybe recover the key.

22:45.430 --> 22:49.910
So we would collect this data, and then you can build up this table over time.

22:49.910 --> 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.

22:58.450 --> 23:01.550
They can persist for several days or weeks and then just change.

23:01.550 --> 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.

23:11.170 --> 23:12.910
So you build this table up.

23:12.910 --> 23:16.530
And then once you have sufficient amount of data, then you can do some analysis.

23:16.530 --> 23:18.470
And 16 bits is obviously very short.

23:18.530 --> 23:23.030
You have this reuse of these patterns through these groups.

23:23.230 --> 23:31.010
And you can use singular events that occur as well to help with your breakdown of this data.

23:31.410 --> 23:34.730
And these singular events you can then use as known plain text.

23:34.730 --> 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.

23:41.010 --> 23:45.050
This doesn't happen very often compared to, say, traffic congestion, which is everywhere.

23:46.090 --> 23:49.270
So once you've done that, then you build this sort of table.

23:49.410 --> 23:52.190
And then you start iterating and doing this exhaustive search.

23:52.190 --> 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.

24:04.550 --> 24:05.790
And then you start filtering.

24:05.790 --> 24:10.110
So you repeat for that same day with that same key ID for the other two hidden locations.

24:10.110 --> 24:14.090
And then you take out all the possible keys that don't work, because you verify.

24:14.090 --> 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.

24:23.050 --> 24:27.410
And if they don't, and you try all the possibilities, then you take it out of your pool.

24:27.770 --> 24:31.610
And so you iterate then on all of the other keys on all of the other locations.

24:31.770 --> 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.

24:38.590 --> 24:44.210
You keep going through validating, refining, removing the invalid entries, and then at the end you're left with this.

24:45.010 --> 24:49.130
I haven't collected all the data, but it's looking pretty good so far.

24:49.270 --> 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.

25:06.450 --> 25:10.890
So that's how that works.

25:11.470 --> 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.

25:30.930 --> 25:32.610
Okay, so that's RDS.

25:33.250 --> 25:34.430
Aviation radar.

25:34.430 --> 25:38.730
You might have heard me talk about this before in the context of MODIS and ADS-B.

25:39.070 --> 25:41.170
Just a quick recap then.

25:41.310 --> 25:44.510
Primary surveillance radar is when you've got the big, big dish that spins.

25:44.830 --> 25:47.810
And secondary surveillance radar is this antenna across the top.

25:47.810 --> 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.

25:59.870 --> 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.

26:06.570 --> 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.

26:15.090 --> 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.

26:30.050 --> 26:33.630
So this system is an active system, you need the transponder on the aircraft.

26:33.650 --> 26:39.230
The primary system is a passive system, you don't need to have a transponder active or anything like that.

26:39.230 --> 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.

26:47.390 --> 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.

26:59.830 --> 27:03.350
This is called a pulse repetition period, or pulse repetition frequency.

27:04.130 --> 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.

27:15.910 --> 27:21.290
And a typical 747 has 31 radios, which makes somebody like me really excited.

27:22.990 --> 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.

27:33.110 --> 27:36.470
Now, this is what a MODIS frame looks like.

27:36.470 --> 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.

27:44.990 --> 27:49.570
So depending on which bit is actually on, then you get your bits out and you can form a packet.

27:49.570 --> 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.

28:03.050 --> 28:05.910
You've got the preamble up front, and then your payload after that.

28:06.350 --> 28:09.110
You may have seen these, but I'll show them again.

28:09.110 --> 28:10.230
You can do pretty plots.

28:10.230 --> 28:12.750
So this is a system I put together called Aviation Mapper.

28:12.750 --> 28:15.110
These are all the planes flying through the Bay Area.

28:15.110 --> 28:18.970
You've got SFO, SJC, and Oakland International Airport.

28:18.970 --> 28:23.410
When transponders go bad, they produce all these crazy graphics on your screen.

28:23.410 --> 28:29.190
Basically, the position reports flip the wrong way around, so you get what I call these sort of colored rainbows.

28:29.750 --> 28:33.750
You can produce really nice flight trials to see where the air traffic is going.

28:36.950 --> 28:39.390
This is San Francisco International Airport.

28:39.690 --> 28:44.950
I went there with my B200 at the edge of the runway there.

28:44.950 --> 28:47.730
And it's cool, because you can track planes as they come in.

28:47.730 --> 28:49.070
This is a parallel approach.

28:49.150 --> 28:50.450
You see these two icons.

28:50.450 --> 28:51.430
They're both green.

28:51.710 --> 28:55.870
There are the planes coming in as soon as the nose wheel will touch the tarmac.

28:55.890 --> 28:57.370
You see that one already did there on the top.

28:57.370 --> 28:57.970
It went red.

28:57.970 --> 29:00.530
That one's going to go red in a second when the nose wheel comes down.

29:00.530 --> 29:01.270
There you go.

29:01.610 --> 29:03.490
And then they taxi back to the terminal.

29:03.710 --> 29:05.750
You can also do this for takeoffs.

29:05.750 --> 29:08.750
I think this is a Virgin America flight here about to take off on this runway.

29:08.930 --> 29:10.490
I've sped it up a little bit, obviously.

29:11.670 --> 29:15.130
But it kind of looks cool as it does.

29:15.130 --> 29:19.110
That'll go from red to green then when it's rotated and lifted off into the air.

29:19.230 --> 29:20.290
There it goes.

29:21.750 --> 29:23.230
Up, up, and away.

29:24.070 --> 29:28.270
It's just incredible when you look at the speeds to which they accelerate and then suddenly take off.

29:28.270 --> 29:29.770
I love aviation.

29:29.770 --> 29:32.110
I think it's one of mankind's coolest achievements.

29:32.250 --> 29:33.410
Anyway, there it goes.

29:33.710 --> 29:36.370
It's following the flight path and another plane just took off prior to that.

29:36.370 --> 29:38.450
Look out for the plane and it's alright.

29:43.530 --> 29:44.710
Oh no.

29:44.970 --> 29:48.110
But it's okay because they're at wildly different altitudes, as you can see.

29:48.790 --> 29:52.910
Now, since altitude information is sent as well, you can plot this in real time in Google Earth.

29:52.910 --> 29:55.670
This is the 3D front end that I created for it.

29:55.670 --> 29:57.530
That's that same plane taking off.

29:57.530 --> 30:01.310
And you can see one in the distance coming in to land at Oakland International Airport.

30:01.690 --> 30:04.230
There's SFO and other planes sort of taxiing about.

30:05.230 --> 30:05.810
Off it goes.

30:05.810 --> 30:07.810
There's that same plane coming across overhead.

30:09.070 --> 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.

30:14.990 --> 30:17.570
So this is that same plane from that point of view.

30:17.570 --> 30:19.890
And this side I have running live for Sydney.

30:20.210 --> 30:22.130
I moved from Sydney, Australia.

30:22.130 --> 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.

30:31.090 --> 30:37.650
So you can go on my website and actually look at the live 3D airspace of Sydney using this system.

30:37.650 --> 30:40.230
This is actually coming back from the West Coast.

30:40.230 --> 30:41.650
Sorry, the East Coast.

30:41.650 --> 30:42.970
Landing in SFO.

30:43.090 --> 30:45.070
This is sped up again a little bit.

30:46.710 --> 30:48.630
And coming in for landing there.

30:48.630 --> 30:49.270
Boom.

30:49.570 --> 30:51.570
And then coming, waiting for the holding point.

30:51.570 --> 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.

31:00.410 --> 31:01.830
I don't know what was happening there.

31:02.590 --> 31:05.370
And in addition, so this is Sydney now.

31:05.370 --> 31:09.810
Apart from Mode S, aircraft also send ACARS messages, which are like text messages.

31:09.810 --> 31:12.010
And these are shown up in these balloons.

31:12.050 --> 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.

31:27.050 --> 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.

31:36.230 --> 31:38.090
And you get flight information like these.

31:38.090 --> 31:44.070
These are the flight plans for aircraft that are going into Asia and across to Western Australia.

31:44.450 --> 31:45.950
Now, so this is all the active system.

31:45.950 --> 31:51.590
Remember, this is where the aircraft is transmitting this information down to the ground that you can receive.

31:51.590 --> 31:52.930
What about the primary system?

31:52.930 --> 31:56.610
This is the passive system where you have the big radar spinning, sending out a big pulse.

31:56.610 --> 31:57.630
What about that?

31:57.630 --> 32:04.730
So, as it turns out in the Bay Area, near Moffat Air Force Base, there is this ASR9 primary surveillance radar.

32:04.730 --> 32:08.150
This is pretty much the main radar that's used in all airports across the country.

32:08.150 --> 32:09.830
It spins around, there's a picture.

32:10.190 --> 32:12.970
And I went out there with my B200, there it is in the background.

32:13.770 --> 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.

32:20.310 --> 32:26.950
Can you hear that?

32:27.150 --> 32:29.470
Not the noise from my laptop.

32:30.150 --> 32:31.110
Yeah, did you hear that?

32:31.110 --> 32:37.330
So that's actually the audio that I filtered out as it spins past the radio.

32:37.330 --> 32:40.310
So you can kind of hear the crackling, which is all the pulses going out.

32:40.770 --> 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.

32:50.550 --> 32:53.850
But as I was doing that, I noticed... let me just play it again.

32:56.470 --> 33:00.270
You can see here, this big bang is the big pulse that comes out.

33:00.270 --> 33:04.530
But just after that, you see that there are these other little pulses that appear.

33:05.590 --> 33:07.890
You can see there, there's some other stuff that happens.

33:07.890 --> 33:09.050
And I thought, well, hang on a minute.

33:09.530 --> 33:11.410
Could that be radar returns?

33:11.410 --> 33:14.570
They're probably going to be close in from ground clutter and buildings and so on.

33:14.570 --> 33:16.570
But there's clearly stuff coming back.

33:16.910 --> 33:19.350
And I thought, well, maybe you can plot that.

33:19.350 --> 33:26.790
Now, just remember for this entire bit, all I'm using is this little radio and that omnidirectional WIP antenna.

33:26.990 --> 33:31.510
I'm not using a directional antenna with lots of gain like that.

33:31.510 --> 33:33.370
That's the next step of the project.

33:34.510 --> 33:38.710
But what you actually see then are these radar returns.

33:38.710 --> 33:39.870
So remember this diagram?

33:39.870 --> 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.

33:50.570 --> 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.

34:06.210 --> 34:10.730
But some of my friends and I went up there last Friday to try and collect a little bit more data.

34:10.730 --> 34:12.630
You see we've got the antennas out.

34:12.930 --> 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.

34:23.710 --> 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.

34:35.250 --> 34:37.770
And it's all powered off the battery there so it was a bit of fun.

34:37.770 --> 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.

34:44.410 --> 34:48.690
This is the same kind of scene but instead on the hill overlooking Sydney Airport.

34:49.010 --> 34:50.430
So good times.

34:50.430 --> 34:51.710
I highly recommend you do it.

34:51.710 --> 34:56.310
Grab some batteries, laptops, SDR, go to some location and the police come out.

34:56.910 --> 35:02.190
But anyway, so once you record all those returns from the radar you need to do some processing.

35:02.190 --> 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.

35:12.170 --> 35:15.390
Because the vast majority of samples you receive are going to be noise.

35:15.390 --> 35:17.630
And that's this big peak here on the left hand side.

35:17.630 --> 35:18.670
This is a histogram.

35:18.850 --> 35:22.510
So your magnitudes go along the bottom and your counts go up.

35:22.670 --> 35:26.230
Now if you do a log scaling of this you can see that this is mostly noise.

35:26.230 --> 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.

35:33.530 --> 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.

35:38.750 --> 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.

35:45.250 --> 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.

35:50.370 --> 35:52.370
So they're probably going to be few and far between.

35:52.370 --> 35:56.830
So again we're going to pick some high threshold here and that's going to be our synchronization level.

35:56.830 --> 36:00.290
So you do the log scaling and you probably pick something around about there.

36:00.610 --> 36:04.910
Once you do that then you can do a histogram of the length of these strong pulses.

36:04.910 --> 36:06.770
You can see there's quite a big peak there.

36:06.770 --> 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.

36:12.470 --> 36:14.290
And you program that into the system as well.

36:14.290 --> 36:20.250
Once you do that then it will actually detect the strong pulses, synchronize and then you can produce this overlay plot.

36:20.250 --> 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.

36:26.250 --> 36:28.410
You have this nice empty space in the middle.

36:28.410 --> 36:30.990
If you've seen eye diagrams this is kind of the same thing.

36:31.110 --> 36:35.250
After that initial pulse comes out then you have those interesting returns after that.

36:35.690 --> 36:40.290
Load moron looks good, do a log plot and some more interesting things come out there.

36:41.110 --> 36:43.950
Now remember how I was talking about pulse repetition frequency?

36:43.950 --> 36:48.290
This is the period from when a pulse is sent out to when the next pulse is sent out.

36:48.290 --> 36:54.370
This here is showing you the number of samples between one pulse and the next pulse.

36:54.750 --> 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.

37:01.170 --> 37:02.670
I was expecting one.

37:02.770 --> 37:07.970
And what this actually shows you is that the radar is operating in this mode called dual PRF.

37:07.970 --> 37:11.450
So it's actually switching between two pulse repetition frequencies.

37:11.450 --> 37:15.830
It might send out ten pulses at one, switch to the other one and send another nine or ten.

37:15.830 --> 37:18.030
It's completely random and it keeps switching back and forth.

37:18.030 --> 37:21.030
And it does this to resolve ambiguities.

37:21.590 --> 37:23.910
So the system needs to take this into account now as well.

37:23.910 --> 37:24.790
You can program that in.

37:24.790 --> 37:28.090
Once you do, then you can draw this histogram of the PRFs.

37:28.090 --> 37:36.190
And you can see very clearly you have a PRF of about 950 Hz and the other one is 1250.

37:36.190 --> 37:38.690
So these are the two PRFs that are switching in between.

37:38.690 --> 37:39.770
Program that in.

37:39.870 --> 37:46.670
Once you graph the amplitude of the strong pulses, this was six revolutions of the radar.

37:46.670 --> 37:50.190
So you can see the peaks where it sort of begins to face the radio.

37:51.390 --> 37:53.230
And this is sort of zooming in on one.

37:53.330 --> 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.

37:59.950 --> 38:05.170
So these are when it sort of faces the radio and this is everything outside that as it spins around.

38:06.910 --> 38:10.530
Now, once you actually synchronize, this is what it looks like if you animate it.

38:10.530 --> 38:12.930
So the first pulse here is what came out of the radar.

38:12.930 --> 38:17.650
Everything after that is what is actually coming back from that main pulse back into the radio.

38:17.750 --> 38:19.410
So this is closest in.

38:19.410 --> 38:20.850
As I said, it's not going to be like an airplane.

38:20.850 --> 38:22.830
It's probably going to be big buildings and so on.

38:23.950 --> 38:25.870
Now, you can turn this into a pretty plot.

38:25.870 --> 38:27.050
This is what it looks like.

38:27.070 --> 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.

38:33.570 --> 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.

38:39.870 --> 38:45.270
So this is pulses going down the vertical and across the horizontal.

38:45.270 --> 38:46.330
It's just time.

38:46.650 --> 38:49.490
And you can see these interesting patterns start to emerge.

38:49.490 --> 38:55.730
If you zoom further in, you can see this kind of odd shape here and various other things pop out.

38:56.630 --> 39:00.590
So you've got that and then you've got this odd hotspot further out.

39:00.610 --> 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.

39:07.850 --> 39:09.090
So let's zoom in a little bit.

39:09.090 --> 39:10.370
The radar's here.

39:10.590 --> 39:15.150
Then you've got all this sort of ground clutter and buildings and so on around the shore.

39:15.330 --> 39:19.190
And you've got this odd kind of stippled line that's enclosed in red.

39:19.190 --> 39:20.670
And I was thinking, what could that possibly be?

39:20.670 --> 39:21.550
I mean, that's on the water.

39:21.550 --> 39:25.630
It doesn't seem to match anything that I've seen.

39:25.630 --> 39:29.230
As it turns out, it's all the power line pylons that cross the bay.

39:29.230 --> 39:33.710
So they're actually reflecting the radar energy that comes off the primary radar.

39:34.410 --> 39:39.350
Now, if you look further out, those other hotspots actually map to the bridge.

39:39.530 --> 39:45.310
I think there's some sort of a gasoline pipeline or something like that and San Mateo Bridge further out.

39:45.870 --> 39:47.830
Now, that was one revolution.

39:47.830 --> 39:51.310
If you do all six, then you can see this kind of repeats over and over again.

39:51.330 --> 39:56.370
But what happens when you actually overlay all of these images on top of one another?

39:56.510 --> 40:01.430
Well, what I've done here is I've taken the very first revolution, mapped it into the red channel.

40:01.430 --> 40:04.730
Taken, I think, the fourth one, mapped that into the green channel.

40:04.770 --> 40:07.850
And taken the very last one and mapped that into the red channel.

40:07.850 --> 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.

40:14.770 --> 40:20.970
And anything that ends up moving, you'll see this kind of RGB triplet or RGB smearing.

40:20.990 --> 40:24.490
Because, essentially, your colors map to time.

40:24.610 --> 40:26.050
So there's nothing interesting in this one.

40:26.050 --> 40:27.370
It's all white.

40:27.370 --> 40:28.530
But look at this one.

40:29.130 --> 40:30.210
See that?

40:31.030 --> 40:32.370
Something was moving.

40:32.690 --> 40:33.770
So we can zoom in on that.

40:33.770 --> 40:36.090
There's some sort of RGB smearing there.

40:36.330 --> 40:37.550
And this is another plot.

40:37.550 --> 40:38.010
Same thing.

40:38.010 --> 40:39.510
Something's moving further out.

40:40.030 --> 40:43.590
Now, as I said, bigger antenna, more gain, more directional.

40:43.590 --> 40:47.290
You can look at objects that are further out with smaller radar cross-sections.

40:47.310 --> 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.

40:51.510 --> 40:56.450
And if you put the map underneath, then it's on the shoreline.

40:56.450 --> 40:58.990
You can't quite see it, but there's actually a road here.

40:59.130 --> 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.

41:06.710 --> 41:09.250
It might have been a truck moving about 40 kilometers an hour.

41:09.490 --> 41:11.050
That's just my initial guess.

41:11.590 --> 41:16.570
And this was actually from my hotel room just the other night when I got in at Vegas.

41:16.570 --> 41:19.850
You can see a BA-747 landing.

41:20.170 --> 41:21.810
I just had the system running there.

41:21.810 --> 41:28.350
The problem with this setup, though, was that the primary surveillance radar for Las Vegas McCarran Airport is here.

41:28.390 --> 41:29.810
Mandalay Bay is there.

41:29.990 --> 41:33.050
And it's essentially a straight shot over.

41:33.050 --> 41:37.050
So anything in this larger region, you won't actually be able to resolve.

41:37.050 --> 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,

41:54.030 --> 41:55.090
of your photons.

41:55.390 --> 41:57.650
So consider the main pulse coming out.

41:57.650 --> 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.

42:03.870 --> 42:09.070
So when you want to track objects in this kind of separated by static setup, they have to be further out.

42:09.070 --> 42:11.770
And you can actually take this into account in the system.

42:11.770 --> 42:14.930
So you can generate what's known as a spatial distortion map.

42:15.110 --> 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.

42:21.630 --> 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.

42:30.470 --> 42:34.150
So there's going to be no spatial offset because they're co-located.

42:34.150 --> 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.

42:43.390 --> 42:44.670
I don't know if you can see that.

42:44.670 --> 42:49.550
So the radar is sort of moved off a little bit at a particular angle from the receiver.

42:49.550 --> 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.

43:04.310 --> 43:07.070
But anyway, that's future work.

43:07.070 --> 43:09.770
So this is a plot from the Mandalay Bay.

43:10.770 --> 43:12.770
Not a lot going on there, but if you...

43:13.470 --> 43:14.630
Oh, no, this one there is.

43:14.630 --> 43:16.210
So there's some sort of smearing there.

43:16.450 --> 43:17.830
It's very weak.

43:18.050 --> 43:20.770
Again, remember this is just an omnidirectional antenna like that.

43:21.990 --> 43:23.350
And there's another one.

43:23.350 --> 43:26.610
This was quite odd because this is quite close in.

43:26.610 --> 43:29.390
Some clutter, but it only appeared in one of the rotations.

43:29.390 --> 43:35.070
So I'm not entirely sure what was going on there, but we can analyze it some more later.

43:36.190 --> 43:37.770
So that's primary radar.

43:37.770 --> 43:39.990
On to the next thing, RFID.

43:40.230 --> 43:43.090
You're probably familiar with FastTrack or EasyPass.

43:43.090 --> 43:44.990
They're toll tags that you put on your car.

43:44.990 --> 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.

43:51.510 --> 43:54.350
It uses 900 MHz ISM.

43:54.350 --> 43:59.250
There's a wake-up signal to wake it up, and it's pulse position modulated payload like Mode S.

43:59.530 --> 44:08.950
And it uses backscatter modulation so that the receiver actually receives this backscatter energy.

44:08.950 --> 44:13.130
So what's going on there is that your tag doesn't have an active transmitter in it.

44:13.130 --> 44:18.530
It's just a little long-life battery, but there's an antenna inside it, and it has a radio receiver.

44:18.530 --> 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.

44:31.970 --> 44:38.590
Because the antenna will change its characteristics, change its radar cross-section, and the receiver can actually pick that up.

44:39.290 --> 44:43.630
There's this great talk at Black Hat a few years ago, and this was quite inspiring for me.

44:43.990 --> 44:49.490
But my initial questioning came from when I saw these antennas in San Francisco.

44:49.490 --> 44:50.870
I was wondering what they were used for.

44:50.870 --> 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.

44:56.970 --> 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.

45:07.430 --> 45:08.950
And I saw the same signal.

45:09.450 --> 45:12.030
So if you look at that, this is what's being transmitted out.

45:12.030 --> 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.

45:27.070 --> 45:31.850
Because when you receive this, the signal will have these subtle variations in it.

45:31.850 --> 45:33.130
And we'll see what that looks like.

45:33.290 --> 45:34.530
So this is just zooming in.

45:34.530 --> 45:35.790
You can see the payload there.

45:35.790 --> 45:38.010
It looks very much like a MODIS frame.

45:38.010 --> 45:39.810
And then you have this constant carrier.

45:40.230 --> 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.

45:50.290 --> 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.

45:58.150 --> 46:02.870
Anything coming back from the antenna goes into the receiver, but doesn't go around any further.

46:02.870 --> 46:04.290
It's a really neat device.

46:05.730 --> 46:07.830
And this is the Goody Radio program.

46:07.830 --> 46:12.990
This is being transmitted out, and you might recognize this from the plots before, this is what's actually being received.

46:12.990 --> 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.

46:18.450 --> 46:20.610
Imagine this is just a carrier.

46:20.710 --> 46:22.370
Don't worry about the squiggles there.

46:22.650 --> 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.

46:28.370 --> 46:31.170
And that's actually the backscatter from the tag.

46:31.850 --> 46:33.810
And that's what it looks like sort of blown up here.

46:33.810 --> 46:37.210
So there's this additional modulation on top that you can then decode.

46:37.210 --> 46:43.450
And that contains your unencrypted, unauthenticated tag ID that identifies you as an individual.

46:43.590 --> 46:47.850
So this is the preamble that it's looking for in that backscatter modulation.

46:47.850 --> 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.

46:53.930 --> 46:56.050
So as you can see here, you have...

46:56.050 --> 47:01.110
remember like with the frequency shift keying from the pager, you have exactly the same scenario here.

47:01.110 --> 47:04.770
So it decodes anything above and below into a 0 or a 1.

47:04.770 --> 47:07.510
And that's how you determine the tag ID.

47:08.310 --> 47:11.510
So this is a little video here to give you a better idea.

47:11.630 --> 47:13.470
This is what's going out.

47:13.910 --> 47:15.810
And this is what's being received.

47:15.810 --> 47:22.050
And you can see here is that backscatter modulation where I'm actually holding the tag over the antenna.

47:22.050 --> 47:23.970
And you can see that it's moving there.

47:24.350 --> 47:25.810
So there's nothing there now.

47:28.010 --> 47:30.650
There's nothing there now, it's just supposed to be a carrier.

47:30.650 --> 47:33.550
And now I put the tag back and you can see that it's being modulated there.

47:33.650 --> 47:37.470
So backscatter is really cool and it's used in all sorts of different areas.

47:38.970 --> 47:44.450
So here I was just reading this tag outside.

47:44.630 --> 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.

47:50.450 --> 47:52.110
This is the flow graph.

47:52.110 --> 47:56.270
This is both transmitting and receiving out of the same unit through that circulator.

47:56.890 --> 48:00.150
And that's just the fast track decoder block there.

48:00.330 --> 48:02.870
Another thing we tried to look at is the keyless entry.

48:02.870 --> 48:04.850
For example, the Toyota Prius.

48:04.970 --> 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.

48:15.690 --> 48:20.790
And the UHF portion we're receiving on that little whip antenna there.

48:20.790 --> 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.

48:32.370 --> 48:37.730
And then my colleague here is just pressing the button on the remote sometimes so we get some additional activity.

48:37.890 --> 48:41.650
And this is neat, this is the time domain of the LF portion.

48:41.650 --> 48:43.650
So this is the car constantly sending our thing.

48:43.650 --> 48:44.550
Is anybody there?

48:44.550 --> 48:46.550
Is my real owner there?

48:47.090 --> 48:49.590
Again, you can see the pulses, you can decode that.

48:49.970 --> 48:54.230
Zooming in there, pretty obvious that you can turn that into 0s and 1s.

48:54.390 --> 48:56.890
This is actually the reply.

48:56.890 --> 49:01.630
So the car sends out a challenge and this is the reply from the UHF remote.

49:01.850 --> 49:05.630
And again, you can see this on and off keying here and you can turn that into 0s and 1s.

49:05.630 --> 49:07.910
I'm pretty sure the crypto is secure so I didn't go beyond this.

49:07.910 --> 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.

49:13.310 --> 49:18.030
Now this is using Bordline, so I've actually got both FFTs overlaid on each other.

49:18.030 --> 49:21.890
So you can look at them as they happen together in time, which is really handy.

49:21.890 --> 49:26.290
The blue is the low frequency coming from the car, the red is what's coming back from the remote.

49:26.630 --> 49:30.230
And so if you look at that...

49:31.110 --> 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.

49:40.830 --> 49:44.650
And this is a little plug-in, a little block that I made for GNU Radio.

49:44.650 --> 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.

49:52.370 --> 49:54.270
And yeah, that's just a block there.

49:54.290 --> 49:58.910
The final thing with RFID is I just had a quick look at using the badge system in our building.

49:58.910 --> 50:01.930
This uses essentially Backscatter as well.

50:02.130 --> 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.

50:09.990 --> 50:12.810
And then below you see that the card then replies.

50:12.810 --> 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.

50:19.330 --> 50:20.690
So that's what's happening here.

50:20.690 --> 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.

50:26.850 --> 50:29.090
And then you can go ahead and demodulate them.

50:29.330 --> 50:30.790
I imagine that's pretty secure as well.

50:30.790 --> 50:34.130
Let's just zoom in some more, as you can see there.

50:35.210 --> 50:37.730
Alright, so just to wrap up then.

50:38.530 --> 50:41.330
Who said about the ISE3 project?

50:44.790 --> 50:48.870
Google actually followed our activities and they launched their website.

50:48.970 --> 50:53.030
Was it Space... I've had a mental blank.

50:53.030 --> 50:55.590
I haven't even seen it yet, it was just launched yesterday.

50:55.650 --> 50:58.750
It's like Space Probe for All or something like that.

50:58.750 --> 51:00.810
So I encourage you to check it out.

51:01.730 --> 51:02.950
Where is it?

51:04.530 --> 51:05.690
I don't know.

51:05.730 --> 51:08.390
Just have a Google, it's pretty cool.

51:08.510 --> 51:12.430
So NASA sent out the Space Probe over 36 years ago.

51:12.790 --> 51:14.830
It had a lot of firsts.

51:15.130 --> 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.

51:22.730 --> 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.

51:31.210 --> 51:35.690
And they picked its signal up, because the radios were left on.

51:35.990 --> 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.

51:53.590 --> 51:55.810
And so they did a Kickstarter and raised some money.

51:56.410 --> 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.

52:05.890 --> 52:08.850
So they realized, well hang on, we need something as a replacement.

52:08.850 --> 52:15.710
And therefore they saw SDR as a potential, and they got in touch, and I came on board.

52:16.310 --> 52:21.970
And so we went to Arecibo, which is the world's largest single-dish radio telescope in Puerto Rico.

52:22.310 --> 52:26.330
And you can see the platform here, which is suspended above the dish.

52:26.330 --> 52:30.430
This is called the dome that houses the actual receiver and transmitter equipment.

52:30.430 --> 52:37.710
And then the raw RF is then piped back down to the control room.

52:38.090 --> 52:40.630
So this is kind of the view from above there.

52:40.770 --> 52:43.450
The scale is just mind-blowingly incredible.

52:43.450 --> 52:44.950
I mean, this thing is absolutely huge.

52:44.950 --> 52:48.870
I went for a jog once around the dish, and it's like a kilometer in circumference.

52:49.150 --> 52:50.550
It's insane.

52:50.790 --> 52:58.150
They also have two one-megawatt klystrons that they use for S-band radar imaging.

52:58.150 --> 53:04.110
And when you actually multiply that by the gain of the dish, it comes out to two terawatts, which is insane.

53:04.110 --> 53:07.870
Birds sometimes fly in there, and they get zapped and die and then boil and then burn.

53:08.850 --> 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.

53:18.250 --> 53:23.130
We actually saw the weak carrier being broadcast by the probe.

53:23.130 --> 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.

53:31.810 --> 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.

53:38.030 --> 53:39.130
This is the weak version.

53:39.130 --> 53:40.390
You can just see it there.

53:40.510 --> 53:43.490
It's slanted due to the Doppler effect as the Earth rotates.

53:43.910 --> 53:48.550
But this is the GNU radio side of things, and you can see the signal is really, really strong.

53:48.550 --> 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.

53:56.750 --> 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.

54:03.650 --> 54:05.470
It was a good little test.

54:06.210 --> 54:07.870
And then this is what happened.

54:11.750 --> 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.

54:20.630 --> 54:22.950
So that was a great milestone in the project.

54:23.810 --> 54:27.690
And then after that, we were recording telemetry on both channels.

54:27.790 --> 54:30.090
That's transponder A and transponder B.

54:30.370 --> 54:34.230
The signal was very strong because, of course, you're using the biggest dish on the planet.

54:35.870 --> 54:38.890
And since then, we've processed that a lot.

54:38.890 --> 54:42.890
The next stage of the project was to actually fire the thrusters.

54:42.890 --> 54:44.690
So this is some software that I put together.

54:44.690 --> 54:48.650
You can download this off my GitHub and connect it to the live stream on my website.

54:48.810 --> 54:51.230
That actually shows you some of the telemetry elements.

54:51.230 --> 54:54.710
This is all the stuff about the propulsion system on the space probe.

54:54.710 --> 55:00.510
And we would look at this when we would go and then program the thruster firing on the space probe.

55:00.510 --> 55:04.910
So we wanted to fire this thruster this number of times to change its trajectory.

55:05.570 --> 55:10.370
And then we also created this graphing system so that we can actually look at what was happening.

55:10.370 --> 55:13.210
This is the signal strength that's reported by the space probe.

55:13.250 --> 55:16.810
And as we would fire the thrusters, this is the accelerometer data that comes back.

55:16.810 --> 55:22.250
So every time you fire the thruster, the accelerometer should register a pulse to let you know that it worked.

55:23.350 --> 55:25.830
And so I know we're running short of time, so I'm going to wrap up.

55:25.830 --> 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.

55:32.950 --> 55:38.130
And that's nitrogen, and unfortunately that nitrogen seems to have disappeared over three decades.

55:38.190 --> 55:41.390
So we tried every single combination, but we just couldn't get enough thrust out.

55:41.390 --> 55:42.710
So it's going to continue on its merry way.

55:42.710 --> 55:45.330
It's going to do a lunar flyby today or tomorrow.

55:45.330 --> 55:49.190
But we've turned the science instrumentation back on, and we're receiving science data from it.

55:49.290 --> 55:49.970
So that's good.

55:49.970 --> 55:56.470
This is the team outside McMoons, which is the old McDonald's that was converted into mission control at NASA Ames.

55:57.250 --> 55:58.950
And thank you very much.

56:11.860 --> 56:14.000
Sorry, I completely forgot to mention.

56:14.000 --> 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.

56:20.880 --> 56:22.680
It's this little thing I've been working on.

56:22.900 --> 56:25.560
I'll leave it running while I... this is the last thing I'll disconnect.

56:25.560 --> 56:26.680
Or I'll take it over there.

56:26.680 --> 56:30.340
But if you want to tune in, 915 megahertz, one mega sample per second.

56:30.580 --> 56:34.940
I haven't updated it from last year when we were at a different conference, so excuse the plug.

56:34.940 --> 56:36.480
But you might enjoy it anyway.

56:36.480 --> 56:36.760
All right.

56:36.760 --> 56:37.000
Cheers.

56:37.000 --> 56:37.360
Thanks.

