Hi All,

I would like to change the center freq of my UHD Sink depending on who the 
receiver is. So I wrote a custom block that will read what the destination mac 
address is for a packet, and send a message to change the center freq based on 
what destination address it is. This is the format for how I write the message:

{
               message_port_register_out(PDU_PORT_ID);
}
.
.
.
               command = pmt::make_dict();
               command = pmt::dict_add(command, pmt::mp(“freq”), 
pmt::mp(2.412e9));
               command = pmt::dict_add(command, pmt::mp(“chan”), pmt::mp(0));
               message_port_pub(PDU_PORT_ID, command);

I saw from other mailing list posts, that this was the syntax they used, but I 
can’t get it to actually the center frequency. Is there something I am doing 
wrong? I am using uhd version 3.10 and GRC version 3.7.11.1.

Thank you!!
-Sarah Leony

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to