rxseger / rx_tools

rx_fm, rx_power, and rx_sdr tools for receiving data from SDRs, based on rtl_fm, rtl_power, and rtl_sdr from librtlsdr, but using the SoapySDR vendor-neutral SDR support library instead, intended to support a wider range of devices than RTL-SDR
GNU General Public License v2.0
357 stars 68 forks source link

rx_power with LimeSDR #89

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm trying to work with rx_power scripts recently. For some reason, the csv file output is not correct in Ubuntu 16.04. However, it's working fine in Ubuntu 20.04. Unfortunately, changing the Ubuntu distribution from 16.04 to 20.04 is not an option for me at the moment. So, I need some suggestions and help to identify and fix the problem in Ubuntu 16.04

~$ rx_power -f 100M:300M:200k -i 2m -1 survey.csv
Number of frequency hops: 72
Dongle bandwidth: 2777777Hz
Downsampling by: 1x
Cropping by: 0.00%
Total FFT bins: 1152
Logged FFT bins: 1152
FFT bin size: 173611.06Hz
Buffer size: 16384 bytes (2.95ms)
Reporting every 120 seconds
Using device Audio: device_id=0 origin=https://github.com/pothosware/SoapyAudio 
Found 1 channel(s) :
Channel 0 :
  Found 1 antenna(s): RX 
  Found 0 gain(s): 
  Found 1 frequencies: RF 
  Found 7 sample rates: 8000 16000 22050 32000 44100 48000 96000 
  Found 0 bandwidths: 
[INFO] Using format CS16.

User cancel, exiting...

Screenshot of the resultant csv: image

SoapySDRUtil --probe="driver=lime" finds the LimeSDR without any problem. Can someone points me in the right direction whether it's some soapy library issues or not? or rx_power is not compatible with ubuntu 16.04 ? Any suggestions are welcome

ghost commented 3 years ago

I added -d driver=lime options with rx_power command. This time got this error Error: bad retune at 101388888 Hz (4 of 3 attempts), r=-1, flags=0 (try increasing -S or -R). Error: reading stream -1

$ rx_power -f 100M:300M:200k -i 2m -1 survey.csv -d driver=lime
Number of frequency hops: 72
Dongle bandwidth: 2777777Hz
Downsampling by: 1x
Cropping by: 0.00%
Total FFT bins: 1152
Logged FFT bins: 1152
FFT bin size: 173611.06Hz
Buffer size: 16384 bytes (2.95ms)
Reporting every 120 seconds
............................................................ <output omitted>
Found 1 channel(s) :
Channel 0 :
  Found 5 antenna(s): NONE LNAH LNAL_NC LNAW Auto 
  Found 3 gain(s): TIA LNA PGA 
  Found 2 frequencies: RF BB 
  Found 2 sample rates: 100000 65000000 
  Found 0 bandwidths: 
[INFO] RX LPF configured
[INFO] Selected RX path: LNAW
**Error: bad retune at 101388888 Hz (4 of 3 attempts), r=-1, flags=0 (try increasing -S or -R).
Error: reading stream -1**