merbanan / rtl_433

Program to decode radio transmissions from devices on the ISM bands (and other frequencies)
GNU General Public License v2.0
6.13k stars 1.32k forks source link

HackRF and Windows problem ? #1530

Closed schmiernippel closed 3 years ago

schmiernippel commented 4 years ago

Is it possible to use my hackrf with rtl_433 on windows with this soapy drivers ? I dont get it howto...?

When its possible, can someone please write a quick tutorial ?

greets

zuckschwerdt commented 4 years ago

Yes, you need to compile or install SoapySDR and drivers, then build rtl_433 with -DENABLE_SOAPYSDR=ON. There are some hints in https://github.com/merbanan/rtl_433/blob/master/docs/BUILDING.md

schmiernippel commented 4 years ago

I have installed soapySDR(photosSDR)but my knowledge is to less to build rtl_433 by myself... but thanks for your answer !

zuckschwerdt commented 4 years ago

It is somewhat involved to get the drivers included. Basically some trial and error to get all paths setup. Do you have any experience with either MinGW or Visual Studio? We currently don't provide binaries with SoapySDR support as getting all dependencies setup is tricky. I might take a look at that, would you be interested in testing some builds? It could be some back and forth until we get it right though.

schmiernippel commented 4 years ago

I have no experience in MinGW or visual studio. But i would like to test some builds, this would be nice !

zuckschwerdt commented 4 years ago

Can you try rtl_433-20.02-195-gc92751e-win-x64.zip from https://bintray.com/beta/#/chzu/dist/rtl_433/20.02-195-gc92751e?tab=files Then not-static version should include support for SoapySDR.

schmiernippel commented 4 years ago

I have installed PhotosSDR with the SoapySDR drivers and have run rtl_433.exe. No supportet device found.... CubicSDR, GQRX SDR, SDR# are working nice. Any workaround what should i do ?

zuckschwerdt commented 4 years ago

That is the first line in the output of rtl_433.exe?

schmiernippel commented 4 years ago

