Tuesday, March 10, 2009

Insies and Outsies

One big advantage of having the radio be software, is you can connect to it in software. With the SDR-1000 there were cables all over the place. You had a parallel port cable between the computer and the radio, and you had at least 2 stereo cables between the sound card and the SDR-1000 or you had a firewire between the computer and the sound card and then the cables.

Now there is one firewire between the F5K and the radio. Firewire is able to generate all the channels needed to support all the control and audio functions between the hardware and the computer. Here is a screen shot of the driver


The driver is down loadable from the Flex website

This version is a beta release so it is slightly different than the production version.

The next thing we need is some access to CAT control. Cat allows other programs to control PowerSDR programs like N1MM or CW Skimmer. Here is a shot of the CAT screen in PowerSDR setup

PowerSDR uses the Kenwood protocol and also has its own superset of Kenwood protocol cat commands. I generally use TS-2000 because it is well supported across the Ham software kingdom, and has a few commands that the simpler radio sets (like the TS-50) does not have.

Also you can control the PTT line from a serial port, either virtual or real, so if your PSK 31 program uses a serial out to turn on the radio, you can just port into this aspect of the program to control transmit from the program. So what are virtual Com ports anyway?

There are several programs that will pair a couple of ports in software and they behave just as if I had a cable with two 9 pin connectors hooking things up. I use a program written by N8VB called Vcom. A lot of people have moved on to com0com. Here is a screen shot of Vcom (down the page) and how it works will become clearer



If you look I have 4 virtual serial ports active with addresses 6:16 7:17 8:18 9:19. The choice of pairing is yours, but I find this is easy to remember. If you look at DDUTIL I use that as my traffic cop between programs



Radio CAT is connected to Port 9, and if you look back at the CAT screen in PowerSDR the CAT input is set to Port 19. This is my 9:19 pair between PowerSDR and DDUTIL. I also have 6:16 between Skimmer and DDUTIL and 7:17 between Commander (DXlab) and DDUTIL. 8:18 is presently not in use. By this means I can control PowerSDR from these 2 programs and by this means the data from PowerSDR, such as band. freq and mode gets back to these programs. Note no wires!!! I do have a wired Com port that I use for CW. It is here:


This connects my keyer to the radio via COM 1, which is real (not virtual). I also have that wired so I can plug in a paddle to control the CW in the radio.

Finally I can get audio in and out of the program by means of VAC (virtual audio cable). This program is just what it says. Like Vcom is a virtual port cable VAC is a means to transfer audio in and out of PowerSDR. here is a screen shot


This shot includes VAC and a repeater screen. VAC is the main program. but if you want to send the same audio to 2 or more sources you just create a repeater and the same audio can feed multipe programs. If you look at VAC I have channel 4 set up for a very wide band feed. This the the channel I use to send base band to Skimmer.

Here is a shot of the audio routing screen in PowerSDR


From here I can choose the audio protocol and what channels of VAC are the input and what are the output. I can also choose the direct I/Q option from this screen which outputs base band instead of post processed audio. I would turn this option off if I was routing some audio to for example a PSK 31 or RTTY or slow scan program. Here is a screen shot of skimmer's audio screen


As you can see once again output goes to input and input goes to output Its simple!! I can control VAC from the front panel of PowerSDR


You turn on VAC for things like skimmer and digital modes and you turn it off for things like VOX

Not a wire in sight!!! How cool is that?

73

Why I find SDR so Freakin Interesting

