|
From: Tom T. <to...@ts...> - 2015-03-09 18:57:22
|
On Fri, Mar 06, 2015 at 11:38:15AM +0100, Ralph A. Schmid, dk5ras wrote:
> Any ideas how I could change the ports used by OpenBTS? My B210 is damaged
> on one transceiver at the moment, so I would like to change to the second
> pair of antenna ports, means, from A:A to A:B.
Try this. It's B210 specific - we'll need more control-configure-device
code for a general device solution. But it will get you up and running
again.
-TT
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index f24a5f3..1b82621 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -553,6 +553,10 @@ int uhd_device::open(const std::string &args, bool
extref)
if (!parse_dev_type())
return -1;
+ uhd::usrp::subdev_spec_t subdev_spec("A:B");
+ usrp_dev->set_tx_subdev_spec(subdev_spec);
+ usrp_dev->set_rx_subdev_spec(subdev_spec);
+
if (extref)
set_ref_clk(true);
|