opening

Regular reports of my grabber activity and that of others, plus information on QRSS software, hardware and technique that comes my way

Monday, June 4, 2012

Uploading Files Using DOS Commands

                             
Several months ago I found a somewhat hidden feature in Spectrum Lab which uses DOS commands in a simple batch file to directly upload grabs. I learned to use DOS commands and batch files years ago before there was Windows and the Internet so that's probably why I wasn't aware of the ftp DOS commands.  I haven't seen anyone describe it for QRSS grabbers so I'll report my experiences with it.

The programming consists of a few lines of code within SL and a few lines in a special file in the root directory,C:\.  Once it's working there's no need for a separate program such as Argo Uploader and it starts working as soon as SL is switched on.

Here's the two lines that go in the Periodic Actions page in SL:
-------------------------------------------
capture("C:\\ftp_upload\\SL1.jpg")
exec ("c:\\ftp_upload\\ftp_up.bat SL1.jpg")
-------------------------------------------
The first line makes the grab and stores it in the special folder in the root directory and the second line causes the batch file with the upload instructions to be executed and upload the file to my page at qsl.net.

The batch file and associated files are located in the folder c:\ftp_upload which contains the following files:

ftp_up.bat
ftpcmd.txt
ftplog.txt
SL1.jpg

Here's what the batch file, ftp_up.bat, looks like:
----------------------------------------
cd \ftp_upload

>> ftpcmd.txt echo USER user password

>> ftpcmd.txt echo binary

>> ftpcmd.txt echo put SL1.jpg

>> ftpcmd.txt echo disconnect

>> ftpcmd.txt ECHO bye

FTP  -n -s:ftpcmd.txt ftp.qsl.net > ftplog.txt

End
---------------------------------------

The files ftpcmd.txt and ftplog.txt are generated the first time the batch file runs so you don't have to worry about their content. SL1.jpg is the name of the grabbed image file that is expected by my page at qsl.net.  For the longer grabber it's 4Hr.jpg.

The first line in ftp_up.bat ensures we're in the directory with the file to be uploaded.  The other lines are standard DOS commands and the only thing you need to change is user and password in the next line and the ftp address of you web page in the next to last line.  Note that the USER in caps is part of the DOS ftp command and user is your username at your web site.  Otherwise it's not necessary to understand DOS command programming (which I barely do).

I actually have three versions of the batch uploader, one for each of my two grabbers and one to upload an "Off the Air" screen.  I simply name them ftp_upload1, 2 and 3. It's very versatile.

The only drawback to this method of uploading is that a small black cmd: screen pops up for a few seconds while it's uploading. If you find it annoying there's a way to suppress this screen but I'll save that procedure for a ps below.

Here is my Periodic Action Screen in Spectrum Lab:

Spectrum Lab Periodic Action Screen
The first line captures the screen for my storage folder and gives it a name like "SL04JUN12 1410z".
The second line captures it again with the name "SL1" just for upload purposes.
The third line executes the upload batch file.

DOS commands and batch files can be pretty tricky because of all the parameters and switches so if you have trouble I'll be glad to help.

de w4hbk

ps  How to suppress the black pop-up cmd: screen.

There is a Properties Box associated with the cmd: screen which can be invoked by right clicking on the bar at the top of the cmd: screen.  Since it stays on for only a few seconds it will be necessary to hit the "Pause" key to make it freeze so you have time to work, then "any key" to resume.  This doesn't actually suppress it but it reduces the size and moves it to a corner.  Change "Window Size" to 1 for both width and height and "Window Position" to move it to a corner.  As you change the numbers you'll see the changes in the "Window Preview".  It can actually be moved completely off screen by making one of the position numbers larger than the screen but I left mine as a tiny screen at the lower left so I'll be aware something is happening.  Maybe as I get more confident I'll move it totally off.




















Monday, August 22, 2011

Measurement of 30m Noise Background at W4HBK

In my last post I described a method I use to disengage the AGC of my TS-440 so that accurate measurements of signal levels can be made.  Last Winter I tried to measure the background noise on my receiver but found that AGC compression was a major problem.  Now that I have that ironed out I've tried again to measure the background noise, this time with success.

My system consists of an Inverted V antenna into a Kenwood TS-440 receiver whose audio output goes to a computer sound card and then the Spectrum Lab software.  All signal levels to which I refer are as measured on the SL display.  I define background noise as the signal level of the noise above the noise floor of my receiver which is determined by replacing the antenna with a 50 Ohm resistor.

I used a little know feature of Spectrum Lab called "Watch Window"   to record my data. WW allows you to select a specific part of the spectrum to be recorded as a strip chart, e.g., amplitude vs time.  I described this in a previous post called "New Toy" back in March.  Several expressions are available to measure both signals and noise.  The noise expression is,

     noise(freq1, freq2)

which measures the noise level between f1 and f2 and eliminates the effect of discreet signals using the following scheme:
   1.  an array of amplitudes from the last FFT calculation is sorted into order of increasing amplitude.
   2.  The amplitude of the lower quartile value is then returned as an estimate of the mean noise level. 

With the frequency range set to cover 10140.0 to 10140.1 and numerous QRSS signals present it ignores them and measures just the noise....like magic  You can read about this in more detail in the SL help file.  The only problem I've had is with strong RTTY and JT65 signals which cover the entire QRSS spectrum but this is rare and easily recognized..

I recorded the noise background for a 24 hour period so see how it varied with time of day.  The results are shown in Figure 1.  The spikiness is due to static crashes plus occasional clicks and pops from electrical equipment.  I can hear nothing that sounds like power line noise or crt emission, etc....just the steady crunch of sferics.  Thunderstorm activity was actually mild during the measurement period with just a few small storms no closer than 25 miles, indicating to me that the sferics were propagating in from afar.

Figure 1.  Noise vs Time of Day Measured @ W4HBK
The time of maximum noise was just around sunset at about 35 to 40 dB above the NF.  Minimum noise occurred around noon at 20 to 25 dB above the NF.

For comparison I obtained the noise estimate from VOCAP, Figure 2.  The trend for time of day is close but I measured a max to min range about twice as large as VOCAP, 15 dB vs 7 dB, respectively.  My measurement is for a particular day whereas the VOCAP estimates are based on extensive observations used to determine averages.
Figure2.  VOCAP Prediction of Noise @ Receiver
I plan to repeat the measurement several times to better characterize this time of year and then do the same for other seasons.  Can't wait for a cold Winter night to see how low we can go.






Tuesday, August 16, 2011

How to turn off your receiver's AGC

Even though the AGC is a wonderful invention there are times when it's nice to be able to turn it off.  In order to make quantitative measurements of signal levels the gain needs to be constant from the antenna input terminals to the audio output terminals.  The "A" in AGC keeps this from happening.

Very few receivers today have an "off" position for the AGC but I've found it is possible to effectively turn it off by simply backing off on the RF gain control.  I'm almost ashamed to say that in all my years hamming I have just discovered this.   Here's how it works.

Figure 1 is the AGC response curve made at Clifton Laboratories for a commercial grade receiver .  With the RF gain full on there is region from the noise floor up to a point called the "AGC knee" where receiver gain is linear.  At the knee the AGC kicks in and maintains a more-or-less constant audio output for an ever increasing RF input.  But, as the RF gain is backed off the knee moves to the right so that the linear region covers a much wider range and that's the fact we take advantage of to defeat the AGC.  If the knee is chosen carefully then all the signals likely to be received will be in the linear region.  It is always possible that a really strong signal will appear inside the bandpass to activate the AGC but for QRSS band conditions this is very unlikely.
Figure 1.  Receiver AGC Response Curve

As the RF gain on my TS-440 is reduced the S-meter moves up from the "peg" at S0 to higher and higher values...the higher it goes the wider the linear range.  I have found that S9 is a good set point.  To compensate for the drop in audio output I increase the audio gain.  Now you might think that in doing this that the SNR is being degraded but that's not the case.  While doing these experiments I keep track of the noise floor as well as the signal and the difference remains the same.  There is eventually a point where the signal is too weak to stay above the noise floor but for my system this is substantially above the S9 set point.

Not all receivers have the same AGC response curve and the linear region may not actually be all that linear.  To check my TS-440 I inserted attenuators of known values at the antenna terminals and looked for the corresponding drop in output as read via Spectrum Lab.  Actually I have only one attenuator I consider calibrated, a Tektronix 011-0059-01 fixed 20 dB type with BNC connectors.  I used this to check the internal attenuator in my TS-440 which is supposed to be 20 dB and checked out within a dB.  Thus I have two accurate 20 dB steps of attenuation for a total of 40 dB.

Figure 2 is the test setup.  For a signal source I used my Palomar R-X Noise Bridge which provides a strong, stable signal for testing.  With the noise source OFF the output as read by SL defines the system noise floor.  With the noise source ON the output was adjusted for a convenient level above the noise floor.  Attenuators were added to vary the input and the output observed on SL.
Figure 2.  Test Setup

Figure 3 shows the effect of the attenuators for two cases.  The first is with the AGC turned off by reducing the RF gain and you can see that the output closely follows the input.   The second run was made with the AGC full on at maximum RF gain where you can see the output hardly follows the input, particularly for the first step.  I did this run for two noise levels corresponding to S4 and S1.  The weaker level came closer to following the attenuation as is suggested in Figure 1. You can see AGC curves for other receivers at the previously cited link to help understand what goes on around the AGC knee  My hypothesis that reducing the RF gain turns the AGC off seems to be valid and the response of my receiving system is nearly linear under these conditions .  Now I can measure signal strengths and compare them in a meaningful way.
Figure 3.  Effect of Attenuators With and Without AGC

The impetus for this study was a desire to measure background noise so I could compare Summer and Winter conditions on the various bands for use with path loss calculations.  For example,  VOACAP predicts the signal level in dBm reaching a receiver from a transmitter for known power and antennas.  The unknown factor is the veiling effect of band noise.  I have begun making background noise measurements and can see the daily cycle and the effect of sferic spikes. This is interesting in and of itself and I'll describe it in a future post.

de w4hbk

Sunday, July 10, 2011

My New DDS MEPT

I haven't blogged lately because I've been working diligently on a new mept based around the DDS2 kit from N3ZI.  The DDS2 has been combined with a 5W amp from W8DIZ and a few other circuits to yield a QRSS mept which works from 160 thru 10 and can put out several Watts if needed.  I particularly want the extra power to use on 80 and 160 during the upcoming dx season.

Figure 1 shows the completed project which is mounted in a homebrew cabinet made from 1/4 inch (6mm) plywood.  The dimensions were chosen to fit in my wooden mini-rack which I built some years ago when I was into digital modes and had modems, controllers, etc to bring together.  The main components are:
 the DDS2 vfo,  a 20 dB preamp,  the W8DIZ 5W amp, a LED voltmeter and a lowpass filter assembly out of my original TS-440 which was killed by lightning in 1989.  The lpf filter selection is via a 12 V, 6-position switch and contains a forward/reflected power circuit which is easily read by the LED voltmeter.  The VM is based on a National LM3915 logarithmic display driver.
Figure 1.  Top View of Completed MEPT
The DDS2 was modified slightly by moving components to clear out a space around the crystal oscillator to anticipate styrofoam insulation for a temperature controller.  Also, the 7805 voltage regulator was moved off board to allow a thermal partition to isolate the heat sensitive components from the rest of the circuitry.  There are two external inputs for the DDS2, a RS232 line for programming and a keying line for fsk via the program QRS.  I am a real fan of QRS because it allows user-defined messages, has dfcw capability and has precise timing for image stacking work. The circuit recommended in the QRS help file was used to convert rs232 voltages to the open/short needed for fsk. 

The DDS2 output is about 0.25 V peak-to-peak into 200 Ohms (40 uW) and some amplification is necessary to drive the DIZ amp.  I used the simple circuit suggested by N3ZI which gives about 20 dB of gain which is more than adequate.

I added cooling fins to the final transistors of the DIZ amp, consisting of several square inches of 40 gauge copper sheet.  They get fairly warm when running 2W but I don't intend to operate above this level since the amp is intended for intermittent use.  Power level can be adjusted by a potentiometer which I moved from the board to the front of the cabinet for convenience.

The Low Pass Filter is a board from a TS-440 and has a six wire cable for switching the individual LPFs via a 6-position switch.  It also has circuitry for reading forward and reflected power.  This was certainly a boon to the project and I'm so glad I hung onto it over the years.  If you want to make you own LPF Dave, WA5DJJ,  shows you how at his web site.  His covers 160-10 and uses dip switches to select the individual filters.

One last item is a logarithmic voltmeter circuit complete with LEDs for measuring the fwd/ref power from the LPF board.  It's on a .75 x 2.5 inch board which I mounted directly on the front panel along with a spdt switch to select forward and reflected.

Figure 2 shows the front panel and mounting of controls and indicators.
Figure 2.  Front Panel and Rack Mounting
This is not intended to be a construction article but just an outline of how I assembled the parts.  If you want more detailed information send me an email.

What a pleasure it is to be able to move to any band and select a clear frequency.  The power control is way cool also, as is being able to see the power and check on reflected to make sure the antenna ain't misbehavin.  So far I haven't gotten around to adding temperature stabilization but with the thermal isolation provided by the wooden cabinet and the thermal partition it is stable enough for image stacking up to three or four hours.  My ultimate goal is to add an ocxo which should provide stability down to 0.01 Hz...such units are available on eBay for about $20.  Then again I might make my own.

You might have noticed the BNC at the lower left of the front panel.  This is an auxiliary vfo output which I want to use in rx experiments.

Finally, if you like the idea of measuring fwd/ref power  here is kit from W8DIZ  intended for QRP.  The LED display has been in my junk box for years so ur on ur own for this component.

de w4hbk

Tuesday, June 14, 2011

