pothosware / SoapySDR

Vendor and platform neutral SDR support library.
https://github.com/pothosware/SoapySDR/wiki
Boost Software License 1.0
1.09k stars 176 forks source link

SoapySDRServer Hackrf #283

Closed audiocrush closed 3 years ago

audiocrush commented 3 years ago

Hi, is it possible that the SoapySDRServer has an issue with hackrf? I can confirm my device is working when connecting to it locally through gr-osmosdr However when I connect to it using SoapySDR remote (either on localhost or from another host), I get the error message, FATAL: RemoteError: setupStream invalid channel selection Later it tells me: "Railed to set RX input rate to 8e+06 and then it pumps out tons of "No audio FFT data" messages. I have no clue why. I'm trying to use pothos with SoapySDR. By the way I've tried SoapySDRServer successfully with an rtlsdr dongle I hat kicking around. So there has to be something wrong with the (or my) soapysdr-module-hackrf maybe? I'm running Ubuntu 18.04LTS and installed the packages from the myriad drivers ppa Basically used this guide on remote sdr server (hardware box) as well as my ubuntu vm (vmware esx) which would access the remote sdr server: https://github.com/pothosware/PothosCore/wiki/Ubuntu

Please help me.. I have no clue where to start... (at least I have found out that stuff seems to work best on ubuntu 18.04, had more problems using 20.04...)

Kind regards

audiocrushderp

Edit: Thats what happens exactly: `audiocrush@radiostation-linux:~$ gqrx linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

Controlport disabled No user supplied config file. Using "default.conf" gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp FM demod gain: 3.05577 Resampling audio 96000 -> 48000 IQ DCR alpha: 1.04166e-05 Using audio backend: auto BookmarksFile is /home/audiocrush/.config/gqrx/bookmarks.csv Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.

getDeviceList : Available input devices: 0 : "RFSPACE SDR-IQ Receiver" 1 : "RFSPACE SDR-IP Receiver" 2 : "RFSPACE NetSDR Receiver" 3 : "RFSPACE Cloud-IQ Receiver" 4 : "hw:HD-Audio Generic,0" 5 : "default" 6 : "HackRF One #0 88869dc2d82241b" 7 : "Generic RTL2832U OEM :: 00000001" 8 : "RTL-SDR Spectrum Server" 9 : "Red Pitaya Transceiver Server" 10 : "Complex Sampled (IQ) File" Loading configuration from: "default.conf" Configuration file: "/home/audiocrush/.config/gqrx/default.conf" gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp [INFO] Opening HackRF One #0 88869dc2d82241b... [INFO] SoapyRemote::setupRxStream(remoteFormat=CS8, localFormat=CF32, scaleFactor=128, mtu=1500, window=44040192) [INFO] Client side stream bound to 192.168.1.52:57325 [INFO] Client side status bound to 192.168.1.52:54244

FATAL: RemoteError: setupStream invalid channel selection

Trying to fill up 1 missing channel(s) with null source(s). This is being done to prevent the application from crashing due to gnuradio bug #528.



New audio output device: old: new: alsa_output.pci-0000_02_02.0.analog-stereo

Failed to set RX input rate to 8e+06 Your device may not be working properly.

IQ DCR samp_rate: 8e+06 IQ DCR alpha: 1.25e-07 Changing NB_RX quad rate: 96000 -> 8e+06 Requested sample rate: 8000000 Actual sample rate : "8000000.000000" New FFT rate: 25 Hz Requested bandwidth: 0 Hz Actual bandwidth : 0 Hz setFreqCorr : 0 ppm New LNB LO: 0 Hz updateHWFrequencyRange failed fetching new hardware frequency range New mode index: 2 Filter preset for mode 2 LO: -5000 HI: 5000 Generating taps for new filter LO:-5000 HI:5000 TW:2000 Taps: 115 setFftRate to "30 fps" New FFT rate: 30 Hz New FFT rate: 30 Hz New FFT rate: 30 Hz New FFT rate: 30 Hz setFftSize to "8192" New FFT rate: 30 Hz Generating taps for new filter LO:-5000 HI:5000 TW:2000 Taps: 115 Configure I/O devices. CIoConfig : Available output devices: 0 : "HD Audio Controller Analog Stereo" saveConfig Output device 1 : "alsa_output.pci-0000_0202.0.analog-stereo" New LNB LO: 0 Hz saveSettings *** FIXME SQL on/off New FFT rate: 30 Hz New FFT rate: 30 Hz Loading configuration from: "/home/audiocrush/.config/gqrx/default.conf" Configuration file: "/home/audiocrush/.config/gqrx/default.conf" No change in input device: old: device='HackRF One',driver=remote,part_id=a000cb3c00544755,remote=tcp://192.168.1.12:55132,remote:driver=hackrf,serial=0000000000000000088869dc2d82241b,soapy=2,version=2018.01.1 new: device='HackRF One',driver=remote,part_id=a000cb3c00544755,remote=tcp://192.168.1.12:55132,remote:driver=hackrf,serial=0000000000000000088869dc2d82241b,soapy=2,version=2018.01.1



No change in output device: old: alsa_output.pci-0000_02_02.0.analog-stereo new: alsa_output.pci-0000_02_02.0.analog-stereo

Failed to set RX input rate to 8e+06 Your device may not be working properly.

IQ DCR samp_rate: 8e+06 IQ DCR alpha: 1.25e-07 Requested sample rate: 8000000 Actual sample rate : "8000000.000000" New FFT rate: 30 Hz Requested bandwidth: 0 Hz Actual bandwidth : 0 Hz setFreqCorr : 0 ppm New LNB LO: 0 Hz updateHWFrequencyRange failed fetching new hardware frequency range New mode index: 2 Filter preset for mode 2 LO: -5000 HI: 5000 Generating taps for new filter LO:-5000 HI:5000 TW:2000 Taps: 115 setFftRate to "30 fps" New FFT rate: 30 Hz New FFT rate: 30 Hz setFftSize to "8192" New FFT rate: 30 Hz Generating taps for new filter LO:-5000 HI:5000 TW:2000 Taps: 115 New FFT rate: 30 Hz New FFT rate: 30 Hz `

audiocrush commented 3 years ago

I have no clue why but started from scratch, reinstallted the server and the client using pybombs.. works like a charm now :/