Showing posts with label software defined radio. Show all posts
Showing posts with label software defined radio. Show all posts

Thursday, September 12, 2024

The AI Onset

 

The Ham Station, slightly idealized

Amateur Radio Operator

Imagine a seasoned amateur radio operator:
  • A weathered face: Lines etched by years of experience and countless hours spent tuning dials.
  • A cluttered shack: Filled with vintage equipment, antennas, and a variety of Morse code keys.
  • A calm demeanor: A patient listener, always ready to offer advice or share a story. 
  • A deep knowledge: A wealth of technical expertise, from understanding radio wave propagation to building custom antennas. 
  • A global network: Connected to a worldwide community of fellow hams, exchanging signals and forging friendships across borders. 
This operator might be found in a quiet corner of their home, their radio crackling with life. They could be participating in a worldwide contest, chatting with a friend in a distant land, or simply enjoying the solitude of the airwaves.

(AA6E + Gemini AI, 9/12/24)

Wednesday, January 14, 2015

FlexControl for Linux+ #hamr

Lately I've been on the air with a FLEX-6700 from FlexRadio Systems.  It's a great rig, but that's a story for another day.

Today's subject is the beautiful FlexControl, which is a "USB Knob" ($99.99).  It is designed as an adjunct input device for the Flex software defined radios, for users who need something more traditional than mouse-based pointing and clicking for tuning and managing a radio.

The product is provided for SmartSDR for Windows, the principal interface program for the Flex 6000 series.  It has a great feel, and it has 3 nice buttons and status lights. SmartSDR provides a Windows driver to work with the FlexControl.

So that's fine, but I'm mainly a Linux guy.  For unfortunate but understandable reasons, Flex only provides Windows control software.  What does the FlexControl look like when plugged into a Linux system?  I could not find any documentation.

With help from Wireshark and VirtualBox, we can do some reverse engineering.

The FlexControl is recognized by Linux (Ubuntu 14.04, but probably most other versions, too).  It appears as /dev/ttyACM0 on my machine. "ACM" signifies that this is a CDC_ACM device.  That category is loosely based on ancient Hayes modem interfaces, but don't worry about that!  Really, it just emulates an old-fashioned serial I/O connection at 115 Kbps.

You can set up minicom or any other Linux program to talk to this device.  The only remaining question is the protocol.  It turns out to be simple.  No surprise, this is a simple device.  The scoop:

Sending from FlexControl to host:
All commands terminate with ';' (no returns or line feeds)
U; - knob CW (single tick) -- U02; U03; U04; etc - multiticks
D; - knob CCW (single tick) -- D02; D03; D04; etc - multiticks
S; - short press, main knob
L; - long press, main knob
C; - fast double click, main knob


The fast knob codes reflect multiple encoder ticks between USB polling times, so the knob should be able to keep track of fast spinning.  (Alas, SmartSDR will not always keep up so well.)

XnS; - normal press, key n=1,2,3
XnL; - long press
XnC; - fast double click

e.g. 
   U; (frequency up one tick)
   X2S; (normal press, button 2)

Sending from host to FlexControl:


Ixyz;  where x,y,z = 1 or 0 for LED 0, 1, 2 on or off
e.g.
   I001; set right hand LED on
   I000; set all LEDs off

   I111; set all LEDs on

Note that SmartSDR for Windows only uses a fraction of the FlexControl's button capability.

See a simple Python program to illustrate how to communicate at http://aa6e.net/wiki/FlexControl. 

