aboutsummaryrefslogtreecommitdiffstats
path: root/host/docs/usrp_n3xx.dox
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-10-16 11:39:08 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-10-22 11:02:14 -0700
commitdfe068f6bb3768a501cb30a61faaafedff7059c6 (patch)
treef9f4ca39ebb81decdc7a5ef9acb2e42f5e5f92ea /host/docs/usrp_n3xx.dox
parentb24f8495c592ff6c8ff1a82760df5b6b3d1e7163 (diff)
downloaduhd-dfe068f6bb3768a501cb30a61faaafedff7059c6.tar.gz
uhd-dfe068f6bb3768a501cb30a61faaafedff7059c6.tar.bz2
uhd-dfe068f6bb3768a501cb30a61faaafedff7059c6.zip
docs: n3xx: Improve sections on clock/time references
- Added more detail on how to use White Rabbit - Highlight the options with external clock source (with or without external time source)
Diffstat (limited to 'host/docs/usrp_n3xx.dox')
-rw-r--r--host/docs/usrp_n3xx.dox31
1 files changed, 22 insertions, 9 deletions
diff --git a/host/docs/usrp_n3xx.dox b/host/docs/usrp_n3xx.dox
index 417b79466..ff471e46f 100644
--- a/host/docs/usrp_n3xx.dox
+++ b/host/docs/usrp_n3xx.dox
@@ -567,13 +567,15 @@ Using an internal reference is the default.
\subsection n3xx_synchronization_external External references
In order to synchronize multiple USRPs, an external reference, such as the
-CDA-2990, is required. If only a clock reference is available, it is possible
-to derive an internal PPS signal from the reference (which will allow devices
-to share a frequency, but not a time reference). If both an external clock and
-time source are provided, devices will be synchronized in frequency and time.
+CDA-2990 (OctoClock), is required. If only a clock reference is available, it is
+possible to derive an internal PPS signal from the reference (which will allow
+devices to share a frequency, but not a time reference). If both an external
+clock and time source are provided, devices will be synchronized in frequency
+and time.
```cpp
-auto usrp = uhd::usrp::multi_usrp::make("type=n3xx,clock_source=external,time_source=external");
+auto usrp = uhd::usrp::multi_usrp::make(
+ "type=n3xx,clock_source=external,time_source=external");
```
\subsection n3xx_synchronization_whiterabbit White Rabbit
@@ -584,7 +586,7 @@ configured as a White Rabbit slave.
To use White Rabbit, it is necessary to provide an appropriate reference via
Ethernet. This reference must be connected to SFP0. Finally, a White Rabbit-compatible
-FPGA must be loaded. SFP0 will not be available for data transport in this mode.
+FPGA must be loaded. SFP0 will *not be available for data transport* in this mode.
The White Rabbit image is provided as a default image. To obtain the default
images, simply run:
@@ -593,13 +595,24 @@ images, simply run:
Then, you can install the WX (or WA) image using `uhd_image_loader`:
- $ uhd_image_loader --args type=n3xx,addr=ni-n3xx-<DEVICE_SERIAL> --fpga-path=”<UHD_INSTALL_DIRECTORY>/share/uhd/images/usrp_n310_fpga_WX.bit
+ $ uhd_image_loader \
+ --args type=n3xx,addr=ni-n3xx-<DEVICE_SERIAL>,WX
Once the image is loaded, select `internal` as the clock source and
-`sfp0` as the time source:
+`sfp0` as the time source (note: this will fail if the WX or WA image is not
+currently loaded):
```cpp
-auto usrp = uhd::usrp::multi_usrp::make("type=n3xx,clock_source=internal,time_source=sfp0");
+auto usrp = uhd::usrp::multi_usrp::make(
+ "type=n3xx,clock_source=internal,time_source=sfp0");
+// Or if you want to change it to White Rabbit after initialization:
+usrp->set_sync_source(device_addr_t("clock_source=internal,time_source=sfp0"));
+// Using the older time/clock source APIs is also possible:
+usrp->set_time_source("sfp0");
+usrp->set_clock_source("internal");
+// The 2nd call can technically be skipped because the device implementations
+// will coerce, but for consistency with other code and for being explicit this
+// is the preferred way. The 2nd call will immediately return in this case.
```
For more information, refer to the [White Rabbit Homepage](https://www.ohwr.org/projects/white-rabbit),