Commit f3de63ca authored by Manolis Surligas's avatar Manolis Surligas

Add support for passing manually various device parameters

All flowgraphs now support user defined parameters for most of their
configuration capabilities. These include:
* RF gain
* IF gain
* BB gain
* Custom device arguments for setups with multiple SDRs. These
coresponds to the 'Device arguments' field of the Osmocom source block.
* Antenna selection for devices with multiple antennas (USRPs, etc)

Changing sampling rate is not supported (yet).

For listing the arguments just execute <flowgraph> --help in a terminal
window. 
parent cc9a305e
......@@ -178,7 +178,7 @@ SDR received samples</value>
</param>
<param>
<key>_coordinate</key>
<value>(1480, 988)</value>
<value>(805, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -392,6 +392,92 @@ TX sampling rate</value>
<value>0</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(382, 937)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>antenna</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>string</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_antenna</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(295, 937)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>bb_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_bb_gain</value>
</param>
</block>
<block>
<key>rational_resampler_xxx</key>
<param>
......@@ -467,7 +553,50 @@ TX sampling rate</value>
</param>
<param>
<key>_coordinate</key>
<value>(64, 984)</value>
<value>(47, 937)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>dev_args</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>string</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_dev_args</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(47, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -510,7 +639,7 @@ TX sampling rate</value>
</param>
<param>
<key>_coordinate</key>
<value>(744, 988)</value>
<value>(494, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -596,6 +725,49 @@ TX sampling rate</value>
<value>ccc</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(215, 937)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>if_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_if_gain</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
......@@ -648,11 +820,11 @@ we shift the LO a little further</value>
</param>
<param>
<key>ant0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['antenna']</value>
<value>satnogs.handle_rx_antenna(rx_sdr_device, antenna)</value>
</param>
<param>
<key>bb_gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['bb_gain']</value>
<value>satnogs.handle_rx_bb_gain(rx_sdr_device, bb_gain)</value>
</param>
<param>
<key>bw0</key>
......@@ -676,7 +848,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>if_gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['if_gain']</value>
<value>satnogs.handle_rx_if_gain(rx_sdr_device, if_gain)</value>
</param>
<param>
<key>iq_balance_mode0</key>
......@@ -684,7 +856,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['rf_gain']</value>
<value>satnogs.handle_rx_rf_gain(rx_sdr_device, rf_gain)</value>
</param>
<param>
<key>ant10</key>
......@@ -1936,7 +2108,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>args</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['dev_arg']</value>
<value>satnogs.handle_rx_dev_args(rx_sdr_device, dev_args)</value>
</param>
<param>
<key>_enabled</key>
......@@ -1944,7 +2116,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(16, 376)</value>
<value>(15, 311)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2063,7 +2235,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(1104, 996)</value>
<value>(734, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2165,7 +2337,50 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(472, 984)</value>
<value>(143, 937)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>rf_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_rf_gain</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(327, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2208,7 +2423,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(616, 984)</value>
<value>(414, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2251,7 +2466,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(312, 984)</value>
<value>(215, 857)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2498,7 +2713,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(872, 988)</value>
<value>(598, 857)</value>
</param>
<param>
<key>_rotation</key>
......
......@@ -178,7 +178,7 @@ SDR received samples</value>
</param>
<param>
<key>_coordinate</key>
<value>(1480, 988)</value>
<value>(845, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -475,6 +475,92 @@ TX sampling rate</value>
<value>analog.GR_COS_WAVE</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(398, 1065)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>antenna</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>string</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_antenna</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(311, 1065)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>bb_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_bb_gain</value>
</param>
</block>
<block>
<key>rational_resampler_xxx</key>
<param>
......@@ -673,6 +759,49 @@ tone. This tone is typically 500-800 Hz.</value>
<value>1500</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(63, 1065)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>dev_args</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>string</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_dev_args</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
......@@ -732,7 +861,7 @@ tone. This tone is typically 500-800 Hz.</value>
</param>
<param>
<key>_coordinate</key>
<value>(744, 988)</value>
<value>(534, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -818,6 +947,49 @@ tone. This tone is typically 500-800 Hz.</value>
<value>ccc</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(231, 1065)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>if_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_if_gain</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
......@@ -945,11 +1117,11 @@ we shift the LO a little further</value>
</param>
<param>
<key>ant0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['antenna']</value>
<value>satnogs.handle_rx_antenna(rx_sdr_device, antenna)</value>
</param>
<param>
<key>bb_gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['bb_gain']</value>
<value>satnogs.handle_rx_bb_gain(rx_sdr_device, bb_gain)</value>
</param>
<param>
<key>bw0</key>
......@@ -973,7 +1145,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>if_gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['if_gain']</value>
<value>satnogs.handle_rx_if_gain(rx_sdr_device, if_gain)</value>
</param>
<param>
<key>iq_balance_mode0</key>
......@@ -981,7 +1153,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>gain0</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['rf_gain']</value>
<value>satnogs.handle_rx_rf_gain(rx_sdr_device, rf_gain)</value>
</param>
<param>
<key>ant10</key>
......@@ -2233,7 +2405,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>args</key>
<value>satnogs.hw_rx_settings[rx_sdr_device]['dev_arg']</value>
<value>satnogs.handle_rx_dev_args(rx_sdr_device, dev_args)</value>
</param>
<param>
<key>_enabled</key>
......@@ -2241,7 +2413,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(16, 376)</value>
<value>(15, 359)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2360,7 +2532,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(1104, 996)</value>
<value>(773, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2403,7 +2575,50 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(472, 984)</value>
<value>(159, 1065)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>rf_gain</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>eng_float</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_rx_rf_gain</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(351, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2446,7 +2661,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(616, 984)</value>
<value>(446, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2489,7 +2704,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(312, 984)</value>
<value>(231, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2787,7 +3002,7 @@ we shift the LO a little further</value>
</param>
<param>
<key>_coordinate</key>
<value>(872, 988)</value>
<value>(638, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -2868,12 +3083,6 @@ we shift the LO a little further</value>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
<source_block_id>osmosdr_source_0</source_block_id>
<sink_block_id>satnogs_doppler_correction_cc_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
<source_block_id>satnogs_coarse_doppler_correction_cc_0</source_block_id>
<sink_block_id>freq_xlating_fir_filter_xxx_0</sink_block_id>
......
......@@ -178,7 +178,7 @@ SDR received samples</value>
</param>
<param>
<key>_coordinate</key>
<value>(1480, 988)</value>
<value>(805, 985)</value>
</param>
<param>
<key>_rotation</key>
......@@ -475,6 +475,92 @@ TX sampling rate</value>
<value>analog.GR_COS_WAVE</value>
</param>
</block>
<block>
<key>parameter</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(398, 1081)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>antenna</value>
</param>
<param>
<key>label</key>
<value></value>
</param>
<param>
<key>short_id</key>
<value></value>
</param>
<param>
<key>type</key>
<value>string</value>
</param>
<param>
<key>value</key>
<value>satnogs.not_set_antenna</value>
</param>
</block>
<block>
<key>parameter</key>
<param>