Re: [USRP-users] Messaging the DDC
I wanted to close this link for others in case they stumble upon this thread (I forgot to do this earlier). The messages were indeed working fine, the problem was that I was tuning to the wrong place, and couldn't see my signal, so I didn't realize it was working. Since it is a CORDIC, if you are off by -2.5MHz (negative 2.5) say, you need to tune positive 2.5MHz to offset the negative spin (and vice-versa). All you need to do is send a dict with freq and the frequency you wantand it will work like a champ. - Original Message - Subject: RE: Re: [USRP-users] Messaging the DDC From: "Jason Matusiak" Date: 10/3/18 2:58 pm To: "Marcus Mller" , usrp-users@lists.ettus.com Marcus, Looking a little closer, I am a little confused. I can make the change, and that allows the message block to appear in GRC, but I am thinking that I need to uncomment the argument commands that set the DDS value, right? I don't see how it would work otherwise (Though it can be poked in via a variable, so I am not sure why that would work). - Original Message - Subject: RE: Re: [USRP-users] Messaging the DDC From: "Jason Matusiak" Date: 10/3/18 9:27 am To: "Marcus Mller" , usrp-users@lists.ettus.com Sorry, Marcus, I was out yesterday and then missed these responses. That is great! I'll give it a try today and report back! - Original Message - Subject: Re: [USRP-users] Messaging the DDC From: "Marcus Mller via USRP-users" Date: 9/30/18 4:47 pm To: usrp-users@lists.ettus.com Hi Jason, I was about to write code, but then realized: gr-ettus' Block impl already has what you need, the message port "rfnoc", which'll accept messages in the PMT dict format. You can extract the shape of information you need to send in from the tags in uhd_rfnoc_ddc.xml. I'm attaching what I hope will fix your problem as a patch (use with `git apply` from within gr-ettus). We'll most likely upstream a more general changeset. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] Messaging the DDC
Well, I tried to send out a message that was shaped like the callback, but it seems to be getting ignored. The first part was the string "freq", the second part was the frequency. When that didn't work, I added a third part that was the channel (1). I tried dictionaries and tuples, but no luck. Any guesses? - Original Message - Subject: RE: Re: [USRP-users] Messaging the DDC From: "Jason Matusiak" Date: 10/3/18 2:58 pm To: "Marcus Mller" , usrp-users@lists.ettus.com Marcus, Looking a little closer, I am a little confused. I can make the change, and that allows the message block to appear in GRC, but I am thinking that I need to uncomment the argument commands that set the DDS value, right? I don't see how it would work otherwise (Though it can be poked in via a variable, so I am not sure why that would work). - Original Message ----- Subject: RE: Re: [USRP-users] Messaging the DDC From: "Jason Matusiak" Date: 10/3/18 9:27 am To: "Marcus Mller" , usrp-users@lists.ettus.com Sorry, Marcus, I was out yesterday and then missed these responses. That is great! I'll give it a try today and report back! ----- Original Message ----- Subject: Re: [USRP-users] Messaging the DDC From: "Marcus Mller via USRP-users" Date: 9/30/18 4:47 pm To: usrp-users@lists.ettus.com Hi Jason, I was about to write code, but then realized: gr-ettus' Block impl already has what you need, the message port "rfnoc", which'll accept messages in the PMT dict format. You can extract the shape of information you need to send in from the tags in uhd_rfnoc_ddc.xml. I'm attaching what I hope will fix your problem as a patch (use with `git apply` from within gr-ettus). We'll most likely upstream a more general changeset. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] Messaging the DDC
Marcus, Looking a little closer, I am a little confused. I can make the change, and that allows the message block to appear in GRC, but I am thinking that I need to uncomment the argument commands that set the DDS value, right? I don't see how it would work otherwise (Though it can be poked in via a variable, so I am not sure why that would work). - Original Message - Subject: RE: Re: [USRP-users] Messaging the DDC From: "Jason Matusiak" Date: 10/3/18 9:27 am To: "Marcus Mller" , usrp-users@lists.ettus.com Sorry, Marcus, I was out yesterday and then missed these responses. That is great! I'll give it a try today and report back! - Original Message - Subject: Re: [USRP-users] Messaging the DDC From: "Marcus Mller via USRP-users" Date: 9/30/18 4:47 pm To: usrp-users@lists.ettus.com Hi Jason, I was about to write code, but then realized: gr-ettus' Block impl already has what you need, the message port "rfnoc", which'll accept messages in the PMT dict format. You can extract the shape of information you need to send in from the tags in uhd_rfnoc_ddc.xml. I'm attaching what I hope will fix your problem as a patch (use with `git apply` from within gr-ettus). We'll most likely upstream a more general changeset. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] Messaging the DDC
Sorry, Marcus, I was out yesterday and then missed these responses. That is great! I'll give it a try today and report back! - Original Message - Subject: Re: [USRP-users] Messaging the DDC From: "Marcus Mller via USRP-users" Date: 9/30/18 4:47 pm To: usrp-users@lists.ettus.com Hi Jason, I was about to write code, but then realized: gr-ettus' Block impl already has what you need, the message port "rfnoc", which'll accept messages in the PMT dict format. You can extract the shape of information you need to send in from the tags in uhd_rfnoc_ddc.xml. I'm attaching what I hope will fix your problem as a patch (use with `git apply` from within gr-ettus). We'll most likely upstream a more general changeset. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] Messaging the DDC
Hi Jason, I was about to write code, but then realized: gr-ettus' Block impl already has what you need, the message port "rfnoc", which'll accept messages in the PMT dict format. You can extract the shape of information you need to send in from the tags in uhd_rfnoc_ddc.xml. I'm attaching what I hope will fix your problem as a patch (use with `git apply` from within gr-ettus). We'll most likely upstream a more general changeset. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com From 72223fc4bc5ea039d156498686fd1be0c2912af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20M=C3=BCller?= Date: Sun, 30 Sep 2018 21:19:07 +0200 Subject: [PATCH] Adding a message port to the DDC block XML Other blocks already have that. The DDC block shouldn't be an exception to that! Reference email: [USRP-users] Messaging the DDC Date: Wed, 26 Sep 2018 19:45:07 -0400 (09/27/2018 01:45:07 AM) --- grc/uhd_rfnoc_ddc.xml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/grc/uhd_rfnoc_ddc.xml b/grc/uhd_rfnoc_ddc.xml index bb5fdc0..02c2389 100644 --- a/grc/uhd_rfnoc_ddc.xml +++ b/grc/uhd_rfnoc_ddc.xml @@ -118,6 +118,12 @@ for chan in xrange($num_chans): $num_chans + +rfnoc +message +1 + + out complex -- 2.17.1 ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] Messaging the DDC
Hi Jason, I'd agree, it'd be desirable if the block accepted messages; after all, that'd be a good, threadsafe thing to have. I'll be on a flight, and don't have an RFNoC device on me (I know, a shame), so I won't be able to test, but adding a message handler to rfnoc_generic_impl.cc should involve little to no magic. Then, you could use Tim O'Shea's message lambda block to transform your message into exactly the shape of message that the message handler would understand. Best regards, Marcus On Wed, 2018-09-26 at 19:45 -0400, Jason Matusiak via USRP-users wrote: > I have a block that outputs a message with a frequency. I would love > to be able to set the frequency adjustment in the RFNoC DDC, but I > don't see a way to do it it automagically. > > I am guessing that there is no way to do it even though it can be set > from a variable slider easily. Is there an option I am missing? > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
[USRP-users] Messaging the DDC
I have a block that outputs a message with a frequency. I would love to be able to set the frequency adjustment in the RFNoC DDC, but I don't see a way to do it it automagically. I am guessing that there is no way to do it even though it can be set from a variable slider easily. Is there an option I am missing?___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com