Microsoft Windows [Version 10.0.19041.508] (c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\schmiernippel>C:\Daten\Downloads\SDR\rtl_433\Soapy_support\rtl_433.exe rtl_433 version 20.02-195-gc92751e branch at 202010231657 inputs file rtl_tcp RTL-SDR SoapySDR Use -h for usage help and see https://triq.org/ for documentation. Trying conf file at "C:\Daten\Downloads\SDR\rtl_433\Soapy_support\rtl_433.conf"... Trying conf file at "C:\Users\schmiernippel\AppData\Local\rtl_433\rtl_433.conf"... Trying conf file at "C:\ProgramData\rtl_433\rtl_433.conf"... Registered 139 out of 168 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 ] No supported devices found.

C:\Users\schmiernippel>

Thats the output!

zuckschwerdt commented 4 years ago

Great! That looks fine. rtl_433 version 20.02-195-gc92751e branch at 202010231657 inputs file rtl_tcp RTL-SDR SoapySDR <- And selecting your HackRF doesn't work? I.e. rtl_433 -d driver=hackrf

schmiernippel commented 4 years ago

Microsoft Windows [Version 10.0.19041.572] (c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\schmiernippel>C:\Daten\Downloads\SDR\rtl_433\Soapy_support\rtl_433.exe -d driver=hackrf rtl_433 version 20.02-195-gc92751e branch at 202010231657 inputs file rtl_tcp RTL-SDR SoapySDR Use -h for usage help and see https://triq.org/ for documentation. Trying conf file at "C:\Daten\Downloads\SDR\rtl_433\Soapy_support\rtl_433.conf"... Trying conf file at "C:\Users\schmiernippel\AppData\Local\rtl_433\rtl_433.conf"... Trying conf file at "C:\ProgramData\rtl_433\rtl_433.conf"... Registered 139 out of 168 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 ]

C:\Users\schmiernippel>

The same output, without "No supportet devices found."

zuckschwerdt commented 4 years ago

The build includes the SoapySDR.dll from the https://downloads.myriadrf.org/builds/PothosSDR/PothosSDR-2020.01.26-vc14-x64.exe version found on https://downloads.myriadrf.org/builds/PothosSDR/ Is that the same version you have installed? Perhaps just copy rtl_433.exe to the directory where PothosSDR installed all the .exe and .dll, do not copy SoapySDR.dll so your version is used -- it should already be in that directory along with libusb-1.0.dll. Running SoapySDRUtil.exe --info does list the HackRF module, right? And --probe or --make show the HackRF?

schmiernippel commented 4 years ago

"libusb-1.0.dll" was not in the folder "C:\Program Files\PothosSDR\bin". So i copied it.

C:\Users\schmiernippel>"C:\Program Files\PothosSDR\bin\rtl_433.exe" -d driver=hackrf rtl_433 version 20.02-195-gc92751e branch at 202010231657 inputs file rtl_tcp RTL-SDR SoapySDR Use -h for usage help and see https://triq.org/ for documentation. Trying conf file at "C:\Program Files\PothosSDR\bin\rtl_433.conf"... Trying conf file at "C:\Users\schmiernippel\AppData\Local\rtl_433\rtl_433.conf"... Trying conf file at "C:\ProgramData\rtl_433\rtl_433.conf"... Registered 139 out of 168 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 ] [INFO] Opening HackRF One #0 17c467dc2154bbc3...

C:\Users\schmiernippel>

And here is the SoapySDRUtil.exe Output:

C:\Users\schmiernippel>"C:\Program Files\PothosSDR\bin\SoapySDRUtil.exe" --info ######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Lib Version: v0.8.0-PothosSDR-2020.01.26-vc14-x64 API Version: v0.8.0 ABI Version: v0.8 Install root: C:\Program Files\PothosSDR Search path: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8 Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/airspyhfSupport.dll (0.1.1-81ca737) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/airspySupport.dll (0.1.2-10d697b) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/audioSupport.dll (0.1.1-2ae84e3) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/bladeRFSupport.dll (0.4.1-1c1e8aa) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/HackRFSupport.dll (0.3.3-3c514ce) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/IrisSupport.dll (2019.07.0.1-423a351) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/LMS7Support.dll (19.04.1-538e186b) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/miriSupport.dll (0.2.6-5a9674c) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/netSDRSupport.dll (0.1.0-dc4e579) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/osmosdrSupport.dll (0.2.6-5a9674c) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/PlutoSDRSupport.dll (0.2.0-e28e4f5) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/RedPitaya.dll (0.1.1-3d576f8) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/remoteSupport.dll (0.5.2-6d9bd82) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/rtlsdrSupport.dll (0.3.1-8ba18f1) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/sdrPlaySupport.dll (0.3.0-14ec39e) Module found: C:\Program Files\PothosSDR/lib/SoapySDR/modules0.8/uhdSupport.dll (0.3.6-47972ba) Available factories... airspy, airspyhf, audio, bladerf, hackrf, iris, lime, miri, netsdr, osmosdr, plutosdr, redpitaya, remote, rtlsdr, sdrplay, uhd Available converters...

C:\Users\schmiernippel>"C:\Program Files\PothosSDR\bin\SoapySDRUtil.exe" --probe ######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Probe device [INFO] [UHD] Win32; Microsoft Visual C++ version 14.0; Boost_106700; UHD_3.15.0.0-0-gaea0e2de


-- Device identification

driver=Audio hardware=Audio device_id=0 origin=https://github.com/pothosware/SoapyAudio


-- Peripheral summary

Channels: 1 Rx, 0 Tx Timestamps: NO Other Settings:


-- RX Channel 0

Full-duplex: NO Supports AGC: YES Stream formats: CS8, CS16, CF32 Native format: CS16 [full-scale=65536] Stream args:

C:\Users\schmiernippel>"C:\Program Files\PothosSDR\bin\SoapySDRUtil.exe" --make ######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Make device [INFO] [UHD] Win32; Microsoft Visual C++ version 14.0; Boost_106700; UHD_3.15.0.0-0-gaea0e2de driver=Audio hardware=Audio device_id=0 origin=https://github.com/pothosware/SoapyAudio

C:\Users\schmiernippel>

I see no hackrf ? But in windows device manager its listed under "USB-devices" as "HackRF One"

zuckschwerdt commented 4 years ago

At least it does say [INFO] Opening HackRF One #0 17c467dc2154bbc3... now. But immediatly stops? This could be the hackrf driver looking for a device but not finding it. Does adding -vv get more useful info? I suspect that the device is not available, perhaps blocked/in-use by another program? Some other user reported something about outdated firmware he had to update.

schmiernippel commented 4 years ago

This is with -vv

C:\Users\schmiernippel>"C:\Program Files\PothosSDR\bin\rtl_433.exe" -d driver=hackrf -vv rtl_433 version 20.02-195-gc92751e branch at 202010231657 inputs file rtl_tcp RTL-SDR SoapySDR Use -h for usage help and see https://triq.org/ for documentation. Trying conf file at "C:\Program Files\PothosSDR\bin\rtl_433.conf"... Trying conf file at "C:\Users\schmiernippel\AppData\Local\rtl_433\rtl_433.conf"... Trying conf file at "C:\ProgramData\rtl_433\rtl_433.conf"... ... [INFO] Opening HackRF One #0 17c467dc2154bbc3... Using device HackRF One: C:\Users\schmiernippel>

Is it possible that i must ad a line with settings for the hackrf ? Like gain and so on ??? Firmware is the newest for HackRF.

zuckschwerdt commented 4 years ago

Looks like rtl_433 is able to acquire a handle to the driver but the device isn't initializing or working. You need to try things until SoapySDRUtil.exe --make works, then continue with rtl_433.

schmiernippel commented 4 years ago

Ok, thanks.I will google some stuff :-)

merbanan commented 3 years ago

No update in a long time, closing issue.