Change in gr-gsm[master]: grgsm_channelize: Add ichar data type

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vasil Velichkov gerrit-no-reply at lists.osmocom.org
Wed Sep 12 16:23:51 UTC 2018


Vasil Velichkov has uploaded this change for review. ( https://gerrit.osmocom.org/10909


Change subject: grgsm_channelize: Add ichar data type
......................................................................

grgsm_channelize: Add ichar data type

This is the output format of rtl_sdr and hackrf_transfer and this would
allow direct channelization without an additional post processing.

Change-Id: Ia489eca9ec7defc3a83946c42f1ae3f136efe4e8
---
M apps/helpers/grgsm_channelize
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/09/10909/1

diff --git a/apps/helpers/grgsm_channelize b/apps/helpers/grgsm_channelize
index 9b00bd7..5eaeb3b 100755
--- a/apps/helpers/grgsm_channelize
+++ b/apps/helpers/grgsm_channelize
@@ -79,6 +79,10 @@
             self.blocks_file_source = blocks.file_source(gr.sizeof_short, input_file, False)
             self.source = blocks.interleaved_short_to_complex(False, False)
             self.connect((self.blocks_file_source, 0), (self.source, 0))
+        elif data_type == "ichar":
+            self.blocks_file_source = blocks.file_source(gr.sizeof_char, input_file, False)
+            self.source = blocks.interleaved_char_to_complex(False)
+            self.connect((self.blocks_file_source, 0), (self.source, 0))
         elif data_type == "complex":
             self.source = blocks.file_source(gr.sizeof_gr_complex, input_file, False)
 
@@ -114,7 +118,7 @@
         help="Sample rate of the output capture files [default=%(default)s]")
     parser.add_argument("-i", "--input_file", dest="input_file", type=str, required=True,
         help="Path to wideband GSM capture file")
-    parser.add_argument("-t", "--data_type", dest="data_type", type=str, choices=["complex","ishort"], default="complex",
+    parser.add_argument("-t", "--data_type", dest="data_type", type=str, choices=["complex","ishort","ichar"], default="complex",
         help="Type of the input file [default=%(default)s]")
     parser.add_argument("-d", "--dest_dir", dest="dest_dir", type=str, 
         help="Destination directory - if not given defaults to input file name without extension")

-- 
To view, visit https://gerrit.osmocom.org/10909
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia489eca9ec7defc3a83946c42f1ae3f136efe4e8
Gerrit-Change-Number: 10909
Gerrit-PatchSet: 1
Gerrit-Owner: Vasil Velichkov <vvvelichkov at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180912/6fb8176a/attachment.htm>


More information about the gerrit-log mailing list