Added new blocks written in python for new experimental gsm receiver.
FCCH burst tagger is element of hierarchical block - FCCH detector that adds tags after every detected FCCH burst. The value of each tag is a frequency offset estimate.
SCH detector waits for tags from FCCH detector which are used to find SCH burst position. It is unfinished.
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
index 2c73b8d..6de687a 100644
--- a/grc/CMakeLists.txt
+++ b/grc/CMakeLists.txt
@@ -18,5 +18,8 @@
# Boston, MA 02110-1301, USA.
install(FILES
gsm_receiver_hier.xml
- gsm_bursts_printer.xml DESTINATION share/gnuradio/grc/blocks
+ gsm_bursts_printer.xml
+ gsm_fcch_burst_tagger.xml
+ gsm_sch_detector.xml
+ gsm_fcch_detector.xml DESTINATION share/gnuradio/grc/blocks
)
diff --git a/grc/gsm_fcch_burst_tagger.xml b/grc/gsm_fcch_burst_tagger.xml
new file mode 100644
index 0000000..90f5688
--- /dev/null
+++ b/grc/gsm_fcch_burst_tagger.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<block>
+ <name>fcch_burst_tagger</name>
+ <key>gsm_fcch_burst_tagger</key>
+ <category>GSM</category>
+ <import>import gsm</import>
+ <make>gsm.fcch_burst_tagger($OSR)</make>
+ <param>
+ <name>OSR</name>
+ <key>OSR</key>
+ <type>int</type>
+ </param>
+
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ </sink>
+
+ <sink>
+ <name>threshold</name>
+ <type>float</type>
+ </sink>
+
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ </source>
+</block>
diff --git a/grc/gsm_fcch_detector.xml b/grc/gsm_fcch_detector.xml
new file mode 100644
index 0000000..32d5379
--- /dev/null
+++ b/grc/gsm_fcch_detector.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<block>
+ <name>fcch_detector</name>
+ <key>gsm_fcch_detector</key>
+ <category>GSM</category>
+ <import>import gsm</import>
+ <make>gsm.fcch_detector($OSR)</make>
+<callback>set_OSR($OSR)</callback>
+ <param>
+ <name>OverSamplingRatio</name>
+ <key>OSR</key>
+ <value>4</value>
+ <type>raw</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ <vlen>1</vlen>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ <vlen>1</vlen>
+ </source>
+ <doc>Piotr Krysik
+Detects positions of FCCH bursts. At the end of each detected FCCH burst adds to the stream a tag with key "fcch" and value which is a frequency offset estimate. The input sampling frequency should be integer multiply of GSM GMKS symbol rate - 1625000/6 Hz.</doc>
+ <grc_source>/home/piotr/Odbiornik_gsm/gr-gsm/examples/gsm_fcch_detector.grc</grc_source>
+</block>
diff --git a/grc/gsm_sch_detector.xml b/grc/gsm_sch_detector.xml
new file mode 100644
index 0000000..7832f4a
--- /dev/null
+++ b/grc/gsm_sch_detector.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<block>
+ <name>sch_detector</name>
+ <key>gsm_sch_detector</key>
+ <category>GSM</category>
+ <import>import gsm</import>
+ <make>gsm.sch_detector($OSR)</make>
+ <param>
+ <name>OSR</name>
+ <key>OSR</key>
+ <type>int</type>
+<!-- <value>OSR</value>-->
+ </param>
+
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ </sink>
+
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ </source>
+</block>