When they let me loose in college I don't think they quite knew what they created. I started in Engineering school at Purdue and they had very specific plans for me. There was not much flexibility. It was pretty much a conveyor belt education. Purdue for me was out of state and it really taxed my family to send me there so I transferred back to the University in my town Southern Illinois University. For all that Purdue had been as a conveyor belt SIU was nothing but possibilities. I did everything from classic literature, to mathematics, to chemistry, to engineering, to neurophysiology. I could take graduate classes right along with undergrad classes and so my education became very eclectic and I totally immersed myself in that study. Purdue made damn good engineers and over time they had evolved a system and the system worked and since the system worked so well it became pretty inflexible as to its choices. Purdue was kind of like roofing filter legacy radios. SIU on the other hand was very plastic in its approach to education. This is not to pass judgment on Purdue. I very much value my time at Purdue. It is a large part of my experience and I wouldn't trade it for anything, but neither would I trade SIU. I later went to medical school at Loyola University and got the good Jesuit education that was an amalgum of both approaches. I had basic courses in a wide number of subjects, but everybody was exposed to that wide nature of coursework, so it was at once vaired and regimented. I think it made me a better physician because of the way the training went down, so there are goods to each system. For my extra curricular at med school instead engaging a million different courses of study, I persevered with the program they laid out for me and I made friends with the neurophysiologist and he gave me access to his workshop where I built HAM RADIO AMPLIFIERS in my spare time. While discussing neurophsysiology.

Bear with me this will get to the point eventually.

It was amazing how there were unifying themes that crossed all these disciplines I involved myself in. In Neurophysiology my research ventured into brain waves. It turns out the brain is an AC wave generator. It puts out basically SSB signals. BUT it turns out it also in an entirely different way puts out FM. Brian cells are basically little batteries, and every so often the battery shorts out and sends an impulse called an action potential down the cell antenna called the axon. If you allpy a receiver and listen you can hear that impulse and record it. If you record the aggregate of those signals its called the EEG. However since the brain is also a bunch of batteries and there is all this charging and discharging going on, it turns out you can also measure an integrated voltage of the brain and what you get instead of an Amplitude waveform is a slow varying frequency of aggregate potential change, and that my friend is frequency modulation, or more precisely phase modulation. So here I was in a physiology lab doing ham radio. My research was about strokes. At that time there was not a really good way to look at how strokes progress. CAT scan was still ten years off. The MRI is a derivation of a chemistry tool called the NMR. Nuclear Magnetic Resonance device, and the application of that technology to strokes was at least 20 years off. With my device I could detect strokes and the progression of strokes. If you generated a stroke in an animal the brain would respond in a characteristic injury pattern that would show up on my recording device as I demodulated the FM waveform of the brain. it turns out strokes don't happen all at once they evolve over days and my machine would mark the evolution of a stroke with the discrete events that comprised that evolution. It was facinating, and what it meant is that if you can measure it, then you can do manipulations, such as drug manipulations to see if you can effect the evolution and therefore lesson the damage. Alas there is politics in funding such science, and during that period the funding was going to the study of amplitude modulation and not phase modulation. Even though it looked promising, since I couldn't get funded I decided to hell with this and went to do something else.

During this time I got my first computer. It was a Timex that had a Z-80 in it. I had grown up with the IBM big Iron and FORTRAN etc. My office mate in grad school who was into astronomy wrote his thesis program that basically displayed cosmological systems, and we set about to turn it into a game of star trek. Your ship would enter a cosmological star system and the program would place all the stars in the correct orbit etc. THEN a Romulan would show up and start blasting everything in sight. You had to navigate your star system to get away from that viscious little dude. Of course as you navigated various characteristics of the system were recorded.

I couldn't do that with the Z-80. I decided to get a real job and I moved from SIU and was in Champaign Ill. I was teaching electronics at the Community college and working in broadcast engineering as well, and doing communications consulting. That was the time of robot radio, where radio stations turned loose their talent for tape systems. What you heard on radio was all on tape, and the local commercials would be cued to play at various points during the taped program. The machines I was working on used RTL logic (the predessor of TTL). It was horrible stuff. Buggy as heck. The problem was when the chip stopped acting as a logic chip and became linear in its behavior, the system would loose its mind. With my Z-80 I set about to redo the control system. You could do with a computer far better than what you could do with RTL logic. RTL was fixed in stone. The logic was NOT changeable without redoing the entire system. A computer on the other had was very plastic and you could integrate all kinds of stuff into what it would control. For example it could control the robot radio tape decks AND it could monitor if there was a signal on the air and call somebody if the signal went off the air. The point again is the plasticity and versatility of the system contained in software instead of hardware. It was an interesting project. For memory I used a cassette tape recorder that the computer controlled. Today you could do twice as much with a PIC chip.

When I was in college I worked in the lab of Conrad Hinkley. I was into physical and inorganic chemistry and Dr Hinkley was the most cited man in chemistry. Physical chemistry had this beauty about it. I had friends who were pure math types and they saw pure beauty in their equations. I saw the beauty in being able to write the equations that described the behavior of the bubbles in my beer glass. Hinkley was most cited because he discovered something called NMR shift reagents. NMR as you recall was the chemistry tool that turned into the MRI that has done so much for diagnostic medicine. The NMR works by placing a complex molecule into a strong uniform magnetic field and then running a strong RF wave across the molecule that varies in frequency. As you hit various resonances in the molecule it absorbs energy due to the change in spin states of electrons in the electron cloud of the various atoms in a molecule, and you can measure at what frequency that absorption occurs. The resonant frequency is affected by the local molecular environment. HEY this is just ham radio on a molecular level!!! Amplifiers and fields and dipole resonances and dipoles lining up to interfere with each other both constructively and destructively: why that's just beam antennas!! Organic and biochemical molecules have a ton of hydrogen and carbon in them, so all the resonances tend to happen at the same frequency. What Dr Hinkley discovered is if you hook the bio molecule to a large inoganic cat ion like Europium or something and the resonance all changes and spread out over a band width of frequencies. It gave dimensionality to the system just like the PowerSDR panadapter gives dimensionality to a receiver. By knowing the where the resonances occur and where the inorganic cat ion is attached, you can calculate the 3 dimensional character of very complex molecules that are largely just hydrogen and carbon. This also is why you see a lot of 3cx1500's available as "medical pulls" These are from the final amplifiers of the MRI which is just the NMR in a different form. After all we are mostly jut hydrogen and oxygen and carbon Its all ham radio!!

While I was in Champaign I enrolled at the U of I to do some grad studies. I wanted to learn something more about physiology. I took some courses in comparative anatomy and physiology which looked at all the different species from amoeba to humans and compared their systems. You learned things like how some artic fish make their own antifreeze in their blood. The antifreeze changes the physical chemistry properties enough that the fish don't turn to frozen fish. One of the assignments was to pretend you were God and you were going to make a system that would allow hibernation. Now my classmates set about designing different things. I was kind of an outsider in this class. I was pushing 30 and everyone else was about 24. I was this engineer hard science joker among the "life scientists". I didn't know the lingo that well, BUT when I wrote the paper I realized this is just a problem using a differential amplifier, and that is just a problem of differential equations. So I wrote a system of equations that amplified a single signal change as the control variable. I changed the signal from + to - If you wanted hibernation you just sent the equation a - input and the system went to sleep but continued to process at some low level. If you sent it a + input the system woke up and roared back to full blow output. It turns out biochemical enzymatic systems actually behave just like this. They behave according to higher order dynamics which means things happen "to the power of" instead of linearly. In ham radio terms things happen in terms of dB's. The system was very elegant in the way it exercised control over the physiology. It blew the professor's mind. While everyone else was poking outputs from neurons, I had written a biochemical system described in terms of its mathematical dynamics. You see things are really all just ham radio. My system was all about mathematical dynamic range and ordered amplification (dB) with feed back loops (AGC).

When I had my FT-1000D it was a firmware radio. To change the firmware I had to order new EPROMS and disassemble the radio and stick them in. It wasn't much better than the RTL logic of robot radio. Then came Orion. You could download new firmware, but you were still totally at the mercy of the mother ship. It was like Purdue. You came out a good competent engineer, but there wasn't a whole lot of variability except in the margins. Then came Flex. Flex was like SIU and Conrad Hinkley's invention. It was all over the place in its possibilities. It was fertile and ripe for invention. It was about processes described mathematically and then having those processes converge into the physical world through physical means like my physical biochemical approach to the problem of hibernation, or the F5K which is the hardware behind PowerSDR. It was about thinking about the modulation in the brain in terms of FM while everybody else was thinking AM.

