1 00:00:00,000 --> 00:00:09,840 Hi, everyone. I'm Mike Calabro. I work at Booz Allen out in Los Angeles, where we run a digital communications lab. 2 00:00:10,060 --> 00:00:15,820 We focus a lot on communications and actually navigation and timing signals as well. 3 00:00:17,020 --> 00:00:26,060 We use software-defined radios as rapid prototyping platforms. There are a lot of great development frameworks out there. 4 00:00:27,340 --> 00:00:30,880 I've used most of them. I shouldn't say all, because I'm sure there's one I haven't heard of. 5 00:00:32,860 --> 00:00:37,600 In general, software-defined radio, I think, has done a really good job of commoditizing digital communications. 6 00:00:37,900 --> 00:00:43,100 It lets you be a really smart software engineer or a ham guy. 7 00:00:44,680 --> 00:00:52,060 With very little formal education, plug a system into your laptop and download a new radio for free. 8 00:00:52,480 --> 00:00:56,040 One of the many pre-canned applications, for example, is a really cool... 9 00:00:56,060 --> 00:01:00,900 cool ADS-B demo that you can hook up an antenna to your laptop and observe all... 10 00:01:00,900 --> 00:01:03,160 kind of get an air picture of what's around you. 11 00:01:05,260 --> 00:01:06,460 And that's great. 12 00:01:07,460 --> 00:01:14,260 For a lot of what we do, building deployable systems, building systems that interact with real commercial systems, 13 00:01:15,840 --> 00:01:18,860 if you're just doing that, you're leaving a lot of performance on the table. 14 00:01:19,300 --> 00:01:25,140 And so the goal of this talk is to hopefully streamline some of your developments a little bit, 15 00:01:26,060 --> 00:01:31,760 ask some questions, point you in the right direction as to where you can start immediately debugging some common issues, 16 00:01:33,080 --> 00:01:39,720 and take some of that performance back off the table and put it back into your system so that maybe you can use some of these 17 00:01:39,720 --> 00:01:44,440 software-defined radios integrated with GNU Radio or MATLAB and Simulink 18 00:01:46,000 --> 00:01:50,540 for some more interesting and more demanding applications. 19 00:01:52,160 --> 00:01:55,680 So we'll come back to this picture towards the end of the briefing, but 20 00:01:55,680 --> 00:01:56,040 So we'll come back to this picture towards the end of the briefing, but 21 00:01:56,040 --> 00:02:04,000 this is a really good example of a problem I was working on a couple weeks ago where we had this signal of interest that this is what we're interested in processing. 22 00:02:05,320 --> 00:02:05,880 this is what we're interested in processing. 23 00:02:06,020 --> 00:02:12,760 And we just saw this on the side, and spoiler, it shouldn't be there, or it shouldn't look like that. 24 00:02:13,120 --> 00:02:19,560 And so by the end, hopefully, you'll have some tools to help solve this problem yourself. 25 00:02:20,580 --> 00:02:21,160 All right. 26 00:02:21,580 --> 00:02:26,020 So just to level set everybody, talk a little bit about what exactly we're doing. 27 00:02:26,040 --> 00:02:32,760 So what exactly a software-defined radio system is, it's much more than just the thing you plug into your computer and then into a development framework. 28 00:02:33,080 --> 00:02:37,340 So fundamentally, we know that there's an RF signal propagating through some medium. 29 00:02:37,500 --> 00:02:39,560 It can be free space. It doesn't have to be. 30 00:02:39,720 --> 00:02:43,220 It could be water. It could be a building. It could be propagating as a ground wave. 31 00:02:44,460 --> 00:02:49,240 All of those things come with unique bonus characteristics that make processing the signal interesting. 32 00:02:51,280 --> 00:02:53,440 But common platforms like the USRP, 33 00:02:55,580 --> 00:02:56,020 common platforms like the USRP, 34 00:02:56,040 --> 00:02:57,100 in the RTL-SDR, 35 00:02:57,760 --> 00:03:00,880 they all have different architectures for how they implement the RF front end. 36 00:03:02,720 --> 00:03:07,760 And fundamentally, with all that's doing, mixing down the baseband into an ADC that's digitizing your signal, 37 00:03:07,780 --> 00:03:13,500 the ADC has a dynamic range, something that will come back to you and is very important for optimizing the performance of your application. 38 00:03:14,360 --> 00:03:16,640 There may be some filtering and decimation that happens afterwards. 39 00:03:16,760 --> 00:03:18,220 And then, of course, the baseband processing. 40 00:03:18,420 --> 00:03:22,900 So the baseband processing is what you're doing in GNU Radio when you're building your flow graph. 41 00:03:24,560 --> 00:03:26,020 Modulation, demodulation, encoding, decoding. 42 00:03:26,040 --> 00:03:33,860 Eventually, maybe generating messages that you might pass up to Wireshark or some other waveform-specific processing. 43 00:03:35,160 --> 00:03:42,580 So the older architecture of implementing these front ends on the first gen of software-defined radios that really made their way out into academia 44 00:03:42,580 --> 00:03:48,240 were these RF daughterboards that, you know, they had relatively flat performance over some frequency range. 45 00:03:48,480 --> 00:03:54,560 And if you wanted to process an HF signal after processing Wi-Fi, you had to swap out the daughterboard to one that was 46 00:03:54,560 --> 00:03:56,840 specifically tuned for that frequency range. 47 00:03:58,400 --> 00:04:03,720 Nowadays, what you're getting into with the latest generations of the EDIS radios are these RF integrated circuits. 48 00:04:04,080 --> 00:04:05,380 The Blade RF also uses one. 49 00:04:05,460 --> 00:04:08,600 So there are two main manufacturers, Analog Devices and Lime Microsystems, 50 00:04:09,100 --> 00:04:18,940 both of which have done a really cool job of consolidating a board that was maybe about this big into an integrated circuit that does gain, does filtering. 51 00:04:19,640 --> 00:04:23,160 The Analog Devices chip actually has the ADC integrated into the RFIC. 52 00:04:25,640 --> 00:04:35,340 And that RFIC is capable of being fed directly into an FPGA or DSP, and then if you want to, the host, which is typically your laptop or a desktop PC. 53 00:04:36,040 --> 00:04:38,860 Then you have this third class of devices like the RTL-SDR. 54 00:04:39,440 --> 00:04:42,940 These are really at the entry level of software-defined radio hardware platforms. 55 00:04:43,820 --> 00:04:46,400 They weren't designed to be software-defined radios. 56 00:04:46,460 --> 00:04:54,240 The RTLs, for example, was a DVPT, digital video broadcast for terrestrial TV signals. 57 00:04:56,660 --> 00:05:01,260 That someone figured out that, hey, I can enable this developer mode and get the raw IQ out of it, 58 00:05:01,360 --> 00:05:07,360 and I'll just feed that IQ into a host and see what else I can see. 59 00:05:07,540 --> 00:05:16,180 So while these were designed for signal processing and have relatively flat performance characteristics over all of the bands they're designed to be operated on, 60 00:05:16,300 --> 00:05:17,280 this one does not. 61 00:05:18,000 --> 00:05:22,780 And so you'll see all kinds of interesting things if you try and tune outside the TV bands, 62 00:05:22,780 --> 00:05:24,460 and just weird artifacts. 63 00:05:24,800 --> 00:05:27,800 It does, however, have an AGC, an automatic gain control. 64 00:05:28,460 --> 00:05:33,240 The two USRPs here do not have AGCs integrated onto the boards. 65 00:05:35,400 --> 00:05:42,620 And that has an important implication for maximizing the performance of the ADC, which we'll talk about in a minute. 66 00:05:44,280 --> 00:05:50,460 All right, so this is the favorite thing I like to do whenever I get a new software-defined radio hardware platform, 67 00:05:50,660 --> 00:05:51,660 is break open the box. 68 00:05:52,780 --> 00:05:56,060 Figure out what all the chips are on the circuit board. 69 00:05:57,180 --> 00:06:00,300 Yes, sometimes there are schematics published, but even if you read the schematic, 70 00:06:02,720 --> 00:06:04,500 sometimes they'll just give you the family of chips. 71 00:06:04,660 --> 00:06:06,100 So the USRP is a good example of that. 72 00:06:06,180 --> 00:06:09,560 If you look at the schematic and you Google the ADC on it, 73 00:06:10,320 --> 00:06:14,900 a TI data sheet pops up with seven families of specific chips that it might be, 74 00:06:15,000 --> 00:06:17,400 and you have to know a little bit more about the system to narrow it down. 75 00:06:17,460 --> 00:06:19,920 It's much easier just to read the chip number off the board. 76 00:06:21,740 --> 00:06:22,760 And the takeaway is, 77 00:06:22,780 --> 00:06:27,140 each one of these components that processes the RF signal 78 00:06:27,140 --> 00:06:29,560 has some kind of performance curve versus frequency. 79 00:06:30,120 --> 00:06:31,100 Ideally, it's flat. 80 00:06:31,660 --> 00:06:32,660 Typically, it's not. 81 00:06:32,880 --> 00:06:35,220 And even, as we'll show for the USRP later, 82 00:06:36,860 --> 00:06:38,940 in the amplifiers the USRP uses, 83 00:06:39,220 --> 00:06:42,600 it's got a pretty monotonically decreasing gain curve. 84 00:06:42,760 --> 00:06:47,320 So you can set your gain to 31, but you are probably not getting 31 dB of gain. 85 00:06:49,580 --> 00:06:50,300 All right. 86 00:06:52,100 --> 00:06:53,560 So talking about hardware now. 87 00:06:54,240 --> 00:06:56,520 Talk will be broken up into three main parts. 88 00:06:57,080 --> 00:06:58,480 Hardware, the development platforms, 89 00:06:58,700 --> 00:07:02,940 and then some specific case studies where we walk through some examples 90 00:07:02,940 --> 00:07:07,960 of work that I've done and seen and how we solve some of the challenges. 91 00:07:08,140 --> 00:07:13,040 So with hardware, how do you zoom in on your signal of interest? 92 00:07:13,520 --> 00:07:15,600 So you have an idea of something that you want to collect. 93 00:07:16,040 --> 00:07:17,220 What do you need to know about it? 94 00:07:17,260 --> 00:07:18,140 Do you need to know where it is? 95 00:07:18,320 --> 00:07:19,600 How do you find out about it? 96 00:07:19,600 --> 00:07:22,960 The RF front end and important parameters that drive its performance, 97 00:07:23,160 --> 00:07:25,620 its gain, noise figure, is it doing any filtering for you? 98 00:07:26,080 --> 00:07:27,800 Is there a way to optimize that filtering? 99 00:07:27,980 --> 00:07:28,720 Sometimes there is. 100 00:07:29,300 --> 00:07:30,740 And then the baseband processor, 101 00:07:32,140 --> 00:07:36,300 which that can be implemented on some combination of the FPGA DSP 102 00:07:36,300 --> 00:07:41,160 that is typically part of the software-defined radios hardware platform, 103 00:07:41,340 --> 00:07:43,980 or it might be implemented completely on the laptop. 104 00:07:47,280 --> 00:07:48,320 So typically, 105 00:07:49,720 --> 00:07:50,940 boxes like the USRP, 106 00:07:51,360 --> 00:07:53,660 there's room on the FPGA for your own code, 107 00:07:53,740 --> 00:07:55,580 but most people don't know how to use VHDL, 108 00:07:56,620 --> 00:07:58,020 or code VHDL, right? 109 00:07:58,120 --> 00:08:01,340 You might be a comm systems engineer or a software person, 110 00:08:01,880 --> 00:08:05,660 and you may not have the time or the inclination to go learn how to program that FPGA. 111 00:08:06,300 --> 00:08:09,240 There's a really cool effort out of Edis Research right now called RFNOC, 112 00:08:09,300 --> 00:08:10,160 RF Network on a Chip, 113 00:08:11,400 --> 00:08:16,160 where they've developed an interface to go back to the FPGA 114 00:08:16,160 --> 00:08:18,240 and some pre-canned logic packages, 115 00:08:18,320 --> 00:08:21,980 for example, they have an FFT and a tuner 116 00:08:21,980 --> 00:08:24,580 that let you actually send samples back to the FPGA 117 00:08:24,580 --> 00:08:27,160 for really fast processing and then take those samples back. 118 00:08:27,640 --> 00:08:30,960 Right now, most of the interface is just one way in GNU Radio. 119 00:08:31,100 --> 00:08:31,940 You just have an output port, 120 00:08:32,060 --> 00:08:34,760 and it's whatever you can do, whatever you can process, 121 00:08:36,260 --> 00:08:39,640 and how fast you can process it determines what you're capable of achieving. 122 00:08:41,220 --> 00:08:44,020 So if you have a background in digital communications, 123 00:08:44,140 --> 00:08:45,900 you may recognize the link equation. 124 00:08:46,360 --> 00:08:47,900 It's a pretty generic form of it. 125 00:08:50,560 --> 00:08:53,280 The performance of a digital comm system is typically spec'd 126 00:08:53,280 --> 00:08:56,280 in terms of the signal-to-noise ratio of energy per bit to noise. 127 00:08:59,320 --> 00:09:01,200 It's great from a theoretical perspective, 128 00:09:01,520 --> 00:09:05,560 and I highly recommend that when you're trying to attack a specific signal, 129 00:09:05,680 --> 00:09:11,000 you do this out in Excel and figure out maybe what you think you should be seeing. 130 00:09:11,220 --> 00:09:13,700 But you very rarely know all the parameters of this, 131 00:09:13,780 --> 00:09:15,700 especially when you're collecting against a third-party target 132 00:09:15,700 --> 00:09:16,860 where you don't control the transmitter. 133 00:09:16,860 --> 00:09:19,220 The other important thing is that... 134 00:09:19,840 --> 00:09:22,320 So, you know, thermal noise floor, super low, right? 135 00:09:23,080 --> 00:09:24,940 Maybe you're in a band where there's atmospheric noise, 136 00:09:25,000 --> 00:09:27,080 so the noise floor is closer to 120 dBm. 137 00:09:29,700 --> 00:09:31,460 But none of that really matters. 138 00:09:31,500 --> 00:09:32,860 What matters is your ADC sensitivity. 139 00:09:33,220 --> 00:09:36,980 So if you are familiar with the USRP N210, 140 00:09:37,560 --> 00:09:41,120 you know, they advertise, depending on where you look, 141 00:09:41,220 --> 00:09:43,980 minus 10 dB to plus 10 dB max input power 142 00:09:43,980 --> 00:09:46,840 and minus 85 dB maximum input power. 143 00:09:46,840 --> 00:09:47,540 So that's the sensitivity level. 144 00:09:47,700 --> 00:09:50,420 So what that means is that if your signal is below that level, 145 00:09:50,540 --> 00:09:51,140 you won't see it. 146 00:09:51,460 --> 00:09:54,860 So an example of a signal that should, you know, 147 00:09:54,900 --> 00:09:57,100 everyone processes probably almost every single day 148 00:09:57,100 --> 00:09:58,980 that falls below that level is the GPS signal 149 00:09:58,980 --> 00:10:03,220 that comes in at around, I believe it's minus 137 dBm. 150 00:10:05,120 --> 00:10:07,580 So immediately you need some kind of external amplification 151 00:10:07,580 --> 00:10:09,600 if you want to process it with the USRP. 152 00:10:11,460 --> 00:10:14,360 And then there are other consequences of it. 153 00:10:14,460 --> 00:10:16,080 So, for example, if your signal level is hovering 154 00:10:16,840 --> 00:10:18,400 at 80 dB, your small signal, 155 00:10:19,740 --> 00:10:22,040 if there's a signal in an adjacent band 156 00:10:23,860 --> 00:10:26,280 that is also being processed by the ADC, 157 00:10:26,400 --> 00:10:27,760 your signal is going to get squished 158 00:10:27,760 --> 00:10:30,160 and won't be properly quantized. 159 00:10:30,300 --> 00:10:32,960 So it's important that you amplify the band of interest 160 00:10:32,960 --> 00:10:35,800 to get into that really sweet blue spot of the ADC. 161 00:10:35,920 --> 00:10:40,520 And this is going to be different for every hardware platform. 162 00:10:40,660 --> 00:10:43,220 It's also going to be different for different sampling rates of the ADC. 163 00:10:43,340 --> 00:10:46,820 So what you'll find if you look up the USRP N210, 164 00:10:46,840 --> 00:10:49,660 ADC is that it's a family of parts, 165 00:10:49,820 --> 00:10:53,660 and they have, there's a 150-megasample ADC, 166 00:10:53,680 --> 00:10:55,340 there's a 100-megasample ADC, 167 00:10:55,360 --> 00:10:56,820 there's a 60-megasample ADC, 168 00:10:56,820 --> 00:10:58,580 and they all have different performance curves, 169 00:11:00,700 --> 00:11:02,040 which can impact that. 170 00:11:03,180 --> 00:11:05,440 So, let's see, things that you can do 171 00:11:05,440 --> 00:11:06,880 when you're building a receiver to fix this, 172 00:11:07,120 --> 00:11:10,460 the easiest way, best thing you can do 173 00:11:10,460 --> 00:11:11,520 is external amplification. 174 00:11:11,840 --> 00:11:13,820 Depending on the frequency range you're working in, 175 00:11:13,840 --> 00:11:15,320 you can usually get some nice amplifiers. 176 00:11:16,280 --> 00:11:21,440 For, you know, maybe 50 bucks to boost your signal. 177 00:11:23,120 --> 00:11:26,240 So this is the same thing for the N210 that I did for the RTL, 178 00:11:26,320 --> 00:11:27,460 calling out the key components. 179 00:11:28,860 --> 00:11:30,940 The ones that you probably care most about 180 00:11:30,940 --> 00:11:32,640 are those two amplifiers on the daughterboard. 181 00:11:32,940 --> 00:11:34,440 This is the SPX daughterboard. 182 00:11:35,920 --> 00:11:39,120 And this is an example of why this matters. 183 00:11:39,220 --> 00:11:41,240 So this is the noise figure over frequency, 184 00:11:41,560 --> 00:11:43,120 and this is the gain over frequency. 185 00:11:43,120 --> 00:11:45,800 And this is the frequency 186 00:11:45,800 --> 00:11:48,700 that the SPX is spec'd for operation over. 187 00:11:48,900 --> 00:11:50,180 So what you can see here 188 00:11:50,180 --> 00:11:52,020 is that you can have a 4 dB gain, 189 00:11:52,260 --> 00:11:54,400 4 dB deviation 190 00:11:55,240 --> 00:11:57,940 on up to two amplifiers in your processing chain 191 00:11:57,940 --> 00:11:59,920 if you're trying to use them and expecting flat performance. 192 00:12:00,400 --> 00:12:04,060 So what does it mean when you set the gain value 193 00:12:04,060 --> 00:12:11,080 in the properties of the USRP source, right? 194 00:12:11,180 --> 00:12:12,880 So you're trying to tune this gain. 195 00:12:14,480 --> 00:12:17,460 And it may not correspond one-to-one with what you think it is. 196 00:12:17,520 --> 00:12:20,140 The good thing is that they do have this really low noise figure, 197 00:12:20,320 --> 00:12:20,840 which is great. 198 00:12:22,460 --> 00:12:24,120 But you might consider 199 00:12:24,120 --> 00:12:27,120 adding additional amplification in front of it. 200 00:12:27,160 --> 00:12:29,340 The other thing to point out is this FPGA. 201 00:12:29,560 --> 00:12:33,840 So there is some room on the FPGA for your custom code. 202 00:12:34,120 --> 00:12:35,600 And, you know, with RFNOC, 203 00:12:35,720 --> 00:12:37,840 and I personally use MATLAB and Simulink 204 00:12:38,660 --> 00:12:39,880 as a development platform 205 00:12:39,880 --> 00:12:43,100 and have had some great success with that. 206 00:12:43,120 --> 00:12:43,880 But with their code synthesis 207 00:12:43,880 --> 00:12:45,820 and putting code onto that FPGA, 208 00:12:47,240 --> 00:12:50,360 you know, you can really save your host processing, 209 00:12:50,500 --> 00:12:52,040 which I think is the next thing I'm going to talk about. 210 00:12:52,300 --> 00:12:55,560 So the pipe is always big enough, right? 211 00:12:55,640 --> 00:12:57,260 The thing that you plug into your computer, 212 00:12:57,400 --> 00:12:59,920 whether it be USB 3.0, 2.0, or your gigabit Ethernet, 213 00:13:00,680 --> 00:13:03,960 there are very few signal processing applications 214 00:13:03,960 --> 00:13:06,740 that won't fit over those interfaces. 215 00:13:08,360 --> 00:13:09,580 You're processing challenged. 216 00:13:09,960 --> 00:13:12,900 So how many samples per second can you process? 217 00:13:13,120 --> 00:13:14,920 Or if you're not looking for real-time processing, 218 00:13:15,180 --> 00:13:16,960 how many samples per second can you store in memory 219 00:13:16,960 --> 00:13:18,400 before you overflow your memory buffer? 220 00:13:18,700 --> 00:13:20,800 And it's never as many as you'd like it to be. 221 00:13:22,120 --> 00:13:23,920 So from my experience, 222 00:13:24,040 --> 00:13:25,560 very challenging requirements to meet 223 00:13:25,560 --> 00:13:27,960 with these plug-and-play software-defined 224 00:13:29,080 --> 00:13:31,020 radio-to-host interface architectures 225 00:13:31,020 --> 00:13:32,660 include latency requirements. 226 00:13:32,960 --> 00:13:34,660 So if I need to transmit on a time slot 227 00:13:36,160 --> 00:13:38,080 and meet some guard interval, 228 00:13:38,700 --> 00:13:39,940 frequency hopping applications, 229 00:13:41,320 --> 00:13:42,320 wideband spread spectrum, 230 00:13:43,120 --> 00:13:45,920 the signal of interest actually is only maybe a megahertz wide, 231 00:13:46,000 --> 00:13:47,300 but it's spread over 20 megahertz. 232 00:13:48,600 --> 00:13:50,300 And then TDD and FTD timing, 233 00:13:50,400 --> 00:13:52,980 where the band changes from uplink to downlink. 234 00:13:53,020 --> 00:13:55,340 Some of those have very challenging requirements to meet. 235 00:13:55,480 --> 00:13:57,780 And how do you schedule a transmit time? 236 00:13:58,960 --> 00:14:03,540 It's not really possible to do reliably 237 00:14:03,540 --> 00:14:05,980 without getting into this FPGA. 238 00:14:08,240 --> 00:14:11,100 So I already talked a little bit about RFNOC. 239 00:14:11,880 --> 00:14:14,200 And, you know, before, this was the old, 240 00:14:14,280 --> 00:14:15,320 and this is the new. 241 00:14:16,820 --> 00:14:18,600 To my knowledge, they are only, 242 00:14:18,820 --> 00:14:22,100 this is specific to EDIS and their USRPs. 243 00:14:23,000 --> 00:14:25,560 It has just started beta, 244 00:14:25,680 --> 00:14:28,000 so it is, you know, open source. 245 00:14:28,900 --> 00:14:31,000 So you can go participate in it right now, 246 00:14:31,080 --> 00:14:32,140 but what you can do with it is limited. 247 00:14:32,380 --> 00:14:34,340 But I really hope it takes off 248 00:14:34,340 --> 00:14:36,160 and becomes adopted by the community, 249 00:14:36,240 --> 00:14:37,680 because I think it would be really powerful 250 00:14:37,680 --> 00:14:40,340 to have an accessible library 251 00:14:41,100 --> 00:14:42,360 to deploy to these FPGAs 252 00:14:43,480 --> 00:14:46,140 and, you know, make that part of software-defined radio 253 00:14:46,140 --> 00:14:47,240 accessible to everybody. 254 00:14:51,100 --> 00:14:51,720 All right. 255 00:14:51,860 --> 00:14:53,040 So development platforms 256 00:14:53,040 --> 00:14:55,900 and some application-specific stuff. 257 00:14:56,240 --> 00:14:58,500 So there are three main development platforms 258 00:14:58,500 --> 00:14:59,160 that I'm aware of. 259 00:14:59,220 --> 00:15:01,480 GNU Radio, MATLAB, and this thing called RedHawk. 260 00:15:02,480 --> 00:15:04,640 So I think most people here are familiar with GNU Radio. 261 00:15:04,820 --> 00:15:05,760 You know, it's free, open source, 262 00:15:05,980 --> 00:15:07,500 supports a ton of hardware. 263 00:15:09,340 --> 00:15:10,400 RFNOC is coming along. 264 00:15:11,100 --> 00:15:12,300 It integrates directly into it. 265 00:15:13,900 --> 00:15:16,700 My one, I guess, bone to pick with it 266 00:15:16,700 --> 00:15:18,180 is other hardware support 267 00:15:18,180 --> 00:15:20,760 and some of the consistency I've seen in the blocks. 268 00:15:20,880 --> 00:15:23,200 So, for example, you know, 269 00:15:23,200 --> 00:15:25,240 one block decimation might be specified as a rate, 270 00:15:25,320 --> 00:15:26,460 and in another one it might be a factor. 271 00:15:27,060 --> 00:15:30,100 So just consistent nomenclature is important 272 00:15:30,100 --> 00:15:32,460 when you're trying to develop things that you might deploy. 273 00:15:34,280 --> 00:15:36,340 And then what I mean by other hardware is, 274 00:15:37,140 --> 00:15:39,800 you know, integrating into TI DSP chips 275 00:15:39,800 --> 00:15:44,680 or various sensor interfaces or APIs. 276 00:15:45,020 --> 00:15:45,960 And if, you know, right now, 277 00:15:45,980 --> 00:15:47,680 if someone has the interest and the time 278 00:15:47,680 --> 00:15:49,980 to write that interface, it gets written. 279 00:15:50,040 --> 00:15:52,740 And if not, you know, you kind of got to do it yourself. 280 00:15:54,360 --> 00:15:56,080 MATLAB, you know, it is known 281 00:15:56,080 --> 00:15:57,660 for being an expensive commercial license, 282 00:15:57,760 --> 00:16:00,200 but what many people don't know is that for home use, 283 00:16:01,400 --> 00:16:05,360 for, I think, about $130 plus $30 per toolbox, 284 00:16:05,660 --> 00:16:08,940 you know, you too can have the full professional capability 285 00:16:08,940 --> 00:16:11,940 of MATLAB and their various hardware support packages. 286 00:16:12,580 --> 00:16:14,100 I am a fan of its code synthesis. 287 00:16:14,280 --> 00:16:15,180 I know not everyone is. 288 00:16:16,560 --> 00:16:17,840 But I'll show an example later 289 00:16:17,840 --> 00:16:19,960 where we were able to do something very simple 290 00:16:20,580 --> 00:16:22,160 to the FPGA on the N210 291 00:16:22,580 --> 00:16:24,600 with that code synthesis capability that, 292 00:16:26,120 --> 00:16:27,680 you know, it solved our problem. 293 00:16:27,820 --> 00:16:29,680 And before, it would have, you know, 294 00:16:29,700 --> 00:16:31,420 we would have given it to a digital developer, 295 00:16:31,480 --> 00:16:33,060 which, you know, maybe he's on staff, 296 00:16:33,280 --> 00:16:35,260 but he's super busy and just doesn't have the time 297 00:16:35,260 --> 00:16:36,360 to take care of our problem. 298 00:16:37,480 --> 00:16:40,600 RedHawk is something that is starting to come out. 299 00:16:41,360 --> 00:16:42,980 It was released about two years ago. 300 00:16:43,520 --> 00:16:46,100 It is open source, but it is maintained by the government. 301 00:16:46,540 --> 00:16:49,380 And it is, if any of you are familiar with SCA, 302 00:16:49,460 --> 00:16:51,380 it's if you develop a waveform in RedHawk, 303 00:16:51,500 --> 00:16:52,240 it's SCA compliant. 304 00:16:54,000 --> 00:16:57,020 And it has very limited hardware support right now. 305 00:16:57,120 --> 00:16:59,040 I've heard rumors that they may be adding 306 00:16:59,040 --> 00:17:00,620 more hardware support in the near future. 307 00:17:01,680 --> 00:17:04,180 But for now, I would classify it more 308 00:17:04,180 --> 00:17:05,660 as a signal processing framework 309 00:17:05,660 --> 00:17:08,740 than a true hardware-in-a-loop development framework 310 00:17:08,740 --> 00:17:10,200 like MATLAB and GNU Radio are. 311 00:17:13,420 --> 00:17:15,540 Okay, so this is what you see 312 00:17:15,540 --> 00:17:17,280 when you double-click on your source. 313 00:17:17,460 --> 00:17:20,540 It looks about the same in MATLAB and GNU Radio. 314 00:17:22,720 --> 00:17:25,740 And something to point out here is that the... 315 00:17:26,820 --> 00:17:28,740 When you use these blocks, you know, 316 00:17:28,800 --> 00:17:32,920 the UHD and the USRP has a lot of functionality 317 00:17:32,920 --> 00:17:34,640 that isn't necessarily exposed 318 00:17:34,640 --> 00:17:36,260 by these blocks. 319 00:17:36,640 --> 00:17:40,360 One example is, you know, changing bits per sample. 320 00:17:40,460 --> 00:17:42,320 It does support the 8-bit sampling mode. 321 00:17:43,940 --> 00:17:45,520 Good luck enabling it in MATLAB 322 00:17:45,520 --> 00:17:46,320 because it doesn't support it. 323 00:17:47,640 --> 00:17:50,640 The TX metadata, that's a way that uses... 324 00:17:51,220 --> 00:17:52,920 You can use the timestamp, the samples. 325 00:17:53,080 --> 00:17:54,300 And so if you have a time-aware application, 326 00:17:54,960 --> 00:17:57,080 it's super useful for scheduling transmit times. 327 00:17:58,980 --> 00:18:01,800 But again, not exposed in Simulink. 328 00:18:01,800 --> 00:18:03,840 And I don't believe it's exposed in GNU Radio. 329 00:18:04,300 --> 00:18:06,300 Someone can correct me if I'm mistaken. 330 00:18:08,720 --> 00:18:10,240 And so, okay, well, let's focus 331 00:18:10,240 --> 00:18:11,900 on what you can affect and can change. 332 00:18:12,260 --> 00:18:14,580 So DC. 333 00:18:14,800 --> 00:18:17,640 So for example, if you tune to a frequency 334 00:18:17,640 --> 00:18:19,680 and you digitally down-convert 335 00:18:19,680 --> 00:18:21,380 and, you know, you're looking at the spectrum analyzer 336 00:18:21,380 --> 00:18:22,420 and you just see this giant spike 337 00:18:22,420 --> 00:18:24,080 where there should be no signal at 0 Hz, 338 00:18:24,280 --> 00:18:25,800 you know, that's some kind of DC noise. 339 00:18:27,480 --> 00:18:28,560 So ways to cheat. 340 00:18:29,020 --> 00:18:30,400 You know, you can use the LO offset 341 00:18:30,400 --> 00:18:31,620 to just kind of shift your signal 342 00:18:33,880 --> 00:18:36,800 to 40 kHz and then manually down-convert it 343 00:18:37,480 --> 00:18:38,880 to avoid that noise. 344 00:18:39,960 --> 00:18:40,700 Decimation factor. 345 00:18:40,900 --> 00:18:43,000 The USRPs are sensitive to the decimation factor. 346 00:18:43,980 --> 00:18:45,080 On the N210 specifically, 347 00:18:45,440 --> 00:18:47,180 the way they cascade the CIC filters, 348 00:18:48,780 --> 00:18:50,240 choose your decimation factor wisely 349 00:18:50,240 --> 00:18:54,120 because, you know, powers of 2 will result in... 350 00:18:54,900 --> 00:18:56,940 I guess I don't know if I should classify this 351 00:18:56,940 --> 00:18:58,160 as a gain or less of a loss, 352 00:18:58,340 --> 00:19:00,340 but you will see an SNR difference 353 00:19:00,340 --> 00:19:02,760 if you use a decimation factor that is a power of 2 354 00:19:03,840 --> 00:19:05,460 non-power of 2 decimation factor. 355 00:19:05,620 --> 00:19:08,000 And the reason for that is the roll-off... 356 00:19:08,000 --> 00:19:09,780 kind of where your signal is falling 357 00:19:09,780 --> 00:19:10,800 and the roll-off of the filters. 358 00:19:11,680 --> 00:19:13,700 So the filter is actually... 359 00:19:13,700 --> 00:19:16,560 even though it's decimating and filtering out noise, 360 00:19:16,660 --> 00:19:18,120 it's also taking out a piece of your signal. 361 00:19:20,120 --> 00:19:23,260 So use powers of 2 for the USRP. 362 00:19:23,780 --> 00:19:25,780 And then this parameter is interesting 363 00:19:25,780 --> 00:19:28,740 because the latest USRPs 364 00:19:28,740 --> 00:19:33,780 actually have ADCs with configurable sample rates. 365 00:19:33,840 --> 00:19:35,600 And so that can also be used... 366 00:19:35,600 --> 00:19:37,280 when combined with decimation, 367 00:19:37,440 --> 00:19:38,960 that can solve a lot of problems. 368 00:19:39,200 --> 00:19:42,780 I'd rather just sample at an inherently lower sample rate 369 00:19:43,540 --> 00:19:46,400 than, you know, be stuck with the 100-megasample-per-second 370 00:19:46,400 --> 00:19:49,200 fixed rate and then have to manually decimate down later. 371 00:19:52,620 --> 00:19:57,580 Okay, so that was kind of the theory level set. 372 00:19:58,580 --> 00:20:00,460 Kind of shotgunned a whole bunch of parameters 373 00:20:00,460 --> 00:20:01,800 and trade spaces at you. 374 00:20:01,800 --> 00:20:04,920 So now we're gonna focus more 375 00:20:04,920 --> 00:20:06,520 on specific examples and applications. 376 00:20:07,740 --> 00:20:11,280 So, you know, one common thing is, 377 00:20:11,360 --> 00:20:13,640 okay, so let's build a GSM network, right? 378 00:20:13,700 --> 00:20:14,720 So it's cellular. 379 00:20:14,940 --> 00:20:16,280 There's lots of commercial equipment available. 380 00:20:16,680 --> 00:20:20,240 There's OpenBTS that can run this part of it. 381 00:20:22,440 --> 00:20:24,440 And, you know, all this hardware, 382 00:20:24,600 --> 00:20:25,780 you know, it's narrowband. 383 00:20:25,960 --> 00:20:27,160 It should be super easy, right? 384 00:20:27,460 --> 00:20:29,500 Well, so... 385 00:20:29,500 --> 00:20:33,880 you do have to do some work on the MS, 386 00:20:33,980 --> 00:20:35,100 and depending on what you're trying to do, 387 00:20:35,140 --> 00:20:36,480 you still have to do some work on the BTS. 388 00:20:36,720 --> 00:20:38,760 And if you actually want the COTS MS 389 00:20:38,760 --> 00:20:41,100 to interoperate with your network 390 00:20:41,800 --> 00:20:43,580 in a reliable way 391 00:20:44,600 --> 00:20:46,180 before you want to start thinking about 392 00:20:46,180 --> 00:20:47,240 doing other stuff to it, 393 00:20:49,080 --> 00:20:51,440 you know, this is what you should be drawing. 394 00:20:51,600 --> 00:20:52,620 So, you know, that's the Obi-Wan 395 00:20:52,620 --> 00:20:53,520 that you might show to a manager. 396 00:20:54,100 --> 00:20:56,500 But this is what you as a developer need to be aware of. 397 00:20:57,500 --> 00:20:59,140 So OpenBTS, for those of you who aren't aware, 398 00:20:59,500 --> 00:21:01,980 is a really cool open source project 399 00:21:02,360 --> 00:21:04,620 that implements a GSM BTS 400 00:21:04,620 --> 00:21:06,600 that runs on USRPs. 401 00:21:06,800 --> 00:21:07,780 They used to make their own hardware. 402 00:21:07,900 --> 00:21:08,540 They've since stopped. 403 00:21:10,540 --> 00:21:16,700 And it combines their own interface to the UHD 404 00:21:16,700 --> 00:21:19,420 with a couple of other open source projects 405 00:21:19,420 --> 00:21:23,060 to, you know, give you a fully functioning GSM network 406 00:21:23,060 --> 00:21:24,400 that you can camp your own phone to. 407 00:21:24,580 --> 00:21:26,020 And, you know, you can actually share 408 00:21:26,020 --> 00:21:28,680 your Internet connection through the Ethernet 409 00:21:28,680 --> 00:21:29,240 on your computer 410 00:21:29,500 --> 00:21:31,500 and get data running over GPRS. 411 00:21:31,560 --> 00:21:32,460 And it's really cool. 412 00:21:33,980 --> 00:21:36,760 But it's also, when you want to build the MS side of it, 413 00:21:36,820 --> 00:21:38,040 it gets pretty challenging because 414 00:21:38,980 --> 00:21:40,700 all of a sudden you have to think about all of these things 415 00:21:40,700 --> 00:21:42,640 that maybe you're not used to thinking about. 416 00:21:42,800 --> 00:21:45,880 So this is an example of the GSM frame 417 00:21:45,880 --> 00:21:47,080 and the GSM time slot. 418 00:21:47,240 --> 00:21:49,300 And you see, so the blue is your data. 419 00:21:49,440 --> 00:21:51,420 And you have these guard intervals on either side. 420 00:21:51,600 --> 00:21:54,400 And this yellow thing here is a synchronization pattern 421 00:21:54,400 --> 00:21:55,660 right in the middle of the time slot. 422 00:21:55,820 --> 00:21:56,900 So your data's actually split. 423 00:21:56,900 --> 00:21:58,620 So when you're transmitting, 424 00:22:00,780 --> 00:22:02,360 when you're transmitting as the MS, 425 00:22:02,480 --> 00:22:03,640 you have to basically start and stop 426 00:22:03,640 --> 00:22:04,740 in that little red area. 427 00:22:06,600 --> 00:22:07,140 Excuse me. 428 00:22:09,180 --> 00:22:11,040 So this is what your interfaces look like. 429 00:22:11,160 --> 00:22:13,740 Each one has, you know, this is the COTS area. 430 00:22:16,020 --> 00:22:19,240 The RF goes into, you know, probably a nice fancy Qualcomm chip. 431 00:22:19,340 --> 00:22:22,260 That is, GSM is occupying some small percentage of it. 432 00:22:22,320 --> 00:22:25,240 And it's also running 3G modems, 4G modems, 433 00:22:25,260 --> 00:22:26,780 maybe even Bluetooth, Wi-Fi, and GPS. 434 00:22:26,780 --> 00:22:30,340 But these delays are deterministic and known. 435 00:22:30,860 --> 00:22:32,980 On this chip, when you're implementing a mobile stack, 436 00:22:33,160 --> 00:22:36,120 you can start the counter, count for 10 cycles, 437 00:22:36,340 --> 00:22:38,420 stop the counter, and know exactly how much time has passed. 438 00:22:39,900 --> 00:22:41,320 How do you do that here? 439 00:22:41,640 --> 00:22:44,020 And the answer is you really can't 440 00:22:44,020 --> 00:22:46,280 without deploying code here. 441 00:22:47,100 --> 00:22:50,360 So the trick, the key is to either reduce, 442 00:22:50,840 --> 00:22:54,540 to reduce the amount of processing that happens here 443 00:22:54,540 --> 00:22:56,760 or to reduce the amount of data 444 00:22:56,780 --> 00:22:58,100 that's flowing over this interface. 445 00:22:59,960 --> 00:23:03,960 Either way will buy you closer to real-time capability. 446 00:23:07,140 --> 00:23:11,240 Now, it's significantly easier to build a, just a collector, right? 447 00:23:11,400 --> 00:23:12,980 So for those of you who aren't familiar, 448 00:23:13,120 --> 00:23:16,000 this is the Simulink, this is Simulink MathWorks product 449 00:23:17,160 --> 00:23:19,820 where, you know, you can kind of just hit go, model will run. 450 00:23:20,180 --> 00:23:22,100 Buffers, if you start, if you start falling behind, 451 00:23:22,260 --> 00:23:24,220 it buffers in memory on a variable size buffer 452 00:23:24,760 --> 00:23:25,640 that you can configure. 453 00:23:26,780 --> 00:23:27,980 And it, you know, it's really cool. 454 00:23:28,080 --> 00:23:31,400 You can just output a, you know, it has similar display, 455 00:23:32,440 --> 00:23:33,820 displays as GNU Radio does. 456 00:23:36,020 --> 00:23:37,540 Much easier to build receive-only, 457 00:23:37,740 --> 00:23:39,900 much harder to build transmit and receive capability 458 00:23:39,900 --> 00:23:41,820 in a single, in a single model of Flowgraph. 459 00:23:44,700 --> 00:23:45,580 Post-processing. 460 00:23:46,000 --> 00:23:49,820 So many times people will just want to record signals. 461 00:23:50,600 --> 00:23:52,900 Another interesting application that I was working with recently 462 00:23:52,900 --> 00:23:53,800 was actually Radar. 463 00:23:55,100 --> 00:23:56,760 So Radar is interesting because, you know, 464 00:23:58,460 --> 00:24:02,200 you actually care about propagation time and distance. 465 00:24:02,520 --> 00:24:04,100 And so when you're trying to test these systems, 466 00:24:04,140 --> 00:24:05,100 unless you're on a radar range, 467 00:24:05,740 --> 00:24:07,300 you have to find a really long hallway 468 00:24:07,300 --> 00:24:09,500 and set up an antenna, hopefully directional, 469 00:24:09,760 --> 00:24:12,120 point it down the hallway, shoot the signal off something 470 00:24:12,120 --> 00:24:13,980 that is reflective, wait for it to come back. 471 00:24:15,340 --> 00:24:17,440 And then, you know, how many nanoseconds was that? 472 00:24:17,560 --> 00:24:18,700 What was I sampling at? 473 00:24:19,160 --> 00:24:22,340 Am I even able to capture the reflection? 474 00:24:23,380 --> 00:24:25,360 And so, you know, in a time and frequency domain, 475 00:24:25,360 --> 00:24:28,880 you know, here we're, I think we're talking 476 00:24:28,880 --> 00:24:31,040 roughly 30 nanoseconds per sample. 477 00:24:32,400 --> 00:24:33,600 And, you know, we're able to measure 478 00:24:33,600 --> 00:24:36,700 a little nice reflection here at about 230 feet, 479 00:24:36,780 --> 00:24:37,700 one nanosecond per foot. 480 00:24:38,620 --> 00:24:41,180 And in a frequency domain, measure, you know, velocities. 481 00:24:41,280 --> 00:24:43,440 I've just had an intern run down the hall really fast 482 00:24:43,440 --> 00:24:46,860 and he got up to eight miles an hour, so good for him. 483 00:24:47,400 --> 00:24:48,780 And measure the Doppler shift. 484 00:24:48,920 --> 00:24:54,840 And so when, it's an example of an application area 485 00:24:54,840 --> 00:24:59,180 that these software-defined radios can be, you know, 486 00:24:59,240 --> 00:25:01,060 they're pieces of communication equipment, 487 00:25:01,240 --> 00:25:02,820 but hey, they can do any kind of signal application, 488 00:25:03,100 --> 00:25:04,340 so why not try radar, right? 489 00:25:07,880 --> 00:25:08,840 And let's see. 490 00:25:08,920 --> 00:25:13,160 So to enable this kind of processing, 491 00:25:14,900 --> 00:25:15,840 radar is an exception. 492 00:25:16,000 --> 00:25:18,480 Here we were actually sampling at 25 mega-samples per second 493 00:25:18,480 --> 00:25:20,380 for about one second. 494 00:25:22,500 --> 00:25:24,820 And, you know, more, you know, 495 00:25:24,840 --> 00:25:27,580 maybe you can get realistically for real-time processing 496 00:25:27,580 --> 00:25:30,860 one, two, three mega-samples if you're using GNU Radio 497 00:25:32,760 --> 00:25:34,980 and the pre-existing Blocks and Companion. 498 00:25:35,900 --> 00:25:38,020 But oversample where you can because that will give you, 499 00:25:39,300 --> 00:25:42,320 that will let you have some digital gain 500 00:25:43,920 --> 00:25:45,460 in your signal processing. 501 00:25:45,780 --> 00:25:48,280 And most, probably I should have put this as number one, 502 00:25:48,400 --> 00:25:49,400 but the most important thing you can do 503 00:25:49,400 --> 00:25:51,080 is use the full dynamic range of the ADC. 504 00:25:52,080 --> 00:25:54,140 So pay attention to the value of the samples 505 00:25:54,140 --> 00:25:55,460 that are coming out of the source block. 506 00:25:55,680 --> 00:25:58,820 If their floating point is the magnitude approaching one, 507 00:25:58,900 --> 00:26:01,900 if they're integers, what's the dynamic range of the ADC? 508 00:26:02,000 --> 00:26:03,340 Is it 14 bits? Is it 12 bits? 509 00:26:05,700 --> 00:26:07,480 And what are the values of the integers 510 00:26:07,480 --> 00:26:08,840 coming out of the source block? 511 00:26:09,040 --> 00:26:12,280 If they're, like, in the tens, you're not even close. 512 00:26:12,440 --> 00:26:13,820 If they're in the hundreds, you're still not close. 513 00:26:15,200 --> 00:26:18,180 You know, you ideally want to see that plus or minus 514 00:26:19,640 --> 00:26:20,660 15,000 value. 515 00:26:21,980 --> 00:26:23,120 It's also important to note, 516 00:26:23,120 --> 00:26:27,040 for the USRP specifically, you know, you have a 14-bit ADC, 517 00:26:27,140 --> 00:26:29,280 but it's outputting 16-bit integers. 518 00:26:29,560 --> 00:26:31,560 So how is that working? 519 00:26:32,260 --> 00:26:35,980 And it turns out they use the most significant bit 520 00:26:35,980 --> 00:26:38,480 and the least two significant bits are zero-padded. 521 00:26:40,560 --> 00:26:43,200 All right, so now I'm going to talk about 522 00:26:45,520 --> 00:26:48,640 what optimizing and improving the performance of the system. 523 00:26:49,100 --> 00:26:51,840 So I have one really specific example, 524 00:26:51,920 --> 00:26:53,100 and then I have a little bit of a case study 525 00:26:53,120 --> 00:26:56,860 that solved a very specific problem 526 00:26:56,860 --> 00:26:57,800 that we were working through 527 00:26:57,800 --> 00:26:58,920 and had a bunch of unique challenges. 528 00:26:59,260 --> 00:27:01,060 And it's related to the picture 529 00:27:01,060 --> 00:27:02,880 that was at the very beginning of the briefing. 530 00:27:03,220 --> 00:27:06,400 So maximizing the baseband host interface. 531 00:27:06,780 --> 00:27:10,660 So we had a problem where we wanted to do 532 00:27:10,660 --> 00:27:12,420 a live demo for a client, 533 00:27:12,560 --> 00:27:16,660 and we needed the demo to run for about five minutes 534 00:27:16,660 --> 00:27:17,820 because that's about how long 535 00:27:17,820 --> 00:27:18,780 you were going to pay attention for. 536 00:27:19,700 --> 00:27:23,100 And the, you know, we couldn't get it done, 537 00:27:23,120 --> 00:27:23,280 and we didn't have a lot of time to do that. 538 00:27:23,280 --> 00:27:25,680 So, you know, we built up our receiver architecture, 539 00:27:25,900 --> 00:27:27,660 and the deadline was approaching. 540 00:27:27,780 --> 00:27:31,280 We didn't really want to move significant parts 541 00:27:31,280 --> 00:27:33,740 of the receiver processing into the FPGA or DSP, 542 00:27:33,820 --> 00:27:36,060 just kind of too high risk. 543 00:27:36,180 --> 00:27:39,900 So we got the idea of, well, so at some sample rate, 544 00:27:41,200 --> 00:27:43,540 the SDR is delivering us 16-bit samples. 545 00:27:44,660 --> 00:27:47,800 I can process a million samples before I overflow. 546 00:27:47,800 --> 00:27:51,600 And continuous processing was important here. 547 00:27:53,400 --> 00:27:55,100 So what if we go into the FPGA 548 00:27:55,100 --> 00:27:58,560 and have it, you know, truncate the sample 549 00:27:58,560 --> 00:27:59,540 that comes out of the ADC 550 00:27:59,540 --> 00:28:02,240 and send four 4-bit samples packed into a 16-bit word? 551 00:28:03,320 --> 00:28:04,760 Okay, that sounds pretty easy. 552 00:28:06,380 --> 00:28:08,000 So we actually were able to use 553 00:28:08,000 --> 00:28:09,880 the HDL synthesis capability of Simulink 554 00:28:09,880 --> 00:28:13,140 to implement that. 555 00:28:13,300 --> 00:28:15,160 And, you know, this is what it looks like. 556 00:28:15,280 --> 00:28:17,780 The blocks there are just custom-packing things. 557 00:28:17,800 --> 00:28:18,280 They're custom-packing functions. 558 00:28:18,500 --> 00:28:19,760 They're maybe one line of code each. 559 00:28:20,780 --> 00:28:23,520 Very simple, and it was a great example of, 560 00:28:23,580 --> 00:28:24,680 well, we have this product, 561 00:28:24,800 --> 00:28:26,740 and let's see if it actually works as advertised. 562 00:28:27,020 --> 00:28:27,620 And it did. 563 00:28:28,820 --> 00:28:30,620 And, you know, looking... 564 00:28:30,620 --> 00:28:31,880 When comparing it to GNU Radio, 565 00:28:33,960 --> 00:28:35,780 I think it's important to understand 566 00:28:36,480 --> 00:28:40,460 what you're getting in both development platform. 567 00:28:41,620 --> 00:28:43,640 And so, you know, we are not... 568 00:28:43,640 --> 00:28:45,600 I am not a VHDL developer, 569 00:28:45,600 --> 00:28:48,660 but I was still able to deploy code to the FPGA 570 00:28:48,660 --> 00:28:50,460 to solve a problem, and this did solve a problem. 571 00:28:50,520 --> 00:28:51,320 It quadrupled our runtime. 572 00:28:53,320 --> 00:28:55,940 And why did this work? 573 00:28:56,200 --> 00:28:59,660 So we took 12-bit samples, made them 4-bit samples. 574 00:28:59,780 --> 00:29:02,100 So we lost a lot of fidelity in what we were sampling. 575 00:29:02,320 --> 00:29:05,100 But because we had done our homework on the link budget 576 00:29:05,600 --> 00:29:07,340 and really found that blue sweet spot 577 00:29:07,340 --> 00:29:10,500 on the performance curve to maximize the dynamic range of... 578 00:29:10,500 --> 00:29:13,600 to take full advantage of the dynamic range in the ADC, 579 00:29:14,660 --> 00:29:18,100 you know, 4 bits was enough to accurately represent our signal. 580 00:29:21,940 --> 00:29:22,440 Okay. 581 00:29:23,060 --> 00:29:27,240 So this is the signal I was trying to process earlier. 582 00:29:27,420 --> 00:29:29,040 So for those of you who aren't familiar, 583 00:29:29,840 --> 00:29:31,760 ELorAN is a terrestrial navigation system. 584 00:29:32,700 --> 00:29:35,340 It was active in the United States 585 00:29:35,340 --> 00:29:37,240 and then was shut down 586 00:29:38,680 --> 00:29:40,060 maybe about five... 587 00:29:40,450 --> 00:29:42,560 I forget exactly when, maybe about five, ten years ago. 588 00:29:43,600 --> 00:29:44,840 Because, hey, we have GPS, 589 00:29:45,000 --> 00:29:47,480 so why do we need this terrestrial navigation system? 590 00:29:47,680 --> 00:29:48,420 Well, now it's coming back 591 00:29:49,080 --> 00:29:52,560 because people are realizing that GPS isn't always super reliable. 592 00:29:52,960 --> 00:29:55,620 And, for example, if you're South Korea, 593 00:29:55,660 --> 00:29:57,260 North Korea is just jamming your GPS all day. 594 00:29:58,700 --> 00:30:01,900 So you're seeing ELorAN being deployed internationally, 595 00:30:02,120 --> 00:30:03,920 and they just turned on a station, 596 00:30:04,020 --> 00:30:06,620 one of the old Loran sea stations in Wildwood, New Jersey, 597 00:30:07,400 --> 00:30:09,540 just maybe 20 minutes south of Atlantic City. 598 00:30:11,020 --> 00:30:12,040 They're super high... 599 00:30:12,040 --> 00:30:13,620 They're really interesting signals to work with. 600 00:30:14,360 --> 00:30:18,060 And they capture a lot of the trade space of... 601 00:30:18,660 --> 00:30:19,320 SDRs are... 602 00:30:19,320 --> 00:30:21,620 There's no reason you can't process this signal with an SDR, 603 00:30:21,820 --> 00:30:24,040 but you really have to know what you're doing to do it. 604 00:30:25,480 --> 00:30:27,040 Because they're low frequency. 605 00:30:27,240 --> 00:30:28,300 They're 90 kilohertz to... 606 00:30:28,300 --> 00:30:31,080 99% of the power is from 90 kilohertz to 110 kilohertz. 607 00:30:31,340 --> 00:30:34,160 Not a very standard frequency range to be operating in. 608 00:30:34,680 --> 00:30:37,560 They also, because of their frequency, propagate as ground waves. 609 00:30:37,860 --> 00:30:39,320 They propagate as sky waves. 610 00:30:39,620 --> 00:30:41,080 They're subject to re-radiation. 611 00:30:41,080 --> 00:30:42,320 So if you're in an urban environment, 612 00:30:44,000 --> 00:30:46,100 and where we collected it, and I'll show in a minute, 613 00:30:46,140 --> 00:30:47,260 was kind of near the Chesapeake Bay, 614 00:30:47,360 --> 00:30:48,180 so if there are a lot of bridges, 615 00:30:49,020 --> 00:30:49,380 it'll... 616 00:30:49,380 --> 00:30:51,880 The wires in a bridge will re-radiate the signal. 617 00:30:52,380 --> 00:30:54,120 It's an extremely high power signal. 618 00:30:54,700 --> 00:30:56,720 The advertised range is about 1,000 miles. 619 00:30:59,840 --> 00:31:02,420 And so the challenges we were facing was, 620 00:31:02,520 --> 00:31:04,000 okay, we're so included... 621 00:31:04,000 --> 00:31:05,700 Well, it's such a strange band, 622 00:31:05,860 --> 00:31:07,420 it's hard to find amplifiers for this band. 623 00:31:07,600 --> 00:31:09,200 It's hard to find things whose... 624 00:31:10,040 --> 00:31:10,400 Um... 625 00:31:12,200 --> 00:31:15,240 Their frequency-dependent parameters go below 100 kilohertz. 626 00:31:15,300 --> 00:31:17,000 Most places start at 100 kilohertz, 627 00:31:17,040 --> 00:31:18,080 and then when you look at the data sheets, 628 00:31:18,300 --> 00:31:21,500 the performance data on the data sheets starts at, like, 30 megahertz. 629 00:31:21,820 --> 00:31:23,060 So even though it's spec'd that low, 630 00:31:23,420 --> 00:31:26,020 you don't necessarily see the full performance curve, 631 00:31:26,080 --> 00:31:27,120 so you have to characterize it yourself, 632 00:31:27,260 --> 00:31:28,700 or just trust that it's flat. 633 00:31:30,540 --> 00:31:32,560 Because not a lot of work is done here, 634 00:31:32,580 --> 00:31:34,040 we actually found a software bug in the interface. 635 00:31:35,440 --> 00:31:37,100 In this case, we were using Simulink, 636 00:31:37,120 --> 00:31:39,360 so we found a bug in the way they were handling it, 637 00:31:39,460 --> 00:31:41,060 which, to the math works, is credible. 638 00:31:41,060 --> 00:31:41,780 They've got it, they've since fixed, 639 00:31:41,880 --> 00:31:43,620 and super responsive in working with us there. 640 00:31:44,080 --> 00:31:44,480 Um... 641 00:31:45,420 --> 00:31:49,520 And the LFRX daughterboard for the USRP 642 00:31:49,520 --> 00:31:51,320 does not have an LNA in front of it. 643 00:31:51,440 --> 00:31:54,920 So you're dealing with an extremely noisy ADC 644 00:31:54,920 --> 00:31:56,580 with about a 30 dB noise figure. 645 00:31:57,260 --> 00:31:57,780 Um... 646 00:31:57,780 --> 00:32:00,020 So you need one of those amplifiers 647 00:32:00,020 --> 00:32:02,120 that's hard to find in the performance range 648 00:32:02,120 --> 00:32:03,840 that you're operating in. 649 00:32:05,200 --> 00:32:05,720 Um... 650 00:32:05,720 --> 00:32:06,440 So... 651 00:32:07,700 --> 00:32:08,300 Let's see. 652 00:32:08,440 --> 00:32:09,640 Oh, and for comparison, 653 00:32:09,640 --> 00:32:11,580 so this is what the signal should look like. 654 00:32:11,640 --> 00:32:13,160 This was collected on a spectrum analyzer. 655 00:32:13,680 --> 00:32:14,160 Um... 656 00:32:14,160 --> 00:32:17,920 I believe this is a 3 Hz resolution bandwidth. 657 00:32:18,700 --> 00:32:19,180 Um... 658 00:32:19,180 --> 00:32:21,460 So there's clearly some difference 659 00:32:21,460 --> 00:32:25,660 between what we're observing in our SDR development framework 660 00:32:25,660 --> 00:32:27,100 and what the truth is. 661 00:32:27,660 --> 00:32:29,460 You know, here, there is no amplification. 662 00:32:29,700 --> 00:32:30,600 Here, there is an ampli... 663 00:32:30,600 --> 00:32:31,760 Here, there is amplification. 664 00:32:32,100 --> 00:32:34,460 So that's maybe a hint as to what's going on there. 665 00:32:36,800 --> 00:32:37,280 Um... 666 00:32:37,280 --> 00:32:37,880 Okay. 667 00:32:38,220 --> 00:32:38,540 So... 668 00:32:39,420 --> 00:32:41,200 You know, I talked a little bit earlier 669 00:32:42,540 --> 00:32:44,340 about why you want to know your link budget 670 00:32:44,340 --> 00:32:45,180 and build your link budget, 671 00:32:45,380 --> 00:32:47,440 and, you know, this is what we tried to do for ELRAN, 672 00:32:47,440 --> 00:32:48,640 and it obviously just didn't work 673 00:32:48,640 --> 00:32:50,700 because we don't know any of these things. 674 00:32:51,680 --> 00:32:52,000 Um... 675 00:32:52,000 --> 00:32:55,100 So, you know, we don't know their true transmit power. 676 00:32:55,320 --> 00:32:57,960 We know it's typically in the hundreds of kilowatts 677 00:32:57,960 --> 00:32:59,340 to low megawatts, 678 00:32:59,700 --> 00:33:01,220 but we don't know exactly what it is. 679 00:33:01,340 --> 00:33:02,440 We don't know the gain of the antenna. 680 00:33:03,180 --> 00:33:04,660 We don't know the gain of our antenna 681 00:33:04,660 --> 00:33:06,920 because, again, of the frequency range. 682 00:33:07,700 --> 00:33:09,640 You can go buy a magnetic core antenna 683 00:33:10,220 --> 00:33:12,200 that will give you flat performance, 684 00:33:12,540 --> 00:33:15,100 but, you know, this costs $20 at Home Depot. 685 00:33:16,000 --> 00:33:17,720 It's just maybe about 100 feet of wire 686 00:33:17,720 --> 00:33:19,080 wound around a PVC pipe. 687 00:33:20,200 --> 00:33:21,140 There is no capacitor 688 00:33:21,140 --> 00:33:23,040 to pull down the resonant frequency. 689 00:33:24,940 --> 00:33:27,040 But it did the job, you know, and it worked. 690 00:33:27,660 --> 00:33:28,900 We don't know what our gain was. 691 00:33:29,580 --> 00:33:31,560 We had a significant mismatch loss. 692 00:33:31,640 --> 00:33:33,020 We did characterize it on a network analyzer, 693 00:33:33,500 --> 00:33:35,600 and, you know, we basically built a giant inductor. 694 00:33:36,100 --> 00:33:36,580 Um... 695 00:33:38,500 --> 00:33:39,580 And let's see. 696 00:33:39,680 --> 00:33:40,220 Other things. 697 00:33:40,600 --> 00:33:41,660 Ah, the X. 698 00:33:41,820 --> 00:33:44,180 So here, X matters very much so 699 00:33:44,180 --> 00:33:46,400 because atmospheric noise, 700 00:33:47,260 --> 00:33:50,560 you would expect maybe 50 to 80 dB 701 00:33:50,560 --> 00:33:52,540 of atmospheric noise at these frequencies 702 00:33:52,540 --> 00:33:54,160 depending on what time of day you collect. 703 00:33:54,500 --> 00:33:57,620 And that's important because it depends on the time of day. 704 00:33:57,840 --> 00:33:59,940 So if you collect at 9 a.m. in the morning, 705 00:34:00,140 --> 00:34:01,540 you'll see different performance 706 00:34:01,540 --> 00:34:03,000 than if you collect at 8 p.m. at night. 707 00:34:03,160 --> 00:34:05,020 And so if before, 708 00:34:05,020 --> 00:34:06,780 you know, one day you work really late, 709 00:34:07,240 --> 00:34:08,920 you leave your model where it is 710 00:34:08,920 --> 00:34:09,820 and you think you had it working, 711 00:34:09,920 --> 00:34:10,760 the next day you come in 712 00:34:10,760 --> 00:34:12,340 and start on it in the morning, 713 00:34:12,400 --> 00:34:14,460 you might see 30 dB of variation 714 00:34:14,460 --> 00:34:18,140 in what you were processing. 715 00:34:19,360 --> 00:34:22,040 So, you know, if you just plug all this stuff into Excel 716 00:34:22,040 --> 00:34:23,960 with kind of swags at it 717 00:34:23,960 --> 00:34:25,300 and at what these parameters should be, 718 00:34:25,380 --> 00:34:25,820 you end up with, 719 00:34:25,940 --> 00:34:28,440 well, I think I should be at, like, maybe minus 50 dBm. 720 00:34:29,320 --> 00:34:31,480 And, you know, truth said that we were at minus 99. 721 00:34:31,860 --> 00:34:33,260 So it helps a lot to have 722 00:34:33,260 --> 00:34:34,980 some of this measuring equipment available to you. 723 00:34:35,020 --> 00:34:38,480 to validate what you're measuring. 724 00:34:38,680 --> 00:34:40,200 And then for various signals, 725 00:34:40,760 --> 00:34:42,860 for example, cellular coverages, 726 00:34:43,040 --> 00:34:45,160 there are coverage maps available online 727 00:34:45,160 --> 00:34:47,140 that will give you signal measurements 728 00:34:47,140 --> 00:34:49,100 at various monitoring points, 729 00:34:49,540 --> 00:34:52,680 like what the RISI is at, you know, 730 00:34:52,680 --> 00:34:54,140 one mile out, five miles out. 731 00:34:54,280 --> 00:34:55,560 And people will just drive along the highway 732 00:34:55,560 --> 00:34:56,520 taking signal measurements. 733 00:35:01,060 --> 00:35:03,740 So this is what we ended up doing. 734 00:35:03,740 --> 00:35:07,280 So the LFRX data board, we did use it. 735 00:35:08,120 --> 00:35:10,260 The software bug ended up being related to. 736 00:35:10,760 --> 00:35:13,980 So this is where knowing your hardware really helps 737 00:35:13,980 --> 00:35:17,340 because the LFRX is really just a, 738 00:35:17,360 --> 00:35:19,460 it's just an SMA input into, 739 00:35:19,600 --> 00:35:24,620 that just goes directly into the motherboard of the N210. 740 00:35:24,760 --> 00:35:26,220 There's not much going on there. 741 00:35:28,640 --> 00:35:31,200 So we knew that there was digital down conversion 742 00:35:31,200 --> 00:35:32,460 happening in the N210. 743 00:35:33,740 --> 00:35:35,180 And what we were finding was that 744 00:35:35,180 --> 00:35:36,080 if you set the center frequency, 745 00:35:36,360 --> 00:35:37,220 well, nothing's happening. 746 00:35:39,040 --> 00:35:40,940 So we ended up needing to, fortunately, 747 00:35:41,320 --> 00:35:44,020 what our center frequency of interest 748 00:35:44,020 --> 00:35:45,260 was only 100 kilohertz. 749 00:35:45,520 --> 00:35:48,160 So we could just, the ADC was just capable 750 00:35:48,160 --> 00:35:49,240 of capturing that bandwidth, 751 00:35:49,360 --> 00:35:50,780 and we were able to down convert manually. 752 00:35:52,340 --> 00:35:53,440 With atmospheric noise, 753 00:35:53,560 --> 00:35:55,240 we did our collection in mid-morning 754 00:35:57,100 --> 00:35:58,720 when, you know, we believed that 755 00:35:58,720 --> 00:36:00,340 we had characterized it over a couple days, 756 00:36:01,020 --> 00:36:03,660 which really just run the spectrum analyzer 757 00:36:05,560 --> 00:36:08,240 and then, you know, have it report back once an hour 758 00:36:08,240 --> 00:36:09,280 what the noise floor was. 759 00:36:11,520 --> 00:36:13,400 The LNA had a 3 dB noise figure, 760 00:36:13,460 --> 00:36:14,920 so that brought down our system noise figure. 761 00:36:15,400 --> 00:36:18,040 And we ended up just testing a family of LNAs to, 762 00:36:18,400 --> 00:36:20,540 you know, which one has the best edge of spec performance. 763 00:36:20,680 --> 00:36:21,780 We were 10 kilohertz out of spec. 764 00:36:22,520 --> 00:36:24,780 And we think that that was the source of, 765 00:36:28,780 --> 00:36:32,120 the source of that distortion that we were seeing. 766 00:36:34,660 --> 00:36:36,600 And we ended up with this really nice, 767 00:36:37,040 --> 00:36:38,700 you know, we did the correlation, 768 00:36:38,920 --> 00:36:40,120 so Loran is just a pulse signal, 769 00:36:40,920 --> 00:36:43,140 and it's designed to be super easy to receive, 770 00:36:43,260 --> 00:36:46,080 and you would expect something kind of like this 771 00:36:46,080 --> 00:36:48,440 if you were to correlate it against the Loran pulse. 772 00:36:49,980 --> 00:36:51,600 So at the end of the day, we were able to get it, 773 00:36:51,660 --> 00:36:55,620 but we were only really able to get it 774 00:36:55,620 --> 00:36:59,580 because we put the time into analyzing the hardware 775 00:37:00,520 --> 00:37:02,640 and trying to dive into the theory a little bit 776 00:37:02,640 --> 00:37:03,820 about what's actually going on. 777 00:37:06,660 --> 00:37:10,260 Okay, so in summary, you know, 778 00:37:10,260 --> 00:37:12,260 if you want to write down a checklist of things to do, 779 00:37:12,960 --> 00:37:15,320 you know, from our experience, this is what we do. 780 00:37:15,380 --> 00:37:16,440 Whenever we have to attack a signal 781 00:37:16,860 --> 00:37:18,140 or we're given a piece of hardware, 782 00:37:18,360 --> 00:37:20,140 this is our development process, right? 783 00:37:20,280 --> 00:37:22,460 You know, we will try and build the excelling budgets. 784 00:37:22,560 --> 00:37:24,240 For many systems, 785 00:37:25,860 --> 00:37:28,100 very strong performance data is out there. 786 00:37:29,360 --> 00:37:30,120 For example, 787 00:37:30,340 --> 00:37:30,660 uh, 788 00:37:32,640 --> 00:37:33,560 the old Loran towers, 789 00:37:33,680 --> 00:37:35,840 the Coast Guard used to go out and do these signal surveys 790 00:37:35,840 --> 00:37:36,840 and publish coverage maps 791 00:37:36,840 --> 00:37:39,320 of what the received field signal strength was 792 00:37:39,320 --> 00:37:40,140 at various points. 793 00:37:40,880 --> 00:37:43,040 And they're very useful for bounding your expectations, 794 00:37:43,360 --> 00:37:44,920 and even if you start where we did, 795 00:37:44,980 --> 00:37:46,460 where you don't know what all the parameters are, 796 00:37:46,580 --> 00:37:48,140 as you develop the system, 797 00:37:48,360 --> 00:37:50,320 some of them will reveal themselves to you, 798 00:37:50,460 --> 00:37:52,380 and then you can start populating them 799 00:37:52,380 --> 00:37:53,620 and sharpening the pencil on, 800 00:37:53,720 --> 00:37:57,780 well, okay, I know I'll need at least 20 dB of amplification, 801 00:37:57,980 --> 00:37:58,920 so let's just start with that, 802 00:37:59,000 --> 00:38:01,640 and then you'll refine the receiver. 803 00:38:01,640 --> 00:38:03,940 the receiver to get the performance that you want. 804 00:38:04,400 --> 00:38:05,880 Um, understand the hardware. 805 00:38:06,060 --> 00:38:06,300 So, 806 00:38:07,180 --> 00:38:09,120 take full advantage of the dynamic range. 807 00:38:09,600 --> 00:38:10,080 Um, 808 00:38:10,260 --> 00:38:11,260 very important. 809 00:38:11,560 --> 00:38:12,040 Uh, 810 00:38:12,180 --> 00:38:13,060 for transmitting, 811 00:38:13,640 --> 00:38:14,140 you know, 812 00:38:14,660 --> 00:38:15,520 and receiving, 813 00:38:15,700 --> 00:38:16,040 try, 814 00:38:16,460 --> 00:38:18,320 try to move some of that processing 815 00:38:18,320 --> 00:38:19,980 onto the FPGA or DSP. 816 00:38:20,180 --> 00:38:21,640 It's usually a very low-hanging fruit 817 00:38:21,640 --> 00:38:23,000 in whatever system you're trying to attack. 818 00:38:23,220 --> 00:38:24,180 If it's a spread spectrum signal, 819 00:38:24,440 --> 00:38:26,820 can you do the de-spreading on the FPGA? 820 00:38:27,260 --> 00:38:27,740 Um, 821 00:38:27,800 --> 00:38:29,780 because that dramatically reduces the sample rate 822 00:38:29,780 --> 00:38:30,340 you need to pass 823 00:38:30,340 --> 00:38:31,740 into your host processor. 824 00:38:32,500 --> 00:38:32,600 Um, 825 00:38:34,720 --> 00:38:35,120 and, 826 00:38:35,880 --> 00:38:36,920 you know, I think, 827 00:38:37,360 --> 00:38:38,960 I have really high hopes for RFNOC. 828 00:38:39,240 --> 00:38:39,640 Um, 829 00:38:40,200 --> 00:38:41,200 I think it will be 830 00:38:41,980 --> 00:38:42,700 a good, 831 00:38:42,860 --> 00:38:43,380 you know, 832 00:38:43,400 --> 00:38:44,300 there's really nothing, 833 00:38:44,480 --> 00:38:44,860 I don't, 834 00:38:44,880 --> 00:38:46,120 I'm not aware of any other efforts, 835 00:38:46,260 --> 00:38:46,620 um, 836 00:38:46,820 --> 00:38:48,140 that are like it. 837 00:38:48,220 --> 00:38:50,460 So, I think it has a lot of promise for the community, 838 00:38:50,540 --> 00:38:52,720 and helping to commoditize some of that, 839 00:38:53,300 --> 00:38:54,300 putting some of that processing 840 00:38:54,300 --> 00:38:56,440 on the application-specific hardware. 841 00:38:57,300 --> 00:38:57,700 Um, 842 00:38:58,300 --> 00:38:58,460 ah, 843 00:38:58,460 --> 00:38:59,500 one thing I didn't mention, 844 00:38:59,700 --> 00:39:00,020 ah, 845 00:39:00,140 --> 00:39:01,500 you may have noticed this in the photograph 846 00:39:01,500 --> 00:39:02,360 of the, 847 00:39:02,380 --> 00:39:02,520 ah, 848 00:39:02,520 --> 00:39:03,000 daughter board. 849 00:39:03,200 --> 00:39:03,580 Um, 850 00:39:03,800 --> 00:39:04,620 terminate your, 851 00:39:04,680 --> 00:39:05,320 your, 852 00:39:05,460 --> 00:39:05,700 ah, 853 00:39:05,700 --> 00:39:06,660 unused RF ports. 854 00:39:06,920 --> 00:39:07,260 Um, 855 00:39:07,520 --> 00:39:08,020 the, 856 00:39:08,200 --> 00:39:08,720 I, 857 00:39:08,800 --> 00:39:11,080 going back to the USRP as an example, 858 00:39:11,140 --> 00:39:12,540 the isolation between the two paths 859 00:39:12,540 --> 00:39:13,500 is only about 20 dB. 860 00:39:13,760 --> 00:39:14,240 So, 861 00:39:14,340 --> 00:39:15,800 if you're processing a high-power signal 862 00:39:15,800 --> 00:39:17,140 or transmitting a high-power signal, 863 00:39:17,320 --> 00:39:17,840 ah, 864 00:39:17,960 --> 00:39:19,440 your signal will absolutely jump paths. 865 00:39:19,720 --> 00:39:20,080 Um, 866 00:39:20,320 --> 00:39:21,400 and if you're not terminating, 867 00:39:21,640 --> 00:39:23,260 it's just going to reflect right back down 868 00:39:23,260 --> 00:39:23,780 on the electronics. 869 00:39:24,220 --> 00:39:24,660 Um, 870 00:39:24,880 --> 00:39:25,380 which, 871 00:39:25,460 --> 00:39:26,400 depending on 872 00:39:26,400 --> 00:39:28,000 what your signal power level is, 873 00:39:28,440 --> 00:39:29,540 that might be damaging. 874 00:39:29,860 --> 00:39:30,220 Um, 875 00:39:31,880 --> 00:39:33,240 which is another point, 876 00:39:33,380 --> 00:39:33,600 ah, 877 00:39:33,660 --> 00:39:34,100 to make. 878 00:39:35,060 --> 00:39:36,340 The ADC will say, 879 00:39:36,420 --> 00:39:38,520 the max input power of the ADC is X. 880 00:39:38,740 --> 00:39:39,180 Um, 881 00:39:39,740 --> 00:39:40,500 the input, 882 00:39:40,600 --> 00:39:42,400 the max input power to the amplifiers 883 00:39:42,400 --> 00:39:43,840 that you might put in front of the ADC 884 00:39:43,840 --> 00:39:45,380 or that may already be in front of the ADC 885 00:39:45,380 --> 00:39:46,400 is likely lower. 886 00:39:46,840 --> 00:39:47,180 Um, 887 00:39:47,700 --> 00:39:48,240 you know, 888 00:39:48,240 --> 00:39:48,300 I, 889 00:39:48,380 --> 00:39:49,060 for ex, 890 00:39:49,120 --> 00:39:49,620 a good example, 891 00:39:49,720 --> 00:39:49,920 so, 892 00:39:50,020 --> 00:39:50,480 ah, 893 00:39:52,260 --> 00:39:52,700 LNAs, 894 00:39:52,700 --> 00:39:54,940 5 dB max input power is pretty typical. 895 00:39:55,100 --> 00:39:56,140 High-noise amplifiers, 896 00:39:56,400 --> 00:39:56,480 I mean, 897 00:39:56,480 --> 00:39:57,340 go, 898 00:39:57,460 --> 00:39:57,860 or high, 899 00:39:58,000 --> 00:39:59,320 amplifiers with high-noise figures 900 00:39:59,320 --> 00:39:59,800 can go 901 00:39:59,800 --> 00:40:01,320 a little higher usually. 902 00:40:01,800 --> 00:40:02,240 Um, 903 00:40:03,880 --> 00:40:04,600 and where, 904 00:40:04,640 --> 00:40:05,480 if you're transmitting, 905 00:40:06,040 --> 00:40:07,220 amplifying the transmit side, 906 00:40:07,340 --> 00:40:08,180 not the receive side 907 00:40:08,180 --> 00:40:08,540 because 908 00:40:08,540 --> 00:40:10,300 if you're amplifying the receive side, 909 00:40:10,380 --> 00:40:11,260 if you do control both ends 910 00:40:11,260 --> 00:40:12,280 and you amplify on the receive side, 911 00:40:12,500 --> 00:40:13,720 you're also amplifying your noise. 912 00:40:14,040 --> 00:40:14,480 Um, 913 00:40:14,720 --> 00:40:15,660 on the transmit side, 914 00:40:15,740 --> 00:40:16,660 you're just amplifying your signal. 915 00:40:17,800 --> 00:40:18,240 So, 916 00:40:19,020 --> 00:40:19,760 that's what I got. 917 00:40:19,980 --> 00:40:21,540 I'd be happy to take any questions 918 00:40:21,540 --> 00:40:22,040 or, 919 00:40:22,100 --> 00:40:22,600 um, 920 00:40:23,200 --> 00:40:23,640 discussion. 921 00:40:23,860 --> 00:40:24,280 But, 922 00:40:24,360 --> 00:40:25,000 thanks for listening. 923 00:40:25,880 --> 00:40:26,320 . 924 00:40:26,320 --> 00:40:26,380 . 925 00:40:33,140 --> 00:40:33,500 . 926 00:40:33,500 --> 00:40:33,560 . 927 00:40:33,560 --> 00:40:33,580 . 928 00:40:33,580 --> 00:40:33,820 Dr. Pourne. 929 00:40:35,360 --> 00:40:35,840 All right. 930 00:40:35,960 --> 00:40:36,260 That was good. 931 00:40:36,440 --> 00:40:36,720 All right. 932 00:40:40,840 --> 00:40:41,200 So, 933 00:40:46,880 --> 00:40:47,580 I haven't, 934 00:40:47,580 --> 00:40:48,240 I haven't used the, 935 00:40:48,240 --> 00:40:49,340 the HackRF too much. 936 00:40:49,460 --> 00:40:49,740 . 937 00:40:59,640 --> 00:41:06,580 And I guess I would answer that by saying the best thing you can do would be some kind 938 00:41:06,580 --> 00:41:07,460 of analysis like this. 939 00:41:07,460 --> 00:41:08,400 This doesn't take that long. 940 00:41:08,520 --> 00:41:10,840 This maybe will take two hours of your time. 941 00:41:12,040 --> 00:41:14,180 And I'm sure it's out there in some capacity. 942 00:41:15,240 --> 00:41:16,940 So sorry I can't speak to that platform. 943 00:41:19,720 --> 00:41:20,160 Yes? 944 00:41:28,360 --> 00:41:36,280 So aside from someone that doesn't have MATLAB, and Simulink, and money to MATLAB, 945 00:41:36,340 --> 00:41:40,800 do you have any suggestions for getting into the VGA side of things? 946 00:41:41,100 --> 00:41:41,920 Yeah, sure. 947 00:41:42,120 --> 00:41:49,820 So some SDR platforms are, have system on chips, so that they have some element of, 948 00:41:50,160 --> 00:41:50,740 you know, embedded logic. 949 00:41:50,880 --> 00:41:55,000 And you can actually just code in whatever C language is used on that chip. 950 00:41:55,660 --> 00:42:01,420 Any of the zinc boards or anything like the new EDIUS E310s are an example of something 951 00:42:01,420 --> 00:42:01,860 like that. 952 00:42:05,200 --> 00:42:09,620 Otherwise, the only thing I'm aware of that really lowers that barrier of entry to close 953 00:42:09,620 --> 00:42:11,800 to zero is this RF knock capability. 954 00:42:12,480 --> 00:42:16,440 They do have some, there is some capability there. 955 00:42:16,540 --> 00:42:20,140 I know they have an FFT, and I know, and they are working on other blocks and working 956 00:42:20,140 --> 00:42:24,000 with the community to figure out what the other blocks should look like and how to 957 00:42:24,000 --> 00:42:24,560 develop them. 958 00:42:25,940 --> 00:42:27,540 And it is, they do deliver. 959 00:42:27,660 --> 00:42:28,480 It is easy to use it. 960 00:42:28,560 --> 00:42:34,520 They just drop right in your flow graph, and they're a special color, and to a, to a user 961 00:42:34,520 --> 00:42:39,460 like me who is also unfamiliar with, with detailed digital development, it's fairly 962 00:42:39,460 --> 00:42:39,860 transparent. 963 00:42:41,240 --> 00:42:46,000 But, but you can run some benchmarks and see huge increases in performance, as you would 964 00:42:46,000 --> 00:42:46,260 expect. 965 00:42:46,960 --> 00:42:49,540 At least as far as the MATLAB goes. 966 00:42:49,540 --> 00:42:57,300 How, how easy is it to interface with the generated error log that, or, would you not? 967 00:42:58,480 --> 00:42:58,880 No. 968 00:42:59,000 --> 00:43:04,620 So, so I know because I, I've, I've used it and successfully deployed code to the FPGA 969 00:43:04,620 --> 00:43:12,500 that does what I wanted it to do, and, and I, you know, I, I started, I started not 970 00:43:12,500 --> 00:43:13,160 knowing about it. 971 00:43:13,220 --> 00:43:16,780 Used it, you know, read it, and through only their documentation and examples was able 972 00:43:16,780 --> 00:43:17,520 to deploy the code. 973 00:43:17,620 --> 00:43:18,460 So, so it does work. 974 00:43:18,520 --> 00:43:18,940 And it is. 975 00:43:19,540 --> 00:43:23,420 It does work as advertised, and, and it can do some pretty, it can, it will solve your 976 00:43:23,420 --> 00:43:23,760 problems. 977 00:43:25,120 --> 00:43:29,360 The, the home, you know, the home licenses, I think are pretty new. 978 00:43:30,440 --> 00:43:34,220 And once I saw, once I saw that they had those, I was a big fan of them, because for 979 00:43:34,660 --> 00:43:38,740 $30 you can add the HDL generation capability of what's otherwise a very expensive license 980 00:43:38,740 --> 00:43:39,240 commercially. 981 00:43:41,000 --> 00:43:41,400 Yes. 982 00:43:42,640 --> 00:43:44,180 More of a general question. 983 00:43:44,560 --> 00:43:47,780 Why did you choose MATLAB Scenic over GD Radio? 984 00:43:48,200 --> 00:43:49,520 Or why do you, why do you, why did you choose GD Radio? 985 00:43:49,520 --> 00:43:53,000 Do you choose that for the product that you want to consider as a trade-off? 986 00:43:53,620 --> 00:43:54,020 Yeah. 987 00:43:54,100 --> 00:43:56,120 So, that's a good question. 988 00:43:59,620 --> 00:44:04,580 So, the, they've had, they've had these hardware support packages for, for available for many 989 00:44:04,580 --> 00:44:04,920 years. 990 00:44:07,920 --> 00:44:09,940 And some of it is probably just personal preference. 991 00:44:10,100 --> 00:44:13,440 I, I really like their, their interface and their, their glue and their capability. 992 00:44:13,800 --> 00:44:18,300 I think GD Radio has come a really long way, especially in their data visualization, where, 993 00:44:18,400 --> 00:44:19,320 you know, a couple years ago. 994 00:44:19,320 --> 00:44:25,060 If you wanted to, you know, the waterfall plots and the spectrograms were not super 995 00:44:25,060 --> 00:44:26,760 easy, at least in my experience, to get working. 996 00:44:28,760 --> 00:44:33,620 And, you know, as a, doing the development professionally, having, having the number 997 00:44:33,620 --> 00:44:37,020 you can call and say, hey, this is a bug in your software that we've discovered. 998 00:44:38,240 --> 00:44:40,860 You know, please fix this and it'll be fixed within a week. 999 00:44:43,000 --> 00:44:44,960 There's really, there's really no comparison for that. 1000 00:44:45,360 --> 00:44:49,300 That said, we do use, you know, we do use GD Radio for a lot of, you know, a lot of 1001 00:44:50,240 --> 00:44:50,680 stuff. 1002 00:44:50,680 --> 00:44:51,340 Pretty basic stuff. 1003 00:44:51,520 --> 00:44:58,060 So where we need to get somebody trained up on SDR, what SDR is and, and walking through 1004 00:44:58,060 --> 00:44:59,820 something like this, like here's GD Radio. 1005 00:45:00,160 --> 00:45:00,420 Go. 1006 00:45:00,740 --> 00:45:02,800 Here are a couple models and flow graphs we've built up. 1007 00:45:06,060 --> 00:45:10,180 So I, I mean it, it absolutely has our, has its place in our development cycle. 1008 00:45:10,440 --> 00:45:10,680 Yes? 1009 00:45:10,900 --> 00:45:16,500 How hard is it to integrate your code that you generated using that lab with the existing 1010 00:45:17,320 --> 00:45:18,200 UHD drivers? 1011 00:45:18,680 --> 00:45:19,280 So the... 1012 00:45:19,300 --> 00:45:27,360 So the way they approach it is they use Xilinx system generator to generate the HDL, 1013 00:45:27,440 --> 00:45:30,260 and you target a specific board. 1014 00:45:30,440 --> 00:45:33,920 So you can target the N210, any of the other Edis boards, 1015 00:45:34,100 --> 00:45:39,320 or you can create your own FPGA or board with the FPGA on it, which we've also done. 1016 00:45:41,040 --> 00:45:44,700 So it actually preserves all the functionality that Edis has in there. 1017 00:45:44,800 --> 00:45:48,980 So if Edis is filling up the FPGA 40%, you have 60% to work with. 1018 00:45:48,980 --> 00:45:51,940 You can't take up 65% and break Edis' code. 1019 00:45:52,280 --> 00:45:53,840 It's completely abstracted from you. 1020 00:46:02,760 --> 00:46:04,120 All right. Thanks.