summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-24 22:23:52 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-24 22:23:52 +0100
commit085852622cb2641fbc1fa88c85494c7951914ebd (patch)
treee8356b2be97e3da5e6c6ddbe18f35b0e16dbfa2f
parenteb7319b3bf43c8e3727cea8ce2ebc949ab455fd5 (diff)
gsm_receive_usrp2: port to dieters a5 / config chaanges
-rwxr-xr-xgsm-receiver/src/python/gsm_receive_usrp2.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/gsm-receiver/src/python/gsm_receive_usrp2.py b/gsm-receiver/src/python/gsm_receive_usrp2.py
index a5ca75e..9fb5b24 100755
--- a/gsm-receiver/src/python/gsm_receive_usrp2.py
+++ b/gsm-receiver/src/python/gsm_receive_usrp2.py
@@ -106,7 +106,7 @@ class gsm_receiver_first_blood(gr.top_block):
return interpolator
def _set_receiver(self):
- receiver = gsm.receiver_cf(self.tuner_callback, self.synchronizer_callback, self.options.osr, "0000000000000000")
+ receiver = gsm.receiver_cf(self.tuner_callback, self.synchronizer_callback, self.options.osr, self.options.key.replace(' ', '').lower(), self.options.configuration.upper())
return receiver
def _process_options(self):
@@ -117,16 +117,21 @@ class gsm_receiver_first_blood(gr.top_block):
help="select USRP by MAC address, default is auto-select")
parser.add_option("-d", "--decim", type="int", default=112,
help="Set USRP decimation rate to DECIM [default=%default]")
+ parser.add_option("-r", "--osr", type="int", default=4,
+ help="Oversampling ratio [default=%default]")
parser.add_option("-I", "--inputfile", type="string", default="cfile",
help="Input filename")
parser.add_option("-O", "--outputfile", type="string", default="cfile2.out",
help="Output filename")
- parser.add_option("-r", "--osr", type="int", default=4,
- help="Oversampling ratio [default=%default]")
parser.add_option("-f", "--freq", type="eng_float", default="950.4M",
help="set frequency to FREQ", metavar="FREQ")
parser.add_option("-g", "--gain", type="eng_float", default=None,
help="Set gain in dB (default is midpoint)")
+ parser.add_option("-k", "--key", type="string", default="AD 6A 3E C2 B4 42 E4 00",
+ help="KC session key")
+ parser.add_option("-c", "--configuration", type="string", default="",
+ help="Decoder configuration")
+
(options, args) = parser.parse_args ()
return (options, args)
personal git repositories of Harald Welte. Your mileage may vary