On 2022-02-10 07:39, Tobias Kronauer wrote:
Dear all,
recently, we purchased a X410. According to the
[manual](https://www.ni.com/pdf/manuals/378493a), the USRP supports a
maximum I/Q samples rate of up to 491.52 MSps. Using the UHD API
however, warnings are printed to stdout that the rate is set to 245.76
MSps.
Also:
https://files.ettus.com/manual/page_usrp_x4xx.html#x4xx_updating_fpga_types
In the following, you can find a MWE:
```cpp
#include <uhd/usrp/multi_usrp.hpp>
#include <iostream>
int main() {
uhd::device_addr_t addr = uhd::device_addr_t("addr=localhost");
uhd::usrp::multi_usrp::sptr usrp = uhd::usrp::multi_usrp::make(addr);
usrp->set_rx_rate(491.52e6); // max. value deifned in
https://www.ni.com/pdf/manuals/378493a
usrp->set_tx_rate(491.52e6); // max. value deifned in
https://www.ni.com/pdf/manuals/378493a
std::cout << "Rx rates range from " <<
usrp->get_rx_rates().start() << " to " <<
usrp->get_rx_rates().stop()<< std::endl;
std::cout << "Tx rates range from " <<
usrp->get_tx_rates().start() << " to " <<
usrp->get_tx_rates().stop()<< std::endl;
std::cout << "Current rate is (rx): " << usrp->get_rx_rate() <<
std::endl;
std::cout << "Current rate is (tx): " << usrp->get_tx_rate() <<
std::endl;
}
```
After building, the following is printed:
```bash
root@ni-x4xx-323F74C:~/uhd-evaluation/debug/build# ./set_usrp_rates
[INFO] [UHD] linux; GNU C++ version 9.2.0; Boost_107100;
UHD_4.1.0.5-0-g18f5f9a4
[INFO] [MPMD] Initializing 1 device(s) in parallel with args:
mgmt_addr=127.0.0.1,type=x4xx,product=x410,serial=323F74C,fpga=X4_200,claimed=False,addr=localhost
[INFO] [MPM.PeriphManager] init() called with device args
`fpga=X4_200,mgmt_addr=127.0.0.1,product=x410,clock_source=internal,time_source=internal'.
[WARNING] [MPM.RPCServer] A timeout event occured!
[INFO] [MPM.PeriphManager] init() called with device args
`fpga=X4_200,mgmt_addr=127.0.0.1,product=x410,clock_source=internal,time_source=internal'.
[WARNING] [MULTI_USRP] Could not set RX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set RX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set RX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set RX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set TX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set TX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set TX rate to 491.520 MHz. Actual
rate is 245.760 MHz
[WARNING] [MULTI_USRP] Could not set TX rate to 491.520 MHz. Actual
rate is 245.760 MHz
Rx rates range from 240941 to 2.4576e+08
Tx rates range from 240941 to 2.4576e+08
Current rate is (rx): 2.4576e+08
Current rate is (tx): 2.4576e+08
```
The same can be observed using the `txrx_loopback_to_file` example.
Can you help me on that? Thank you in advance 🙂
**Version information**:
```bash
root@ni-x4xx-323F74C:/usr/lib/uhd/examples# uhd_config_info --print-all
UHD 4.1.0.5-0-g18f5f9a4
Build date: Mon, 06 Dec 2021 19:14:55
C compiler: GNU 9.2.0
C++ compiler: GNU 9.2.0
C flags: -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_ASIO_DISABLE_STD_STRING_VIEW
-DBOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW -DHAVE_CONFIG_H
-DUHD_LOG_MIN_LEVEL=1 -DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2
-DUHD_LOG_CONSOLE_COLOR
--sysroot=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0=/usr/src/debug/uhd/4.1.0.5+rc2-r0
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0=/usr/src/debug/uhd/4.1.0.5+rc2-r0
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot=
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot-native=
--sysroot=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot
C++ flags: -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_ASIO_DISABLE_STD_STRING_VIEW
-DBOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW -DHAVE_CONFIG_H
-DUHD_LOG_MIN_LEVEL=1 -DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2
-DUHD_LOG_CONSOLE_COLOR
--sysroot=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0=/usr/src/debug/uhd/4.1.0.5+rc2-r0
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0=/usr/src/debug/uhd/4.1.0.5+rc2-r0
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot=
-fdebug-prefix-map=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden
--sysroot=/__w/790/build/tmp-glibc/work/aarch64-oe-linux/uhd/4.1.0.5+rc2-r0/recipe-sysroot
-fvisibility=hidden -fvisibility-inlines-hidden
Enabled components: LibUHD, LibUHD - C API, LibUHD - Python API,
Examples, Utils, Tests, MPMD, N300, N320, E320, E300, X400, OctoClock
Install prefix: /usr
Boost version: 1.71
Libusb version: N/A
Library path: /usr/lib
Package path: /usr
Images directory: /usr/share/uhd/images
ABI version string: 4.1.0
```
Kind regards,
Tobias
*Barkhausen Institut*
www.barkhauseninstitut.org
Barkhausen Institut gGmbH | Sitz: Würzburger Straße 46, 01187 Dresden,
Germany | Registergericht: Amtsgericht Dresden, HRB 37267 |
Geschäftsführer: Prof. Dr. Gerhard Fettweis, Dr. Tim Hentschel |
Vorsitzender der Gesellschafterdelegation: Dr. Andreas Handschuh
Hinweise zum Datenschutz und zur Verarbeitung Ihrer Daten finden Sie
unter: https://barkhauseninstitut.org/data-privacy
This email and any attachments are intended only for the person to
whom this email is addressed and may contain confidential and/or
privileged information. If you received this email in error, please do
not disclose the contents to anyone, but notify the sender by return
email and delete this email (and any attachments) from your system.
Information on data protection and processing of your personal
information: https://barkhauseninstitut.org/data-privacy
_______________________________________________
USRP-users mailing list --usrp-users@lists.ettus.com
To unsubscribe send an email tousrp-users-le...@lists.ettus.com
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com