opening

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

Sunday, September 29, 2013

An Automatic A/B Antenna Switch



A while back I did some tests with VK1OD to compare antennas using an automatic antenna switch he had devised for antenna testing.

I made a version of Owen's antenna switch which can be controlled by the QRS keying program  which I use to key my mept via the computer's serial line.  In the experiment described in this post it is being used to switch in an attenuator so I can transmit different power levels on the Mark and Space of the QRSS FSK signal.

Here's the schematic,


The driver transistor is located in my mept box and connected to the A/B switch box by a twisted pair.  DTR is the DTR line of the serial cable coming from the computer.  My mept is also keyed from this connection via another driver transistor

Here's a picture of the resulting keyer:



The attenuator is an L design with 50 Ohms to ground and a series resistor of 100 Ohms between A and B to give an attenuation of 10 dB.  You can see where I tack-soldered in parallel resistors to reach 10 dB as measured using Spectrum Lab.  The twisted pair on the left is the keying line from the serial port and there is an LED to indicate when antenna port B is switched in.

When used with the QRS keying program the switch automatically reduces the 1 W signal to 100 mW so one is on the Mark and the other on the Space.

The other use for this switch will be to compare antennas, my next project.

I have found the 10 dB comparison most illuminating.  I seldom run my mept but when I do I generally use   1 W because I'm interested in observing propagation and want to ensure results.  But, I often wonder what my signal would have looked like at the typical QRSS power level of 100 mW.  Now I know.  More often than not the 100 mW level is in the noise compared to the 1 W and would have required image stacking to identify the call.  It's not just a matter of power because of other factors such as the grabber's antenna and local noise and how the waterfall display is set up.

Here's an example taken from PA2OHH's grabber.  In the first image which is a single grab the 100 mW Space is barely discernible and not clear enough to ID the call which is clearly seen in the Mark:


Here's a stacked image of multiple grabs from the same grabber:


Now you can see the 100 mW Space quite clearly and read the call in un-cw.  I use this technique often on 40m where the 'barefoot' mepts don't make it out of the noise well enough to be identified.

It's no surprise that a 10 dB power gain makes a big difference but if you can read the lower power level then the gain is not very impressive.  It's when the lower power is not visible at all and them emerges from the noise to be readable at the higher level that the difference is most impressive.

de w4hbk








Tuesday, September 24, 2013

A Comparison of QRSS and WSPR for Measurement of Signal Strengths

This post describes measurements I made with the help of Keith, G6NHU, to compare Signal-to-Noise measurements displayed by WSPR with those I make using QRSS using the Spectrum Lab spectrogram technique described in a previous post

The versatile Ultimate 2 from QRP Labs has the capability of transmitting both QRSS and WSPR and can do so in the same message frame.  G6NHU has been doing this with his U2 for some time now by designing a message that sends QRSS for 8 minutes followed by a 2 minute WSPR frame, making it possible to monitor both modes on a routine basis.  Here's what it looks like on 20m:

Figure 1.  G6NHU QRSS/WSPR message


Keith usually transmits WSPR on the WSPR frequencies but for the purpose of this experiment it was on the same frequency as the QRSS otherwise it could easily disappear in the crowded WSPR band.  Note also that the WSPR message has the same bandwidth as the 5 Hz FSK so doesn't cause problems to other QRSS stations.

For our tests I ran the WSPR program and recorded G6NHU while simultaneously making grabs of the QRSS part with this screen:

Figure 2.  QRSS Screen Used to Measure SNR

The QRSS measurement is based on the SL "long term average" function which in this case is the 2 minute period at the end of the QRSS message shown in Figure 2.   The WSPR measurement immediately followed the 2 minute-averaged grab.  Refer to he link give above for more details.

Over the time frame from 1900z to 0100z on 20m I recorded about 30 instances where G6NHU appeared on WSPR and had a clean grab on the Pensacola Snapper near the same time.  Not having much to do an a very rainy day I read all the QRSS captures and made a spreadsheet of QRSS/WSPR SNR determinations. From this I plotted the SNR's measured via QRSS and WSPR:

Figure 4.  Plot of SNR's Determined by QRSS and WSPR

The big difference in scale is caused by the bandwidths used in WSPR and QRSS.  WSPR relates the SNR to a BW of 2500 Hz while my Spectrum Lab settings are for a noise BW of 0.25 Hz. SNR is inversely proportional to BW because noise power varies with BW.  Therefore the change in SNR expressed in dB is,

