Thursday, January 24, 2013

Software Defined Radio - Projects

Over the last couple of months, I've done a bunch of stuff with Software Defined Radio.  I run Linux at home  and so I have been working with GNU Radio, and I've got a couple of different kinds of radio hardware, one being a TV Receiver USB Dongle (read about my adventures getting that working) that can be convinced to generate a data stream centered on some frequency between about 70 MHz and about 1700 MHz.  The other is a Softrock 40 R, which is a crystal-controlled quadrature downconverter that hears about 96 kHz of the 20m band centered around 14.070 MHz.

So far, I've mostly used the TVRO dongle to listen to FM Broadcast (87.9 MHz to 107.9 MHz in the USA)  and to the local repeater (147.2 MHz in Katy, Texas) and I've rigged up a CW Receiver for the Softrock.  I've been collecting my thoughts about SDR projects, and I thought I'd list a few of them.

Incidentally, it may not be intuitively obvious to the casual observer that the GNU Radio software isn't a radio application, it's a toolkit for producing radio applications.  It certainly wasn't intuitively obvious to me, but then I'm widely known as someone who rarely pays attention.

Anyway, the projects.  In terms of software I want to do these:

First, is a CW Skimmer like thing that works under Linux or just with the GNU Radio software.

The second would be a CW Skimmer like thing that does PSK-31 instead of CW.  Update:  I know such a thing exists.  See for example:  http://www.walter-dallmeier.de/software-by-dl4rck/rckskimmer/

Third would be a receiver that speaks rigctrld protocol (I looked, but I can't find a link) and can be used to receive satellite signals.

I think I'll start by implementing these things in Python and then convert them to C++ if it seems be an appropriate thing to do.

In terms of hardware, I want to do things like these:

A TVRO Upconverter so I can use the TVRO dongle for receiving HF signals.  This will likely require hardware modifications to the dongle.  I especially want to replace the antenna connector with an F connector or BNC connector or something.

In fact, I'll probably modify more than one of those dongles so I can use the UHF preamp I've bought and then so I can connect that preamp to an antenna with significant gain.

I also want to build a couple more kits, including the UHFSDR kit and ultimately I want one of those "nimblesig iii" devices I mentioned in previous blog posts.

That should keep me busy for a while, shouldn't it?

Wednesday, December 9, 2009

SMOFCon 27 and Inch Pebbles

I think I may have mentioned somewhere that I put on science fiction conventions. If I haven't mentioned that, well, now you know. I work on the local Houston one, ApolloCon, and sometimes do some other things. This last weekend, was the most recent SMOFCon. Now, a SMOF is a Secret Master Of Fandom, and a SMOFCon is a convention where people who run conventions get together to talk about it with each other.

One thing I did not expect was the unofficial activities. I'm not talking about Saturday night's "probability and statistics seminar". Rather, I'm referring to the way SMOFCon was used to troll for volunteers. It makes sense, after all, because most of the people at SMOFCon are either working on a WorldCon or are experienced at working on a WorldCon and those who are in the former group are always looking for those in the latter group to come join them in whichever one they're working on now. However, I hadn't considered it in just that way.

This year's theme (SMOFCon apparently always has a theme associated with it) was Time Management and people were talking about (well, were supposed to be talking about--it didn't always happen that way) time management. Tthe panels I attended were interesting and intruiging. The problems associated with getting things done with the hard deadlines that cons are always going to have are a lot like those in the software business. Cons are often worse because the people are volunteers and they're expected to have lives that occasionally take priority and so don't always get things done when they're supposed to.

Since it was my first time there and I had very few things to say about time management that weren't being said by the panelists, and because I didn't want to occupy anyone else's time with my minutiae, I sat and listened and didn't say anything inside the panels. Just now, I figured that I have a blog so I can say anything I want and it won't interrupt anybody, so I'm doing it.

So here goes: I have often said that, for a software project, the only meaningful percentage of completion is 100, and even that might not be meaningful. What I mean by that is estimates of how far along the thing is are useless (not just practically or usually, but completely and totally unusable crap) until the very end and sometimes people will say something is finished, but it isn't really. So, you can't trust anything that isn't claimed to be done yet and you have to somehow independently verify the completion of stuff.

