Public Syndication

Ultra-Low Bitrate Speex

I just stumbled across this article, discussing the issues behind digital voice encoding at low bitrates.  The use of AMBE in the D-Star protocol really does get up my nose, at best it’s distasteful, at worst, harmful.

I’ve been doing some experimentation with Speex… so far my experimentations have been with bitrates above 12Kbps.  Above this, it is quite intelligible.  This is helped with pre and post filtering with the following filter:

Filter for ultra-low quality Speex

It’s not ideal… it means things do sound rather flat, but it’s similar to existing filters employed on existing SSB and FM transmission systems. On SSB, around 2.2kHz is the maximum upper frequency… and it tends to drop out around 300Hz, give or take a little bit. That filter could do with some fine tuning, but I find for low-bitrate Speex, using it to filter the audio before encoding, and after decoding, helps to reduce the distortion of the codec. Some fine-tuning could allow for better fidelity.

It is interesting to hear though, that DVSI even cuts corners though in an effort to lift perceived clarity by trying to reproduce the bottom end.

A good low-bitrate encoder benefits everyone… VoIP becomes even cheaper when you can send the same quality audio in fewer bits, and the benefits for HF radio communications would be immeasurable.

I guess though, it comes back to the old saying:

The superior man understands what is right; the inferior man understands what will sell. — Confucius

AWNOI

Australia-Wide Night-Owl and Insomnia Net

The AWNOI net is a weekly evening net that starts at 10:00PM UTC+10 (or 9:30PM UTC+10 when daylight savings time is in effect) and continues until the last station falls asleep. This recording is produced by myself using my HF set (Kenwood TS-120S), Yaesu FC-700 tuner and G5RV-like outdoor antenna. My QTH is at The Gap, Brisbane, QLD. Most of the stations participating, bar 3, are VK4 stations (two VK2s and one VK1).

If you’re a licensed amateur with equipment for 80m communications, feel free to join us at any time.

This recording was made 2009-01-30 and is available as Ogg/Speex, Ogg/Vorbis or MPEG4/AAC codecs.
A short highlights recording is also available, in MP3, Ogg/Vorbis or Speex.
Continue reading…

The puzzle of handheld radio antennas

Well, lately I’ve been tinkering around with antennas again for use whilst mobile.  By mobile, I mean public transport mobile, and pedestrian mobile… I don’t own a car.

Most handheld radios come with rubber ducky antennas.  My Kenwood TH-F7E is no exception.  Rubber ducky “dummy loads” as I call them, are quite dismal performers against an efficient and resonant dipole — however they are usually much more convenient size-wise than a resonant antenna.  It’s a similar story for mobile HF antennas… they’re a negative gain antenna.

Naturally, the way I’ve improved it, is to construct my own.  So far, I’ve built a number of these antennas.  The first version was a bit of stainless steel fencing wire with a SMA connector soldered to the botto and a few turns of a coil.  It was about 50cm long… roughly cut, so possibly not that well tuned… but it performed quite well… allowing me to reach repeaters up to 80km away on 2m with minimal line-of-sight.  The SMA->antenna interface proved to be a fragile component however.

A later version attempted to be a half-wave 2m, and could extend (fold out) to become a full-wave 70cm antenna.  This again, had similar mechanical issues to its predicessor, but performed excellent otherwise.

It was pointed out to me that trying to match a full-wave antenna is asking a bit much of the power-amp in my radio, and that an odd multiple of 1/4 wavelength was better.

Thus, the third revision, I made using some surplus solid core electrical copper cable, and a BNC connector, was constructed at a length of 52cm.  52cm was calculated according to the rule v=f?… the frequencies I had in mind were 146.500MHz (2m FM calling frequency)  and 439MHz (near to the input frequency of most 70cm repeaters).  52cm was calculated approximately as being 1/4 wavelength on 2m, and 3/4 wavelength on 70cm.

This antenna performed exceptionally well, and with the BNC connector, showed less mechanical problems than its predicessors.  It did however, put a lot of strain on the BNC->SMA adaptors I was using, and I had to be extra careful with the antennas length.

Using MMANA-GAL, I tried modelling this antenna, just to see how well it infact should work in theory.  Well I was right… about 6dBi gain on 70cm… it wasn’t bad at all! However, SWR was through the roof, 1:several hundred thousand.

I’ve since found a long forgotten RC car remote that operated on 40MHz, which had a 40cm long antenna.  I’ve stretched the base coil out a bit to make it 42cm and added a SMA connector to the bottom of it… I may have to extend it a bit, but this seems like a closer match to what I’m looking for… but my modelling of it is just as dismal in terms of SWR.

Now, as far as improving SWR… the ways I know of to fix this problem are:

  • To make the antenna a dipole, effectively doubling its length
  • Adding a ground plane or counterpoise radial
  • Adding a matching section (like a J-pole)
  • Using some sort of matching network

The thing that has me curious, is the rubber ducky antenna.  Now granted, I know those things do not radiate well.  They must however be doing something to keep the finals from blowing.  My understanding is that they’re little more than a spring in a plastic jacket… I can’t see how that is meant to match to the 50? source impedance.

The antenna design I use is apparently very similar to one used by Motorola for some of their professional radio antennas, according to this post.  Now I’m not sure how 19.5″ is arrived at — it doesn’t fit with the maths I used above, there is something I’ve missed.  Surely though, an antenna of this type would have the same impedance matching issues as the ones I’ve designed.  Either there’s other magic involved, or the finals in many handheld radios are more hardy than I thought.

At some stage I might borrow a SWR meter or antenna analyser for VHF/UHF… it’d be interesting to see just how far off the mark I am.  I haven’t blown my finals…yet.  The radio seems to still have plenty of life in it.  I’d be interested to know however, some of the background on this topic.  There is something I am missing, and I can’t quite put my finger on it.

Gentoo/MIPS uClibc Stages

Hi all…

Well, after a long hiatus, I’m working on new stages for the Gentoo/MIPS port.  These new ones will be based on uClibc, and are a compliment to the existing glibc-based stages.  At the moment, the initial seed environment is still being cross-compiled from my i686 host, and for now I’m focussing on mipsel but will soon turn my attention to MIPS.

These stages initially will not operate with a page size of 16KB or more, so unfortunately aren’t much good for Lemote users (I’m working with the uClibc people on this) but Cobalt and SGI users will soon once again be able to use uClibc as their system libc.  The new stages will be based on uClibc 0.9.30… which is yet to be keyworded.

Can we drop this silly filter nonsense and move on?

Open letter to Minister Stephen Conroy regarding the proposed internet filter.

Over the last year, we’ve heard a number of people step up, complaining about this proposal, and what it will mean in terms of freedom-of-speech, and internet speeds.  I also heard a rumour that mentioned the blocking of peer-to-peer traffic.

Now, it is very noble of the government to be that concirned with the issues involving pornography and other objectionable material, that they are pushing forward with developing and introducing this filter to the masses.  Others have already pointed out many of the ethical and technical issues with the proposal, which I note, to date, are still not addressed.

The latest proposal however, has been to block peer-to-peer traffic.  I strongly urge those in the government to carefully consider the consequences before taking on such a drastic action.  Ignoring the fact that Bit-Torrent and similar protocols can, and are, used for legal purposes (such as distribution of open source software) as well as for piracy… a lot of other peer-to-peer protocols exist, that many people expect to be able to use freely.

Consider the following applications/protocols:

  • Skype
  • MSN Messenger
  • Ekiga
  • Yahoo! Messenger
  • TeamSpeak
  • EchoLink
  • IRLP
  • IRC DCC
  • VNC
  • RDP
  • SIP (most VoIP systems)
  • Hamachi
  • … etc

All of these, rely on peer-to-peer traffic to operate, and are used lawfully.  Blocking SIP could be disasterous to our telecommunications, since many people rely on this protocol as their primary home phone service! Such a move could proove highly unpopular with the voting public, and deadly to businesses that rely on VoIP services.  In a time of global economic crisis, is this really what you want?!

It is true that many of us absolutely hate it, when a politician breaks an election promise.  However, we are more than too happy to forgive politicians for breaking such promises, when such promises are mearly implementing bad policy.  I urge this government to consider the above, in addition to the comments made by others on this topic, before going ahead with such disasterous propositions.

Gentoo/MIPS Update

Hi all… figured I better update everyone on what’s happening on the MIPS front.

Kumba has been working on newer kernel ebuilds to support various platforms, specifically IP30, which has been troublesome of late. At present, the best kernel revision to use is still 2.6.23 on Cobalt, Loongson 2E and O2.

Another alternative, is to download your own kernels from the Linux/MIPS website (not kernel.org), and research the patches needed to get things running yourself… in fact… Lemote Loongson 2E, Cobalt Qube2 and SGI Indy/O2 users should find minimal to no patching is necessary as the vast majority of changes have already been accepted into the mainline kernel.

Stages… there have been no further stages built at the moment from the 2008.0 ones. Partly because some of us have been just too busy. I’ve started to make inroads into a uClibc-based set of stages however, having got a uClibc-0.9.30 toolchain built the other day targetted at mipsel-unknown-linux-uclibc. It is hoped a workable environment can be constructed in the coming months that may turn into a new set of stages available for this platform.

Desktop Applications… have been lagging quite a bit. I have some patches for Thunderbird 2.0 that gets things rolling again… and may just work for big-endian MIPS (which was broken at last check) but due to lack of time, I haven’t been able to investigate further. A similar set of patches got Firefox 3.0 partially working… more work needs to be done.

My own status… I’m not planning on leaving anytime soon… just been extremely busy. As it is now, I’m passed my 8:00PM bed time (need to be up at 4:00AM tomorrow, currently it is 8:35PM AEST), so I’ll leave it at that.

Welcome to the Sunshine State

Blimey… someone must’ve said something to upset the weather.  We’ve survived the last 3 storms thus far.

It does seem though, that nature clobbered us in The Gap, then Wednesday night, said “Ohh… I missed you Paddington… Here you go!  Ohh, and you’ve been left out too Rosewood… have some rain.”  These same storms washed away parts of the Brisbane->Ipswich->Rosewood rail line… which is going to make getting to work (at Laidley) rather interesting.

Last night, Blackwater (Central Queensland) got clobbered by cricket-ball sized hail.

On the bright side though, we have gotten rid of trees and other garden plants that we’ve been meaning to rip out for months… and our dams are getting a much-needed top-up.  But for now I am watching the BOM Queensland Weather page like a hawk.

Sunday’s Storm

Hi all,

I suppose you’re wondering why I’ve been absent from my usual online presence since Sunday afternoon.

Sunday we were at Montville (near the Glasshouse Mountains) doing a bushwalk through Kondalilla National Park on part of the Sunshine Coast Great Walk. On the way back home after stopping with the group for a drink at Landsborough, we drive along the Bruce Highway towards Brisbane when we noticed the huge storm front.

This storm front looked like it had tinges of green in it — which suggested mother nature might make lots of ice cubes and drop them on my father’s 18-month old car. The rain started pelting down as we got in to Carseldine, and eventually we decided to take refuge at Chermside shopping centre and have dinner while the storm passed.

Everything was uneventful on the trip home for the most part, one set of lights were on the flash… also some localised flooding… until we got through to Keperra. We had planned that evening to drop in on some friends (former next door neighbours, husband & wife, the husband dying of terminal cancer). As we drove passed the Mitchelton State School (I think that’s it), we saw that Dawson Parade was blocked off by a fallen tree, and the traffic was crawling. We inched our way towards home along Samford Road to see trees uprooted (not small ones either), massive flooding in parts. The horror story got worse as we headed over the hill from Keperra to our home suburb of The Gap.

Power lines down, trees over the road… we had to park the car some 400m away and walk the remaining distance due to blocked roads. It was about 20 minutes before we could get it home. Apparently our street had about 1m of water down it when the storm was at its peak.

Our house was undamaged, although a couple of trees copped a battering in the storm and had to be pulled down, and the G5RV antenna I had set up for my HF radio was damaged (still is… I’ll get around to it eventually).

We had no power (except for a 2.5kW petrol generator we own that we ran for a few hours yesterday) from when that storm hit, through to about 5PM Tuesday Evening. One UPS is a write-off on the count of knackered batteries, but otherwise, we’re okay. During the outage, mobile phone services were up and down like a yo-yo… my handheld dual-band transceiver, tuned to the Mt. Cotton (VK4RAX 147.075MHz) and Mt. Coot-tha (VK4RBC 438.525MHz) prooved to be more reliable. (Unfortunately though, I was one of the few amateurs in my street).

A few houses copped about 40cm water through their house, destroying carpets and ruining furniture. One house, that was for sale, wound up with a tree landing on its roof, piercing the awning and the roof in a couple of places. A number of fences also were written off.

Damage was worse around Payne Road. I suspect this is where most of the pictures of damage were taken. It appears the storm first came over Mt. Coot-Tha, hit Payne Road, bounced, hit Waterworks Road, rolled down the hill ploughing through The Gap State School and St. Peter Chanel School (this is where I began my schooling) and up Fish Creek (including the bottom end of our street). From there it continued up Settlement road, ploughing through trees along the road, and decimating the tree-line along the ridge between Keperra and The Gap.

Thanks to the help of everyone in our street and the numerous volunteers, we’ve now mostly got our street back into reasonable shape. The following is not an exhaustive list, I’ve possibly overlooked numerous groups and organisations that have helped in some manner. Some of the organisations that have assisted those in The Gap and therefore I’d like to thank (in no particular order):

  • State Emergency Services (some units came from as far away as North Queensland)
  • Queensland Police
  • RoadTek (Department of Main Roads)
  • Queensland National Parks and Wildlife Service
  • Skilled Engineering
  • Energex, Ergon Energy, numerous other companies, some from interstate
  • Rural Fire Brigade (some from as far away as Gatton and beyond)
  • Brisbance City Council

… any other organisations who assisted… and of course the neighbours who pitched in and helped clean up.

I uploaded my pictures here (taken the morning after). Some more pictures of the storm are available from the Triple M Cage (Brisbane) website.

Experiments with wireless headsets and HF

The other day I commented on my recent purchase of a new headset, and my intention to use it on air. The following are some very rough notes on how to set it all up.

There a couple of things I’ve discovered… one being, if you’re not careful with muting the microphone, it’ll generate a DC offset back to the computer… which with Qtel, is mistaken for a signal, so it’ll transmit a carrier indefinitely.  I submitted a hack around that issue, which is now included in the latest SVN release of svxlink… but needless to say, it caused some embarrasment earlier this week.

The other reason why I bought it… was for use with the HF station.  This set gives me the freedom to walk around the house which simply is not possible with a HF rig as big as the TS-120S attached to a full-size G5RV.  The solution?  Use JACK to patch the audio from the onboard sound card, through to the headset, and vice versa… using the VOX function on the HF set to key it up.  Another bonus is the ability to use tools such as FreqTweak for realtime DSP filtering.

Physical wiring: You’ve got a number of options here.  Usually to interface the radio to the computer, one hooks the “Mic” port to an output port on the sound card, and the “Phones” port to the Line-In on the sound card.

In my case, I had a TAD (Telephony Answering Device) port spare — this port normally hooks to a modem.  Since all I need is a mono input/output… I decided to hook to this port instead.  I found the ferrite beads were needed on each end of the cable… without these, I got lots of RF feedback when I tried to transmit.

Audio Routing within the system… well for basic functionality, everything can be achieved using qjackctl and jackd… however, I wanted the ability to use DSP filtering in both directions.  There is a catch however.  jackd will only talk to one sound card input, and one sound card output at a time.

Now… you can muck around with ALSA’s pcm_multi and pcm_route plugins to make a virtual multi-channel sound card.  But there’s a little known option that is a lot easier.  Enable the netjack USE flag and install jack-audio-connection-kit.  This will install two utilities alongside JACK, alsa_in and alsa_out. Also install qjackctl and freqtweak if you have not done so already.

Fire up qjackctl and adjust the properties to suit your setup.  Choose one of the sound cards as your primary device… the other will be hooked up using the alsa_in/alsa_out tools.  In my case, I have the settings shown in the screenshot below.  The exact settings to use will be dependant on your hardware.  In this case, I chose to use the headset as the primary device, specifying plughw:Headset and hw:Headset as the input and output devices.

Once you have that configured… start the JACK sound server. Now open up a couple of terminal windows and type the following… each line in a different window:
$ alsa_in -D hw:YourOtherSoundInterface
$ alsa_out -D hw:YourOtherSoundInterface

In my case, they were named AudioPCI. Go back to qjackctl and bring up the connections. You should see the alsa_in and alsa_out ports as well as the system ports corresponding to your two sound cards. Fire up freqtweak, set it up for two-channel filtering… then set up your connections as shown:

If it’s not clear… the audio feeds should be:

  • alsa_in:capture -> freqtweak:in_1
  • freqtweak:out_1-> system:playback_1 + system:playback_2
  • system:capture -> freqtweak:in_2
  • freqtweak:out_2 -> alsa_out:playback_1

As for keying up the transceiver.  The Kenwood TS-120S features VOX built in, but you’ll find that as you speak, the audio sent to the transceiver gets fed back to the headset — delayed, which throws one’s speech processes.  The workaround here, is to use the mixer mute features to keep the audio going one direction at a time.

Most headsets have two volume up/down buttons… I found it was convenient to bind one of these in KDE to execute the following command:
amixer -q -D hw:AudioPCI sset 'Master Mono' toggle ; amixer -q -D hw:AudioPCI sset 'Capture' toggle

This effectively switches between transmit and receive. Press the button once, you’re transmitting, press again, you’re receiving. Simple. For transceivers that lack a VOX feature… you can also add commands for rig control software that will turn the PTT on and off for you. Alternatively, one can capture the KeyPress/KeyUp using XGrabKey, and thus it behaves like a regular PTT.

This is left as an exercise for the reader — I found the xhkeys source code a help for figuring this out… combining this with hamlib and alsa-lib should allow a decent and usable interface when away from the rig itself.