To setup Afedri-Net receiver, two software packages:
https://www.afedri-sdr.com/index.php/downloads/category/24-source-code-directory?download=257:sdr-split-utility-v1-19 and
https://www.afedri-sdr.com/index.php/downloads/category/15-sdr-commander-command-shell-utility?download=248:sdr-commander-v-1-24-command-shell-utility
and corresponding libraries (libudev1,libudev1-dev,libasound-dev, etc) have to be installed.
Copy both sdr_commander and sdr_split to /home/websdr/dist11
Make the FIFO file: create the directories /home/websdr/band160/fifo/ and run the command: mkfifo /home/websdr/band160/fifo/afedri-ch-1
Set the device in /cfg/websdr.cfg
device /home/websdr/band160/fifo/afedri-ch-1
device $hw 1:0:0
To avoid any possible conflicts between ALSA devices I suggest disabling the PI4 onboard sound card:
cd /etc/modprobe.d
create the file
sudo vi alsa-blacklist.conf
and enter the following line:
blacklist snd_bcm2835
Save the file and reboot the machine
To set up RTL-Sdr please follow the installation guide from F4GOH https://hamprojects.files.wordpress.com/2020/09/rpi-part-10-v1.0.pdf
When using the RTL-SDR with upconverter one has to know that there’s a bug in websdr v.11 than requires to restart the rtl_tcp driver after starting the WebSDR software (websdr-rpi).
Set the bands and fill the rest of websdr.cfg fields in accordance with /home/websdr/dist11/doc/config.txt ended with swapiq command and start the software.
In our case the startup file looks like this:
#!/bin/bash
cd /home/websdr/dist11
sleep 1
sdr_commander -sn256000 -g20 -q0 -f1890000
sleep 5
rtl_tcp -d 0 -s 1024000 -f 8350000 -a 127.0.0.1 -g 30.0 -p 1234 -b 3 & sleep 10
rtl_tcp -d 0 -s 1024000 -f 5050000 -a 127.0.0.1 -g 30.0 -p 1235 -b 3 & sleep 5
cd /home/websdr/dist11
./websdr-rpi & sleep 6
killall -KILL rtl_tcp
sleep 6
rtl_tcp -d 0 -s 1024000 -f 8350000 -a 127.0.0.1 -g 30.0 -p 1234 -b 3 & sleep 10
rtl_tcp -d 0 -s 1024000 -f 5050000 -a 127.0.0.1 -g 30.0 -p 1235 -b 3 & sleep 5
exit 0
If everything is configured correctly WEBSDR program starts and can be reached by any browser at port 8901