On 03/04/2016 02:35 AM, Nigel Steed wrote:
> Thanks Marcus,
>
> The UHD Source finally understand the following:
>
> pmt::pmt_t timeStamp = pmt::cons(pmt::from_long(1),
> pmt::from_double(1)); d_rxCommand = pmt::dict_add(d_rxCommand,
> pmt::mp("time"), timeStamp);
>
> Although UHD Source reports processing the message, I eventually get
> a packet loss error and the N210 disconnects (no control response
> error).
>
> Do you think it maybe better for me to modify UHD Source and
> implement the timed command in the set_center_freq function in the
> usrp_source_impl.cc (UHD Source Block) ? As I am successfully
> stepping the UHD Source using the message port successfully and I
> just need to add a timed command so both channels re-tune together.
If you want to use the API calls, you can already do this without having
to modify the UHD source (by using set_command_time() and
set_center_frequency()). However, I'd recommend sticking with the messages.
Cheers,
M
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio