WEBVTT

00:00.000 --> 00:05.080
All right, so this talk is kind of going to serve as a kind of like...

00:05.080 --> 00:05.660
What?

00:06.820 --> 00:08.160
What about it?

00:08.940 --> 00:10.280
Wait, I'm supposed to pick it up?

00:11.300 --> 00:12.300
This one?

00:14.960 --> 00:16.220
Can you guys hear me?

00:16.440 --> 00:18.680
I can hear myself now too.

00:18.980 --> 00:20.860
It's actually kind of throwing me off.

00:20.860 --> 00:22.400
So I'm going to put earplugs in.

00:23.720 --> 00:25.020
Actually, hold on.

00:25.620 --> 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?

00:30.080 --> 00:31.900
And like, hey, what is BladeRF?

00:32.920 --> 00:34.680
I presented here last year.

00:34.680 --> 00:40.240
Last year was like, I think we just started getting the first production boards out around this time.

00:40.360 --> 00:44.100
And software support was kind of there.

00:45.100 --> 00:48.160
It's undergone a lot of improvements in the past year.

00:48.160 --> 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.

00:58.060 --> 00:58.520
I'm sorry.

00:58.520 --> 01:00.960
I was hit by it like a couple of hundred times.

01:00.960 --> 01:08.180
I probably lost a crap ton of work because of LibUSB bugs and WinUSB bugs.

01:08.260 --> 01:11.820
But that is fortunately all behind us at the moment.

01:11.820 --> 01:16.720
So I apologize for the LibUSB drivers that we put out last year.

01:16.720 --> 01:19.560
But I think everything should be fine now.

01:21.060 --> 01:23.480
So kind of like, who am I?

01:23.480 --> 01:26.560
I'm a hardware engineer and an RF engineer.

01:26.820 --> 01:28.340
I'm the dude behind BladeRF.

01:28.340 --> 01:30.980
I did the schematics, layouts, and the initial firmware.

01:32.040 --> 01:34.040
I have a background in DSP.

01:34.040 --> 01:37.460
I've recently been looking at MIMO OFDM modems.

01:37.520 --> 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.

01:45.300 --> 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.

01:51.020 --> 01:53.360
I'm a long-time information security researcher.

01:53.360 --> 01:54.880
That's kind of like how I got into radio.

01:54.880 --> 01:57.060
I'm like, oh man, all these embedded devices.

01:57.500 --> 02:01.240
I wonder what kind of security they have.

02:01.240 --> 02:06.360
And it turns out that a lot of these really simple embedded devices don't have a lot of security.

02:06.360 --> 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.

02:15.220 --> 02:21.500
And I've been an SDR user for many years.

02:21.920 --> 02:27.040
I've developed on other SDR-like platforms professionally in the past.

02:27.220 --> 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.

02:43.540 --> 02:45.580
So that's SDR.

02:46.940 --> 02:49.880
This is kind of just like a recap of what the Blade RF is.

02:49.880 --> 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.

02:55.320 --> 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.

03:07.400 --> 03:12.660
It's a highly efficient bus-powered platform, so it's pretty much powered off the bus.

03:13.200 --> 03:17.640
I'm not going to really get into sales pitch except maybe say that.

03:17.640 --> 03:20.380
It's designed and assembled in San Francisco, California.

03:23.520 --> 03:28.600
We've been doing a lot of cognitive radio and white space research in conjunction with a bunch of universities recently.

03:28.720 --> 03:35.480
Primarily University of Washington, trying to see like what 802.11 behaves like down in the white space bands.

03:35.480 --> 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.

03:42.520 --> 03:47.080
But I think they'll kind of come sometime in fall for that.

03:48.600 --> 03:59.480
The architecture of the Blade RF is basically a Cypress FX3 USB3 transceiver chip that is hooked up to an FPGA.

03:59.480 --> 04:06.180
And the FPGA is hooked up to the LMS602D, which is a RF transceiver chip.

04:06.180 --> 04:16.500
So basically the FPGA is responsible for shuttling samples back and forth from the FX3 to the RF front end.

04:16.500 --> 04:21.080
And also doing a couple of correction things on the signal.

04:22.380 --> 04:26.940
We've baked in IQ and VC calibration into the FPGA now.

04:26.940 --> 04:36.340
So that you don't have to waste precious CPU cycles doing FIRs and inverse tangents and sines and cosines.

04:36.340 --> 04:39.840
Because we pretty much take care of all of that in Accordic inside of the FPGA.

04:39.840 --> 04:46.680
Accordic is basically hardware implementation of sine, cosine, and tangent functions.

04:47.300 --> 04:49.960
They're kind of based off of lookup tables.

04:50.140 --> 04:52.600
So they're kind of really efficient.

04:54.180 --> 04:56.680
The Blade RF is full duplex.

04:56.720 --> 04:58.520
The data converters are 12 bits.

04:58.520 --> 05:01.660
They run at 40 megasamples a second, quantum sampling.

05:01.660 --> 05:06.380
So you basically get a usable oversampled bandwidth of about 28 MHz.

05:08.920 --> 05:12.900
So that's the LMS602D chip that we use.

05:12.900 --> 05:15.500
It pretty much goes from RF to bits.

05:15.500 --> 05:23.260
So you push in RF on one end and you get received bits on the other side.

05:23.260 --> 05:29.540
It does everything from the data conversion to the filtering to the power amplification.

05:29.540 --> 05:35.420
The mixing, the quadrature mixing, and my quadrature mixing up to RF.

05:35.420 --> 05:43.260
Which is really cool because it does it in one single step as opposed to multiple super heterodyne stages.

05:43.840 --> 05:49.260
Which can actually end up having a pretty negative impact on RF quality.

05:50.620 --> 05:54.420
This is kind of like the overall architecture of the Blade RF.

05:54.420 --> 06:01.280
It's basically, as I said before, the FX3, the Cyclone 4 FPGA, and the LMS602D.

06:01.280 --> 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.

06:10.760 --> 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.

06:21.140 --> 06:27.140
So this is also the HDL block diagram of what goes on in the FPGA.

06:27.140 --> 06:32.200
So imagine this block diagram kind of popping up inside of the sky.

06:32.820 --> 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.

06:46.600 --> 06:50.720
It basically is able to do anything and everything with clocks.

06:50.720 --> 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.

07:00.520 --> 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.

07:08.320 --> 07:13.500
It's able to have four separate banks, so it has four separate PLLs inside of it.

07:13.500 --> 07:21.700
It has one VCO, but the ability to output four completely different clock references.

07:21.700 --> 07:28.380
And that's really important if you have some interesting modulation schemes.

07:28.380 --> 07:34.020
So like ATSC ends up having sort of like a fractional... it's a rational, but still a fractional sampling rate.

07:34.020 --> 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.

07:41.900 --> 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.

07:52.780 --> 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.

08:00.060 --> 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...

08:15.000 --> 08:18.760
they all end up having certain bias voltages for them to function properly.

08:18.760 --> 08:23.320
And some of those bias voltages end up propagating all the way down to the data converters.

08:23.320 --> 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.

08:35.820 --> 08:44.500
So the ADCs will end up picking up that bias and you'll end up losing dynamic range.

08:44.500 --> 08:48.820
Because even though you'll still see a sine wave, you'll still be offset by like a little bit.

08:48.820 --> 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.

08:58.840 --> 09:04.080
So then you're able to recoup your entire static range for the receive side.

09:04.340 --> 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.

09:15.320 --> 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,

09:46.480 --> 09:49.040
which can end up throwing off your calibration.

09:49.040 --> 09:53.460
So DC calibrations improve quite a bit.

09:53.600 --> 10:02.520
That was by far the biggest aberrating component to our receive and transmit capabilities.

10:02.520 --> 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.

10:10.900 --> 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.

10:21.580 --> 10:24.520
So that's kind of like how you generate your constellation points.

10:25.080 --> 10:32.060
So in theory, I and Q are like 90 degrees out of phase.

10:32.060 --> 10:37.060
In reality, I and Q might be like 89.2 degrees out of phase.

10:37.160 --> 10:44.900
So you might end up, instead of having linear modulation schemes, you may not be going around in a perfect circle.

10:44.900 --> 10:47.920
You might end up having kind of like an elliptical path.

10:47.960 --> 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.

11:01.060 --> 11:05.500
Because you're pretty much dealing with a linear transformation, so you can use sines and cosines.

11:06.480 --> 11:17.700
So the aberrated signal ends up having a linear transformation applied to it because of the impurities in the RF path.

11:17.700 --> 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.

11:32.500 --> 11:38.760
Which, in the end, decreases your bit error rate and makes everyone happy.

11:41.320 --> 11:49.540
We've added 1PPS synchronization for adding GPS DO clock taming.

11:49.540 --> 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.

12:04.900 --> 12:08.300
Which is kind of useful for some base station applications.

12:08.300 --> 12:10.900
Actually not some, but a lot of base station applications.

12:10.900 --> 12:21.460
Because the 3GPP spec requires that macrocells have a clock reference that's accurate than 50 parts per billion.

12:22.500 --> 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.

12:33.700 --> 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.

12:50.360 --> 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.

12:57.900 --> 13:04.900
Which is really cool, and it's kind of needed for GPS simulations.

13:05.340 --> 13:09.820
Like if anyone's doing any GPS simulations, that's something that you might end up needing.

13:10.940 --> 13:14.140
The design of the Blade RF was done in ORCAD.

13:14.140 --> 13:15.840
The schematic was done in ORCAD.

13:16.200 --> 13:18.960
There's about 300-ish components on the whole board.

13:19.280 --> 13:20.800
The layout was done in Allegro.

13:20.800 --> 13:22.580
The whole board's about 8 layers.

13:23.740 --> 13:28.600
The routing is about 5mm wide with 5mm spacing.

13:28.600 --> 13:33.060
Just normal FR4 board was enough.

13:33.900 --> 13:36.900
None of this has really changed since last year, obviously.

13:37.160 --> 13:43.540
There's a lot of simulations that were done in HSPICE and Agilent ADS.

13:43.540 --> 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.

13:56.780 --> 14:06.720
There's a human model head inside of EMPro, so you can simulate the loading on RF antennas.

14:06.720 --> 14:08.700
This thing simulates the universe.

14:08.700 --> 14:11.680
It simulates Maxwell's... well, it doesn't simulate.

14:11.680 --> 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.

14:22.920 --> 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.

14:33.040 --> 14:39.300
And then you kind of get an appreciation for what cell phone designers have to put up with.

14:42.480 --> 14:44.160
So, system testing.

14:44.220 --> 14:49.240
Basically, to ensure quality of the board, we do an overall system test.

14:49.240 --> 14:50.240
We check the rails.

14:50.240 --> 14:53.440
I mean, the contract manufacturer pretty much tests the rails.

14:53.500 --> 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.

15:03.420 --> 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.

15:14.260 --> 15:19.380
The overall SNR is about 36 dB for the whole platform.

15:20.720 --> 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.

15:30.940 --> 15:32.420
Which is kind of cool.

15:34.240 --> 15:40.800
Last year, there were a lot of people that wanted to do ham radio applications.

15:41.320 --> 15:42.860
I mean, I wanted to.

15:44.020 --> 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.

15:57.200 --> 16:00.540
We thought we were going to do something simple, just like a simple mixer.

16:01.000 --> 16:03.600
And maybe have it be half-duplex.

16:03.600 --> 16:08.100
But then a lot of people really wanted full-duplex stuff for ham radio applications.

16:08.100 --> 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.

16:16.840 --> 16:21.160
And then we realized that with a lot of AM and FM transmitters...

16:21.160 --> 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.

16:28.600 --> 16:35.180
So there's a lot of big towers, like AM and FM transmission towers, up on Sutro Hill.

16:35.180 --> 16:43.520
So a lot of those terrestrial transmitters were kind of just completely mucking up the FM bands.

16:43.520 --> 16:47.140
So we kind of realized that we needed filters.

16:47.140 --> 16:52.620
Actually, a lot of filters, in order to block out a lot of these terrestrial transmitters.

16:53.620 --> 17:00.380
So I turned to Agilent Genesis, which has a lot of filter generation tools in it.

17:00.380 --> 17:03.300
So you can pretty much tell, like, oh, I want a Chudashev filter.

17:03.300 --> 17:04.900
Oh, I want a bandpass filter.

17:04.900 --> 17:06.600
Oh, I want what kind of filter.

17:06.600 --> 17:09.680
And then you put in your parameters, and it spits out a design for you.

17:09.900 --> 17:14.500
And as I expected, that was almost too good to be true.

17:14.740 --> 17:18.680
Because it gave me an 80 plus component filter.

17:19.140 --> 17:22.660
And we wanted to have about three separate bands.

17:22.660 --> 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.

17:29.700 --> 17:35.880
And we would not be able to fit about 500 components, just in filters alone.

17:35.880 --> 17:39.800
Some of them are like high Q, low ESR inductors.

17:39.800 --> 17:45.300
So we'd definitely not be able to fit like 30 of them, even on board.

17:47.180 --> 17:52.700
So I borrowed one of my friend's little red book of filter design, is what he had.

17:53.840 --> 18:03.980
He had a cover for the book, and the cover read, little red book of filter design.

18:03.980 --> 18:08.520
I'm not entirely sure what book I read, but it seemed like it was from the 50s.

18:08.520 --> 18:15.320
It just had a bunch of filter designs and topologies with the expected error rate for all of them.

18:15.320 --> 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.

18:35.580 --> 18:38.180
So I was happy with that.

18:39.240 --> 18:45.180
Then another big problem that popped up with the transverter design was a massive leakage from the LO.

18:45.180 --> 18:53.960
So the LO is the thing that basically generates your reference clock, or your reference tone against which you mix.

18:54.280 --> 19:01.660
So since we do low side injection, 10 MHz pops up... so the LO is at 1248 MHz.

19:01.660 --> 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.

19:13.780 --> 19:20.060
We actually use FPGA to swap I and Q when people are transverting.

19:20.060 --> 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.

19:27.960 --> 19:35.880
But the LO wound up having a lot of problems with leakage into the rest of the design.

19:35.880 --> 19:43.820
So then we had to come up with a power design consideration in software for the ADF4351, which is the LO.

19:43.820 --> 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.

19:50.500 --> 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.

19:57.740 --> 20:04.220
So the LO is driven at around plus 5 dBm.

20:04.740 --> 20:11.140
So that actually ends up emanating into the rest of the components and coupling into a bunch of the other components.

20:11.140 --> 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.

20:20.020 --> 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.

20:26.820 --> 20:33.700
And parts of our LO and parts of our filter paths, and even our mixers, were right above the FPGA.

20:33.780 --> 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,

20:53.480 --> 21:02.280
because of the way that the synthesizer and the place and route works out the new image for the FPGA.

21:02.420 --> 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.

21:13.280 --> 21:15.220
And you're like, oh man, what is going on?

21:15.220 --> 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.

21:24.220 --> 21:30.580
So then the board basically doubled in size, and fortunately, a lot of that interference...

21:30.580 --> 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.

21:43.220 --> 21:49.560
Another big problem with filters is a phenomenon known as DQing.

21:49.920 --> 21:58.740
So what DQing is, as the name indicates, it's the DQing of passive components.

21:58.820 --> 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.

22:07.140 --> 22:18.540
So DQing is caused by a coupling of the inductor or the capacitor to a ground or power plane beneath it.

22:18.540 --> 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.

22:30.240 --> 22:33.540
Actually, can you guys see what I'm pointing... let me see...

22:35.300 --> 22:39.680
Yeah, so all those are holes in the ground and power planes.

22:40.800 --> 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.

22:53.580 --> 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.

23:08.500 --> 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.

23:19.360 --> 23:25.400
This was generated with the E8357 Agilent VNA.

23:26.540 --> 23:33.080
So this is the 50 MHz band frequency response for the filter.

23:33.340 --> 23:40.740
This is the 144 MHz band and this is like the 220 MHz band.

23:41.100 --> 23:46.260
Software automatically selects all of these with a 1 and 3 dB roll-off.

23:46.260 --> 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.

24:00.420 --> 24:06.380
For most ham radio operations I would suggest using the 1 dB roll-off range because then you end up getting...

24:06.380 --> 24:15.660
I mean the 3 dB roll-off range because then you end up getting some really strong rejection against terrestrial transmitters.

24:18.240 --> 24:20.220
I'm going back a bit here.

24:20.220 --> 24:23.040
So this is basically the block diagram of the transverter.

24:23.040 --> 24:30.720
As I said, there's three different filter banks for all those different ham radio bands.

24:30.720 --> 24:38.040
There's also an additional optional filter bank where you can plug in your own filters if you so wish.

24:38.940 --> 24:46.480
These are the two mixers and this is the LO.

24:46.480 --> 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.

24:58.520 --> 25:02.300
So that's basically the story of the transverter.

25:02.300 --> 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.

25:13.080 --> 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.

25:23.370 --> 25:33.100
The most important thing for GSM and LTE and UMTS is the ability to timestamp samples.

25:33.100 --> 25:39.000
So all these protocols are based off of very strict and stringent timing requirements.

25:39.000 --> 25:45.080
So GSM ends up having time slots and subframes and frames and hyperframes.

25:47.660 --> 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.

25:54.780 --> 25:59.600
So the base station needs to know exactly what message was sent to it at different times.

25:59.600 --> 26:03.500
Because each time slot in time is a separate channel.

26:03.620 --> 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.

26:12.340 --> 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.

26:23.400 --> 26:27.840
Actually, RSSI is not an indicator that GSM associates to.

26:27.840 --> 26:30.320
It's a variety of factors.

26:30.320 --> 26:39.500
But received power is maybe the top consideration that it uses to associate to a base station.

26:39.500 --> 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.

26:55.440 --> 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.

27:03.760 --> 27:13.360
And also, the handheld device is then able to have the same sampling rate as the base station.

27:13.360 --> 27:19.580
So that kind of ends up increasing the SNR and decreasing the bit error rate of their communication.

27:19.580 --> 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.

27:36.300 --> 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.

27:44.360 --> 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.

27:53.620 --> 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.

27:59.360 --> 28:02.140
But say that you're about 130 kilometers away.

28:02.140 --> 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.

28:12.560 --> 28:18.320
So what the base station does is it sends something known as a timing advance control to the handheld device.

28:18.320 --> 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.

28:32.380 --> 28:35.060
So like at the very beginning of its time slot.

28:35.080 --> 28:42.580
People have used this methodology to do locationing of GSM handheld devices.

28:42.580 --> 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.

28:52.120 --> 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.

29:05.940 --> 29:10.220
So it was really cool learning about all that stuff.

29:10.220 --> 29:16.340
Another interesting thing about timing advance control is that it's basically a negative feedback control system.

29:16.340 --> 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.

29:28.140 --> 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.

29:46.420 --> 29:49.520
So that only took about 2 months to debug.

29:50.340 --> 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.

30:09.860 --> 30:14.120
So then you need to implement something like... they're called flankters.

30:14.680 --> 30:23.120
They're digital design idioms that let you bring a signal from one clock domain into the other clock domain.

30:23.120 --> 30:34.740
So clock domain issues like glitching in digital design systems is actually really hard to track down.

30:34.740 --> 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.

30:44.860 --> 30:46.980
How did this thing happen?

30:47.560 --> 30:49.060
It's because it's glitching.

30:49.060 --> 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.

31:00.280 --> 31:03.960
So then you end up with not a digital system.

31:03.960 --> 31:07.960
Well, it is a digital system, but it's not a coherent digital system.

31:08.720 --> 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.

31:18.940 --> 31:27.480
So if anyone ever wants to play around with OpenBTS or YateBTS, I would suggest getting SuperSIMs.

31:27.480 --> 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.

31:40.020 --> 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,

32:05.920 --> 32:08.640
and the MCC and the MNC of the network.

32:09.040 --> 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.

32:15.880 --> 32:21.020
It's how a handheld device associates, or begins associating to a base station.

32:21.020 --> 32:29.460
So it turned out that these phones got zapped or something, because their GSM modems were completely wrong.

32:29.560 --> 32:36.720
So I thought there was a problem with the PRATCH versus synchronization in OpenBTS and YateBTS.

32:36.720 --> 32:39.560
Turns out it wasn't, and turns out it was just bad phones.

32:39.560 --> 32:47.820
So I would actually suggest using somewhat more modern phones when messing around with these open source GSM base stations.

32:50.360 --> 32:56.760
So another cool thing that we've done in the past year is we've been working with Legba and Nullteam.

32:56.860 --> 33:01.460
Legba is basically David Burgess, who's the brains behind OpenBTS.

33:01.460 --> 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.

33:15.460 --> 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.

33:28.400 --> 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.

33:38.680 --> 33:40.380
So that's pretty cool.

33:41.380 --> 33:51.760
YateBTS is actually a really interesting project because it's evolution of OpenBTS.

33:51.900 --> 34:01.160
So what YateBTS is, is this GSM core network capable base station.

34:01.160 --> 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.

34:11.420 --> 34:14.280
And you're like, oh sweet, now I'm associated to an access point.

34:14.940 --> 34:17.200
I've now built the internet.

34:17.200 --> 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.

34:33.200 --> 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.

34:45.560 --> 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.

35:01.760 --> 35:08.660
So now they're able to deploy really inexpensive GSM technology to developing nations.

35:08.660 --> 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.

35:23.760 --> 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.

35:40.360 --> 35:45.240
So what is the roadmap for us and all the other people that we're working with?

35:45.240 --> 35:55.600
We're supporting Legba and Nullteam in adding LTE support for our radio.

35:55.600 --> 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.

36:06.820 --> 36:13.240
Same radio, just a software upgrade to YateBTS.

36:13.240 --> 36:18.740
We've also been experimenting a lot with a bunch of FPGA modems.

36:18.740 --> 36:26.600
So that's basically running consumer radio modems directly into FPGA.

36:26.620 --> 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.

36:41.640 --> 36:44.760
Another thing that we've been working on is a real-time spectrum analyzer.

36:44.760 --> 36:47.160
Who here has used GR Phosphor?

36:48.040 --> 36:50.480
Yeah, it is.

36:50.480 --> 36:55.800
Well, actually, with Ubuntu 14.04, it's actually kind of decent now.

36:56.700 --> 37:01.940
So upgrade Ubuntu, I guess, is my advice.

37:01.940 --> 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.

37:09.580 --> 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.

37:18.820 --> 37:20.620
It would be kind of cool to do.

37:21.900 --> 37:28.060
The Radar application, we've been kind of working on this Radar application for about a year now.

37:28.060 --> 37:37.700
But it kind of seems to be not something that we feel comfortable releasing due to a bunch of patent things.

37:37.700 --> 37:41.580
So we've kind of abandoned that project and probably should have removed it from the roadmap.

37:41.700 --> 37:42.560
Sorry about that.

37:42.560 --> 37:44.560
So a bunch of cool projects that people have done.

37:44.560 --> 37:48.780
There's people that have built GPS receiver with BladeRF.

37:48.780 --> 37:51.780
Other people have built ADS-B receivers and transmitters.

37:51.780 --> 37:59.160
I didn't get to finish this list because I was kind of doing this as I was waiting for food.

37:59.460 --> 38:04.800
And I realized I was a couple minutes late to this presentation, so this list is kind of short.

38:06.600 --> 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.

38:23.900 --> 38:26.980
And that's it.

