summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/gsm_receive.py7
-rwxr-xr-xsrc/python/gsm_receive_usrp.py2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/python/gsm_receive.py b/src/python/gsm_receive.py
index 40c1520..4cfb876 100755
--- a/src/python/gsm_receive.py
+++ b/src/python/gsm_receive.py
@@ -6,7 +6,7 @@ from gnuradio.eng_option import eng_option
from optparse import OptionParser
from os import sys
-for extdir in ['../../debug/src/lib','../../debug/src/lib/.libs']:
+for extdir in ['../../debug/src/lib','../../debug/src/lib/.libs','../lib','../lib/.libs','../..debug/src/lib/decoder/openbts/SIP']:
if extdir not in sys.path:
sys.path.append(extdir)
import gsm
@@ -82,7 +82,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)
+ receiver = gsm.receiver_cf(self.tuner_callback, self.synchronizer_callback, self.options.osr, self.options.key.replace(' ', '').lower())
return receiver
def _process_options(self):
@@ -95,6 +95,9 @@ class gsm_receiver_first_blood(gr.top_block):
help="Input filename")
parser.add_option("-O", "--outputfile", type="string", default="cfile2.out",
help="Output filename")
+ parser.add_option("-k", "--key", type="string", default="2B 08 74 9F DD 0D 9C 00",
+ help="KC session key")
+
(options, args) = parser.parse_args ()
return (options, args)
diff --git a/src/python/gsm_receive_usrp.py b/src/python/gsm_receive_usrp.py
index 7d28633..a4e9720 100755
--- a/src/python/gsm_receive_usrp.py
+++ b/src/python/gsm_receive_usrp.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#this file isn't ready to use now - gsm-receiver lacks realtime processing capability
-#there are many underruns of buffer from usrp's samples, many blocks of samples get lost and
+#there are many underruns of buffer for samples from usrp's, many blocks of samples get lost and
#receiver isn't prepared for this situation too well
from gnuradio import gr, gru, blks2
personal git repositories of Harald Welte. Your mileage may vary