Wednesday, August 10, 2011

APRS iGate on a smartphone

Not that many will have noticed its absence, but the Cockermouth APRS internet gateway G4ILO is back on the air using APRSISCE running on a SIM-less HTC Touch Pro smartphone.


I had wished for a long time that I could run the gateway without having the shack PC on all the time running up the electricity bill. But when I looked at the documentation for things like aprs4r it looked too difficult. After I got my Android smartphone I was wondering what to do with the Windows Mobile I used previously and it occurred to me that I could use this for the gateway, since the Windows CE version of APRSISCE contains more or less the same functionality as its full-blown Windows counterpart. (Personally, most of the time I don't consider that to be an advantage, and I had often wished that Lynn would release a cut-down version for mobile users with simplified menus, but that's another story.)

In order to use the phone as a gateway I would have to set up a Bluetooth connection to the Kenwood TM-D710 TNC as the Touch Pro doesn't have a serial port. Achieving this was one of those things that I wish I had never started, entailing hours of wasted time, failure and frustration. It also brought upon the first bad headache I have had since my brain operation. This is probably not helpful to the state of my health, so I have vowed from now on to give up the technical stuff and use the computer only for non-stressful activities like writing and web surfing. Life is, for me, literally too short to spend fighting with computers.

My first attempt at a Bluetooth connection involved using a Pico Plug. I bought two of these a couple of years ago when I saw them cheap on eBay (where they are still available, though not as cheaply) but I had never actually used them. However this first attempt got nowhere. My netbook - the only PC that had Bluetooth on it - would only see the Pico Plug as a modem and would only allow me to try connecting to the Internet through it. The smartphone saw the device but could find no services offered by it. So that idea went nowhere.

My next thought was to try one of the cheap Bluetooth serial modules being sold on eBay, as something similar had been mentioned in a thread in the APRSISCE Yahoo group. The one I ordered was described as a small size Bluetooth TTL UART full duplex data transmission module Class 2 10 meter range(30ft), 35mm by 15mm excluding pins length nicely sleeved in transparent nylon sheath supplied with 4 wire header cable. The module is based on the BT0417C chip and has a regulator to run off 3.3 - 5V. It arrived the next day by first class post and was quickly attached to a DB9 connector and power.


The BT0417C module was seen by the computers and advertised a serial port service. But whenever the Kenwood TNC sent any data what appeared in the terminal program was garbage. It was the same garbage for the same data, which made me think that the baud rate was wrong, though the default settings for the module were supposed to be 9600,8,N,1 just the same as the Kenwood. Try as I might - and I tried for a long time - I could not get the thing to display the proper data.

Eventually it dawned on me that changing the baud rate of the terminal program might not actually alter the baud rate used by the module to communicate with the device. I found some instructions that were supposed to describe how you could change the module's baud rate by sending an AT command to it. This didn't work either, after which I grasped that you were supposed to send the command by direct connection to the module, not over Bluetooth! To do this I needed to disconnect a serial cable from the back of the shack PC in order to free a gender changer that would enable me to connect a USB to serial cable to the BT module. When I disconnected the cable, one of the standoffs that the cable plug screws into decided to come off with the plug instead of stay on the PC and a nut dropped down inside the computer. So I had to disconnect the shack PC - not a simple task as it has 4 serial ports and 3 sound cards attached as well as the usual paraphernalia - in order to retrieve and replace the errant nut. Then we couldn't get the backplane of the serial board seated back in the PC. I couldn't see what I was doing properly so Olga had a go, and it took her half an hour of fiddling.

After all that I still couldn't change the baud rate or get the data to be displayed correctly. I even tried connecting my Elecraft K3 to the module to see if I could send or receive commands from that, but I still got garbage at any of the K3's available baud rates. I then wondered if I had damaged the module by doing that as I vaguely recall that the K3's I/O module uses proper +/-12V RS232 signalling levels and the BT is a TTL module. I don't know what the Kenwood's serial output is either. At this point I decided to abandon the entire idea. Net result: a wasted day and a splitting headache - though at least we had taken the opportunity to vacuum all the dust out of the inside of the shack computer!

