kopia lustrzana https://github.com/F5OEO/rpitx
Add fm2ssb.sh and rtlmenu
rodzic
66947d90a4
commit
4cf8ced993
|
@ -0,0 +1,3 @@
|
|||
echo fm2ssb.sh freq gain
|
||||
rtl_fm -f $1 -s 250k -r 48k -g $2 - | csdr convert_i16_f | csdr fir_interpolate_cc 2| csdr dsb_fc | csdr bandpass_fir_fft_cc 0.002 0.06 0.01 | csdr fastagc_ff | buffer | sudo ./sendiq -i /dev/stdin -s 96000 -f 434.0e6 -t float
|
||||
# | sox -traw -r48k -es -b16 - -c1 -r 48k -traw -
|
|
@ -4,7 +4,7 @@ sudo apt-get update
|
|||
sudo apt-get install -y libsndfile1-dev git
|
||||
sudo apt-get install -y imagemagick libfftw3-dev
|
||||
#For rtl-sdr use
|
||||
sudo apt-get install -y rtl-sdr
|
||||
sudo apt-get install -y rtl-sdr buffer
|
||||
# We use CSDR as a dsp for analogs modes thanks to HA7ILM
|
||||
git clone https://github.com/simonyiszk/csdr
|
||||
cd csdr
|
||||
|
|
|
@ -27,14 +27,16 @@ do_freq_setup
|
|||
"0 Record" "Record spectrum on $INPUT_RTLSDR" \
|
||||
"1 Play" "Replay spectrum" \
|
||||
"2 Transponder" "Transmit $INPUT_RTLSDR to 434MHZ" \
|
||||
"3 Set frequency" "Modify frequency (actual $INPUT_RTLSDR Mhz)" \
|
||||
"3 Fm->SSB" "Transcode FM $INPUT_RTLSDR to 434MHZ" \
|
||||
"4 Set frequency" "Modify frequency (actual $INPUT_RTLSDR Mhz)" \
|
||||
3>&2 2>&1 1>&3)
|
||||
|
||||
case "$menuchoice" in
|
||||
0\ *) rtl_sdr -s 250000 -g "$INPUT_GAIN" -f "$INPUT_RTLSDR"M record.iq >/dev/null 2>/dev/null ;;
|
||||
1\ *) sudo ./sendiq -s 250000 -f "$INPUT_RTLSDR"e6 -t u8 -i record.iq >/dev/null 2>/dev/null ;;
|
||||
2\ *) source $"$PWD/transponder.sh" $INPUT_RTLSDR $INPUT_GAIN >/dev/null 2>/dev/null ;;
|
||||
3\ *) do_freq_setup ;;
|
||||
2\ *) source $"$PWD/transponder.sh" "$INPUT_RTLSDR"M $INPUT_GAIN ;;
|
||||
3\ *) source $"$PWD/fm2ssb.sh" "$INPUT_RTLSDR"M $INPUT_GAIN >/dev/null 2>/dev/null ;;
|
||||
4\ *) do_freq_setup ;;
|
||||
*) status=1;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#You need a rtl-sdr dongle in order to run this
|
||||
echo "transponder FreqIn(Mhz) Gain(0-45)"
|
||||
rtl_sdr -s 250000 -g "$2" -f "$1M" - | sudo ./sendiq -s 250000 -f 434.0e6 -t u8 -i -
|
||||
rtl_sdr -s 250000 -g "$2" -f "$1" - | buffer | sudo ./sendiq -s 250000 -f 434.0e6 -t u8 -i -
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue