usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

USRP B210 Channel Mapping

KP
Knee, Peter A
Mon, Mar 17, 2014 7:20 PM

Hi all,

I'm trying to figure out how to setup and use our new B210.  Due to leakage between the TX/RX and RX2 ports on channel 1, I'd like to find a way to switch between the two RX2 inputs on channels 1 and 2.  I'm having some issues writing a C++ wrapper for the UHD to allow for the selection of the channel to stream.  My ultimate goal is a class that allows me to set things like the channel to stream from, sampling rate, etc. and save that data to disk.

I've looked through the rx_multi_samples program but am still not understanding how to only stream one channel of the data.  Is there a way to do this?

Any help you can provide would be appreciated.

Thanks,
Peter Knee

Hi all, I'm trying to figure out how to setup and use our new B210. Due to leakage between the TX/RX and RX2 ports on channel 1, I'd like to find a way to switch between the two RX2 inputs on channels 1 and 2. I'm having some issues writing a C++ wrapper for the UHD to allow for the selection of the channel to stream. My ultimate goal is a class that allows me to set things like the channel to stream from, sampling rate, etc. and save that data to disk. I've looked through the rx_multi_samples program but am still not understanding how to only stream one channel of the data. Is there a way to do this? Any help you can provide would be appreciated. Thanks, Peter Knee
MB
Martin Braun
Mon, Mar 17, 2014 8:20 PM

On 03/17/2014 08:20 PM, Knee, Peter A wrote:

I’m trying to figure out how to setup and use our new B210.  Due to
leakage between the TX/RX and RX2 ports on channel 1, I’d like to find a
way to switch between the two RX2 inputs on channels 1 and 2.  I’m
having some issues writing a C++ wrapper for the UHD to allow for the
selection of the channel to stream.  My ultimate goal is a class that
allows me to set things like the channel to stream from, sampling rate,
etc. and save that data to disk.

I’ve looked through the rx_multi_samples program but am still not
understanding how to only stream one channel of the data.  Is there a
way to do this?

There are several ways to do this, and it depends a bit on your
requirements.

Off the top of my head, I guess there's two ways to do this:

  • Switch subdevs between receives
  • Always rx on both channels, then discard the one you don't need.

If you need time alignment, the latter method is the way to go, but it
will waste bandwidth on USB in case you need a lot of that.

Cheers,
Martin

On 03/17/2014 08:20 PM, Knee, Peter A wrote: > I’m trying to figure out how to setup and use our new B210. Due to > leakage between the TX/RX and RX2 ports on channel 1, I’d like to find a > way to switch between the two RX2 inputs on channels 1 and 2. I’m > having some issues writing a C++ wrapper for the UHD to allow for the > selection of the channel to stream. My ultimate goal is a class that > allows me to set things like the channel to stream from, sampling rate, > etc. and save that data to disk. > > I’ve looked through the rx_multi_samples program but am still not > understanding how to only stream one channel of the data. Is there a > way to do this? There are several ways to do this, and it depends a bit on your requirements. Off the top of my head, I guess there's two ways to do this: - Switch subdevs between receives - Always rx on both channels, then discard the one you don't need. If you need time alignment, the latter method is the way to go, but it will waste bandwidth on USB in case you need a lot of that. Cheers, Martin