[00:00.000 --> 00:03.440] A little late. Technical difficulties and all that. [00:04.140 --> 00:08.480] HackRF, you guys hopefully have seen a little bit of. [00:08.480 --> 00:13.060] And if you haven't seen the fancy new enclosure, [00:13.060 --> 00:15.080] here's one. [00:16.160 --> 00:20.200] So, you know, there it is. And there are a few people around here [00:20.200 --> 00:24.300] who have some. And if you back HackRF on Kickstarter, [00:24.300 --> 00:26.740] it's in the mail to you already. [00:26.740 --> 00:31.900] And there's one that people can win. Wireless CTF, right? [00:33.420 --> 00:35.360] Wireless CTF, HackRF. [00:35.360 --> 00:37.100] Somebody can win one, right? [00:37.100 --> 00:40.420] Yeah, do that. [00:43.840 --> 00:47.620] So go out, go forth and win a HackRF. [00:47.840 --> 00:51.420] So this is SDR Tricks with HackRF. I've given this talk once before [00:51.420 --> 00:54.300] at Recon. It's just a short talk. [00:54.300 --> 00:58.460] And the second half of the hour is going to be Jared Boone talking about [00:58.460 --> 01:01.300] the HackRF Portapak, which is super cool. [01:02.500 --> 01:05.320] It was Tau Day at the time that [01:07.240 --> 01:10.620] I gave this talk at Recon. You know, June 28th. [01:10.620 --> 01:14.440] Everybody should know the number Tau. 6.2831853, etc. [01:14.440 --> 01:18.320] Right? Woo! Yeah, old school people [01:18.320 --> 01:22.900] call it 2 Pi. But Tau is the new hotness. Pi is old and busted. [01:22.900 --> 01:26.780] So I actually received for the first time in my life [01:26.960 --> 01:30.680] a happy Tau Day card from Dominic here. [01:31.580 --> 01:35.820] So that was pretty awesome. [01:37.460 --> 01:39.020] So this is [01:39.020 --> 01:42.640] HackRF1 without the swank case. [01:43.060 --> 01:46.820] It's an SDR peripheral that operates from 10 megahertz [01:46.820 --> 01:50.840] to 6 gigahertz officially. Unofficially is [01:50.840 --> 01:54.640] part of what I'm going to talk about today. 20 megahertz bandwidth [01:56.580 --> 01:58.920] and that's a function of the [01:58.920 --> 02:02.980] 20 mega sample per second ADC. And it's a half [02:02.980 --> 02:07.080] duplex software defined radio transceiver. It can transmit and receive [02:07.080 --> 02:10.860] but it can't do both at the same time. And so I'm talking about kind of [02:10.860 --> 02:14.920] the top level capabilities. Like the high level [02:14.920 --> 02:19.120] overview of what the capabilities are. And in this talk I'm going to talk primarily about [02:19.120 --> 02:22.480] getting around these capabilities in various ways. [02:23.220 --> 02:26.880] Sorry, getting around the limitations of these capabilities [02:26.880 --> 02:30.960] in various ways. So just a little bit of an overview [02:30.960 --> 02:35.020] of the hardware design so you can understand what I'm talking about. The architecture [02:35.020 --> 02:38.460] of HackRF. At the antenna on the left [02:39.860 --> 02:43.020] we have signals that are in the range of [02:43.020 --> 02:47.140] 10 megahertz to 6 gigahertz. Actually this slide is really old. Back when we thought [02:47.140 --> 02:51.020] we would only go down to 100 megahertz. But we keep lowering [02:51.020 --> 02:54.720] that lower spec. And [02:54.720 --> 02:59.240] there's a wideband front end that has a mixer in it that converts the frequency [02:59.240 --> 03:03.300] so it shifts the frequency from anywhere in that range [03:03.300 --> 03:06.940] that wide range into the intermediate [03:06.940 --> 03:11.540] frequency range which is the 2.3 to 2.7 gigahertz [03:11.540 --> 03:15.540] actually now it's about 2.15 to 2.75 [03:15.540 --> 03:19.440] gigahertz. But it's right in that 2 gigahertz band [03:19.440 --> 03:23.000] right around 2.5 gigahertz we have an intermediate frequency [03:23.180 --> 03:27.280] and then there's an intermediate frequency transceiver that converts [03:27.280 --> 03:31.340] between the intermediate frequency and baseband [03:31.340 --> 03:35.060] where baseband is the vicinity of 0 hertz. So [03:35.060 --> 03:39.680] we have dual conversion. We convert the frequency once [03:39.680 --> 03:43.780] between RF and IF and then we convert the frequency [03:44.200 --> 03:47.180] a second time between IF and baseband [03:47.620 --> 03:51.720] and then we have an analog to digital converter and everything is digital from there [03:51.720 --> 03:55.940] on out. On the transmit side it's the exact [03:55.940 --> 03:59.800] reverse. Same thing we go digital to [03:59.800 --> 04:03.680] analog baseband around 0 hertz and then it gets converted [04:03.680 --> 04:07.300] to the intermediate frequency and then it gets converted to the RF [04:07.300 --> 04:11.940] which is at whatever you configure it to between 10 megahertz [04:11.940 --> 04:16.080] and 6 gigahertz. So now that you're a little bit familiar with the architecture [04:17.720 --> 04:19.740] the first thing I want to show you [04:19.740 --> 04:24.100] is tapping into the baseband directly. Tapping [04:24.100 --> 04:28.020] into the analog baseband signals. So going back [04:28.020 --> 04:32.080] here what we're doing is bypassing all this radio [04:32.080 --> 04:35.940] stuff and just talking to the [04:35.940 --> 04:40.220] ADC or DAC on this analog baseband connection [04:40.220 --> 04:44.380] directly. So we put a header there. HackRF Jawbreaker [04:44.380 --> 04:48.320] if you have one of the beta units didn't have this little [04:48.320 --> 04:52.080] baseband header but HackRF1 we thought [04:52.080 --> 04:56.140] well it would be nice to add some expansion capabilities [04:56.140 --> 05:00.260] and this is one cool way to do that. So in [05:00.260 --> 05:03.940] this example I'm just plugging in two wires [05:03.940 --> 05:08.300] into the analog to digital converter so that [05:08.300 --> 05:12.520] I can use the HackRF to directly sample some external [05:12.520 --> 05:16.560] electrical signal. And for example I might use something [05:18.520 --> 05:20.300] well I might use something [05:20.300 --> 05:24.260] like a Hot Wheels radar gun. Which is one of my favorite [05:24.260 --> 05:27.540] toys. The Hot Wheels radar gun has [05:29.400 --> 05:32.180] multiple components in it and if you buy one from eBay [05:32.180 --> 05:36.360] it might be broken. But most likely the part that's broken is [05:36.360 --> 05:40.420] that board you see there with the two red controls [05:40.420 --> 05:43.220] on it. It's the control board and LCD [05:43.860 --> 05:48.460] and that's completely separate from the actual radio part. The actual radar [05:48.460 --> 05:52.340] that's within the Hot Wheels radar gun. So if you [05:52.340 --> 05:55.980] want to just use this thing for your own project [05:55.980 --> 06:00.200] you just rip that part off and connect it directly to the radar [06:00.200 --> 06:04.360] with these three leads. All you have to do is get a power supply and you get an analog [06:04.360 --> 06:08.340] baseband radar return signal that you can plug into your oscilloscope [06:08.340 --> 06:11.460] or you can plug it into your HackRF. [06:11.640 --> 06:16.220] And what we get is two channels. We have two ADCs [06:16.940 --> 06:19.700] and each one is a differential [06:20.360 --> 06:23.920] signaling with one volt peak to peak and the [06:23.920 --> 06:28.620] common mode voltage needs to be like around the middle of [06:28.620 --> 06:32.260] the supply voltage. So it's around 1.5 volts [06:32.260 --> 06:36.100] and there's no anti-aliasing filter on there so you have to kind of provide [06:36.100 --> 06:40.240] that on your own if you want. So it's a little bit tricky to interface [06:40.240 --> 06:44.260] with if you don't have much experience with electronics. It's not as easy [06:44.260 --> 06:48.420] to use as say an oscilloscope. But in this particular example [06:48.420 --> 06:52.140] I was able to directly plug in [06:52.140 --> 06:56.080] the Hot Wheels radar gun with nothing other than [06:56.080 --> 07:00.240] just some wire going from the radar gun to the [07:00.240 --> 07:04.280] HackRF baseband header. And I was able [07:04.280 --> 07:08.120] to just like wave my hand around in front of the Hot Wheels [07:08.120 --> 07:11.500] radar gun and I could see like in canoe radio [07:12.500 --> 07:15.540] exactly what I expected to see and [07:15.540 --> 07:19.400] I could measure distances or I could measure speed [07:20.090 --> 07:24.330] very easily. In addition, there's a [07:24.760 --> 07:27.960] direct to digital to analog converter so you could [07:27.960 --> 07:31.960] use the HackRF kind of as a [07:33.820 --> 07:36.040] general purpose function generator [07:36.580 --> 07:41.460] similar to how you could use it as a general purpose oscilloscope. [07:41.460 --> 07:44.520] It's again a little bit tricky to interface with [07:44.520 --> 07:48.840] because it's differential signaling and it puts out a maximum [07:48.840 --> 07:53.020] of about 800 millivolts peak to peak. And again there's no anti-aliasing [07:53.020 --> 07:56.080] filter so you would need to provide that yourself if you were going to design [07:56.240 --> 07:59.620] a circuit to connect to this. In the future [07:59.620 --> 08:04.180] it would be really cool to have, and I kind of started working [08:04.180 --> 08:08.160] on this but it's a ways off probably, it would be really cool [08:08.160 --> 08:12.040] to have a little add-on board for HackRF [08:12.040 --> 08:16.420] that kind of takes care of some of these details for you, adds the filtering [08:16.420 --> 08:19.320] adds like a differential amplifier [08:20.140 --> 08:24.320] so that you could just say for example plug in [08:24.320 --> 08:28.040] an off-the-shelf oscilloscope probe or plug in [08:28.040 --> 08:31.960] or use this thing just like you would use a bench [08:31.960 --> 08:36.080] oscilloscope or function generator kind of all in one. It wouldn't take [08:36.080 --> 08:40.180] very much circuitry. All the complicated stuff is already on [08:40.180 --> 08:42.940] HackRF on the main board. [08:45.360 --> 08:47.840] Which is what this slide is about. [08:48.320 --> 08:52.340] It would just make it a little bit easier to use. And oh, and one thing [08:52.340 --> 08:55.760] the reason I put this slide here is to remind me that [08:56.340 --> 09:00.260] you could interface with an external RF [09:00.260 --> 09:04.400] front end this way. And this is one of the most [09:04.400 --> 09:08.240] exciting possibilities for this kind of expansion [09:08.240 --> 09:12.380] whether you use this baseband expansion board that [09:12.380 --> 09:16.220] may exist in the future or whether you design your own circuit yourself [09:16.220 --> 09:20.500] to plug into the analog baseband header. One of the best [09:20.500 --> 09:24.620] uses for that maybe would be to experiment [09:24.620 --> 09:28.760] with a separate RF section. A separate [09:28.760 --> 09:32.840] radio other than the RF section of HackRF. [09:32.840 --> 09:36.660] If you just want to use HackRF to be the [09:36.660 --> 09:40.580] computer interface to your radio, this would be [09:40.580 --> 09:44.660] an excellent solution. Full duplex. [09:44.660 --> 09:48.080] Now HackRF is half duplex and [09:49.240 --> 09:52.140] but the everything actually [09:52.140 --> 09:55.860] from the USB connector through the microcontroller [09:55.860 --> 09:59.900] into the analog to digital converters and digital to analog converters is [09:59.900 --> 10:03.760] actually full duplex. So from that analog [10:03.760 --> 10:08.300] baseband header to the host computer, all of that [10:08.300 --> 10:11.980] bi-directionally, you could operate in full duplex [10:11.980 --> 10:15.520] mode in theory at reduced sample rates. [10:15.520 --> 10:19.660] And so this is an interesting option if you were to [10:19.660 --> 10:23.460] connect your own radio front end to it that you [10:23.460 --> 10:27.340] could actually use it in full duplex mode or maybe [10:27.340 --> 10:31.740] you'll just put, maybe we'd just add a second RF [10:31.740 --> 10:35.460] section like a transmit only RF section that we'd plug into [10:35.460 --> 10:38.680] the baseband header and then you could use the onboard [10:40.480 --> 10:43.800] RF section for receive or vice versa. [10:45.940 --> 10:48.300] The operating frequency of HackRF [10:48.300 --> 10:51.640] the design, at first we decided [10:52.180 --> 10:55.840] that we wanted something to work from 100MHz to 6GHz [10:55.840 --> 10:59.820] and we weren't sure if we would really meet that goal. But once [10:59.820 --> 11:03.640] we kind of got the design on the drawing board, we thought, hey, we should [11:03.640 --> 11:07.860] probably be able to do 30MHz to 6GHz. And then when [11:07.860 --> 11:11.880] we actually started testing things, it was clear that [11:11.880 --> 11:15.860] it was working pretty well down to about 10MHz. And [11:15.860 --> 11:19.900] at that point, I started experimenting with different components to see if [11:19.900 --> 11:23.440] I could enhance that low frequency behavior [11:23.440 --> 11:28.520] without affecting the high frequency performance adversely. [11:28.520 --> 11:31.820] And I've had quite a bit of success. And [11:31.820 --> 11:36.080] I haven't talked about this much yet, and I haven't [11:36.080 --> 11:39.100] figured out what I can guarantee. But [11:39.640 --> 11:42.760] a little bit of a review before we start [11:42.760 --> 11:46.840] before I show you the results. Remember that we have two different [11:46.840 --> 11:51.020] mixers that are shifting the frequency. And [11:51.020 --> 11:55.300] so the local oscillator [11:55.300 --> 11:58.740] that goes to each mixer is [11:58.740 --> 12:03.160] the amount that the frequency gets shifted. So if we wanted to tune [12:03.160 --> 12:07.160] to 6GHz in the RF, and [12:07.160 --> 12:11.100] our intermediate frequency is 2.5GHz. Well, 6GHz [12:11.100 --> 12:15.160] minus 2.5GHz, that's [12:16.020 --> 12:19.200] 3.5GHz. So we have a [12:19.200 --> 12:23.660] 3.5GHz local oscillator right there. And then [12:23.660 --> 12:27.360] we'll have a 2.5GHz local oscillator right here. Because [12:27.360 --> 12:31.880] that's shifting between 2.5GHz and 0GHz. So [12:31.880 --> 12:34.980] what affects the primary limitation on [12:34.980 --> 12:39.100] what frequencies we can tune to, is the range [12:39.100 --> 12:42.700] of frequencies that we can tune these two local oscillators. [12:43.080 --> 12:47.960] The range that we can tune this one to is only in that 2GHz band. [12:47.960 --> 12:51.040] But the range that we can tune that front-end oscillator, [12:51.900 --> 12:55.460] it's a range from like 85MHz [12:55.460 --> 12:58.980] up to, I think the [12:58.980 --> 13:03.080] data sheet, or the advertisement for the part is something [13:03.080 --> 13:06.360] like 4.somethingGHz, but [13:07.140 --> 13:11.560] it turns out you can actually configure it up to 5.4GHz. [13:11.560 --> 13:15.080] So, theoretically, we can tune this up to [13:15.080 --> 13:19.800] 2.7GHz, and we can tune that up to 5.4GHz, [13:19.800 --> 13:22.800] add those two together, and [13:23.640 --> 13:27.480] what's that, 8.1GHz? So we can configure [13:27.480 --> 13:32.340] it to tune anywhere from 0Hz to 8.1GHz. [13:32.340 --> 13:36.260] It's a really wide range. It doesn't perform well over [13:36.260 --> 13:39.980] that whole range, of course, but that's the range that it can be [13:39.980 --> 13:44.680] configured to. Now, I went ahead and tried this, [13:44.680 --> 13:48.480] and this is a plot showing the maximum, [13:48.480 --> 13:52.420] absolute maximum transmit power on the antenna port [13:52.420 --> 13:56.080] from 0 to 10MHz. So [13:56.080 --> 14:00.560] 10MHz, it's putting out about 15dBm, [14:00.560 --> 14:04.840] and that's our advertised minimum frequency. [14:04.840 --> 14:08.620] But as you can see, it works quite well way [14:08.620 --> 14:12.520] below 10MHz. More like 1MHz is [14:12.520 --> 14:15.840] kind of where it starts taking a dive. And [14:17.500 --> 14:20.700] I've used this, for example, to tune to AM radio [14:20.700 --> 14:24.640] stations, shortwave radio stations. I've literally put a long [14:24.640 --> 14:28.620] piece of wire and just stuffed the end of it into the SMA [14:28.620 --> 14:32.200] connector on a hack RF and listened to radio [14:33.100 --> 14:36.860] Havana, Cuba, shortwave radio [14:36.860 --> 14:40.500] station at 5MHz [14:41.380 --> 14:44.800] at my house in Colorado. I do [14:44.800 --> 14:48.800] live on a mountain, that's true. Although my lab is in a valley. [14:50.700 --> 14:53.080] So here's an extreme [14:53.080 --> 14:56.640] example. I wanted to see what the lowest frequency thing [14:56.640 --> 15:00.280] was that I could pick up with hack RF through the RF port. [15:00.620 --> 15:04.660] So I got a spool of wire and I just [15:04.660 --> 15:08.260] clipped to the leads and plugged that into the RF [15:08.260 --> 15:12.640] port. And... oh, [15:12.640 --> 15:16.800] shoot, I don't have a good screen shot of this. And what I did was [15:16.800 --> 15:20.500] I held it up to a low frequency RFID reader. [15:21.000 --> 15:24.700] And I was able to sniff low frequency RFID [15:24.700 --> 15:28.920] packets. So I know a lot of people were excited when I first announced [15:28.920 --> 15:32.500] that hack RF could go down to 10MHz because they said, oh, [15:32.500 --> 15:37.320] that's now 13.5MHz is in our range. [15:37.320 --> 15:40.740] We can do high frequency RFID. Well, two orders [15:40.740 --> 15:44.540] of magnitude lower in frequency is low frequency [15:44.540 --> 15:48.660] RFID tags operating at 125kHz. [15:48.660 --> 15:52.680] And that is way down by this, the bottom [15:52.680 --> 15:56.740] of the valley on the left, right? And I was [15:56.740 --> 16:01.400] actually able to pick up those RFID tags very easily. [16:01.400 --> 16:04.840] I can't show you the little demo of it because [16:04.840 --> 16:08.680] I'm short on time and my laptop isn't working. So [16:09.580 --> 16:12.180] you'll just have to take my word for it. [16:13.620 --> 16:16.720] What's that? Oh, I won't worry too much about time, but [16:16.720 --> 16:20.800] still, my laptop isn't working. So if anybody wants to [16:20.800 --> 16:25.080] see later one-on-one, I do have on my [16:25.080 --> 16:28.820] laptop like a saved waveform that I can [16:28.820 --> 16:32.860] show you a little replay of this. I just can't put it [16:32.860 --> 16:36.660] up on screen. But I was totally [16:36.660 --> 16:40.880] able to do this just by clipping in a loop of wire to [16:40.880 --> 16:44.820] my RF port, holding the loop of wire up to [16:44.820 --> 16:48.860] an RFID reader and then holding an RFID tag next [16:48.860 --> 16:53.100] to it. I got a very clean signal that I could decode [16:53.100 --> 16:57.560] in software with no problem. Now this is a receive only solution. [16:57.560 --> 17:01.080] I can't spoof a tag. I can't transmit [17:01.080 --> 17:05.080] to the reader because the way low frequency RFID works [17:05.080 --> 17:08.840] is that I would have to be able to modulate [17:08.840 --> 17:12.840] the power of [17:12.840 --> 17:16.800] the signal, the 125 kHz signal going [17:16.800 --> 17:20.760] through the coil of wire that's within the reader. And I don't have enough [17:20.760 --> 17:24.880] output power to do anything like that. If I were going to do [17:24.880 --> 17:28.780] that, I would need some kind of small external active circuit [17:28.780 --> 17:32.860] like a one transistor circuit for example to actually be able [17:32.860 --> 17:36.660] to modulate and spoof a tag. It [17:36.660 --> 17:40.940] could literally be as simple as a one transistor circuit or a one diode [17:40.940 --> 17:44.640] circuit. But I would need some kind of external [17:44.640 --> 17:48.820] circuit to actually spoof a tag. Sniffing tags [17:48.820 --> 17:52.760] though, no problem with just a loop of wire. And even [17:52.760 --> 17:56.820] though it's way down at the edge of [17:57.680 --> 18:01.320] well below the good operating range, [18:01.320 --> 18:04.540] the amount of power that I get [18:04.540 --> 18:08.760] coming in on that direct coupling with this [18:08.760 --> 18:12.760] big loop of wire held right against the reader, it's so much power [18:12.760 --> 18:16.720] that it overcomes the losses that are in the [18:16.720 --> 18:20.980] hack RF receive chain in the [18:20.980 --> 18:24.680] analog section at those very low frequencies. So I thought that was pretty exciting [18:24.680 --> 18:29.080] that I could actually do something way below 1 MHz. [18:30.200 --> 18:32.320] Now I want to show you something about [18:32.320 --> 18:35.740] operating way above 6 GHz. So [18:36.600 --> 18:40.660] the highest frequency test equipment I have in my lab is this [18:40.660 --> 18:44.660] spectrum analyzer that goes up to 7 GHz. I don't [18:44.660 --> 18:48.620] have anything that goes up to 8.1 GHz which is the highest frequency that I can [18:48.620 --> 18:52.740] tune a hack RF to or I can configure it to, but I can at least show you [18:52.740 --> 18:56.660] things up to 7 GHz. So the yellow [18:56.660 --> 19:00.940] line, just look at the yellow trace for a little bit, that's showing the maximum [19:00.940 --> 19:04.860] output power that I'm getting directly out of the RF port [19:04.860 --> 19:08.640] from hack RF tuned to 4 GHz to [19:08.640 --> 19:12.480] 7 GHz. So 4 at the left side to [19:12.480 --> 19:16.420] 7 on the right. And this is the maximum output power in [19:16.420 --> 19:20.260] DBM. Now this little marker here, right there, [19:20.260 --> 19:24.200] that's 6 GHz. So that's the edge of the advertised [19:24.200 --> 19:28.220] operating frequency range. As you can see, [19:28.220 --> 19:33.300] as you go up in frequency, overall the performance declines. [19:33.300 --> 19:36.800] There's a little bit of a hump around 5.5 [19:36.800 --> 19:40.680] GHz, like it gets a little better in the 5 GHz band and then [19:40.780 --> 19:44.620] a little worse. And then just a little bit above 6 GHz, it [19:44.620 --> 19:48.540] starts dropping precipitously. And our output power [19:48.540 --> 19:52.980] up at 7 GHz is barely measurable [19:52.980 --> 19:56.500] with the way I have this spectrum analyzer configured. So it's [19:56.500 --> 20:00.880] not really useful up here. But it certainly could be useful in the low [20:00.880 --> 20:04.920] 6 GHz band, above 6 GHz. [20:04.920 --> 20:08.620] Now, then I did this again [20:09.900 --> 20:13.040] configuring the HackRF in a completely different way. [20:13.040 --> 20:16.660] And that's how I got this blue trace. What I did was [20:16.660 --> 20:20.580] I configured, I basically [20:20.580 --> 20:24.520] bypassed the entire front end mixer. And I sent [20:24.520 --> 20:28.620] the intermediate frequency right out directly [20:28.620 --> 20:33.180] through the front end amplifier to the antenna. [20:33.180 --> 20:36.300] And this is a normal configuration. This is how [20:37.180 --> 20:41.400] we tune to things like around 2.4 GHz, [20:41.400 --> 20:45.240] 2.5 GHz. That's how we normally tune to things in that 2 GHz [20:45.240 --> 20:49.240] band. The intermediate frequency band is by bypassing the front end mixer. [20:49.320 --> 20:53.300] So I bypass the front end mixer and then I look at the output power [20:53.900 --> 20:57.340] maximum output power. I'm really maxing it out as much [20:57.340 --> 21:01.360] as I can. But I'm [21:01.360 --> 21:05.460] looking at the output power as I sweep the intermediate [21:05.460 --> 21:09.820] frequency from 2.15 to [21:09.820 --> 21:13.440] 2.75 GHz. I sweep that frequency [21:13.440 --> 21:17.500] and then I got this blue line in the 4 [21:17.500 --> 21:21.540] to 7 GHz band. So why do we have these big peaks [21:22.400 --> 21:25.360] in this region from here to here [21:25.360 --> 21:29.580] and then from this region from here off beyond my measured [21:29.580 --> 21:33.560] frequency range? It's because they are harmonics of the intermediate [21:33.560 --> 21:37.260] frequency. So this range right here is [21:37.260 --> 21:41.480] twice the intermediate frequency. 2.15 times [21:41.480 --> 21:45.300] 2 is 4.25 GHz and that's where this [21:45.300 --> 21:49.440] blue region starts here. And then [21:49.440 --> 21:53.900] three times that starts here. So this is the second harmonic [21:53.900 --> 21:56.980] and the third harmonic. Now notice that [21:57.700 --> 22:01.200] especially way up here around 6.5 [22:01.200 --> 22:04.720] to 7 GHz, this actually allows us to get [22:04.720 --> 22:08.440] much more output power than we are able to by [22:08.900 --> 22:12.740] properly using the wideband front end and configuring it [22:12.740 --> 22:15.840] to operate like the way you would expect up here. [22:15.840 --> 22:20.900] The question is am I still dumping tons [22:20.900 --> 22:25.420] of power out at 2.4 GHz? Absolutely, I certainly am. [22:25.420 --> 22:29.560] But by exploiting the harmonics, and if you were going to do this [22:29.560 --> 22:32.320] in real life, you would use a filter. You can take [22:32.320 --> 22:37.580] an off-the-shelf external filter that you can plug in [22:37.580 --> 22:41.900] between the hack RF and antenna. You could actually operate at 7 GHz [22:41.900 --> 22:45.540] by filtering out everything below that would include [22:45.540 --> 22:49.320] all that power you are putting out in the 2 GHz band. [22:50.120 --> 22:53.420] It's a pretty dirty trick, but it's [22:53.420 --> 22:56.980] something that can be done. And it's actually not too [22:56.980 --> 23:01.540] uncommon a trick for people who typically build equipment [23:01.540 --> 23:05.160] or use equipment in the many GHz. [23:05.360 --> 23:09.020] So, one thing to note [23:09.020 --> 23:13.400] is that the frequency response is extremely non-flat [23:13.400 --> 23:17.560] of this blue curve, especially note that gigantic peak [23:17.560 --> 23:21.020] around 4.9 GHz. The reason that it is so [23:21.020 --> 23:25.400] non-flat is because I am actually over-driving [23:25.400 --> 23:27.860] the front-end amplifier. [23:28.680 --> 23:33.420] And so, it's just like over-driving a guitar amplifier [23:33.420 --> 23:36.700] and getting that distortion. That distortion [23:37.720 --> 23:40.980] increases the harmonics that you get. So that [23:40.980 --> 23:44.760] when we look at the harmonics, if we are over-driving that front-end amplifier, [23:44.760 --> 23:48.900] we are able to get some extra peaks in those harmonics [23:48.900 --> 23:52.360] at certain frequencies where things just [23:52.760 --> 23:56.860] over-drive the amplifier a little bit more. So that's why we get a really [23:56.860 --> 24:00.820] good peak around 4.9 or 5 GHz. And that's probably [24:00.820 --> 24:04.920] why this is increasing and not decreasing in this [24:04.920 --> 24:09.000] region below 7 GHz. So what this does from 7 to 8.1, I don't [24:09.000 --> 24:13.040] know, but what I would expect is that [24:13.040 --> 24:16.760] the yellow curve drops off and becomes [24:16.760 --> 24:20.480] totally unusable if it's not already. And that the blue curve [24:20.480 --> 24:23.800] probably goes up and down a little bit and eventually [24:24.560 --> 24:28.320] maybe traces something similar to this curve, but [24:28.320 --> 24:32.800] less so. So that's kind of a dirty trick you can use [24:32.800 --> 24:37.220] to do some fun things at very high frequencies. [24:37.700 --> 24:40.740] And one [24:40.740 --> 24:44.640] other thing I wanted to note, I talked a little bit about kind of overcoming [24:44.640 --> 24:48.480] the limitations of the operating frequency range. I talked about overcoming [24:48.480 --> 24:52.080] the limitations of half-duplex if you use that [24:52.080 --> 24:56.480] baseband header. But another thing I want to note is that theoretically you could [24:56.480 --> 25:00.600] overcome limitations of the sample rate. [25:00.840 --> 25:04.260] We have a sampler that is specced [25:04.260 --> 25:08.660] to run up to 22 MS per second, but we always figured [25:08.660 --> 25:12.460] it was wishful thinking that we'd just barely get up to 20 MHz [25:12.460 --> 25:17.400] or 20 MS per second on our USB interface. [25:17.400 --> 25:20.640] So as it turns out, at least on some [25:20.640 --> 25:24.860] USB host controllers we can actually exceed that. Like on my laptop [25:24.860 --> 25:28.480] I can reliably run at a maximum sample rate [25:28.480 --> 25:32.660] of 21.5 MS per second. So just a little bit higher [25:32.660 --> 25:36.800] than 20 million samples per second. Which is 43 MB [25:36.800 --> 25:40.660] per second going over USB. That's a lot to go [25:40.660 --> 25:44.640] over high speed USB. I've actually never seen any other USB device [25:44.640 --> 25:49.280] go that fast. Except for super speed USB devices of course. [25:49.560 --> 25:52.840] And additionally [25:52.840 --> 25:56.600] if you were to do processing on the ARM instead [25:56.600 --> 26:00.560] of on the host computer and not [26:00.560 --> 26:04.700] worry about the limitation of USB, you might even be able to go a little [26:04.700 --> 26:07.800] bit faster. And if you want to learn about [26:07.800 --> 26:11.800] running code on the ARM, stick around for the next half hour [26:11.800 --> 26:15.440] to listen to Jared. And [26:16.920 --> 26:19.720] there is a little, there is some header [26:19.720 --> 26:23.940] there's an extra header that you can install on HackRF1 that gives you [26:23.940 --> 26:27.800] direct access to pins on the CPLD which is [26:27.800 --> 26:32.240] just some little logic glue between the ARM and the ADCDAC. [26:32.240 --> 26:35.900] So you could completely bypass the ARM and [26:35.900 --> 26:39.960] stream your samples in and out of those CPLD pins like if you [26:39.960 --> 26:43.920] had an external FPGA board or something like that. And you might even [26:43.920 --> 26:47.400] be able to get a little bit more sample rate out that way. [26:47.600 --> 26:52.160] The ADCDAC chip is spec to run at 22 million [26:52.160 --> 26:55.900] samples per second. But I believe it can be overclocked [26:55.900 --> 27:00.520] in many cases. And it can also be replaced with a [27:00.520 --> 27:03.580] pin compatible replacement chip that runs up to [27:03.580 --> 27:07.480] I think 40 mega samples or 60 mega samples. I'm pretty sure [27:07.480 --> 27:11.520] it's just the same chip that they just bin. And so [27:11.520 --> 27:15.700] the ones that they sell as 22 mega samples maybe didn't test as very well [27:15.700 --> 27:19.180] at 40. But they probably operate somewhat faster than [27:19.180 --> 27:23.560] 22 in most cases or can. And additionally there's an analog [27:23.560 --> 27:27.660] baseband filter in the intermediate frequency transceiver [27:27.660 --> 27:32.180] that can be configured to a maximum of about 30 megahertz. [27:32.180 --> 27:36.240] So that's kind of the limiting factor at that point if you kind of use those [27:36.240 --> 27:39.180] tricks to bypass USB and bypass the arm [27:40.660 --> 27:44.180] and at the extreme actually replace that ADCDAC [27:44.700 --> 27:47.960] chip with a faster one. Your limiting factor would be that [27:47.960 --> 27:52.800] baseband filter that gets you up to about 30 megahertz instead of 20 megahertz. [27:53.120 --> 27:56.220] And that's SDR tricks with HackRF. Thanks for listening. [27:56.220 --> 27:59.940] And I hope you'll stick around to hear Jared talk about the HackRF PortaPak. [27:59.940 --> 28:00.680] Thank you.