Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI PCIe (MXI Express) getting detected but unable to communicate with USRP X310

I have connected an MXI Express cable to a USRP X310 at one end and to my system at the other end. I successfully installed the RIO drivers on my system. Below are the logs for the issue I encountered.

 


wire@oai:~$ lspci -k -d 1093:c4c4
06:10.0 Signal processing controller: National Instruments PXIe/PCIe Device
Subsystem: National Instruments PXIe/PCIe Device
Kernel modules: niusrpriok
wire@oai:~$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_4.6.0.HEAD-0-g50fa3baa
No UHD Devices Found
wire@oai:~$ uhd_usrp_probe --args="resource=RIO0"
[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_4.6.0.HEAD-0-g50fa3baa
[ERROR] [UHD] Device discovery error: RuntimeError: x300::pcie_manager::find: Error enumerating NI-RIO devices. Unknown error. (Error code -52012)
Error: LookupError: KeyError: No devices found for ----->
Device Address:
resource: RIO0

wire@oai:~$ lspci | grep "National"
06:10.0 Signal processing controller: National Instruments PXIe/PCIe Device

0 Kudos
Message 1 of 2
(606 Views)

Unfortunately, we're facing the very same issue for

  USRP-2954
  NI PCIe-8371
  RHEL/Rocky 9.3

Symptoms:

> uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 11.4.1 20230605 (Red Hat 11.4.1-2); Boost_107500; UHD_4.6.0.HEAD-0-g50fa3baa
No UHD Devices Found

> uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 11.4.1 20230605 (Red Hat 11.4.1-2); Boost_107500; UHD_4.6.0.HEAD-0-g50fa3baa
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address

but also

> uhd_usrp_probe --args="resource=RIO0"
[INFO] [UHD] linux; GNU C++ version 11.4.1 20230605 (Red Hat 11.4.1-2); Boost_107500; UHD_4.6.0.HEAD-0-g50fa3baa
[ERROR] [UHD] Device discovery error: RuntimeError: x300::pcie_manager::find: Error enumerating NI-RIO devices. Unknown error. (Error code -52008)
Error: LookupError: KeyError: No devices found for ----->
Device Address:
resource: RIO0

X310 has been powered well before the workstation.
We see the USRP getting enumerated when connected to the PCIe-8371 switch (LED is green).


> lspci -k -d 1093:c4c4
19:00.0 Signal processing controller: National Instruments PXIe/PCIe Device
Subsystem: National Instruments Device 785a
Kernel driver in use: niusrpriok
Kernel modules: niusrpriok


NI-RIO driver from NILinux2024Q1DeviceDrivers.zip
adding repository ni-rhel9-drivers-2024Q1.rpm

All packages install without errors

> dnf install ni-usrp-rio
Last metadata expiration check: 0:02:19 ago on Thu Mar 7 23:51:32 2024.
Dependencies resolved.
=============================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================
Installing:
ni-usrp-rio noarch 23.5.0.49277-0+f125 ni-software-2024 1.5 k
Installing dependencies:
dkms noarch 3.0.12-1.el9 epel 80 k
libnip2p1 x86_64 24.0.0.49300-0+f148 ni-software-2024 76 k
ni-apal-errors noarch 24.0.0.49292-0+f140 ni-software-2024 11 k
ni-bds noarch 24.0.0.49292-0+f140 ni-software-2024 2.6 k
ni-bds-dkms x86_64 24.0.0.49292-0+f140 ni-software-2024 40 k
ni-euladepot noarch 24.0.0.49469-0+f317 ni-software-2024 12 M
ni-fpga-interface x86_64 24.0.0.49290-0+f138 ni-software-2024 104 k
ni-kal noarch 24.0.0.49292-0+f140 ni-software-2024 55 k
ni-p2p noarch 24.0.0.49300-0+f148 ni-software-2024 1.7 k
ni-p2p-dkms x86_64 24.0.0.49300-0+f148 ni-software-2024 64 k
ni-p2p-errors noarch 24.0.0.49300-0+f148 ni-software-2024 11 k
ni-rio x86_64 24.0.0.49291-0+f139 ni-software-2024 583 k
ni-rio-dkms x86_64 24.0.0.49291-0+f139 ni-software-2024 268 k
ni-rio-fpga-ids x86_64 24.0.0.49290-0+f138 ni-software-2024 286 k
ni-rio-server x86_64 24.0.0.49291-0+f139 ni-software-2024 246 k
ni-service-locator x86_64 24.1.0.49342-0+f190 ni-software-2024 28 k
ni-usrp-rio-dkms x86_64 23.5.0.49277-0+f125 ni-software-2024 164 k
ni-usrp-rio-libs x86_64 23.5.0.49277-0+f125.el9 ni-software-2024 384 k


> lsmod | grep -i ni
NiRioSrv 622592 0
niusrpriok 389120 0
nistreamk 139264 2 niusrpriok,NiRioSrv
nibds 65536 2 niusrpriok,NiRioSrv
nikal 180224 4 niusrpriok,NiRioSrv,nistreamk,nibds


> systemctl status niusrpriorpc.service
● niusrpriorpc.service - LSB: National Instruments USRP RIO Service
Loaded: loaded (/etc/rc.d/init.d/niusrpriorpc; generated)
Active: active (running) since Fri 2024-03-08 00:53:00 UTC; 8h ago
Docs: man:systemd-sysv-generator(8)
Process: 1695 ExecStart=/etc/rc.d/init.d/niusrpriorpc start (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 202817)
Memory: 5.1M
CPU: 61ms
CGroup: /system.slice/niusrpriorpc.service
└─1781 /usr/sbin/niusrpriorpc --daemon


> uhd_config_info --print-all
UHD 4.6.0.HEAD-0-g50fa3baa
Build date: Fri, 08 Mar 2024 00:11:58
C compiler: GNU 11.4.1
C++ compiler: GNU 11.4.1
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
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 -fvisibility=hidden -fvisibility-inlines-hidden
Enabled components: LibUHD, LibUHD - C API, LibUHD - Python API, Examples, Utils, Tests, USB, B100, B200, USRP1, USRP2, X300, MPMD, SIM, N300, N320, E320, E300, X400, OctoClock
Install prefix: /usr/local
Boost version: 1.75
Libusb version: 1.0.27
Library path: /usr/local/lib64
Package path: /usr/local
Images directory: /usr/local/share/uhd/images
ABI version string: 4.6.0


Any hints on how to debug this issue are very appreciated.
Thanks for looking into this.

0 Kudos
Message 2 of 2
(523 Views)