egzumer / uv-k5-firmware-custom

A merge between https://github.com/OneOfEleven/uv-k5-firmware-custom and https://github.com/fagci/uv-k5-firmware-fagci-mod
Apache License 2.0
1.33k stars 427 forks source link

Fix RX sensitivity #497

Open Valinstein opened 8 months ago

Valinstein commented 8 months ago

On egzumer 0.22 tx sensitivity on UHF -119db, but on stock was 126-127db. Would be nice if in the next relises sensitivity come back to stock firmware results

OE1MWW commented 8 months ago

@Valinstein. Did you mean 'RX sensivity' (?). How did you measure ? Squelch open ? What carrier- plain or FM modulated carrier? Btw., sensivity is expressed 'dBm' and not in 'db'. The average sensitivity of a UHF receiver is typically around -110 dBm to -115 dBm. So, your shown values (if they are in dBm) are not so bad - consider this - for a device, delivered to your front door for 20$.

Valinstein commented 8 months ago

@OE1MWW Sorry, my bad. Ofcourse RX sensivitivity. I measured it with a friend of mine by frequency generator. It gave modulated signal on sortain frequency with 1kHz signal. In the same conditions this, and alot others such transivers, showes -124-126 sensivitivity dbm. But on egzumer 0.22 firmware it showes only -119dbm. Another a friend of mine has made independent test with the same conditions - he also got -119dbm rx sensivity. But he also noted that all previous UV-K5(8) quanshengs showed mutch better result, but on a stock firmware.

OE1MWW commented 8 months ago

Checked with a UV-K5 on egzumer 0.22 UV-K5(8) on kamilsss655 firmware Signal generator: tinySA + 40db attenuator, FM modulation 1kHz 3Khz dev.

On both devices: VHF: -130dBm (-90dBm +40 db) UHF: -125 dBm (-85dBm + 40 db)

Valinstein commented 8 months ago

Here you some examples: Egzumer: https://youtu.be/xpkcRJWbqCw Stock firmware: https://youtu.be/nfLkkS8Ds8Q

kamilsss655 commented 8 months ago

Hey guys, I don't want to be rude, but this is completely wrong.

You are not measuring receiver sensitivity:

The sensitivity of an electronic device, such as a communications system receiver, or detection device, such as a PIN diode, is the minimum magnitude of input signal required to produce a specified output signal having a specified signal-to-noise ratio, or other specified criteria.

Receiver sensitivity is a measure of the minimum signal strength that a receiver can detect. It tells us the weakest signal that a receiver will be able to identify and process.

What you have measured is squelch sensitivity, and it can be increased so its always open, but that would not be very practical.

Also please note that the dBm values are just numbers and can have different meanings across firmwares based on their calibrations.

Valinstein commented 8 months ago

Even with open squelch it doesn't hear anything on levels above 120dbm...

Ok, i tried. If this is not issue but feature - ok...

OE1MWW commented 8 months ago

@Valinstein - sorry, this Youtube video does not show the receiver senisvity. Shown is the RF input plus modulation level to open the squelch. The level to open the squelch depends on your calibration and settings. Additional the AGC will also interfere such measuremnets. Sensivity is checkd with a scope, by reducing a high RF signal level step-by-step down, until the the audio level is equal to the noise level.

OE1MWW commented 8 months ago

@kamilsss655 (my prefered firmware designer ;-) ) dBm is 1 milliwatt on 50 ohms as a reference. All the dBm values discussed here are the ones on the generator side. -120 dBm in a 50 ohm system is approximately 2,44 microvolts (µV) input.

BruMcD commented 8 months ago

So much missinformation

The on screen dBm figure is an estimate at best. It certainly isn't accurate on mine

FM Sensitivity is measured by looking for a condition called 12dB SINAD. This means the wanted signal (a 1KHz tone at usually 60% of max deviation ) is standing 12dB above the surrounding noise level. After a few years you can often judge this by ear but otherwise and for Precision you need a SINAD meter/speaker load and a generator that doesn't leak RF and can accurately put out a precise signal and defined carrier level.

Other ways to define 'sensitivity' exist- like squelch opening or noise quieting - but they are NOT the way the specification calls for and are inferior to SINAD in FM systems.

In doing these tests you realise Squelch must be open and that 'better' figures will result from using a narrower bandwidth NFM receive filter with the generator set to wide FM (5KHz max dev) as the noise bandwidth is less and the tone is now 100%+deviation . Also any difference in tuning accuracy between Generator and Radio will degrade the SINAD. Any noise on the generator or spurious noise on the test channel will impact measurements too

Across several sets all using 0.22 and the same CHIRP settings I've mostly seen 12dB SINAD sensitivity figures of -121 to -123dBm (I did see -126 but only on F3 VHF and only on two sets. Not sure how as this figure is very hard to achieve normally!) All of which I'd call close enough to the specified -123dBm dBm for a Chinese set :-) The difference presumably relates to hardware issues like Chip quality, internal noise and LPF losses

BruMcD commented 8 months ago

@kamilsss655 (my prefered firmware designer ;-) ) dBm is 1 milliwatt on 50 ohms as a reference. All the dBm values discussed here are the ones on the generator side. -120 dBm in a 50 ohm system is approximately 2,44 microvolts (µV) input.

hmmmmmmm
-100dBm is 2.24uV PD at the 50 ohm antenna terminal
-120dBm is 0.224 uV PD at the 50 ohm antenna terminal

OE1MWW commented 8 months ago

@BruMcD ... you got me. First I had 6 digits behind comma, then I edited my own post ... late evening typo - set the comma wrong. So, I owe you some dBm ;-)