usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Problem sending samples with tx_samples_from_file to two USRP2/USRPN210

PZ
Per Zetterberg
Tue, Jan 7, 2025 10:45 AM

Dear List,

I am trying to stream using tx_samples_from_file as:

./tx_samples_from_file --args="addr0=192.168.10.2,addr1=192.168.10.3" --rate=390625 --freq=0 --repeat --ref=external

However only the LED-A of USRP 192.168.10.2 is on. If I change order to

./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external

only LED-A of USRP 192.168.10.3 is on. The results are the same on a pair of USRP2 as on a pair of N210.

I use ubuntu 22.04 with UHD version "tag: v4.7.0.0-rc1". The USRPs are connected though a netgear switch. Below is an example printout from a run:

./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external

Creating the usrp device with: addr0=192.168.10.3,addr1=192.168.10.2...
[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.7.0.HEAD-0-g327f294e
[INFO] [USRP2] Opening a USRP2/N-Series device...
[INFO] [USRP2] Current recv frame size: 1472 bytes
[INFO] [USRP2] Current send frame size: 1472 bytes
Using Device: Multi USRP:
Device: USRP2 / N-Series Device
Mboard 0: USRP2 r4
Mboard 1: USRP2 r3
RX Channel: 0
RX DSP: 0
RX Dboard: A
RX Subdev: LFRX (AB)
RX Channel: 1
RX DSP: 0
RX Dboard: A
RX Subdev: LFRX (AB)
TX Channel: 0
TX DSP: 0
TX Dboard: A
TX Subdev: LFTX (AB)
TX Channel: 1
TX DSP: 0
TX Dboard: A
TX Subdev: LFTX (AB)

Setting TX Rate: 0.390625 Msps...
Actual TX Rate: 0.390625 Msps...

Setting TX Freq: 0.000000 MHz...
Setting TX LO Offset: 0.000000 MHz...
Actual TX Freq: 0.000000 MHz...

Checking TX: Ref: locked ...
Press Ctrl + C to stop streaming...
^C
Done!

^C[WARNING] [UHD] Exception caught in safe-call.
in ~usrp2_fifo_ctrl_impl
at /home/perzet/uhd_here/uhd/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp:49
this->peek32(0); -> RuntimeError: fifo ctrl timed out looking for acks
^[[A^C^C[WARNING] [UHD] Exception caught in safe-call.
in ~usrp2_fifo_ctrl_impl
at /home/perzet/uhd_here/uhd/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp:49
this->peek32(0); -> RuntimeError: fifo ctrl timed out looking for acks

Any help would be appreciated.

BR/
Per

Dear List, I am trying to stream using tx_samples_from_file as: ./tx_samples_from_file --args="addr0=192.168.10.2,addr1=192.168.10.3" --rate=390625 --freq=0 --repeat --ref=external However only the LED-A of USRP 192.168.10.2 is on. If I change order to ./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external only LED-A of USRP 192.168.10.3 is on. The results are the same on a pair of USRP2 as on a pair of N210. I use ubuntu 22.04 with UHD version "tag: v4.7.0.0-rc1". The USRPs are connected though a netgear switch. Below is an example printout from a run: ./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external Creating the usrp device with: addr0=192.168.10.3,addr1=192.168.10.2... [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.7.0.HEAD-0-g327f294e [INFO] [USRP2] Opening a USRP2/N-Series device... [INFO] [USRP2] Current recv frame size: 1472 bytes [INFO] [USRP2] Current send frame size: 1472 bytes Using Device: Multi USRP: Device: USRP2 / N-Series Device Mboard 0: USRP2 r4 Mboard 1: USRP2 r3 RX Channel: 0 RX DSP: 0 RX Dboard: A RX Subdev: LFRX (AB) RX Channel: 1 RX DSP: 0 RX Dboard: A RX Subdev: LFRX (AB) TX Channel: 0 TX DSP: 0 TX Dboard: A TX Subdev: LFTX (AB) TX Channel: 1 TX DSP: 0 TX Dboard: A TX Subdev: LFTX (AB) Setting TX Rate: 0.390625 Msps... Actual TX Rate: 0.390625 Msps... Setting TX Freq: 0.000000 MHz... Setting TX LO Offset: 0.000000 MHz... Actual TX Freq: 0.000000 MHz... Checking TX: Ref: locked ... Press Ctrl + C to stop streaming... ^C Done! ^C[WARNING] [UHD] Exception caught in safe-call. in ~usrp2_fifo_ctrl_impl at /home/perzet/uhd_here/uhd/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp:49 this->peek32(0); -> RuntimeError: fifo ctrl timed out looking for acks ^[[A^C^C[WARNING] [UHD] Exception caught in safe-call. in ~usrp2_fifo_ctrl_impl at /home/perzet/uhd_here/uhd/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp:49 this->peek32(0); -> RuntimeError: fifo ctrl timed out looking for acks Any help would be appreciated. BR/ Per
CH
Cédric Hannotier
Tue, Jan 7, 2025 11:05 AM

Dear Per,

On 2025-01-07 10:45 +0000, Per Zetterberg via USRP-users wrote:

I am trying to stream using tx_samples_from_file as:

./tx_samples_from_file --args="addr0=192.168.10.2,addr1=192.168.10.3" --rate=390625 --freq=0 --repeat --ref=external

However only the LED-A of USRP 192.168.10.2 is on. If I change order to

./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external

only LED-A of USRP 192.168.10.3 is on. The results are the same on a pair of USRP2 as on a pair of N210.

I use ubuntu 22.04 with UHD version "tag: v4.7.0.0-rc1". The USRPs are connected though a netgear switch. Below is an example printout from a run:

./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external

You need to specify the channels you want to use,
e.g. ./tx_samples_from_file [...] --channels '0,1'.
Indeed, if you read the source code of tx_samples_from_file [1]
it only uses channel 0 by default.
You can use ./tx_samples_from_file --help
for the list of options.

[1] https://github.com/EttusResearch/uhd/blob/e75629c3cfb4d0a654648f775e65e79375cf4f13/host/examples/tx_samples_from_file.cpp#L127

Best regards

Cédric Hannotier

Dear Per, On 2025-01-07 10:45 +0000, Per Zetterberg via USRP-users wrote: > I am trying to stream using tx_samples_from_file as: > > > ./tx_samples_from_file --args="addr0=192.168.10.2,addr1=192.168.10.3" --rate=390625 --freq=0 --repeat --ref=external > > > However only the LED-A of USRP 192.168.10.2 is on. If I change order to > > > ./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external > > > only LED-A of USRP 192.168.10.3 is on. The results are the same on a pair of USRP2 as on a pair of N210. > > I use ubuntu 22.04 with UHD version "tag: v4.7.0.0-rc1". The USRPs are connected though a netgear switch. Below is an example printout from a run: > > ./tx_samples_from_file --args="addr0=192.168.10.3,addr1=192.168.10.2" --rate=390625 --freq=0 --repeat --ref=external You need to specify the channels you want to use, e.g. `./tx_samples_from_file [...] --channels '0,1'`. Indeed, if you read the source code of tx_samples_from_file [1] it only uses channel 0 by default. You can use `./tx_samples_from_file --help` for the list of options. [1] https://github.com/EttusResearch/uhd/blob/e75629c3cfb4d0a654648f775e65e79375cf4f13/host/examples/tx_samples_from_file.cpp#L127 Best regards -- Cédric Hannotier