summaryrefslogtreecommitdiff
path: root/gsm-receiver/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'gsm-receiver/src/python')
-rwxr-xr-xgsm-receiver/src/python/go.sh16
-rwxr-xr-xgsm-receiver/src/python/gsm_receive.py4
2 files changed, 18 insertions, 2 deletions
diff --git a/gsm-receiver/src/python/go.sh b/gsm-receiver/src/python/go.sh
index e0d1290..5fc37d4 100755
--- a/gsm-receiver/src/python/go.sh
+++ b/gsm-receiver/src/python/go.sh
@@ -2,6 +2,8 @@
#echo "go.sh <file.cfile> [decim==112]"
+KEY=$4
+CONFIGURATION=$3
DECIM=$2
FILE=$1
@@ -9,4 +11,16 @@ if [ $DECIM"x" = x ]; then
DECIM=112
fi
-./gsm_receive.py -d "$DECIM" -I "$FILE" | ../../../gsmdecode/src/gsmdecode -i
+if [ $CONFIGURATION"x" = x ]; then
+ CONFIGURATION=""
+fi
+
+if [ "$KEY""x" = x ]; then
+ KEY="00 00 00 00 00 00 00 00"
+fi
+
+# Use GSMTAP with WireShark instead of gmsdecode !
+
+#./gsm_receive.py -d "$DECIM" -I "$FILE" -c "$CONFIGURATION" -k "$KEY" | ../../../gsmdecode/src/gsmdecode -i
+
+./gsm_receive.py -d "$DECIM" -I "$FILE" -c "$CONFIGURATION" -k "$KEY"
diff --git a/gsm-receiver/src/python/gsm_receive.py b/gsm-receiver/src/python/gsm_receive.py
index 130eb05..e66ddf9 100755
--- a/gsm-receiver/src/python/gsm_receive.py
+++ b/gsm-receiver/src/python/gsm_receive.py
@@ -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, self.options.key.replace(' ', '').lower())
+ 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):
@@ -97,6 +97,8 @@ class gsm_receiver_first_blood(gr.top_block):
help="Output filename")
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