Hi, everyone. I'm Mike Calabro. I work at Booz Allen out in Los Angeles, where we run a digital communications lab. We focus a lot on communications and actually navigation and timing signals as well. We use software-defined radios as rapid prototyping platforms. There are a lot of great development frameworks out there. I've used most of them. I shouldn't say all, because I'm sure there's one I haven't heard of. In general, software-defined radio, I think, has done a really good job of commoditizing digital communications. It lets you be a really smart software engineer or a ham guy. With very little formal education, plug a system into your laptop and download a new radio for free. One of the many pre-canned applications, for example, is a really cool... cool ADS-B demo that you can hook up an antenna to your laptop and observe all... kind of get an air picture of what's around you. And that's great. For a lot of what we do, building deployable systems, building systems that interact with real commercial systems, if you're just doing that, you're leaving a lot of performance on the table. And so the goal of this talk is to hopefully streamline some of your developments a little bit, ask some questions, point you in the right direction as to where you can start immediately debugging some common issues, 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 software-defined radios integrated with GNU Radio or MATLAB and Simulink for some more interesting and more demanding applications. So we'll come back to this picture towards the end of the briefing, but So we'll come back to this picture towards the end of the briefing, but 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. this is what we're interested in processing. And we just saw this on the side, and spoiler, it shouldn't be there, or it shouldn't look like that. And so by the end, hopefully, you'll have some tools to help solve this problem yourself. All right. So just to level set everybody, talk a little bit about what exactly we're doing. 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. So fundamentally, we know that there's an RF signal propagating through some medium. It can be free space. It doesn't have to be. It could be water. It could be a building. It could be propagating as a ground wave. All of those things come with unique bonus characteristics that make processing the signal interesting. But common platforms like the USRP, common platforms like the USRP, in the RTL-SDR, they all have different architectures for how they implement the RF front end. And fundamentally, with all that's doing, mixing down the baseband into an ADC that's digitizing your signal, the ADC has a dynamic range, something that will come back to you and is very important for optimizing the performance of your application. There may be some filtering and decimation that happens afterwards. And then, of course, the baseband processing. So the baseband processing is what you're doing in GNU Radio when you're building your flow graph. Modulation, demodulation, encoding, decoding. Eventually, maybe generating messages that you might pass up to Wireshark or some other waveform-specific processing. 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 were these RF daughterboards that, you know, they had relatively flat performance over some frequency range. And if you wanted to process an HF signal after processing Wi-Fi, you had to swap out the daughterboard to one that was specifically tuned for that frequency range. Nowadays, what you're getting into with the latest generations of the EDIS radios are these RF integrated circuits. The Blade RF also uses one. So there are two main manufacturers, Analog Devices and Lime Microsystems, 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. The Analog Devices chip actually has the ADC integrated into the RFIC. 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. Then you have this third class of devices like the RTL-SDR. These are really at the entry level of software-defined radio hardware platforms. They weren't designed to be software-defined radios. The RTLs, for example, was a DVPT, digital video broadcast for terrestrial TV signals. That someone figured out that, hey, I can enable this developer mode and get the raw IQ out of it, and I'll just feed that IQ into a host and see what else I can see. 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, this one does not. And so you'll see all kinds of interesting things if you try and tune outside the TV bands, and just weird artifacts. It does, however, have an AGC, an automatic gain control. The two USRPs here do not have AGCs integrated onto the boards. And that has an important implication for maximizing the performance of the ADC, which we'll talk about in a minute. All right, so this is the favorite thing I like to do whenever I get a new software-defined radio hardware platform, is break open the box. Figure out what all the chips are on the circuit board. Yes, sometimes there are schematics published, but even if you read the schematic, sometimes they'll just give you the family of chips. So the USRP is a good example of that. If you look at the schematic and you Google the ADC on it, a TI data sheet pops up with seven families of specific chips that it might be, and you have to know a little bit more about the system to narrow it down. It's much easier just to read the chip number off the board. And the takeaway is, each one of these components that processes the RF signal has some kind of performance curve versus frequency. Ideally, it's flat. Typically, it's not. And even, as we'll show for the USRP later, in the amplifiers the USRP uses, it's got a pretty monotonically decreasing gain curve. So you can set your gain to 31, but you are probably not getting 31 dB of gain. All right. So talking about hardware now. Talk will be broken up into three main parts. Hardware, the development platforms, and then some specific case studies where we walk through some examples of work that I've done and seen and how we solve some of the challenges. So with hardware, how do you zoom in on your signal of interest? So you have an idea of something that you want to collect. What do you need to know about it? Do you need to know where it is? How do you find out about it? The RF front end and important parameters that drive its performance, its gain, noise figure, is it doing any filtering for you? Is there a way to optimize that filtering? Sometimes there is. And then the baseband processor, which that can be implemented on some combination of the FPGA DSP that is typically part of the software-defined radios hardware platform, or it might be implemented completely on the laptop. So typically, boxes like the USRP, there's room on the FPGA for your own code, but most people don't know how to use VHDL, or code VHDL, right? You might be a comm systems engineer or a software person, and you may not have the time or the inclination to go learn how to program that FPGA. There's a really cool effort out of Edis Research right now called RFNOC, RF Network on a Chip, where they've developed an interface to go back to the FPGA and some pre-canned logic packages, for example, they have an FFT and a tuner that let you actually send samples back to the FPGA for really fast processing and then take those samples back. Right now, most of the interface is just one way in GNU Radio. You just have an output port, and it's whatever you can do, whatever you can process, and how fast you can process it determines what you're capable of achieving. So if you have a background in digital communications, you may recognize the link equation. It's a pretty generic form of it. The performance of a digital comm system is typically spec'd in terms of the signal-to-noise ratio of energy per bit to noise. It's great from a theoretical perspective, and I highly recommend that when you're trying to attack a specific signal, you do this out in Excel and figure out maybe what you think you should be seeing. But you very rarely know all the parameters of this, especially when you're collecting against a third-party target where you don't control the transmitter. The other important thing is that... So, you know, thermal noise floor, super low, right? Maybe you're in a band where there's atmospheric noise, so the noise floor is closer to 120 dBm. But none of that really matters. What matters is your ADC sensitivity. So if you are familiar with the USRP N210, you know, they advertise, depending on where you look, minus 10 dB to plus 10 dB max input power and minus 85 dB maximum input power. So that's the sensitivity level. So what that means is that if your signal is below that level, you won't see it. So an example of a signal that should, you know, everyone processes probably almost every single day that falls below that level is the GPS signal that comes in at around, I believe it's minus 137 dBm. So immediately you need some kind of external amplification if you want to process it with the USRP. And then there are other consequences of it. So, for example, if your signal level is hovering at 80 dB, your small signal, if there's a signal in an adjacent band that is also being processed by the ADC, your signal is going to get squished and won't be properly quantized. So it's important that you amplify the band of interest to get into that really sweet blue spot of the ADC. And this is going to be different for every hardware platform. It's also going to be different for different sampling rates of the ADC. So what you'll find if you look up the USRP N210, ADC is that it's a family of parts, and they have, there's a 150-megasample ADC, there's a 100-megasample ADC, there's a 60-megasample ADC, and they all have different performance curves, which can impact that. So, let's see, things that you can do when you're building a receiver to fix this, the easiest way, best thing you can do is external amplification. Depending on the frequency range you're working in, you can usually get some nice amplifiers. For, you know, maybe 50 bucks to boost your signal. So this is the same thing for the N210 that I did for the RTL, calling out the key components. The ones that you probably care most about are those two amplifiers on the daughterboard. This is the SPX daughterboard. And this is an example of why this matters. So this is the noise figure over frequency, and this is the gain over frequency. And this is the frequency that the SPX is spec'd for operation over. So what you can see here is that you can have a 4 dB gain, 4 dB deviation on up to two amplifiers in your processing chain if you're trying to use them and expecting flat performance. So what does it mean when you set the gain value in the properties of the USRP source, right? So you're trying to tune this gain. And it may not correspond one-to-one with what you think it is. The good thing is that they do have this really low noise figure, which is great. But you might consider adding additional amplification in front of it. The other thing to point out is this FPGA. So there is some room on the FPGA for your custom code. And, you know, with RFNOC, and I personally use MATLAB and Simulink as a development platform and have had some great success with that. But with their code synthesis and putting code onto that FPGA, you know, you can really save your host processing, which I think is the next thing I'm going to talk about. So the pipe is always big enough, right? The thing that you plug into your computer, whether it be USB 3.0, 2.0, or your gigabit Ethernet, there are very few signal processing applications that won't fit over those interfaces. You're processing challenged. So how many samples per second can you process? Or if you're not looking for real-time processing, how many samples per second can you store in memory before you overflow your memory buffer? And it's never as many as you'd like it to be. So from my experience, very challenging requirements to meet with these plug-and-play software-defined radio-to-host interface architectures include latency requirements. So if I need to transmit on a time slot and meet some guard interval, frequency hopping applications, wideband spread spectrum, the signal of interest actually is only maybe a megahertz wide, but it's spread over 20 megahertz. And then TDD and FTD timing, where the band changes from uplink to downlink. Some of those have very challenging requirements to meet. And how do you schedule a transmit time? It's not really possible to do reliably without getting into this FPGA. So I already talked a little bit about RFNOC. And, you know, before, this was the old, and this is the new. To my knowledge, they are only, this is specific to EDIS and their USRPs. It has just started beta, so it is, you know, open source. So you can go participate in it right now, but what you can do with it is limited. But I really hope it takes off and becomes adopted by the community, because I think it would be really powerful to have an accessible library to deploy to these FPGAs and, you know, make that part of software-defined radio accessible to everybody. All right. So development platforms and some application-specific stuff. So there are three main development platforms that I'm aware of. GNU Radio, MATLAB, and this thing called RedHawk. So I think most people here are familiar with GNU Radio. You know, it's free, open source, supports a ton of hardware. RFNOC is coming along. It integrates directly into it. My one, I guess, bone to pick with it is other hardware support and some of the consistency I've seen in the blocks. So, for example, you know, one block decimation might be specified as a rate, and in another one it might be a factor. So just consistent nomenclature is important when you're trying to develop things that you might deploy. And then what I mean by other hardware is, you know, integrating into TI DSP chips or various sensor interfaces or APIs. And if, you know, right now, if someone has the interest and the time to write that interface, it gets written. And if not, you know, you kind of got to do it yourself. MATLAB, you know, it is known for being an expensive commercial license, but what many people don't know is that for home use, for, I think, about $130 plus $30 per toolbox, you know, you too can have the full professional capability of MATLAB and their various hardware support packages. I am a fan of its code synthesis. I know not everyone is. But I'll show an example later where we were able to do something very simple to the FPGA on the N210 with that code synthesis capability that, you know, it solved our problem. And before, it would have, you know, we would have given it to a digital developer, which, you know, maybe he's on staff, but he's super busy and just doesn't have the time to take care of our problem. RedHawk is something that is starting to come out. It was released about two years ago. It is open source, but it is maintained by the government. And it is, if any of you are familiar with SCA, it's if you develop a waveform in RedHawk, it's SCA compliant. And it has very limited hardware support right now. I've heard rumors that they may be adding more hardware support in the near future. But for now, I would classify it more as a signal processing framework than a true hardware-in-a-loop development framework like MATLAB and GNU Radio are. Okay, so this is what you see when you double-click on your source. It looks about the same in MATLAB and GNU Radio. And something to point out here is that the... When you use these blocks, you know, the UHD and the USRP has a lot of functionality that isn't necessarily exposed by these blocks. One example is, you know, changing bits per sample. It does support the 8-bit sampling mode. Good luck enabling it in MATLAB because it doesn't support it. The TX metadata, that's a way that uses... You can use the timestamp, the samples. And so if you have a time-aware application, it's super useful for scheduling transmit times. But again, not exposed in Simulink. And I don't believe it's exposed in GNU Radio. Someone can correct me if I'm mistaken. And so, okay, well, let's focus on what you can affect and can change. So DC. So for example, if you tune to a frequency and you digitally down-convert and, you know, you're looking at the spectrum analyzer and you just see this giant spike where there should be no signal at 0 Hz, you know, that's some kind of DC noise. So ways to cheat. You know, you can use the LO offset to just kind of shift your signal to 40 kHz and then manually down-convert it to avoid that noise. Decimation factor. The USRPs are sensitive to the decimation factor. On the N210 specifically, the way they cascade the CIC filters, choose your decimation factor wisely because, you know, powers of 2 will result in... I guess I don't know if I should classify this as a gain or less of a loss, but you will see an SNR difference if you use a decimation factor that is a power of 2 non-power of 2 decimation factor. And the reason for that is the roll-off... kind of where your signal is falling and the roll-off of the filters. So the filter is actually... even though it's decimating and filtering out noise, it's also taking out a piece of your signal. So use powers of 2 for the USRP. And then this parameter is interesting because the latest USRPs actually have ADCs with configurable sample rates. And so that can also be used... when combined with decimation, that can solve a lot of problems. I'd rather just sample at an inherently lower sample rate than, you know, be stuck with the 100-megasample-per-second fixed rate and then have to manually decimate down later. Okay, so that was kind of the theory level set. Kind of shotgunned a whole bunch of parameters and trade spaces at you. So now we're gonna focus more on specific examples and applications. So, you know, one common thing is, okay, so let's build a GSM network, right? So it's cellular. There's lots of commercial equipment available. There's OpenBTS that can run this part of it. And, you know, all this hardware, you know, it's narrowband. It should be super easy, right? Well, so... you do have to do some work on the MS, and depending on what you're trying to do, you still have to do some work on the BTS. And if you actually want the COTS MS to interoperate with your network in a reliable way before you want to start thinking about doing other stuff to it, you know, this is what you should be drawing. So, you know, that's the Obi-Wan that you might show to a manager. But this is what you as a developer need to be aware of. So OpenBTS, for those of you who aren't aware, is a really cool open source project that implements a GSM BTS that runs on USRPs. They used to make their own hardware. They've since stopped. And it combines their own interface to the UHD with a couple of other open source projects to, you know, give you a fully functioning GSM network that you can camp your own phone to. And, you know, you can actually share your Internet connection through the Ethernet on your computer and get data running over GPRS. And it's really cool. But it's also, when you want to build the MS side of it, it gets pretty challenging because all of a sudden you have to think about all of these things that maybe you're not used to thinking about. So this is an example of the GSM frame and the GSM time slot. And you see, so the blue is your data. And you have these guard intervals on either side. And this yellow thing here is a synchronization pattern right in the middle of the time slot. So your data's actually split. So when you're transmitting, when you're transmitting as the MS, you have to basically start and stop in that little red area. Excuse me. So this is what your interfaces look like. Each one has, you know, this is the COTS area. The RF goes into, you know, probably a nice fancy Qualcomm chip. That is, GSM is occupying some small percentage of it. And it's also running 3G modems, 4G modems, maybe even Bluetooth, Wi-Fi, and GPS. But these delays are deterministic and known. On this chip, when you're implementing a mobile stack, you can start the counter, count for 10 cycles, stop the counter, and know exactly how much time has passed. How do you do that here? And the answer is you really can't without deploying code here. So the trick, the key is to either reduce, to reduce the amount of processing that happens here or to reduce the amount of data that's flowing over this interface. Either way will buy you closer to real-time capability. Now, it's significantly easier to build a, just a collector, right? So for those of you who aren't familiar, this is the Simulink, this is Simulink MathWorks product where, you know, you can kind of just hit go, model will run. Buffers, if you start, if you start falling behind, it buffers in memory on a variable size buffer that you can configure. And it, you know, it's really cool. You can just output a, you know, it has similar display, displays as GNU Radio does. Much easier to build receive-only, much harder to build transmit and receive capability in a single, in a single model of Flowgraph. Post-processing. So many times people will just want to record signals. Another interesting application that I was working with recently was actually Radar. So Radar is interesting because, you know, you actually care about propagation time and distance. And so when you're trying to test these systems, unless you're on a radar range, you have to find a really long hallway and set up an antenna, hopefully directional, point it down the hallway, shoot the signal off something that is reflective, wait for it to come back. And then, you know, how many nanoseconds was that? What was I sampling at? Am I even able to capture the reflection? And so, you know, in a time and frequency domain, you know, here we're, I think we're talking roughly 30 nanoseconds per sample. And, you know, we're able to measure a little nice reflection here at about 230 feet, one nanosecond per foot. And in a frequency domain, measure, you know, velocities. I've just had an intern run down the hall really fast and he got up to eight miles an hour, so good for him. And measure the Doppler shift. And so when, it's an example of an application area that these software-defined radios can be, you know, they're pieces of communication equipment, but hey, they can do any kind of signal application, so why not try radar, right? And let's see. So to enable this kind of processing, radar is an exception. Here we were actually sampling at 25 mega-samples per second for about one second. And, you know, more, you know, maybe you can get realistically for real-time processing one, two, three mega-samples if you're using GNU Radio and the pre-existing Blocks and Companion. But oversample where you can because that will give you, that will let you have some digital gain in your signal processing. And most, probably I should have put this as number one, but the most important thing you can do is use the full dynamic range of the ADC. So pay attention to the value of the samples that are coming out of the source block. If their floating point is the magnitude approaching one, if they're integers, what's the dynamic range of the ADC? Is it 14 bits? Is it 12 bits? And what are the values of the integers coming out of the source block? If they're, like, in the tens, you're not even close. If they're in the hundreds, you're still not close. You know, you ideally want to see that plus or minus 15,000 value. It's also important to note, for the USRP specifically, you know, you have a 14-bit ADC, but it's outputting 16-bit integers. So how is that working? And it turns out they use the most significant bit and the least two significant bits are zero-padded. All right, so now I'm going to talk about what optimizing and improving the performance of the system. So I have one really specific example, and then I have a little bit of a case study that solved a very specific problem that we were working through and had a bunch of unique challenges. And it's related to the picture that was at the very beginning of the briefing. So maximizing the baseband host interface. So we had a problem where we wanted to do a live demo for a client, and we needed the demo to run for about five minutes because that's about how long you were going to pay attention for. And the, you know, we couldn't get it done, and we didn't have a lot of time to do that. So, you know, we built up our receiver architecture, and the deadline was approaching. We didn't really want to move significant parts of the receiver processing into the FPGA or DSP, just kind of too high risk. So we got the idea of, well, so at some sample rate, the SDR is delivering us 16-bit samples. I can process a million samples before I overflow. And continuous processing was important here. So what if we go into the FPGA and have it, you know, truncate the sample that comes out of the ADC and send four 4-bit samples packed into a 16-bit word? Okay, that sounds pretty easy. So we actually were able to use the HDL synthesis capability of Simulink to implement that. And, you know, this is what it looks like. The blocks there are just custom-packing things. They're custom-packing functions. They're maybe one line of code each. Very simple, and it was a great example of, well, we have this product, and let's see if it actually works as advertised. And it did. And, you know, looking... When comparing it to GNU Radio, I think it's important to understand what you're getting in both development platform. And so, you know, we are not... I am not a VHDL developer, but I was still able to deploy code to the FPGA to solve a problem, and this did solve a problem. It quadrupled our runtime. And why did this work? So we took 12-bit samples, made them 4-bit samples. So we lost a lot of fidelity in what we were sampling. But because we had done our homework on the link budget and really found that blue sweet spot on the performance curve to maximize the dynamic range of... to take full advantage of the dynamic range in the ADC, you know, 4 bits was enough to accurately represent our signal. Okay. So this is the signal I was trying to process earlier. So for those of you who aren't familiar, ELorAN is a terrestrial navigation system. It was active in the United States and then was shut down maybe about five... I forget exactly when, maybe about five, ten years ago. Because, hey, we have GPS, so why do we need this terrestrial navigation system? Well, now it's coming back because people are realizing that GPS isn't always super reliable. And, for example, if you're South Korea, North Korea is just jamming your GPS all day. So you're seeing ELorAN being deployed internationally, and they just turned on a station, one of the old Loran sea stations in Wildwood, New Jersey, just maybe 20 minutes south of Atlantic City. They're super high... They're really interesting signals to work with. And they capture a lot of the trade space of... SDRs are... There's no reason you can't process this signal with an SDR, but you really have to know what you're doing to do it. Because they're low frequency. They're 90 kilohertz to... 99% of the power is from 90 kilohertz to 110 kilohertz. Not a very standard frequency range to be operating in. They also, because of their frequency, propagate as ground waves. They propagate as sky waves. They're subject to re-radiation. So if you're in an urban environment, and where we collected it, and I'll show in a minute, was kind of near the Chesapeake Bay, so if there are a lot of bridges, it'll... The wires in a bridge will re-radiate the signal. It's an extremely high power signal. The advertised range is about 1,000 miles. And so the challenges we were facing was, okay, we're so included... Well, it's such a strange band, it's hard to find amplifiers for this band. It's hard to find things whose... Um... Their frequency-dependent parameters go below 100 kilohertz. Most places start at 100 kilohertz, and then when you look at the data sheets, the performance data on the data sheets starts at, like, 30 megahertz. So even though it's spec'd that low, you don't necessarily see the full performance curve, so you have to characterize it yourself, or just trust that it's flat. Because not a lot of work is done here, we actually found a software bug in the interface. In this case, we were using Simulink, so we found a bug in the way they were handling it, which, to the math works, is credible. They've got it, they've since fixed, and super responsive in working with us there. Um... And the LFRX daughterboard for the USRP does not have an LNA in front of it. So you're dealing with an extremely noisy ADC with about a 30 dB noise figure. Um... So you need one of those amplifiers that's hard to find in the performance range that you're operating in. Um... So... Let's see. Oh, and for comparison, so this is what the signal should look like. This was collected on a spectrum analyzer. Um... I believe this is a 3 Hz resolution bandwidth. Um... So there's clearly some difference between what we're observing in our SDR development framework and what the truth is. You know, here, there is no amplification. Here, there is an ampli... Here, there is amplification. So that's maybe a hint as to what's going on there. Um... Okay. So... You know, I talked a little bit earlier about why you want to know your link budget and build your link budget, and, you know, this is what we tried to do for ELRAN, and it obviously just didn't work because we don't know any of these things. Um... So, you know, we don't know their true transmit power. We know it's typically in the hundreds of kilowatts to low megawatts, but we don't know exactly what it is. We don't know the gain of the antenna. We don't know the gain of our antenna because, again, of the frequency range. You can go buy a magnetic core antenna that will give you flat performance, but, you know, this costs $20 at Home Depot. It's just maybe about 100 feet of wire wound around a PVC pipe. There is no capacitor to pull down the resonant frequency. But it did the job, you know, and it worked. We don't know what our gain was. We had a significant mismatch loss. We did characterize it on a network analyzer, and, you know, we basically built a giant inductor. Um... And let's see. Other things. Ah, the X. So here, X matters very much so because atmospheric noise, you would expect maybe 50 to 80 dB of atmospheric noise at these frequencies depending on what time of day you collect. And that's important because it depends on the time of day. So if you collect at 9 a.m. in the morning, you'll see different performance than if you collect at 8 p.m. at night. And so if before, you know, one day you work really late, you leave your model where it is and you think you had it working, the next day you come in and start on it in the morning, you might see 30 dB of variation in what you were processing. So, you know, if you just plug all this stuff into Excel with kind of swags at it and at what these parameters should be, you end up with, well, I think I should be at, like, maybe minus 50 dBm. And, you know, truth said that we were at minus 99. So it helps a lot to have some of this measuring equipment available to you. to validate what you're measuring. And then for various signals, for example, cellular coverages, there are coverage maps available online that will give you signal measurements at various monitoring points, like what the RISI is at, you know, one mile out, five miles out. And people will just drive along the highway taking signal measurements. So this is what we ended up doing. So the LFRX data board, we did use it. The software bug ended up being related to. So this is where knowing your hardware really helps because the LFRX is really just a, it's just an SMA input into, that just goes directly into the motherboard of the N210. There's not much going on there. So we knew that there was digital down conversion happening in the N210. And what we were finding was that if you set the center frequency, well, nothing's happening. So we ended up needing to, fortunately, what our center frequency of interest was only 100 kilohertz. So we could just, the ADC was just capable of capturing that bandwidth, and we were able to down convert manually. With atmospheric noise, we did our collection in mid-morning when, you know, we believed that we had characterized it over a couple days, which really just run the spectrum analyzer and then, you know, have it report back once an hour what the noise floor was. The LNA had a 3 dB noise figure, so that brought down our system noise figure. And we ended up just testing a family of LNAs to, you know, which one has the best edge of spec performance. We were 10 kilohertz out of spec. And we think that that was the source of, the source of that distortion that we were seeing. And we ended up with this really nice, you know, we did the correlation, so Loran is just a pulse signal, and it's designed to be super easy to receive, and you would expect something kind of like this if you were to correlate it against the Loran pulse. So at the end of the day, we were able to get it, but we were only really able to get it because we put the time into analyzing the hardware and trying to dive into the theory a little bit about what's actually going on. Okay, so in summary, you know, if you want to write down a checklist of things to do, you know, from our experience, this is what we do. Whenever we have to attack a signal or we're given a piece of hardware, this is our development process, right? You know, we will try and build the excelling budgets. For many systems, very strong performance data is out there. For example, uh, the old Loran towers, the Coast Guard used to go out and do these signal surveys and publish coverage maps of what the received field signal strength was at various points. And they're very useful for bounding your expectations, and even if you start where we did, where you don't know what all the parameters are, as you develop the system, some of them will reveal themselves to you, and then you can start populating them and sharpening the pencil on, well, okay, I know I'll need at least 20 dB of amplification, so let's just start with that, and then you'll refine the receiver. the receiver to get the performance that you want. Um, understand the hardware. So, take full advantage of the dynamic range. Um, very important. Uh, for transmitting, you know, and receiving, try, try to move some of that processing onto the FPGA or DSP. It's usually a very low-hanging fruit in whatever system you're trying to attack. If it's a spread spectrum signal, can you do the de-spreading on the FPGA? Um, because that dramatically reduces the sample rate you need to pass into your host processor. Um, and, you know, I think, I have really high hopes for RFNOC. Um, I think it will be a good, you know, there's really nothing, I don't, I'm not aware of any other efforts, um, that are like it. So, I think it has a lot of promise for the community, and helping to commoditize some of that, putting some of that processing on the application-specific hardware. Um, ah, one thing I didn't mention, ah, you may have noticed this in the photograph of the, ah, daughter board. Um, terminate your, your, ah, unused RF ports. Um, the, I, going back to the USRP as an example, the isolation between the two paths is only about 20 dB. So, if you're processing a high-power signal or transmitting a high-power signal, ah, your signal will absolutely jump paths. Um, and if you're not terminating, it's just going to reflect right back down on the electronics. Um, which, depending on what your signal power level is, that might be damaging. Um, which is another point, ah, to make. The ADC will say, the max input power of the ADC is X. Um, the input, the max input power to the amplifiers that you might put in front of the ADC or that may already be in front of the ADC is likely lower. Um, you know, I, for ex, a good example, so, ah, LNAs, 5 dB max input power is pretty typical. High-noise amplifiers, I mean, go, or high, amplifiers with high-noise figures can go a little higher usually. Um, and where, if you're transmitting, amplifying the transmit side, not the receive side because if you're amplifying the receive side, if you do control both ends and you amplify on the receive side, you're also amplifying your noise. Um, on the transmit side, you're just amplifying your signal. So, that's what I got. I'd be happy to take any questions or, um, discussion. But, thanks for listening. . . . . . Dr. Pourne. All right. That was good. All right. So, I haven't, I haven't used the, the HackRF too much. . And I guess I would answer that by saying the best thing you can do would be some kind of analysis like this. This doesn't take that long. This maybe will take two hours of your time. And I'm sure it's out there in some capacity. So sorry I can't speak to that platform. Yes? So aside from someone that doesn't have MATLAB, and Simulink, and money to MATLAB, do you have any suggestions for getting into the VGA side of things? Yeah, sure. So some SDR platforms are, have system on chips, so that they have some element of, you know, embedded logic. And you can actually just code in whatever C language is used on that chip. Any of the zinc boards or anything like the new EDIUS E310s are an example of something like that. Otherwise, the only thing I'm aware of that really lowers that barrier of entry to close to zero is this RF knock capability. They do have some, there is some capability there. I know they have an FFT, and I know, and they are working on other blocks and working with the community to figure out what the other blocks should look like and how to develop them. And it is, they do deliver. It is easy to use it. They just drop right in your flow graph, and they're a special color, and to a, to a user like me who is also unfamiliar with, with detailed digital development, it's fairly transparent. But, but you can run some benchmarks and see huge increases in performance, as you would expect. At least as far as the MATLAB goes. How, how easy is it to interface with the generated error log that, or, would you not? No. So, so I know because I, I've, I've used it and successfully deployed code to the FPGA that does what I wanted it to do, and, and I, you know, I, I started, I started not knowing about it. Used it, you know, read it, and through only their documentation and examples was able to deploy the code. So, so it does work. And it is. It does work as advertised, and, and it can do some pretty, it can, it will solve your problems. The, the home, you know, the home licenses, I think are pretty new. And once I saw, once I saw that they had those, I was a big fan of them, because for $30 you can add the HDL generation capability of what's otherwise a very expensive license commercially. Yes. More of a general question. Why did you choose MATLAB Scenic over GD Radio? Or why do you, why do you, why did you choose GD Radio? Do you choose that for the product that you want to consider as a trade-off? Yeah. So, that's a good question. So, the, they've had, they've had these hardware support packages for, for available for many years. And some of it is probably just personal preference. I, I really like their, their interface and their, their glue and their capability. I think GD Radio has come a really long way, especially in their data visualization, where, you know, a couple years ago. If you wanted to, you know, the waterfall plots and the spectrograms were not super easy, at least in my experience, to get working. And, you know, as a, doing the development professionally, having, having the number you can call and say, hey, this is a bug in your software that we've discovered. You know, please fix this and it'll be fixed within a week. There's really, there's really no comparison for that. That said, we do use, you know, we do use GD Radio for a lot of, you know, a lot of stuff. Pretty basic stuff. So where we need to get somebody trained up on SDR, what SDR is and, and walking through something like this, like here's GD Radio. Go. Here are a couple models and flow graphs we've built up. So I, I mean it, it absolutely has our, has its place in our development cycle. Yes? How hard is it to integrate your code that you generated using that lab with the existing UHD drivers? So the... So the way they approach it is they use Xilinx system generator to generate the HDL, and you target a specific board. So you can target the N210, any of the other Edis boards, or you can create your own FPGA or board with the FPGA on it, which we've also done. So it actually preserves all the functionality that Edis has in there. So if Edis is filling up the FPGA 40%, you have 60% to work with. You can't take up 65% and break Edis' code. It's completely abstracted from you. All right. Thanks.