1 00:00:00,000 --> 00:00:05,080 All right, so this talk is kind of going to serve as a kind of like... 2 00:00:05,080 --> 00:00:05,660 What? 3 00:00:06,820 --> 00:00:08,160 What about it? 4 00:00:08,940 --> 00:00:10,280 Wait, I'm supposed to pick it up? 5 00:00:11,300 --> 00:00:12,300 This one? 6 00:00:14,960 --> 00:00:16,220 Can you guys hear me? 7 00:00:16,440 --> 00:00:18,680 I can hear myself now too. 8 00:00:18,980 --> 00:00:20,860 It's actually kind of throwing me off. 9 00:00:20,860 --> 00:00:22,400 So I'm going to put earplugs in. 10 00:00:23,720 --> 00:00:25,020 Actually, hold on. 11 00:00:25,620 --> 00:00:30,080 All right, so this talk is kind of going to serve as like a Hey, what have we been doing with BladeRF? 12 00:00:30,080 --> 00:00:31,900 And like, hey, what is BladeRF? 13 00:00:32,920 --> 00:00:34,680 I presented here last year. 14 00:00:34,680 --> 00:00:40,240 Last year was like, I think we just started getting the first production boards out around this time. 15 00:00:40,360 --> 00:00:44,100 And software support was kind of there. 16 00:00:45,100 --> 00:00:48,160 It's undergone a lot of improvements in the past year. 17 00:00:48,160 --> 00:00:57,860 So if you're one of the first people to play around with the board and you ever unplug your board and you got a blue screen of death or like Linux crashed, I'm sorry. 18 00:00:58,060 --> 00:00:58,520 I'm sorry. 19 00:00:58,520 --> 00:01:00,960 I was hit by it like a couple of hundred times. 20 00:01:00,960 --> 00:01:08,180 I probably lost a crap ton of work because of LibUSB bugs and WinUSB bugs. 21 00:01:08,260 --> 00:01:11,820 But that is fortunately all behind us at the moment. 22 00:01:11,820 --> 00:01:16,720 So I apologize for the LibUSB drivers that we put out last year. 23 00:01:16,720 --> 00:01:19,560 But I think everything should be fine now. 24 00:01:21,060 --> 00:01:23,480 So kind of like, who am I? 25 00:01:23,480 --> 00:01:26,560 I'm a hardware engineer and an RF engineer. 26 00:01:26,820 --> 00:01:28,340 I'm the dude behind BladeRF. 27 00:01:28,340 --> 00:01:30,980 I did the schematics, layouts, and the initial firmware. 28 00:01:32,040 --> 00:01:34,040 I have a background in DSP. 29 00:01:34,040 --> 00:01:37,460 I've recently been looking at MIMO OFDM modems. 30 00:01:37,520 --> 00:01:45,300 If anyone can name a consumer radio protocol that is MIMO OFDM, that might kind of clue you in as like what we're working on behind the scenes. 31 00:01:45,300 --> 00:01:49,600 And if you've come to the booth, I probably have already kind of spilled the beans on what we're working on. 32 00:01:51,020 --> 00:01:53,360 I'm a long-time information security researcher. 33 00:01:53,360 --> 00:01:54,880 That's kind of like how I got into radio. 34 00:01:54,880 --> 00:01:57,060 I'm like, oh man, all these embedded devices. 35 00:01:57,500 --> 00:02:01,240 I wonder what kind of security they have. 36 00:02:01,240 --> 00:02:06,360 And it turns out that a lot of these really simple embedded devices don't have a lot of security. 37 00:02:06,360 --> 00:02:15,220 And with the Internet of Things coming, I'm kind of wondering if it's going to be an Internet of secure things or if it's going to be an Internet of broken things. 38 00:02:15,220 --> 00:02:21,500 And I've been an SDR user for many years. 39 00:02:21,920 --> 00:02:27,040 I've developed on other SDR-like platforms professionally in the past. 40 00:02:27,220 --> 00:02:41,260 Some things that have kind of like been like SIGINT-related things, so like orders of magnitude more expensive and orders of magnitude more high-precision than commercial SDRs. 41 00:02:43,540 --> 00:02:45,580 So that's SDR. 42 00:02:46,940 --> 00:02:49,880 This is kind of just like a recap of what the Blade RF is. 43 00:02:49,880 --> 00:02:55,320 It's a full duplex radio, so it's able to kind of like function as a GSM and LTE base station. 44 00:02:55,320 --> 00:03:07,400 It has an integrated FPGA, which kind of like lets you do some signal processing and also do like sample alignment for things like the GSM and LTE protocols. 45 00:03:07,400 --> 00:03:12,660 It's a highly efficient bus-powered platform, so it's pretty much powered off the bus. 46 00:03:13,200 --> 00:03:17,640 I'm not going to really get into sales pitch except maybe say that. 47 00:03:17,640 --> 00:03:20,380 It's designed and assembled in San Francisco, California. 48 00:03:23,520 --> 00:03:28,600 We've been doing a lot of cognitive radio and white space research in conjunction with a bunch of universities recently. 49 00:03:28,720 --> 00:03:35,480 Primarily University of Washington, trying to see like what 802.11 behaves like down in the white space bands. 50 00:03:35,480 --> 00:03:42,520 So there's a couple of research papers that we thought maybe we would be able to have out sometime this summer. 51 00:03:42,520 --> 00:03:47,080 But I think they'll kind of come sometime in fall for that. 52 00:03:48,600 --> 00:03:59,480 The architecture of the Blade RF is basically a Cypress FX3 USB3 transceiver chip that is hooked up to an FPGA. 53 00:03:59,480 --> 00:04:06,180 And the FPGA is hooked up to the LMS602D, which is a RF transceiver chip. 54 00:04:06,180 --> 00:04:16,500 So basically the FPGA is responsible for shuttling samples back and forth from the FX3 to the RF front end. 55 00:04:16,500 --> 00:04:21,080 And also doing a couple of correction things on the signal. 56 00:04:22,380 --> 00:04:26,940 We've baked in IQ and VC calibration into the FPGA now. 57 00:04:26,940 --> 00:04:36,340 So that you don't have to waste precious CPU cycles doing FIRs and inverse tangents and sines and cosines. 58 00:04:36,340 --> 00:04:39,840 Because we pretty much take care of all of that in Accordic inside of the FPGA. 59 00:04:39,840 --> 00:04:46,680 Accordic is basically hardware implementation of sine, cosine, and tangent functions. 60 00:04:47,300 --> 00:04:49,960 They're kind of based off of lookup tables. 61 00:04:50,140 --> 00:04:52,600 So they're kind of really efficient. 62 00:04:54,180 --> 00:04:56,680 The Blade RF is full duplex. 63 00:04:56,720 --> 00:04:58,520 The data converters are 12 bits. 64 00:04:58,520 --> 00:05:01,660 They run at 40 megasamples a second, quantum sampling. 65 00:05:01,660 --> 00:05:06,380 So you basically get a usable oversampled bandwidth of about 28 MHz. 66 00:05:08,920 --> 00:05:12,900 So that's the LMS602D chip that we use. 67 00:05:12,900 --> 00:05:15,500 It pretty much goes from RF to bits. 68 00:05:15,500 --> 00:05:23,260 So you push in RF on one end and you get received bits on the other side. 69 00:05:23,260 --> 00:05:29,540 It does everything from the data conversion to the filtering to the power amplification. 70 00:05:29,540 --> 00:05:35,420 The mixing, the quadrature mixing, and my quadrature mixing up to RF. 71 00:05:35,420 --> 00:05:43,260 Which is really cool because it does it in one single step as opposed to multiple super heterodyne stages. 72 00:05:43,840 --> 00:05:49,260 Which can actually end up having a pretty negative impact on RF quality. 73 00:05:50,620 --> 00:05:54,420 This is kind of like the overall architecture of the Blade RF. 74 00:05:54,420 --> 00:06:01,280 It's basically, as I said before, the FX3, the Cyclone 4 FPGA, and the LMS602D. 75 00:06:01,280 --> 00:06:10,760 There's something really cool about our platform and the fact that the VCCCXO is factory calibrated to be within 50 ppbm. 76 00:06:10,760 --> 00:06:21,140 So you can pretty much just run a GSM base station straight out of the box without needing to solder anything or improve the cloths in any way, shape, or form. 77 00:06:21,140 --> 00:06:27,140 So this is also the HDL block diagram of what goes on in the FPGA. 78 00:06:27,140 --> 00:06:32,200 So imagine this block diagram kind of popping up inside of the sky. 79 00:06:32,820 --> 00:06:46,600 There's an IOS core which ends up controlling all the peripherals on the board, including DECI-5338, which is Silicon Labs' flagship clock synchronization chip. 80 00:06:46,600 --> 00:06:50,720 It basically is able to do anything and everything with clocks. 81 00:06:50,720 --> 00:07:00,520 So we feed it a 38.4 MHz clock and it's able to do glitchless transitions between its multiple clock input pins. 82 00:07:00,520 --> 00:07:08,080 So if you have a 10 MHz clock reference, it's able to switch over it without glitching any of the clocks. 83 00:07:08,320 --> 00:07:13,500 It's able to have four separate banks, so it has four separate PLLs inside of it. 84 00:07:13,500 --> 00:07:21,700 It has one VCO, but the ability to output four completely different clock references. 85 00:07:21,700 --> 00:07:28,380 And that's really important if you have some interesting modulation schemes. 86 00:07:28,380 --> 00:07:34,020 So like ATSC ends up having sort of like a fractional... it's a rational, but still a fractional sampling rate. 87 00:07:34,020 --> 00:07:41,900 So you can just pretty much put those coefficients in for RX and TX and then you end up getting a sampling rate that is exactly what the protocol asks for. 88 00:07:41,900 --> 00:07:50,620 Because otherwise you'd have to end up doing a lot of re-sampling, which in CPU clock cycles is very expensive. 89 00:07:52,780 --> 00:08:00,060 So some of the recent improvements and additions that we've made to the platform is we've added automatic DC calibration. 90 00:08:00,060 --> 00:08:15,000 What automatic DC calibration does is that in an RF path, kind of like in this chip here, all of these separate components that you see end up adding... 91 00:08:15,000 --> 00:08:18,760 they all end up having certain bias voltages for them to function properly. 92 00:08:18,760 --> 00:08:23,320 And some of those bias voltages end up propagating all the way down to the data converters. 93 00:08:23,320 --> 00:08:35,480 So in the case of the receive path, you might end up having a... so the RXBGA for example might have a bias voltage for it to have a linear operation. 94 00:08:35,820 --> 00:08:44,500 So the ADCs will end up picking up that bias and you'll end up losing dynamic range. 95 00:08:44,500 --> 00:08:48,820 Because even though you'll still see a sine wave, you'll still be offset by like a little bit. 96 00:08:48,820 --> 00:08:58,840 So what DC calibration does is there's parts of the LMS602D that kind of subtract some of that bias voltage in different parts of the chain. 97 00:08:58,840 --> 00:09:04,080 So then you're able to recoup your entire static range for the receive side. 98 00:09:04,340 --> 00:09:15,320 The same applies to the TX side, where different parts of the chain basically end up having their own bias voltages, which then propagate down into the mixer. 99 00:09:15,320 --> 00:09:46,480 And then even if you have like a FSK modulator that ends up being like minus 1 kHz and plus 1 kHz where it's two constellation points, because some of those bias voltages propagate down to the mixer, you'll end up having kind of like a DC spectral component in the middle between those two constellation points, 100 00:09:46,480 --> 00:09:49,040 which can end up throwing off your calibration. 101 00:09:49,040 --> 00:09:53,460 So DC calibrations improve quite a bit. 102 00:09:53,600 --> 00:10:02,520 That was by far the biggest aberrating component to our receive and transmit capabilities. 103 00:10:02,520 --> 00:10:10,900 IQ calibration, we thought that IQ calibration was going to be off by quite a bit, but apparently these chips are really well calibrated in the factory. 104 00:10:10,900 --> 00:10:21,580 So what IQ calibration is, is in quadrature phase, or in quadrature representation, you end up having an in-phase component and a quadrature component, which is exactly 90 degrees out of phase. 105 00:10:21,580 --> 00:10:24,520 So that's kind of like how you generate your constellation points. 106 00:10:25,080 --> 00:10:32,060 So in theory, I and Q are like 90 degrees out of phase. 107 00:10:32,060 --> 00:10:37,060 In reality, I and Q might be like 89.2 degrees out of phase. 108 00:10:37,160 --> 00:10:44,900 So you might end up, instead of having linear modulation schemes, you may not be going around in a perfect circle. 109 00:10:44,900 --> 00:10:47,920 You might end up having kind of like an elliptical path. 110 00:10:47,960 --> 00:11:01,060 So what IQ calibration does is it tries to assume that either I or Q are perfect, and then using ATANs and sines, it tries to make the signal orthogonal again. 111 00:11:01,060 --> 00:11:05,500 Because you're pretty much dealing with a linear transformation, so you can use sines and cosines. 112 00:11:06,480 --> 00:11:17,700 So the aberrated signal ends up having a linear transformation applied to it because of the impurities in the RF path. 113 00:11:17,700 --> 00:11:32,440 So basically what IQ calibration does is it applies an inverse linear transformation to make I and Q as orthogonal as possible, and make your linear modulations have a perfect unit circle again. 114 00:11:32,500 --> 00:11:38,760 Which, in the end, decreases your bit error rate and makes everyone happy. 115 00:11:41,320 --> 00:11:49,540 We've added 1PPS synchronization for adding GPS DO clock taming. 116 00:11:49,540 --> 00:12:03,760 So now if you have a 1PPS GPS receiver, you can end up calibrating your clock even more, or have it be more accurate than 50 parts per billion. 117 00:12:04,900 --> 00:12:08,300 Which is kind of useful for some base station applications. 118 00:12:08,300 --> 00:12:10,900 Actually not some, but a lot of base station applications. 119 00:12:10,900 --> 00:12:21,460 Because the 3GPP spec requires that macrocells have a clock reference that's accurate than 50 parts per billion. 120 00:12:22,500 --> 00:12:33,700 And we're currently still working on figuring out the SI5338 10MHz reference handoff, because we feed the clock a 38.4MHz clock. 121 00:12:33,700 --> 00:12:50,300 And it'd be really nice if you can end up having a 10MHz reference that would drive the whole board, because there's a lot of rubidium and chip scale atomic clocks that output a really clean 10MHz reference. 122 00:12:50,360 --> 00:12:56,560 So as soon as we get that working, then we can probably end up getting a 1 part per billion clock reference. 123 00:12:57,900 --> 00:13:04,900 Which is really cool, and it's kind of needed for GPS simulations. 124 00:13:05,340 --> 00:13:09,820 Like if anyone's doing any GPS simulations, that's something that you might end up needing. 125 00:13:10,940 --> 00:13:14,140 The design of the Blade RF was done in ORCAD. 126 00:13:14,140 --> 00:13:15,840 The schematic was done in ORCAD. 127 00:13:16,200 --> 00:13:18,960 There's about 300-ish components on the whole board. 128 00:13:19,280 --> 00:13:20,800 The layout was done in Allegro. 129 00:13:20,800 --> 00:13:22,580 The whole board's about 8 layers. 130 00:13:23,740 --> 00:13:28,600 The routing is about 5mm wide with 5mm spacing. 131 00:13:28,600 --> 00:13:33,060 Just normal FR4 board was enough. 132 00:13:33,900 --> 00:13:36,900 None of this has really changed since last year, obviously. 133 00:13:37,160 --> 00:13:43,540 There's a lot of simulations that were done in HSPICE and Agilent ADS. 134 00:13:43,540 --> 00:13:55,560 Since last year, I've rerun everything in EMPro, which is Agilent's 3D field solver for electromagnetic waves, which is amazing. 135 00:13:56,780 --> 00:14:06,720 There's a human model head inside of EMPro, so you can simulate the loading on RF antennas. 136 00:14:06,720 --> 00:14:08,700 This thing simulates the universe. 137 00:14:08,700 --> 00:14:11,680 It simulates Maxwell's... well, it doesn't simulate. 138 00:14:11,680 --> 00:14:21,880 It solves Maxwell's equations, and it's able to derive the amount of loading that someone's pretty much water-filled head has on an antenna. 139 00:14:22,920 --> 00:14:33,040 We're not really doing any of that, but it's really cool to see how much loading, or how big of an effect someone's limbs or head has on an antenna. 140 00:14:33,040 --> 00:14:39,300 And then you kind of get an appreciation for what cell phone designers have to put up with. 141 00:14:42,480 --> 00:14:44,160 So, system testing. 142 00:14:44,220 --> 00:14:49,240 Basically, to ensure quality of the board, we do an overall system test. 143 00:14:49,240 --> 00:14:50,240 We check the rails. 144 00:14:50,240 --> 00:14:53,440 I mean, the contract manufacturer pretty much tests the rails. 145 00:14:53,500 --> 00:15:03,420 They look at the clock jitter from one of the clocking ports to ensure that the clocking architecture and the power supply are clean enough. 146 00:15:03,420 --> 00:15:14,260 Each board is then hooked up to a VSA and tested for about, I think, 25 seconds to ensure that its EVM is good enough for it to be shipped out. 147 00:15:14,260 --> 00:15:19,380 The overall SNR is about 36 dB for the whole platform. 148 00:15:20,720 --> 00:15:29,380 We've gotten some applications, now that we have IQ calibration and DC calibration in, we've kind of been able to tick into the mid-40s with that. 149 00:15:30,940 --> 00:15:32,420 Which is kind of cool. 150 00:15:34,240 --> 00:15:40,800 Last year, there were a lot of people that wanted to do ham radio applications. 151 00:15:41,320 --> 00:15:42,860 I mean, I wanted to. 152 00:15:44,020 --> 00:15:56,960 We promised to design a transverter board, which was a down-conversion board that would have the ability to go down into the ham radio bands. 153 00:15:57,200 --> 00:16:00,540 We thought we were going to do something simple, just like a simple mixer. 154 00:16:01,000 --> 00:16:03,600 And maybe have it be half-duplex. 155 00:16:03,600 --> 00:16:08,100 But then a lot of people really wanted full-duplex stuff for ham radio applications. 156 00:16:08,100 --> 00:16:15,100 Like, okay, we'll just duplicate the RF path, so then you end up having a mixer for both RX and TX. 157 00:16:16,840 --> 00:16:21,160 And then we realized that with a lot of AM and FM transmitters... 158 00:16:21,160 --> 00:16:28,600 Because I live in San Francisco, or lived in San Francisco... I mean, I still live in San Francisco, but when I was designing this, I still was in San Francisco proper. 159 00:16:28,600 --> 00:16:35,180 So there's a lot of big towers, like AM and FM transmission towers, up on Sutro Hill. 160 00:16:35,180 --> 00:16:43,520 So a lot of those terrestrial transmitters were kind of just completely mucking up the FM bands. 161 00:16:43,520 --> 00:16:47,140 So we kind of realized that we needed filters. 162 00:16:47,140 --> 00:16:52,620 Actually, a lot of filters, in order to block out a lot of these terrestrial transmitters. 163 00:16:53,620 --> 00:17:00,380 So I turned to Agilent Genesis, which has a lot of filter generation tools in it. 164 00:17:00,380 --> 00:17:03,300 So you can pretty much tell, like, oh, I want a Chudashev filter. 165 00:17:03,300 --> 00:17:04,900 Oh, I want a bandpass filter. 166 00:17:04,900 --> 00:17:06,600 Oh, I want what kind of filter. 167 00:17:06,600 --> 00:17:09,680 And then you put in your parameters, and it spits out a design for you. 168 00:17:09,900 --> 00:17:14,500 And as I expected, that was almost too good to be true. 169 00:17:14,740 --> 00:17:18,680 Because it gave me an 80 plus component filter. 170 00:17:19,140 --> 00:17:22,660 And we wanted to have about three separate bands. 171 00:17:22,660 --> 00:17:29,700 So the 50 MHz band, the 144 MHz band, and the 220 MHz band, covered with filters, both for receive and transmit. 172 00:17:29,700 --> 00:17:35,880 And we would not be able to fit about 500 components, just in filters alone. 173 00:17:35,880 --> 00:17:39,800 Some of them are like high Q, low ESR inductors. 174 00:17:39,800 --> 00:17:45,300 So we'd definitely not be able to fit like 30 of them, even on board. 175 00:17:47,180 --> 00:17:52,700 So I borrowed one of my friend's little red book of filter design, is what he had. 176 00:17:53,840 --> 00:18:03,980 He had a cover for the book, and the cover read, little red book of filter design. 177 00:18:03,980 --> 00:18:08,520 I'm not entirely sure what book I read, but it seemed like it was from the 50s. 178 00:18:08,520 --> 00:18:15,320 It just had a bunch of filter designs and topologies with the expected error rate for all of them. 179 00:18:15,320 --> 00:18:35,580 I plugged it into Genesys, verified it, and these about 20-ish component filters wound up having the same transfer functions as the 80 plus component filters that Genesys' filter synthesis tool had spit out. 180 00:18:35,580 --> 00:18:38,180 So I was happy with that. 181 00:18:39,240 --> 00:18:45,180 Then another big problem that popped up with the transverter design was a massive leakage from the LO. 182 00:18:45,180 --> 00:18:53,960 So the LO is the thing that basically generates your reference clock, or your reference tone against which you mix. 183 00:18:54,280 --> 00:19:01,660 So since we do low side injection, 10 MHz pops up... so the LO is at 1248 MHz. 184 00:19:01,660 --> 00:19:13,780 So 10 MHz for us pops up at 1238 MHz, which is 10 MHz below 1248, because I and Q are basically swapped because of the low side injection. 185 00:19:13,780 --> 00:19:20,060 We actually use FPGA to swap I and Q when people are transverting. 186 00:19:20,060 --> 00:19:27,300 So that's how you end up with a real signal, again, when you go down below 300 MHz and are transverting. 187 00:19:27,960 --> 00:19:35,880 But the LO wound up having a lot of problems with leakage into the rest of the design. 188 00:19:35,880 --> 00:19:43,820 So then we had to come up with a power design consideration in software for the ADF4351, which is the LO. 189 00:19:43,820 --> 00:19:50,220 So basically the LO turns off any time you aren't using it so that it doesn't leak into the rest of the board. 190 00:19:50,500 --> 00:19:57,740 Another problem with the LO is that it drives... the way that mixers work is that they require a lot of power from the LO. 191 00:19:57,740 --> 00:20:04,220 So the LO is driven at around plus 5 dBm. 192 00:20:04,740 --> 00:20:11,140 So that actually ends up emanating into the rest of the components and coupling into a bunch of the other components. 193 00:20:11,140 --> 00:20:18,020 So then the LO kind of needed its own little shield to keep it from interfering with the rest of the components on the board. 194 00:20:20,020 --> 00:20:26,820 There was also a lot of interference from the FPGA, because as we all know, FPGAs are digital chips that switch really fast. 195 00:20:26,820 --> 00:20:33,700 And parts of our LO and parts of our filter paths, and even our mixers, were right above the FPGA. 196 00:20:33,780 --> 00:20:53,480 So when I tried shrinking the design so that a bunch of these components would be on the other side of the board, they wound up picking switching noise from the FPGA, which is really hard to pick up, because basically each FPGA image that you design ends up using different parts of the FPGA, 197 00:20:53,480 --> 00:21:02,280 because of the way that the synthesizer and the place and route works out the new image for the FPGA. 198 00:21:02,420 --> 00:21:13,280 So you generate a new image, and then you end up getting a different power, or a PSB, kind of like a power spectral density for the noise that you're receiving. 199 00:21:13,280 --> 00:21:15,220 And you're like, oh man, what is going on? 200 00:21:15,220 --> 00:21:24,200 Well, it turned out that the FPGA was coupling into the transverter, so then all the components had to be moved to the top layer, which I kind of had a feeling that I would have to do. 201 00:21:24,220 --> 00:21:30,580 So then the board basically doubled in size, and fortunately, a lot of that interference... 202 00:21:30,580 --> 00:21:42,300 I mean, from the looks of it, most of that interference disappeared, now that there's about five layers of planes in between the transverter's components and the FPGA. 203 00:21:43,220 --> 00:21:49,560 Another big problem with filters is a phenomenon known as DQing. 204 00:21:49,920 --> 00:21:58,740 So what DQing is, as the name indicates, it's the DQing of passive components. 205 00:21:58,820 --> 00:22:07,140 So what the Q factor indicates is how sharp the roll-off of the filter will be when it's used in a filter design. 206 00:22:07,140 --> 00:22:18,540 So DQing is caused by a coupling of the inductor or the capacitor to a ground or power plane beneath it. 207 00:22:18,540 --> 00:22:30,240 So if we look at the finished layout, you basically see a lot of holes for the big filters and a couple of the capacitors. 208 00:22:30,240 --> 00:22:33,540 Actually, can you guys see what I'm pointing... let me see... 209 00:22:35,300 --> 00:22:39,680 Yeah, so all those are holes in the ground and power planes. 210 00:22:40,800 --> 00:22:53,580 Actually, no, there's a power plane all the way at the bottom of the board that was left intact, because that kind of needs to protect the transverter from the interference caused by the FPGA. 211 00:22:53,580 --> 00:23:08,080 But then all of the other ground and power planes that are right underneath the inductors and capacitors basically end up having all these holes underneath them so that they don't create this parasitic capacitance with those components. 212 00:23:08,500 --> 00:23:19,360 So basically this way the Q factor of the filters is maintained and you end up with some pretty sharp looking filters. 213 00:23:19,360 --> 00:23:25,400 This was generated with the E8357 Agilent VNA. 214 00:23:26,540 --> 00:23:33,080 So this is the 50 MHz band frequency response for the filter. 215 00:23:33,340 --> 00:23:40,740 This is the 144 MHz band and this is like the 220 MHz band. 216 00:23:41,100 --> 00:23:46,260 Software automatically selects all of these with a 1 and 3 dB roll-off. 217 00:23:46,260 --> 00:24:00,420 So if you want the library to automatically select a filter, you can ask it to use the 1 dB roll-off range or the 3 dB roll-off range. 218 00:24:00,420 --> 00:24:06,380 For most ham radio operations I would suggest using the 1 dB roll-off range because then you end up getting... 219 00:24:06,380 --> 00:24:15,660 I mean the 3 dB roll-off range because then you end up getting some really strong rejection against terrestrial transmitters. 220 00:24:18,240 --> 00:24:20,220 I'm going back a bit here. 221 00:24:20,220 --> 00:24:23,040 So this is basically the block diagram of the transverter. 222 00:24:23,040 --> 00:24:30,720 As I said, there's three different filter banks for all those different ham radio bands. 223 00:24:30,720 --> 00:24:38,040 There's also an additional optional filter bank where you can plug in your own filters if you so wish. 224 00:24:38,940 --> 00:24:46,480 These are the two mixers and this is the LO. 225 00:24:46,480 --> 00:24:56,340 There's a bunch of filters to ensure that you just end up getting the low side of the mixing coming in to the rest of the board. 226 00:24:58,520 --> 00:25:02,300 So that's basically the story of the transverter. 227 00:25:02,300 --> 00:25:12,400 I apologize if anyone waited for it for too long but I think that some of the design improvements were kind of worth the wait. 228 00:25:13,080 --> 00:25:22,760 One other big issue that I've spent battling like most of this year was adding GSM support to the Blade RF. 229 00:25:23,370 --> 00:25:33,100 The most important thing for GSM and LTE and UMTS is the ability to timestamp samples. 230 00:25:33,100 --> 00:25:39,000 So all these protocols are based off of very strict and stringent timing requirements. 231 00:25:39,000 --> 00:25:45,080 So GSM ends up having time slots and subframes and frames and hyperframes. 232 00:25:47,660 --> 00:25:54,780 MS, which is the mobile station, which is the handheld device, expects to be able to talk to the base station at specific times. 233 00:25:54,780 --> 00:25:59,600 So the base station needs to know exactly what message was sent to it at different times. 234 00:25:59,600 --> 00:26:03,500 Because each time slot in time is a separate channel. 235 00:26:03,620 --> 00:26:12,340 So the way that GSM works, for example, is if you power your phone on, your phone is not associated to any base station and is not part of the core network. 236 00:26:12,340 --> 00:26:22,540 So if you power your phone on, your phone starts scanning for all the local base stations and ultimately decides to associate to the one with the highest RSSI. 237 00:26:23,400 --> 00:26:27,840 Actually, RSSI is not an indicator that GSM associates to. 238 00:26:27,840 --> 00:26:30,320 It's a variety of factors. 239 00:26:30,320 --> 00:26:39,500 But received power is maybe the top consideration that it uses to associate to a base station. 240 00:26:39,500 --> 00:26:55,440 So once a handheld device is like, oh, I'm going to associate to this base station, it starts looking for its control channels that help it do frequency offset correction and timing correction. 241 00:26:55,440 --> 00:27:03,760 So then the handheld device can end up being on the same frequency, like exactly the same frequency as the base station. 242 00:27:03,760 --> 00:27:13,360 And also, the handheld device is then able to have the same sampling rate as the base station. 243 00:27:13,360 --> 00:27:19,580 So that kind of ends up increasing the SNR and decreasing the bit error rate of their communication. 244 00:27:19,580 --> 00:27:36,300 Another interesting thing that GSM does is, there's something called timing advance control in GSM, which is, if you're a handheld device that's really close to the base station, your transmit time is not going to be that long. 245 00:27:36,300 --> 00:27:44,360 So the frame that you send to the base station is basically going to arrive towards the beginning of your allotted time slot. 246 00:27:44,360 --> 00:27:53,620 But if you're like 5 kilometers away, GSM lets you be up to like 130 kilometers away according to the 3GPP spec. 247 00:27:53,620 --> 00:27:59,360 That's assuming that you have an amplifier powerful enough for your base station and your phone to work at that distance. 248 00:27:59,360 --> 00:28:02,140 But say that you're about 130 kilometers away. 249 00:28:02,140 --> 00:28:12,560 At 130 kilometers away, your propagation time is going to be ridiculously longer than if you're right next to the base station. 250 00:28:12,560 --> 00:28:18,320 So what the base station does is it sends something known as a timing advance control to the handheld device. 251 00:28:18,320 --> 00:28:32,380 And the handheld device then adjusts when it starts sending samples to the base station so that from the base station's perspective, it receives samples at the time that the base station expects it to. 252 00:28:32,380 --> 00:28:35,060 So like at the very beginning of its time slot. 253 00:28:35,080 --> 00:28:42,580 People have used this methodology to do locationing of GSM handheld devices. 254 00:28:42,580 --> 00:28:51,620 If you know the round trip time, which is the timing advance control divided by 2, you basically know the distance from the handheld device to the base station. 255 00:28:52,120 --> 00:29:05,320 And GSM does it very accurately so you can kind of end up getting a resolution that will be able to give you a distance within a couple of tens of feet or so. 256 00:29:05,940 --> 00:29:10,220 So it was really cool learning about all that stuff. 257 00:29:10,220 --> 00:29:16,340 Another interesting thing about timing advance control is that it's basically a negative feedback control system. 258 00:29:16,340 --> 00:29:28,140 So if you mess up your arithmetic for when you send out samples, you run the risk of turning the timing advance control into a positive feedback system. 259 00:29:28,140 --> 00:29:45,300 Or you end up creating positive feedback in a negative feedback control system, which basically causes the whole GSM stack to oscillate with regards to timing slot assignments. 260 00:29:46,420 --> 00:29:49,520 So that only took about 2 months to debug. 261 00:29:50,340 --> 00:30:09,860 Another interesting thing is because receive and transmit end up having different timestamps, or because they might have slightly different sampling rates, because of the number of ARFCNs that might be running in the GSM base station, receive and transmit can run at slightly different rates. 262 00:30:09,860 --> 00:30:14,120 So then you need to implement something like... they're called flankters. 263 00:30:14,680 --> 00:30:23,120 They're digital design idioms that let you bring a signal from one clock domain into the other clock domain. 264 00:30:23,120 --> 00:30:34,740 So clock domain issues like glitching in digital design systems is actually really hard to track down. 265 00:30:34,740 --> 00:30:44,860 Because if you look at it with a digital logic analyzer or an FPGA logic analyzer, you can actually end up seeing a counter count from 1 to 10, and it ends up skipping numbers. 266 00:30:44,860 --> 00:30:46,980 How did this thing happen? 267 00:30:47,560 --> 00:30:49,060 It's because it's glitching. 268 00:30:49,060 --> 00:31:00,280 Basically what glitching is, is if you have a bunch of registers, they may not all get the rising clock edge at the same time, and setup and hold times are violated because of that. 269 00:31:00,280 --> 00:31:03,960 So then you end up with not a digital system. 270 00:31:03,960 --> 00:31:07,960 Well, it is a digital system, but it's not a coherent digital system. 271 00:31:08,720 --> 00:31:18,920 Another big issue that I had in adding GSM support to the radio was finding the correct SIMs to put into GSM phones. 272 00:31:18,940 --> 00:31:27,480 So if anyone ever wants to play around with OpenBTS or YateBTS, I would suggest getting SuperSIMs. 273 00:31:27,480 --> 00:31:38,920 They're super easy to program, and they're pretty much the only thing that I found that worked well with these open source GSM base stations. 274 00:31:40,020 --> 00:32:05,920 Another issue that I had with developing support for GSM was the fact that I wound up buying a bunch of phones from some vendor that was selling Nokia handhelds from like 1999 or something, and I'm like, oh sweet, these phones end up having some debug utilities in them that show you the network and the RSSI of the network, 275 00:32:05,920 --> 00:32:08,640 and the MCC and the MNC of the network. 276 00:32:09,040 --> 00:32:15,880 So I bought those phones, and I couldn't even get them to associate to the PRATCH channel, which is the physical random access channel. 277 00:32:15,880 --> 00:32:21,020 It's how a handheld device associates, or begins associating to a base station. 278 00:32:21,020 --> 00:32:29,460 So it turned out that these phones got zapped or something, because their GSM modems were completely wrong. 279 00:32:29,560 --> 00:32:36,720 So I thought there was a problem with the PRATCH versus synchronization in OpenBTS and YateBTS. 280 00:32:36,720 --> 00:32:39,560 Turns out it wasn't, and turns out it was just bad phones. 281 00:32:39,560 --> 00:32:47,820 So I would actually suggest using somewhat more modern phones when messing around with these open source GSM base stations. 282 00:32:50,360 --> 00:32:56,760 So another cool thing that we've done in the past year is we've been working with Legba and Nullteam. 283 00:32:56,860 --> 00:33:01,460 Legba is basically David Burgess, who's the brains behind OpenBTS. 284 00:33:01,460 --> 00:33:15,460 He kind of left his previous company and started a new company, and he's partnered with Nullteam, who are the people responsible for the core network implementation that powers Google Voice. 285 00:33:15,460 --> 00:33:28,400 They also enable a lot of MVNOs in Europe by providing them with core network routing technologies for cellular or telephony networks. 286 00:33:28,400 --> 00:33:38,680 So according to their metrics, I think they said something like one in three phone calls in Europe is routed through one Yate switch. 287 00:33:38,680 --> 00:33:40,380 So that's pretty cool. 288 00:33:41,380 --> 00:33:51,760 YateBTS is actually a really interesting project because it's evolution of OpenBTS. 289 00:33:51,900 --> 00:34:01,160 So what YateBTS is, is this GSM core network capable base station. 290 00:34:01,160 --> 00:34:11,420 So what that means is that OpenBTS, you can think of OpenBTS as an access point, like a 802.11 access point. 291 00:34:11,420 --> 00:34:14,280 And you're like, oh sweet, now I'm associated to an access point. 292 00:34:14,940 --> 00:34:17,200 I've now built the internet. 293 00:34:17,200 --> 00:34:33,200 Well, that's not true, because there's a lot of things like, I don't know, STP, BGP, and a lot of other routing protocols that need to happen for the large global networking thing to occur. 294 00:34:33,200 --> 00:34:45,560 The same thing applies to telephone networks, because just because you have a GSM base station, it doesn't mean that you can now start deploying things like AT&T or Sprint. 295 00:34:45,560 --> 00:35:01,760 So what OpenBTS and Google VoIP, I'm sorry, like what Nullteam have done is that they've combined the OpenBTS base station with Nullteam's GSM core network stack. 296 00:35:01,760 --> 00:35:08,660 So now they're able to deploy really inexpensive GSM technology to developing nations. 297 00:35:08,660 --> 00:35:23,760 It turns out that big cell phone equipment vendors have a stranglehold on the market and engage in anti-competitive behaviors when it comes to pricing their GSM and LTE stacks, even to developing nations. 298 00:35:23,760 --> 00:35:37,760 So this completely software-defined GSM and GSM core network stack can actually have massive social and economic impacts in these developing nations. 299 00:35:40,360 --> 00:35:45,240 So what is the roadmap for us and all the other people that we're working with? 300 00:35:45,240 --> 00:35:55,600 We're supporting Legba and Nullteam in adding LTE support for our radio. 301 00:35:55,600 --> 00:36:06,820 So in about a month, month and a half, so September or October, there's going to be a completely open-source LTE stack that runs with the Blade RF. 302 00:36:06,820 --> 00:36:13,240 Same radio, just a software upgrade to YateBTS. 303 00:36:13,240 --> 00:36:18,740 We've also been experimenting a lot with a bunch of FPGA modems. 304 00:36:18,740 --> 00:36:26,600 So that's basically running consumer radio modems directly into FPGA. 305 00:36:26,620 --> 00:36:40,940 So hopefully I'll have a somewhat more in-depth talk on some of those modems next year, once we've actually got them out the door and have been able to do some information security related research with them. 306 00:36:41,640 --> 00:36:44,760 Another thing that we've been working on is a real-time spectrum analyzer. 307 00:36:44,760 --> 00:36:47,160 Who here has used GR Phosphor? 308 00:36:48,040 --> 00:36:50,480 Yeah, it is. 309 00:36:50,480 --> 00:36:55,800 Well, actually, with Ubuntu 14.04, it's actually kind of decent now. 310 00:36:56,700 --> 00:37:01,940 So upgrade Ubuntu, I guess, is my advice. 311 00:37:01,940 --> 00:37:09,580 And if NVIDIA or the ATI card that you have doesn't really work that well, maybe use the Intel OpenCL driver. 312 00:37:09,580 --> 00:37:18,820 So we're actually thinking about doing the same kind of thing in the FPGA, so then you can end up running something like GR Phosphor on Raspberry Pi. 313 00:37:18,820 --> 00:37:20,620 It would be kind of cool to do. 314 00:37:21,900 --> 00:37:28,060 The Radar application, we've been kind of working on this Radar application for about a year now. 315 00:37:28,060 --> 00:37:37,700 But it kind of seems to be not something that we feel comfortable releasing due to a bunch of patent things. 316 00:37:37,700 --> 00:37:41,580 So we've kind of abandoned that project and probably should have removed it from the roadmap. 317 00:37:41,700 --> 00:37:42,560 Sorry about that. 318 00:37:42,560 --> 00:37:44,560 So a bunch of cool projects that people have done. 319 00:37:44,560 --> 00:37:48,780 There's people that have built GPS receiver with BladeRF. 320 00:37:48,780 --> 00:37:51,780 Other people have built ADS-B receivers and transmitters. 321 00:37:51,780 --> 00:37:59,160 I didn't get to finish this list because I was kind of doing this as I was waiting for food. 322 00:37:59,460 --> 00:38:04,800 And I realized I was a couple minutes late to this presentation, so this list is kind of short. 323 00:38:06,600 --> 00:38:23,340 And another one of our community members who is actually sitting in the audience wound up doing an ATSC transmitter demo, which is really cool because you can just use TVs to tune in to DTV or an ATSC channel and basically see yourself on TV. 324 00:38:23,900 --> 00:38:26,980 And that's it.