Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New FIFO names and updated documentation.

  • Loading branch information...
commit c2ff8933d6ee80926e0e1943b375bc6ecf0607e6 1 parent 40f00bb
@csete authored
Showing with 356 additions and 355 deletions.
  1. +2 −1  README
  2. +101 −101 gmsk_rx.grc
  3. +47 −47 gmsk_sim.grc
  4. +119 −119 gmsk_trx.grc
  5. +78 −78 gmsk_tx.grc
  6. +9 −9 gst-cmd.txt
View
3  README
@@ -1,6 +1,7 @@
This repository contains simple GNU Radio Companion scripts that I have used for simple DVB setup. It's no DVB-T or DVB-S system (yet), just a simple way to get a webcam on the air.
-For video processing I used Gstreamer and connected to GNU Radio using named pipes. See http://wiki.oz9aec.net/index.php/Simple_DVB_with_Gstreamer_and_GNU_Radio for more details.
+For video processing I used Gstreamer connected to GNU Radio using named pipes.
+See http://wiki.oz9aec.net/index.php/Simple_DVB_with_Gstreamer_and_GNU_Radio for more details.
gmsk_tx.grc and gmsk_rx.grc:
A simple GMSK transmitter and receiver pair that can be used on separate computers and USRPs.
View
202 gmsk_rx.grc
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
- <timestamp>Sat Aug 7 15:24:47 2010</timestamp>
+ <timestamp>Sat Sep 4 23:53:21 2010</timestamp>
<block>
<key>options</key>
<param>
@@ -57,61 +57,6 @@
</param>
</block>
<block>
- <key>low_pass_filter</key>
- <param>
- <key>id</key>
- <value>low_pass_filter_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>type</key>
- <value>fir_filter_ccf</value>
- </param>
- <param>
- <key>decim</key>
- <value>1</value>
- </param>
- <param>
- <key>interp</key>
- <value>1</value>
- </param>
- <param>
- <key>gain</key>
- <value>1</value>
- </param>
- <param>
- <key>samp_rate</key>
- <value>samp_rate</value>
- </param>
- <param>
- <key>cutoff_freq</key>
- <value>350000</value>
- </param>
- <param>
- <key>width</key>
- <value>50000</value>
- </param>
- <param>
- <key>win</key>
- <value>firdes.WIN_HAMMING</value>
- </param>
- <param>
- <key>beta</key>
- <value>6.76</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(241, 116)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
<key>wxgui_fftsink2</key>
<param>
<key>id</key>
@@ -300,6 +245,37 @@
</param>
</block>
<block>
+ <key>blks2_packet_decoder</key>
+ <param>
+ <key>id</key>
+ <value>blks2_packet_decoder_0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>byte</value>
+ </param>
+ <param>
+ <key>access_code</key>
+ <value></value>
+ </param>
+ <param>
+ <key>threshold</key>
+ <value>-1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(732, 154)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
<key>blks2_gmsk_demod</key>
<param>
<key>id</key>
@@ -339,38 +315,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(466, 132)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blks2_packet_decoder</key>
- <param>
- <key>id</key>
- <value>blks2_packet_decoder_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>type</key>
- <value>byte</value>
- </param>
- <param>
- <key>access_code</key>
- <value></value>
- </param>
- <param>
- <key>threshold</key>
- <value>-1</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(717, 156)</value>
+ <value>(481, 130)</value>
</param>
<param>
<key>_rotation</key>
@@ -381,7 +326,7 @@
<key>gr_file_sink</key>
<param>
<key>id</key>
- <value>gr_file_sink_1</value>
+ <value>rx_video_fifo</value>
</param>
<param>
<key>_enabled</key>
@@ -389,7 +334,7 @@
</param>
<param>
<key>file</key>
- <value>video2.ts</value>
+ <value>rxfifo.ts</value>
</param>
<param>
<key>type</key>
@@ -405,7 +350,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(924, 156)</value>
+ <value>(939, 154)</value>
</param>
<param>
<key>_rotation</key>
@@ -416,7 +361,7 @@
<key>usrp_simple_source_x</key>
<param>
<key>id</key>
- <value>usrp_simple_source_x_0</value>
+ <value>usrp_source</value>
</param>
<param>
<key>_enabled</key>
@@ -471,33 +416,88 @@
<value>0</value>
</param>
</block>
+ <block>
+ <key>low_pass_filter</key>
+ <param>
+ <key>id</key>
+ <value>low_pass_filter</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>fir_filter_ccf</value>
+ </param>
+ <param>
+ <key>decim</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>interp</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>gain</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>cutoff_freq</key>
+ <value>350000</value>
+ </param>
+ <param>
+ <key>width</key>
+ <value>50000</value>
+ </param>
+ <param>
+ <key>win</key>
+ <value>firdes.WIN_HAMMING</value>
+ </param>
+ <param>
+ <key>beta</key>
+ <value>6.76</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(256, 114)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
<connection>
- <source_block_id>usrp_simple_source_x_0</source_block_id>
+ <source_block_id>usrp_source</source_block_id>
<sink_block_id>wxgui_fftsink2_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>blks2_gmsk_demod_0</source_block_id>
- <sink_block_id>blks2_packet_decoder_0</sink_block_id>
+ <source_block_id>usrp_source</source_block_id>
+ <sink_block_id>low_pass_filter</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>blks2_packet_decoder_0</source_block_id>
- <sink_block_id>gr_file_sink_1</sink_block_id>
+ <source_block_id>low_pass_filter</source_block_id>
+ <sink_block_id>blks2_gmsk_demod_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>usrp_simple_source_x_0</source_block_id>
- <sink_block_id>low_pass_filter_0</sink_block_id>
+ <source_block_id>blks2_packet_decoder_0</source_block_id>
+ <sink_block_id>rx_video_fifo</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>low_pass_filter_0</source_block_id>
- <sink_block_id>blks2_gmsk_demod_0</sink_block_id>
+ <source_block_id>blks2_gmsk_demod_0</source_block_id>
+ <sink_block_id>blks2_packet_decoder_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
View
94 gmsk_sim.grc
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
- <timestamp>Sun Aug 8 01:14:35 2010</timestamp>
+ <timestamp>Sat Sep 4 23:52:26 2010</timestamp>
<block>
<key>options</key>
<param>
@@ -162,41 +162,6 @@
</param>
</block>
<block>
- <key>gr_file_sink</key>
- <param>
- <key>id</key>
- <value>gr_file_sink_1</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>file</key>
- <value>video2.ts</value>
- </param>
- <param>
- <key>type</key>
- <value>byte</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>unbuffered</key>
- <value>False</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(907, 471)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
<key>blks2_packet_decoder</key>
<param>
<key>id</key>
@@ -606,6 +571,41 @@
</param>
</block>
<block>
+ <key>gr_file_source</key>
+ <param>
+ <key>id</key>
+ <value>gr_file_source_0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>file</key>
+ <value>txfifo.ts</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>byte</value>
+ </param>
+ <param>
+ <key>repeat</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>vlen</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(164, 112)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
<key>blks2_packet_encoder</key>
<param>
<key>id</key>
@@ -633,15 +633,15 @@
</param>
<param>
<key>pad_for_usrp</key>
- <value>True</value>
+ <value>False</value>
</param>
<param>
<key>payload_length</key>
- <value>0</value>
+ <value>4000</value>
</param>
<param>
<key>_coordinate</key>
- <value>(402, 237)</value>
+ <value>(400, 235)</value>
</param>
<param>
<key>_rotation</key>
@@ -649,10 +649,10 @@
</param>
</block>
<block>
- <key>gr_file_source</key>
+ <key>gr_file_sink</key>
<param>
<key>id</key>
- <value>gr_file_source_0</value>
+ <value>gr_file_sink_1</value>
</param>
<param>
<key>_enabled</key>
@@ -660,23 +660,23 @@
</param>
<param>
<key>file</key>
- <value>video1.ts</value>
+ <value>rxfifo.ts</value>
</param>
<param>
<key>type</key>
<value>byte</value>
</param>
<param>
- <key>repeat</key>
- <value>False</value>
- </param>
- <param>
<key>vlen</key>
<value>1</value>
</param>
<param>
+ <key>unbuffered</key>
+ <value>False</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(164, 112)</value>
+ <value>(907, 471)</value>
</param>
<param>
<key>_rotation</key>
View
238 gmsk_trx.grc
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
- <timestamp>Tue Aug 24 11:40:29 2010</timestamp>
+ <timestamp>Sat Sep 4 23:50:38 2010</timestamp>
<block>
<key>options</key>
<param>
@@ -334,61 +334,6 @@
<key>variable_slider</key>
<param>
<key>id</key>
- <value>rfgain_rx</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>label</key>
- <value>RX Gain</value>
- </param>
- <param>
- <key>value</key>
- <value>28</value>
- </param>
- <param>
- <key>min</key>
- <value>0</value>
- </param>
- <param>
- <key>max</key>
- <value>100</value>
- </param>
- <param>
- <key>num_steps</key>
- <value>100</value>
- </param>
- <param>
- <key>style</key>
- <value>wx.SL_HORIZONTAL</value>
- </param>
- <param>
- <key>converver</key>
- <value>float_converter</value>
- </param>
- <param>
- <key>grid_pos</key>
- <value></value>
- </param>
- <param>
- <key>notebook</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(32, 303)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>variable_slider</key>
- <param>
- <key>id</key>
<value>rfgain_tx</value>
</param>
<param>
@@ -500,6 +445,41 @@
</param>
</block>
<block>
+ <key>blks2_gmsk_mod</key>
+ <param>
+ <key>id</key>
+ <value>blks2_gmsk_mod_0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>samples_per_symbol</key>
+ <value>2</value>
+ </param>
+ <param>
+ <key>bt</key>
+ <value>0.35</value>
+ </param>
+ <param>
+ <key>verbose</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>log</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(437, 664)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
<key>usrp_simple_sink_x</key>
<param>
<key>id</key>
@@ -543,7 +523,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(849, 634)</value>
+ <value>(849, 632)</value>
</param>
<param>
<key>_rotation</key>
@@ -551,34 +531,54 @@
</param>
</block>
<block>
- <key>gr_file_source</key>
+ <key>variable_slider</key>
<param>
<key>id</key>
- <value>gr_file_source_0</value>
+ <value>rfgain_rx</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>file</key>
- <value>video1.ts</value>
+ <key>label</key>
+ <value>RX Gain</value>
</param>
<param>
- <key>type</key>
- <value>byte</value>
+ <key>value</key>
+ <value>15</value>
</param>
<param>
- <key>repeat</key>
- <value>False</value>
+ <key>min</key>
+ <value>0</value>
</param>
<param>
- <key>vlen</key>
- <value>1</value>
+ <key>max</key>
+ <value>100</value>
+ </param>
+ <param>
+ <key>num_steps</key>
+ <value>100</value>
+ </param>
+ <param>
+ <key>style</key>
+ <value>wx.SL_HORIZONTAL</value>
+ </param>
+ <param>
+ <key>converver</key>
+ <value>float_converter</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value></value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value></value>
</param>
<param>
<key>_coordinate</key>
- <value>(30, 664)</value>
+ <value>(32, 303)</value>
</param>
<param>
<key>_rotation</key>
@@ -586,34 +586,34 @@
</param>
</block>
<block>
- <key>blks2_gmsk_mod</key>
+ <key>gr_file_source</key>
<param>
<key>id</key>
- <value>blks2_gmsk_mod_0</value>
+ <value>gr_file_source_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>samples_per_symbol</key>
- <value>2</value>
+ <key>file</key>
+ <value>txfifo.ts</value>
</param>
<param>
- <key>bt</key>
- <value>0.35</value>
+ <key>type</key>
+ <value>byte</value>
</param>
<param>
- <key>verbose</key>
+ <key>repeat</key>
<value>False</value>
</param>
<param>
- <key>log</key>
- <value>False</value>
+ <key>vlen</key>
+ <value>1</value>
</param>
<param>
<key>_coordinate</key>
- <value>(437, 664)</value>
+ <value>(29, 664)</value>
</param>
<param>
<key>_rotation</key>
@@ -656,7 +656,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(228, 642)</value>
+ <value>(226, 640)</value>
</param>
<param>
<key>_rotation</key>
@@ -664,30 +664,46 @@
</param>
</block>
<block>
- <key>blks2_packet_decoder</key>
+ <key>blks2_gmsk_demod</key>
<param>
<key>id</key>
- <value>blks2_packet_decoder_0</value>
+ <value>blks2_gmsk_demod_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>type</key>
- <value>byte</value>
+ <key>samples_per_symbol</key>
+ <value>2</value>
</param>
<param>
- <key>access_code</key>
- <value></value>
+ <key>gain_mu</key>
+ <value>0.175</value>
</param>
<param>
- <key>threshold</key>
- <value>-1</value>
+ <key>mu</key>
+ <value>0.5</value>
+ </param>
+ <param>
+ <key>omega_relative_limit</key>
+ <value>0.005</value>
+ </param>
+ <param>
+ <key>freq_error</key>
+ <value>0.0</value>
+ </param>
+ <param>
+ <key>verbose</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>log</key>
+ <value>False</value>
</param>
<param>
<key>_coordinate</key>
- <value>(704, 152)</value>
+ <value>(458, 131)</value>
</param>
<param>
<key>_rotation</key>
@@ -706,7 +722,7 @@
</param>
<param>
<key>file</key>
- <value>video2.ts</value>
+ <value>rxfifo.ts</value>
</param>
<param>
<key>type</key>
@@ -722,7 +738,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(911, 152)</value>
+ <value>(917, 155)</value>
</param>
<param>
<key>_rotation</key>
@@ -730,46 +746,30 @@
</param>
</block>
<block>
- <key>blks2_gmsk_demod</key>
+ <key>blks2_packet_decoder</key>
<param>
<key>id</key>
- <value>blks2_gmsk_demod_0</value>
+ <value>blks2_packet_decoder_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>samples_per_symbol</key>
- <value>2</value>
- </param>
- <param>
- <key>gain_mu</key>
- <value>0.175</value>
- </param>
- <param>
- <key>mu</key>
- <value>0.5</value>
- </param>
- <param>
- <key>omega_relative_limit</key>
- <value>0.005</value>
- </param>
- <param>
- <key>freq_error</key>
- <value>0.0</value>
+ <key>type</key>
+ <value>byte</value>
</param>
<param>
- <key>verbose</key>
- <value>False</value>
+ <key>access_code</key>
+ <value></value>
</param>
<param>
- <key>log</key>
- <value>False</value>
+ <key>threshold</key>
+ <value>-1</value>
</param>
<param>
<key>_coordinate</key>
- <value>(454, 130)</value>
+ <value>(710, 155)</value>
</param>
<param>
<key>_rotation</key>
@@ -807,14 +807,14 @@
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>gr_file_source_0</source_block_id>
- <sink_block_id>blks2_packet_encoder_0</sink_block_id>
+ <source_block_id>blks2_packet_encoder_0</source_block_id>
+ <sink_block_id>blks2_gmsk_mod_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
- <source_block_id>blks2_packet_encoder_0</source_block_id>
- <sink_block_id>blks2_gmsk_mod_0</sink_block_id>
+ <source_block_id>gr_file_source_0</source_block_id>
+ <sink_block_id>blks2_packet_encoder_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
View
156 gmsk_tx.grc
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
- <timestamp>Tue Aug 24 11:40:50 2010</timestamp>
+ <timestamp>Sat Sep 4 23:50:59 2010</timestamp>
<block>
<key>options</key>
<param>
@@ -158,34 +158,34 @@
</param>
</block>
<block>
- <key>gr_file_source</key>
+ <key>blks2_gmsk_mod</key>
<param>
<key>id</key>
- <value>gr_file_source_0</value>
+ <value>blks2_gmsk_mod_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>file</key>
- <value>video1.ts</value>
+ <key>samples_per_symbol</key>
+ <value>2</value>
</param>
<param>
- <key>type</key>
- <value>byte</value>
+ <key>bt</key>
+ <value>0.35</value>
</param>
<param>
- <key>repeat</key>
+ <key>verbose</key>
<value>False</value>
</param>
<param>
- <key>vlen</key>
- <value>1</value>
+ <key>log</key>
+ <value>False</value>
</param>
<param>
<key>_coordinate</key>
- <value>(24, 218)</value>
+ <value>(431, 216)</value>
</param>
<param>
<key>_rotation</key>
@@ -193,34 +193,30 @@
</param>
</block>
<block>
- <key>blks2_gmsk_mod</key>
+ <key>gr_multiply_const_vxx</key>
<param>
<key>id</key>
- <value>blks2_gmsk_mod_0</value>
+ <value>gr_multiply_const_vxx_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>samples_per_symbol</key>
- <value>2</value>
- </param>
- <param>
- <key>bt</key>
- <value>0.35</value>
+ <key>type</key>
+ <value>complex</value>
</param>
<param>
- <key>verbose</key>
- <value>False</value>
+ <key>const</key>
+ <value>signal</value>
</param>
<param>
- <key>log</key>
- <value>False</value>
+ <key>vlen</key>
+ <value>1</value>
</param>
<param>
<key>_coordinate</key>
- <value>(431, 216)</value>
+ <value>(644, 224)</value>
</param>
<param>
<key>_rotation</key>
@@ -228,42 +224,54 @@
</param>
</block>
<block>
- <key>blks2_packet_encoder</key>
+ <key>variable_slider</key>
<param>
<key>id</key>
- <value>blks2_packet_encoder_0</value>
+ <value>rfgain</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>type</key>
- <value>byte</value>
+ <key>label</key>
+ <value>RF</value>
</param>
<param>
- <key>samples_per_symbol</key>
- <value>2</value>
+ <key>value</key>
+ <value>0</value>
</param>
<param>
- <key>bits_per_symbol</key>
- <value>1</value>
+ <key>min</key>
+ <value>0</value>
</param>
<param>
- <key>access_code</key>
- <value></value>
+ <key>max</key>
+ <value>50</value>
</param>
<param>
- <key>pad_for_usrp</key>
- <value>False</value>
+ <key>num_steps</key>
+ <value>50</value>
</param>
<param>
- <key>payload_length</key>
- <value>4000</value>
+ <key>style</key>
+ <value>wx.SL_HORIZONTAL</value>
+ </param>
+ <param>
+ <key>converver</key>
+ <value>float_converter</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value></value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value></value>
</param>
<param>
<key>_coordinate</key>
- <value>(222, 194)</value>
+ <value>(842, 26)</value>
</param>
<param>
<key>_rotation</key>
@@ -314,7 +322,7 @@
</param>
<param>
<key>_coordinate</key>
- <value>(846, 186)</value>
+ <value>(846, 184)</value>
</param>
<param>
<key>_rotation</key>
@@ -322,10 +330,10 @@
</param>
</block>
<block>
- <key>gr_multiply_const_vxx</key>
+ <key>blks2_packet_encoder</key>
<param>
<key>id</key>
- <value>gr_multiply_const_vxx_0</value>
+ <value>blks2_packet_encoder_0</value>
</param>
<param>
<key>_enabled</key>
@@ -333,19 +341,31 @@
</param>
<param>
<key>type</key>
- <value>complex</value>
+ <value>byte</value>
</param>
<param>
- <key>const</key>
- <value>signal</value>
+ <key>samples_per_symbol</key>
+ <value>2</value>
</param>
<param>
- <key>vlen</key>
+ <key>bits_per_symbol</key>
<value>1</value>
</param>
<param>
+ <key>access_code</key>
+ <value></value>
+ </param>
+ <param>
+ <key>pad_for_usrp</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>payload_length</key>
+ <value>4000</value>
+ </param>
+ <param>
<key>_coordinate</key>
- <value>(644, 224)</value>
+ <value>(220, 192)</value>
</param>
<param>
<key>_rotation</key>
@@ -353,54 +373,34 @@
</param>
</block>
<block>
- <key>variable_slider</key>
+ <key>gr_file_source</key>
<param>
<key>id</key>
- <value>rfgain</value>
+ <value>gr_file_source_0</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
- <key>label</key>
- <value>RF</value>
- </param>
- <param>
- <key>value</key>
- <value>0</value>
- </param>
- <param>
- <key>min</key>
- <value>0</value>
- </param>
- <param>
- <key>max</key>
- <value>50</value>
- </param>
- <param>
- <key>num_steps</key>
- <value>50</value>
- </param>
- <param>
- <key>style</key>
- <value>wx.SL_HORIZONTAL</value>
+ <key>file</key>
+ <value>txfifo.ts</value>
</param>
<param>
- <key>converver</key>
- <value>float_converter</value>
+ <key>type</key>
+ <value>byte</value>
</param>
<param>
- <key>grid_pos</key>
- <value></value>
+ <key>repeat</key>
+ <value>False</value>
</param>
<param>
- <key>notebook</key>
- <value></value>
+ <key>vlen</key>
+ <value>1</value>
</param>
<param>
<key>_coordinate</key>
- <value>(842, 26)</value>
+ <value>(24, 216)</value>
</param>
<param>
<key>_rotation</key>
View
18 gst-cmd.txt
@@ -1,32 +1,32 @@
Gstreamer commands to use with the simple DVB TX/RX. For more tips and tricks see http://wiki.oz9aec.net/index.php/Gstreamer_Cheat_Sheet
Notes:
-- video1.ts and video2.ts are named pipes created using the "mkfifo" command.
+- txfifo.ts and rxfifo.ts are named pipes created using the "mkfifo" command.
- The packet encoder adds 12 bytes / packet overhead. Therefore, when USRP rate is set to
1 Msps, GMSK modulator to 2 samples / symbol and the packet encoder payload size is set to 4000,
- the packet encoder overhead will be 1.5 kbps, leaving 498.5 kbps for the video. Hogher and lower
- rates wil lwork too, tough.
+ the packet encoder overhead will be 1.5 kbps, leaving 498.5 kbps for the video. Higher and lower
+ rates will work too, tough.
1. Launch a video test source encoded to H.264/MPEG-TS and send it to a named pipe called video1.ts:
-gst-launch -e videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! x264enc bitrate=498 ! mpegtsmux ! filesink location=video1.ts
+gst-launch -e videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! x264enc bitrate=498 ! mpegtsmux ! filesink location=txfifo.ts
2. Same as above but adds some nice text overlay:
-gst-launch -e videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=left valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=center valign=top shaded-background=true ! x264enc bitrate=498 ! mpegtsmux ! filesink location=video1.ts
+gst-launch -e videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=left valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=center valign=top shaded-background=true ! x264enc bitrate=498 ! mpegtsmux ! filesink location=txfifo.ts
3. Same as above but uses webcam instead of videotestsrc:
-gst-launch -e -v v4l2src device="/dev/video1" ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=right valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=left valign=bottom shaded-background=true ! x264enc bitrate=498 ! mpegtsmux ! filesink location=video1.ts
+gst-launch -e -v v4l2src device="/dev/video1" ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=right valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=left valign=bottom shaded-background=true ! x264enc bitrate=498 ! mpegtsmux ! filesink location=txfifo.ts
On the receiver side you can simply run mplayer:
-mplayer video2.ts
+mplayer rxfifo.ts
A Gstreamer based player would look something like this:
-gst-launch -v playbin uri=file:///path/to/video2.ts
+gst-launch -v playbin uri=file:///path/to/rxfifo.ts
Unfortunately this does not work with the current setup. I suspect it is due to the mixed CBR/VBR in the setup.
We could also add a local monitor on the TX side; however, this doesn't work on Ubuntu 10.04 but does work on 9.10 (suspecting either x264enc or libx264 regression):
-gst-launch -e -v videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=left valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=center valign=top shaded-background=true tee name="splitter" ! queue ! xvimagesink sync=false splitter. ! queue ! x264enc bitrate=498 ! mpegtsmux ! filesink location=video1.ts
+gst-launch -e -v videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! timeoverlay halign=left valign=bottom shaded-background=true ! textoverlay text="Test Video 640x360 25fps" halign=center valign=top shaded-background=true tee name="splitter" ! queue ! xvimagesink sync=false splitter. ! queue ! x264enc bitrate=498 ! mpegtsmux ! filesink location=txfifo.ts
Alex
Please sign in to comment.
Something went wrong with that request. Please try again.