Presentation on theme: "Software Defined Radio (SDR) for Amateur Radio – An Overview"— Presentation transcript:
1 Software Defined Radio (SDR) for Amateur Radio – An Overview Steve Dick, K1RFMay 9, 2012
2 What is Software Defined Radio? As defined in Wikipedia:A software-defined radio system, or SDR, is a radio communication system where components that have been typically implemented in hardware (e.g. mixers, filters, amplifiers, modulators/demodulators, detectors, etc.) are instead implemented by means of software on a personal computer or embedded computing devices.
3 What is Software Defined Radio? A basic SDR system may consist of a personal computer equipped with a sound card, or other analog-to-digital converter, preceded by some form of RF front end. Significant amounts of signal processing are handed over to the general-purpose processor, rather than being done in special-purpose hardware. Such a design produces a radio which can receive and transmit widely different radio protocols (sometimes referred to as waveforms) based solely on the software used.In the long term, software-defined radios are expected to become the dominant technology in radio communications.AntennaI,QR.F.Front EndHigh QualitySound CardP.C., Laptop,Netbook, orEmbeddedprocessorI,QExample architecture
4 Some DistinctionsModern conventional Radios are usually controllable via a computer with CAT or similar interfaces. These are Software Controlled radios, not software defined radios.Modern conventional radios may use Digital Signal Processing for enhanced filtering for better performance than conventional filters and to eliminate multiple downconversions. These are NOT software defined radios.Conventional radios having single sideband capability can feed audio to/from a PC for what is known as digital modes. This is real audio, not complex baseband I,Q. However, the digital mode modulation and demodulation can be considered software defined radio (modulation, demodulation, and detection functions)
5 Look and feel of Software Defined Radio Does not look or feel like a real conventional radio. Uses a computer-based graphical user interface. No knobs!!!Needs some getting used to after many years using a conventional radio.Getting the software set up and working properly can be a challenge. It is definitely not plug and play and requires integrating multiple software packagesThere are processing time lags on the P.C. (on the order of milliseconds). This is generally not a problem except when using Morse Code (CW). You can’t listen to your own signal and try to send Morse Code. Your brain gets confused from the time lag. A separate tone source with zero lag solves this problemYou can’t receive signals at the center of the spectrum. This is D.C. and soundcards don’t go down to D.C. Also, a lot of noise is picked up in this part of the spectrum (60 cycle hum, noise due to ground loops, etc) so you tune on either side of the spectrum center.
6 First, a few basic principles (P1 of 3): 1. Sampling basics In 1933, Harry Nyquist discovered that to accurately recover all the componentsof a periodic waveform, it is necessary to sample a signal at twice the maximum bandwidth of the signal being measured. That minimum sampling frequency is called the Nyquist criterion. This may be expressed as: fs = 2 bwwhere fs is the sampling rate and bw is the bandwidth.See the math isn’t sobad, is it?In real life, a good rule of thumb is to use the 80% relationship:Bandwidth = 0.8 x ƒs/2 to allow for readily achievable filtering instead of “brick wall” filteringCourtesy Pentek - Software Defined Radio Handbook
7 First, a few basic principles (p 2 of 3): 2. The mixer The mixer is basically a multiplier (analog or digital) in which the local oscillator is multiplied by the incoming signal. For sine waves, the output signals are sum and difference frequencies of the local oscillator and the incoming signal frequencies.One of the two signals is kept by filtering. The other signal is rejected by filtering. Any residual is known as an “image” and is undesireableLocal oscillator = MHzIncoming carrier = MHz
8 First, a few basic principles (p 3 of 3): 3 First, a few basic principles (p 3 of 3): 3. Selectivity: Q of a tuned circuitQ = Quality factorQ = F0/Delta F whereF = center frequencyDelta F = bandwidthHigher Q = narrower bandwidth or high selectivityLower Q = wider bandwidth or low selectivity
9 Classic (Non-SDR) Radio – the Superheterodyne receiver The conventional heterodyne radio receiver (A.K.A. Supersonic Heterodyne or Superheterodyne) shown has been in use for nearly a century. Let’s review the structure of the analog receiver so comparison to a digital receiver becomes apparent.First the RF signal from the antenna is amplified, typically with a tuned RF stage that amplifies a region of the frequency band of interest.This amplified RF signal is then fed into a mixer stage. The other input to the mixer comes from the local oscillator whose frequency is determined by the tuning control of the radio. The mixer translates the desired input signal to the IF (Intermediate Frequency) .The IF stage is a bandpass amplifier that only lets one signal or radio station through. Common center frequencies for IF stages are 455 kHz and 10.7 MHz for commercial AM and FM broadcasts.The demodulator recovers the original modulating signal from the IF output using one of several different schemes. For example, AM uses an envelope detector and FM uses a frequency discriminator.In a typical home radio, the demodulated output is fed to an audio power amplifier which drives a speaker.I.F. frequency Trades offImage rejectionvs. selectivityThis diagram shows a single conversion (local oscillator plus mixer, IF Amp). Multiple conversions provide increased selectivity. So does DSP filtering used in modern designs.Courtesy Pentek Software Defined Radio HandbookClassicAddison 5AM table radioCirca 1940
10 SDR Receiver Block Diagrams A/D at front end at R.F. Then all digital conversion to baseband – but costlyI,QPC orEmbeddedprocessorPerformsdecimationCourtesy Pentek Software Defined Radio HandbookThe “High Priced Spread” – Direct Digital ConversionA/D at back end with A/D conversion done with sound card. – low costAnalogDownconverterAnalog RF SignalTayloe DetectorSoundCardP.C.Or laptopRF TunerI,QI,QDigital Local Oscillator(DDS or SI570)Dualflip-flopDivide by 4AnalogBasebandSamplesDigitalBasebandSamplesThe “Low Priced Spread” – soundcard-based
11 More on Digital Down Conversion The “tuning knob” sets the digital local oscillator to the center of the baseband spectrum in the area of interestThe “Bandwidth” control sets the bandwidth of the low pass filter using different amounts of decimation. Wider bandwidths result in higher final output sample rates; narrower bandwidths result in lower final output sample rates. Low pass filter can typically be adjusted from megahertz to kilohertzTypical value 96 KHzbasebandSample rate(Sound card)Typical value MHzSample rateCourtesy Pentek Software Defined Radio Handbook
12 The RF Front-end generates baseband complex (I,Q) audio AntennaBaseband I,QA/D Converter (sound card) and processing (PC)Band limited byRF front end.Typically limited to the KHz to s of KHz rangeNegativeFrequenciesPositivefrequenciesZero frequencyBandwidth approaches +/- 48KHz with good soundcards
13 Seminal four-part article series on Software Defined Radio, QEX magazine 2002 A Software Defined Radio for the Masses Part 1A Software Defined Radio for the Masses Part 2A Software Defined Radio for the Masses Part 3A Software Defined Radio for the Masses Part 4Written by Gerald Youngblood, K5SDR, now CEO and President of FlexRadio Systems. In April of 2003 he founded FlexRadio Systems to market the first Software Defined Radio products to the Amateur Radio market
14 SDR Receiver Software Architecture Fists of FourierCourtesy garage-shoppe.comGive me an I, give me a Q, and I can demodulate anything!!!Courtesy SDR for the masses, Part 1The Fast Fourier Transform (FFT) does all the heavy lifting in SDR softwareto implement high performance filters in place of expensive hardware filters
15 Examples of RF Front Ends High Performance Software Defined Radio at its Best!FlexRadio Systems introduces the FLEX-5000A™ ultra high performance Software Defined Radio transceivers. The FLEX-5000A integrates all I/Q data and hardware control over a single FireWire ® (IEEE-1394a) connection to a user provided computer.Examples of RF Front Endsintegrates all I/Q data and hardware control over a single FireWire ® (IEEE-1394a) connection to a user provided computer.Top Performing Narrow-Spaced Two-Tone 3 rd Order IMD Dynamic Range of ~100 dB on 14 MHz Using a 2 KHz SpacingNarrow Spaced 3 rd Order Intercept Point: Greater Than 39 dBm at 2 KHz Tone Spacing.Integrated ultra high quality 192 KHz 24-bit ADC and DACsFull Duplex Operation for Simultaneous Transmit and ReceiveHigh Stability TCXO100 watts PEP on 160 to 6 metersCost $2799Rear viewFlex 5000A “The Cadillac of SDR”
16 Examples of SDR RF Front Ends c’d Up to 5 band transceiver10 watts out minimum on all bandsQSD and QSE-based architectureSemi-kit. All Surface mount components preassembledIP dBmMDS is -116 to -122dBm. RF preamplifier on: MDS is from -130 to -133dBm.Image rejection: -35 to -60 dB [hardware], better than 60dB [software]RX sensitivity: uV for 10 dB S/N ratio. Max S/N measured: 70dB.SFDR (Spurious free dynamic range) is dB these results are with signals spaced 5 kHz or more.Built-in extras incl. CW keyerCost $299 less heatsink. You provide your own chassis,soundcard,PCBuilt by K1RFPCB ~ 8” X 8”Genesis Radio G11Sample youtube video (SSB reception)
17 Examples of SDR RF Front Ends c’d UHFSDRParts cost - ~$200.00WB6DHW.comUHF SDR Yahoo Group
18 Examples of RF Front Ends c’d Full duplex transceiverArchitecture based on Front end high speed ADC and FPGA based DDC and DUCBuilt-in audio codecVery high performance~ ½ watt outputConnects to PC via EthernetApproximate cost will be ~900.00
19 “We don’t need no Stinkin’ PCs” Several companies or amateur radio groups have developed self-contained SDR transceivers that don’t use PCs.They are based on very low cost DSP microcomputers that have significant digital signal processing capabilities, used in conjunction with low cost audio CODECs and a low cost programmable oscillator.Example: Microchip dsPIC33FJ128MC804 “Digital Signal Controller”. Cost ~$6 qty 1. 40MIPS, I2C, ADC and DAC, PIOLow cost helper chips:TI audio codec TLV320AIC3204IRHBSilicon Labs Si Mhz TO 1.4 Ghz I2C Programmable XO/VCXOThere is also the first ever standalone digital modem, the NUE-PSK, a digital modem for PSK31 and RTTY field use ... without a PC!
21 “We don’t need no Stinkin PCs” Elecraft KX3 –Where high volume commercial SDR is heading KX3 Self-contained operationAudio out to soundcard/PCFor use with 3rd party software for SDR apps and digital modes160-6 meters, SSB/CQ/DATA/AM/FM modes10W PEP (100W with KXPA 100 amp)Only 1.5 pounds (0.7Kg)Current drain as low as 150 mA on receiveUltra compact portable/mobile/homeInternal 8 - AA battery holderReceiver performance rivals the best conventional transceiversBase price $899 kit, $999 assembled
22 Basic low cost RF Front End Approach: The amazing Tayloe detector Invented by Dan Tayloe, Patent no. 6,230,000, May 2001.It has four unique properties:Less than 1 db of conversion loss!!!“Free” tracking bandpass selectivity (Q = 3,500 at 7 MHz), with a user definable bandwidthVery high dynamic range - A high 3rd order intercept (+30 dbm).An extremely compact and simple design using low cost components compared to other zero IF I-Q quadrature detectorsConventional passive mixers generate sum and difference frequencies. Therefore, the conversion loss using an ideal mixer is at least 3 db, with a typical conversion loss of 4-6 db in practiceThe Taylor detector produces only a difference frequency!!!Basic design useful into the GHz rangeA.K.A. Quadrature sampling Detector (QSD)
23 The amazing Human EarThe human ear has about 130 dB of dynamic range. Sound cards strive to haveundetectable distortion to the human ear for hi-fi applications
24 Why is this important? Because sound cards are designed to produce undetectable distortion to the human ear and have advanced significantly over the last few years in achieving that goal.The standard for today’s audio reproduction and studio audio processing is 24 bits at 96 kbits/sec sampling rate, or even 192 kbits/sec sampling rate.24 bit soundcards come in many flavors and qualities, few if any approaching the theoretical maximum dynamic range of human hearingSoundcard maximum theoretical dynamic range: 6.02 dB x 24 bits - 3 dB = dB. Lets shave 20 dB off this number for worst case realism: 121 dB dynamic range. This dynamic range has undetectable distortion at normal listening levels. When applied to SDR applications, This is still an impressive dynamic range and approaches the dynamic range of the best military radios if the RF front end had perfect linearity and steps are taken to avoid noise contributing ground loops.
25 Representative sound cards used for SDR applications Take your pick – everyone has their favoritesCan be mounted in PC or used via USB (Preferred for portability between different PCs or laptops)Representative list with some user comments:Emu 0202, works well but can be a bit touchy to set up correctly.M- audio 2496 , works well easy set up. Essence stx pic- e, excellent and easy set up.M-audio delta44, poor, pain in the *** to set set upSdr widget, works well. (kit)Ederol FA66Sound Blaster X-FI surround 5.1 pro (good performance at low cost - ~ 49.00)
26 Softrock Lite II Schematic USB powerDual flip-flopDivide by 4Tayloe Detector:CMOS analog switch,Capacitors,Dual low noise op-ampXTAL oscillator/bufferBandpass filterThis is the entire schematic for a very high performance single band RF Front end – Incredible!!! Representative of Tayloe detector (Quadrature Sampling Detector) - based RF front ends
27 An inexpensive SDR sampler kit- The Softrock_40_R for $19.00 To orderJoin yahoo group:To check on availability(they go fast!!)SeeFor a similar low cost SDR samplerTinySDR for 80M band
28 We don’t even need no stinkin’ hardware!! Latest SDRs are moving to client-server architecturesGet on the internet and use someone else’s Antennas and RF baseband converter!!AntennaI,QR.F.Front EndHigh QualitySound CardP.C. based server(Linux)I,QP.C. based client(Linux or windows)InternetYay! It works!
29 Log in to a remote server from your windows PC or laptop for free!! Internet-based: No software required!!:More sophisticated but requires software download; Go to the following link for description:Download a zipped executable at:Load to a new folder and extract contentsRun QTRdio.exe. Allow access if windows firewall blocks or only provides limited accessClick on Receiver /Configure and select audio cardClick on Receiver/Quick server list, highlight a server and connect (try different ones, some are more capable than other, some may not be operating)You can now control the other person’s radio over the internet!!There is also an Android Client for SDR servers!!
30 QT Radio screenshotYou can select band, tune it with your mouse scroll wheel, select operatingmode, look at received signal strength on S-meter, set control parameters, etcPretty cool to let you try SDR with just a PC and internet connection
32 Digital Modes - So many modes, so little time PSK31, PSK63, SSTV, HD SSTV, RTTY, MFSK16, MFSK32, MT63, Hellschreiber, Olivia, Packet, PACTOR , Throb, Contestia, JT6M, Ham DRM, Domino, DominoEX, DominoF, WSPR, ROS, SITOR, SITOR-A, SITOR-B, Swedish ARQ, Clover, CHIP, ALE, PAX, PAX-2, STANAG, HFDL, NAVTEX, SYNOP, COQUELET, AOR, WinDRM….Between amateur and commercial services, there are tens of modes, perhaps approaching 100!!!Courtesy George Heron, N2APB
33 Using Digital modes with SDR Software SDR software can feed other third party software using other internal software interconnects for IQ audio transfer and receiver/transmitter control.Virtual audio cableSDR software packageThird Party software package(modulation,Demodulation,Control)Baseband I,QBaseband I,QVirtual Com Port(Control)Rocky, PowerSDR IQ, etc.Ham Radio Deluxe, FLDIGI, Digipan, etc.
34 Using digital modes with a conventional radio Software:- FLDIGI, …SSB transceiverA (good) Sound Card(An external USB sound card is most flexible)A (fast) PCOnce you’ve wired your station for one HF mode, you can work another by just selecting a different mode in the software.Courtesy George Heron, N2APB
35 CW Skimmer, developed by Alex Shovkoplyas, VE3NEA Seen above is a 25 KHz spectrum during a “Pileup”. This program simultaneously detects and decodes up to 128 Morse Code signals, finds and decodes the amateur radio call signs simultaneously across the displayed spectrumUse of this program has been banned from use in many amateur radio contests due to providing too great an advantage. CW Skimmer can be downloaded here
36 PSK31 or or "Phase Shift Keying, 31 baud Invented by Peter Martinez (G3PLX), Debuted in 1999Most popular HF digital modeHeard near: 3.580, 7.070, , MHzThe Undisputed King!Used to conduct realtime Keypoard to keyboard text chat“Phase Shift Keying” is the the most popular of the newer digital modes.Wealth of information on the web regarding BPSK (Binary PSK) and QPSK (Quadrature PSK)Because bandwidth only 31Hz, many signals can fit into the same bandwidth occupied by an SSB signal (2.4kHz approx.).Quite common to see 15 or more signals on a 2.5kHz waterfall display.Courtesy George Heron, N2APB
37 JT65Developed originally as part of the WSJT weak signal modes software package by Joe Taylor, K1JT, but is now open sourceCan also be decoded by other packages, such as MultiPSK.Has found a use on HF and can be found around MHz and MHz amongst others.Signals that are virtually inaudible can give perfect copy so its performance is excellent on the noisy HF bands.Transfer rate is slow, as are most modes that excel in low signal decoding.Courtesy George Heron, N2APB
38 And Now for Something Completely Different Software Defined RadioSoftware Demos:(Video, HDSDR)
39 Reference LinksDK3QN Example self-extracting WINRAD software and .wav files with instructionsHDSDR (former WinradHD) is an advanced version of WinradSDR Sharp a simple, small and fast PC-based DSP application for Software Defined Radio. It’s written in C# with both object design correctness and performance in mindSignals, Samples and Stuff, a DSP tutorial parts 1, 2, 3, and 4 QEX Mar April 1998Comparison of “conventional”, “DDC based” and “soundcard based” receiversQuadrature Signals, complex, not complicated on the DSPGURU.com siteSoundcard SDR SoftwareVirtual Audio Cable software by Eugene Muzychenko [ $35]Software Defined Radio Explained – Fists of Fourier Parts 1, 2, 3, and 4 explains how the QSD detector worksVSP manager by Steve Nance - virtual com port software, free but requires amateur radio call sign)FLDIGI digital mode softwareDigipan for PSK31 and PSK63Ham Radio Deluxe, a widely used comprehensive program suite for CAT control, and digital modesMultiPSK digital mode softwareThe VITA Radio Transport Protocol for SDR architectures future standard in work