Improvements to my air conditioning system as observed on the ON5EX grabber

Several nights ago I had my mept on 40m and recorded it's reception on the ON5EX grabber using SiteShoter then stitched the grabs together to see how I did over the long term.  I have described this technique previously on this blog.  Here's what it looked like:
So, what's this got to do with my air conditioning?  When we first moved to this QTH the air condx would cycle on and off on a hot summer day but as the years went by it got to the point of running continuously 24/7 and our electricity bill rose accordingly.  Over the winter we had an energy audit courtesy of the local power company and the auditor recommended we have our ductwork checked for leaks and add more insulation in the attic.  We followed his advice and as the temps began to climb into the upper 90's (37 C) earlier this month it was a relief to note the air condx was once more cycling on and off.  I meant to make a few measurements but haven't had time so far....until the night I recorded the above data.

My mept at the time was a QRP Labs kit which I have found to drift with changes in room temperature and I can see that drift on the ON5EX grabber. It shows the air condx to come on for 10 minutes then off for 10 minutes.  The change in temperature is several degrees F based on a previous calibration also describe on this blog.

Consider the irony.  I have without intending to do so remotely sensed the performance of my air conditioning system via a facility located in Belgium.

de w4hbk

Tuesday, May 24, 2011

FollowUp on Using WSPR Data

A few hours ago I checked the 20m WSPR data for the EU to NJ path during the past 24 hrs.....what a difference from the past weekend!  See for yourself:

Figure 1.  EU stations heard @ K1JT on May 21


Figure 2.  EU stations heard @ K1JT on May 24

Apparently condx were terrible over the weekend while my grabber was on 20.  The only dx station I heard was G6AVK and just for a few hours around 2300z.  If we had been on the past 24 hours I should have heard EU longer and probably louder.

The reason I'm interested in all this is that I've been thinking of moving my grabber to one of the higher bands during my local daylight  (1300z to 2300z) since that is usually when the dx comes thru to Florida.  But not being one to beat a dead horse I want to have some assurance of success.  My plan is to keep and eye on WSPR data as a guide to which bands and times to be QRV, particularly as a supplement to standard propagation predictions.

de w4hbk

Monday, April 18, 2011

Temperature Control for My Kenwood TS-440

Here's how to add a temperature controller to an older rig like my Kenwood TS-440.  Essentially you just make a copper sleeve for the master crystal, glue on a pair of heating resistors, a LM-35 temperature sensor and use a 4-wire cable to connect to the control circuit located outside the rig.  This is the same approach I described previously in Part 1 of my series on temperature controllers.

The main requirement it that the frequency of the receiver be controlled by a single master crystal as in the TS-440.  Older radios with multiple crystals used for the various hetrodyning stages will be too awkward to adapt because a separate controller would be required for each one.*

The TS-440 is actually pretty challenging with respect to cramped quarters.  The crystal is located in the middle deck of a stack of 3 PC boards with very little room for the compact sleeve that fits around the xtal....but it just works.  Figure 1 shows what we're up against.


Figure 1.  Location of master crystal in the TS-440


The front of the rig is at the top of the photograph.  Note the upper deck has been swung up to allow access to the middle deck where the crystal is located.  The small chassis to the right contains he outboard temperature control circuitry.  The cable connecting the two is a 4-conductor type from an old modem line.

Figure 2.  Close-up of Copper Sleeve Installed on Crystal


Figure 2 is a closer view of the crystal location showing the copper sleeve installed.  The heating resistors are on the left and right sides of the sleeve and if you look carefully you can see the TO-92 case of the LM35 in between.  Note how close the crystal is to the shield of one of the PLL's...there is only a few mm spacing and no room for Styrofoam insulation as I have used with other TC's.

Figure 3.  Case Closed

Figure 3 shows the case closed back up.  Along the front of the controller are, L to R, temperature control pot, LED indicator, Temp or drive voltage switch and RCA plug for voltmeter.  Figure 4 shows everything set up and operating.  When power is first applied to the controller the LED glows brightly then gradually dims to a steady value to indicate regulation.

Figure 4.  System in Operation


How does it perform?  Bottom line, the frequency is stable enough for long duration stacking work up to 6 hours.  When I monitor WWV the variation over a day is +/- 1 Hz when the wx is nice enough to leave the windows open 24/7 and outdoor temperatures vary by 15 degrees F.  I adjusted the operating temperature to 125 deg F (52 C) which is the measured turn-around point for the TS-440 crystal.  I determined this by varying the temperature with the pot and noting the point where temperature quits decreasing and starts increasing again....see Part 1.  The ceiling fan has a noticeable effect on temperature variations and when I'm really serious about stacking I leave it on low speed to keep the air in the shack well stirred.

de w4hbk