On Tue, Jan 23, 2018 at 02:11:21AM +0000, Sarah Tran via USRP-users wrote:
>    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.

Sarah,

this looks fine. Are you sure the messages are being received? Do you
see any log statements to that effect?

-- Martin

Attachment: signature.asc
Description: PGP signature

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

Reply via email to