start	end	text
7610	10770	My name is Barland Seaver. I wanted to tell you a little bit...
12370	13770	Can't hear me?
17290	20530	Testing, testing...
20530	25070	Should be longer. Is that better?
26250	31110	Alright. Thank you for coming.
31110	35550	My name is Barland Seaver. I wanted to tell you a little bit about some of the experiments...
35550	40550	that I've done over the past year with Software Defined Radio, just so you get a bit of a flavor...
40550	42130	of some of the cool things you can do.
43870	48610	I'm the Applications Specialist slash SDR Evangelist at Edis Research.
49090	52210	And luckily I get to have a bit of fun with the products.
53710	57110	This is a little journey I went on earlier this year.
57110	61030	I really love SDR, showing people the cool things you can do with it.
61030	67170	This was in Europe, and this was a lab that I took part in...
67170	71990	teaching this group of people from developing nations about SDR.
72450	78570	And usually when I travel I also have the good fortune of teaching the local constabulary about SDR as well.
78570	81250	But I always seem to show up at exactly the right time.
82090	86990	But today I'd like to quickly show you things that you can do with restaurant pages...
86990	93050	the traffic message channel on RDS, the radio data service, looking at primary surveillance radar...
93050	96030	and some RFID applications.
96170	100830	And pretty much everything I've done is using GNU Radio, which I'm sure you've heard about.
100830	105730	It's a really neat open source DSP slash SDR framework.
105830	109230	And it's got a very vibrant community behind it.
110650	115810	Over the past few years there's been an explosion in bandwidth...
115810	119070	that you can actually achieve to peripherals that you plug into your computer.
119070	124730	So this is, for example, 50 MHz worth of spectrum being captured in real time...
124730	127870	going through another piece of software I love to use called Boardline.
129190	133010	Does anybody know what band we're looking at here? Any guesses?
136790	138670	One guess? Come on, anyone?
141130	143610	It's actually the cellular band.
144090	149330	In the middle here you've got some GSM channels and some wider bandwidth channels.
149330	152230	Actually, the title slide here is a portion of that.
152230	155770	And what's really cool about this program is that you can run the FFT so fast...
155770	159790	you can see the frequency correction burst in the control channel coming down on GSM.
159790	163290	And that's what your handset uses to synchronize its internal oscillator.
165570	167910	This is actually a video of it running.
167910	171350	I think... maybe... there we go.
172330	177490	My laptop just needs a moment. There we go.
177490	181870	So this is actually it scrolling past. You have some traffic, GSM traffic there on the left-hand side...
181870	183930	and on the right-hand side you can see the control channel.
183930	193490	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.
193490	198990	And this video here is actually the 400 MHz band.
198990	203930	I think this was 100 MHz per second, so this is 100 MHz worth of bandwidth.
203930	209710	This is going over a 10 GHz pipe from a higher end USRP.
210390	213490	The USRP that I used...
213490	218540	Just before I get to that, if graphics doesn't quite do it for you and you want to kick it old school...
218540	222160	with some ASCII art, you can have an ASCII art FFT.
222200	226880	You might want to SSH into a remote console or something. You don't want to do X11 forwarding.
226880	232660	You can just pop open one of these. This is actually 200 MHz worth of bandwidth.
232700	235720	Centered on the middle of the FM broadcast band.
236080	242760	You can stream an incredible number of Hz essentially into your machine.
242760	246660	What I've used for my experiments is pretty much this, the USRP B200.
247780	250300	You can pass it around if you want to have a look.
251380	258120	It's USB 3.0, bus powered. You can get up to 56 MHz of RF bandwidth over USB 3.0.
258120	260800	It tunes from 70 MHz to 60 GHz.
261040	266680	The B210 can do 2x2 MIMO, so you can have full duplex 2 channels.
267380	272580	You can do all sorts of incredible stuff with this, like I've run an LTE base station off it.
273360	276860	The first thing, restaurant pages. Whenever I have these title slides,
276860	281200	the actual FFT there is related to the signal that's being analyzed.
281360	285760	I'm sure you know what these pages look like. You go into the restaurant, you order your food, you're given one.
285940	288920	They beep when your order is ready, assuming it is in fact ready.
288920	294200	If you consider the rate at which orders come into the restaurant and then the rate at which food is picked up,
294200	298280	it should be roughly the same. But it's possible to tip that balance slightly.
298500	301120	For example, if everybody might be paged at once.
301940	306640	If you want to figure out the frequency, you can either look at the frequency, which is sometimes on the device.
306700	312280	You can look at the FCC ID and look it up on the database. It tells you what the licensed frequencies are there.
312280	317320	Or you can actually just use an SDR like a spectrum analyzer and find the strong signal.
317320	321800	This is an example here. This is using HD-SDR. There's the page.
322320	328180	I have some audio here. Let's see if we can hear what it sounds like.
342350	348570	That's some custom pager protocol. If you actually look at the FFT at a higher resolution,
348570	354830	you can see the two different frequencies that are used in this frequency shift keyed modulation.
354870	358490	One frequency will be a 1, the other frequency will be a 0.
358490	363110	The interesting thing about this plot here is that there's no long run of 1s or 0s,
363110	368410	which pretty much gives you a clue about the line encoding used for this modulation.
368730	373930	Once you actually construct this flow graph in GNU Radio, you can demodulate that
373930	379990	and then extract the raw bits and then process those to figure out what protocol is actually in use.
381210	387170	This is the first step. You need to record your channel and then identify the signal of interest.
387210	390430	And then you move that down to baseband to center it on the dial.
390430	392550	And you can use that with one of these blocks.
392830	400130	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,
400130	404250	which is finding the frequency range from the left-hand peak to the right-hand peak.
404250	410030	So that might be a 0 to 1, and you need to figure out what that range is.
410030	415890	Once you've figured out that range, you can then put it through the quadrature demodulator with the appropriate gain,
415890	420590	and that will scale your signal along this time series to be between 1 and negative 1,
420590	424070	which is kind of normalized units for your incoming stream.
424070	428790	After that, you need to figure out how quickly your bits are coming in.
428790	434330	So this is your board rate. And you can do this with a simple construction in GNU Radio.
434330	437230	This is using this thing called cyclostationary analysis.
437450	443370	And you basically multiply the original signal by a delayed version of itself and then take the FFT.
443370	449090	It's a little bit of a trick, but it's cool because it actually shows you the periodicity of the incoming bit stream.
449090	457290	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.
457290	461770	And once you've got all this information, then you can do clock recovery,
461770	468290	which actually means that you take in your raw samples and then you slice and you extract a 1 or a 0.
468290	472850	If it's above 0, you treat it as a 1. If it's below 0, then you treat it as a 0.
472850	476490	And then you have your raw bit stream. And this is what it looks like coming out.
476490	482030	So you see some sort of repeating preamble here, and then you have some sort of a payload after that.
482390	485390	And presumably in there it's encoded what pages should go off.
486130	491010	We always say flow graphs are easy, you just throw a couple blocks together and you're all sweet.
491010	495410	I told a bit of a fib in the previous one. I hid all of the disabled blocks.
495410	503950	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.
503950	510530	But this is more a complete picture. I get a lot of crap about my flow graphs.
512770	521210	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.
521810	524590	And so once you've got your raw bit stream, these are the raw bits.
524630	528310	So this is a little program I wrote a while ago to look at a different system.
528310	539590	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.
539730	544670	So here you can see again you've got no long strings and ones and zeros, they're alternating pretty quickly.
544710	548350	And that gives you a good clue that they're probably using Manchester encoding.
548370	554650	So when you turn on Manchester encoding it halves the number of bits because what happens is it treats your information in pairs.
554650	560450	So like a zero and a one will be treated as a zero. A one and a zero will be treated as a one.
560510	567030	It's just a way of enabling better clock recovery so you have more transitions in your data for the receiver to synchronize.
567030	570810	Once you do that it starts looking more like a proper packet.
570810	575190	And you can verify that it is in fact Manchester encoded by moving the bit offset.
575190	579530	So let's say you forget the first bit in this unencoded view.
579530	585130	And then once you move the bits you get line encoding violations and they're highlighted in red.
585130	592670	And that's basically because with Manchester you can't have a zero zero or a one one in the raw input stream.
592670	596070	Because you need to have a transition through the middle there.
596070	598410	So that's just good verification there.
598410	609510	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.
609530	613010	So you can see there are some bits changing here and at the end there.
613890	620470	And now once you actually get a pager you check the ID and then you look in your Manchester decoded stream and think,
620470	623190	oh hang on, what do you know, there it is.
623430	629170	There's also this odd byte at the end that was changing, as you saw before, that's the checksum.
629450	634850	And you can go through and try a whole bunch of different CRCs, algorithms.
634850	637730	Turned out it wasn't actually CRC, it was really simple.
638130	641930	You add up your bytes and you mod 255, it's a very simple check.
641930	644750	And so that matches, as you can see there.
644850	648610	So that's pretty much the packet format. And to do it in the modulator you just do the reverse.
648610	653770	So you construct your packet, add your preamble, your magic header, the pager number, the checksum.
653770	659750	You interpolate that to start producing the stream that will be sent out of your radio.
660090	665770	You frequency modulate, before that you should actually do some pulse shaping, I didn't bother.
665990	669230	And then you resample so that you can send it directly to the transmitter.
669270	672970	So this is actually the transmitter, the modulator.
673410	678150	And you've got the steps that I just talked about there, goes out of the USERP at the end.
678150	685730	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.
685870	696530	So you get something like this, put the number in, that's the Goonie radio program.
699980	701000	There you go.
702940	709680	So that's system number one. I actually had a bit of fun, my colleagues and I went out for lunch to this place.
709680	717000	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.
717100	726620	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.
726620	732520	So I would have an XMR piece of server running on my laptop and then I would have this web interface on my telephone.
732680	737400	And so I could actually just type the numbers in on my telephone away from the table and set them off.
737400	739540	So I just said I was going to the bathroom or whatever.
739600	746600	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.
747320	750860	But he liked the troll, I think he enjoyed that.
750940	758060	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.
758340	763980	You can actually decode pagers already with a nice out-of-tree module for Goonie radio called GL POCSAG.
763980	770880	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.
771200	779280	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.
779560	789500	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.
789500	794460	Let's look at one in particular, so initially you have a sink so the receiver can lock.
794460	802280	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.
802280	807440	So what's going on here is with POCSAG in this system, the zeros are just padding.
807440	816000	I think the next four hexadecimal digits here are actually the system ID of the pager system at that particular restaurant.
816000	820480	And then the last byte here is actually encoding the pager address.
820480	832440	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.
832560	836140	So as you can see here, this is three, you multiply it by two and you get six.
836140	845980	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.
846000	850060	It would wake up in the slot where it might expect its address to be.
850220	859480	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.
859480	865540	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.
865540	870400	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.
870400	872680	And that can save you a huge amount of battery power.
873860	879300	So to construct that again, you have your preamble, you have your sync, you have your system and page or address.
879720	887560	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.
888000	894100	And if you do that, we're now with my colleagues again, so we had a bunch of pages to play with.
894360	895280	And you can kind of...
895280	902410	We'll do 39, and then we'll do 56, and 82...
904130	905930	Anyway, you get the idea.
906370	911190	And then the final system was a ZigBee one, and this is pretty cool because it actually reverses the role.
911190	917010	So in this case the pages transmit back to the restaurant where you've actually sat down.
917010	925070	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.
925070	929970	And then when your order is ready, they come and deliver it to you, but they know where you're sitting.
930450	934490	And it uses ZigBee, and so it operates in the 2.4 gig ISM band.
934550	943790	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.
943790	947370	So this is what the flow graph looks like there. You've got your USERP source coming in.
947370	951530	You've got your PHY implemented, MAC, and another app stack on top of that.
951530	956230	And it just goes out to your sink if you want to have a full transceiver.
956270	962250	But in this case, that was a little setup, just recording there when the pages would be placed on the table.
962250	967390	You can see that there's an obvious transmission happening there and the packets coming out on the left-hand side.
967390	971770	If you drop this into Wireshark, then you can see decoded ZigBee data there.
971970	977130	If you can remember the two page numbers we had, turn them into hex, what do you know, they're in the payload.
977130	981890	I actually went then to the kitchen and looked at their screen and figured out what table number we were sitting at.
981890	985910	It happened to be 36, turn it into hex, that's in the payload too.
987790	994670	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.
994870	998390	And so it'll get angry and light up and make lots of noise.
998390	1007530	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.
1007530	1015810	So that's the pages. Any questions so far? Any comments? Just feel free to shout out whenever you want.
1016150	1022450	The next thing I looked at was cracking the encryption on the traffic message channel that's used in RDS.
1022450	1031010	The background here is actually a large portion of the FM broadcast band, so you can see the various radio stations there.
1031010	1042330	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.
1042330	1045870	So I think here, for example, somebody's actually talking. This is a bit of speech here.
1045870	1050250	You see these are moving much more, so there's probably a lot more modulation going on, but this is someone's speech.
1050250	1057650	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.
1057770	1064790	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.
1065230	1070210	It's kind of a good way to get an idea of how a signal works.
1072090	1081750	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.
1082590	1087850	And it's a sub-carrier on commercial FM stations. It's not audible, because it's filtered out.
1088130	1094830	It's BPSK and it runs at this odd baud rate. You can listen and decode with this out-of-tune module called GR-RDS.
1094830	1102950	And this is an example here. This is Sutro Tower in San Francisco. They broadcast a whole bunch of FM radio stations out of that.
1103590	1112470	And if you, for example, hook up a B200, then you can run the program and this is what you get on the screen.
1112470	1115150	This is the baseband. I'm listening to a particular station here.
1115150	1119850	You can see the RDS traffic scrolling up on the left-hand side.
1119850	1126310	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.
1126350	1131630	And this is actually, once you look at the demodulated portion of the signal.
1132010	1139290	This big peak here is the 19 kHz pilot tone. To the left-hand side of that is your mono, left plus right.
1139870	1144290	To the right-hand side of this is your stereo difference channel, so that's left minus right.
1144290	1150730	And then your receiver will combine the two to recreate your independent left and right channel, so you get stereo audio again.
1150910	1155990	Beyond that, you actually have your RDS subcarrier up here, which is on the...
1155990	1160850	You basically multiply this pilot tone up to center in on that subcarrier.
1162390	1167230	So, what we want to do then is look at the traffic message channel.
1167230	1171150	And this is a compact representation of traffic events in your area.
1171150	1175850	So you basically have what events it is, where it is, how long it might last.
1175850	1180970	And some examples are traffic congestion, when accidents happen, or when there's roadwork, for example.
1180970	1186830	And here's an example. This is the nav system in my car. You have these congestion icons that pop up.
1187270	1191390	Sorry, these are roadwork, and then you have the highway congestion along there.
1191670	1197370	Now, the thing is, I thought, oh, that's cool. It would be nice to receive this and make your own map,
1197370	1199970	because I like making maps and visualizing things.
1199970	1204130	This is an example of what you see as it's received.
1204130	1210310	So, congestion, average speed, sunny periods, and things like this.
1211910	1217450	Basically, this isn't particularly helpful, but the problem is that the location codes are actually encrypted.
1217870	1220990	Elsewhere in the world, they're not encrypted. In America, they are.
1220990	1225290	Now, apart from receiving, with GRDS, you can transmit, obviously.
1225290	1229570	This is in my car, and it's coming from somewhere else.
1230110	1235670	As it happens, just a B200 there on my laptop, making my own little FM radio station.
1235670	1239810	As you might recall, that plot we saw before, this is the same plot, but with no noise,
1239810	1244170	because we're actually synthesizing the signal.
1244170	1249210	So here you've got your mono, your pilot, your stereo difference, and the RDS.
1249670	1253170	And this is actually then being received by the car radio.
1253170	1257030	So the location codes are 16-bit for a geographical area.
1257030	1258950	The encryption keys are 16-bits.
1259070	1265150	And every day, they pick one of 31 keys, which are already pre-programmed in the receiver.
1265610	1270250	And that ID is broadcast continuously over the course of the day.
1270330	1276250	So, if you actually have a look, then, if you filter out all of the sort of boring traffic stuff,
1276250	1281150	like congestion, then you get interesting things coming out.
1281150	1286490	So I modified it, so it prints out the encryption ID, and then you get these temperature reports.
1286490	1288810	And I thought, oh, you know, interesting temperature reports.
1288810	1293730	Maybe I can create pretty graphs of how temperature changes through the course of the day somewhere in the Bay Area.
1295090	1300450	But as it turned out, I kept looking over the course of each day, and I noticed these patterns appear.
1300450	1305790	So every day, there would always be three unique temperature reports.
1306230	1310030	And it turned out that it's not actually really temperature.
1310030	1317170	So when I say temperature from now on, that's simply what the standard claims is the translation of this event ID.
1317170	1321470	It's not actually a temperature report. It's weird.
1321470	1328690	But what happens is you get these three unique lines every day that are temperature for a particular encrypted location.
1329270	1337310	And once you actually start logging all this data, I would check every day and make a log for that particular key ID,
1337310	1338650	you get these patterns.
1338750	1344830	So you get this group of three, and over the course, while you're in the same group period, let's call it,
1344830	1349070	the encrypted location IDs would be the same, and the temperatures would be different.
1349070	1352770	But you can see these patterns form with the groupings.
1353110	1359070	So what we want to do is then find out the hidden value of these location codes,
1359070	1361470	which is the plain text location code that's been encrypted.
1361550	1365430	And also, this is the unobserved value, and maybe recover the key.
1365430	1369910	So we would collect this data, and then you can build up this table over time.
1369910	1375310	So imagine days going across the top, we have our key ID, which translates to some hidden key,
1375310	1378450	and then we have these periods that can randomly change.
1378450	1381550	They can persist for several days or weeks and then just change.
1381550	1387690	But the idea is that you build this table that maps from your unknown key to your unknown plain text location
1387690	1391170	to the event that was transmitted and the encrypted location.
1391170	1392910	So you build this table up.
1392910	1396530	And then once you have sufficient amount of data, then you can do some analysis.
1396530	1398470	And 16 bits is obviously very short.
1398530	1403030	You have this reuse of these patterns through these groups.
1403230	1411010	And you can use singular events that occur as well to help with your breakdown of this data.
1411410	1414730	And these singular events you can then use as known plain text.
1414730	1421010	So singular events are unique occurrences, such as this odd one where there was some object reported to me on the road.
1421010	1425050	This doesn't happen very often compared to, say, traffic congestion, which is everywhere.
1426090	1429270	So once you've done that, then you build this sort of table.
1429410	1432190	And then you start iterating and doing this exhaustive search.
1432190	1436630	So the first thing you do is you calculate every possible key and every possible plain text location
1436630	1444530	that can match the results that you got for key number one and this potential hidden location number one.
1444550	1445790	And then you start filtering.
1445790	1450110	So you repeat for that same day with that same key ID for the other two hidden locations.
1450110	1454090	And then you take out all the possible keys that don't work, because you verify.
1454090	1458550	You take the possible key, you take the encrypted location, you take the possible unencrypted ones,
1458550	1463050	you put them through the encryption process and see whether they match with what you got.
1463050	1467410	And if they don't, and you try all the possibilities, then you take it out of your pool.
1467770	1471610	And so you iterate then on all of the other keys on all of the other locations.
1471770	1475770	Another way of looking at that is you have your incoming data, you have this iteration loop,
1475770	1478590	you have your pool of possible locations, pool of possible keys.
1478590	1481690	You keep going through validating, refining, removing the invalid entries,
1481690	1484210	and then at the end you're left with this.
1485010	1489130	I haven't collected all the data, but it's looking pretty good so far.
1489270	1492630	Some encryption IDs have one possible key match,
1492630	1495630	and the interesting thing is due to the algorithm,
1495630	1498820	you can have multiple possible key matches for any one day,
1499170	1502950	but because of the nature of the algorithm, you can query an encrypted location code
1502950	1506450	and get one unencrypted match back.
1506450	1510890	So that's how that works.
1511470	1515690	And then unfortunately, these singular events are usually these terrible things,
1516550	1518390	like, I mean this is reported on the air,
1518390	1521550	so vehicle fires, flooding, hopefully everyone's okay,
1521550	1530530	but unfortunately this makes for a good additional input point data sample for the system.
1530930	1532610	Okay, so that's RDS.
1533250	1538730	Aviation radar. You might have heard me talk about this before in the context of MODIS and ADS-B.
1539070	1541170	Just a quick recap then.
1541310	1544510	Primary surveillance radar is when you've got the big, big dish that spins.
1544830	1547810	And secondary surveillance radar is this antenna across the top.
1547810	1552770	The primary system works in a way that it sends out this big radio pulse,
1552770	1556130	and that is then reflected off the metallic skins of aircraft,
1556130	1559870	and anything else that happens to be a good reflector for RF.
1559870	1564350	It's collected in this big dish, and then they paint this radar scope that spins around,
1564350	1566450	you know, you've seen it in the movies and photos and so on.
1566570	1571750	The secondary system is different in that this sends out an interrogation,
1571750	1575090	and that's received by the transponder that needs to be on an aircraft.
1575090	1579690	The transponder hears the interrogation, and then sends back to this antenna
1579690	1582590	the score code or the altitude of the aircraft,
1582590	1587770	so that air traffic control can plot it, instead of just having these anonymous blips that come up,
1587770	1589810	so that they can label it on their radar scope.
1590050	1593630	So this system is an active system, you need the transponder on the aircraft.
1593650	1599230	The primary system is a passive system, you don't need to have a transponder active or anything like that.
1599230	1602530	The object just needs to be there and have a sufficient radar cross-section,
1602530	1606970	so that it can transmit some sort of RF energy back into the receiver.
1607390	1614010	So, with primary surveillance, the radar continually sends out what's called a bang or a strong pulse,
1614010	1618610	and then it waits a little while in receive mode for any echoes that come back off objects,
1618610	1623350	and then it starts again. This is called a pulse repetition period, or pulse repetition frequency.
1624130	1628010	And with ADS-B, which is part of the active system,
1629070	1635690	these transponders continually and independently send out position, heading, altitude, vertical rate, flight ID, score code.
1635910	1641290	And a typical 747 has 31 radios, which makes somebody like me really excited.
1642990	1646130	But anyway, the next time you fly, which is probably quite soon,
1646130	1651710	you can try spotting all the different antennas that are both above and below the aircraft.
1653110	1656470	Now, this is what a MODIS frame looks like.
1656470	1660070	You have this preamble at the beginning, a certain number of pulses positioned appropriately,
1660070	1664990	and then, interestingly, remember from Manchester encoding, this is exactly the same sort of encoding here.
1664990	1669570	So depending on which bit is actually on, then you get your bits out and you can form a packet.
1669570	1675450	Now, you may have heard me talk about this before, and others as well, so I'll skip all the details,
1675450	1681150	but this is what a GNU radio, this is my GNU radio decoder that I wrote many years ago,
1681150	1685910	and you can see the packets coming in there. You've got the preamble up front, and then your payload after that.
1686350	1689110	You may have seen these, but I'll show them again.
1689110	1692750	You can do pretty plots. So this is a system I put together called Aviation Mapper.
1692750	1698970	These are all the planes flying through the Bay Area. You've got SFO, SJC, and Oakland International Airport.
1698970	1703410	When transponders go bad, they produce all these crazy graphics on your screen.
1703410	1709190	Basically, the position reports flip the wrong way around, so you get what I call these sort of colored rainbows.
1709750	1713750	You can produce really nice flight trials to see where the air traffic is going.
1716950	1724950	This is San Francisco International Airport. I went there with my B200 at the edge of the runway there.
1724950	1729070	And it's cool, because you can track planes as they come in. This is a parallel approach.
1729150	1735870	You see these two icons. They're both green. There are the planes coming in as soon as the nose wheel will touch the tarmac.
1735890	1740530	You see that one already did there on the top. It went red. That one's going to go red in a second when the nose wheel comes down.
1740530	1743490	There you go. And then they taxi back to the terminal.
1743710	1748750	You can also do this for takeoffs. I think this is a Virgin America flight here about to take off on this runway.
1748930	1750490	I've sped it up a little bit, obviously.
1751670	1759110	But it kind of looks cool as it does. That'll go from red to green then when it's rotated and lifted off into the air.
1759230	1763230	There it goes. Up, up, and away.
1764070	1768270	It's just incredible when you look at the speeds to which they accelerate and then suddenly take off.
1768270	1772110	I love aviation. I think it's one of mankind's coolest achievements.
1772250	1776370	Anyway, there it goes. It's following the flight path and another plane just took off prior to that.
1776370	1778450	Look out for the plane and it's alright.
1783530	1788110	Oh no. But it's okay because they're at wildly different altitudes, as you can see.
1788790	1792910	Now, since altitude information is sent as well, you can plot this in real time in Google Earth.
1792910	1797530	This is the 3D front end that I created for it. That's that same plane taking off.
1797530	1801310	And you can see one in the distance coming in to land at Oakland International Airport.
1801690	1804230	There's SFO and other planes sort of taxiing about.
1805230	1807810	Off it goes. There's that same plane coming across overhead.
1809070	1814750	And why not do a virtual cockpit view so you can be in the pilot seat and experience what the takeoff is like yourself.
1814990	1817570	So this is that same plane from that point of view.
1817570	1822130	And this side I have running live for Sydney. I moved from Sydney, Australia.
1822130	1827970	And the night before I got on the plane to move here, I was in some tower in one of the suburbs,
1827970	1831090	setting up my USOAP1 that's been running ever since there.
1831090	1837650	So you can go on my website and actually look at the live 3D airspace of Sydney using this system.
1837650	1841650	This is actually coming back from the West Coast. Sorry, the East Coast.
1841650	1845070	Landing in SFO. This is sped up again a little bit.
1846710	1849270	And coming in for landing there. Boom.
1849570	1851570	And then coming, waiting for the holding point.
1851570	1860410	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.
1860410	1861830	I don't know what was happening there.
1862590	1865370	And in addition, so this is Sydney now.
1865370	1869810	Apart from Mode S, aircraft also send ACARS messages, which are like text messages.
1869810	1872010	And these are shown up in these balloons.
1872050	1877230	These are messages like automated status reports from the engines back to Rolls-Royce,
1877230	1879190	or it might be, there's a bad transponder again,
1879190	1882490	or it might be flight path information, which is these thicker white lines,
1882490	1886870	or information back to air traffic control and various other status messages.
1887050	1891250	Now, I found that there were a lot of messages regarding blocked toilets on aircraft,
1891250	1893150	so I've added this Easter egg for that.
1896230	1898090	And you get flight information like these.
1898090	1904070	These are the flight plans for aircraft that are going into Asia and across to Western Australia.
1904450	1905950	Now, so this is all the active system.
1905950	1911590	Remember, this is where the aircraft is transmitting this information down to the ground that you can receive.
1911590	1912930	What about the primary system?
1912930	1916610	This is the passive system where you have the big radar spinning, sending out a big pulse.
1916610	1917630	What about that?
1917630	1924730	So, as it turns out in the Bay Area, near Moffat Air Force Base, there is this ASR9 primary surveillance radar.
1924730	1928150	This is pretty much the main radar that's used in all airports across the country.
1928150	1929830	It spins around, there's a picture.
1930190	1932970	And I went out there with my B200, there it is in the background.
1933770	1940310	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.
1940310	1946950	Can you hear that?
1947150	1949470	Not the noise from my laptop.
1950150	1951110	Yeah, did you hear that?
1951110	1957330	So that's actually the audio that I filtered out as it spins past the radio.
1957330	1960310	So you can kind of hear the crackling, which is all the pulses going out.
1960770	1966990	And initially I wanted to look at this because I wanted to derive what the parameters of the radar actually were,
1966990	1970550	like what the pulse repetition frequency was and the rotation rate and so on.
1970550	1973850	But as I was doing that, I noticed... let me just play it again.
1976470	1980270	You can see here, this big bang is the big pulse that comes out.
1980270	1984530	But just after that, you see that there are these other little pulses that appear.
1985590	1987890	You can see there, there's some other stuff that happens.
1987890	1989050	And I thought, well, hang on a minute.
1989530	1991410	Could that be radar returns?
1991410	1994570	They're probably going to be close in from ground clutter and buildings and so on.
1994570	1996570	But there's clearly stuff coming back.
1996910	1999350	And I thought, well, maybe you can plot that.
1999350	2006790	Now, just remember for this entire bit, all I'm using is this little radio and that omnidirectional WIP antenna.
2006990	2011510	I'm not using a directional antenna with lots of gain like that.
2011510	2013370	That's the next step of the project.
2014510	2018710	But what you actually see then are these radar returns.
2018710	2019870	So remember this diagram?
2019870	2024650	If we actually pull up the time series plot of the magnitude of the data that I recorded,
2024650	2029970	you can see on the left-hand side here the big bang there and then these returns that come back.
2030570	2043710	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,
2043710	2046010	then it's quite a nice view actually at sunset.
2046210	2050730	But some of my friends and I went up there last Friday to try and collect a little bit more data.
2050730	2052630	You see we've got the antennas out.
2052930	2059070	And they were really nice in terms of sacrificing their hand because unfortunately the Thunderbolt connector on my laptop died
2059070	2063430	and the only way to make it work is if you push the Thunderbolt plug-in with all of your might.
2063710	2069390	And that was actually hooked up to a PCI Express adapter box which had a 10 gigabit Ethernet card in there
2069390	2074970	that was then hooked up to an X300, X310 so we could sample at 100 megs a second.
2075250	2077770	And it's all powered off the battery there so it was a bit of fun.
2077770	2084410	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.
2084410	2088690	This is the same kind of scene but instead on the hill overlooking Sydney Airport.
2089010	2096310	So good times. I highly recommend you do it. Grab some batteries, laptops, SDR, go to some location and the police come out.
2096910	2102190	But anyway, so once you record all those returns from the radar you need to do some processing.
2102190	2112110	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.
2112170	2115390	Because the vast majority of samples you receive are going to be noise.
2115390	2118670	And that's this big peak here on the left hand side. This is a histogram.
2118850	2122510	So your magnitudes go along the bottom and your counts go up.
2122670	2126230	Now if you do a log scaling of this you can see that this is mostly noise.
2126230	2133290	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.
2133530	2138390	So basically you pick some threshold here to say everything below that is going to be noise, I'm going to ignore it.
2138750	2144570	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.
2145250	2150230	And what we're going to do first is we want to synchronize to the strongest pulses which come from the radar.
2150370	2152370	So they're probably going to be few and far between.
2152370	2156830	So again we're going to pick some high threshold here and that's going to be our synchronization level.
2156830	2160290	So you do the log scaling and you probably pick something around about there.
2160610	2164910	Once you do that then you can do a histogram of the length of these strong pulses.
2164910	2166770	You can see there's quite a big peak there.
2166770	2172470	So the chances are that our standard pulse length is going to be whatever that peak maps to down at the bottom.
2172470	2174290	And you program that into the system as well.
2174290	2180250	Once you do that then it will actually detect the strong pulses, synchronize and then you can produce this overlay plot.
2180250	2186250	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.
2186250	2188410	You have this nice empty space in the middle.
2188410	2190990	If you've seen eye diagrams this is kind of the same thing.
2191110	2195250	After that initial pulse comes out then you have those interesting returns after that.
2195690	2200290	Load moron looks good, do a log plot and some more interesting things come out there.
2201110	2203950	Now remember how I was talking about pulse repetition frequency?
2203950	2208290	This is the period from when a pulse is sent out to when the next pulse is sent out.
2208290	2214370	This here is showing you the number of samples between one pulse and the next pulse.
2214750	2221110	Now the odd thing here is that you actually end up having these two lines coming out from the grouping of these red dots.
2221170	2222670	I was expecting one.
2222770	2227970	And what this actually shows you is that the radar is operating in this mode called dual PRF.
2227970	2231450	So it's actually switching between two pulse repetition frequencies.
2231450	2235830	It might send out ten pulses at one, switch to the other one and send another nine or ten.
2235830	2238030	It's completely random and it keeps switching back and forth.
2238030	2241030	And it does this to resolve ambiguities.
2241590	2243910	So the system needs to take this into account now as well.
2243910	2244790	You can program that in.
2244790	2248090	Once you do, then you can draw this histogram of the PRFs.
2248090	2256190	And you can see very clearly you have a PRF of about 950 Hz and the other one is 1250.
2256190	2258690	So these are the two PRFs that are switching in between.
2258690	2259770	Program that in.
2259870	2266670	Once you graph the amplitude of the strong pulses, this was six revolutions of the radar.
2266670	2270190	So you can see the peaks where it sort of begins to face the radio.
2271390	2273230	And this is sort of zooming in on one.
2273330	2278090	Once you actually program in everything and it starts tracking all the pulses, not just the strong ones,
2278090	2279950	then you get everything in between.
2279950	2285170	So these are when it sort of faces the radio and this is everything outside that as it spins around.
2286910	2290530	Now, once you actually synchronize, this is what it looks like if you animate it.
2290530	2292930	So the first pulse here is what came out of the radar.
2292930	2297650	Everything after that is what is actually coming back from that main pulse back into the radio.
2297750	2299410	So this is closest in.
2299410	2300850	As I said, it's not going to be like an airplane.
2300850	2302830	It's probably going to be big buildings and so on.
2303950	2305870	Now, you can turn this into a pretty plot.
2305870	2307050	This is what it looks like.
2307070	2313090	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.
2313570	2319870	And then once it's triggered, it just starts recording for this amount of time until it reaches the end of the scan line.
2319870	2325270	So this is pulses going down the vertical and across the horizontal.
2325270	2326330	It's just time.
2326650	2329490	And you can see these interesting patterns start to emerge.
2329490	2335730	If you zoom further in, you can see this kind of odd shape here and various other things pop out.
2336630	2340590	So you've got that and then you've got this odd hotspot further out.
2340610	2347570	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.
2347850	2349090	So let's zoom in a little bit.
2349090	2350370	The radar's here.
2350590	2355150	Then you've got all this sort of ground clutter and buildings and so on around the shore.
2355330	2359190	And you've got this odd kind of stippled line that's enclosed in red.
2359190	2360670	And I was thinking, what could that possibly be?
2360670	2365630	I mean, that's on the water. It doesn't seem to match anything that I've seen.
2365630	2369230	As it turns out, it's all the power line pylons that cross the bay.
2369230	2373710	So they're actually reflecting the radar energy that comes off the primary radar.
2374410	2379350	Now, if you look further out, those other hotspots actually map to the bridge.
2379530	2385310	I think there's some sort of a gasoline pipeline or something like that and San Mateo Bridge further out.
2385870	2387830	Now, that was one revolution.
2387830	2391310	If you do all six, then you can see this kind of repeats over and over again.
2391330	2396370	But what happens when you actually overlay all of these images on top of one another?
2396510	2401430	Well, what I've done here is I've taken the very first revolution, mapped it into the red channel.
2401430	2404730	Taken, I think, the fourth one, mapped that into the green channel.
2404770	2407850	And taken the very last one and mapped that into the red channel.
2407850	2414770	So what happens is all of these static objects that reflect the radar energy will then come out in white on this plot.
2414770	2420970	And anything that ends up moving, you'll see this kind of RGB triplet or RGB smearing.
2420990	2424490	Because, essentially, your colors map to time.
2424610	2427370	So there's nothing interesting in this one. It's all white.
2427370	2428530	But look at this one.
2429130	2432370	See that? Something was moving.
2432690	2436090	So we can zoom in on that. There's some sort of RGB smearing there.
2436330	2439510	And this is another plot. Same thing. Something's moving further out.
2440030	2443590	Now, as I said, bigger antenna, more gain, more directional.
2443590	2447290	You can look at objects that are further out with smaller radar cross-sections.
2447310	2451310	I don't actually know what this was, but if you do a polar unwrap, you can see that it's up there.
2451510	2456450	And if you put the map underneath, then it's on the shoreline.
2456450	2458990	You can't quite see it, but there's actually a road here.
2459130	2465050	And if you consider the rotation rate and the distance across which it traveled and so on,
2465050	2466710	I think it was probably a truck.
2466710	2469250	It might have been a truck moving about 40 kilometers an hour.
2469490	2471050	That's just my initial guess.
2471590	2476570	And this was actually from my hotel room just the other night when I got in at Vegas.
2476570	2479850	You can see a BA-747 landing.
2480170	2481810	I just had the system running there.
2481810	2488350	The problem with this setup, though, was that the primary surveillance radar for Las Vegas McCarran Airport is here.
2488390	2489810	Mandalay Bay is there.
2489990	2493050	And it's essentially a straight shot over.
2493050	2497050	So anything in this larger region, you won't actually be able to resolve.
2497050	2502510	And if you think about why, when the radar spins and turns and points in my direction there,
2502510	2506090	it's going to not only saturate the receiver because it's so powerful,
2506090	2509570	but if there's some other object around here,
2509570	2515090	you're receiving samples and you need to consider the flight time of your wave, of your photons.
2515390	2517650	So consider the main pulse coming out.
2517650	2519470	It's going to go off something here, come back together,
2519470	2523670	and it's just going to be hidden underneath all of the main energy.
2523870	2527590	So when you want to track objects in this kind of separated by static setup,
2527590	2529070	they have to be further out.
2529070	2531770	And you can actually take this into account in the system.
2531770	2534930	So you can generate what's known as a spatial distortion map.
2535110	2538930	Now if the radar and the receiver are at the same point, the transmitter and the receiver,
2538930	2541370	then what you want to look at is this 2D offset.
2541630	2546890	The red channel is the spatial X offset and the blue channel is the spatial Y offset
2546890	2550470	for this spatial map represented by this area.
2550470	2554150	So there's going to be no spatial offset because they're co-located.
2554150	2559030	If they're not, if there's some bi-static setup where your transmitter and receiver are separated,
2559030	2563390	then you can barely see it here, but there's sort of this differing shading of blue and red.
2563390	2564670	I don't know if you can see that.
2564670	2569550	So the radar is sort of moved off a little bit at a particular angle from the receiver.
2569550	2574870	If you exaggerate this and normalize it to the area, then you can very clearly see this sort of spatial distortion
2574870	2579090	that you have to apply to the data that comes back to make it look like in your plot,
2579090	2583490	original plot, that your receiver is actually where your radar transmitter is.
2584310	2587070	But anyway, that's future work.
2587070	2589770	So this is a plot from the Mandalay Bay.
2590770	2592770	Not a lot going on there, but if you...
2593470	2594630	Oh, no, this one there is.
2594630	2596210	So there's some sort of smearing there.
2596450	2597830	It's very weak.
2598050	2600770	Again, remember this is just an omnidirectional antenna like that.
2601990	2603350	And there's another one.
2603350	2606610	This was quite odd because this is quite close in.
2606610	2609390	Some clutter, but it only appeared in one of the rotations.
2609390	2615070	So I'm not entirely sure what was going on there, but we can analyze it some more later.
2616190	2617770	So that's primary radar.
2617770	2619990	On to the next thing, RFID.
2620230	2623090	You're probably familiar with FastTrack or EasyPass.
2623090	2624990	They're toll tags that you put on your car.
2624990	2628410	They're read by the bridges when you go through,
2628410	2631510	and then you're charged for your use of the road there.
2631510	2634350	It uses 900 MHz ISM.
2634350	2636110	There's a wake-up signal to wake it up,
2636110	2639250	and it's pulse position modulated payload like Mode S.
2639530	2646970	And it uses backscatter modulation so that the receiver actually receives
2646970	2648950	this backscatter energy.
2648950	2653130	So what's going on there is that your tag doesn't have an active transmitter in it.
2653130	2657270	It's just a little long-life battery, but there's an antenna inside it,
2657270	2658530	and it has a radio receiver.
2658530	2661140	So when it's woken up and it receives this payload,
2661490	2667370	it will actually change the impedance across the antenna in such a way
2667370	2671970	that the receiver can see those very subtle changes in radio energy coming back.
2671970	2674770	Because the antenna will change its characteristics,
2674770	2678590	change its radar cross-section, and the receiver can actually pick that up.
2679290	2681930	There's this great talk at Black Hat a few years ago,
2681930	2683630	and this was quite inspiring for me.
2683990	2689490	But my initial questioning came from when I saw these antennas in San Francisco.
2689490	2690870	I was wondering what they were used for.
2690870	2694330	So I got the B200 out and had the Yagi pointed at it,
2694330	2696790	and I recorded this thing and had a closer look.
2696970	2700150	And then I went to the toll gates at the Golden Gate Bridge
2700150	2703150	and looked totally inconspicuous and not suspicious
2703150	2707430	sitting there in the bus stop with my antenna pointed at the toll booths.
2707430	2708950	And I saw the same signal.
2709450	2712030	So if you look at that, this is what's being transmitted out.
2712030	2714750	You have your wake-up, you have some sort of preamble there,
2714750	2716390	you have your pulse position payload,
2716390	2723270	and then you have this constant carrier that's used to energize the tag
2723270	2727070	and then the backscatter will be modulated on top of this.
2727070	2729450	Because when you receive this,
2729450	2731850	the signal will have these subtle variations in it.
2731850	2733130	And we'll see what that looks like.
2733290	2735790	So this is just zooming in. You can see the payload there.
2735790	2738010	It looks very much like a MODIS frame.
2738010	2739810	And then you have this constant carrier.
2740230	2742790	So I'll skip this, but essentially it shows you
2742790	2744610	how I can use what's known as an RF circulator
2744610	2750170	to turn a single antenna into a simultaneous transmitter and receiver.
2750290	2753370	Essentially the RF energy comes in, goes out of the antenna,
2753370	2758150	but it blocks any of that energy passing through to the receiver.
2758150	2760950	Anything coming back from the antenna goes into the receiver,
2760950	2762870	but doesn't go around any further.
2762870	2764290	It's a really neat device.
2765730	2767830	And this is the Goody Radio program.
2767830	2769670	This is being transmitted out,
2769670	2771610	and you might recognize this from the plots before,
2771610	2772990	this is what's actually being received.
2772990	2775430	So you receive a bit of the signal that you sent out,
2775430	2777910	but what you want to look for is this area here.
2778450	2780610	Imagine this is just a carrier.
2780710	2782370	Don't worry about the squiggles there.
2782650	2785290	But the interrogation goes out when you put a tag there,
2785290	2788370	then you see you've got some modulation on top of that.
2788370	2791170	And that's actually the backscatter from the tag.
2791850	2793810	And that's what it looks like sort of blown up here.
2793810	2797210	So there's this additional modulation on top that you can then decode.
2797210	2800890	And that contains your unencrypted, unauthenticated tag ID
2800890	2803450	that identifies you as an individual.
2803590	2807850	So this is the preamble that it's looking for in that backscatter modulation.
2807850	2809550	There's a fixed series of bits,
2809550	2812210	and when it hits the preamble it knows that a packet is then coming
2812210	2813930	and will decode that.
2813930	2816050	So as you can see here, you have...
2816050	2818890	remember like with the frequency shift keying from the pager,
2818890	2821110	you have exactly the same scenario here.
2821110	2824770	So it decodes anything above and below into a 0 or a 1.
2824770	2827510	And that's how you determine the tag ID.
2828310	2831510	So this is a little video here to give you a better idea.
2831630	2833470	This is what's going out.
2833910	2835810	And this is what's being received.
2835810	2838670	And you can see here is that backscatter modulation
2838670	2842050	where I'm actually holding the tag over the antenna.
2842050	2843970	And you can see that it's moving there.
2844350	2845810	So there's nothing there now.
2848010	2850650	There's nothing there now, it's just supposed to be a carrier.
2850650	2853550	And now I put the tag back and you can see that it's being modulated there.
2853650	2857470	So backscatter is really cool and it's used in all sorts of different areas.
2858970	2864450	So here I was just reading this tag outside.
2864630	2867950	I've just put one under the windshield there and I can put the antenna over there
2867950	2870450	and then it picks it up.
2870450	2872110	This is the flow graph.
2872110	2876270	This is both transmitting and receiving out of the same unit through that circulator.
2876890	2880150	And that's just the fast track decoder block there.
2880330	2882870	Another thing we tried to look at is the keyless entry.
2882870	2884850	For example, the Toyota Prius.
2884970	2887950	We've got that wire there stuck in the handle
2887950	2892410	which is where the low frequency broadcast comes from the car
2892410	2895690	that wakes up the little UHF remote control.
2895690	2900790	And the UHF portion we're receiving on that little whip antenna there.
2900790	2908090	Here we're actually using the X310 because we're doing AHF or LF recording
2908090	2912370	with one side of the one channel and then VHF, UHF on the other side.
2912370	2916090	And then my colleague here is just pressing the button on the remote sometimes
2916090	2917730	so we get some additional activity.
2917890	2921650	And this is neat, this is the time domain of the LF portion.
2921650	2923650	So this is the car constantly sending our thing.
2923650	2926550	Is anybody there? Is my real owner there?
2927090	2929590	Again, you can see the pulses, you can decode that.
2929970	2934230	Zooming in there, pretty obvious that you can turn that into 0s and 1s.
2934390	2936890	This is actually the reply.
2936890	2941630	So the car sends out a challenge and this is the reply from the UHF remote.
2941850	2943810	And again, you can see this on and off keying here
2943810	2945630	and you can turn that into 0s and 1s.
2945630	2947910	I'm pretty sure the crypto is secure so I didn't go beyond this.
2947910	2950510	But just to give you an idea that with these sort of systems
2950510	2953310	that use different frequencies simultaneously you can do this analysis.
2953310	2958030	Now this is using Bordline, so I've actually got both FFTs overlaid on each other.
2958030	2961890	So you can look at them as they happen together in time, which is really handy.
2961890	2964170	The blue is the low frequency coming from the car,
2964170	2966290	the red is what's coming back from the remote.
2966630	2970230	And so if you look at that...
2971110	2974930	in time you can see that the broadcasts come periodically from the car
2974930	2979230	and then every so often the remote answers with this challenge,
2979230	2980830	which is what you see in red.
2980830	2984650	And this is a little plug-in, a little block that I made for GNU Radio.
2984650	2987630	This is the original flow graph running here, but you can just drop this block in,
2987630	2990850	have Bordline come up and visualize things there.
2992370	2994270	And yeah, that's just a block there.
2994290	2998910	The final thing with RFID is I just had a quick look at using the badge system in our building.
2998910	3001930	This uses essentially Backscatter as well.
3002130	3007110	You have the chip in the card and then every so often the reader will send out this broadcast,
3007110	3009990	this interrogation, which is this periodic thing here.
3009990	3012810	And then below you see that the card then replies.
3012810	3017010	It has a chip in there, it has an antenna that changes the characteristics of,
3017010	3019330	and it will read out the data there.
3019330	3020690	So that's what's happening here.
3020690	3023970	You can see as you zoom in, the stronger ones are what's coming from the reader
3023970	3026850	and the weaker ones are the Backscatter from the card.
3026850	3029090	And then you can go ahead and demodulate them.
3029330	3030790	I imagine that's pretty secure as well.
3030790	3034130	Let's just zoom in some more, as you can see there.
3035210	3037730	Alright, so just to wrap up then.
3038530	3041330	Who said about the ISE3 project?
3044790	3048870	Google actually followed our activities and they launched their website.
3048970	3053030	Was it Space... I've had a mental blank.
3053030	3055590	I haven't even seen it yet, it was just launched yesterday.
3055650	3058750	It's like Space Probe for All or something like that.
3058750	3060810	So I encourage you to check it out.
3061730	3062950	Where is it?
3064530	3068390	I don't know. Just have a Google, it's pretty cool.
3068510	3072430	So NASA sent out the Space Probe over 36 years ago.
3072790	3074830	It had a lot of firsts.
3075130	3077350	So it was 1978 that it was sent out,
3077350	3079090	and it tracked the comet for the first time,
3079090	3082330	studied the solar wind and the Earth's magnetic field.
3082730	3086090	And they found that it was coming back toward Earth,
3086090	3089590	because it has this interesting orbit that sort of goes ahead of the Earth
3089590	3091210	and goes around the Sun.
3091210	3095690	And they picked its signal up, because the radios were left on.
3095990	3098090	And so they found that it was coming back toward the Earth,
3098090	3101230	and they thought, oh cool, let's see whether we can try and talk to the satellite,
3101230	3104690	talk to the Space Probe, and maybe fire its thrusters
3104690	3107190	to bring it back into orbit around the Earth,
3107190	3109190	and then turn the science instruments back on
3109190	3113370	and open it up for STEM education for public consumption.
3113590	3115810	And so they did a Kickstarter and raised some money.
3116410	3120950	And then the problem was that NASA actually had gotten rid of all of the equipment
3120950	3125890	they used to talk to the Space Probe from their Deep Space Network ground stations.
3125890	3128850	So they realized, well hang on, we need something as a replacement.
3128850	3135710	And therefore they saw SDR as a potential, and they got in touch, and I came on board.
3136310	3141970	And so we went to Arecibo, which is the world's largest single-dish radio telescope in Puerto Rico.
3142310	3146330	And you can see the platform here, which is suspended above the dish.
3146330	3150430	This is called the dome that houses the actual receiver and transmitter equipment.
3150430	3157710	And then the raw RF is then piped back down to the control room.
3158090	3160630	So this is kind of the view from above there.
3160770	3163450	The scale is just mind-blowingly incredible.
3163450	3164950	I mean, this thing is absolutely huge.
3164950	3168870	I went for a jog once around the dish, and it's like a kilometer in circumference.
3169150	3170550	It's insane.
3170790	3178150	They also have two one-megawatt klystrons that they use for S-band radar imaging.
3178150	3184110	And when you actually multiply that by the gain of the dish, it comes out to two terawatts, which is insane.
3184110	3187870	Birds sometimes fly in there, and they get zapped and die and then boil and then burn.
3188850	3195950	So once we actually hooked all the stuff up, here we used the N210, the USRP N210, which is a network device,
3195950	3198250	hooked that up to the IF patch panel.
3198250	3203130	We actually saw the weak carrier being broadcast by the probe.
3203130	3211230	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.
3211810	3218030	And once the gurus there did a bit of pointing on the dish to pick up the signal, it was really, really strong.
3218030	3220390	This is the weak version. You can just see it there.
3220510	3223490	It's slanted due to the Doppler effect as the Earth rotates.
3223910	3228550	But this is the GNU radio side of things, and you can see the signal is really, really strong.
3228550	3233190	So then the next challenge was to send a command to it to turn telemetry back on after all this time,
3233190	3236270	so we could see and assess the state of the space probe.
3236750	3243570	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.
3243650	3245470	It was a good little test.
3246210	3247870	And then this is what happened.
3251750	3258070	So that was the moment where we actually saw that unmodulated carrier suddenly turn into modulated data,
3258070	3260630	and the telemetry had been turned back on on that transponder.
3260630	3262950	So that was a great milestone in the project.
3263810	3267690	And then after that, we were recording telemetry on both channels.
3267790	3270090	That's transponder A and transponder B.
3270370	3274230	The signal was very strong because, of course, you're using the biggest dish on the planet.
3275870	3278890	And since then, we've processed that a lot.
3278890	3282890	The next stage of the project was to actually fire the thrusters.
3282890	3284690	So this is some software that I put together.
3284690	3288650	You can download this off my GitHub and connect it to the live stream on my website.
3288810	3291230	That actually shows you some of the telemetry elements.
3291230	3294710	This is all the stuff about the propulsion system on the space probe.
3294710	3300510	And we would look at this when we would go and then program the thruster firing on the space probe.
3300510	3304910	So we wanted to fire this thruster this number of times to change its trajectory.
3305570	3310370	And then we also created this graphing system so that we can actually look at what was happening.
3310370	3313210	This is the signal strength that's reported by the space probe.
3313250	3316810	And as we would fire the thrusters, this is the accelerometer data that comes back.
3316810	3322250	So every time you fire the thruster, the accelerometer should register a pulse to let you know that it worked.
3323350	3325830	And so I know we're running short of time, so I'm going to wrap up.
3325830	3328710	But the problem was that there's plenty of fuel left on the space probe,
3328710	3332950	but you need pressure to push the fuel out through the thrusters.
3332950	3338130	And that's nitrogen, and unfortunately that nitrogen seems to have disappeared over three decades.
3338190	3341390	So we tried every single combination, but we just couldn't get enough thrust out.
3341390	3342710	So it's going to continue on its merry way.
3342710	3345330	It's going to do a lunar flyby today or tomorrow.
3345330	3349190	But we've turned the science instrumentation back on, and we're receiving science data from it.
3349290	3349970	So that's good.
3349970	3356470	This is the team outside McMoons, which is the old McDonald's that was converted into mission control at NASA Ames.
3357250	3358950	And thank you very much.
3371860	3374000	Sorry, I completely forgot to mention.
3374000	3378300	If you have an SDR here and you want to tune to 915 megahertz at one mega sample per second,
3378300	3380740	I've been transmitting something the entire presentation.
3380880	3382680	It's this little thing I've been working on.
3382900	3385560	I'll leave it running while I... this is the last thing I'll disconnect.
3385560	3386680	Or I'll take it over there.
3386680	3390340	But if you want to tune in, 915 megahertz, one mega sample per second.
3390580	3394940	I haven't updated it from last year when we were at a different conference, so excuse the plug.
3394940	3396480	But you might enjoy it anyway.
3396480	3397360	All right. Cheers. Thanks.
