discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] External command USRP seg fault


From: samuel verdon
Subject: [Discuss-gnuradio] External command USRP seg fault
Date: Wed, 5 Dec 2018 10:14:35 +0100

 

Hello,

 

I’m trying to command my usrp B200mini via its command port. I used the documentation from here:

https://www.gnuradio.org/doc/doxygen/page_uhd.html

 

here is my command:

      pmt::pmt_t command = pmt::make_dict();

      command = pmt::dict_add(command, pmt::mp("gain"), pmt::mp(gain));       // Specify gain

      command = pmt::dict_add(command, pmt::mp("antenna"), pmt::mp("TX/RX")); // Switch antenna

      command = pmt::dict_add(command, pmt::mp("chan"), pmt::mp(0));          // Specify channel

      message_port_pub(pmt::mp("cmd") , command);

 

I connect my block to a debug message block, and I received this

 

************MESSAGE DEBUG PRINT***************

((chan. 0) (antenna, TX/RX) (gain, 63))

 

But when I connect to the “UHD: USRP sink” I get a segmentation fault…

I have tried different command always the same problem.

Can someone show me an example working with tis command?

I am quite deseparate..

 

Ubuntu 16.04

Gnuradio 3.7.12

UHD driver UHD_3.11

 

Thank you for your help

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]