Tutorial WSPR reception band change with RTLSDR
RaspberryPi and dongle RTL-SDR V.3
- Install WSPRD on your RaspberryPI, for now ,I would recommend Raspian Wheezy
Tips (for Raspberry Pi)
-Use ferrite bead to limit the interference - Cut off the display (could help to reduce QRN) :
/opt/vc/bin/tvservice -o
Remove unused modules
/etc
sudo nano modules
#snd-bcm2835
- You create new text file in / home / pi of the RaspberryPi and paste this script into it.
_____________________________________________________________________________
#
# # # # Edit following variable with your correct data # # # #
call="put your call"
gain="-a 1"
locator="put your locator"
hz="14.0956M"
info_rx="Start reception 20 meters"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ##
sleep 1
pgrep rtlsdr_wsprd > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo $'\n'"---Kill rtlsdr_wsprd pid---" >> /home/pi/Desktop/wsprd
killall rtlsdr_wsprd &>> /home/pi/Desktop/wsprd
fi
echo $'\n'"$(date)" >> /home/pi/Desktop/wsprd
echo "$info_rx"$'\n' >> /home/pi/Desktop/wsprd
sleep 1
/home/pi/rtlsdr-wsprd/rtlsdr_wsprd -f "$hz" -c "$call" -l "$locator" "$gain" -d 2 &>> /home/pi/Desktop/wsprd &
______________________________________________________________________________
- You create other equal files by changing only the reception frequency and then make the files executable with chmod +x
- The script was created to put a log file on the Desktop of the Raspian operating system called wsprd. If you want to change the path, you change it in the script.
- Now you go to the terminal and type: sudo crontab -e
Here put the band change times
- ...meaning of the contab -e (reception band change times)
- 07:00/13:00 receive 20 meters
- 13:00/16:00 receive 30 meters
- 16:00/17:00 receive 20 meters
- 17:00/21:00 receive 30 meters
- 21:00/23:00 receive 40 meters
- 23:00/02:00 receive 80 meters
- 02:00/07:00 receive 40 meters
Open the terminal and write: ./20m and so the 20 meters script starts, at the set time the frequency changes automatically. After you can also close the terminal. To stop the WSPRD process you write:
killall rtlsdr_wsprd
Comments
Bo W4GHV since '54.
Comments on problems when I get it going.
Been wanting to do this with my Pi for a long time,
73, Bo W4GHV since '54
https://www.rtl-sdr.com/transmitting-fm-am-ssb-sstv-and-fsq-with-just-a-raspberry-pi/
pi@Pi3bPlus1:~/Downloads/rtlsdr-wsprd-master $ make
gcc -Wall -O3 -ffast-math -std=gnu99 -c rtlsdr_wsprd.c -o rtlsdr_wsprd.o
rtlsdr_wsprd.c:42:23: fatal error: curl/curl.h: No such file or directory
#include
^
compilation terminated.
Makefile:9: recipe for target 'rtlsdr_wsprd.o' failed
make: *** [rtlsdr_wsprd.o] Error 1
pi@Pi3bPlus1:~/Downloads/rtlsdr-wsprd-master $
Download WSPRD
Install dependencies & useful tools (ex. ntp for time synchronization) ex: sudo apt-get install build-essential cmake libfftw3-dev libusb-1.0-0-dev curl libcurl4-gnutls-dev ntp
Install rtlsdr library : https://github.com/steve-m/librtlsdr
Install rtlsdr-wsprd (this app) : https://github.com/Guenael/rtlsdr-wsprd
git clone https://github.com/Guenael/rtlsdr-wsprd
cd rtlsdr-wsprd
make
Start Listening
sudo ./rtlsdr_wsprd -f 14.0956M -c NOCALL -l AA00AA -a 1 -p 45
Replace NOCALL with your call sign, and AA00AA with your grid square.
If you get an error about already in use, run this, then the above
sudo rmmod dvb_usb_rtl28xxu rtl2832
------------------------------------------
"Rasberian to use with a Raspberry PI"
I noticed some disconnection problems with USB port while using Raspbian Jessie (2016-05-27-raspbian-jessie-lite.img). I rollbacked to Raspbian Wheezy (2015-02-16-raspbian-wheezy.img) and the problems solved by themself magically... For now, I have not investigated this issue, but if you experience some "Caught signal 11" error message, it could be this same problem. For now, I would recommend Raspbian Wheezy v2015-02-16.
/home/pi/rtlsdr-wsprd/rtlsdr_wsprd -f "$hz" -c "$call" -l "$locator" "$gain" &>> /home/pi/Desktop/wsprd &
Start reception 40 meters
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
ERROR: Failed to open rtlsdr device #0.
any idea ?
I think i have problem with WSPRD Skrip... my 20m script are not
goes executable.. chmod +x 20m ? do not work...73 Thomas
I want to give this a try since a long time.
Will start tomorrow, I hope.
Just one question: Start this automatically after the RAspi is powered on?
Or do I have to put a command in every time I want to use it?
73, Andy, DL1AKP