From f8bc7c351ff96ffca57ad30535de315cf7e1c8ae Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Sat, 9 Nov 2013 21:48:45 -0500 Subject: Transceiver52M: UHD: Continue on receive and send timeouts With testing on current UHD releases, currently 003.005.xxx series, timeout errors on both receive and transmit are recoverable on network and USB based devices. Remove the fatal error conditions. Signed-off-by: Thomas Tsou --- Transceiver52M/UHDDevice.cpp | 4 ---- Transceiver52M/radioInterface.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index d1f039a..a2c2471 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -725,7 +725,6 @@ int uhd_device::check_rx_md_err(uhd::rx_metadata_t &md, ssize_t num_smpls) switch (md.error_code) { case uhd::rx_metadata_t::ERROR_CODE_TIMEOUT: LOG(ALERT) << "UHD: Receive timed out"; - return ERROR_UNRECOVERABLE; case uhd::rx_metadata_t::ERROR_CODE_OVERFLOW: case uhd::rx_metadata_t::ERROR_CODE_LATE_COMMAND: case uhd::rx_metadata_t::ERROR_CODE_BROKEN_CHAIN: @@ -887,9 +886,6 @@ int uhd_device::writeSamples(std::vector &bufs, int len, bool *underrun size_t num_smpls = tx_stream->send(bufs, len, metadata); if (num_smpls != (unsigned) len) { LOG(ALERT) << "UHD: Device send timed out"; - LOG(ALERT) << "UHD: Version " << uhd::get_version_string(); - LOG(ALERT) << "UHD: Unrecoverable error, exiting..."; - exit(-1); } return num_smpls; diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp index 6e82c8a..d05dcf2 100644 --- a/Transceiver52M/radioInterface.cpp +++ b/Transceiver52M/radioInterface.cpp @@ -362,10 +362,6 @@ void RadioInterface::pushBuffer() sendCursor, &underrun, writeTimestamp); - if (num_sent != sendCursor) { - LOG(ALERT) << "Transmit error " << num_sent; - } - writeTimestamp += num_sent; sendCursor = 0; } -- cgit v1.2.3