From 18d3b833bce36c543993852ab1b59724f8a60ece Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Thu, 13 Feb 2014 14:55:23 -0500 Subject: Transceiver52M: Disable initial device time reset With dual-channels on B210, we lose the ability to reset both channels to a synchronized state. Instead, let the timestamp clock start with an arbitary value, which is the first timestamp received from the device, instead of a near-zero value. This approach also makes integration for device, in general, with free-running timestamp clocks. Signed-off-by: Thomas Tsou --- Transceiver52M/radioInterface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Transceiver52M/radioInterface.cpp') diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp index 81a56a9..1329ef1 100644 --- a/Transceiver52M/radioInterface.cpp +++ b/Transceiver52M/radioInterface.cpp @@ -170,20 +170,20 @@ bool RadioInterface::tuneRx(double freq, size_t chan) void RadioInterface::start() { - LOG(INFO) << "starting radio interface..."; + LOG(INFO) << "Starting radio"; #ifdef USRP1 mAlignRadioServiceLoopThread.start((void * (*)(void*))AlignRadioServiceLoopAdapter, (void*)this); #endif + mRadio->start(); writeTimestamp = mRadio->initialWriteTimestamp(); readTimestamp = mRadio->initialReadTimestamp(); - mRadio->start(); - LOG(DEBUG) << "Radio started"; - mRadio->updateAlignment(writeTimestamp-10000); + + mRadio->updateAlignment(writeTimestamp-10000); mRadio->updateAlignment(writeTimestamp-10000); mOn = true; - + LOG(INFO) << "Radio started"; } #ifdef USRP1 -- cgit v1.2.3