delta(SNR)  = 10log((S1/N1)/(S2/N2)) = 10log(BW2/BW1), dB

     note that S1=S2 since the signal is monochromatic and does not change with BW

Thus the change in SNR for 2500 Hz and 0.25 Hz bandwidth's is:

         10log(2500/0.25) = 40 dB

which is added to the WSPR data in Figure 3 to obtain that inFigure 4.

Figure 4.  Correction for Bandwidth Differences

One thing in favor of the QRSS method is that it's possible to actually view the QRN/QRM situation at each determination of SNR...see Figure 2.  Compare this to the busy WSPR spectrum in Figure 1 where interference seems to be a distinct possibility.  As described above, the QRSS and WSPR measurements are 2 minutes apart which may account for some of the differences in agreement.

The large fluctuations in measured SNR are due mainly to QSB and not system noise.

de w4hbk

Thursday, August 22, 2013

Spectrum Averaging to Improve Measurement of Signal Strengths

Many grabbers based on Spectrum Lab include a spectrogram along with the waterfall to give some idea of signal strength. I have recently enhanced this feature on my grabber to facilitate accurate measurement of signal strengths. Spectrum Lab makes spectrum determinations at a defined scroll interval which in the case of my 10 minute grabber is 0.7 seconds. The long term average function, selectable in the Spectrum(1) configuration window, averages during the grab interval to produce a dramatic reduction in noise. For the 10 minute grab interval this results in 857 individual spectra being averaged, resulting at a 15 dB improvement in signal-to-noise. Here's what it looks like (yellow is the long term average, red a single spectrum):


FIGURE 1

There is a problem in reading QRSS signal strengths because of the dual FSK peaks. If the signal was unmodulated, i.e., a straight line, continuous carrier then the displayed peak would be meaningful. However, an FSK signal has two peaks for Mark and Space which under the ideal condition of no QSB would be different due to the different cumulative times of each. To get the true signal level requires a little math to add the two, doing so in linear space rather than dB space. It's necessary to take the antilog then add and take the log of the results to get back to dBs. The following sketch shows how this works:


Figure 2

This is a bit of effort but not too bad once a work flow is established. It's worth it when you bear in mind that we are measuring signal strength over a real dx path with a precision approaching several dBs. Here's a grab I used to compare the signal strength of 4 stations located in England (a,b,c,d) and 2 in the US:


Figure 3

It is not wise to compare signals with large differences in path length because of unequal Doppler broadening as will be discussed below. This table shows the raw data, mark, space and noise, along with the processed results and comparisons:


Table

The noise baseline was subtracted from Ptotal to get the SNR. We could conclude from this data that on the US side, station f was 7 dB stronger than station e while on the European side, how other stations compared to station b which is consistently the strongest EU station seen on my grabber. Repeated observations of the EU stations give about the same results from day to day which would allow antenna experiments to improve one's signal.

This particular grabber screen was designed especially for this kind of measurement with a larger spectrum window for more easily reading the dB level and with a 3 minute grab interval to better follow the QSB.  

There are some problems and limitations to be considered. First, signals must be continuous, either a steady unmodulated carrier or FSK without an off time during the grab period. Second, the signals must have a meaningful, defined peak. Hellschreiber and drifting signals will not work because there is not a defined peak. Third, the width of the signals being compared must be the same otherwise we'd have to consider the area under the curve which is beyond the capability of this technique. Doppler broadening generally increases with path length so comparisons should be made only signals from the same general area. Finally, the signals must be continuous The signal at g is not usable for this reason.

As a bonus, I have adjusted the output of my receiver to make the noise floor always at -110 dB so that day-to-day or perhaps even seasonal comparisons are possible, assuming that the rx noise floor and gain/loss of the antenna/feedline remains constant and I see no reason why they shouldn't. Referring to Figure 2, in the spectrogram the reason there is so much space to the left of the noise baseline is so I can see the -110 dB level to make this adjustment, which I do while substituting a 50 Ohm load for the antenna. As long as I don't fiddle with the gain controls the noise floor is remarkably stable from day to day.

Some stations using the U2 "Ultimate" from QRP labs are transmitting both QRSS and WSPR signals by time sharing where QRSS runs for 8 minutes then shifts to WSPR for 2 minutes. I have made some preliminary comparisons to signal strengths made using the technique described here with the dB levels reported by WSPR and get good agreement. When I have made more comparisons and am confidant in the results I'll present it in another post to this blog.

In case you're wondering, my receiving system is linear because the AGC has been disabled using a technique described in a previous post.

de w4hbk

Friday, September 21, 2012

Plotting Signal Strengths with Spectrum Lab

Spectrum Lab has a feature which allows one to bracket a signal on the waterfall display and watch its signal strength as a strip chart recording.  This feature is called "Watch List & Plot Window" and is found in the "View/Windows" menu at the top of the display.  Here's the set-up screen:

Set-up screen for SpectrumLab signal plotter.

It's a bit tedious to learn to use and involves a set of commands, functions and expressions reminiscent of BASIC which allow a signal on the waterfall display to be selected and plotted.  But the good news is that only a few instructions are necessary for making a simple strip chart recorder.  I use two expressions:  noise_n(f1,f2) which plots the band noise in the range between f1 and f2 which are two audio frequencies on the WF display and peak_a(f1,f2) which yields the peak signal between two frequencies.  Up to 6 signals may be selected and plotted at the same time.

The noise_n function divides the range between the two specified frequencies into 256 bins and averages the 1/4 lowest values to obtain the band noise.  The likelihood of including actual signals in this average is very low unless there is broadband interference present such as from RTTY or JT65.

The peak_a(f1,f2) expression brackets the signal of interest, divides it into 256 bins and selects the largest value to plot.  This makes a varying QRSS fskcw signal appear as a continuous line since the mark and space are always within the brackets.  Wolf thinks of everything.

OK, so why the interest in plotting signal strength?  One reason would be to watch for changes in your signal while doing some antenna comparisons, for example.  Another and the one in which I'm interested is to study QSB.  There are three causes of QSB:  multipath interference, Faraday rotation and ionospheric focusing.  In multipath the signal is reflected from two or more layers and arrives at the rx antenna to interfere destructively and constructively.  In Faraday rotation the polarization of a linear transmitted wave rotates as it passes thru the Earth's magnetic field and arrives at the polarized rx antenna at a state other than of the tx antenna, ie a vertically polarized transmitted wave can arrive at the rx as another polarization, including eliptical.  Focusing is cause by the shape of the ionosphere which can vary from convex to concave.

Scientist and engineers who study propagation have utilized simultaneous recordings of the vertical and horizontal vectors to detect the Faraday effect and the qualitative nature of the overall variations to separate the three effects.  It ain't easy and requires sophisticated computing capability and understanding of propagation, definitely a job for professionals.  However, that doesn't keep we amateurs from having fun with the subject, making our own observations and attempting to guess which effects are occurring.

My favorite reference on QSB is the dissertation of Dr. Yau at the University of Adelaide who studied the effect on OTHR signals in the 6 to 10 MHz range.  There's a good discussion of hf propagation there plus a details of the receiving apparatus and computational techniques.  Imagine getting a PhD in QSB!

Here's an example of QSB recordings I've made on some 30m signals:

Example of strip chart recording

The Red trace is the band noise, Yellow is KD4PBJ near Chattanooga, TN and Green is AK4T near Atlanta, GA.  

de w4hbk






Wednesday, August 29, 2012

Using DropBox to Build an On-Line Grabber

Building an on-line grabber is a two step process.  First, download and learn to use a waterfall display grabber such as ARGO or SpectrumLab.  Of the two, ARGO is much simpler to use while SpectrumLab is more versatile....I have a SpectrumLab turorial on this blog to help overcome the learning curve.

Second, upload your grabs either to a web page or to the DropBox photo sharing service.  The web page approach is more versatile and sophisticated but has a steep learning curve if you don't already know how to design a web page and get in online.

That's where DropBox comes in.  All you need to do is open a FREE account which links a folder on your computer directly to one at DB.  Then as ARGO or SL makes the grabs and stores them in the computer's DB folder they magically appear in the one at DB.  Furthermore, DB is designed for image sharing and all you need do is obtain the link to the image in question and show it to the Knights so they can view it.

I've been running an auxiliary online grabber using this method and it works FB...with one exception...it will not automatically update and the user needs to click his refresh button to see the latest grab.  This is not considered objectionable according to several comments I've received.

Here are the details of the DB folders.

After setting up the *Free* DB account this is the opening screen you will see.  You are provided with two basic folders, one called Photos, which we will be using, and another called Public which is useful for other files such a programs and sound files.  Note also the Getting Started file which will explain everything.


Next open the Photos folder which will look something like this:

The only one of interest to us is 10 Minute Grabber which is where the grab ends up.  Open this one and we see,

a single file which is the actual .jpg  uploaded from the grabber and which is to be viewed by the user.  Click on the "link" icon to the right to copy the link and pass it along to your potential user.

This is the actual folder set-up at DropBox and there is a similar one on your computer at a location you specify when setting it up.  This is where you direct the grabs made by ARGO or SL.

Note that I gave the file a rather strange name..."W4HBK Grabber  (REFRESH for latest grab)".  That's so a message will show up at the top of the screen to ID my grabber and remind the user to hit the REFRESH button once in a while.

Now you must add a new line to the Periodic Actions commands:

capture("C:\Users\bill\Dropbox\Photos\10 Minute Archive\W4HBK Grabber  (REFRESH for latest grab.jpg")

Here's what the Periodic Actions screen will now look like:


Finally, go to the image file in your Dropbox folder, right-click on it and select "Copy Dropbox Link".  Open a new Tab, paste the link and make sure it opens the file.  This link is the one you send to users so they can open the file.

Note that it DOES NOT auto-update and the user will need to refresh the screen to see the latest grab.  That's why the reminder in the name, "W4HBK Grabber  (REFRESH for latest grab.jpg"

There is an easy way to make it auto-refresh and that is with a browser extension that auto-refreshes the screen at an interval you select.  I use "Easy Auto Refresh" for my Google Chrome browser.

If you publish the link to ur archive the user can also view all the grabs there.

If you have any problems please feel free to contact me at owlpoop@gmail.com


de w4hbk




Sunday, August 19, 2012

Dopplergram Catches a Solar Flare

Yesterday I took a day off from grabbing to try my new Dopplergram on the WWV 10 MHz signal.  As luck would have it an M-class Solar Flare occurred during the recording:

Figure 1.  Solar Flare of 18AUG12 as seen on Dopplergram

Figure 2.  Solar Flare of 18AUG12 as seen on 10 minute grabber


Figure 3.  GOES X-ray flux

An M-class flare commenced just before 1610z.  The increasing frequency means the path length was decreasing as the reflecting layer moved downward

This is the cleanest data I've recorded of a flare and justifies a calculation of Ionospheric motion from the observed Doppler shift.  I assumed a simple triangle relationship of the radio path (Earth's curvature ignored) and obtained distance parameters via the Internet and the take-off angle of the signal from W6EL's propagation program.  The calculations are as follows:

Figure 4.  Calculations of vertical velocity of Ionosphere in response to Solar Flare of 18AUG12

The estimated vertical velocity of the reflecting layer was ~ 250 km/hr for a 1 Hz shift or 750 km/hr (466 mph) for the maximum 3 Hz shift as seen in Figure 2.

If we assume the average speed was 104 m/s (corresponding to an average Doppler shift of 1.5 Hz) then the distance moved by the Ionosphere over a period of 45 seconds was  4.7 km which is small compared to the starting distance, h, of 217 km.  Thus h can be assumed constant.

Bottom line:  the Ionosphere moved vertically downward in response to the stimulus of the Solar Flare at an average speed of 500 km/hr (310 mph).

There is a nice discussion of the Doppler effect at Wikipedia and you can check my math since I've been retired for almost 20 years now and seldom use calculus any more.

Wednesday, August 15, 2012

cURL .. A New Command for FTP Upload

While playing with Puppy Linux I discovered a versatile command for uploading data with URL syntax.  Not only FTP uploading but a host of other things:

"curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other"

It was so easy and direct to use in Linux that I adopted it as my official FTP uploader.  It has been ported to Windows so I use it there also for all my grabber operations. It has so many features that there is even a web site just for this one command:  http://curl.haxx.se/  You can download cURL and it's associated files here and read the many help files on it's syntax and use.

If you are concerned just with FTP uploading there is probably no reason to use cURL instead of DOS commands but I wanted to learn it for future applications involving all those buzz words in the quoted text above.  Also, I flip back and forth between Windows and Linux and the syntax is the same in either OS.

Here's what the command line looks like in Spectrum Lab:

exec ("\SLuploader\curl -u username:password -T  \SLuploader\SL1.jpg ftp://ftp.qsl.net ")

The root folder SLuploader contains the curl command and it's associated files.  I send grabs from both of my grabbers to that folder and it sends them to the corresponding online grabber pages.

For comparison to FTP via DOS commands see my previous post Uploading Files Using DOS Commands .  As I said above, if you are happy with the DOS method there is no compelling reason to switch to cURL just for FTP uploads but I wanted to point it out because of it's many advanced features which may be useful in other applications.

de w4hbk