The problem, of course, is that a two year task has a single point of completion, and so there's only a single place to check for completion. If the end of that two-year task is two weeks before the con, then you don't want to find out then that the person who was supposed to be doing that task didn't actually do any of it. Although the proper area for this discussion is more people management than time management, the same solution was offered multiple times. Although none of the people talking about it used the term, that solution is "inch pebbles", as in milestones but smaller and more often.

The idea is to break tasks down into small chunks that can be verified and, from time to time, verify that the tasks are progressing satisfactorily. It is important that the chunks be small and that they be truly independently verifiable. Fortunately, since most tasks associated with working on a con are tasks that involve communications among departments, the independent verification is kind of built in. With software projects, one schedules demonstrations to the same end.

I like studying how other people do their jobs, and one of the reasons that I like doing that is because I can often apply lessons learned from other people to do my own job better. I suppose I shouldn't be surprised that this can flow in the other direction, too.

Saturday, October 31, 2009

Cheap Microwave Gear?

In my last blog post, I mentioned my conversation with Andy W5ACM at a Houston QRP Society meeting where he challenged me to make contacts through OSCAR-51 before criticizing it. That conversation has borne more fruit by sparking another idea, and I thought I'd write it down before I went on to
work on other things.

That conversation, now nearly three months past, was a general condemnation of what I saw as the direction of AMSAT in the late 1980's and early 1990's. Back then, the thrust seemed, to me, to be toward satellites with high (40,000km+) apogees and S-Band (2400 MHz) equipment. Back then, I saw that as suicidal because S-Band transceivers were not available to the radio amateur at any price and one would pay several times the cost of a VHF transceiver for an S-band transverter.

Since that time, some radios have had support for L-Band (1300 MHz) as an option, but I still know of no options for S-Band except upconverters and downconverters which allow the use of a VHF or UHF radio on the S-Band.

Anyway, since I was trying to make contacts through satellites, I thought it would be a good idea to subscribe to AMSAT's "amsat-bb" mailing list. The amount of noise in that list's signal is not bad for a general discussion mailing list, and it had an announcement a while back that I found interesting.

You see, it turns out that a guy named Paul Wade, W1GHZ has designed some transverters, and announcement was made on amsat-bb for a group putting together a group buy of parts to kit out transverters based on his design. I briefly considered the ordering some of the kits which, sadly, I decided I couldn't afford right now, but the important thing to understand about these kits is that you can build an L-Band or S-Band transverter based upon them for around $100 each, plus whatever you consider a couple of hours of your time to be worth, and for a hobby activity I consider my time to be worth a negative amount.

Another reason that I decided to pass on one of these kits is because of how they work and what, precisely, they do. You see, they are cheap because they use inexpensive non-microwave components and printed circuit boards and deal with the losses that those choices imply by inserting cheap and readily-available MMIC (Monolithic Microwave Integrated Circuit) amplifiers. Local-oscillators suitable for use in microwave transverters have proven to be a problem in the past, but if you use a frequency that is a multiple of a frequency that is commonly used in desktop computerers, that's not a problem any more.

What is a problem is the fact that the frequencies of the oscillators and such were chosen to translate the output of a 2-meter (144-148 MHz) transmitter into the small signal part of the L-Band and S-Band and, well, I'm interested in signals in the satellite part, not the small signal part. To use the L-Band converter to work AO-51, I'd need to drive it with an FM transmitter on 116.7 MHz. Of course, I don't have a transmitter that emits anything on 116.7 MHz, let alone FM. (It's in the aircraft band, and airplane radios are AM.)

So, what to do? I could modify my IC-706MkIIG such that it isn't restricted to just transmitting within the ham bands, but I'm not really that enthusiastic about opening up my main radio and taking a soldering iron to its innards. I could also find a different oscillator frequency that would just happen to be cheap, common, and which had a harmonic that feel into the range of about 1120 to 1125 MHz, but I gave that up after about an hour. Besides, it occurred to me, the venerable Icom wasn't necessarily the appropriate equipment to drive a transverter. Transverters don't need a lot of drive and typically can't deal with very much driver, and so I'd have to do something to ensure that I didn't accidentally blow up whatever transverter I got.

I then observed that this wasn't a problem on receive because lots of radios have general-coverage receivers so it doesn't matter if a downconverter puts the signals I'm interested in at some frequency I wasn't allowed to transmit on. What I needed, I thought, was a special purpose exciter that could generate FM signals (or, really, any mode) on any frequency from 100 MHz to 150 MHz but which wouldn't generate too much power for the upconverter to handle. I thought that would be an appropriate companion device for those really cool transverters.

With that in mind, I set out to see if anyone has done this already, and I couldn't find where anyone had. However, what I did find was that all the hard parts are done. A search for "exciter transverter" led me to a 1993 QST article by Rick Campbell KK7B "A Multimode Phasing Exciter for 1 to 500 MHz". To be honest, I don't think that it's really an exciter. I think that it's really just a modulator that needs a carrier signal (two of them, 90 degrees out of phase, to be specific) to modulate.

So, where to get the carrier signal? It would be best if the frequency were synthesized and what I know about PLL-based frequency synthesizers suggests that they really aren't all that easy to work with. Then, I remembered hearing about a technology called DDS, for "Direct Digital Synthesis", which is a radically different technology for synthesizing a signal than using a PLL, but had the limitation of requiring that the signal be lower in frequency than a reference, and so was limited to relatively low frequencies.

When I searched for "direct digital synthesis arrl" (because "direct digital synthesis" isn't specific enough and the other article was found at arrl.org) the first link was to an article in the current (or next--it isn't clear) issue of QEX magazine about a device based upon a thing called the "NimbleSig III" DDS synthesizer, designed by Thomas Alldread VA7TA.

So, I searched for "NimbleSig III" and found an amazing device that can generate two signals each with a specified independent frequency and phase shift at anywhere from 100 kHz to 200 MHz. Um, wow. This is just what the doctor ordered and why the preacher danced. Combined with KK7B's device, I can use it to generate AM, FM, SSB, CW and anything else that can be derived from those over the entire desired 100 MHz to 150 MHz frequency range. Of course, these things aren't available assembled, or as kits, but as bare printed circuit boards, and they use all surface-mount parts. I've never done surface mount, but this is a powerful inducement for me to try.

The thing is, although I haven't tried to price the parts just yet, I can probably build each one of these devices for around $100. So, I could build an S-Band or L-Band transmitter for less than $300 and get the downconverter I'd need, so I can receive, too, for free. I wonder if anybody's done this?

Thursday, September 17, 2009

AO-51 Success!

This evening, I was able, using the AO-51 satellite, to successfully communicate with KG6NUB who is near the San Francisco Bay area of California. Hooray! I don't know what I'm going to do with myself now that I've achieved the goal of making a satellite contact.

Use the satellite to work some more stations, I guess. Maybe use different satellites. I've been working toward making satellite contacts with my own station for almost 30 years, and it has finally worked.

Tonight's success was made possible by the fact that sometimes AO-51 is set up for "QRP" (low-power for non-ham types) operation. In QRP mode, it does not require that I set a PL tone, so I can use my old TR-9000 as the transmitter, which puts out 10 Watts, the maximum allowed, but doesn't have PL tone capability. However, it does mean that I can't use an amplifier or an antenna that isn't omnidirectional. In fact, here is a picture of my transmitting antenna:

It's just a dipole, made of some leftover 12-gauge house wiring, that's hung from the ceiling.

Here's my receiving antenna. Actually, there are three antennas in this photo.
The antenna on the right is a "Texas Potato Masher" which I built wrong, so it doesn't really work. Over the next little while, I'll be figuring out how to fix it. On the left are two "Arrow" antennas built on the same spar, a piece of 3/4 inch square dowel. Perpendicular to the plane of the photo is the 2-meter antenna, which I can't use when using AO-51's QRP mode, and the 70-cm antenna is at right angles to it so you can just barely see it. The 70-cm Arrow is the receiving antenna that worked well enought. I can't seem to work the satellite when it is west of me, but north west to north seems to work okay. My guess is that it's due to the trees to the south and southwest.

