Showing posts with label hamlib. Show all posts
Showing posts with label hamlib. Show all posts

Thursday, December 08, 2011

The Beagle Barks!

Our Beagleboard-based remote rig control project passed a little milestone today. (See previous posting.)

The BB was set up here in Branford CT on my LAN and connected to a Ten-Tec Orion transceiver.  We accessed it from the ARRL Lab in Newington.

The new audio transport software uses PortAudio and the Speex codec, along with grig and hamlib for rig control, we were able to demonstrate remote receiver operation.

There are many other existing remote control schemes, but our project has a number of features:
  • Low-cost ($150 for the BB at Digikey)
  • Low power (~5 W)
  • Full-fledged Ubuntu Linux software environment
  • Lots of I/O and CPU options for future expansion
  • All open source (even the Beagleboard itself)
The demonstration was fine, but more integration and packaging are needed before we can share the details.

The fan would not be necessary, except that our board is overheating.  It is going back to the Beagle Hospital for some TLC soon.

Update: It turned out the BB hardware was fine.  I was running an Ubuntu kernel that was somehow configuring the board improperly.  With a new kernel, the board runs very cool, with no fan needed.

Tuesday, December 30, 2008

Debian Purity, iMacs & the usbserial problem

I'm moving my ham-oriented computing (digimodes, logging, etc.) to a 333 MHz purple Apple iMac. A beautiful older machine with plenty of zip for these uses. Since it is PowerPC based with only 384 MB RAM, my Linux choices are restricted. Happily (I thought), Debian would do the trick. One of Debian's virtues is that they provide Linux for many less common machine architectures.

All is well and good. I've got my USB-attached sound system working. (A story for another time.) I set up the build environment for Hamlib rig control and managed to compile the latest stuff from Sourceforge CVS. Fldigi and Xlog compile, too. So what remains?

I need to connect the iMac to my TenTec Orion's serial port. No problem, just move the 4-port Keyspan USB-serial box from my main x86 computer (running Ubuntu) to the Debian iMac. Surprise - the Keyspan's LEDs don't light. The Keyspan driver module doesn't load. Wait, the Keyspan driver module (part of Linux kernel) does not exist!

Cut to the chase: The Keyspan usbserial driver for my device has been deemed "impure" by the Debian group. This driver passes all the legal and policy hurdles for Fedora and Ubuntu, but Debian seems to have a "one drop" rule. Any hint of restriction on a software module means it's not going to be in a Debian release. Apparently, the Keyspan driver uses code that carries a phrase like "only for use on Keyspan products".

(It is possible to get the driver source and recompile the kernel to include it, but this would take time that I don't want to spend.)

My solution? Use a different USB-serial device. I happen to have one based on the FTDI chip and driver, which is supported on Debian (plug and play). This one-port gadget has no manufacturer's name on it, but I recall buying it at Staples, possibly under the Belkin name.

One problem with USB devices and Linux is that you can't easily tell if a particular device is supported, because the Linux drivers support particular chipsets, and the vendor's packaging rarely tells you what chipset is being used. At least one on-line vendor, USBgear, does tell you. I have no experience with them, but they do offer a number of 4 port units in the $70-90 range.

Debian's "purity" philosophy (similar to GNU's?) is very strict. They have a point, but flexibility is good, too. This idea of "freedom" is going to cost me $80 and several hours of head-scratching. For me, that will be the price of PPC support.

Saturday, October 06, 2007

Bandpass Controls for HF Digimodes

When working PSK31 or other "digimodes" on HF (high frequency) radio, we commonly use computer soundcards to analyze and transmit data. I like to use the Linux program fldigi for this, along with my Ten-Tec Orion transceiver.

The soundcard takes in the entire audio output from the Orion, typically 100 - 3,000 Hz. Fldigi (and similar software) allows you to point to a transmission of interest on a "waterfall" spectral display. This automatically sets the decoder to analyze data in a small band around the cursor using digital filtering.

This works well when the bands are relatively quiet, but when you have a band crowded with strong signals, the signal of interest can be strongly affected by "out of band" signals (but still in the 3 kHz audio region) that key the receiver's AGC (automatic gain control).

In this case, we need narrower IF (intermediate frequency) filtering than 3 kHz. Fortunately, a DSP (digital signal processing) rig like the Orion provides "infinitely" adjustable IF bandpass characteristics, so it is possible to "zoom in" on the signal of interest, largely rejecting any signals outside the small IF passband.

I have written a small Python/wxPython application "oFilter.py" that puts up a panel to allow Orion bandpass control from the same screen as fldigi. (Since fldigi communicates with the Orion via Hamlib at the same time as oFilter, there is a small potential for I/O conflict, but this is not a serious problem.)

Here are a few screenshots to show what is going on. Ultimately, it would be great to integrate the oFilter functions into fldigi or a similar program, using convenient mouse controls.


The PSK31 band at 14.070 MHz with many Europeans
coming in the 3 kHz default bandpass.


"Zooming in" the IF bandpass to 200 Hz,
more-or-less centered on the signal of interest.


Zooming in to a 100 Hz bandpass (minimum available).


The oFilter.py application.

Sunday, September 30, 2007

Report from DCC 2007

About 200 hams and friends gathered at the 26th TAPR/ARRL Digital Communications Conference for 2007 was held in Windsor Locks, CT, Sept. 28-30, 2007.

Many great papers and conversations. I presented my talk (PDF), "SourceForge, Hamlib, and Rigserve: Free Beer, Free Speech, and Rig Control", which is also printed in a somewhat different form (PDF) in the Proceedings.

A few cheap photos from my Treo 650 phone:


A typical session


Gerry Youngblood explains the Flex-Radio SDR-5000


Steve Bible, N7HPR, TAPR Vice President


Banquet speaker Bruce Perens, K6BP

Bruce had many fine insights into the state of the amateur radio world. For one thing, he noted that the average age at DCC is about 10 years less than at Dayton. "We are the future of amateur radio."

Tuesday, July 31, 2007

SourceForge, Hamlib, and Rigserve... DCC'07

My contribution for the TAPR/ARRL Digital Communications Conference, Sept., 2007 appears here, as a PDF.

DCC is always a good show for advanced Amateur Radio technology. This year, it will be in Windsor Locks, CT, not too far from me. Previous Conference Proceedings are available.

Friday, February 16, 2007

New Rigserve Project on Sourceforge


Some of you know that I've been working on "Rigserve", which is meant to be a much streamlined server-style application providing much of the functionality of Hamlib. We avoid most of the cross-platform problems by defining our API over an IP connection, which is human-readable and even testable over Telnet. Rigserve is implemented in object-oriented style using Python, which should allow it to run on many platforms. I am not sorry to jettison low-level C, the GNU Automake stuff, SWIG, and all that!

We have talked about the relationship of this development to Hamlib. Should we think of it as a candidate for "V2 Hamlib"? Well, Rigserve is not a library, and there is no backwards compatibility. Rigserve does share some philosophy with Hamlib, but that's about it. I have concluded that it should stand on its own, but we should give full credit to the many folks who have brought us Hamlib as we have it today.

[There are some alternate approaches, too, such as XML rigCAT descriptions at http://w1hkj.com/xmlarchives.html . These may be useful to both Hamlib and Rigserve down the road.]

There is now a project at http://sourceforge.net/projects/rigserve with a slightly updated version 0.21 available for download. The files are managed in the Subversion (SVN) repository.

I would welcome anyone who wants to contribute to rigserve to join this project. There shouldn't be a conflict of interest here, because the intersection of hotshot C and Python programmers is probably limited. Though I am neither(!), I will continue to support the TenTec Orion for Hamlib.

It has been interesting to start a Sourceforge project and to learn Subversion and the other tools. Frustrating, too, because SF's shell server and compile farm chose this week to go into meltdown. The project web page is at rigserve.sf.net.

73, Martin AA6E

Saturday, September 30, 2006

Hamlib, reloaded

The Hamlib project has been working on a rig-independent API for software developers that will allow them to connect to a wide variety of ham rigs without worry about their individual interface quirks.

Lately, we have begun discussing how this project can envolve into a "version 2". There is a new blog at hamlib-developer.blogspot.com to support development of Hamlib. If you want to take an active part in the Hamlib project through this blog, please contact me.

The Hamlib project is supported at sourceforge.net/projects/hamlib, which provides a mailing list, CVS, and other amenities.

Tuesday, January 24, 2006

Hamlib QST Stray

My little article about hamlib finally came out: QST, Feb., 2006, p. 101.