pothosware / SoapySDR

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

SoapySDR:Actual master clock rate: 0.0000 kHz with HackRF One #357

Closed Highspeedy closed 2 years ago

Highspeedy commented 2 years ago

Hello, actually I want use a HackRF One for creating a digital DAB-Radio signal with Open Digital Radio prroject. I compiled all neccessary sources without errors on an arm64 system.

Running odr-dabmod creates following output:

DR-DabMod version v2.6.0, compiled at Jun 1 2022, 10:45:43 Compiled with features: zeromq output_soapysdr 2022-06-03Z10:46:28Input Type: zeromq Source: tcp://localhost:9100 Output SoapySDR Device: master_clock_rate: 32768000 Sampling rate: 2.0480 MHz RC: Waiting for connection on port 2121 2022-06-03Z10:46:28 Configuration parsed. Starting up version v2.6.0 2022-06-03Z10:46:28 Soapy:Creating the device with: [INFO] Opening HackRF One #0 308066e625135e4b... 2022-06-03Z10:46:28 SoapySDR:Actual master clock rate: 0.0000 kHz 2022-06-03Z10:46:28 SoapySDR:Actual TX rate: 2048.0000 ksps. 2022-06-03Z10:46:28 SoapySDR:Actual frequency: 223936.000 kHz. 2022-06-03Z10:46:28 SoapySDR:Actual TX gain: 40.00 2022-06-03Z10:46:28 SoapySDR:Actual TX antenna: TX/RX 2022-06-03Z10:46:28 Setting up timestamp decoder with 0 offset 2022-06-03Z10:46:28 Input ZeroMQ: Receiving from tcp://localhost:9100

Replacing the HackRF One with an Lime Mini creates following output:

ODR-DabMod version v2.6.0, compiled at Jun 1 2022, 10:45:43 Compiled with features: zeromq output_soapysdr Input Type: zeromq Source: tcp://localhost:9100 Output SoapySDR Device: master_clock_rate: 32768000 Sampling rate: 2.0480 MHz 2022-06-03Z10:51:07 RC: Waiting for connection on port 2121 2022-06-03Z10:51:07 Configuration parsed. Starting up version v2.6.0 2022-06-03Z10:51:07 Soapy:Creating the device with: [INFO] Make connection: 'LimeSDR Mini [USB 2.0] 1D4C296EC121C3' [INFO] Reference clock 40.00 MHz [INFO] Device name: LimeSDR-Mini [INFO] Reference: 40 MHz [INFO] LMS7002M register cache: Disabled 2022-06-03Z10:51:09 SoapySDR:Actual master clock rate: 61439.9990 kHz [INFO] Filter calibrated. Filter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active [INFO] TX LPF configured [INFO] RX LPF configured 2022-06-03Z10:51:12 SoapySDR:Actual TX rate: 2048.0000 ksps. [INFO] Selected TX path: Band 2 2022-06-03Z10:51:12 SoapySDR:Actual frequency: 223936.000 kHz. 2022-06-03Z10:51:12 SoapySDR:Actual TX gain: 40.00 2022-06-03Z10:51:12 SoapySDR:Actual TX antenna: BAND2 2022-06-03Z10:51:12 Setting up timestamp decoder with 0 offset 2022-06-03Z10:51:12 Input ZeroMQ: Receiving from tcp://localhost:9100

There is a real master clock rate and not 0 and the Lime Mini transmitted a signal on 224 MHz.

Any idea what´s wrong with SoapySDR and the HackRF ?

Added information:

$ SoapySDRUtil --info ######################################################

Soapy SDR -- the SDR abstraction library

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

Lib Version: v0.8.1-gc3764142 API Version: v0.8.0 ABI Version: v0.8 Install root: /usr/local Search path: /usr/local/lib/SoapySDR/modules0.8 Module found: /usr/local/lib/SoapySDR/modules0.8/libHackRFSupport.so (0.3.4-79077f0) Module found: /usr/local/lib/SoapySDR/modules0.8/libLMS7Support.so (20.10.0-1480bfea) Available factories... hackrf, lime Available converters...

$ SoapySDRUtil --probe="driver=hackrf" ######################################################

Soapy SDR -- the SDR abstraction library

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

Probe device driver=hackrf [INFO] Opening HackRF One #0 308066e625135e4b...


-- Device identification

driver=HackRF hardware=HackRF One clock source=external part id=a000cb3c006a4767 serial=0000000000000000308066e625135e4b version=2021.03.1


-- Peripheral summary

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


-- RX Channel 0

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


-- TX Channel 0

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

Highspeedy commented 2 years ago

Changing some parameters in the ini-file of odr-dabmod resolved the problem.