This morning, feeling a little calmer, I decided to have one last try with the Pico Plug. It suddenly occurred to me that perhaps there was some newer software or firmware for it. Sure enough, there was, though not a lot newer. I upgraded the firmware in the Plug, then installed the newer configuration utility. The result: still no advertised serial port service. :(

However, the new configuration utility had a few more options. By trying them at random I finally got a serial port to appear in Bluetooth on the smartphone! I connected to it with Pocket Putty, and the whoop of joy when the Kenwood packet TNC sign-on message appeared could probably have been heard five miles away. I quickly created an RF port in APRSISCE using the Kenwood(D710) APRS configuration and it put the radio into APRS mode just as it was supposed to. Stations started appearing on the display as "heard over RF." So, finally, I was on the way to running an APRS iGate on my smartphone!

In case it is helpful to anyone else who wants to use a Pico Plug to connect a Kenwood APRS radio to another device using Bluetooth, here is a screenshot of the configuration utility showing the settings that worked. (Yes, I know, I set the device name to TM-D72 instead of TM-D710 as I intended. Believe me, by this point I was tired!)


Here is one showing the RS232 settings. The important bit seems to be to set it as a Modem.


If you know what to do then that's all there is to it. But my goodness what a frustrating nightmarish day or so it took getting there. I hate computers - and it would seem that the feeling is mutual!

Bicycle mobile

I've always been a bit of an armchair traveller, and also an armchair cyclist. I like to read accounts of people's travels through foreign lands, particularly if they are travelling by bike. The slower pace and need to stop and talk to more people means that they are able to convey more of a feel for the place than you get from reading grossly overrated travel writers like Bill Bryson. So having just come across the blog of Raf, ON5RZ, who is currently cycling through the USA and Canada with an FT-817 and wire antennas, I have some reading to catch up on. Perhaps you'll enjoy reading it, too.

Monday, August 08, 2011

Whispering with wonder

A few days ago I dug out of the cupboard the Wonder Loop portable magnetic loop that I made a while ago. I had lost the pieces of uPVC electrical conduit that made a Heath Robinson support for the coaxial cable loop element. But I had always felt the saggy coaxial loop was a bit of an eyesore anyway. So I decided to make a new loop using microbore copper tubing. It turns out that you can buy this stuff on eBay - any diameter and length that you want shipped to your door next day by first class post. Three metres of 1cm dia tube cost just over £12.


The new loop looks a lot better and certainly hasn't harmed the performance of the antenna which continues to amaze me. I tested it using WSPR at a 1W power level on all bands (40m - 15m) that my Wonder Loop covers. The best result was obtained yesterday afternoon on 20m, between 16:30 and 19:38z, when I received 15 reports from VK2XN of from -9 to -25dB SNR, at a distance of 16579km. This, I repeat, was using just 1 watt from the FT-817 with the Wonder Loop sat on my shack "workbench" almost exactly as in the picture. (The FT-817 was moved to the radio/computer desk during transmission.)

I also spotted 9 reports of VK2XN during the same period, which surprised me due to the extremely high noise level I have here on 20m. The SNRs weren't so good, though, and he was running 10 watts. Still, that almost qualifies as a two-way contact.

I haven't tried other modes yet, mainly because the shack is so small and these days I'm a bit wary about sitting inches from an antenna even if it is radiating no more than a watt or two. But the original Wonder Loop was very successful using PSK31 and I hope to try this one with JT65A shortly.

The one disadvantage of the new copper loop is that it isn't exactly portable, which had been one of my original objectives when building the antenna. If you could get hold of some metal strip it might be possible to make the loop from six pieces that you can join together using bolts and wingnuts to form a hexagon. Possibly you could even do this using tubing, flattening the ends of each 60 degree segment and then drilling them so the loop could be bolted together. But as I'm not planning on taking the antenna anywhere at the moment I'll keep the one-piece loop which I can stick behind the shack door for storage.

This is a really great antenna that should enable anybody to operate HF from anywhere.

Friday, August 05, 2011

Tom Hammond, N0SS, SK

It was with great sadness that I learned from the Elecraft reflector today that Tom Hammond, N0SS, passed away early this morning after losing the fight with cancer.

Like so many of the friends we make in this hobby, I never net Tom in person. I never even met him on the air. But it felt like I knew him. Tom was one of the first beta testers of the Elecraft K2 and one of the most active members of the Elecraft reflector in helping other kit builders with any problems. As an early K2 builder myself, many has been the occasion when I have posted a question to the reflector and received a helpful reply from Tom.

Tom's dedication to helping others get the best from their Elecraft radios was exemplary. Apart from assistance freely provided via the reflector and email, he maintained a website packed full of useful Elecraft-related material which I hope someone will take steps to preserve. Tom also produced several small kits and PCBs for modifications and add-ons to Elecraft radios which he provided at no profit to himself.

Tom Hammond, N0SS, was one of the finest examples of the ham radio spirit and our hobby today has suffered an irreplaceable loss. My thoughts are with his XYL and family.

Hitting a century

I have just noticed that this blog now has 100 followers. I'd just like to say thanks for reading my ramblings and I hope you continue to find them interesting.

Yesterday I heard about a new web service called about.me. It's a site that lets you build a personal profile page with links to all your online content: websites, blogs, Facebook, Twitter and so on. Your profile has a URL like: about.me/your.name so in order to grab my name before someone else does I set up my own profile page at http://about.me/julian.moss. It only takes a few minutes to do so if you are interested in making it easier for people to find you on the web it's worth the effort.

There aren't a lot of links on my profile as I'm still not into social networks. I can't see the point of Facebook, though I guess that's just me as I know it is very popular. And I don't know that people would be interested in my tweeting what I'm doing any more often than I do in my blogs already.