aboutsummaryrefslogtreecommitdiffstats
path: root/grc/trx
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2019-07-16 15:39:11 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2019-07-18 10:33:19 +0200
commitdc4cb983444ccb765f739b9b07e54bcff4ca48e5 (patch)
tree6f806839fd54ceb22b4ad264679ecf1823af4e1e /grc/trx
parentcd69577a405160b8de5d15add39121121897bf21 (diff)
trx: renaming of old freq hopping block and creation of a new one
The old freq_hopper -controlling USRP frequency with use of tags - was renamed to freq_hopper_tag. The new one - freq_hopper_msg - that uses uhd_source or uhd_sink control message input was created. Change-Id: Ic867446314ef2ee6903cef85d48c280981132dae
Diffstat (limited to 'grc/trx')
-rw-r--r--grc/trx/CMakeLists.txt3
-rw-r--r--grc/trx/gsm_freq_hopper_msg.xml81
-rw-r--r--grc/trx/gsm_freq_hopper_tag.xml (renamed from grc/trx/gsm_freq_hopping.xml)6
3 files changed, 86 insertions, 4 deletions
diff --git a/grc/trx/CMakeLists.txt b/grc/trx/CMakeLists.txt
index 0c7a636..81ef6ed 100644
--- a/grc/trx/CMakeLists.txt
+++ b/grc/trx/CMakeLists.txt
@@ -19,6 +19,7 @@
install(FILES
gsm_trx_burst_if.xml
- gsm_freq_hopping.xml
+ gsm_freq_hopper_tag.xml
+ gsm_freq_hopper_msg.xml
DESTINATION share/gnuradio/grc/blocks
)
diff --git a/grc/trx/gsm_freq_hopper_msg.xml b/grc/trx/gsm_freq_hopper_msg.xml
new file mode 100644
index 0000000..0175816
--- /dev/null
+++ b/grc/trx/gsm_freq_hopper_msg.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<block>
+ <name>freq_hopper_msg</name>
+ <key>gsm_freq_hopper_msg</key>
+ <import>import grgsm</import>
+ <make>grgsm.freq_hopper_msg($samp_rate, $start_fc_rx, $start_fc_tx, $rx_hopping, $tx_hopping, $freq_change_period)</make>
+<!-- $hopping_cmd-->
+<!-- <callback>set_fn_time_reference($init_fn, $init_time_secs, $init_time_fracs)</callback>-->
+<!-- <param>-->
+<!-- <name>Initial hopping command</name>-->
+<!-- <key>hopping_cmd</key>-->
+<!-- <value>pmt.to_pmt({'cmd': 'start', 'hopping_params': {'hsn': 1, 'maio': 0, 'ma': [1,2,3,4]} })</value>-->
+<!-- <type>raw</type>-->
+<!-- <hide>part</hide>-->
+<!-- </param>-->
+
+ <param>
+ <name>Sample rate</name>
+ <key>samp_rate</key>
+ <value>samp_rate</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>start_fc_rx</name>
+ <key>start_fc_rx</key>
+ <value>fc</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>start_fc_tx</name>
+ <key>start_fc_tx</key>
+ <value>fc</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>rx_hopping</name>
+ <key>rx_hopping</key>
+ <value>True</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>tx_hopping</name>
+ <key>tx_hopping</key>
+ <value>True</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <param>
+ <name>freq_change_period</name>
+ <key>freq_change_period</key>
+ <value>0.0046</value>
+ <type>float</type>
+ <hide>part</hide>
+ </param>
+
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ </sink>
+
+<!-- <sink>-->
+<!-- <name>hopping_cmd</name>-->
+<!-- <type>message</type>-->
+<!-- <optional>1</optional>-->
+<!-- </sink>-->
+
+ <source>
+ <name>control</name>
+ <type>message</type>
+ <optional>1</optional>
+ </source>
+</block>
diff --git a/grc/trx/gsm_freq_hopping.xml b/grc/trx/gsm_freq_hopper_tag.xml
index 9e71e53..b9d1372 100644
--- a/grc/trx/gsm_freq_hopping.xml
+++ b/grc/trx/gsm_freq_hopper_tag.xml
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<block>
- <name>freq_hopping</name>
- <key>gsm_freq_hopping</key>
+ <name>freq_hopper_tag</name>
+ <key>gsm_freq_hopper_tag</key>
<import>import grgsm</import>
- <make>grgsm.freq_hopping($hopping_cmd)</make>
+ <make>grgsm.freq_hopper_tag($hopping_cmd)</make>
<!-- <callback>set_fn_time_reference($init_fn, $init_time_secs, $init_time_fracs)</callback>-->
<param>
<name>Initial hopping command</name>