Playing radio ..

APRS mapSo today I decided to spend some time playing radio in the FJ. I drove down to the Canadian Aviation Museum which is situated along the Ottawa River to watch some light aircraft come and go as I played around.

APRS map of VE3BUX

There was no real purpose of today’s radio play other than to get out and actually fiddle around.

I decided to convert my netbook entirely to Linux as I have long been a fan of the operating system. My usual choice would have been Mandrake (Mandriva) but Ubuntu was already installed (previous project) so I just went with it.

My first order of business was to install Fldigi which was as simple as:

$ sudo apt-get install fldigi

After installing Fldigi and configuring both my USB-to-serial adapter (PL2303) and my Creative USB sound card, I was up and running! I might add that configuring the USB-to-serial adapter was a pain in the butt because I am not entirely familiar with the Ubuntu convention for /dev/ devices. Turns out my USB adapter was assigned to:

/dev/ttyUSB1

With Fldigi up and decoding data, I decided to turn my attention to the original premise of switching over to Linux: soundmodem

Soundmodem is a Linux kernel module which allows one to use their soundcard as a software KISS-TNC. The software TNC is integrated at a very low level, allowing for some pretty sophisticated radio-networking which is generally not possible (or very poorly implemented) in other systems.

$ sudo apt-get install soundmodem
$ sudo soundmodemconfig

The soundmodemconfig utility allows one to configure the soundmodem module to modulate and demodulate AX.25 ASFK intelligence using the standard 1200Hz and 2200Hz (mark and space respectively). First you must create a configuration for your radio / computer. This is where you will select your sound-card driver and the PTT driver.

Mode: alsa
ALSA Audio Driver: plughw:1,0
PTT Driver: /dev/ttyUSB1

Next, you create a channel for the intended purpose of your packet radio work. In my situation, I wanted to use APRS so I created Channel 0 with the following settings:

Modulator
Mode: afsk
Bits/s: 1200
Frequency 0: 1200
Frequency 1: 2200

Demodulator
(same as above)

Packet IO
Mode: KISS
File: /dev/soundmodem0

Once the soundmodem is configured, you can test it out by clicking on Channel 0 and then selecting “Diagnostics” in the menu. Next was to install xastir (an APRS visualizing program).

$ sudo apt-get install xastir
$ sudo xastir

With xastir running and my radio tuned to 144.390MHz I was soon decoding AX.25 APRS packets. I manually entered my coordinates into xastir and fired off an APRS packet by selecting: “Interface > Transmit Now!” and sure enough, I was seen on aprs.fi shortly after.

Success! Now all I have to do is get my Garmin 62S to properly communicate with the Ubuntu machine. Its been a pain in my arse thus far – I do NOT like the changes Garmin made to their interface.

The next mini-project I had set out was to play around with pskmail a bit. For those who are unaware, pskmail is a system similar to sailmail or winmor which allows a radio amateur to send and recieve emails (and more in the case of pskmail) via HF. This is a pretty cool concept that I would like to play around with, so, I spent a couple of hours getting pskmail up and running.

Unfortunately, the installation and configuration of pskmail is total crap for linux. I was extremely disappointed to see the pathetic installation package which pskmail currently uses. I can appreciate Java applets, etc. however in this case, I firmly believe that a proper Linux binary is in order. Alas, I digress.

After much screwing around with getting a working Java run-time environment which would properly virtualize the pskmail client, I was up and running. I still have some learning to do with this system, however, it seems promising so far.

I’ll be looking into winmor as well – I seem to recall there was an effort to port this over to Linux as a binary. I’ll keep you posted on what I find.

Posted in Mobile, Operating | Tagged , , , , , , , , | 2 Comments

Bounced email …

Hi all,

Sorry if you’ve emailed me recently only to have the email bounce back to your inbox. This web service is being hosted on a VPS server (as opposed to my usual collocated machine) and the incredibly bad sys-admins at Sagonet decided to screw with the VPS servers.

In short, they had force-installed a pathetic MTA (Linux email back-end) which was not compatible with my current setup. I was none the wiser until I was scouring the logs as part of my weekly security routine.

Sendmail is old and lame. Postfix is much, much better .. so please, Sagonet, stop trying to force install that garbage on MY MACHINE!

/end of rant

Posted in Uncategorized | Tagged , , , , | Leave a comment

On the topic of USB-to-serial adapters

Awhile back I saw some USB-to-serial adapters which were extremely slick. Imagine the whole package in the same form-factor as the DB-9 (serial) pin header. That’s right! The whole adapter fits in the same footprint as the serial port connector which your device uses.

DB9 USB-to-Serial Adapter

DB9 USB-to-Serial Adapter

Now instead of a USB-to-serial cable connected to your device, you can just connect directly to a USB port – no need for that silly adapter cable! Just solder one of these modules in place of the existing passive serial-connector and you have yourself what has effectively become a USB device! What a great way to modernize a legacy piece of equipment.

You can purchase these adapters for about $15 from Digikey.

Update: I purchased a couple of these units and they are fantastic!! I installed one in a DSP-232+

Posted in Project | Tagged , , , | 2 Comments

Sound-card interfaces … home brew one!

After talking with a recent course graduate about operating using digital modes, etc., the topic of radio-to-computer (sound card) interfaces came up. For those who are unaware, a sound-card interface allows one to safely connect their radio’s audio input and output (and push-to-talk) to their computer, opening up the world of digital modes (such as PSK31, JT65, RTTY, SSTV, and many more).

After a brief discussion of the reason for isolating your computer from your radio (esp. true for desktop computers tethered to base radios) I explained a simple transformer-isolated circuit. It is true that capacitors can be used to DC isolate components, however, I firmly believe that using a transformer is a better practice.

Sound card interface schematic (simplified)

Sound card interface schematic (simplified)

During our conversation, I drew up an interface which I have very successfully used with my KG-UVD1P and FT-857D radios. The above schematic is what I currently use and can be built for roughly $20 (plus another 15 for a USB-to-serial converter).

The basic concept is that the two (600Ω:600Ω audio) transformers DC isolate the radio from the computer while still allowing audio frequencies to pass. Potentiometers then reduce the signal for systems as appropriate for low-level inputs (such as many microphone inputs). The PTT is handled by taking a RTS signal from an available serial port (USB-to-serial in this case) and passes the signal through an optoisolator (LTV817 in this case).

Add in a USB sound-card such as the Creative USB (for $30) and you have effectively made a $65 sound-card interface which would cost well over $100 if purchased from a commercial supplier.

Fast forward to my latest project.

I am currently designing a single-board sound-card interface for amateur use which should come in at roughly the same price (target is <$60), offering a kit-build project to introduce more radio amateurs to digital mode operation.

Sound card interface PCB

Sound card interface PCB

The image above shows an early prototype of my PCB .. there will be more changes as I explore different options, however, this is the rough skeleton. The PCB is 85 x 50mm (3 x 2″) at the moment which offers a nice compact foot-print. I will be making conceptual changes as I go along to make the project as user-friendly as possible. I may even integrate a micro-controller to handle mode settings, etc. to further stream-line the whole interface.

… more to follow!

Posted in Project | Tagged , , , , , , , | 5 Comments