summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/uhd_multi_usrp_sink.cc
diff options
context:
space:
mode:
authorJosh Blum2010-10-19 13:04:42 -0700
committerJosh Blum2010-10-19 13:04:42 -0700
commitf8c63c369e0e8800f76d427434424f7209fcde86 (patch)
tree5dcf9ba77d76bd342ba2fb72e5b59d764abc0cb8 /gr-uhd/lib/uhd_multi_usrp_sink.cc
parent343cba5663d0eefdd3ee3918bef812dc1bd75508 (diff)
downloadgnuradio-f8c63c369e0e8800f76d427434424f7209fcde86.tar.gz
gnuradio-f8c63c369e0e8800f76d427434424f7209fcde86.tar.bz2
gnuradio-f8c63c369e0e8800f76d427434424f7209fcde86.zip
uhd: tweaking timeouts for multi usrp blocks
Diffstat (limited to 'gr-uhd/lib/uhd_multi_usrp_sink.cc')
-rw-r--r--gr-uhd/lib/uhd_multi_usrp_sink.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gr-uhd/lib/uhd_multi_usrp_sink.cc b/gr-uhd/lib/uhd_multi_usrp_sink.cc
index 31dbac44f..17cd1ad78 100644
--- a/gr-uhd/lib/uhd_multi_usrp_sink.cc
+++ b/gr-uhd/lib/uhd_multi_usrp_sink.cc
@@ -128,7 +128,7 @@ public:
return _dev->get_device()->send(
input_items, noutput_items, metadata,
- _type, uhd::device::SEND_MODE_FULL_BUFF
+ _type, uhd::device::SEND_MODE_FULL_BUFF, 1.0
);
}
@@ -138,11 +138,14 @@ public:
uhd::tx_metadata_t metadata;
metadata.start_of_burst = true;
metadata.has_time_spec = true;
- metadata.time_spec = get_time_now() + uhd::time_spec_t(0.01); //10ms offset in future
+ //TODO: Time in the near future, must be less than source time in future
+ //because ethernet pause frames with throttle stream commands.
+ //It will be fixed with the invention of host-based flow control.
+ metadata.time_spec = get_time_now() + uhd::time_spec_t(0.05);
_dev->get_device()->send(
gr_vector_const_void_star(_nchan), 0, metadata,
- _type, uhd::device::SEND_MODE_ONE_PACKET
+ _type, uhd::device::SEND_MODE_ONE_PACKET, 1.0
);
return true;
}
@@ -155,7 +158,7 @@ public:
_dev->get_device()->send(
gr_vector_const_void_star(_nchan), 0, metadata,
- _type, uhd::device::SEND_MODE_ONE_PACKET
+ _type, uhd::device::SEND_MODE_ONE_PACKET, 1.0
);
return true;
}