Hamradio Pi Tutorials
Hamradio Pi Tutorials
Summary:
Part 1: Presentation
1.1 Introduction P. 2
Since 2012, the Raspberry Pi nano computer has become an increasingly important part of the DIY
and "maker" community. The increase in power of the Raspberry Pi over the years offers very
interesting possibilities for radio amateurs. Indeed it allows not to permanently monopolize a PC in
the decoding of frames with software like WSJT-X, FLDIGI, etc..., without forgetting the possibility to
control the Raspberry Pi remotely and thus to be able to work outside the radio shack as I can
sometimes do on my couch. Moreover, this nano computer is now widely used in any Hotspot (DMR
or D-STAR).
I have often asked myself this question and I think it comes from the use of the operating system
(OS). When you power on a Raspberry PI, the OS, called Raspbian is stored on a microSD card.
This is a Linux distribution specially designed for the Raspberry.
When you want to install a software under Linux, it is no longer a matter of double clicking on a
downloaded file like "setup.exe" like under Windows. Indeed, it is often necessary to use the console
and thus type "command lines" to install or configure a program. This can seem off-putting and
frankly very tedious. We are so used to using a graphical environment that we feel like we are back
to the early 80's micro-computing.
However, the mastery of some basic commands in Linux console allows us to consider the
installation of different programs and hardware such as:
- WSJT-X
- FLDIGI
- QSSTV
- DIREWOLF (APRS)
- SDR receivers (rtl-sdr, Lime SDR, SDRplay, Airspy, etc.)
- GNU-RADIO
- ADS-B Décoding
- Programming
- Etc.
In the appendix on page 21, the main characteristics of the Raspberry Pi.
There are many kits containing the Raspberry PI with a case, an mSD card and a power supply from
resellers such as https://www.elektor.fr , https://www.kubii.fr/40-les-cartes-raspberry-pi or amazon
It will be necessary to pay attention to the choice of the power supply: 2 Amperes mini for a
Raspberry Pi 3 and 3 Amperes for the Raspberry Pi 4.
With your Computer, download the new Pi Imager operating system management utility for the
Raspberry PI. https://www.raspberrypi.org/downloads/
After downloading and installing, select the Raspbian with Raspberry Pi Desktop OS.
Insert the micro Sd card into a USB reader on the PC, select the SD card reader here
GENERIC USB Reader, then click on WRITE.
The Pi Imager utility will automatically download and copy the selected operating system to the mSd
card. The time of the operation depends on the Internet connection, you have to be patient.
Carry out the following wiring, ending with the 5V power supply of the Raspberry.
By default, the language at startup is English, a configuration window appears in order to configure
the user's country. (for me in French)
In many applications, it is necessary to know the IP address of your Raspberry PI connected to the
network, for example to connect remotely, to perform maintenance operations.
For the 1st power on, a screen is necessary. But once the Raspberry Pi is configured, there will be
no need for a screen, keyboard or mouse. The management will be done using your usual PC.
Method 1 :
Move the mouse to
the top right of the
screen on the blue
arrows without
clicking. The IP
address will appear
after 2 seconds.
Méthode 2 :
Open the LXTerminal
command prompt
using the desktop
icon
Or the keys
CTRL+Alt+t
simultaneously.
The ip address of my
RPI is 192.168.1.55
(Red frame)
Note :
Method 4 :
It is not necessarily necessary to have an additional monitor for the Raspberry PI. Most
of the time, especially for the command lines, I only use the console. For this, there is
only the power supply and the Ethernet cable connected to the Raspberry PI.
1.6.2 Putty
Download and install putty https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Login : pi
Password : raspberry
1.6.3 WinSCP
password: raspberry
To copy the files, simply move them with the mouse between the 2 PC and RPI
explorer windows. (The user directory of the RPI is /home/pi)
VNC is a system for visualizing and controlling the desktop environment of a remote computer. It
allows the VNC client software to transmit keyboard and mouse input information to the remote
computer with VNC server software across a computer
network.https://www.realvnc.com/fr/connect/download/viewer/
Download and install VncViewer
Puis taper :
sudo raspi-config
From the Advanced Option menu, select the resolution you want.
Redémarrer la Raspberry.
It's thanks to this utility (VNC viewer) that I work with WSJT-X installed in the RPI from the couch.
It is important to be familiar with the utilities that will allow you to control the Raspberry remotely.
In part 2, we will see how to install and use WSJT-X. In the appendix on page 19 some information
about the command lines.
Never turn off the RPI abruptly by coupling the power, always use the graphic menu or command
line.
sudo halt
After Chmod
You can press the up arrow at any time to avoid retyping the command.
The RPI console, as on most Unix systems, offers auto-completion, i.e. with the TAB key you can
complete what you type, this is very useful to navigate through the tree structure or to avoid typos!
Displays available memory Displays the available space on the disk in bytes.s
free df /
Displays connected USB devices
lsusb
Displays the ip address of the Raspberry PI
ifconfig
ip addr
Model GPIO Ethernet WIFI Bluetooth USB2 USB3 RAM CPU Clock
Summary:
2.1 Introduction P. 2
2.2 Backup mSD P. 2
2.3 Update repositories P. 4
2.4 Transceiver connection P. 5
2.4.1 RPI with an ICOM 7300
2.4.2 RPI with an Elecraft KX3
In this description, I tried to be as clear as possible with as many screenshots as possible. There are
different possibilities to install a software on a Linux environment. For each radio utility installed, I
chose what seems to me the easiest, limiting as much as possible the command lines for beginners.
As far as possible, I will try to keep this description up to date once a year, because the evolution of
the Raspberry and the operating system requires constant modifications.
Installation always takes some time. Before any modifications or additions of programs, remember to
save the mSD card so that you can go back very easily. Also think about the ferrite cores on the
connection cables around the Raspberry Pi.
Having more and more free Open Source Radio utilities is really in the Radio Amateur spirit. I hope
this document will make other OMs want to make detailed explanatory tutorials and not just a briefing
note listing incomplete command lines in GitHub or in a blog.
Take advantage of a break or lunch to make a backup of the operating system (This operation can be
done at any time)
- Insert a reader with its blank mSD card into a free USB port on the Raspberry PI.
The sudo apt update command updates the list of files available in the APT repositories present
in the configuration file /etc/apt/sources.list. Running this command regularly is a good practice, in
order to keep your list of available packages up to date and hope to have the latest software
versions. The same goes for the upgrade command to update obsolete packages.
Note: It is possible to copy-paste the sudo apt update command from this tutorial to Putty without
retyping it manually in the console.
- Select the command with the mouse, then right-click Copy or CTRL+C
- Back to Putty
- A simple right click with the mouse and the command appears.
- All you have to do is press the enter key on the keyboard to execute the command.
I can't mention all the possibilities of connection with TRX. I will only retain two cables, one with an
ICOM7300 and the other with an Elecraft KX3.
The TRX has a USB connector allowing its total management with a PC. The connection is made
with a simple USB cable type A-B. This is the easiest configuration. It is possible to insert a USB
Isolator (galvanic isolation) between the TRX and the Raspberry PI.
As the Raspberry PI does not have a sound input, you will need to add an external USB sound card
to connect the audio inputs/outputs of the TRX. It will also be necessary to connect the USB / RS232
cable reserved for the CAT-System.
I deliberately used a cheap sound card. But there are other more powerful models. It is also possible
to use a USB signalink style box instead of the USB sound card.
It is interesting to know the exact name of the USB devices you are using in order to configure the
radio software correctly.
- What happens when you connect a USB device to the Raspberry PI?
- Visually nothing at all (Except for USB memory sticks).
- So how do you know if the Raspberry PI has detected something?
- It's simple, use the lsusb command
lsusb
This command lists all USB devices connected to the Raspberry PI.
The ICOM 7300 transceiver is connected, we see the PCM2901 sound card internal to the TRX, the
CAT-System CP2102 interface and its HUB. (first 3 lines)
The inexpensive sound card CM108 and the CAT-System FT232 interface for the KX3 are
connected.
Usually the Raspberry PI already has the drivers for the most common devices. But some
transceivers (especially SDR) require specific drivers (not discussed here). You should then refer to
the manufacturer's website, or search with the VID (vendor identifier) and PID (product identifier).
Below example with the FT232:
VID PID
0403 6001
By default, the sound card control panel is not installed in the Raspberry PI.
sudo reboot
The last digit "1" (in red) corresponds to the jack 3.5 output, if you put in the place of the number "2",
it corresponds to the HDMI output.
Now connect a transceiver or a USB sound card to identify its reference with PulseAudio. Locating
the sound card is now easier with the USB device.
The control of a transceiver is mostly done via a serial link. The time of DB9 sockets being
over, USB / RS232 adapters are now used. In the Windows operating system, access to the
communication port is made by knowing the COM port number. On Linux, the following
command line must be used:
ls /dev/tty*
This command lists all tty devices and is also used for serial link.
The origin of the name tty comes from the English teletypewriter.
If the USB / RS232 cable reserved for the CAT-System is connected, a new line appears.
It is this name /dev/ttyUSB0 that you will have to use when configuring the software.
Always check the name of the device used to configure the CAT-System. Sometimes, depending on
the driver, the name may be /dev/ttyACM0.
The explanations of the basic concepts are now complete. Let's move on to the installation and
configuration of radio software.
When testing the RPI4 flrig can be found in the Internet menu. The amateur radio menu will appear
after fldigi installation.
Run Fldigi at the same time as flrig from the Amateur Radio menu
Enable flrig and the audio port in connection with the audio card on the USB port
2.9 Wsjt-x
cd Downloads
Go to the Downloads directory
For the latest version of wsjt-x, if the error "locale :: facet :: _ S_create_c_locale name not valid"
Go to the raspberry configuration from the command line (tutorial 4, page 5). Go to localization
option, then change locale add in addition to your language the line en_US.UTF8. Use the usual
language by default.
Note: If you download the file with a remote computer, it is possible to copy the file to the Raspberry
PI with WinSCP. (See part 1)
With the Chromium browser, go to the main page of jtdx https://www.jtdx.tech/en/, then download
jtdx-2.1.0-rc150_u_armhf.deb
cd Downloads
Go to the Downloads directory
cd Downloads
Go to the Downloads directory
cd Downloads
Go to the Downloads directory
As soon as you launch cqrlog, don't forget to create the database. Watch the
K0PIR cqrlog videos to activate the "remote" mode wsjt-x.
2.15 Gpredict
Start by updating the TLEs (Two-Line Elements: "Two-Line Orbital Parameters"), then change the
position of the station on the GROUND (preferences menu).
Summary:
3.1 Introduction P. 2
3.2 GQRX P. 3
In this last tutorial about Raspbian in graphical mode, I explain the installation procedure of common
software using the RTL-SDR receiver key. For several years, this famous key has not stopped
evolving. The latest version is the RTL-SDR V3.
https://gitlab.com/librespacefoundation/sdrmakerspace/sdreval/-/raw/master/Report/pdf/Evaluation_of_SDR_Boards-1.0.pdf
The internal structure shows the 2 main integrated circuits as well as two "switches" to switch
between HF and VHF/UHF band. In addition, the key now has a Bias T avoiding the need to use an
external power supply for a preamplifier.
Do not hesitate to consult the official website of the key and browse the different menus.
https://www.rtl-sdr.com/rtl-sdr-blog-v-3-dongles-user-guide/
Despite this, I never found this site very clear. Some explanations are well done and others are really
sloppy. There are a lot of videos with demonstrations of operation, showing the decoding of this or
that signal. At that time, we ask ourselves the following question:
"How do you install these programs in the computer or the Raspberry Pi? Then starts a real police
investigation in order to cross various sources of information to succeed in installing the programs.
3.2 GQRX
Gqrx is an open source SDR receiver software using GNU radio and the Qt graphical toolkit. There
are two possible command line installations with either LXTerminal or Putty:
sudo apt update
sudo apt upgrade
sudo apt install gqrx-sdr
In both cases, you will have to wait at least 20 minutes, because there are more than 500MB of files
to download and install.
Remove the rtl-sdr drivers that were set by default with gqrx-sdr and install the latest version of the
software manually from the command line with LXTerminal or Putty.
cd rtl-sdr
mkdir build
cd build
sudo ldconfig
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list into the nano editor
Save the file using the Ctrl + o keys, then Exit the editor using Ctrl + x.
the enter key to validate the recording.
sudo reboot
Verification: Plug the rtl-sdr key into a USB port on the Raspberry Pi.
With LXTerminal or Putty, type the following command line:
lsusb
With LXTerminal or Putty, type the following command line : (be careful, underscore key)
rtl_test
The rtl-sdr key should be recognized, if not, disconnect and reconnect the key and restart the test.
Exit the program by pressing the Ctrl key and the c key (Ctrl+c) at the same time.
If rtl_test displays this message over and over again , reinstall the
program using the manual method.
Calculation optimization:
The program volk_profile creates a profile to calculate the FFT (*) optimized for the system on
which it runs. This will take some time (20 minutes), but will improve graphics performance. With
LXTerminal or Putty, type the following command line: (beware underscore key)
sudo volk_profile
After connecting PC speakers to the 3.5 jack on the Raspberry PI, run the GQRX program. Select the
rtl-sdr key. Note the link between rtl=0 and the test performed with rtl_test.
In case of use with an external sound card, select Audio Output from the DEVICE drop-down menu.
If however the sound is very jerky, lower the screen resolution and avoid using VNC Viewer which
takes a lot of processor resources.
➔ Menu Preferences, RPI configuration, Display, set resolution.
rtl=0,direct_samp=2
After use, the Device drop-down menu automatically
switches to Other.
Remember to disable the CAT system if you haven't already done so:
Decoding is immediate. A good way to use the Raspberry PI for listening without hogging a PC.
GNU Radio is a software suite dedicated to the implementation of sdr radios. The signal processing
is done with GNU companion using blocks in a graphical way.
Execute the GNU companion program located in the Radio amateur menu. There is a lot of video on
Youtube
After saving the file, run the script by clicking on the arrow (1). An error message is displayed (2).
Ignore it
Watch also the videos of David Haworth WA9ONY and especially the introduction of the rtl-sdr key
with GNU Radio : (RTL SDR Raspberry Pi 4 GNU Radio Tutorial 1)
https://github.com/luigifcruz/pisdr-image
Download the file 2020-03-08-PiSDR-vanilla.img.xz by clicking on download latest
Image.
Insert the micro Sd card into a USB reader on the PC, select the SD card reader here GENERIC
USB Reader, then click on WRITE.
In case of difficulty to copy the disk image, use the etcher utility, based on the same principle as Pi
Imager.
https://www.balena.io/etcher/
aplay /usr/share/sounds/alsa/Noise.wav
Normally, sound should be present on the 3.5 jack output. Then stop the Raspberry Pi
sudo halt
Turn off the power while you reconnect the HDMI cable. Turn the Raspberry Pi back on using the
keyboard and mouse.
In the list, the SDRAngel software deserves special attention. Feel free to take the software in hand
with the help of a vidéo or other internet resource. Fldigi and WSJT-X is not present in the list, you
will just have to add these programs as explained in part 2.
https://www.surviveuk.com/wp-content/uploads/2016/07/The-Hobbyists-Guide-To-RTL-SDR-Carl-Laufer.pdf
Next part: Using the Raspbian Lite operating system without GUI. Command lines will be more
important.
Summary:
4.1 Introduction P. 2
4.3 Power on P. 4
Version du 5/09/2020
- As described in the first 3 tutorials, the Raspberry PI is connected directly to a transceiver. Using
VNC viewer, I control the Raspberry remotely. This allows me to perform QSO in digital mode in a
remote way, elsewhere than in the radio shack.
In the 2nd situation, the permanent use of an HDMI monitor has no interest, since the management
of the Raspberry PI will be done systematically on the command line via putty or, depending on the
application used, via an administration WEB page hosted in the mSd card.
As a result, there is a "light" version of Raspbian that does not manage the graphical desktop
environment (all installation and configuration is done on the command line). This has the advantage
of not monopolizing processor resources for the management of the graphic desktop and saving the
electrical energy of the nano computer.
Some developers such as MW0MWZ with pistar, (DMR hotspot management) have the excellent
idea of offering a "picture" ready to use with the operating system and all the software already
installed. The user only has to use a copy software like etcher, without having to perform all the
tedious tasks of a complete installation.
However, not all applications using RPI are ready to use in a disk image. A large majority of
applications require manual installation with the prerequisite of having a Raspbian operating system
already installed and configured in the correct language.
This document will explain how to install and configure Raspbian with no Desktop environment and
remind the remote connection procedure with putty. Not forgetting the procedure to save the mSd
card.
With your Computer, download the new Pi Imager operating system management utility for the
Raspberry PI. https://www.raspberrypi.org/downloads/
After downloading and installing, select the Raspbian OS with no Desktop environment
Insert the micro Sd card into a USB reader on the PC, select the SD card reader here GENERIC
USB Reader, then click on WRITE.
The Pi Imager utility will automatically download and copy the selected operating system to the mSd
card. The time of the operation depends on the Internet connection, you have to be patient.
4.3 Power on
Carry out the following wiring, ending with the 5V power supply of the Raspberry.
It will be necessary to configure your own country, the language with the right character set, the
keyboard, activate the SSh, and possibly configure the wifi. (here for french setup)
Start by selecting menu 4: Location Options. (Down arrow, then enter key)
Find the line in_GB.UTF-8 UTF-8 with the down arrow or pageDown key, uncheck it by pressing the
space bar.
Find the line fr_EN.UTF-8 UTF-8 with the arrow at the bottom of the keyboard, check it by pressing
the space bar. (Appearance of a small star), then press enter.
Select fr_EN.UTF-8 UTF-8, then press enter to return to the main menu.
In case of false manipulation, press the tab key on the keyboard, this allows you to scan the different
elements of the window and thus easily access <ok> and <Cancel>.
Select Menu 4: Localization Options again. (down arrow, then press enter)
Select menu I1: Local Change (down arrow, then enter key)
Select Paris (pressing the letter P on the keyboard goes faster) as time zone (then enter key)
Select menu 4: Location Options again. (down arrow, then enter key)
Select English again, and confirm the following steps with the enter key:
Note: When using sensors or actuators connected directly to the 40-pin GPIO interface, you often
have to return to this menu to activate the communication BUS for the project. This can be for
example a mini weather station using a BME280 sensor, or simply the camera on its dedicated
connector.
Back to the main menu, select again menu 2: Network Options, then Wi-fi,
It is necessary to know the name of your access point (ADSL Box), its password precisely and with
the character
The console appears and asks you to enter the login and password.
To change the default password, simply go to menu 1 of raspi-config (Change User Password).
On the PC, open the command prompt, type the ping command followed by the
domain name chosen on page 13.
With the Raspberry Pi, display the IP address with the ifconfig command. The IP
address must match (e.g. 192.168.1.145).
PC Raspberry Pi
Note :
Login : pi
Password : raspberry
The sudo apt-get update command updates the list of files available in the APT repositories
present in the configuration file /etc/apt/sources.list. Running this command regularly is a good
practice, in order to keep your list of available packages up to date and hope to have the latest
software versions. The same goes for the upgrade command to update obsolete packages in the
Rasberry Pi.
sudo apt update
sudo apt upgrade
Execute this command in Putty
Start by installing the git utility for retrieving computer projects on github
- Insert a reader with its blank mSD card into a free USB port on the Raspberry PI.
Next part: Recall some elementary commands in the console, then decode a WSPR signal with an
rtl-sdr key without using WSJT-X.
Summary:
5.1 Introduction P. 2
The objective of this tutorial is to be able to get by with a minimum of Linux command lines, i.e. :
These commands will be seen through concrete examples. This can serve as a basis for the
following, the interest being not to feel helpless when installing projects around the rtl-sdr receiver
key.
All the following manipulations will be done in SSh connection with PuTTY. No more need for HDMI
screen or keyboard/mouse.
When we talk about tree structure, we are talking about hierarchy and the way files and directories
are organized on an operating system. The organization of folders on a computer is often compared
to a tree. The base of your tree is what is called the "root".
For example, on Windows, the root is often "C:\" which corresponds to the hard drive "C".
On Linux, the root is "/". A sequence of files starting with "/" starts from the base of your tree
structure.
When installing Raspbian, the user pi is the default login. It is always located in home. This allows you to
create other users.
Unix commands are a word or a phrase that indicates a sequence of commands to execute on the
computer, they consist of a name, can take one or more options and parameters.
pwd displays the path to the directory where the user is located. Its name in English means "print
working directory". This command is very useful when you don't know which directory you are in.
pwd
ls
Nevertheless this command lists the files in my current directory without any additional information,
so I need to give it an option to fix this problem. I will give it the "-l" option (Lima hyphen). Note that all
options in all commands always start with a '-'.
ls -l
cd documents
Note :
In the command line, you must use the auto-completion with the TAB key to the maximum. In the
example below, the goal is to move in the documents directory.
pwd
documents
/home/pi/documents
To go back, always use the command cd, space key, point point.
cd ..
cd images
cd ../documents
cd /home/pi/documents
We will now create a text file in the documents directory with the nano utility.
Nano is a basic text editor that allows you to edit plain text files, without formatting (bold, italic,
underline...). Under Windows, an identical text editor is available, the Notepad.
nano essai.txt
ls -l
mv (in reference to the term move) allows you to move files and directories. It also allows to rename a
file or a directory.
I want to move the essai.txt file to the /home/pi directory using the absolute path.
To go back to the base directory "/home/pi", always use the command cd, space key, point point.
cd ..
OR
cd /home/pi
Or go back to the default directory
cd ~
rm -r documents
rm -r images
Note: the dash -r option is mandatory for a directory. For a file there is no need for a dash -r. The file
essai.txt is used for the rest and will be deleted later.
On a Linux system, every file and folder have an owner and rights. Users are grouped into 3 groups:
Owner (u), group (g) and other users (o). These groups make it possible to give different rights to each
user. The different rights that can be granted are: read (r, 4), write (w, 2) and execute (x, 1).
.
Les différents droits
File Directory
Read See the content List content
Write Modify the content Add or delete an item
Execute Execute Getting through
The file essai.txt is in read and write access for its owner, i.e. the user whose login is pi. On the other
hand, the file is read-only for the group and the other users.
The modification of the rights of a file or a directory is done in two ways: Absolute or relative.
Example of relative change: (we add "+" execute rights to the owner)
Note: It often happens that a file is downloaded and cannot be executed because it does not have
the necessary rights. The chmod command solves the problem.
rm essai.txt
Exercise: From the table below, give the associated linux commands in order to modify the rights of
the .txt file.
On the Raspberry Pi, when the user uses the "pi" login, he only has access to the /home/pi directory
and the subdirectories he created himself. The user pi does not have access to other directories (for
example /bin, /boot, etc...).
To modify files for example in the /bin directory or to install new programs, the user "pi" will have to
enter the sudo command systematically. sudo (abbreviation of substitute user do) is a command
allowing a user to run a command as an administrator.
However, it is possible to switch to super user mode easily and there will be no need to type the sudo
command systematically.
sudo su
exit
Warning: In super user mode, you really need to know what you are doing. A file modification or
deletion is irreversible.
cd rtl-sdr
mkdir build
cd build
sudo ldconfig
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list in the nano editor. Reminder right click: to paste the text in the nano
editor.
Save the file using the Ctrl + o keys, then the Exit the editor using Ctrl + x.
enter key to validate the recording.
sudo reboot
Verification: Plug the rtl-sdr key into a USB port on the Raspberry Pi. Connect the rtl-sdr key to the
Raspberry Pi on a free USB port.
lsusb
Raspberry Pi 3 :
Raspberry Pi 4 :
With LXTerminal or Putty, type the following command line : (be careful, underscore key)
rtl_test
The rtl-sdr key should be recognized, if not, disconnect and reconnect the key and restart the test.
Exit the program by pressing the Ctrl key and the c key simultaneously (Ctrl+c)
If rtl_test displays this message repeatedly, reinstall the program
using the manual method.
The objective is to decode the frames received in WSPR over 40 meters and to transfer them to the
WSPR server, without using the WSJT-X software.
It's better to copy and paste than to retype everything. (See part 2, page 4)
cd rtlsdr-wsprd
ls
./rtlsdr_wsprd
Usual frequencies :
You have to pass parameters to the program in order to run it with a callsign
Example for the 40 meters band, frequency 7.0386MHz, callsign f4goh, locator jn07dv, gain 29 db,
frequency offset 10 hertz, direct sampling for HF (-d 2) Q input.
Résultat :
cd rtl_433/
mkdir build
cd build
cmake ../
make
Connect a VHF/UHF antenna to the rtl-sdr key and run the program. (beware underscore key)
rtl_433
Here are some weather stations in my neighborhood.
Next: https://github.com/projecthorus/radiosonde_auto_rx/wiki
Summary:
Part 6: OpenwebRX.
6.1 Introduction P. 2
Version du 22/05/2021 V3
The objective of this tutorial is to install in his radio shack, the openwebRX software in order to create
his own SDR web.
When you are on the move, you just have to connect to your laptop at home to listen to the desired
frequency band using your own antennas.
OpenwebRX is a solution for remote spectrum monitoring and has AM / FM / SSB / CW / BPSK31
demodulators. It uses a lightweight signal processing (DSP) library called libcsdr. The spectrum
display is like any waterfall radio software; however, the display can also be viewed in 3D.
Since the upload speed of a private Internet connection is relatively low, care should be taken to
ensure that there are not too many people connected to the same server.
The project initially created by Andras, HA7ILM was taken over by Jakob DD5JFK. Jakob had the
good idea to propose a ready to use Raspberry Pi image.
Unzip the file, then use https://www.balena.io/etcher to copy the image to an mSD card.
Use tutorial 4 to configure the keyboard in your language and enable the ssh connection more
convenient to configure openwebrx with the Putty utility.
ping openwebrx
With Putty, establish an SSh connection with the Raspberry. Please note that the SSh connection
must be enabled as explained in tutorial 4.
A minimum of 2 commands must be entered to create a user. Replace the username with your
callsign. (I used a simple password for the tests: toto)
In the URL bar of firefox enter the following address https://openwebrx/ or openwebrx :8073
- Code ;
- Location ;
- Altitude ;
- Geographical position ;
The rtl-sdr key is well detected. There are two default profiles, one in UHF and one in VHF. Click on
the link RTL-SDR USB Stick
Select the Q branch option for HF, then save the configuration.
It is possible to decode in real time different digital modes such as FT8 and to have the mapping of
the locators.
In the Spotting and reporting menu, it is possible to activate the reporting of stations in APRS, PSK
and WSPR.
The openwebRX software is much more powerful with a RaspberryPI 4. The new version of
openwebRX from DD5JFK is exceptional and very well done. Unfortunately, the documentation
provided by Jacob is not as good and lacks a lot of explanations.
To access the Raspberry Pi from outside your QRA, you need to set up the ADSL box or the fiber so
that it directs the connection request to the Raspberry PI on the local network. Not having at my
disposal all the boxes of the different Internet service providers, I will only detail the configuration of
the Orange LiveBox. For the other providers, it will be necessary to do an Internet research on port
forwarding and domain name configuration.
- Perform a port forwarding (8073) to the Raspberry PI with the IP address 192.168.1.145 for my
case.
- Get a free domain name so that I don't remember by heart the IP address provided by the service
provider.
In the advanced settings, network menu, then NAT/PAT, add a new port forwarding to the Raspberry
PI on port 8073.
Back in the advanced settings, network menu, then DynDNS, enter the domain name previously
chosen with the email account used for registration and its password.
It is now possible to connect to openWebRX with the following address from outside the QRA:
Summary:
7.4 Troubleshooting P. 10
This tutorial only comments on the user manual or the existing wiki with additional
screenshots.
Version 5/09/2020 V1.0
The NOAA (National Oceanic and Atmospheric Administration) satellites have been in orbit for a long
time. They emit continuous weather images on 137Mhz. Currently there are 3 (NOAA15,18 and 19),
they have been joined by a Russian satellite Meteor-M2 which broadcasts color images.
The advantage of using a Raspberry Pi to receive weather images is obvious, we have no regrets
about leaving it on 24 hours a day. Its software automatically updates the orbital parameters of the
satellites (TLE: "Two-Line Elements") and manages the reception and decoding of the images.
Moreover, r2could also decodes the telemetry of cubesats. As soon as a new cubesat is in service,
the update is automatic.
For aerials, the use of a dual-band antenna is enough to start. But if you want to get the best possible
reception, a 137 Mhz four-wire QFH antenna is easy to build.
On the hardware side, a Raspebrry Pi and an rtl-sdr key are sufficient. No monitor or keyboard
connected to the Raspberry PI is required, even for commissioning.
https://github.com/dernasherbrezon/r2cloud
From the link above, download the file image_2020-03-21-r2cloud-lite.zip and choose the easy
installation mode.
Download and install the utility and check to copy the image to an mSD card.
https://www.balena.io/etcher/
In the explorer, make sure that you can see the file extensions by following steps 1 to 5 (box 4
unchecked).
Open the r2could.txt file and indicate his login. To make it simple, use his callsign. Don't forget to
save the file.
Insert the mSd card into the Raspebrry Pi, then turn on the power with the rtl-sdr key connected:
Reminder: To know the IP address of the Raspberry Pi, please refer to the tutorial Part 1.
Enter the previously chosen login Enter its longitude and Accept automatic updates.
in the text file. Also enter an email latitude coordinates.
and a password. (Coordinates in decimal
degrees)
In the Configuration menu, General, check the accuracy of the geographic coordinates of the
receiving site.
In the TLE menu, the update is not done yet. You will have to wait several hours.
In the Observations menu, click on the date of the concerned satellite (if data have been received,
the line appears in green color).
The color images of the meteor satellite are distorted on the sides. This is normal, but the
SmoothMeteor program can straighten these images.
If after 48 hours no image is received, the antenna and the connectivity between the rtl-sdr key and
the Raspberry Pi must be checked.
The ssh connection with the Putty utility and the Raspberry PI is not possible. It will be necessary to
connect a monitor and a keyboard on the Raspberry Pi.
Raspberrypi login : pi
Password : raspberry
rtl_test
Like r2could for satellites, the radiosonde auto rx software allows to receive and display on a map the
position of weather radiosondes sent regularly.
https://github.com/projecthorus/radiosonde_auto_rx/wiki
There is no ready-to-use image file. To install the radiosonde auto rx software, you will need to
prepare an mSD card with "Raspbian Lite" and install the rtl-sdr libraries.
- HAM Radio with the Raspberry Pi Part 4 (Complete installation except the backup of the mSd
card which can be done later);
- HAM Radio with Raspberry Pi Part 5.6 Installation of the RTL-SDR key as summarized in the
following commands:
Updating repositories and software: (it is recommended to use the PuTTY utility)
You will find the installation of the rtl-sdr radio receiver key as in part 5.6 of the tutorial.
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list into the nano editor. Right click reminder: to paste the text in the nano
editor.
Save the file using the Ctrl + o keys, then the Exit the editor using Ctrl + x.
enter key to validate the recording.
sudo reboot
Verification: Plug the rtl-sdr key into a USB port on the Raspberry Pi. Connect the rtl-sdr key to the
Raspberry Pi on a free USB port.
lsusb
Raspberry Pi 3 :
Raspberry Pi 4 :
With LXTerminal or Putty, type the following command line: (be careful, underscore key)
rtl_test
The rtl-sdr key should be recognized, if not, disconnect and reconnect the key and restart the test.
ls
Don't forget the tab key TAB. The reflex for typing the 2
command lines without copying and pasting in PuTTY must be:
cd ra TAB a TAB ./b TAB
cd radiosonde_auto_rx/auto_rx
./build.sh
https://github.com/projecthorus/radiosonde_auto_rx/wiki/Configuration-Settings
Run the program with python. (Make sure to run the program from the radiosonde_auto_rx/auto_rx
directory)
python auto_rx.py
Once the program radiosonde auto rx is executed, open with a browser the web page with the IP
address of the Raspberry PI on port 5000.
http://tracker.habhub.org/
Your station should be listed. This site also indicates the presence of probe balloons and the
possibility for your station to decode them.
cd ~/radiosonde_auto_rx/auto_rx/
sudo reboot
Once the program radiosonde auto rx is executed, open with a browser the web page with the IP
address of the Raspberry PI on port 5000.
To remove "auto rx radiosonde" on startup of the Raspberry PI, perform the following command and
then restart.
sudo rm /etc/systemd/system/auto_rx.service
To be continued:
Flight tracking of ADS-B aircraft: https://flightaware.com/adsb/piaware/build
Summary:
Appendix P. 13
HamPi 1.x is a Raspbian distribution containing more than 100 preinstalled software created by Dave
Slotter, W3DJS. The list of preinstalled software is in the appendix on page 9.
The organization of the menu containing the software is very well done.
https://github.com/dslotter/HamPi
https://sourceforge.net/projects/hampi/
HamPi_vx.x.img.xz
To make downloading easier, use Free Download Manager utility. This will resume the download in
case of interruption. After clicking on the icon, paste the URL of the file to download.
https://www.balena.io/etcher/
Select the file HamPi_vx.x.img.xz, the player of the mSD card, then click on Flash.
It will take a good quarter of an hour for the writing and verification to be completed.
As soon as the power is turned on, the country and language must be configured as explained in part
1.
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list into the nano editor
Save the file using the Ctrl + o keys, then Exit the editor using Ctrl + x.
the enter key to validate the recording.
sudo reboot
Verification: Plug the rtl-sdr key into a USB port on the Raspberry Pi.
With LXTerminal or Putty, type the following command line :
lsusb
Cas de la Raspberry Pi 4 :
With LXTerminal or Putty, type the following command line : (be careful, underscore)
rtl_test
The rtl-sdr key should be recognized, if not, disconnect and reconnect the key and restart the test.
But the sound did not work on the 3.5 jack output.
I don't have time to test all the software. Each OM will have to carry out its own tests.
There is a help page on GitHub (registration required) where you can ask questions and a group of
Raspberry Pi users around the radio.
https://github.com/dslotter/HamPi/issues
https://groups.io/g/RaspberryPi-4-HamRadio/
From the https://radiopi.club/ website, download the back version of the image.
To copy the image to an mSD card, use the same procedure as for HamPi (page 4 of the same
document) with the Etcher utility.
Start by configuring the country and keyboard by going to the "RaspberryPi configuration" menu.
APRS Applications
Xastir - APRS GUI client / Digipeater / Igate
YAAC - Yet Another APRS Client
DireWolf - Software "soundcard" AX.25 packet modem/TNC and APRS encoder/decoder
aprsdigi - digipeater for APRS
aprx - APRS Digipeater and iGate
soundmodem - Sound Card Amateur Packet Radio Modems
FLDigi Application Suite from W1HKJ
flrig - Rig Control program which interfaces with fldigi
fldigi - Digital Modes Communications
flaa - RigExpert Antenna Analyzer Control Program
flamp - File transmissions via Amateur Multicast Protocol
flarq - ARQ data transfer utility for fldigi
flcluster - Telnet client to remote DX Cluster Servers
fllog - Logbook application which can use same data file as fldigi
flmsg - Editor for ICS 213 Forms
flnet - Net Control Assistant for Net Activities (Check-In Application)
flpost - NBEMs post office
flwrap - File encapsulation and compression for transmission over amateur radio
flwkey - Winkeyer (or clone) control program for K1EL Winkeyer series
Logging Applications
TrustedQSL - LotW client
CQRlog - Ham Radio Logging Application
PyQSO - Logging software (written in Python)
klog - The Ham Radio Logging program
tlf - console based ham radio contest logger
tucnak2 - VHF/UHF/SHF Hamradio contest log version 2
twlog - basic logging program for ham radio
upload_adif_log – Upload only new log entries to LotW, eQSL.cc and ClubLog
wsjtx_to_n3fjp - Logging adapter to allow WSJT-X to log to N3FJP
xlog - GTK+ Logging program for Hamradio Operators
WinLink Applications
Pat WinLink - WinLink for Raspberry Pi (and other platforms)
ARDOP support for Pat WinLink
ARDOP-GUI - Provides graphical representation of ARDOP connections
Find ARDOP - Retrieves local ARDOP sources by KM4ACK
Pat Menu 2 – Menu for Pat by KM4ACK
PMON - a PACTOR® Monitoring Utility for Linux
Summary:
Prerequisites: Part 4, Using the Raspbian Lite operating system without GUI.
9.1 Introduction P. 2
9.5 Conclusion P 27
Version du 10/10/2020 V1.0
In this tutorial, the aim is to implement a test bench to receive the radio frequency signals emitted by
the Raspberry PI. Indeed, it has a specific output (GPIO 4) that can be used directly on an antenna.
The Raspberry Pi can manage frequencies from 5 KHz to 1500 MHz.
The software suite managing the Raspberry PI internal RF transmitter called rpitx, is designed by
Evariste Courjaud F5OEO.
Thus, the Raspberry Pi will be able to directly transmit a carrier, and various signals such as :
- A signal FM, SSB, code OOK ;
- An SSTV image, an OPERA signal, FT8;
- Etc...
However, to receive signals from the Raspberry PI, you will also need to set up a listening station.
This one will be composed of a PC and an rtl-sdr key, without forgetting the installation of a reception
software (a YouTube video is proposed for each SDR reception program).
Raspberry Pi transmitter with the software suite The receiving part will be a PC with the rtl-sdr
Rpitx. key and one of the 5 receiving softwares (*).
(*) It is possible to use a 2nd Raspberry PI with the GQRX software as explained in part 3: Standard
use of the RTL-SDR key.
There are many PC reception software programs that use the rtl-sdr key. I can't list them all, but I'll
go back to the installation of 5 of them. Most OMs that regularly use SDR reception have their
preferred software. But those who have never installed and used SDR software can at least make a
choice. The description above explains the installation of the software under Windows. I don't detail
the in-depth use of the 5 software.
The common point of the 5 softwares is the specific driver for the rtl-sdr key.
Go to https://zadig.akeo.ie/, then download the Zadig 2.5.exe file (4.9 MB)
Connect the rtl-sdr key to a USB port on the PC. Make sure to always use the same USB port for the
rtl-sdr key. Run the file , select Bulk-in, (Interface 0), then Install Driver.
Hdsdr is certainly the best-known software. It is very easy to install. An installation guide is available
(How-to).
Select the rtl-sdr key in the list, then start listening by clicking on the triangle (play).
When running the installer (setup), the Visual C++ Redistributable libraries may not be installed. In
this case accept this additional installation.
Help for configuring the rtl-sdr key can be found in the Radio RTL Dongles menu.
https://www.sdr-radio.com/rtl-dongles
Then download the file ExtIO_RTL2832.dll the same file as for Hdsdr.
http://hdsdr.de/download/ExtIO/ExtIO_RTL2832.dll
Execute the SDRuno (Extio) file, installed on the hard disk. (Search when you don't know where the
program was installed). Note that there is a manual in pdf (SDRuno User manual) and it is the only
manual installed with the program among the 5 softwares presented here.
Check that the ExtIO_RTL2832.dll file is correctly taken into account so that the software can
access the rtl-sdr key.
The SP1, SP2 and RX buttons display the 3 windows to set the frequency and reception mode.
Run Installer
Once the program is launched, select the menu with the arrows and choose the rtl-sdr
key. Then click on the triangle.
I am not a specialist of this software. To tell the truth, I don't really know how to use it. The F4EXB
author has made a wiki. Maybe an internet search on Youtube will also help you.
As F5OEO indicates in its project, Raspbian Lite must be used. To do so, please refer to part 4 of
my tutorials. The installation of command line rpitx does not pose any problem.
Allow 3 to 5 minutes to download the dependencies (depending on the speed rate) and install for a
Raspberry Pi 3.
You have to accept the modification of the /boot/config.txt file, otherwise rpitx will be unstable when
tx.
I was able to test rpitx on an RPI3 without any problem. You will have to restart the Raspberry Pi
before any use.
sudo reboot
F5OEO had the great idea to add a quick test menu called ./easytest.sh in its software suite.
The first very classical test is to transmit a carrier and to check in the windows of the SDR software
the good reception of the signal.
Chirp mode, the carrier moves sinusoidally and the harmonics also.
pi@raspberrypi:~/rpitx $ ./foxhunt
usage : foxhunt frequency(Hz) frequency shift(Hz)
pi@raspberrypi:~/rpitx $ sudo ./foxhunt 434000000 500
^CCaught signal - Terminating 2 ->touches CTRL+C
pi@raspberrypi:~/rpitx $
On-off keying is an 1-or-0 transmission used in home automation systems such as garage door
control.
pi@raspberrypi:~/rpitx $ ./sendook -h
sendook : a program to send On-Off-Keying with a Raspberry PI.
usage : sendook [options] "binary code"
Options:
-h : this help
-v : verbose (-vv : more verbose)
-d : dry run : do not send anything
-f freq : frequency in Hz (default : 433.92MHz)
-0 nb : duration in microsecond of 0 bit (by default : 500us). Use integer only.
-1 nb : duration in microsecond of 1 bit (by default : 250us)
-r nb : repeat nb times the message (default : 3)
-p nb : pause between each message (default : 1000us=1ms)
"binary code":
a serie of 0 or 1 char (space allowed and ignored)
Examples:
sendook -f 868.3M -0 500 -1 250 -r 3 1010101001010101
send 0xaa55 three times (with the default pause of 1ms) on 868.3MHz. A 0 is a gap of
500us, a 1 is a pulse of 250us
pi@raspberrypi:~/rpitx $
It is not necessary to specify the frequency. By default, the reception frequency of cheap modules is 433.92 MHz. That's
good, the result displayed with the oscilloscope corresponds perfectly to the data in console.
Link of the rtl-sdr web page specifying the page of the forum proposing the file
ExtIO_RTLSDR_u8.dll
https://www.rtl-sdr.com/forum/download/file.php?id=926
ExtIO_RTLSDR_u8.dll
et
rtlsdr.dll
To decode the FT8 transmission, a "virtual audio bridge" (Virtual audio cable) will have to be
installed.
An explanation can be found on the leradioscope.fr site, or YouTube video
It is the same for the decoding of an SSTV image (MMSSTV installation help).
Objective: A Pocket PC in FM broadcasts on 145.525 Mhz. Rpitx equipped with an rtl-sdr key
receives the transmission and copies the signal in Fm or SSB on 14.100Mhz.
To access the transponder function, just use the following specific script.
pi@raspberrypi:~/rpitx $ ./rtlmenu.sh
9.5 Conclusion
The rpitx project is very interesting and will allow to understand and experiment with different data
transmissions without spending anything. This project also allowed me to make a synthesis of SDR
software installation under Windows to have a quick guide when I will have forgotten everything in 6
months. If an amplifier is used, it will be necessary to think about the low-pass filter to eliminate the
harmonics generated by the RF output of the Raspberry.
Summary:
10.3.1 Sdrsharp P. 7
10.3.2 Sdr console P. 10
10.3.3 Hdsdr P. 12
10.3.4 Sdruno P. 14
10.5.1 Sdrsharp P. 19
10.5.2 Sdr console P. 20
10.7 Conclusion P 21
Version du 31/10/2020 V1.0 on RPI3
In this tutorial, the idea is to implement a Raspberry Pi as a server for remote listening on a PC.
Unlike the tutorial 6 on OpenWebRX, the client (PC) uses one of the 4 softwares (Hdsdr, Sdrsharp,
Sdr console, Sdruno). The advantage is that the listening will be much more fluid than with
OpenWebRX, while having all the features of the SDR reception software. The communication
between the client and the server will be done in TCP/IP.
Of course, it is possible to have a connection between the server and the client via the Internet. In
this case it will be necessary to configure the ADSL BOX as described in tutorial 6.8: Accessing the
web SDR from outside the QRA.
This time, I used the two following links to install drivers for the RTL-SDR V3 key. This version has
improvements compared to the driver described in tutorial 3.
https://www.rtl-sdr.com/rtl-sdr-blog-v-3-dongles-user-guide/
https://github.com/rtlsdrblog/rtl-sdr-blog
Use Raspbian Lite without GUI. Remember to execute these commands if it is not already done.
cd rtl-sdr-blog/
mkdir build
cd build
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list into the nano editor. Reminder right click : to paste the text in the nano
editor.
Save the file using the Ctrl + o keys, then the Exit the editor using Ctrl + x.
enter key to validate the recording.
sudo reboot
Check the presence of the rtl-sdr key. With LXTerminal or Putty, type the following command line:
lsusb
Raspberry Pi 3 :
Raspberry Pi 4 :
With LXTerminal or Putty, type the following command line : (be careful, underscore key)
rtl_test
The rtl-sdr key should be recognized, if not, disconnect and reconnect the key and restart the test.
Exit the program by pressing the Ctrl key and the c key at the same time. (Ctrl+c)
10.3.1 Sdrsharp
Install the Sdrsharp software described in tutorial 9.2.3, page 7. This time the RTL_SDR receiver key
is connected to the Raspberry pi. The goal is to access it via the local network. It is used in two steps:
ifconfig
This command with a "dummy" option allows you to obtain all possible server configurations related
to the Rtl-sdr key.
rtl_tcp -h
Execute the following command, making sure to replace the IP address of the
Raspberry Pi with your own.
rtl_tcp -a 192.168.1.55
Run the Sdrsharp software and perform the following 4 steps in order.
Run the following command on the RPI server (direct conversion mode), making sure
to replace the Raspberry Pi IP address with your own.
rtl_tcp -a 192.168.1.55 -D
Run the following command on the RPI server, making sure to replace the IP address of the
Raspberry Pi with your own.
rtl_tcp -a 192.168.1.55
Click Start to start listening. The procedure is identical for a listening in HF with the option -D
Stop listening by pressing Stop [F2], then enter the correct IP address in SDR Device [F8]. Once
configured press Start [F2].
10.3.4 Sdruno
Check that the ExtIO_RTL_TCP.dll file is correctly taken into account so that the software can
access the rtl-sdr key.
To date I have not been able to use rtl_tcp with SDRuno in HF reception (direct sampling mode).
Spyserver works a little bit like rtl_tcp, but with the addition of the ability to share your listening
station. This one appears on the world map. All you have to do is copy the IP address and port into
your favorite SDR software and listen to it.
With the Putty utility, type these commands in the following order:
mkdir spyserver
cd spyserver/
wget -O spyserver.tgz http://airspy.com/?ddownload=4247
ls
./spyserver
10.5.1 Sdrsharp
Run , then configure the source (Spy Server Network) and IP address
In this configuration the listening is on the local network. To be able to access from the Internet it is
necessary to configure the ADSL BOX.
The configuration is identical to the tutorial 6.8: Accessing the web SDR from outside the QRA.
On the world map, my station appears, the "ready" icon is in green, it is possible to access my station
by copying the IP address and the port :
10.7 Conclusion
SDR reception sharing is very easy to achieve with a Raspberry pi. This will be able to render many
services in various test situations. I thank Ladislav OK1UNL for giving me the idea of this tutorial.
Linux users will be able to use GQRX as a client for the server.
Summary:
11.11 Conclusion P 15
The objective is to be able to perform a remote QSO with a classic mobile TRX located at the QRA
via a local network or the Internet in a private setting. This low-cost solution only requires a modified
sound card located between the Rapsberry Pi and the TRX and the pre-installed HAMVOIP Asterisk
Allstar software suite. The connection with the server will be done with a PC or a smartphone.
However, you should remember to switch on the TRX and RPI before leaving the station.
It is not possible to change the frequency remotely. (Especially on a mobile TRX!).
For OMs who want to chain QSOs in HF (voice or digital), I recommend the
https://doc.webradiocontrol.tech/ software, which has to be paid for, but which offers many
possibilities with a very good man-machine interface (Possibility of testing over a period of 15 days).
VoIP stands for Voice over IP. VoIP is a computer technology that allows voice to be transmitted over
IP-enabled networks, via the Internet or private networks.
It is the second protocol that we use in our remote station case because HAMVOIP uses Asterisk
open source software for Linux.
Note :
The client software installed on the PC is called iaxRpt and has the same name as the protocol.
The Yaesu FT7900 documentation is much clearer than the Kenwood TM-V71.
Before installing HAMVOIP, you will have to buy the CM108 USB sound card, sold without a case.
Then modify this "key" by adding an NPN transistor (BC547B) to control the TRX's PTT as well as a
diode (1N4148) and an adjustable 50K or 100K multi-turn resistor.
Before modifying the USB sound card, it is recommended that you test it on a PC. To do this, use
headphones on the green output while listening to music, for example.
Follow the modification of the "sound card" from the blog at the following address
Tip: Preset the potentiometer to halfway before implementation.
https://www.marrold.co.uk/2018/04/converting-cm108-usb-fob-for-amateur.html
Download the disk image (green box) using this link https://hamvoip.org/#download
Download and install the Etcher utility to copy the image to an MSD card
https://www.balena.io/etcher/
Select the RPi2-3-4_Vx.x-x_Allstar.img.xz file, the SD card reader, and then click on Flash. Same
procedure as in tutorial 8.
There is no need to use a monitor on the Raspberry PI (RPI), in fact all the configuration can be done
remotely with Putty as explained in tutorial 1.
Insert the microSd card into the RPI and the sound card. Turn on the RPI. Do not forget the network
cable.
Start the command prompt and then with the ping alarmpi command, perform
a connectivity test between the PC and the Raspberry PI as shown in the following screenshot.
Use the scroll keys to move faster, then validate the country with the
space bar before pressing the enter key.
Keep 1998
Keep 4569
Menu 2:
Change the sound level (100) of the reception.
Menu 3 :
As well as transmission (100)
Menu J :
Change COSFROM mode to 2 [usb]
For command line configuration specialists, it is possible to do manual configuration in the 9 Start
bash shell interface
https://wiki.allstarlink.org/wiki/Main_Page
The problem is that the official documentation is complete but confusing, mixed with obsolete
screenshots rather like 1000 post-it notes on a desktop.
The following is the default configuration using the "node" number 1998 and the password "iaxrpt"
1234.
Download the iaxRpt utility (green box) using the link below:
https://wiki.allstarlink.org/wiki/Setup/Download_IAXRpt
Operation:
Adjust the sound levels with a screwdriver on the adjustable potentiometer if necessary as explained
on page 11 (menu 2) to remove any sound saturation.
Install DVSwitch Mobile, then go to the Account menu. Select the 1st line. Fill in the fields as shown
in the example by adapting the IP address of the RPI. Do not forget to lower the Transmit Level
https://play.google.com/store/apps/details?id=org.dvswitch&hl=fr&gl=US
It is possible to use the Zoiper client software, but this does not have a PTT command.
[iaxrpt]
username=iaxrpt
type=user
context=radio-iaxrpt
auth=md5
secret=1234 ; PASSWORD
host=dynamic
disallow=all
allow=ulaw
allow=gsm
transfer=no
Note the links between the two configuration files as well as the password 1234 and the "node" 1998.
There is a difference in configuration between using Windows and Smartphone.
11.11 Conclusion
Once you have all the elements in hand, the basic configuration is fairly easy to do, but you shouldn't
really rely on the official documentation. Fortunately, there are many examples on Youtube
illustrating "bits" of configuration on both the server and the client.
In any case, the investment remains minimal with the sound USB key. Of course, you need a
Raspberry PI and a TRX with the COS output that is essential for this project.
HamVoIP is an interesting project that avoids investing in expensive and licensed hardware. It is also
possible to create an allstarlink account allowing other OMs to use your access point (this is not
developed here).
The modified key will be used in another APRS tutorial soon. So this little interface can be used
more.
Sommaire :
12.6 Conclusion P. 7
The goal is to be able to use an SDR key remotely using a WEB browser.
Using the Chrome browser (mandatory), the user accesses the Raspberry PI on their local network to
which the RTL-SDR key is connected.
Note that it is possible to use with the same environment an Adalm-Pluto or a HackRF and thus use
the transmission part which differs from the openwebRX project (tutorial 6.)
The software was produced by f1atb. His work is remarkable. The interface is user-friendly and
intuitive.
https://f1atb.fr
Example of configuration with a PC on a local network (f1atb image). Only the use of the RTL-SDR
key is explained in this document.
https://github.com/F1ATB/Remote-SDR/releases
Download and install the Etcher utility to copy the image to an mSD card
https://www.balena.io/etcher/
Select the remsdr_v2.4_rpi4.img file, the mSD card reader, then click on Flash. Same procedure as
tutorial 8.
Then enter the IP address of the Raspberry PI in the URL bar, in my case 192.168.1.32
There is virtually nothing to configure. You will still have to check if the RTL-SDR key is properly
connected to the Raspberry PI.
Click on Tools
Then check the detection of the RTL-SDR key as indicated below in red.
Check the parameter selection for the RTL-SDR key. The IP address must match the Raspberry PI.
Test the reception of the RTL-SDR key using a broadcast FM station as usual.
1 - activate reception,
2 - Adjust the gain on reception,
3 - Select WBFM and adjust the listening frequency. Increase the bandwidth to 2 MHz,
4 - Adjust the volume,
5/6 - Adjust the levels to correctly view the stations.
All you have to do is click in the waterfall to listen to the selected station.
sudo raspi-config
12.6 Conclusion
Bravo André (F1ATB) for this magnificent achievement. The graphical interface is very ergonomic
and will delight OMs wishing to control their station remotely.
Summary :
Prerequisite: Part 4: Using the Raspbian Lite operating system without a graphical
interface.
13.2 Installation P. 2
13.4 Conclusion P. 11
This document contains the information at the following link with screenshots.
https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5/wiki
Using the Firefox browser (for example), the user accesses the Raspberry PI on their local network to
which the transceiver is connected.
Note that it is possible to use with the same environment, the transceivers supported by the Hamlib
library, (which is considerable).
The software was produced by F4HTB. The interface is user-friendly and intuitive.
Example of a configuration with a PC on a local network with an IC7300. The operator will be able to
traffic remotely by voice with a PC connected to his local network. The Raspberry PI is used as a
WEB server.
13.2 Installation
F4HTB does not offer a ready-made disc image. You will have to install the software manually.
Start by loading the Raspbian Lite operating system without a graphical interface onto an mSD card,
as shown in tutorial 4 or using the F4HTB guide.
https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5/wiki/Example-of-complete-installation
Once the image with the Raspbian Lite operating system is created, add the empty "ssh" file without
extension in the root of the mSD card named boot.
This directly activates the ssh connection without going through the raspi-config menu explained
in tutorial 4.
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
cd ~/
git clone https://github.com/Hamlib/Hamlib.git
cd Hamlib/
./bootstrap
make all && sudo make install && cd bindings && make && sudo
make install && sudo ldconfig
sudo reboot
cd ~/
git clone https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5.git
cd ~/Universal_HamRadio_Remote_HTML5
PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
Console summary :
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
sudo apt-get install -y git python3 python3-pip python3-numpy python3-tornado python3-serial python3-pyaudio
rtl-sdr
sudo pip3 install pyalsaaudio pam pyrtlsdr
sudo apt-get autoremove -y --purge python3-libhamlib2
sudo apt-get install -y autoconf automake libtool swig
cd ~/
git clone https://github.com/Hamlib/Hamlib.git
cd Hamlib/
./bootstrap
./configure --with-python-binding PYTHON=$(which python3)
make all && sudo make install && cd bindings && make && sudo make install && sudo ldconfig
sudo reboot
cd ~/
git clone https://github.com/F4HTB/Universal_HamRadio_Remote_HTML5.git
cd ~/Universal_HamRadio_Remote_HTML5
PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR
With a browser (Firefox for example) access the server using the URL.
https://raspberrypi.local:8888/
ou:
https://192.168.1.44:8888/
A configuration page appears. Configure the various menus concerning the sound card and the
transceiver used.
Do not forget to click on "save and restart server" to save the configuration.
Do not forget to connect a headset microphone to the PC to allow the use of the microphone or other
audio source.
Click on the start button. The sound from the transceiver must be heard through the headphones.
Otherwise, click on "the blue adjustable wrench" at the top right to return to the configuration menu.
13.4 Conclusion
Congratulation Olivier (F4HTB) for this magnificent achievement. The graphical interface is very
ergonomic and will delight OMs wishing to control their station remotely.
Igate APRS
Part 14
Summary :
Prerequisite: Part 4: Using the Raspbian Lite operating system without a graphical
interface.
14.9 Conclusion P. 23
This document contains the information at the following link with screenshots.
https://github.com/wb2osz/direwolf/blob/master/doc/Raspberry-Pi-SDR-IGate.pdf
https://github.com/wb2osz/direwolf/blob/master/doc/User-Guide.pdf
https://downloads.raspberrypi.org/imager/imager_latest.exe
Choose Raspberry PI OS Li
It is recommended to pre-configure
the disk image:
- Enable SSH
Username: pi
Password: raspberry
Save the configuration, then start writing to the mSd memory card.
Once the card has been inserted into the Raspberry Pi and powered up, identify the IP address of the
Raspberry PI connected to your Wifi network (box in red).
ifconfig
Reminder: To copy and paste a line from the pdf file into putty :
- Select the line with the mouse;
- Right click and copy, or Ctrl+c ;
- Select the putty window with a left click;
- Select the Putty window with a left click; Then right click with the mouse.
cd rtl-sdr
mkdir build
cd build
sudo ldconfig
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist dvb_usb_rtl2832u
blacklist dvb_usb_v2
blacklist dvb_core
Copy and paste the above list into the nano editor
Save the file using the Ctrl + o keys, then Exit the editor with Ctrl + x.
the enter key to validate the saving.
sudo reboot
Verification: Plug the rtl-sdr into a USB port on the Raspberry Pi.
With LXTerminal or Putty, type the following command line:
lsusb
With LXTerminal or Putty, type the following command line: (beware ofundescore key)
rtl_test
The rtl-sdr key should be recognised, if not, disconnect and reconnect the key and repeat the test.
Exit the program by pressing the Ctrl key and the c key simultaneously (Ctrl+c)
If rtl_test displays this message in a loop , reinstall the program using
the manual method.
Checking the prerequisites: Normally these utilities are already installed in the operating system, but
it is still prudent to check.
cd direwolf
git checkout dev
mkdir build && cd build
cmake ..
make -j4
make install-conf
Obtain an encrypted password for the APRS server using the following address
https://aprs.do3sww.de/
nano sdr.conf
It is possible to add the command PBEACON which will report the position of the igate on
https://aprs.fi
MYCALL F4GOH
IGSERVER euro.aprs2.net
The other solution is to download a ready-made script, change the execution rights and then run it.
wget https://github.com/f4goh/DRAPRS/raw/master/config_direwolf/sdr/runsdr.sh
chmod +x runsdr.sh
./runsdr.sh
./dw-start.sh
Once the script is active, check again at https://aprs.fi to see if the beacon frame has been sent.
Once the script is active, check again on sending the tag frame.
crontab -e
Reminder:
Save the file using the Ctrl + o keys, then Exit the editor using Ctrl + x..
the enter key to validate the saving.
sudo reboot
Wait one minute, then check again on https://aprs.fithat the sending of the beacon and tracker frames
is working properly.
crontab -e
sudo reboot
The hardware used for the following will be the modified cm108 USB sound card described in tutorial
11.
Plug the sound card into the Raspberry PI, then check for PTT control compatibility (1) and note the
number of the recognised sound card in the RPI (2).
crontab -e
Rename the original direwolf.conf file, then upload the preconfigured direwolf.conf file
mv direwolf.conf direwolf.conf.bak
wget https://github.com/f4goh/DRAPRS/raw/master/config_direwolf/soundcard/direwolf.conf
nano direwolf.conf
Indicate the number of the sound card. (Here in the RPI4, the external sound card is number 3)
Send a signal transmitting the position of the igate. (Optional and useful if the RPI is not connected to
the internet)
Run the direwolf program, it loads the configuration file direwolf.conf by default
direwolf
Check on https://aprs.fi that the sending of the beacon and tracker frames is working properly.
mv dw-start.sh dw-start.sh.bak
wget https://github.com/f4goh/DRAPRS/raw/master/config_direwolf/soundcard/dw-start.sh
chmod +x dw-start.sh
./dw-start.sh
Once the script is active, check again at https://aprs.fi to see if the beacon frame has been sent.
Repeat the configuration of the "crontab" task scheduler described on pages 17, 18 and 19.
14.9 Conclusion
The APRS protocol is still widely used today. Its implementation requires few components and there
is a lot of source code on the net. The Direwolf program is a good example, even if its configuration is
sometimes a bit complex. However, the configuration possibilities are numerous. With an RTL-SDR
key or a modified sound card, it will be easy to dedicate an igate at low cost.
https://en.wikipedia.org/wiki/FX.25_Forward_Error_Correction
The source code for a probe balloon tracker supporting the FX25 is available at the following address
https://github.com/PhilippeSimier/Radiocommunication/tree/master/projet_ballon
This tracker based on an (ESP32+DRA818) was programmed by Philippe and Anthony (F4GOH)
Direwolf is able to decode the FX25 by adding the -X 1 option to the "dw-start.sh" file
Summary :
15.1 Introduction P. 2
15.8 Conclusion P. 11
In order to simplify the software installation as much as possible, I use the Piaware environment
provided by flightaware.com
Transmission protocol:
The aircraft sends a series of pulses on 1090 Mhz. After a preamble, the useful message is coded in
Manchester format.
The rate is 1Mbits/s and the packet contain either 56 or 112 bits.
https://mode-s.org/decode/content/ads-b/1-basics.html
https://fr.flightaware.com/adsb/piaware/build/ or https://flightaware.com/adsb/piaware/build/
Unzip the zip file and locate the piaware-sd-card-7.2.img, then use
https://www.balena.io/etcher to copy the image to an MSD card.
Finish by enabling SSh by creating an empty file on the /boot partition of the SD card with the
filename "ssh" only (no file extension). When this file is present, SSh will be automatically activated.
Boot the Raspberry Pi with the rtl-sdr key connected. Start the command prompt
on your machine, then type:
ping piaware
This allows you to know the IP address of the Raspberry Pi (RPI) on the local network.
http://piaware/
Or if that doesn't work, the IP address of the RPI. (IP 192.168.1.145 is given as an example).
http://192.168.1.145/
The following homepage should appear with 3 green blocks and one red block.
Link your receiving station by creating an account with FlightAware. To do this click on:
Once the registration is complete, this page should appear along with a confirmation email.
A link between the RPI and your account will be automatically created.
Check your account (main page) for a new menu "My ADS-B".
The position of the aircraft should be displayed together with the flight information in the right sidebar.
Go to the statistics page (of course change f4goh to your login :).
https://flightaware.com/adsb/stats/user/f4goh
Change the geographical coordinates in the "site configuration" menu (Edit Location...).
This menu also has an option to remotely shut down or restart the RPI.
Back on the local RPI page http://piaware/ or http://192.168.1.145/, all features are in green.
I will not describe in this document the construction of the 1090Mhz collinear antenna, but rather the
URL links that allowed me to build it with coaxial cable (RG58 cable is to be avoided, too small in
diameter and too much loss).
http://f4ffd.hamstation.eu/Antenne.Colineaire.ADS-B.htm
https://youtu.be/TkUYdCPFXXs
In order to improve the reception quality, it is often necessary to add a band filter and a low noise
amplifier (LNA).
The circuit must be supplied with 5V from an external source. After some modifications, it is possible
to use the Bias-T integrated in the Rtl-sdr V3.
Simply remove the capacitor C1 and move the resistor R1 in place of C1.
Login : pi
Password : flightaware
https://www.rtl-sdr.com/getting-the-v3-bias-tee-to-activate-on-piaware-ads-b-images/
Dependencies installation:
T-bias test:
Stop reception:
Activate Bias-T
cd src/
ls
./rtl_biast -b 1
Check with a DC voltmeter that there is a DC voltage of 5V on the Rtl-sdr SMA plug.
Note:
To disable Bias-T:
./rtl_biast -b 0
The Bias-T must now be activated automatically when the Raspberry pi starts up:
[Service]
ExecStartPre=/home/pi/rtl_biast/build/src/rtl_biast -b 1
sudo reboot
15.8 Conclusion
The solution offered by FlightAware is very practical and will delight ADS-B fans. There will be more
tutorials to follow regarding the listening of airliners.