aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapps/grgsm_decode2
-rwxr-xr-xapps/helpers/grgsm_capture.py2
-rwxr-xr-xapps/helpers/grgsm_channelize.py6
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/grgsm_decode b/apps/grgsm_decode
index abdc56b..698cf80 100755
--- a/apps/grgsm_decode
+++ b/apps/grgsm_decode
@@ -277,7 +277,7 @@ if __name__ == '__main__':
+ ", ".join(grgsm.arfcn.get_bands()) + "."
+ "If no band is specified, it will be determined automatically, defaulting to 0.")
cfile_options.add_option("-s", "--samp-rate", dest="samp_rate", type="eng_float",
- default=eng_notation.num_to_str(2e6),
+ default=eng_notation.num_to_str(1e6),
help="Sample rate of cfile capture [default=%default]")
parser.add_option_group(cfile_options)
diff --git a/apps/helpers/grgsm_capture.py b/apps/helpers/grgsm_capture.py
index f5d2651..51c13ac 100755
--- a/apps/helpers/grgsm_capture.py
+++ b/apps/helpers/grgsm_capture.py
@@ -193,7 +193,7 @@ if __name__ == '__main__':
help="Set gain [default=%default]")
parser.add_option("-s", "--samp-rate", dest="samp_rate", type="eng_float",
- default=eng_notation.num_to_str(2000000.052982),
+ default=eng_notation.num_to_str(2000000),
help="Set samp_rate [default=%default]")
parser.add_option("-p", "--ppm", dest="ppm", type="intx", default=0,
diff --git a/apps/helpers/grgsm_channelize.py b/apps/helpers/grgsm_channelize.py
index f7f0100..146bb8f 100755
--- a/apps/helpers/grgsm_channelize.py
+++ b/apps/helpers/grgsm_channelize.py
@@ -43,10 +43,10 @@ import os
EXTRA_HELP = """
Example usage:
-grgsm_channelize.py -f my_wideband_capture.cfile -c 925.2e6 990 991 992 993 994 995 1019 1020 1021 1022 1023
+grgsm_channelize.py -c my_wideband_capture.cfile -f 925.2e6 990 991 992 993 994 995 1019 1020 1021 1022 1023
The above example will channelize my_wideband_capture.cfile, in this case a cfile captured at
-925.2 MHz centered (ARFCN 975) and 20 Msps. As a result, 12 files will be generated for
+925.2 MHz centered (ARFCN 975) and 2 Msps. As a result, 12 files will be generated for
ARFCNs 975 - 1023 at 1 Msps each.
"""
@@ -117,7 +117,7 @@ if __name__ == '__main__':
parser = ArgumentParser(formatter_class=RawDescriptionHelpFormatter, description='Split wideband a GSM capture into seperate files per ARFCN.', add_help=True, epilog=EXTRA_HELP)
parser.add_argument(dest="channel", type=int, nargs='+',
help="List of ARFCNs")
- parser.add_argument("-s", "--samp-rate", dest="samp_rate", type=eng_float, default=eng_notation.num_to_str(2e7),
+ parser.add_argument("-s", "--samp-rate", dest="samp_rate", type=eng_float, default=eng_notation.num_to_str(2e6),
help="Sample rate of the wideband capture file [default=%(default)s]")
parser.add_argument("-f", "--fc", dest="fc", type=eng_float, default=eng_notation.num_to_str(935e6), required=True,
help="Carrier frequency in Hz [default=%(default)s]")