I'm really big on teaching software defined radio to people in the hacker community and I think that today having kind of an SDR first approach makes a lot of sense that you can get software defined radio tools for very low cost and get started playing around and exploring the radio spectrum and learning about radio technology from a software standpoint first and then learn about hardware if that interests you. Whereas back in 1983, you know, when I was a kid, I used to I would start to work on electronics and like the first radio I ever built was a crystal radio that was a little kit that was super simple, really very few components, but very unsophisticated and not really able to interface with kind of the modern radio systems that are more sophisticated and not really able to interface with the modern radio systems that are more interesting maybe for kids to play with today. And so I wanted to think, I wanted to kind of figure out a way for people today to kind of breadboard a very simple radio with few components. And one of the things that we thought of is that there are these microcontrollers in, like high speed microcontrollers that are readily available to people and a lot of them have an analog to digital converter built in. And so I wanted to think, I wanted to kind of figure out a way for people to work in. So putting this into the 1983 fictional perspective, what if we're able to like reprogram the microcontroller or repurpose the microcontroller from some legitimate piece of equipment, something we're allowed to have? Can we take a general purpose microcontroller that has a little analog to digital converter in it and build a radio receiver out of it? We should be able to do in theory take anything with an ADC and build some kind of a software defined radio out of it that we can use for general receiving purposes. And so we came up with this breadboard SDR idea. What's the smallest, simplest thing that we can make out of a microcontroller with an ADC and as few components as possible? And we have this circuit that we're about to demo that has actually one diode and one resistor. And we have it plugged into a great FET, which is a hardware platform that we've been working on for a while. It's kind of our preferred way of doing things. And we've been working on it for a while. It's kind of our preferred platform for doing general microcontroller things. And we're using it in a number of these projects. But really all that matters is that it's some microcontroller that has an ADC. And in this case it has an ADC and it also has a USB port so we can stream samples from that analog to digital converter over to the computer that I'm demoing from. Really simple. There's an antenna, which is just a piece of wire plugged into a diode. And then we have an ADC that's a single diode. And there's a clock signal. Now, this is the tricky part, is that we're using this diode as a mixer. It's a single diode mixer. And I wanted to pick up a signal that's at a very high frequency compared to the things that I was able to pick up when I was a kid. I want to be able to pick up things like Dominic's car keys or this handheld radio, things that are transmitting at hundreds of megahertz in some cases. And we should be able to do that if we have a way to mix or translate the frequency, shift the frequency that comes in on the antenna down to a low frequency that the analog to digital converter can pick up. And so we're doing that by mixing the signal between a clock and this antenna, which is just a piece of wire. And the clock is actually being generated by a clock generator on the microcontroller itself. And this is pretty common. Like, almost every microcontroller has some method for generating an internal clock because it has to clock its CPU or its peripherals. And most of them will allow you to attach that to an output pin and bring that out. And we'll show you a bit more of that in a minute. But right now we're kind of bringing it out, feeding it back into the diode along with our signal, and then tapping it with an ADC. Right. And Dominic is fond of pointing out the fact that, like, when I first put this circuit together and I was like, oh, this is going to work, I was testing it, I was like, well, you know, it transmits as much as it receives, but it does receive. So it's messy, it's not a really clean design, but it does the job of showing you what the minimal circuit is that you need to build a mixer, which accomplishes this problem of shifting a frequency. So I'm going to do a little demo here. I'm going to actually receive a signal. There we go. Everybody's radio speaks Mandarin, right? I'm just going to do a little narrow band FM transmission. And one of the drawbacks of this design is that it has terrible performance in terms of receive sensitivity. But that doesn't really matter if you're transmitting from a fairly high-powered device nearby. And so you can still demonstrate a functional mixing circuit with a single diode as long as you have a relatively high frequency. So I'm going to do a little capture here where I'm just streaming samples from the analog to digital converter on that great fat, and then I will, once it's up and running, I'm going to do a little test transmission. Here we are, testing from on stage breadboard SDR. This is AD0NR. And you really should have an amateur radio license to do stuff like this. I highly recommend it. There are HAM exams going on here at DEF CON. And then I'm going to bring up a little flow graph in GNU radio. I don't have time to go into it in detail, but I'm taking this file that I just captured over the air, and I'm going to see if I can recover audio from it. And in software, I should be able to do this. Can anyone else hear that other than the two of us? Did you hear that? You could turn the volume up on your laptop. I could turn the volume up on my laptop. I could also actually use the capture file I just made instead of the capture file that I did earlier because that's kind of cheating, right? Right. Let's see if the new capture file actually works. Here we are testing on stage breadboard SDR. This is AD0NR. Here we are testing on stage breadboard SDR. This is AD0NR. There we go. Here we are testing on stage breadboard SDR. This is AD0NR. We probably should have told speaker ops that we needed audio output. I know. We needed audio output before. I can make a fool of myself once. There is audio output. Yeah. That's all right. We're done. We're done with audio. We don't need it. Thank you very much. Sorry. That was our demo. So, yeah, when you build a radio and software, you really don't need much hardware. And that's one of the cool things about software-defined radio technology. You can actually use the power of software to overcome deficiencies in your hardware so you can demonstrate working circuits with extremely few components. All right. So, Mike, what happened when we started the research for this is we divided up our ideas and Mike took the receivers and I, being the one without an amateur radio license, took the transmitters. Yeah. Like a pro. So, you won't be surprised to find we stuck to bands where we could transmit or I had Mike with me whenever I tested these things. But, yeah. So, our scenario is that we've got inside an air gap network. We have an ally inside. We want to build a transmitter. But we can't just carry a radio in there. Big Brother probably wouldn't like HackRF. So, it's unlikely we can carry it into the built ‑‑ I really wish I'd reread 1984 before this so I could get my references right. But we couldn't carry it into the ministry. And so, what can we do with a microcontroller we find inside? Now, previously, we were talking about those clock signals. The clock signal that we were using to mix with the incoming transmission on the breadboard SDR. What if we ‑‑ and as we said, it transmits as much as it receives. Well, what if we intentionally try and transmit and see if it receives as much as it transmits? So, a few people have done this before. Fontana was an interesting idea where you toggle a GPIO pin very quickly. Raspberry Pi FM does a similar thing. And it toggles a GPIO pin quickly. And adjusts the frequency of that. And Mike Walters, actually using GreatFET previously, did on‑off keying. And so, he would take that clock signal that we're using as a mixer and he'd just turn it on and off very quickly. And he would generate on‑off keyed data. And so, we wanted to kind of one‑up him a little bit because he's a friend of ours. And so, we wanted to look at FSK data, frequency shift keyed things. And so, what we did is we grabbed a GreatFET. Stuck a ‑‑ instead of having that mixer come back into the system, we just stick a wire on it. And I very carefully tuned this antenna by reaching into a box of jumper wires, pulling out one that was, like, kind of short. And sticking it in the pin header. And hoping that would work. And it kind of does. Like, if your radio is as rough as this, the antenna is not going to make the difference. So, what we want to do is frequency shift. And we have two options here. One is we can take those clock generators and we can very rapidly try and reconfigure them. And that's what Raspberry Pi FM does. But we couldn't get it to make very clean jumps back and forward between our two frequencies that we needed. And we actually had ‑‑ inside GreatFET, we happen to have multiple clock generators. There are three in there. There's one for audio, one for the CPU, and one for USB. So, if we just resign ourselves to the fact that we don't get to use them. And we need two of those things. And specifically, we need the CPU, so we just don't use USB in the audio. We can repurpose both of those clock generators. So, what we do is we set one to 315 megahertz. We set one to 315.1. And then the SCU here is a system control unit. All it does is decide which pins on the microcontroller, which functions of the processor get connected to which output pins on the GreatFET. So, all I do is I say. This output pin will be connected to this output pin. And then when I want to change to the other frequency, I just reconfigure the SCU and switch which clock signal is going out. And that's much, much quicker than waiting for a clock generator, a PLL, to settle. And it is that simple. All we do is load in the FSK data into the firmware. I do it over USB, but I've killed my USB by repurposing its clock. So, I build a one‑time firmware, load it onto the device. And it immediately just repeatedly transmits my FSK signal. And so, it's a super simple piece of ‑‑ oh, you need to tab out. Yeah. That's all right. Videos don't work in PDF. So, it's a super simple piece of code. We captured a signal. We actually used a hacker ref to capture the signal. And then we retract ‑‑ we pulled the bits out using in spectrum. Loaded it into the GreatFET. And then retransmitted it. Now, we have a piece of demo target for this, but it was kind of large. And DEF CON were not super enthusiastic about us bringing it on stage. So, this is a video demo. I don't know why they didn't want us to bring our demo car. So, that is ‑‑ I'm just pausing it for a moment. So, yeah, the first thing you saw was me hit a key on my keyboard. And that was just loading the firmware into the ‑‑ my single purpose firmware into the ‑‑ into the GreatFET. And then you probably want to watch the bottom ‑‑ bottom in the middle to the left. Watch my lights. There they go. There you go. And we unlocked my car. So, it turns out, like, cars use rolling codes. So, to get this working correctly, what we had to do was run up and down the road to get out of range of the car. Capture a key press with the hacker ref. Decode it. Copy the bits over to the GreatFET. Run back up the road. Try it. And then the first time we tried it, we thought it was going to be ‑‑ there's no way this works first time. So, I just ran it. And I went, oh, it unlocked the car. And Mike's like, I haven't started recording yet. And so, we both, like, grab all our equipment and run back down the road. We work opposite a dog park. So, there's just a bunch of puppies following us as we went up and down. The most fun. And interestingly, the target device, the actual key fob that we captured a signal from has, you know, pretty tight frequency deviations. Plus or minus 25 kilohertz. And we had a little bit of difficulty with, like, configuring the clock generators exactly how we wanted. And we said, well, hey, maybe this way will work. And we don't have to go through the trouble of going to the more complicated configuration we were thinking about. Let's just try it this way and see what happens. And it turns out, yes, we actually had twice the frequency deviation and a considerable offset from the original target. And it still worked. Like, we were within the receive filter of the target device. And we were able to replay those signals. Well, replay them. We were able to synthesize new signals from the captured signal that we had captured from the real original key fob. Right. And part of that is just power as well. We were, like, as you saw in the video, I was, like, sat with the great fat on the, I was going to say bonnet. For a while. A hood of my car. And so I was, like, you know, that far away from the receiver, which is in the dash. So, like, I'm so close to it that the power level I was transmitting at is probably going to go through the filter pretty well. Right. Yeah. The closer you are, the more you can get away with in terms of, you know, being off frequency or being out of the pass band of the filter of the receiver. There's nothing particularly subtle or delicate about any of these radios. Yeah. So if it oscillates like a radio and emits like a radio, it's a radio. And that's kind of a big part of the point of what we're doing today is trying to show that you can build radio circuits out of just about anything. Our next scenario is this idea that maybe you're not allowed to even have analog digital converters. Like, we, in our first SDR receiver, I repurposed a microcontroller that had an analog converter. It had an analog to digital converter in it. And an analog to digital converter is generally considered to be the core of any software-defined radio. And I wanted to see if we could build a software-defined radio receiver without an analog to digital converter. Specifically, can we use a GPIO input, a general purpose digital input? So it's just a pin on a microcontroller that detects, you know, whether there's a high voltage or a low voltage. And that's it. It only has one bit of dynamic range. And that we can kind of think about. We can think of a GPIO pin as being a one-bit ADC. And if we do, are we able to actually build a functional software-defined radio out of it? And kind of a real motivation of this, too, is, like, when we did the previous demo with a car, we captured a signal with a HAC-RF. And we kind of said, well, maybe that's cheating a little bit. Maybe we should actually have a demo in which we can build a radio. And use it to capture the key press on the car key. And that's how we could, you know, find the code that we need to transmit. It would be nice to be able to do that without having something like a HAC-RF. So if you've got a HAC-RF, you don't need to build a PLL-switching FSK transmitter. You just use the HAC-RF. Right. Like, motivating the... So but another, you know, getting back to this fictional idea. That analog-to-digital converters are restricted. Like, if you think that's far-fetched in any way, here's something from ITAR that tells us about today export controls on analog-to-digital converters in this country. And you can see that, like, if you look on the right-hand side of the page, you can see 10-bit ADCs are restricted at a certain speed. And 12-bit ADCs are restricted at a certain speed. And so forth. And you'll notice that there is no restriction for 1-bit ADCs. So 1-bit ADCs are totally allowed at any speed. Which is pretty... Until tomorrow. 1-bit ADCs are allowed by ITAR at any speed. So we should be able to implement a 1-bit ADC. And, you know, if you restrict GPIO inputs, like, you restrict all digital electronics. So if any digital electronics work, we should be able to import them. We should be able to improvise an ADC out of a GPIO pin. That's our thinking. So we've made a GPIO pin receiver. And unfortunately, you know, one of the drawbacks of making a GPIO pin receiver is that we need a fairly strong signal that we pump into it. And so we actually decided to salvage an analog radio from something that's readily available. Like a telescreen, for example. And so I made this little circuit that's using a TV tuner. And this is an old analog TV tuner. Like you might pull out of a VCR. We had VCRs in 1983. And so this is not a digital receiver at all. This is just an analog radio tuner that shifts the frequency of a television signal down to a frequency that... That a television is able to decode in an analog or digital way. And I connected this to a GreatFet. And I'm using a GPIO pin on the GreatFet to read the input from that tuner. That analog input. And I was able to do this with just one additional component. So I have the tuner. And I have the GreatFet. And I have one capacitor in there. And this is a circuit diagram. You can see we're picking up 315 megahertz signal from Dominic's car key. And using this TV tuner that we can salvage out of some other equipment. Like a telescreen. And that's getting converted down to about 44 megahertz. We need this one capacitor so that we can AC couple it to the GPIO input on the GreatFet. And the first time I made this work, I actually had a voltage divider there. So I had two additional resistors in the design to bias that GPIO pin. And there were kind of a number of tricks going on in this design. One of them is that we need to bias that GPIO pin. And the reason for that is, like, if you give the GPIO pin a voltage near zero volts, it detects that as low. And if you give it a voltage that's near 3.3 volts, which is its power supply level, it detects that as high. But somewhere in between zero and 3.3 volts, there is this threshold where you can kind of twiddle the voltage by a small amount and flip that bit. But finding that threshold is a little bit tricky business. And so the first time I did it, I, like, played with different resistors to make a little voltage divider to bias it so that that pin would be at about the threshold that it needed to be. But then I realized I could eliminate those two resistors from the design just by using the digital-to-analog chip. So I took the digital-to-analog converter that's built into the microcontroller and used that to produce an arbitrary DC voltage that I used to bias that GPIO pin. And not only does that remove two resistors from the design, but it also gives me a flexible way to tune in software and find just the right threshold. Because that threshold may change over time. It may change with temperature. It may change from one microcontroller to another. It's not guaranteed by the data sheet to be at any particular voltage level. And so it's handy to be able to control that from software and dynamically find that particular threshold that I need. Now, another trick that we're using in this, and this is fundamental to the concept of using a one-bit ADC, is that we're oversampling and decimating. What does that mean? It means, oversampling means we're using a sample rate that is faster than you might expect that you need. And we're decimating, which means we're reducing the sample rate. We're throwing out some samples. But we're doing it in an intelligent way. So here's a little simulation where I have 16 random samples in this stem plot. The first one is zero. The second one is one, and so forth. They're all one-bit samples. They're all one-bit samples. I just have 16 random values. The first step in oversampling and decimating is to then combine some of those samples and reduce the sample rate. And ideally, we use some kind of a good quality low pass filter. But as a kind of crude example, let's just say we average adjacent samples together. So those first two samples, zero and one, we combine those two samples into one sample that has a value that's the average of those two. So it has a value of 0.5. And I'm going to do that with every pair of samples. If I do that, then I turn my sample stream into this in the digital domain. Instead of having zeros and ones, now I have zeros and ones and one-halves. But I have half as many samples. But I've added more dynamic range. There's more nuance to the vertical scale. And I can keep going. I can do this again. I can combine two of these samples. And now I have only four samples left. But out of those original 16. But each one has several different values it can take on. Not just a zero or a one. So we're adding dynamic range by trading our excess sample rate. So the faster we can sample, the more ability we have to actually gain dynamic range. And we gain a bit of dynamic range every time we divide the sample rate in half. And that allows us to take a low dynamic range ADC and turn it into a high dynamic range ADC at a lower rate. Or speed in software. Which means, ultimately, we should be able to make things work with a one-bit ADC like a GPIO pin. Now, interestingly, Dominic, I think, was the first person to point out that not only are we oversampling in this demo, but we are also undersampling. And that may be hard to wrap your head around. But we are, in fact, sampling at a sample rate that is lower than that 44 megahertz output of the TV tuner. We're sampling currently at 20 million samples per second. Which is quite a bit lower than the 44 megahertz intermediate frequency that we have from that TV tuner. And it turns out that that works fine. We were thinking we could crank up our speed and actually sample that GPIO pin faster than that. But it turned out that we didn't need to. So we actually ended up with a demo where we are simultaneously oversampling and undersampling. And I think that's pretty cool. So let's do our demo. All right. I'm going to try and move this. You can't do anything without dropping it. Good luck. Yeah. There you go. All right. All right. These demos, I've broken, like, wires in these demos at least twice in the last 24 hours. So, you know, we'll see how this goes. We have my favorite antenna, which is just a piece of wire stuck into the coax connector on the end of the TV tuner. And I'm going to, let's see, I have to tune the tuner, which was a little bit of, a little bit of configuration. There are some I squared C, there's a little I squared C bus on the tuner. And so we have the great fed actually commanding it to tune to a certain frequency, which I just did. And then what is the other command I do? I don't remember. Logic analyzer. Logic. That's the one I want. We're using this logic analyzer command, which actually takes the state of multiple GPIO pins and throws them into this named pipe right now. But all the other GPIO pins that it talks to are unconnected. So they're all just at zero. And I'm going to run that while I turn on a GNU radio flow graph to actually process that information. And so now what you can see here are the one-bit samples, that top plot that's moving rapidly left to right. Those are just one-bit samples. See, everything is zero or one. And then Dominic is pressing the button. There he goes. On his key fob. And you can see that we're seeing a signal down here in our waterfall plot. If you look at just the one-bit samples, it's kind of hard to see that there's anything different going on. But if you look at the decimated samples, this is after we've down sampled and combined samples together with a filter that allows us to create more dynamic range. Now as he's pushing the button, you can see that sinusoidal stuff, it looks like a real radio signal that we should be able to analyze. And in fact, if we run it through an FSK demodulator, I'll just stop this really quick. And you can see that in the left-hand side of the screen here, you can clearly see the bits that are being transmitted. So sometimes it's low and sometimes it's high. And when the frequency is low, it's transmitting a zero. When the frequency is high, it's transmitting a one or something like that, the other way around perhaps. But we can clearly see the digital bits that are being transmitted sufficient to decode it. And we've now taken a one-capacitor circuit and used it to interface our general purpose microcontroller with a salvaged radio tuner and repurposed it. So instead of just being a TV tuner, it now is able to help us in software demodulate and decode arbitrary radio signals, including the digital signal from Dominic's key fob. All right. So moving on, yeah. So a number of people have asked us recently, we did some work earlier in the year and towards the end of last year, I guess, on direction finding. And a number of people are very interested in being able to track down the source of a radio transmitter. This is here. Amateur radio enthusiasts want to find people who are interfering with their radios, who are people who are broadcasting illegally and so on and so forth. And we're saying here that Big Brother has deployed a pseudo-Doppler technique to kind of do direction finding to track down illegal transmitters. And we have managed to somehow, given that we built it, steal one of these direction finding rigs. And can we do anything nefarious with it in a way that subverts what the authorities are attempting to do? So spoiler, yes. So pseudo-Doppler direction finding is, do you know who we haven't got on this slide? And he sat in the front row is Balan. Oh, yeah. Because that's where I first learned about pseudo-Doppler. So I'm sorry about that. Balan Siva also did some work maybe ten years ago on this. Yeah. Well, he's cited in the talk that is on. There you go. Yeah. If you watch the talk that we're citing, you'll see the citation of his talk. And that's all fine. Apparently. So what you do is you have a set of antennas. And they're spatially separated from each other. And you want to rotate very quickly between them. And using that rotation, what you see is a shift in the phase of the signal, the incoming signal. And that gives you the signal. And that gives you some information about which direction it's coming as you change between them. I'm not going to go into the in-depth of how that works now because that's about as much of it as I really understand. And also you can look up those two talks that I've referenced. But what you need for this is some hardware to rapidly switch antennas. So we built some. Now, this is called Opera Cake. It connects to both HackerRef and GreatFET. And it can be controlled from firmware. So you can do various things with it. You can do pseudo-doppler by attaching a number of antennas and very rapidly switching between those antennas. You can also do things like have an input and output attached. And switch in different kind of filters or other things loop back between the two sides. And just changing between different antennas based on which frequency you're receiving and things like that. That's what we usually use it for. But in our scenario, Big Brother is using it to find where we're transmitting from. And in doing so, what they're looking for is our transmission. And then they're inducing or they're looking for a phase shift as they switch antennas. And so if we're able to somehow inject a phase shift, then that will be a phase shift that they don't expect. And therefore can't compensate for if it's, for example, pseudo-random. Now, what was I going to do? I was going to explain phase shift. That's what I'm going to do. That's what all of these slides were in. So a way to get a, when we talk about phase shift, what we talk about is if you think of a wave. This slide. If you think about it, I drew this in my hotel room because I wanted to better explain this concept. And I'm not sure it's worked. But if you think about a wave traveling down a coax cable as you, the one I've carefully drawn on the paper. If you think about it traveling down. So that it's exposed and becomes a transmitter antenna. The difference in length between these two cables gives us a different section of that wave at the same time. If you inject the same wave into both of these cables simultaneously, what you'll get at the antennas is a slightly different wave based on the length of the cable and the speed at which the signal propagates down them. So sometimes referred to as delay lines. So phase shift is that difference in where we are in the signal. It's in the cycle of the wave relative to another wave. So in this instance what we're doing is we're taking those two cables and we're switching from a shorter cable to a longer cable and with our standard radio input signal coming in. And that's the signal from some arbitrary radio. It doesn't have to be, we're not generating it. We're not creating a specific radio here. What we've got is a radio that we're allowed to transmit with. Or that we are transmitting with. And we are adding this phase shift on top at the end to try and make it hidden from direction finding. And the radio we've chosen is a $4 Bluetooth dongle that I got from eBay. And we just crack the thing open. And as you can see here, we attached a coax cable so that we can hook it up to our radio system. And it's actually on the table at the front. You can get a look at it later. This took three attempts. A couple of tries. A couple of tries. This one I think I did a really good soldering job on it. You can see in the lower right hand corner. I've nicely, you can't see it behind the cable. But I've nicely cut the original antenna trace. And then I've soldered the wire onto it. And then afterwards it didn't work. And we're like, why doesn't it work? And if you look closely. Look really closely where the mouse is right now. You can see Mike melted the corner. Yeah, somehow I just destroyed the chunk. Yeah, just a chunk of it is missing. And so then we went on to round two. Which survived long enough for us to work on this in the lab. Yeah. And then did not survive the journey to Vegas. No. And so thank you to. The third one stayed up. Yeah. Thank you to the badge life folk who at 9 o'clock this morning soldered me another one. With their very precise machinery. And I want to point out that this is. This isn't one of these sophisticated modern Bluetooth chips that knows how to do Bluetooth and FM radio and Wi-Fi and like Bluetooth low energy and all kinds of different protocols. This is like a 10-year-old chip or more. Yeah. That like we were hacking on in the early days of Bluetooth hacking and like the reason we used it was because like what was your first open source contribution? Yeah. One of the pieces of code I'm going to run in a minute in the demo was my first ever open source contribution which was to enable the radio test modes in these dongles. And when we were coming up with this project, Mike was like, do you have any 2.4 gigahertz like hardware kicking around that we can use? Yeah. So we had a bunch of things we can hack on. Just kind of opened a drawer and I was like, these? Because they're so cheap and so have loads of them hanging around. So that's why we picked this thing because it's pretty hackable and things like that. So what we're doing is we're taking the signal that comes out of this and we're using a direction finding technique to try and locate it. And then we're going to enable our delay lines and switching back and forward between two different lengths of cable. And that will produce a facial recognition. And then we're going to be shifting the output that does not affect the signal. It makes no difference to our signal going through, but it does affect the ability to direction find it. I'm not sure I'd say it does not affect our signal, but it depends on the modulation of your original waveform. But if it, like, for example, if it's an amplitude modulation, you should be able to just layer on arbitrary changes to the phase without actually affecting your ability to communicate. So I'm going to play you a video demo of this one. And that's going to be the direction finding demo. Okay. So this is ‑‑ I'm going to pause it a few times. This is just a demo we took on the table in our lab. So this is my direction finding setup here. And you can see I've got, like, four ‑‑ I've got four different 2.4 gigahertz antennas that are vertical. And to support them structurally, we are using a pint glass. Like, everybody needs a glass full of antennas from time to time. And then this is my direction finding rig, like I talked about with Skylar at ShmooCon this year. So I have the opera cake with the HackRF. And I'm using some software on my laptop to do some ‑‑ to run some direction finding. And I'm not finding anything right now. There isn't anything transmitting. But Dominic over here is about to start transmitting with his Bluetooth dongle, which you can see plugged into the USB cable. That little blue blob plugged into the USB extender. That's actually the USB cable. It's actually a little tiny USB to Bluetooth adapter. And that's plugged into his opera cake. Now, his opera cake has four different wires in it. I think you're only using two of them. Yeah. But there are four different lengths of cable. And he has the ability to, from software control, which cable is switched into the path between the Bluetooth dongle and the external antenna. So initially ‑‑ you can press play. Okay. So we're transmitting from the Bluetooth dongle. And we're going to leave the path to be static. So if you pause now, you can see we've got a pretty reasonable ‑‑ this is a polar ‑‑ thank you. A polar plot. And so you can see we've got a pretty reasonable direction from our antenna array to where this thing is transmitting. That's pretty ‑‑ That blue dot, that blue dot is, you know, up to the ‑‑ you know, up and to the right of the center of that plot. And so that's indicating the direction of the transmitter that it's seeing. I'm going to unpause it here. And so what I do is I run a script that just slowly switches back and forth between two paths. Just creating a little phase shift once in a while. I mean once in a while. Like every couple of milliseconds. And you can see it just sends this ‑‑ this becomes sporadic. Like we have such a wide range. Like, oh. Our bearing to our transmitter has gone from being kind of very narrow to being somewhere around 50% of the direction that we're looking in. And so that phase shift means that we now ‑‑ it's now much more hard ‑‑ much more harder? Much more difficult to locate the transmitter than it previously was. So we are able to subvert our own ‑‑ we're able to subvert our own pseudo Doppler direction finding code using our own pseudo Doppler direction finding hardware. And other code that we wrote. So I'm going to call that a win. Okay. Since we can introduce those phase shifts, we thought as a final demo in the last couple of minutes that we have left, what we try and do is put out ‑‑ is do ‑‑ do a phase shift. We're going to do a phase shift key transmission. So what we're going to do is transmit something that is phase shift keyed by ‑‑ not by having a radio that transmits phase shift keyed. We're going to have a clock source and then we're going to change the phase using those ‑‑ using the delay lines on the ‑‑ on the board. So this is a picture of those delay lines. I like to call this the swamp thing. This ‑‑ so I'm just running it again from great FET because it's the microcontroller. I have a round. And it uses GPO pins to rapidly switch which antenna path. Now I'm going to do something that's BPSK. So binary PSK. So I actually only need two of those four paths that I'm using. But essentially what I do is I switch both sides simultaneously and switch in those various lengths. And those lengths are off by half a wavelength from each other. So half a ‑‑ or a multiple of half a wavelength at the frequency that we're using. Now because we're using a Bluetooth connection. We're using a Bluetooth dongle to feed this. Our frequency is 2.4 gigahertz. And we have a ‑‑ we have a little 2.4 gigahertz band pass filter in between the opera cake and the antenna. And that's actually one of the nice things about using 2.4 gigahertz band for this kind of a demo is that you can get readily available low cost and highly effective filters. This technique causes a lot of spectral splatter. It really is not being a very good neighbor on the spectrum. So for example, if you're using a Bluetooth connection. If we're able to filter the output from it before it goes over the air, that helps us be a better neighbor on the spectrum. Yep. And one of the things we're trying to do here is show that we could take one type of radio transmitter and then layer another modulation on top of it to have a covert channel. Regardless of what the modulation of the original system is. We should be able to in some cases actually still use the original system, the original modulation. And then also add this covert channel on top of it that acts like some other type of radio device. If you're looking up the ‑‑ these papers, I highly recommend you Google them rather than clicking on the links on our slides because we put the same link for two different papers here. Oh, yeah. How about that? I just noticed some people taking pictures of the slides. Yeah. I'll try to fix that before we hand our slides to speaker ops. Oops. Okay. So when we add in the phase shift, we're able to then kind of capture it with another radio and look at it in spectrum. And so this is how we work out whether or not our transmitter is working. And in spectrum, let's just do a phase plot at the bottom here. So at the bottom of the screen, what you can see is the phase shift being created. And there are very regular intervals because they are when I have a timer firing on the device. And it fires at regular intervals. And we see a very quick phase jump. We're almost out of time. Yeah. I'm already running the demo. Are you running it already? I am running the demo. Okay. So we are actually now transmitting a binary phase shift keyed signal in the 2.4 gigahertz band. And we were like, what target device could we use that uses 2.4 gigahertz and has binary phase shift keying or QPSK? And we said, hey, Wi-Fi. So find the front couple of rows anywhere near about here. You might be able to pick up a Wi-Fi beacon that we're transmitting. And it says, is this revolting enough for you, I believe. Is the network SSID? I would be really interested if anyone can receive it. Because it's I can't receive it on my phone here. But I could when I ran this in my hotel room like mere hours ago. It turns out doing 2.4 gigahertz Wi-Fi demos at a con is still as bad an idea as it was when we first started doing this. Yeah. But, you know, we're not transmitting at a particularly high power. Right. And there are a lot of different Wi-Fi networks in here that your phone or your laptop can see. But probably some of you, especially those who are sitting close, can actually pick up this Wi-Fi beacon right now. This tends to. This tends to work somewhat better if you're using an iPhone, apparently. Interestingly, we've just had better luck with it this morning for people receiving it on an iPhone. But I'm guessing no one can receive it. Which is incredibly disappointing to me. But it is definitely running. Yeah. Get as close as you can to the transmitter. There. Yes. That's the one. And see if you can pick up a network. There's, yeah, I don't see it on my phone. I see a lot of other networks around those. Maybe somewhere that's a little bit more RF silent for people to try it out later. But, yeah, essentially what we can do is we can take a radio test mode that transmits just a pure carrier wave into this device. We can do binary phase shift keying. And I really do promise if you do binary phase shift keying at 11 megabits, you get a 1 megabit DSSS transmission out. And that can be crafted to be a Wi-Fi beacon. And you should be able to pick this up on your phone. So thank you to all these folks whose work we have built upon. And most of this stuff is built on hardware that we've, hardware designs that are in the great FET repo or the hack RF repo. That's where the opera cake lives. Find us on Twitter. And we will take questions in the hallway off yonder in a couple minutes. Thank you very much. Thank you. Thank you. Thank you.