This radio continues to evolve and it is so interesting. The way the radio worked last week, you needed to calibrate it to a point in the band for image rejection. You stored a value in the EPROM of the radio and when you needed that value you recalled it from the EPROM to use in the equation. The calibration was done "automatically" in the sense that you could call up some calibration routines and ask the radio to calibrate itself. This in itself is a big deviation from normal radio, where you would need a room full of test equipment to calibrate a radio. This radio could calibrate itself using computer routines. You would call up the calibration routine and go get a cup of coffee and by the time you got back your radio was calibrated. This was amazing in itself!!!

Then last week happened and all that went out the window. The new image rejection technique calibrates the radio in an ongoing process. Every time you use the radio it is calibrating itself. You don't even need the EPROM anymore. You don't even need the "calibration routine". You'll have to figure out another reason to go get your coffee, because the time needed to calibrate is now distributed across the time spent operating, AND that calibration is done AT the frequency you are operating, so your calibration is always tip top optimized!!! To me this is just too much fun!! The concept is so clean and it works!!! In some respects it does become" if you can think it you can do it" , and I find that extremely appealing.

The other thing I find so appealing is the way the testing of this system goes down. For the image rejection algorithm N4HY sat down and wrote 20 lines of code. Then about a dozen of us started interacting to test the system. Each gave his feedback and the system iterates into a better system. None of us live near each other. We are scattered all over the country. In fact most of us have never met each other. We know each other through emails and postings etc. Its almost like being in a hive, and your input matters, but there is enough parallel activity in the hive that if life gets in the way you can opt out for a while and do what you need to do, like have a job, and development continues. It also means an individuals given point of view from the testing my lead the development down a different better path. So I get to participate in the development of a new radio AND I get to live out the fruits of that development while I enjoy my hobby working weak signal low band CW DX. The means of testing is interesting also. In a separate thread, you still had the radio of last week on your desk top so you could directly compare the improvement. You just pounded down the new radio and started up the old radio. You didn't have to dissemble the radio or re-flash the eprom or nothin'. Flame on, Flame off. That simple. You could have a dozen different iterations of the radio on your desktop and compare them at a moment's notice. TOO MUCH FUN!

Also it means you can split off into different sub groups. The main development thread continues while this side thread is happening as well. Its rich with variety and eventually when all the bugs are squished and the product honed to perfection both threads will merge once again and a better radio will result, in fact a better radio has resulted.

Ham radio on this side of the tracks is so interesting and life is good.

73

Monday, March 9, 2009

Kosrae Island on 3503

V6T simplex at least an hour to sunrise! Band noise today was -104 but the RX is so quiet he was perfect, just a couple dB out of the noise with long QSB into the noise. BUT when I heard him I HEARD HIM :) Today I could have done this chip shot with a knob radio, EXCEPT I never had a knob radio that was this quiet in terms of it not adding noise to the signal path

Terminators who needs em

Time to go save lives and win valuable prizes

73

I got him in the nick of time. As I walked out the door I glanced at the monitor and the war was raging. I can hear it in kitchens across America: Hey Mabel I got me Micronesia coming through on this thing! HUH??? Microwhosia??? Ham radio is fascinating.

Sunday, March 8, 2009

Social Networking and the pileups, plus image rejection revisited