All three antennas are mounted on an altazimuth mount I build based on a similar mount described on the AMSAT site. The main difference is that I built mine to be all PVC since I didn't feel like paying for a metal tripod.

The antennas and mount and a duplexer, a piece not shown, are the culmination of several weeks of effort, and it all worked. Like I said, I don't know what I'm going to do with myself, now.

Tuesday, August 25, 2009

I have heard the satellite, and it's AO-51

I am a radio amateur. My call sign is KA8KPN, and I've been licensed for almost 30 years. Lately, I've been attending QRP meetings. Now, QRP is an abbreviation that means "low power radio" and I got to the meetings because the guys there are enthusiastic about radio. I'm not particularly interested in operating at reduced power, but I like talking to people who do things, and these guys do lots of things.

Anyway, I opened my big mouth and started spouting off about what's wrong with ham radio satellites. Now, this being Houston, there are lots of guys around here who work for NASA and who are big into space and the ham radio space program is called AMSAT, short for AMateur SATellite. It would be expected that at least a few of the hams at a ham radio meeting inHouston would be big in AMSAT, and AMSAT basically sets the direction for ham radio satellites for hams all over the world.

So, naturally, my assertions did not go unchallenged, and one person in particular objected to what I said. Andy, I'll call him, (mostly because that's his name,) suggested that before I criticized what's available I should try to make use of it. Now, that there is what we in the business call "good advice" and although I think most of his objections had more to do with my lack of skill in explaining what I thought than they did in my thoughts being dim, I was fully prepared to follow his advice, and he said that I should try to operate a satellite called AO-51, otherwise known as "echo", before I started dissing the FM satellites as requiring no skill.

My first action on agreeing to this plan of action was to attempt to assemble a station from items I had available. My workhorse radio is an Icom IC-706MkIIg, which does everything that I need, radio-wise, even for satellites. These satellites use VHF and UHF frequencies, and I have a dual-band UHF and VHF antenna, although it is a (semi-traditional) mag mount car antenna on top of a filing cabinet. Anyway, I set it up and listened for a pass and was disappointed.

Now, when an experienced ham such as myself fails to achieve communications over microwaves, he usually points the finger first at the antenna, and so that is precisely what I did. It makes sense, for a mobile antenna is not usually well suited for the satellite operations. However, better antennas tend to be expensive, or a lot of work, or both. I thought a simple homemade dipole might be enough and I built one for the 435 MHz downlink using some 14-gauge house wiring I happened to have lying around and a dowel rod I bought at the local big-box home center. Over the weekend, I was encouraged to hear FO-29 (a Japanese Satellite, that uses similar frequencies) using this antenna, and this morning I heard several QSO's (or "conversations") on AO-51.

Now that I can receive, I need a transmitting antenna. It's complicated by the fact that I only have one radio that can be used for transmitting to AO-51 and that is the IC-706. If I could use a different radio, I could easily use a separate antenna, but I can't. I'm looking to not spend any more money until I have achieved success, so I'm looking at using some more wire on the same dowel rod and, well, we'll see. If it works, then maybe I'll build a short Yagi beam antenna to make the signal strong. If it doesn't work, well, then I don't know what I'll do.

More, as it happens.

Sunday, August 23, 2009

A Review of Inglourious Basterds

In summary: It's not really my thing. Spoilage happens.

Yesterday was my wife's birthday, and she decided that she wanted me to take her to the movies. She wanted to see "Inglourious Basterds", the latest Tarantino film. Apparently, one of her friends had told her about it and she wanted to see if the friend was describing it correctly, or some such. We saw it at the Alamo Draft House at West Oaks Mall. I had potato skins and a Cobb salad and some iced tea that I would come to regret. My wife had fried pickles, the barbecue quesadilla and the Gunness milkshake.

To say that Quentin Tarantino is one of the defining movie directors of our time is to damn with faint praise. However, I was less impressed with this effort than I could have been. The story was interesting and the movie was violent, but the pacing was glacial. I estimate that the plot was better suited to a 23-minute "Hogan's Heroes" episode than a 149-minute big-screen movie.

I suppose that was deliberate. My understanding of Tarantino is that he is considered an actors director, and good acting requires screen time in order to emote. However, I have to wonder about the amount of time spent justifying German and French characters speaking English (only a few minutes, to be sure) when the entire scene in the basement bar is not only nonsensical, but no attempt is even made to justify completely irrational behavior on the part of serious professional protagonists. Surely professional spies, and any spy that remained alive in Nazi-occupied France for two years would be a seasoned professional, would have aborted the meeting before any of the bad stuff had a chance to happen.

The poor British officer served only as cannon fodder for the spaghetti-western gunfight in a basement. He, and that scene, could have been left out of the movie entirely and an hour or so taken off the running time with no loss to the plot or the characterization. Supposedly competent characters suffer huge lapses of judgment and the whole thing didn't work very well for me.

Not that the movie was especially bad. No, I didn't want the three hours of my life back like I did with "Masterminds", and the film did have its moments. Tarantino films always have their moments, it's just that they were too few and far between for my taste. I also learned that eating salad doesn't really work in a darkened theater.

Friday, April 3, 2009

H-Plan Frustration

I work for a company that does its payroll and benefits through Administaff. Actually, this is the second company I've worked for that did that. The other one was long ago and is best forgotten.

Anyway, after the great implosion at my employer, Administaff has been scrambling to ensure that they will continue to be paid to do the payroll and benefits for us, and so they're doing these meetings every other week where they extoll the virtues of Administaff, and one of the things they are proudest of was what they call "The Marketplace".

"The Marketplace" is, simply put, a place where Administaff client companies sell each other things at a discount, and one of the organizations that offers a discount is Toyota. In Toyota's case, they have what they call the "H Plan".

Last Friday, they had training that touched on "The Marketplace" and I had been thinking ahead to the time when my daughter or stepdaughter will be driving and they're going to need a car to wreck. I'm currently driving a 1998 Mazda 626 with a hundred and mumblety-thousand miles on it and I was thinking that it would be a fine idea to get a new car for me to drive while the new driver wrecks a car that doesn't cost so much. I figure if I do that, then I can (maybe? please?) justify getting a car that only I can drive. That is, a car with a clutch, just like I had when I was learning to drive back in the stone age of the early 1980's.

You should know that I'm not someone who makes a decision like this at the last minute. I considered the question of the last vehicle I wanted to buy (NOT the 626!) more than a year before circumstances forced me to purchase it and a year and a half before I expected to make the purchase. I think that a multiple thousand dollar purchase is worth some study and reflection. So, I'm not likely make rapid decisions about major purchases mere moments before walking out to actually buy whatever it is, and when making plans for anything there is nothing more necessary than information.

So, I logged on to the Administaff employee Web site, went into "The Marketplace" and, after fiddling around and finally finding the link to Toyota for the special offer, I went to the link and selected a car. I picked a new Matrix because I kind of liked the looks of the Matrix some years ago and, well, what the heck? A fellow can dream, can't he? So, I made a selection on Toyota's Web site with the make, model, engine, transmission, color, and so forth, and I clicked on the "Submit" button.

The problem was, instead of being told how immediately much the car cost, I was presented with a Web form in which I was prompted to enter contact information. Now, being the Web-savvy individual that I am, I knew exactly what this meant: I was going to have to interact with a salesman. Crap.

Now, I don't have any specific objections to salesmen. Thomas J. Watson Sr. once said that the salesman is the hero of the American dream because nothing gets done until something gets sold, and I really believe that. However, in this case I was reluctant to click on the second "Submit" button because, well, because I was going to wind up having to talk to someone that I couldn't help but disappoint because I wasn't intending to buy now. I don't like disappointing people.

Nevertheless, I persevered. I clicked on the form and waited. I immediately received two emails. One was an automatic "I got your email, and I'm going to read it real soon" message and the other said, in part.

Before I can send you a quote I need to know:

Automatic or manual transmission?
Power windows and locks?
1.8 or 2.4 engine?
Lighter or darker colors?
Any other features?
Your H Plan price is an employment benefit just like a 401K or medical plan and it is available only through me.
Okay, I can understand the requirement for more information. Well, no, I can't. I mean, it must have taken the fellow all of 30 seconds to dash off the email and it's going to take me an hour of digging just to find out the options that are available. If he's getting paid to help me, shouldn't he, well, you know, HELP? And what is the emphasis on the "available only through me" bit. It was in the email three times, almost like he was trying to implant the idea in my head that I was getting a special deal, which I thought I was already.

So, I did the hour or so of digging around on Toyota's site to find the base equipment of the various models and all the available options and I sent them to the fellow, and I started the email with this paragraph:

I don't think I'm ready to buy just yet. I'm just looking around and seeing what's up.
I was hoping to forestall any pressure to come in and buy right now because I'm just making plans, not trying to take on another car note. Unfortunately, that turned out to be the wrong thing to say because the response I got was this:

Please get back to me when you're ready to buy. There's no sense quoting prices now, because they might change -- and rebates could change, too -- by the time you're ready.
Well, no SHIT, Sherlock! Now, not only am I out the hours of my time figuring out on my own all the crap that an actual salesman would be helping me with if I came to the dealer, and not only did I come away after doing 90+% of the work without getting the actual information I set out to get, but I also got to get treated like an especially slow three year old. Who would have thought that the actual price might possibly change between when I make the plan and when I execute it. Well I would! Sheesh!

So, my response was this:

No thank you. I'm sorry to have wasted your time.
The more I thought about this, the madder I got. Why do I have to talk to a human to find out how much the damned car cost? Supposedly, "H Plan" is a formulaic deal where he just puts the numbers in and out pops the price! Couldn't this fellow be replaced by a simple shell script? Why isn't this fully automated?

I mean, why even engage a human until there is some point subject to negotiation or until there are papers that someone has to make sure are signed? What is the point? While I'm thinking about it, why should this fellow get any commission from the sale? All he did was spend less than a minute asking me questions and treating me like a village idiot while I did all the work! The only answer I could come up with that makes any sense is that "H Plan" isn't really a discount at all and they need to engage a salesman so that he can apply high-pressure sales tactics to induce me into buying something I don't want at a highly inflated price. If "H Plan" was even a halfway decent discount, then they would be falling all over themselves to make sure I knew what the price was so that I could go out and compare it to other dealers' quotes and find out for myself how good a deal it was.

It seems to me that the Internet changes things. It used to be that you needed a salesman to guide a customer through the sales process. He answered questions like what options were available and what effect the various selections had on the sales price and made recommendations when the purchaser wasn't clear in his own mind about what his wants and needs are. But I'm the one doing all that in this case. Is it really to my advantage to have someone working on the deal whose main interest is in making sure I get ripped off for as much money as possible?

What matters on the Internet is information, and car dealers aren't comfortable with that. No longer can they rely on "I need to ask my manager about that" because I can get a dozen price quotes in a day or so and nobody who wants to stay in business is going to worry too awful much about whether or not I'm ready to buy right now. Heck, I can even hire someone to go out and find me a good deal on exactly the car, make, model, options, color, etc. that I'm looking for. It's a game changer, and if a dealer has even half the brains God gave a gnat, they automate the whole thing to avoid wasting a human's valuable time. Put all the available options and such on a Web site and when the user clicks on "quote", out pops a quote. If I was trying to sell anything on the Internet, that's how I would do it because when I BUY anything on the Internet, that's how I want it done.

It's disappointing to me that I didn't get the information I want, but I did learn something valuable. I learned that I have no desire at all to ever buy a vehicle from that dealer under any circumstances. If they're going to treat me like crap, there's no point in even attempting to do business with them.