jopohl / urh

Universal Radio Hacker: Investigate Wireless Protocols Like A Boss
GNU General Public License v3.0
10.85k stars 863 forks source link

urh 2.6.9 compiled with USRP support - but USRP isn't appearing in the Devices dropdowns? #1119

Closed victorhooi closed 1 month ago

victorhooi commented 3 months ago
Expected Behavior

Installing urh with USRP support, it should list "USRP" as an option under Devices in the UI.

(I saw that USRP support was added quite some time back in 2017 - https://github.com/jopohl/urh/issues/133 - hence why I assumed it should probably work out of the box).

Actual Behavior

I've installed URP 2.9.6 with USRP support, and I don't seem to see "USRP" as an option in the Device dropdowns.

If I launch urh, and then go to any of the dialogs (e.g. Spectrum Analyzer), and then click on Device - I don't seem to see "USRP" (or anything similar) listed:

CleanShot 2024-06-06 at 16 31 26@2x

Steps To Reproduce
  1. Install urh via nixpkgs (package link, package source)
  2. From a terminal, run "urh".
  3. Go to File, then Spectrum Analyzer, then click on the "Device" dropdown.
  4. Look at the list of devices.
Screenshots
Platform Specifications

I also checked my local build logs for the nix package - it does seem to mention it was compiled with USRP support.

Found hackrf lib. Will compile with native hackrf support
Found LimeSuite lib. Will compile with native limesdr support
Found iio lib. Will compile with native plutosdr support
Found rtlsdr lib. Will compile with native rtlsdr support
Found uhd lib. Will compile with native usrp support
Skipping native support for sdrplay
[ 1/12] Cythonizing src/urh/cythonext/auto_interpretation.pyx
[ 2/12] Cythonizing src/urh/cythonext/awre_util.pyx
[ 3/12] Cythonizing src/urh/cythonext/path_creator.pyx
[ 4/12] Cythonizing src/urh/cythonext/signal_functions.pyx

Full build logs are here:

https://gist.github.com/victorhooi/540a01284a681cb33cb5aea32fa10ff1

victorhooi commented 3 months ago

I went to https://github.com/jopohl/urh/wiki/Supported-devices, and I saw that it mentioned there's an "Options -> Devices" screen.

On macOS, this seems to be under python3.11, Preferences...:

CleanShot 2024-06-06 at 17 35 37@2x

If I open that up, and go to the Devices tab, I noticed that for some reason, USRP was unticked by default:

CleanShot 2024-06-06 at 17 34 53@2x

I'm thinking that might be my issue - will confirm once I get home.

However, is there a reason that USRP is unticked by defaut? As in, are there any caveats or warnings with this plugin versus the other types?

andynoack commented 3 months ago

Usually all SDRs are unticked when you install from source. As you have installed with a package manager, there might be a special crafted package with enabled devices. The driver, however, must be installed beforehand, so in your case the USRP was probably disabled at first. If the driver is installed you should be able to activate it now.

Source975 commented 1 month ago

How to make the device support USRP

Source975 commented 1 month ago

airspy -- ERROR: No module named 'urh.dev.native.lib.airspy' bladerf -- ERROR: No module named 'urh.dev.native.lib.bladerf' hackrf -- ERROR: No module named 'urh.dev.native.lib.hackrf' limesdr -- ERROR: No module named 'urh.dev.native.lib.limesdr' plutosdr -- ERROR: No module named 'urh.dev.native.lib.plutosdr' rtlsdr -- ERROR: No module named 'urh.dev.native.lib.rtlsdr' sdrplay -- ERROR: No module named 'urh.dev.native.lib.sdrplay' usrp -- ERROR: No module named 'urh.dev.native.lib.usrp' SoundCard -- No module named 'pyaudio'

andynoack commented 1 month ago

I will close here because the original issue seems to be solved or inactive. Issues are not for installation support, please visit our Slack channel.

Source975 commented 1 month ago

So what should I do to fix it, on windows platforms

andynoack commented 1 month ago

This is not a bug in URH, your installation (Windows/SDR drivers/URH installation) is bugged. Make a clean reinstallation.