From 8a4ed30b9a9fcf7666c823a40b046dc39a1be84f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 3 Jun 2011 12:44:39 -0700 Subject: uhd: just send a mini EOB packet for tx timed samplesa --- host/examples/tx_timed_samples.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp index 79aa6738c..858de83d2 100644 --- a/host/examples/tx_timed_samples.cpp +++ b/host/examples/tx_timed_samples.cpp @@ -90,9 +90,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ while(num_acc_samps < total_num_samps){ size_t samps_to_send = std::min(total_num_samps - num_acc_samps, buff.size()); - //ensure the the last packet has EOB set - md.end_of_burst = samps_to_send < buff.size(); - //send a single packet size_t num_tx_samps = usrp->get_device()->send( &buff.front(), samps_to_send, md, @@ -109,6 +106,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ num_acc_samps += num_tx_samps; } + //send a mini EOB packet + md.end_of_burst = true; + usrp->get_device()->send("", 0, md, + uhd::io_type_t::COMPLEX_FLOAT32, + uhd::device::SEND_MODE_FULL_BUFF + ); + std::cout << std::endl << "Waiting for async burst ACK... " << std::flush; uhd::async_metadata_t async_md; bool got_async_burst_ack = false; -- cgit v1.2.3