[Added 4/24/2023: That link has gone dead.  A copy of the old file can be found at http://web.archive.org/web/20150226074911/http://aa6e.net/wiki/FlexControl. Note that the code is written in version 2 Python.  It will need updating for version 3.]

The FlexControl should be very useful for all kinds of DIY software projects.  Connect it to your Raspberry Pi, your Arduino, your Linux PC for any kind of control project! (There are cheaper USB based controllers available -- for games, etc., but few have the right "ham" esthetics IMO.)

Maybe FlexRadio or one of the designers (K6TD or K6TU) would have divulged the same data if they were asked nicely, but it was more fun to work it out on my bench.

Friday, February 17, 2012

ABCs of SDR

The new book is out.  It's a concise low-math (almost zero math) description of what SDR (software defined radio) is all about, for the general ham radio audience.

The short message:  It's the main technology at the core of about every HF radio you can buy these days.  If a radio has "IF DSP" it normally has an SDR back end.  Front ends vary, from minimal ("pure" SDR) to conventional, but the digitization and digital signal processing is mostly the same.

Order from ARRL or your favorite bookseller.

Thursday, February 17, 2011

Quick Look at FUNcube Dongle SDR Radio

My candidate for the new radio with the most unlovely name is the FUNcube Dongle.  It is a part of the AMSAT-UK FUNcube satellite project, but it is attracting wide interest (not just for satellite work) as an example of what can be done by a volunteer group to build a very simple, but powerful Software Defined Radio to cover the 60 - 2000 MHz frequency range.  And it's pretty cheap.  The last lot went for £ 108.22 each to the US, about US $170.  They are only being made sporadically, but another batch is supposed to be coming at the end of February.

I have had a chance to borrow an FCD, and I've been trying to figure out what it does and does not do, and whether it's something I need to add to my stable.  Here are some of my lab notes:

My quick tests in my home shack without good signal generation & attenuation showed that the receiver (like any SDR) is sensitive to overload. The only signal source I could use easily was my 2M HT (¼ watt low power) transmitting into a dummy load a foot away from the receiver. I also noted that the dongle radiates at its LO frequency, breaking squelch on the HT. There seems to be little or no shielding on the dongle.  It has a plastic case, and there may or may not be shielding inside.


I used both the basic software combination (FCHid and SpectraVue) and the more user friendly (IMO) WRPlus with the G0MJW adapter DLL. The project's documentation for newbie users is fragmentary and frustrating, but that's understandable at this early stage.

At the ARRL Lab*, I found the FCD's crystal oscillator frequency in this unit is about 119 ppm high, but either software solution allows you to enter a frequency scale factor to correct for this. Warmup drift of nearly 1 ppm was observed from a room temperature start. (Lack of a high stability oscillator or an external sync capability might be a limit in some advanced applications.)

I was able to update the dongle firmware to version 18f, which is current. Surprisingly and unfortunately, I could find no indication in the PC software about what firmware version is actually installed.

I looked at the tweaks available for DC balancing (suppressing the zero frequency peak) and I/Q balance (maximizing image rejection). At 926 MHz, I was able to get 49 dB of image rejection, but the adjustment is critical. Switching to 2000 MHz, the image rejection is down to 30 dB. (Image rejection is typically about 24 dB if you don't do careful tweaking.)

Maximum input level before clipping occurs is about -55 dBm, varying somewhat with frequency.  You can easily reach this level depending on your RF environment.  A preselector filter may be needed.  (Strictly speaking, the -55 dBm limit applies to a simple sinewave input.  It's an instantaneous voltage limit, so a broadband input of greater power might be tolerated.)

A quick measurement of tangential sensitivity gave the following

60 MHz -122 dBm
144    -129
926    -130
1000   -129
2000   -133
Tangential sensitivity is a measure of the the minimum detectable signal. These values are by eye with a particular FFT and filtering setup. Don't hold me to them!

The frequency coverage was at least 60.1 – 2000 MHz.  I did not explore the outer limits of coverage.

The major limitations of the dongle are its limited sensitivity, lack of input filtering or attenuation or AGC, and limited instantaneous bandwidth (96 kHz). The USB dongle package is cheap and effective, but it's susceptible to mechanical damage if it's hanging off your laptop.

For about US $170, it's a steal. It is usable as a wide-coverage VHF/UHF receiver, especially with a low noise preamp, and it provides a good playground for learning about SDR.  I suppose it's even going to be a cheap and effective receiver for satellite work! I would want one as test equipment, but the bandwidth limitation becomes significant if you are searching for a signal with unknown frequency.

Update: The next sale of Dongles will begin Sunday 20 February 2011 22:00UTC.
----
*I volunteer in the ARRL Lab in Newington, CT.  The work here is my own and ARRL is not responsible for my mistakes!

Sunday, July 25, 2010

QS1R SDR QST Review

My first-ever product review for QST is coming in the September, 2010, issue.  This is for the Quicksilver QS1R Software Defined Radio.  ARRL members may find it here. [pdf]

Friday, April 23, 2010

Fiddling with the QS1R

I'm working with the Quicksilver QS1R receiver, a little SDR box that samples the spectrum from 10 kHz to 60 MHz. The hardware seems good, but most of the action for the user is in the "S" part of SDR -- i.e., the software. Take a look at 20 meters in the afternoon - with all possible windows open. (To be fair, you don't need twin monitors -- 3840 x 1080 pixels -- to use this radio!) CPU demand is 6% on my 4 core, 8 thread system, Windows 7 (64 bit). Click for higher rez.

Wednesday, February 24, 2010

SDR Blog and the Way Forward

A nice note from Tobias, DH1TW, got me in touch with his fascinating blog "Contesting & SDR". As luck would have it, he has a nice set of reviews of a forthcoming SDR kit, the FA-SDR-TRX designed by Harald, DL2EWN, and published in 3 issues of the German magazine "Funkamateur", Oct. - Dec., 2009.

The kit is supposed to be coming in March. I can't wait. It may relieve my frustration.

SDR Frustration!

I finally got around to building the SoftRock RXTX 6.2 kit that I've had sitting on the bench for nearly two years. This was stimulated by some progress on the audio front.

After a number of tries, my Edirol FA-66 audio subsystem is working with Ubuntu Karmic Koala. In the past, I've run into issues with the questionable support for Firewire devices in Linux. Finally, I figured out enough about how to use the Jack audio connection kit and the FFADO/FreeBob Firewire driver to make things work. (I wouldn't say I understand Linux audio, though!) The FA-66 offers up to 24 bit sampling at 192 kHz, which should cover a substantial part of most of the HF Amateur bands.

So I need a front-end like the simple SoftRock boards to act as both receiver and transmitter. The RXTX 6.2 was going be the one. I built the nice switched dual crystal oscillator board for 20 and 30 M operation, and then was ready to tackle the main board.

Alas, the main PC board is missing! Either it never came with the kit, or it got mislaid back in 2008.

Now what to do? DH1TW sent a note that suggests an answer. See next post!

Saturday, September 05, 2009

Amateur Radio vs HPC & OSS

Lately, I've been wondering what aspects of Amateur Radio would benefit from high performance computing technology. This is prompted by my latest PC - built around an Intel Core i7 processor with 6 GB of RAM. This CPU has 4 cores and 8 logical (hyperthreaded) processors. The benchmark results are very nice: 20,500 Whetstone MIPS (floating) and 45,200 Dhrystone MIPS (scalar) across 8 simultaneous threads. [BOINC's built-in benchmarking - not to be taken at face value!] In addition, we have graphics processors (GPUs) that can be programmed with CUDA, OpenCL, and similar methods.

Some general areas that occur to me:

  • Digital Signal Processing (Audio-ish) - This is the technology behind much of today's Software-Defined Radio (SDR). A significant amount of processing is required for mixing, modulating, and demodulating signals. Dynamic spectral displays are useful. However, the actual amount of horsepower required for typical amateur applications is fairly limited. In most cases, the bandwidth of interest is less than 128 kHz (the range of high-end audio cards for band monitoring displays) and very often less than 3 kHz - the maximum audio bandpass of most communications transceivers. As long as we are working with audio-type signals - PSK31, Olivia, RTTY, and SSB, we are not likely to tax the latest CPUs. You can use more power if you want to listen to many channels at once, but even so...
  • DSP (Video) - Modern HDTV signals require a lot of processing. In production work, this would mostly be done in special-purpose processors (I think), but amateurs might prefer to operate with commodity PC and GPU hardware. I am not aware of amateur HDTV work for over the air transmission, but there may well be some. My initial look at HDTV (and DTV) was discouraging. The sheer numerology of options is overwhelming -- although of course, you may only need one mode for ham work.
  • DSP (Video 3D) - How about ham communications through 3D immersive environments? Four-pi visual fields, multichannel sound: you could get the gamers into that! (But why ham radio? Why not FIOS-type connections? We can offer off-grid operation and mobility away from cell towers!)
  • Radio Science - Propagation Analysis and Prediction through detailed atmospheric modeling, ray tracing, etc. This could be extended to real-time monitoring of the HF bands at points around the world, and trying to build up a real-time DX prediction service.
  • Exotic wideband signalling. Using microwave bands and pursuing highest bandwidths. Would this be more a question of very fast D/A conversion and I/O more than general purpose computing?

