From pczzs at yahoo.com Mon Mar 4 21:49:35 2019 From: pczzs at yahoo.com (P C) Date: Mon, 4 Mar 2019 15:49:35 -0600 Subject: Writing a Stand Alone Program Using GNURadio Blocks/Components Message-ID: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> This is my first post and I have been experimenting with an rtl-sdr for only a few weeks. So I am sure I am not doing a lot of things correctly.? But: I have created a GRC flow graph that does what I want.?? It has a rtl-sdr>FIR filter> I/Q samples> file. I need to create a stand alone program that when run, implements the same functions but rather then sending the samples to a file, passes them to my program for further processing. I intend to run it on a Raspberry Pi so the less overhead the better. Thanks In Advance. Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam.verdon at gmail.com Mon Mar 4 22:38:30 2019 From: sam.verdon at gmail.com (samuel verdon) Date: Mon, 4 Mar 2019 23:38:30 +0100 Subject: Writing a Stand Alone Program Using GNURadio Blocks/Components In-Reply-To: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> References: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> Message-ID: Hello, You can use a zmq block or socket to pass your data to your app or if you want you can write your own block that pass your data to your app via a callback method. Sam On Mon, 4 Mar 2019, 22:49 P C, wrote: > This is my first post and I have been experimenting with an rtl-sdr for > only a few weeks. So I am sure I am not doing a lot of things correctly. > But: > > I have created a GRC flow graph that does what I want. It has a > rtl-sdr>FIR filter> I/Q samples> file. > I need to create a stand alone program that when run, implements the same > functions but rather then sending the samples to a file, passes them to my > program for further processing. > > I intend to run it on a Raspberry Pi so the less overhead the better. > > Thanks In Advance. > > Pete > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pczzs at yahoo.com Tue Mar 5 04:05:37 2019 From: pczzs at yahoo.com (P C) Date: Mon, 4 Mar 2019 22:05:37 -0600 Subject: Writing a Stand Alone Program Using GNURadio Blocks/Components In-Reply-To: References: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> Message-ID: <28d35876-8196-3315-8c02-8e97fcc5eae1@yahoo.com> Sam, I never heard about "zmq block or socket to pass" I will look into those methods. Something tells me I should go the route to write my own block but I don't know where to start. Would you have a link? Note, I don't want a block of samples to go to my app, what I want is each time the FIR filter spits out a sample I want to process it with my app. TNX Pete On 3/4/2019 4:38 PM, samuel verdon wrote: > Hello, > > You can use a zmq block or socket to pass your data to your app or if > you want you can write your own block that pass your data to your app > via a callback method. > > Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From mueller at kit.edu Tue Mar 5 07:27:38 2019 From: mueller at kit.edu (=?utf-8?B?TcO8bGxlciwgTWFyY3VzIChDRUwp?=) Date: Tue, 5 Mar 2019 07:27:38 +0000 Subject: Writing a Stand Alone Program Using GNURadio Blocks/Components In-Reply-To: <28d35876-8196-3315-8c02-8e97fcc5eae1@yahoo.com> References: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> <28d35876-8196-3315-8c02-8e97fcc5eae1@yahoo.com> Message-ID: Hi Pete, as much as I like this mailing list, I think discussions on how to write GNU Radio blocks are best off on the GNU Radio mailing list[1]. GNU Radio has tutorials on how to write your own blocks, both for blocks written in Python (simplicity) and in C++ (speed/system programming); you can find them on [2]. How you communicate with your "app" depends on what that is ? is it a separate process continously running, can it be a thread in another process, or could one understand it as library? Generally, GNU Radio was (is) meant to be used as library that you can use from within your program; you'd just call the right GNU Radio functions from within your program to set up the flow graph, and then tell GNU Radio to spawn of the processes to run that flow graph, and then can interact with the signal processing / get the data it produces. (GQRX is an example of such a programm.) Whether that is easier for you than running a GNU Radio flow graph as a separate process interchanging data with your app is hard to tell. Best regards, Marus [1] discuss-gnuradio at gnu.org, sign up on https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [2] https://tutorials.gnuradio.org On Mon, 2019-03-04 at 22:05 -0600, P C wrote: > Sam, > I never heard about "zmq block or socket to pass" I will look into > those methods. > > Something tells me I should go the route to write my own block but I > don't know where to start. > Would you have a link? > > Note, I don't want a block of samples to go to my app, what I want is > each time the FIR filter spits out a sample I want to process it with > my app. > > TNX > Pete > > On 3/4/2019 4:38 PM, samuel verdon wrote: > > Hello, > > > > You can use a zmq block or socket to pass your data to your app or > > if you want you can write your own block that pass your data to > > your app via a callback method. > > > > Sam > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6582 bytes Desc: not available URL: From pczzs at yahoo.com Tue Mar 5 18:13:31 2019 From: pczzs at yahoo.com (P C) Date: Tue, 5 Mar 2019 12:13:31 -0600 Subject: Writing a Stand Alone Program Using GNURadio Blocks/Components In-Reply-To: References: <9ac9572e-bab3-d503-d128-962582e56ad2@yahoo.com> <28d35876-8196-3315-8c02-8e97fcc5eae1@yahoo.com> Message-ID: I did a "reply all" which may be sending this to accounts where it shouldn't go. Please accept my apologies if that is so. On 3/5/2019 1:27 AM, M?ller, Marcus (CEL) wrote: > GNU Radio has tutorials on how to write your own blocks, both for I have found some of those.??? But for some (stupid??) reason I linked in long after the introductory material in your links.? I will "start at the start" and see how that works. > > How you communicate with your "app" depends on what that is ? is it a > separate process continously running, can it be a thread in another > process, or could one understand it as library? Mine will be a continuously running process. > > Generally, GNU Radio was (is) meant to be used as library that you can > use from within your program; I sort of had that feeling but I had not stumbled on the right links to tell me how to do that. It looks like you have provided those links. One reason I came to this list is because I was having problems running GRC on my RPi.? I was concerned the RPi didn't have enough power for what I wanted so I was looking for a more direct way then going through GNURadio. With what you, Sam, and Dale provided I should be in good shape.....after I digest it. Thanks a bunch, Pete >> -------------- next part -------------- An HTML attachment was scrubbed... URL: