Skip to content

Commit

Permalink
Add calib and DGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
F5OEO committed Jul 17, 2019
1 parent 351abaf commit 7eed4b0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
5 changes: 5 additions & 0 deletions scripts/encode_modulate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ MODE=DVBS2
#QPSK,8PSK,16APSK,32APSK
CONSTELLATION=QPSK
GAIN=0.8
#Digital Gain (FPGA Mode Only 1..31)
DGAIN=31
# $LONG_FRAME,$SHORT_FRAME
TYPE_FRAME=$LONG_FRAME
# $WITH_PILOTS,WITHOUT_PILOTS
Expand All @@ -27,6 +29,9 @@ FPGA_MODE=$WITHOUT_FPGA
# Upsample 1,2 or 4 : 4 delivers the best quality but should not be up to 500KS
UPSAMPLE=2

#CALIBRATION PROCESS : 0 Normal Tx, 1 perform a calibration and save the result (should be done only once) : Carefull, big spike when calibration, do not plug a PA.
CALIBRATE_BEFORE_TX=1

# ------- ENCODER PARAMETERS --------

VIDEO_RESX=352
Expand Down
4 changes: 2 additions & 2 deletions scripts/include/limerf.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if [ "$Platform" = "rpi" ] ; then
sudo ../bin/limesdr_dvb -s "$SYMBOLRATE"000 -f $FECNUM/$FECDEN -r $UPSAMPLE -m $MODE -c $CONSTELLATION $TYPE_FRAME $PILOTS -t "$FREQ"e6 -g $GAIN -q 0 $FPGA_MODE
sudo ../bin/limesdr_dvb -s "$SYMBOLRATE"000 -f $FECNUM/$FECDEN -r $UPSAMPLE -m $MODE -c $CONSTELLATION $TYPE_FRAME $PILOTS -t "$FREQ"e6 -g $GAIN -q $CALIBRATE_BEFORE_TX $FPGA_MODE -D $DGAIN
else
../bin/limesdr_dvb -s "$SYMBOLRATE"000 -f $FECNUM/$FECDEN -r $UPSAMPLE -m $MODE -c $CONSTELLATION $TYPE_FRAME $PILOTS -t "$FREQ"e6 -g $GAIN -q 0 $FPGA_MODE
../bin/limesdr_dvb -s "$SYMBOLRATE"000 -f $FECNUM/$FECDEN -r $UPSAMPLE -m $MODE -c $CONSTELLATION $TYPE_FRAME $PILOTS -t "$FREQ"e6 -g $GAIN -q $CALIBRATE_BEFORE_TX $FPGA_MODE -D $DGAIN
fi
5 changes: 5 additions & 0 deletions scripts/jetson_nano.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ MODE=DVBS2
#QPSK,8PSK,16APSK,32APSK
CONSTELLATION=8PSK
GAIN=0.8
#Digital Gain (FPGA Mode Only 1..31)
DGAIN=31
# $LONG_FRAME,$SHORT_FRAME
TYPE_FRAME=$SHORT_FRAME
# $WITH_PILOTS,WITHOUT_PILOTS
Expand All @@ -28,6 +30,9 @@ FPGA_MODE=$WITHOUT_FPGA
# Upsample 1,2 or 4 : 4 delivers the best quality but should not be up to 500KS
UPSAMPLE=1

#CALIBRATION PROCESS : 0 Normal Tx, 1 perform a calibration and save the result (should be done only once) : Carefull, big spike when calibration, do not plug a PA.
CALIBRATE_BEFORE_TX=1

# ------- ENCODER PARAMETERS --------

VIDEO_RESX=640
Expand Down
21 changes: 14 additions & 7 deletions scripts/network_modulate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,35 @@
source ../detect_platform.sh
source ./include/modulateparam.sh
FREQ=437
SYMBOLRATE=2000
FECNUM=8
FECDEN=9
SYMBOLRATE=1000
FECNUM=2
FECDEN=3
#DVBS,DVBS2
MODE=DVBS2
#QPSK,8PSK,16APSK,32APSK
CONSTELLATION=QPSK
GAIN=0.85
#Digital Gain (FPGA Mode Only 1..31)
DGAIN=31
# $LONG_FRAME,$SHORT_FRAME
TYPE_FRAME=$SHORT_FRAME
TYPE_FRAME=$LONG_FRAME
# $WITH_PILOTS,WITHOUT_PILOTS
PILOTS=$WITHOUT_PILOTS
#$WITH_FPGA,$WITHOUT_FPGA : Be Sure to update special firmware if WITH_FPGA
FPGA_MODE=$WITH_FPGA
FPGA_MODE=$WITHOUT_FPGA
# Upsample 1,2 or 4 : 4 delivers the best quality but should not be up to 500KS
#If FPGA mode, upsample 4 could be used up to 4MS
UPSAMPLE=4

#CALIBRATION PROCESS : 0 Normal Tx, 1 perform a calibration and save the result (should be done only once) : Carefull, big spike when calibration, do not plug a PA.
CALIBRATE_BEFORE_TX=1


#Transport Stream from network
IP_PORT=12000
IP_PORT=5004

# Launch processes
nc -kluvw 1 0.0.0.0 $IP_PORT | source ./include/limerf.sh
nc -kluvw 1 230.0.0.1 $IP_PORT | source ./include/limerf.sh



0 comments on commit 7eed4b0

Please sign in to comment.