greatscottgadgets / hackrf

low cost software radio platform
https://greatscottgadgets.com/hackrf/
GNU General Public License v2.0
6.48k stars 1.52k forks source link

What is amplitude -inf dBfs ? #1121

Closed engantonio closed 2 years ago

engantonio commented 2 years ago

I am trying to generate a spoofer with hackRF but when i run it appear :

5.2 MiB / 1.006 sec = 5.2 MiB/second, amplitude -inf dBfs 5.2 MiB / 1.006 sec = 5.2 MiB/second, amplitude -inf dBfs 5.2 MiB / 1.007 sec = 5.2 MiB/second, amplitude -inf dBfs 5.2 MiB / 1.009 sec = 5.2 MiB/second, amplitude -inf dBfs

Please what is "amplitude -inf dBfs" ?

martinling commented 2 years ago

It's a bug, already filed as #902. The amplitude isn't calculated during TX. There is a PR to fix it at #1116 which I need to review.

engantonio commented 2 years ago

But

It's a bug, already filed as #902. The amplitude isn't calculated during TX. There is a PR to fix it at #1116 which I need to review.

But how can i solve this ?

martinling commented 2 years ago

What do you need to solve? The message doesn't mean it's not transmitting. It just displays -inf because hackrf_transfer doesn't calculate the amplitude of the sample stream during TX. That amplitude display feature was intended to help with adjusting RX gains when receiving a signal. If you're transmitting a signal, the amplitude of the TX sample stream is whatever you generated it to be.

engantonio commented 2 years ago

What do you need to solve? The message doesn't mean it's not transmitting. It just displays -inf because hackrf_transfer doesn't calculate the amplitude of the sample stream during TX. That amplitude display feature was intended to help with adjusting RX gains when receiving a signal. If you're transmitting a signal, the amplitude of the TX sample stream is whatever you generated it to be.

I understood then. But I find it strange because although it is transmitting it is not affecting my cell phone's gps. So I figured that could be it.

engantonio commented 2 years ago

Both generating in linux or in windows the spoofer is not working.... but its transmiting...

ardyitjen commented 5 months ago

is there any update? i got sampe problem with portapack h2

martinling commented 5 months ago

The -inf dBfs message was fixed in #1116 and that fix was shipped in 2022.09.1 and subsequent releases of the host tools. In any case, this message is almost certainly nothing to do with your problem. It does not mean nothing is being transmitted, it was just a display bug. You would get the same message no matter what data you supplied to hackrf_transfer.