usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Re: [EXTERNAL] Tx example with RFNoC missing

C
carmix
Wed, May 14, 2025 8:11 PM

Yes, it is a good starting point indeed, but for example if one doesn't
use the replay block it is not clear how to do the frequency tune.

I had to discover myself that it is possible to send the tune request
action also from the streamer and not from the replay block.

For someone starting with the project it is not so clear.

Regards,

C.

On 13/05/2025 08:52, Amsel, Lars wrote:

Hi,

Have you had a look into rfnoc_replay_samples_from_file.cpp? It shows
basic TX setup and also utilizes the replay block.

Regards

Lars

NI**

Lars Amsel
Principal Software Engineer
SDR
Test & Measurement Group

+49351206931427 | ni.com https://www.ni.com/

*From:*carmixdev@gmail.com carmixdev@gmail.com
Sent: Montag, 12. Mai 2025 15:48
To: usrp-users@lists.ettus.com
Subject: [EXTERNAL] [USRP-users] Tx example with RFNoC missing

Hi, I noticed that on the UHD repository examples there isn’t an
example that shows how to setup a TX streaming using RFNoC. There is
the example for the RX but not the one with TX.

There’s an example for the replay block, but it can’t be used for
transmitting a big file for instance.

I searched through the mailing list and found some posts of user that
attached some rfnoc_tx_from_file, but they did it in 2018 and it was
on UHD 3, it obviously doesn’t work on UHD 4.

Could someone post a simple example of transmitting from file using
RFNoC 4?

Maybe it is considered trivial, but it could help as a reference.

Personally I tried to write a sample code, but as I stated in another
thread I’m not sure it is working correctly.

Could anyone help here?

Yes, it is a good starting point indeed, but for example if one doesn't use the replay block it is not clear how to do the frequency tune. I had to discover myself that it is possible to send the tune request action also from the streamer and not from the replay block. For someone starting with the project it is not so clear. Regards, C. On 13/05/2025 08:52, Amsel, Lars wrote: > > Hi, > > Have you had a look into rfnoc_replay_samples_from_file.cpp? It shows > basic TX setup and also utilizes the replay block. > > Regards > > Lars > > *NI*** > > > > > > > > *Lars Amsel* > Principal Software Engineer > SDR > Test & Measurement Group > > +49351206931427 | _ni.com <https://www.ni.com/>_ > > *From:*carmixdev@gmail.com <carmixdev@gmail.com> > *Sent:* Montag, 12. Mai 2025 15:48 > *To:* usrp-users@lists.ettus.com > *Subject:* [EXTERNAL] [USRP-users] Tx example with RFNoC missing > > Hi, I noticed that on the UHD repository examples there isn’t an > example that shows how to setup a TX streaming using RFNoC. There is > the example for the RX but not the one with TX. > > There’s an example for the replay block, but it can’t be used for > transmitting a big file for instance. > > I searched through the mailing list and found some posts of user that > attached some rfnoc_tx_from_file, but they did it in 2018 and it was > on UHD 3, it obviously doesn’t work on UHD 4. > > Could someone post a simple example of transmitting from file using > RFNoC 4? > > Maybe it is considered trivial, but it could help as a reference. > > Personally I tried to write a sample code, but as I stated in another > thread I’m not sure it is working correctly. > > Could anyone help here? >
RK
Rob Kossler
Thu, May 15, 2025 7:08 PM

One good place to check for how to operate with RFNoC is the source file "
multi_usrp_rfnoc.cpp
https://github.com/EttusResearch/uhd/blob/master/host/lib/usrp/multi_usrp_rfnoc.cpp".
Under the hood, the multi_usrp object used by most users for a stock FPGA
image implements all functionality using RFNoC API calls for any of the
USRPs that use RFNoC. Thus, if the multi_usrp object can do something, then
it is equally possible with the RFNoC API.  I realize that this gets into
reverse-engineering code, but it is often a good place to look for an
example.
Rob

On Wed, May 14, 2025 at 4:11 PM carmix carmixdev@gmail.com wrote:

Yes, it is a good starting point indeed, but for example if one doesn't
use the replay block it is not clear how to do the frequency tune.

I had to discover myself that it is possible to send the tune request
action also from the streamer and not from the replay block.

For someone starting with the project it is not so clear.

Regards,

C.
On 13/05/2025 08:52, Amsel, Lars wrote:

Hi,

Have you had a look into rfnoc_replay_samples_from_file.cpp? It shows
basic TX setup and also utilizes the replay block.

Regards

Lars

[image: NI]

Lars Amsel
Principal Software Engineer
SDR
Test & Measurement Group

+49351206931427 | ni.com https://www.ni.com/

From: carmixdev@gmail.com carmixdev@gmail.com carmixdev@gmail.com
Sent: Montag, 12. Mai 2025 15:48
To: usrp-users@lists.ettus.com
Subject: [EXTERNAL] [USRP-users] Tx example with RFNoC missing

Hi, I noticed that on the UHD repository examples there isn’t an example
that shows how to setup a TX streaming using RFNoC. There is the example
for the RX but not the one with TX.

There’s an example for the replay block, but it can’t be used for
transmitting a big file for instance.

I searched through the mailing list and found some posts of user that
attached some rfnoc_tx_from_file, but they did it in 2018 and it was on UHD
3, it obviously doesn’t work on UHD 4.

Could someone post a simple example of transmitting from file using RFNoC
4?

Maybe it is considered trivial, but it could help as a reference.

Personally I tried to write a sample code, but as I stated in another
thread I’m not sure it is working correctly.

Could anyone help here?


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

One good place to check for how to operate with RFNoC is the source file " multi_usrp_rfnoc.cpp <https://github.com/EttusResearch/uhd/blob/master/host/lib/usrp/multi_usrp_rfnoc.cpp>". Under the hood, the multi_usrp object used by most users for a stock FPGA image implements all functionality using RFNoC API calls for any of the USRPs that use RFNoC. Thus, if the multi_usrp object can do something, then it is equally possible with the RFNoC API. I realize that this gets into reverse-engineering code, but it is often a good place to look for an example. Rob On Wed, May 14, 2025 at 4:11 PM carmix <carmixdev@gmail.com> wrote: > Yes, it is a good starting point indeed, but for example if one doesn't > use the replay block it is not clear how to do the frequency tune. > > I had to discover myself that it is possible to send the tune request > action also from the streamer and not from the replay block. > > For someone starting with the project it is not so clear. > > > Regards, > > > C. > On 13/05/2025 08:52, Amsel, Lars wrote: > > Hi, > > > > Have you had a look into rfnoc_replay_samples_from_file.cpp? It shows > basic TX setup and also utilizes the replay block. > > > > Regards > > > > Lars > > > > > > *[image: NI]* > > > > > > > > *Lars Amsel* > Principal Software Engineer > SDR > Test & Measurement Group > > +49351206931427 | *ni.com <https://www.ni.com/>* > > > > > > *From:* carmixdev@gmail.com <carmixdev@gmail.com> <carmixdev@gmail.com> > *Sent:* Montag, 12. Mai 2025 15:48 > *To:* usrp-users@lists.ettus.com > *Subject:* [EXTERNAL] [USRP-users] Tx example with RFNoC missing > > > > Hi, I noticed that on the UHD repository examples there isn’t an example > that shows how to setup a TX streaming using RFNoC. There is the example > for the RX but not the one with TX. > > There’s an example for the replay block, but it can’t be used for > transmitting a big file for instance. > > I searched through the mailing list and found some posts of user that > attached some rfnoc_tx_from_file, but they did it in 2018 and it was on UHD > 3, it obviously doesn’t work on UHD 4. > > Could someone post a simple example of transmitting from file using RFNoC > 4? > > Maybe it is considered trivial, but it could help as a reference. > > Personally I tried to write a sample code, but as I stated in another > thread I’m not sure it is working correctly. > > Could anyone help here? > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >