From 6b7dbdfe9261655a0e9b64f4b3a7fcd44466a939 Mon Sep 17 00:00:00 2001 From: mihajlo2003petkovic Date: Sun, 20 Dec 2020 20:03:48 +0100 Subject: [PATCH 1/4] Added GAIN variable --- templates/noaa.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/noaa.conf b/templates/noaa.conf index 1a34fb0..0aca872 100644 --- a/templates/noaa.conf +++ b/templates/noaa.conf @@ -11,3 +11,4 @@ LON=change_longitude BIAS_TEE="enable_bias_tee" DELETE_AUDIO="true" FLIP_METEOR_IMG="true" +GAIN=50 From e4be9ea88187a366905fb9d195947189d135006b Mon Sep 17 00:00:00 2001 From: mihajlo2003petkovic Date: Sun, 20 Dec 2020 20:04:35 +0100 Subject: [PATCH 2/4] Changed -g 50 to -g $GAIN --- receive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receive.sh b/receive.sh index b6c4fd4..3ae1d01 100755 --- a/receive.sh +++ b/receive.sh @@ -31,7 +31,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record" "INFO" -timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k -g 50 -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${RAMFS_AUDIO}/audio/${3}.wav" rate 11025 +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k -g $GAIN -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${RAMFS_AUDIO}/audio/${3}.wav" rate 11025 if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then ENHANCEMENTS="ZA MCIR MCIR-precip MSA MSA-precip HVC-precip HVCT-precip HVC HVCT" From c39af0073b857da38d7707462e905d2814fcd7aa Mon Sep 17 00:00:00 2001 From: mihajlo2003petkovic Date: Sun, 20 Dec 2020 20:04:56 +0100 Subject: [PATCH 3/4] Changed -g 50 to -g $GAIN --- receive_iss.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receive_iss.sh b/receive_iss.sh index bcff229..f384b48 100755 --- a/receive_iss.sh +++ b/receive_iss.sh @@ -1,3 +1,3 @@ #!/bin/sh datetime=$(date +"%Y%m%d-%H%M%S") -timeout 660 /usr/local/bin/rtl_fm -M fm -f 145.8M -s 48k -g 50 -p 55 -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 48000 - /usr/share/html/iss/iss-$datetime.wav rate 11025 +timeout 660 /usr/local/bin/rtl_fm -M fm -f 145.8M -s 48k -g $GAIN -p 55 -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 48000 - /usr/share/html/iss/iss-$datetime.wav rate 11025 From edbb97de1746db763fc8b17f192fa055c94904fe Mon Sep 17 00:00:00 2001 From: mihajlo2003petkovic Date: Sun, 20 Dec 2020 20:05:48 +0100 Subject: [PATCH 4/4] Changed -g 48 to -g $GAIN --- receive_meteor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receive_meteor.sh b/receive_meteor.sh index 89bfd57..626a4d6 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -43,7 +43,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record" "INFO" -timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k -g 48 | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${RAMFS_AUDIO}/audio/${3}.wav" rate 96k +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k -g $GAIN | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${RAMFS_AUDIO}/audio/${3}.wav" rate 96k log "Demodulation in progress (QPSK)" "INFO" meteor_demod -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${RAMFS_AUDIO}/audio/${3}.wav"