Update transmit.py rerun rpitx to stop it

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

@ -555,7 +555,7 @@ if __name__ == "__main__":
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 434900 &" 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 434900 &"
stop_rpitx = "sudo killall -9 rpitx && sudo killall -9 arecord" stop_rpitx = "sudo killall -9 rpitx && sudo killall -9 arecord && sudo rpitx -m RF -f 434.9e3"
system(stop_rpitx) system(stop_rpitx)
while (True): while (True):
if (txc): if (txc):

Loading…
Cancel
Save

Powered by TurnKey Linux.