aboutsummaryrefslogtreecommitdiffstats
path: root/grc/qa_utils
diff options
context:
space:
mode:
Diffstat (limited to 'grc/qa_utils')
-rw-r--r--grc/qa_utils/CMakeLists.txt25
-rw-r--r--grc/qa_utils/gsm_burst_sink_qa.xml12
-rw-r--r--grc/qa_utils/gsm_burst_source_qa.xml35
-rw-r--r--grc/qa_utils/gsm_message_sink.xml19
-rw-r--r--grc/qa_utils/gsm_message_source.xml32
5 files changed, 123 insertions, 0 deletions
diff --git a/grc/qa_utils/CMakeLists.txt b/grc/qa_utils/CMakeLists.txt
new file mode 100644
index 0000000..43398d4
--- /dev/null
+++ b/grc/qa_utils/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Copyright 2011,2012 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+install(FILES
+ gsm_burst_source_qa.xml
+ gsm_burst_sink_qa.xml
+ gsm_message_source.xml
+ gsm_message_sink.xml DESTINATION share/gnuradio/grc/blocks
+)
diff --git a/grc/qa_utils/gsm_burst_sink_qa.xml b/grc/qa_utils/gsm_burst_sink_qa.xml
new file mode 100644
index 0000000..c028da3
--- /dev/null
+++ b/grc/qa_utils/gsm_burst_sink_qa.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<block>
+ <name>QA Burst sink</name>
+ <key>gsm_burst_sink_qa</key>
+ <import>import grgsm</import>
+ <make>grgsm.burst_sink_qa()</make>
+
+ <sink>
+ <name>in</name>
+ <type>message</type>
+ </sink>
+</block>
diff --git a/grc/qa_utils/gsm_burst_source_qa.xml b/grc/qa_utils/gsm_burst_source_qa.xml
new file mode 100644
index 0000000..bb04cca
--- /dev/null
+++ b/grc/qa_utils/gsm_burst_source_qa.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<block>
+ <name>QA Burst source</name>
+ <key>gsm_burst_source_qa</key>
+ <import>import grgsm</import>
+ <make>grgsm.burst_source_qa($framenumbers, $timeslots, $bursts)</make>
+
+ <param>
+ <name>Frame numbers</name>
+ <key>framenumbers</key>
+ <value>[]</value>
+ <type>int_vector</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>Timeslots</name>
+ <key>timeslots</key>
+ <value>[]</value>
+ <type>int_vector</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>Bursts</name>
+ <key>bursts</key>
+ <value>[[],]</value>
+ <type>raw</type>
+ </param>
+
+ <source>
+ <name>out</name>
+ <type>message</type>
+ </source>
+</block>
diff --git a/grc/qa_utils/gsm_message_sink.xml b/grc/qa_utils/gsm_message_sink.xml
new file mode 100644
index 0000000..e0d6ac0
--- /dev/null
+++ b/grc/qa_utils/gsm_message_sink.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<block>
+ <name>Message Sink</name>
+ <key>gsm_message_sink</key>
+ <import>import grgsm</import>
+ <make>grgsm.message_sink()</make>
+
+ <sink>
+ <name>in</name>
+ <type>message</type>
+ </sink>
+
+ <doc>
+This block is a message sink for testing purposes.
+
+The data can be retrieved using function get_messages()
+
+ </doc>
+</block>
diff --git a/grc/qa_utils/gsm_message_source.xml b/grc/qa_utils/gsm_message_source.xml
new file mode 100644
index 0000000..ab06f65
--- /dev/null
+++ b/grc/qa_utils/gsm_message_source.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<block>
+ <name>Message Source</name>
+ <key>gsm_message_source</key>
+ <import>import grgsm</import>
+ <make>grgsm.message_source($messages)</make>
+
+ <param>
+ <name>Messages</name>
+ <key>messages</key>
+ <value>["02 04 01 00 00 00 c9 00 00 1d 3c e5 02 00 01 00 15 06 21 00 01 f0 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b",
+"02 04 01 00 00 00 ca 00 00 1d 3c e9 02 00 02 00 15 06 21 00 01 f0 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b",
+"02 04 01 00 00 00 cb 00 00 1d 3d 0e 01 00 00 00 59 06 1a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e5 04 00",
+"02 04 01 00 00 00 cb 00 00 1d 3d 12 02 00 00 00 15 06 21 00 01 f0 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b"]</value>
+ <type>raw</type>
+ <hide>true</hide>
+ </param>
+
+ <source>
+ <name>msgs</name>
+ <type>message</type>
+ </source>
+
+ <doc>
+This block is a basic message source for testing purposes.
+
+It takes a list of strings as input, where each string
+is a whitespace-separated list of hexadecimal values representing the data bytes of a message including the gsmtap header.
+
+Such strings can be obtained using the message printer with option "Print GSMTap header"
+ </doc>
+</block>