Author Archive
Linux soundmodem packet unproto mode tips
by kingsqueak on Oct.29, 2011, under Amateur Radio, Monitoring, NBEMS and Packet Radio, Technology
So some more obscurity I tinker with is VHF 1200 baud packet radio. AX.25 network over VHF frequencies. One of the issues with linux soundmodem packet is that there is no integrated way to send unproto mode packets. This mode is used commonly for groups to hold nets or group discussions over packet.
The issue is that the linux ax.25 utils are there to accomplish this, but there isn’t a comfortable unified console to do so. Not being an ace programmer, I figured out a workaround to do just this.
Shown at right (click to enlarge) is a Konsole terminal window with a ‘screen’ session running in split screen mode. On the top session I am using ‘axlisten -cart’ to capture incoming and outbound packets from my soundmodem on port sm0. In the bottom screen is another shell session using a script wrapper I call ‘upcall’ that wraps the ‘beacon’ utility with port and digi path that it prompts the user for at the start of the session.
This gives you a more friendly prompt waiting for input to send in UI mode while you just monitor the top screen for any traffic you can see.
The nuts and bolts are as follows. You will need all the standard configuration for linux packet, the ax25-utils, and the ‘screen’ utility installed. I’m not covering all there is to getting packet up and running, so go do that first.
Start a screen session. Once in screen you are at a shell prompt, you want to create a second ‘window’ with another prompt instance. Do ctrl-a-c to create that session. Next you want to split the screen horizontally. Do ctrl-a-S (note the S and not ‘s’). Now you have a shell in one windows and a blank area below, next do ctrl-a-n or possibly ctrl-a-p to toggle that blank window to the second shell window you created before.
To move between top and bottom, you do ctrl-a-TAB
Toggle yourself to the top frame and start axlisten with whatever options you prefer. I like the ncurses color option ‘axlisten -cart’ though due to the ncurses, you can’t scroll back the way it was written. If you forego the -c option for monochrome you will be able to scroll back.
Now do ctrl-a-TAB and you will go to the bottom half.
You need to run ‘upcall’ there. The script follows, it’s rough, but it woiks! Save this as whatever you want to call it, I call it ‘upcall’, then make it executable, chmod +x and run it. I have a ~/scripts dir that I keep in my PATH for things like this.
#!/bin/bash # # This is a quickie wrapper around 'beacon' to # send UI/unproto mode packets in linux for use # in unproto mode 'nets' or just general CQ type # chatting on packet radio. # # If you run this with another window (maybe in a # split 'screen' session) with axlisten, it's a # reasonably graceful solution. # # I hope someone finds this useful # # 73 de KC2RGW 29 Oct 2011 clear echo echo "Unproto mode beaconing" echo echo " Fill in the information as requested" echo echo -n "What port should I use? > " read PORT echo -n "What digi? (blank for none) > " read DIGI echo -n "What destination callsign? > " read DEST if [ "$DIGI"a = "a" ] ; then DESTINATION="$DEST" else DESTINATION="$DEST $DIGI" fi clear while [ 0 ] ; do echo echo "RETURN exits" echo if [ "$DIGI"a = "a" ] ; then echo -n "text to "$DEST"> " else echo -n "text to "$DEST" via "$DIGI"> " fi read TEXT if [ "$TEXT"a == a ]; then break fi beacon -d "$DESTINATION" -s "$PORT" "$TEXT" done
This will prompt you for the name of the ax25 port you want to use, in my case it’s ‘sm0′.
Next it asks for the digi you want to use optionally. If you want you can digi through multiple stations for a wide area rebroadcast of your packets. You can do multiples by simply space separating them. An example locally would be “W2LI-2 W2GSA-2″ hit return. If you don’t want a digi, just hit return, leaving this blank.
Last, it asks for the destination call, if you aren’t sure, just put ‘CQ’ which is a pretty standard one. With nets they generally use ARES or RACES etc something to label the packets specific to a group interest.
When you are done with that, it will drop you to a prompt. Anything you enter, followed by a RETURN, will go out. Sending a blank line with RETURN exits out of upcall.
The ‘screen’ utility will stay running in the background if you don’t exit out of both shells. So type ‘exit’ from the upcall shell, then ctrl-a-TAB to go up to the axlisten window and do ctrl-c to stop that and type exit to drop out of screen finally. ctrl-a-d detaches if that doesn’t get it and you can just do ‘pkill screen’ to kill it off.
If you are using digis with the axlisten command I suggested above, you should see your outgoing packet, and if you can hear the digis properly, and they can hear you, you will see a repeat from both of them.
Remember, unproto mode is broadcast with no confirmation, so if you don’t see them bounce from the digis, you weren’t heard or you were interrupted by other traffic.
I hope this was helpful for someone. Packet radio for me is just this obscure pastime that I seem to dig into a few times a year. I wish more people were still fiddling with it…it’s fun!
QS1R SDR Filtering With Fldigi For PSK And Digi Modes
by kingsqueak on Oct.13, 2011, under Amateur Radio, Monitoring, Technology
Here’s something interesting that I’ve been fiddling with the last several days. Using my QS1R SDR receiver with fldigi for digi modes on the ham bands.
The QS1R is a DDC type SDR (software defined radio) receiver. A very powerful, software based receiver.
Fldigi is an open source digital mode software ‘modem’ that is used to receive and also transmit text in many different mode types. Essentially it takes an audio stream passed from a receiver and tunes and demodulates various types of transmission types within that tuned pass band.
SDRMax is the software interface to the QS1R receiver. The receiver has nothing but power, audio and USB data connections on an otherwise blank looking project enclosure. SDRMax is the user interface.
The whole system is running native compiled for Ubuntu 10.04 LTS 64 bit.
What is being shown is the following.
The QS1R is connected to the IF-tap output on a Kenwood TS-2000 transceiver. I made my own IF-tap modification following the document that AK2F published. I used a Clifton Labs buffer amp circuit to isolate the IF-tap from any external interference.
I aligned the QS1R with the IF frequency of the radio, which is roughly 10.7 MHz, so the readout you see is the frequency that is actually the IF frequency of the Kenwood. This has to be done carefully against WWV and is a bit tedious initially.
So the Kenwood is just acting as a transmitter, with the QS1R being the receiver (I run AGC off, pre-amp off and RF gain nearly off on the Kenwood as the Clifton amp has plenty of gain already).
The QS1R audio output is piped into fldigi as the capture device for decoding the tuned audio passband. Fldigi processes this and upon transmitting, sends its output to a Tigertronics Signalink USB and in turn into the Kenwood for transmit.
The whole reason for plumbing all of this is to gain the extreme filtering power of my SDR receiver. Compared to the stock filtering of the Kenwood (which is already pretty decent) it is a night and day improvement.
The two images (click to enlarge) were snapped at nearly the same time. The top image shows typical mid-day 10m activity (10m has been very open lately). All the vertical lines you see in both fldigi on the left and SDRMax in turquoise to the right are individual PSK-31 signals. If you click one in fldigi, it will begin to decode the text being sent.
The issue is, they are all so close together that with unfiltered rigs or rigs with lousy filtering, you can lose the contact when a nearby strong signal pops up.
The bottom image is showing the effect of the filtering capability of my QS1R receiver. All you can see is a single signal, all the adjacent signals are just blacked out. This is a remarkable feat and will be immediately evident to any regular digi mode operator.
The filtering can be moved anywhere along the waterfall and can be adjusted in 1Hz steps on either side of the desired signal. The filter edges can be clicked and dragged with the mouse or can be adjusted with the mouse scroll wheel in variable step sizes. The image actually shows the filter about twice the width it needs to be but I wanted to illustrate how sharp the filter edges are in contrast with the background waterfall.
Since I have disabled AGC and any pre-amp in the rig, I’m using the AGC built into SDRMax. The old issue of AGC swamping from nearby strong signals is all but eliminated by the design of the SDR software.
As you can tell, I’m very pleased with the results and highly recommend fiddling with SDR in its many forms to any amateur radio op.
Dump Allstate – Before it is too late
by kingsqueak on Sep.11, 2011, under Daily Drivel
Some lessons learned from Allstate Insurance, just a warning to any friends who have a policy with them for homeowners.
They have declined to cover what is close to a $10k bill to replace a water heater and furnace that were damaged by water when my sump pump wasn’t running due to the power outage we had. The water killed the electronics in both and I was ordered by the gas company to never use them again…after having had the fire department here for a gas leak and CO alarm when I re-lit the pilot.
Mind you, nothing unusual was going on, just normal water accumulation and once power restored after four days, the pump pumped out 8″ of water in the basement in only 30 minutes. This wasn’t flooding or runoff, this was just normal accumulation that happens any time it rains here.
It turns out that they have a hidden loophole they don’t inform their customers about. For a pittance of $20-$50 annually they would have covered up to $10k in damage from the sump issue. Trouble is, they don’t tell anyone about this. So for not paying $140 in total policy increases they are trying to make me eat $10k in repairs.
With a roof leak that was caused by the storm, they finally arrived today to do an evaluation and ruled that there was no damage. I have a ceiling that is constantly leaking now and all they are paying for is paint and sheetrock. If I just replace that, it will just leak right through in a week or so anyway. Of course, having to eat the furnace repair, leaves me with pretty much nothing to fix the roof. Fun.
They are completely useless and I recommend highly that if you have a homeowner’s policy with Allstate that you dump them for anyone else as soon as possible, before you too find out how little they will do for you.
** UPDATE
16 SEP 2011
Allstate finally pays out… a whopping $751. They still deny the claim on the $8500 repairs for the furnace and water heater entirely. This check is for the roof damage that caused a permanent leak, where a ceiling is falling inside.
$751 isn’t even enough to pay for the materials to do this repair myself, it would be a few grand easily to have this properly repaired.
I have filed for a review, but it looks like I would have to sue them to get them to make good at this point. We’ll see.
