[prev in list] [next in list] [prev in thread] [next in thread] 

List:       usrp-users
Subject:    Re: [USRP-users] Messaging the DDC
From:       Marcus_Müller_via_USRP-users <usrp-users () lists ! ettus ! com>
Date:       2018-09-30 20:47:08
Message-ID: fc4a61188d7cd2e8032cf6d1205e3c7e6d94eabd.camel () ettus ! com
[Download RAW message or body]

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 <callback> 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

["0001-Adding-a-message-port-to-the-DDC-block-XML.patch" (0001-Adding-a-message-port-to-the-DDC-block-XML.patch)]

From 72223fc4bc5ea039d156498686fd1be0c2912af0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus Müller?= <marcus@hostalia.de>
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):
     <nports>$num_chans</nports>
   </sink>

+  <sink>
+    <name>rfnoc</name>
+    <type>message</type>
+    <optional>1</optional>
+  </sink>
+
   <source>
     <name>out</name>
     <type>complex</type>
--
2.17.1



_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic