[USRP-users] feedback from a USRP message

Jason Matusiak jason at gardettoengineering.com
Mon Oct 30 12:18:43 EDT 2017

Thanks Derek, that last link helped get me in the right direction. I set 
both to debug level (to try to get as much output as I can. What bothers 
me is that I get this message for sending what I feel like is a valid 
gr::debug :DEBUG: gr uhd usrp source0 - Processing command message 
((chan . 0) (freq . 2400000000))

but I get the same message for what should be a bad command (and i feel 
like should probably print that out):
gr::debug :DEBUG: gr uhd usrp source0 - Processing command message 
((chan . 0) (gain . 2400000000))

or even a total made up key:
gr::debug :DEBUG: gr uhd usrp source0 - Processing command message 
((chan . 0) (badData . 2400000000))

Am I giving too much credit to how the USRP error checks messages?

On 10/30/2017 11:30 AM, Derek Kozel wrote:
> Hi Jason,
> The command message handling in the USRP source in GNU Radio is a bit 
> interesting. The command may contain many pairs of key->value, most of 
> which end up in a call to their own handler. There is a debug message 
> printed for each of these handlers if you have GNU Radio debug 
> messages enabled.
> List of supported keys
> https://github.com/gnuradio/gnuradio/blob/a0adcd3347c7ffd6ef3c42ce7705a23978774d3b/gr-uhd/lib/usrp_block_impl.cc#L30
> There is also error reporting if the command type isn't correct.
> https://github.com/gnuradio/gnuradio/blob/a0adcd3347c7ffd6ef3c42ce7705a23978774d3b/gr-uhd/lib/usrp_block_impl.cc#L538
> If you aren't seeing the debug messages then try changing your GNU 
> Radio logging settings.
> https://gnuradio.org/doc/doxygen/page_logger.html
> Regards,
> Derek
> On Mon, Oct 30, 2017 at 2:54 PM, Jason Matusiak via USRP-users 
> <usrp-users at lists.ettus.com <mailto:usrp-users at lists.ettus.com>> wrote:
>     Is there anyway to get feedback from a sent message command to a
>     USRP source in GR?  I was sending some commands and was /pretty/
>     sure I was doing it right, but to know for sure I sent a bogus
>     command, and it didn't complain (I expected to see something on
>     the terminal).  Is there anyway to turn on some sort of print-out
>     to see that it accepted the commands I am sending (like changing
>     freqs)?  Or at the very least see when a bad command was sent?
>     _______________________________________________
>     USRP-users mailing list
>     USRP-users at lists.ettus.com <mailto:USRP-users at lists.ettus.com>
>     http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>     <http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171030/f5c57da8/attachment-0002.html>

More information about the USRP-users mailing list