Last night I stayed wayyy tooo late, working DX. Well make that trying to work DX. I was hearing every one fine, I just mostly couldn't pound through the QRM. I heard KH2 Gaum, FK8 New Caledonia, H40 Temotu, ZL7 Chatham, KH0 Mariana, all coming through FB. My problem was I couldn't breach wall of RF coming out of Japan. All of these guys were running Japanese like crazy. There were virtually NO US stations calling save one K5 going toe to toe with me calling Guam. Neither one of us got him. A lot of these DX stations were working simplex, so there was no real pileup, but I just couldn't break through. The truly maddening thing was I had almost no propagation to Japan (they were still about 1 hour out of the picture) so I couldn't hear or see the competition. I was flying blind.

On the H40 there were quite a few US stations as he was on early in the evening, but the others were on between 3 and 5 AM. After a while I stopped calling and just watched the nature pf the pileup and low and behold I started seeing some people I know calling. I saw W9KNI and a few others. Earlier in the evening I worked ET3 Ethiopia. I sat and watched that pileup as the terminator started approaching the ET3 (almost sounds like something out of a schwarzenegger movie). I wanted to see if propagation was going to improve on him, and about 45 minutes after I worked him K3RR worked him. He did get louder as the grey line approached.

I therefore knew Joe was at the rig trolling for DX. I had a similar experience a few years ago. Joe and I had gone our separate ways in our lives. I was inactive for about ten years. I had the rig and antennas all hooked up, at that time I was using a FT-1000D. In the mean time I bought a Pegasus. I had a blast with that little radio. The RX wasn't very good but it was just fun to play with. One night I heard a Russian who was doing some work in Iran and somehow wrangled permission to get on the air. The Russian signing /EP Was blasting through on 80M that night. I gave a half hearted attempt, but I started listening to the pileup and low and behold there was K3RR working the guy. Wow. I looked up Joe in the EHAM data base and shipped him off an email and our friendship rekindled like we never lost a day.

Last night when I "saw" Joe in the pileup, I fired off an email, and we met up on the low end of 75, a little above the SSB band edge. The contest had not drifted down that far. Normally I wouldn't even turn it on during a phone contest weekend, but just watching the pile, gave me the info I needed to have a nice QSO in a nice clear part of the band where neither one of us would ever visit, while the helots were up the band raising helot hell.

When I was at Orlando this year Gerald had a pic of a PowerSDR console that included social networking as part of its character. His son Matt has been working on the development. The console had a means to connect to the Internet and your buddy list was shown. This way you could know if your friends were on the air, or in the shack, or otherwise available, basically the same as a Yahoo account or a gmail account. I spend a lot of time tuning all over 160 80 40 and 30, mostly just listening to CW QSO's but it also would be nice to know when my friends were available and to be able to chat with them in a chat window for example in the heat of battle, or let them know when I hear something they need and vis versa. I'm sure there are a dozen other uses for such an idea, I'm stodgy and old and not very creative, BUT the "YOUTHS" of today are not stodgy and old and are amazingly creative, and this kind of technology, the technology of social networking, Chat, SMS messaging, Facebook, Twitter etc is part and parcel of their lives and I see it very easily could be part of the Ham radio experience as well.

Yea Yea I know "You gotta have a Knob" and other old fart stuff like that .... And you wonder why Ham radio is dying. You know I saw a really good article in QST about how to solder a coax connector..... but you needed a couple hundred bucks of crimping stuff to do it.

Here is the scoop on the new image rejection algorithm hot off the presses from N4HY. Recall the RX in PowerSDR is basically a phasing RX. It works like a phasing TX in reverse. So how good your rejection is, is determined by how good your cancellation is. The TX part of this protocol is soon to follow!!!

Here is a preview:

"Non linearity introduced on purpose in a system hailed by all for the linearity and signal handling capability of its front end seems at best contradictory, at worst, immolation!"

I love Bob's hyperbole (mostly I just like using the word hyperbole in a sentence :P)

http://n4hy.blogspot.com/2009/03/image-rejection-along-road-less.html

73

Saturday, March 7, 2009

Exporting a contest

There is a ARRL SSB contest going on this weekend. I have pretty much grown to hate phone contests. With the expanded phone bands the contest is even crowding out the CW bands. There were contesters down as far as 7050 (I'm sure the PSK boys just LOVE that one), and forget about 160 I heard some joker calling "CQ Contest" on 1808.

Bob N4HY is testing a new image rejection scheme for the PowerSDR software, and he sent out a post wondering how he was going to fill up PowerSDR's passband with enough signals to test his code. I shot him back that there is a contest going on. I guess his antennas are down, or he was not at home, so getting on the air for him was not an option.

Then something really weird happened, he asked me to export him some of the contest. I described the ability to record audio in a previous post. You can record either post processed audio OR you can record preprocessed baseband audio. As you recall I described the F5K basically as a dual conversion receiver. First there is an analogue conversion. In that conversion RF is turned into IQ baseband audio. In the second conversion the baseband audio is digitized and sent into the computer where the second conversion resides in the PowerSDR software. PowerSDR IS the second conversion, it does not just control the radio. IT IS THE RADIO! What this means is, if I present PowerSDR with some baseband audio it will gobble it up and process it just the same as if the first conversion was shooting RF converted to base band into the software. PowerSDR is agnostic. It doesn't care from where it gets its baseband to gobble. VERY COOL.

So I did. I recorded some of the contest. I made 3 files, 2 of 75M and one of 40M, of 192khz wide preprocessed baseband audio, that he could then play back into PowerSDR at his QTH. At 192khz width he has 192khz of the band to tune and stress his software design. He could tune the contest from his chair up there where ever in the heck he is living these days (Bob gets around). In fact I can sit here and relive great contest moments from last night's contest as well. I recorded the PS0F pileup on 75 as one of my offerings, so this morning as I sip my freshly made latte, I could go back and relive that din of screaming maniacs calling the PS0. NOT!!!!

Bob will get to do his software development and listen to a band full of strong signal without an antenna. Actually he can do his development even without the hardware part of the receiver... WAIT A MINUTE.....

What if I had a first conversion part of the radio that was strapped to a brace of really good DX-ing antennas, and that receiver was streaming the baseband audio to Bob!!!!! Why he could tune the streaming contest from any easy chair with an internet connection!!! WAIT A MINUTE....

What if I had base band audio streaming to me from a dozen receivers all over the world!!! I could sit and TUNE the contest from a dozen different locations and sip my latte in my slippers (actually I don't wear slippers, I hate slippers, but I DO love latte). I wonder if there are any YOUTHS who are headed to engineering school that might find such an idea enticing. Why I bet there are some YOUTHS scattered across universities across the world who could get really jazzed about an idea like this. There may even be a few hams who can get jazzed about an idea like this. If I was in the contest I would probably have to run assisted, BUT WHAT AN ASSIST!!

Aside: This assist thing really gets me. People spend probably north of a million dollars on these contest efforts building "Man's best contest station" They have hoards of people working on these stations building them and keeping them running. People are assigned titles for specific tasks like "chief of towers" and even are assigned staff!!! How is that not ASSISTED? What a load.

Just something to think about while all the screaming mimi's scream "CQ MIMI, CQ MIMI" up on 20M, or you can just go back to your QST and read about how to build yet another 2M vertical.... lemme see get a 19 3/8 piece of #12, cut it a little long so you can clip some off....

You ever wonder why ham radio is dying?

PS: You can't do this with a roofing filter :P

73

Thursday, March 5, 2009

ZL7T

Nother one jumping around in his pileup



This one has been building for over an hour. Fortunately he didn't QRT before I got him. Started while he was in deep daylight at RST 219, Now RST 539. Notice how weak he looks in skimmer. More intensity = louder





73

PS0F

Check out this pile up


Note the Bi-modal nature of the pileup Without skimmer you would have to be very cleaver to understand where he is working. He is on 7010 and I worked him on 7018.72 Almost everyone is below 7015. The Cluster spot was 7015 on TX. He was running a bunch of Russians when I worked him so just listening it would have not been at all obvious where in the heck he was listening.

I love my 3 dimensional radio.

73