There must be more areas for HPC in Amateur Radio. As a long-time HF operator, I'd like to be able to translate CPU power into greater sensitivity and interference rejection. We can certainly consider computationally intensive modulation and demodulation schemes, but it's not clear what returns are available in a channel's SNR given the practical limits on transmitter power, modulation bandwidth, antennas, etc. The ionosphere degrades the signal so that frequency resolution below about 1 Hz or so is not going to be very productive. How can a "supercomputer" overcome that?

Ideas, anyone?

[This is cross-posted with my SourceForge blog: http://sourceforge.net/userapps/wordpress/aa6e/. Why do I have an SF blog? For topics relating to open source software, to see what WordPress is all about? Something like that!]

Tuesday, August 11, 2009

Grid Progress

The big application for Gimli (Intel Core i7 system, described earlier) has been participation in the World Community Grid, which is an IBM-sponsored project for channeling volunteer computer systems into a "grid" that can apply supercomputer-level power to selected scientific problems, mostly in life sciences. WCG uses the BOINC framework from UC Berkeley. There are many other grid projects using BOINC, and that's where most of the physical sciences and math projects seem to be. (And where my sympathies really lie. I may have to jump off the WCG ship eventually.)

My desktop system is "competing" against zillions of computers (1,328,064 "devices" under control of 468,410 "members"). On the one hand, many members have tried the project but have not actively contributed. On the other, many of the members command fleets of computers in academic or industrial settings, and are able to direct much of their otherwise wasted CPU cycles to the WCG.

In my case, my one computer, running 8 parallel threads, delivers about 8 days of "computing" for every calendar day. My rank in the WCG project is improving on a daily basis. About 30,000 members have provided more processing power (over the lifetime of the project) than Gimli has in about 6 weeks. We'll never be #1, but we should be able to climb the ladder for some time to come.

Remarkably, Gimli is able to run 8 CPU-bound jobs around the clock (at low "niced" priority) without significantly affecting interactive work - - browsing, email, office applications, etc. Only in a few cases is there a noticeable slowdown, e.g., firing up a large VMware image to run Windows XP.

Readers of this blog may ask what all this has to do with Amateur Radio - our raison d'être. That's a good one. I am looking for ham applications that can profit from high-power desktop computing. You might think that Software Defined Radio would be one, but the SDR work I know of really works well in smaller-scale systems. Digital video would be a candidate. Do you have suggestions?

Friday, August 22, 2008

ED Article on SDR in Amateur Radio

An interesting survey in Electronics Design of Software Defined Radio (SDR) in Amateur Radio.

From the article:
If you want to learn SDR, the ham radio community is a great place to start, whether or not you’re a ham. The available products make it possible to get up to speed quickly without the hundreds of hours typically needed to design hardware, write code, and run endless tests.
Thanks to WB9QZB.

Saturday, June 16, 2007

SoftRock Antics

The "SoftRock" receiver kits have been around for a while. These are very inexpensive and basic quadrature sampler devices with a crystal controlled local oscillator. They make a complete receiver front-end for a Software Defined Radio. You can buy a version 6.2 SoftRock Lite kit from Tony, KB9YIG, for $10. I thought it was time to take the plunge.

For your $10, you get to spend hours putting together the tiny (1.5" square) printed circuit board, with a number of surface-mount components. After a little fussing, I got to the point of feeling some confidence with hand soldering the tiny components. The hardest part is organizing the right array of magnifiers to be able to see what is happening.

Here is how the board comes out:



I packaged it into a small aluminum box, and that was that!

To test it requires the following equipment: laptop computer, PowerSDR 1.8 software (from Flex Radio), a high-quality soundcard (I use the Edirol FA-66 Firewire box), and a good antenna (my 3-element SteppIR). With all that, we get the following view of the low end of 20 meters.

(Click on any image to see full resolution.)

Under normal band conditions, the SoftRock sounds just like my Orion transceiver. That is $10 well spent for self-education and fun. It calls out for a companion transmitter, so maybe the next step is to build a SoftRock Lite RxTx kit. Let's not get carried away - the RxTx kit costs $30.