aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-03 12:38:35 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-17 22:41:01 +0200
commit6fda25091ecce87533950a8e351b717875cdc087 (patch)
tree0b321eeb9228d35c206aeb8e20456bacde9c412c /host/lib/usrp/b200
parentb929f09af613ed66124a90eae2911864d729acd6 (diff)
downloaduhd-6fda25091ecce87533950a8e351b717875cdc087.tar.gz
uhd-6fda25091ecce87533950a8e351b717875cdc087.tar.bz2
uhd-6fda25091ecce87533950a8e351b717875cdc087.zip
Improve LEA-M8F autodetection and poll NAV-SOL
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 13169a5ed..2b1c3da0c 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -323,7 +323,7 @@ b200_impl::b200_impl(const device_addr_t &device_addr)
// Create the GPSDO control
////////////////////////////////////////////////////////////////////
_async_task_data->gpsdo_uart = b200_uart::make(_ctrl_transport, B200_TX_GPS_UART_SID);
- _async_task_data->gpsdo_uart->set_baud_divider(B200_BUS_CLOCK_RATE/115200);
+ _async_task_data->gpsdo_uart->set_baud_divider(B200_BUS_CLOCK_RATE/9600);
_async_task_data->gpsdo_uart->write_uart("\n"); //cause the baud and response to be setup
boost::this_thread::sleep(boost::posix_time::seconds(1)); //allow for a little propagation
@@ -524,9 +524,12 @@ b200_impl::b200_impl(const device_addr_t &device_addr)
UHD_MSG(status) << "Setting references to the internal GPSDO" << std::endl;
_tree->access<std::string>(mb_path / "time_source" / "value").set("gpsdo");
_tree->access<std::string>(mb_path / "clock_source" / "value").set("gpsdo");
- UHD_MSG(status) << "Initializing time to the internal GPSDO" << std::endl;
- const time_t tp = time_t(_gps->get_sensor("gps_time").to_int()+1);
- _tree->access<time_spec_t>(mb_path / "time" / "pps").set(time_spec_t(tp));
+
+ if (not _gps->gps_detected_lea_m8f()) {
+ UHD_MSG(status) << "Initializing time to the internal GPSDO" << std::endl;
+ const time_t tp = time_t(_gps->get_sensor("gps_time").to_int()+1);
+ _tree->access<time_spec_t>(mb_path / "time" / "pps").set(time_spec_t(tp));
+ }
} else {
//init to internal clock and time source
_tree->access<std::string>(mb_path / "clock_source/value").set("internal");