Write whole backend command with params to console
This commit is contained in:
parent
2544b9a164
commit
5505f0dfd7
@ -1,4 +1,4 @@
|
||||
import pprint, struct, shlex, sys, time
|
||||
import struct, shlex, sys, time
|
||||
|
||||
import numpy as np
|
||||
from Qt import QtCore
|
||||
@ -81,10 +81,6 @@ class PowerThread(BasePowerThread):
|
||||
self.lastsweep = 0
|
||||
self.interval = interval
|
||||
|
||||
print("hackrf_sweep params:")
|
||||
pprint.pprint(self.params)
|
||||
print()
|
||||
|
||||
def process_start(self):
|
||||
"""Start hackrf_sweep process"""
|
||||
if not self.process and self.params:
|
||||
@ -110,6 +106,9 @@ class PowerThread(BasePowerThread):
|
||||
if additional_params:
|
||||
cmdline.extend(shlex.split(additional_params))
|
||||
|
||||
print('Starting backend:')
|
||||
print(' '.join(cmdline))
|
||||
print()
|
||||
self.process = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
|
||||
universal_newlines=False, console=False)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import pprint, shlex
|
||||
import shlex
|
||||
|
||||
import numpy as np
|
||||
from Qt import QtCore
|
||||
@ -36,10 +36,6 @@ class PowerThread(BasePowerThread):
|
||||
self.databuffer = {}
|
||||
self.last_timestamp = ""
|
||||
|
||||
print("rtl_power params:")
|
||||
pprint.pprint(self.params)
|
||||
print()
|
||||
|
||||
def process_start(self):
|
||||
"""Start rtl_power process"""
|
||||
if not self.process and self.params:
|
||||
@ -66,6 +62,9 @@ class PowerThread(BasePowerThread):
|
||||
if additional_params:
|
||||
cmdline.extend(shlex.split(additional_params))
|
||||
|
||||
print('Starting backend:')
|
||||
print(' '.join(cmdline))
|
||||
print()
|
||||
self.process = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
|
||||
universal_newlines=True, console=False)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import math, pprint, shlex
|
||||
import math, shlex
|
||||
|
||||
from Qt import QtCore
|
||||
|
||||
@ -54,10 +54,6 @@ class PowerThread(BasePowerThread):
|
||||
self.hop = 0
|
||||
self.prev_line = ""
|
||||
|
||||
print("rtl_power_fftw params:")
|
||||
pprint.pprint(self.params)
|
||||
print()
|
||||
|
||||
def get_hop_freq(self, hop):
|
||||
"""Get start and stop frequency for particular hop"""
|
||||
start_freq = self.params["start_freq"] * 1e6 + (self.params["sample_rate"] - self.params["overhang"]) * hop
|
||||
@ -91,6 +87,9 @@ class PowerThread(BasePowerThread):
|
||||
if additional_params:
|
||||
cmdline.extend(shlex.split(additional_params))
|
||||
|
||||
print('Starting backend:')
|
||||
print(' '.join(cmdline))
|
||||
print()
|
||||
self.process = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
|
||||
universal_newlines=True, console=False)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import pprint, shlex
|
||||
import shlex
|
||||
|
||||
import numpy as np
|
||||
from Qt import QtCore
|
||||
@ -43,10 +43,6 @@ class PowerThread(BasePowerThread):
|
||||
self.databuffer = {}
|
||||
self.last_timestamp = ""
|
||||
|
||||
print("rx_power params:")
|
||||
pprint.pprint(self.params)
|
||||
print()
|
||||
|
||||
def process_start(self):
|
||||
"""Start rx_power process"""
|
||||
if not self.process and self.params:
|
||||
@ -71,6 +67,9 @@ class PowerThread(BasePowerThread):
|
||||
if additional_params:
|
||||
cmdline.extend(shlex.split(additional_params))
|
||||
|
||||
print('Starting backend:')
|
||||
print(' '.join(cmdline))
|
||||
print()
|
||||
self.process = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
|
||||
universal_newlines=True, console=False)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import os, sys, pprint, shlex, signal
|
||||
import os, sys, shlex, signal
|
||||
|
||||
import numpy as np
|
||||
from Qt import QtCore
|
||||
@ -76,10 +76,6 @@ class PowerThread(BasePowerThread):
|
||||
self.pipe_write_fd = None
|
||||
self.pipe_write_handle = None
|
||||
|
||||
print("soapy_power params:")
|
||||
pprint.pprint(self.params)
|
||||
print()
|
||||
|
||||
def process_start(self):
|
||||
"""Start soapy_power process"""
|
||||
if not self.process and self.params:
|
||||
@ -129,6 +125,9 @@ class PowerThread(BasePowerThread):
|
||||
else:
|
||||
creationflags = 0
|
||||
|
||||
print('Starting backend:')
|
||||
print(' '.join(cmdline))
|
||||
print()
|
||||
self.process = subprocess.Popen(cmdline, close_fds=False, universal_newlines=False,
|
||||
creationflags=creationflags, console=False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user