Update transmit.py change to tx

master-b-p-s
Alan Johnston 2 weeks ago committed by GitHub
parent fb52cee8b8
commit 6f0b5ad641
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,7 +4,7 @@
import time import time
from time import sleep from time import sleep
#import os #import os
import sys import system
from os import system from os import system
from os import path from os import path
from PIL import Image, ImageDraw, ImageFont, ImageColor from PIL import Image, ImageDraw, ImageFont, ImageColor
@ -554,7 +554,7 @@ if __name__ == "__main__":
# system("sudo systemctl restart pacsatsim") # system("sudo systemctl restart pacsatsim")
output(txLed, 0) output(txLed, 0)
print("0") print("0")
rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + rx + "e3 > /dev/null 2>&1 &" rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 > /dev/null 2>&1 &"
stop_rpitx = "sudo killall -9 rpitx && sudo killall -9 arecord && sudo rpitx -m RF -f 434.9e3 > /dev/null 2>&1" stop_rpitx = "sudo killall -9 rpitx && sudo killall -9 arecord && sudo rpitx -m RF -f 434.9e3 > /dev/null 2>&1"
system(stop_rpitx) system(stop_rpitx)
while (True): while (True):

Loading…
Cancel
Save

Powered by TurnKey Linux.