greatscottgadgets / hackrf

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

-36db #932

Closed markl17 closed 3 years ago

markl17 commented 3 years ago

E1E4B2D6-3EF3-48BE-AFAC-A0C16D61FEED IMG-2422

Steps to reproduce

1.a simple radio setup to generate frequency 2.picture attached from gnu radio 3.

Expected behaviour

Tell us what you expect should happen The dB should be with out any amplifier should be +10fb

Actual behaviour

Tell us what happens instead Instead I get -34db

Version information

Operating system:

hackrf_info output:

If you are reporting a problem that involves third party software (GNU Radio, Gqrx, etc), please report the version here.

Output

Insert any commandline 
Gnuradio-companion 
mossmann commented 3 years ago

There are a couple of things misconfigured in the GNU Radio flowgraph:

  1. The minimum sample rate supported by HackRF One is 2 Msps (see https://hackrf.readthedocs.io/en/latest/hackrf_one.html#features) but your samp_rate is set to 48 ksps. I recommend setting it to 4 Msps (4e6) for best results.

  2. The maximum frequency that can be generated by the Signal Source without aliasing is half the sample rate, but your Signal Source is configured to generate a frequency of 200 MHz. I suggest that you replace the Signal Source with a Constant Source and set its constant to 1. (The HackRF will convert that constant signal to a 200 MHz sinusoid in the analog domain.)

Additionally you might not be aware of the difference between dB and dBm. If you want an output power of approximately 10 dBm, you should increase the IF gain in the Osmocom Sink to 47 dB which is the maximum. This will maximize the output power but does not guarantee any particular output power level. HackRF One output power is uncalibrated.

These are all topics covered in my video series which I think you may find helpful: https://greatscottgadgets.com/sdr/

markl17 commented 3 years ago

as you see I did all of your changes and got -39db I did the if gain 47 same result

IMG-2425 IMG-2426

markl17 commented 3 years ago

Why is this closed I didn’t close it I still have problems

On Fri, Aug 20, 2021 at 2:43 PM Michael Ossmann @.***> wrote:

Closed #932 https://github.com/mossmann/hackrf/issues/932.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#event-5188244711, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SUZ444Q3NAIBQDXMWO3T52O6RANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

straithe commented 3 years ago

This particular area of GitHub relates mainly to the HackRF One device and its native drivers and tools only. You will most likely not get the amount help you need since it seems that your issue is not with the HackRF One, but with GNU Radio. As suggested by @mossmann you may want to check out https://greatscottgadgets.com/sdr/ or ask more questions in the GNU Radio community.

markl17 commented 3 years ago

hi I think that one of my amplifier chips is dead how do I find if it's not

markl17 commented 3 years ago

i really think one of my amp chips is blawn

straithe commented 3 years ago

Have you tried an alternative piece of software, like GQRX to ensure that the HackRF is working?

markl17 commented 3 years ago

No, I haven't.

On Wed, Aug 25, 2021 at 5:17 PM Straithe @.***> wrote:

Have you tried an alternative piece of software, like GQRX to ensure that the HackRF is working?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#issuecomment-905882191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SU4V2TUHSRPG27W5EZ3T6VMWZANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

markl17 commented 3 years ago

yes I just tried it and all of sudden I get 8dbm in gnuradio after running gqrx but 8 db is only at 151 mhz and with a 30dbm amp that is being suggested on your website but if I go to 557mhz I get -2.3 dbm and I go to 1.100ghz then my dbm drops to -40 is that normal

On Wed, Aug 25, 2021 at 6:25 PM M. Lyakhovsky @.***> wrote:

No, I haven't.

On Wed, Aug 25, 2021 at 5:17 PM Straithe @.***> wrote:

Have you tried an alternative piece of software, like GQRX to ensure that the HackRF is working?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#issuecomment-905882191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SU4V2TUHSRPG27W5EZ3T6VMWZANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

-- Do have a Blessed Day image_67148033 (1) image_67148033

markl17 commented 3 years ago

[image: image_67148033.JPG] [image: image_67148033 (1).JPG]

On Wed, Aug 25, 2021 at 7:05 PM M. Lyakhovsky @.***> wrote:

yes I just tried it and all of sudden I get 8dbm in gnuradio after running gqrx but 8 db is only at 151 mhz and with a 30dbm amp that is being suggested on your website but if I go to 557mhz I get -2.3 dbm and I go to 1.100ghz then my dbm drops to -40 is that normal

On Wed, Aug 25, 2021 at 6:25 PM M. Lyakhovsky @.***> wrote:

No, I haven't.

On Wed, Aug 25, 2021 at 5:17 PM Straithe @.***> wrote:

Have you tried an alternative piece of software, like GQRX to ensure that the HackRF is working?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#issuecomment-905882191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SU4V2TUHSRPG27W5EZ3T6VMWZANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

-- Do have a Blessed Day

-- Do have a Blessed Day

miek commented 3 years ago

An easy way to check whether the RF amp is damaged is to test the power output with it enabled and with it bypassed, without changing any other settings. If the power drops when the RF amp is enabled then it is probably damaged. The amp is enabled when the RF Gain setting is 14, and bypassed when the RF gain setting is 0.

Could you point to where the website suggests a 30dB amp? The amp in the HackRF that people usually refer to has 14dB of gain.

In your screenshots from https://github.com/mossmann/hackrf/issues/932#issuecomment-902950793, the PortaPack display shows that the RF amp is disabled and the IF gain is only set to 14dB, so this is 47dB below the maximum available output power. So measuring -40dBm is correct.

Also keep in mind that channel 1 on that frequency counter is only specified up to 200MHz. If you're not switching port, that may explain why the signal drops when measuring 1.1GHz.

The images in your latest comment aren't showing up.

markl17 commented 3 years ago

They are the same once

On Thu, Aug 26, 2021 at 8:23 AM Mike Walters @.***> wrote:

An easy way to check whether the RF amp is damaged is to test the power output with it enabled and with it bypassed, without changing any other settings. If the power drops when the RF amp is enabled then it is probably damaged. The amp is enabled when the RF Gain setting is 14, and bypassed when the RF gain setting is 0.

Could you point to where the website suggests a 30dB amp? The amp in the HackRF that people usually refer to has 14dB of gain.

In your screenshots from #932 (comment) https://github.com/mossmann/hackrf/issues/932#issuecomment-902950793, the PortaPack display shows that the RF amp is disabled and the IF gain is only set to 14dB, so this is 47dB below the maximum available output power. So measuring -40dBm is correct.

Also keep in mind that channel 1 on that frequency counter is only specified up to 200MHz. If you're not switching port, that may explain why the signal drops when measuring 1.1GHz.

The images in your latest comment aren't showing up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#issuecomment-906360653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SU6YPLKCKAN57C7OZ6TT6YW5XANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

markl17 commented 3 years ago

I finally understood that. you are talking about my counter the power dbm is only available on ch1 on ch2 there is no power and after switch to it the freq is telling me 4.5 ghz which means the signal below the threshold of it figuring out anything because on chanell 1 if the sig is high enough it tells you the freq pready good

On Thu, Aug 26, 2021 at 9:42 AM M. Lyakhovsky @.***> wrote:

They are the same once

On Thu, Aug 26, 2021 at 8:23 AM Mike Walters @.***> wrote:

An easy way to check whether the RF amp is damaged is to test the power output with it enabled and with it bypassed, without changing any other settings. If the power drops when the RF amp is enabled then it is probably damaged. The amp is enabled when the RF Gain setting is 14, and bypassed when the RF gain setting is 0.

Could you point to where the website suggests a 30dB amp? The amp in the HackRF that people usually refer to has 14dB of gain.

In your screenshots from #932 (comment) https://github.com/mossmann/hackrf/issues/932#issuecomment-902950793, the PortaPack display shows that the RF amp is disabled and the IF gain is only set to 14dB, so this is 47dB below the maximum available output power. So measuring -40dBm is correct.

Also keep in mind that channel 1 on that frequency counter is only specified up to 200MHz. If you're not switching port, that may explain why the signal drops when measuring 1.1GHz.

The images in your latest comment aren't showing up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mossmann/hackrf/issues/932#issuecomment-906360653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3SU6YPLKCKAN57C7OZ6TT6YW5XANCNFSM5CA5XFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Do have a Blessed Day

-- Do have a Blessed Day