{"id":68,"date":"2018-06-16T09:39:36","date_gmt":"2018-06-16T09:39:36","guid":{"rendered":"https:\/\/www.funwithelectronics.com\/wordpress\/?p=68"},"modified":"2018-06-17T18:21:15","modified_gmt":"2018-06-17T18:21:15","slug":"transmit-packet-when-pushing-a-button-in-a-gnu-radio-flow-graph-gui","status":"publish","type":"post","link":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/2018\/06\/16\/transmit-packet-when-pushing-a-button-in-a-gnu-radio-flow-graph-gui\/","title":{"rendered":"Transmit Packet when Pushing a Button in a GNU Radio Flow Graph GUI"},"content":{"rendered":"<p>In the <a href=\"https:\/\/github.com\/rubund\/capture-tools\/tree\/master\/gr-capture_tools\">capture_tools<\/a> out-of-tree module, one block called <em>tag_on_set_one_f<\/em> and one block called <em>file_source_on_tag<\/em> can be used together to send a stream of IQ samples from a file whenever a GUI button is pushed.<a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/button.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-78\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/button.png\" alt=\"\" width=\"508\" height=\"311\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/button.png 508w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/button-300x184.png 300w\" sizes=\"(max-width: 508px) 85vw, 508px\" \/><\/a><\/p>\n<p>Download this sample flow graph here: <a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/burst_msg_source_c.grc\">https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/burst_msg_source_c.grc<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>So <em>tag_on_set_one_f<\/em> will produce samples as fast a possible, and therefore a <em>throttle<\/em> block is needed after <em>file_source_on_tag<\/em> to keep the sampling rate under control.<\/p>\n<p><em>file_source_on_tag <\/em>produces zeros between &#8220;bursts&#8221;.<\/p>\n<p>If you have another block which for instance produced a packet whenever receiving a stream tag, it can also be used together with <em>tag_on_set_one_f<\/em> so that when a button is pushed, a packet is transmitted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the capture_tools out-of-tree module, one block called tag_on_set_one_f and one block called file_source_on_tag can be used together to send a stream of IQ samples from a file whenever a GUI button is pushed. Download this sample flow graph here: https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/burst_msg_source_c.grc &nbsp; So tag_on_set_one_f will produce samples as fast a possible, and therefore a throttle &hellip; <a href=\"https:\/\/www.funwithelectronics.com\/blog\/index.php\/2018\/06\/16\/transmit-packet-when-pushing-a-button-in-a-gnu-radio-flow-graph-gui\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Transmit Packet when Pushing a Button in a GNU Radio Flow Graph GUI&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/68"}],"collection":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":6,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":81,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/68\/revisions\/81"}],"wp:attachment":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}