This repository will have the code to use rtl_sdr dongle vir reception and rpitx as transmitter
Go to file
antonjan 3bbc80a14f adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
images adding hardware diagram 2019-04-16 11:38:35 +02:00
Anton 2020-07-29.rar adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
LICENSE Initial commit 2019-04-16 10:54:31 +02:00
ModuleEchoLink.conf adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
README.md adding configeration details 2021-03-23 15:30:44 +02:00
SDRplay_RSP_API-ARM32-3.07.2(2).run adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
giga_echo_link.py Adding work ptt scripts for svxlink 2021-03-23 13:01:00 +02:00
giga_echo_link_tx.grc Adding work ptt scripts for svxlink 2021-03-23 13:01:00 +02:00
giga_echolink_rx.grc adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
giga_echolink_rx.py adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
ptt.pl adding ptt.pl file 2020-05-05 18:45:55 +01:00
read_pts.sh Adding work ptt scripts for svxlink 2021-03-23 13:01:00 +02:00
rpi_interface.grc adding working files 2020-05-05 18:39:37 +01:00
rpitx_interface.py Adding Gnuradio Flow Diagram 2020-04-20 11:46:48 +02:00
rpitx_test.grc adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
rptx_traqnsmitter.py adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00
start_echo_test.sh added echo test 2019-04-16 11:04:40 +02:00
start_gnuradio_ptt.py Adding work ptt scripts for svxlink 2021-03-23 13:01:00 +02:00
start_tx.sh fix path 2020-04-21 09:40:28 +02:00
stop_gnuradio_ptt.py Adding work ptt scripts for svxlink 2021-03-23 13:01:00 +02:00
stop_tx.sh adding stop script 2019-04-16 11:06:32 +02:00
svxlink.cfg Changed calsign 2020-04-21 09:56:30 +02:00
svxlink.conf adding new version of svxlink to rpitx 2021-07-31 08:01:46 +02:00

README.md

svxlink_to_rpitx

This repository will have the code to use rtl_sdr dongle vir reception and rpitx as transmitter. I got insperation from the code devloped here http://www.pg540.org/wiki/index.php/RPITX_interface_to_SVXlink_using_GNUradio

Description

This project will run on a raspberry Pi and use rpitx Transmitter board from Giga Technology for TX and rtl_sdr dongle for reseption.
Gnuradio will be used to interface between svxlink and rpitx and from rtl_sdr and svxlink
Functional Description : The receiver side is all handled by allready existing functionality in SVXLink using Ddr receiver.
All configuration is well documented in svxlink.conf. The transmitter part interface is made out of 3 components.
The audio coming from SVXlink TX1 is routed via UDP port 1235 to GNUradio, the PTT is routed to PseudoTTY port /home/pi/ptt and the TCP output port 8011 of GNUradio IQ stream is routed to RPITX.
When SVXlink wants to transmit it sends a charackter T to the PseudoTTY device ( PTT ON ), a perl script which is started after the start of SVXlink will monitor this PseudoTTY and once it will see the character T it will execute other script starting first RPITX snd then Python GNUradio script.
This will switch on the transmitter and audio is routed to RPITX. When SVXlink need to stop transmitting then the character R is send by SVXlink to the PseudoTTY and received by the script monitoring the PTY. It will kill RPITX and Python GNUradio script.
As it takes a bit of time to start RPITX ( initializing the PLL ) and starting the TCP listener and starting Python some extra delay is given to SVXLink in the configuration.
The script stop_gnuradio_ptt.py and start_gnuradio_ptt.py id sending a xmlrpc message to gnuradio to stop or start the tx rf signal that get send to rpitx

Dependinsies

  1. rpitx
  2. rtl_sdr
  3. svxlink
  4. gnuradio

Usage

copy all repository files in the root pi directory.
copy the svxlink.conf to the /etc/svxlink/ directory
run the following scripts in the pi directory.
sudo ./start_tx.sh
sudo ./start_tx.sh
Set the rx frequency in the svxlink.conf file.
Set the tx frequency in the start_echo_test.sh script
Set the Vox level in the svxlink.conf
set the echolink audio level in the svxlink.conf

Gnuradio Block diagram

gnuradio block diagram

Hardware

  1. Raspberry Pi hat from Giga Technology http://www.giga.co.za
  2. Raspberry Pi
  3. rtl SDR dongle
    Hardware diagram

Project Status

Working SVX link system.

rtl recever

sudo rtl_fm -f 94700000 -s 44100 -g 50 -l 0 - | sudo aplay -D hw:1,0 -t raw -f S16_LE -r 44100 -c 1

SVX Configuration

SVXlink configuration changes are :
The svxlink.conf in this repository has already have this config In [RX1] of svxlink.conf configure TYPE=Ddr, SIGLEV_DET=DDR, SIGLEV_DET=2.61, SIGLEV_OFFSET=150, FQ=433540000, WBRX=WbRX1

In [WbRX1] put TYPE=RtlUSB, DEV_MATCH=0, HOST=localhost, PORT=1234, CENTER_FQ=433540000, GAIN=3.7,PEAK_METER=1, SAMPLE_RATE=960000

In [TX1] put TYPE=LOCAL, AUDIO_DEV=udp:127.0.0.1:1235, AUDO_CHANNEL=0, PTT_TYPE=PTY, PTT_PTY=/home/pi/ptt.pl