Bug #4440
Digital Devices DVB-T signal not shown
100%
Description
After latest DDDVB drivers installed no signal levels for DVB-T
Force old status also not helped
Info: DVB: =========== Card 2 - Tuner 0 =========== Info: DVB: Frontend : STV0367 DVB-C DVB-T Info: DVB: Terrestrial (DVB-T) card Info: DVB: Frequency: 47125 kHz to 865000 kHz
femon -a 2 -f 0 FE: STV0367 DVB-C DVB-T (DVBT) status SCVYL | signal 0040 | snr 0122 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status SCVYL | signal 0040 | snr 0122 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status SCVYL | signal 0040 | snr 0123 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status SCVYL | signal 0040 | snr 0122 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
femon -a 2 -f 0 -H FE: STV0367 DVB-C DVB-T (DVBT) status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK status SCVYL | signal 0% | snr 0% | ber 0 | unc 0 | FE_HAS_LOCK
astra --femon -a 2 -d 0 -r Jun 19 00:19:29: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.5dB ber:0 unc:0 Jun 19 00:19:30: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0 Jun 19 00:19:31: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.5dB ber:0 unc:0 Jun 19 00:19:32: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.5dB ber:0 unc:0 Jun 19 00:19:33: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.7dB ber:0 unc:0 Jun 19 00:19:34: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.7dB ber:0 unc:0 Jun 19 00:19:35: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0 Jun 19 00:19:36: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.7dB ber:0 unc:0 Jun 19 00:19:37: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.3dB ber:0 unc:0 Jun 19 00:19:38: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0 Jun 19 00:19:39: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0 Jun 19 00:19:40: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.3dB ber:0 unc:0 Jun 19 00:19:41: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0 Jun 19 00:19:42: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.5dB ber:0 unc:0 Jun 19 00:19:43: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.3dB ber:0 unc:0 Jun 19 00:19:44: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:-64dBm snr:28.6dB ber:0 unc:0
Files
History
Updated by saen acro over 7 years ago
astra --femon -a 2 -d 0 Jun 19 00:25:59: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:00: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:01: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:02: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:03: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:04: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:05: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:06: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:07: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:08: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:09: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0 Jun 19 00:26:10: INFO: [dvb_input 2:0] fe has lock. status:SCVYL signal:0% snr:0% ber:0 unc:0
Updated by Jaroslav Kysela over 7 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|d465752e72ab6e76a24b9ca6b7dfb51f67bc8470.
Updated by Jaroslav Kysela over 7 years ago
The problem is that the returned values are wrong (the 'standard' range is 0-65535 and those reported values are too small). I just added the signal/SNR multipliers to the linuxdvb frontend configuration v4.3-250-gd465752, so you can tune this yourself (signal multiplier about 100000, SNR multiplier about 20000). The astra program has special code for DD devices.
Updated by saen acro over 7 years ago
This fix problem
But isn't it something wrong?
So IF for Signal 100% = 65536 and SNR 100% =65536
(in my case Signal 96% SNR 88%)
Is driver return values Signal 0.6288 SNR 2.882
or driver return direct Signal:-63dBm snr:28.5dB
Updated by saen acro over 7 years ago
- File signal.PNG signal.PNG added
This fix destroy normally working before signal on other tuners
Updated by Jaroslav Kysela over 7 years ago
I don't understand. If you keep the default multiplier 100, then the signal/snr values read from the driver are not modified. Just change these parameters for affected devices.
The driver basic range is 0...65535 (which means 0-100%). So signal 88% is (65535*88)/100 = 57670 which is E146 in hexa.
Updated by saen acro over 7 years ago
I also have a DVB-S2 devices i don't touch default values but it show this
65536/100=655
then 655 is equal to 1% (is this correct?)
I set multiplier to 100000 and signal show 96%
So we calculate
655*96=62880
But for check
62888/100000=0,6288 (is this correct?)
Same calculations for SNR with multiplier 20000
return value 2.882
Bit Astra return values as signal in dBm and SNR as dB,
in % do not return nothing, only with -r (signal/snr values in dBm)
This calculations and values are too close to values in dBm and dB
simple Rounding to second number
Signal 0.6288 SNR 2.882
Signal -63dBm snr28.5dB
Updated by Jaroslav Kysela over 7 years ago
The math is (as noted in 'Help'): (driver_value * multiplier) / 100 . Note that if the driver reports values in dB, they're multiplied by 0.001 in the webui (three decimal places). But the logic with the multiplier is same. If you use 100, it's like * 1, if you use 200, it's like * 2 etc..
Updated by Jaroslav Kysela over 7 years ago
but in your screenshot it looks like that the driver reports that the scale is FE_SCALE_DECIBEL but the value is FE_SCALE_RELATIVE
Updated by Petar Ivanov over 7 years ago
Can this be fixed here don't show SNR
Force old status not change anything
When use femon with patch for dB, here is patch link: https://patchwork.kernel.org/patch/2653281/ , because standart 'femon' from dvb-apps don't have option to show in SNR in dB, drivers in my card show SNR in dB.
--- dvb-apps-3ee111da5b3a.orig/util/femon/femon.c 2013-06-02 14:05:00.988323437 +0200 +++ dvb-apps-3ee111da5b3a/util/femon/femon.c 2013-06-02 14:05:33.560792474 +0200 @@ -102,11 +102,20 @@ int check_frontend (struct dvbfe_handle fe_info.lock ? 'L' : ' '); if (human_readable) { - printf ("signal %3u%% | snr %3u%% | ber %d | unc %d | ", - (fe_info.signal_strength * 100) / 0xffff, - (fe_info.snr * 100) / 0xffff, - fe_info.ber, - fe_info.ucblocks); + // SNR should be in units of 0.1 dB but some drivers do + // not follow that rule, thus this heuristic. + if (fe_info.snr < 1000) + printf ("signal %3u%% | snr %4.1fdB | ber %d | unc %d | ", + (fe_info.signal_strength * 100) / 0xffff, + fe_info.snr / 10., + fe_info.ber, + fe_info.ucblocks); + else + printf ("signal %3u%% | snr %3u%% | ber %d | unc %d | ", + (fe_info.signal_strength * 100) / 0xffff, + (fe_info.snr * 100) / 0xffff, + fe_info.ber, + fe_info.ucblocks); } else { printf ("signal %04x | snr %04x | ber %08x | unc %08x | ", fe_info.signal_strength,
Info from patched 'femon' with dB and drivers provide in dB, when femon get.
FE: Conexant CX24117/CX24132 (DVBS) signal 79% | snr 14.0dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 14.0dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK signal 79% | snr 13.9dB | ber 0 | unc 0 | FE_HAS_LOCK
Also from astra, where seem use same 'femon'
astra --femon "dvb://#adapter=4&diseqc=4&type=S&tp=12524:h:30000" -r INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:14.0dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52124dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52124dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52124dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52124dBm snr:13.9dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52224dBm snr:14.0dB ber:0 unc:0 INFO: [dvb_input 4:0] fe has no lock. status:SCVYL signal:-52124dBm snr:14.0dB ber:0 unc:0
Astra code:
https://bitbucket.org/cesbo/astra/src/646cc63bdf14d3da29b00a8da5c697fa9dcb31e2/modules/dvb/src/fe.c?at=astra-4&fileviewer=file-view-default
https://bitbucket.org/cesbo/astra/src/646cc63bdf14d3da29b00a8da5c697fa9dcb31e2/scripts/femon.lua?at=astra-4&fileviewer=file-view-default
My card driver use old: FE_READ_STATUS
https://www.linuxtv.org/downloads/v4l-dvb-apis-old/FE_READ_STATUS.html
My card drivers:
https://github.com/crazycat69/linux_media/blob/latest/drivers/media/dvb-frontends/cx24117.c
Can be implement in TVH to get signal like 'femon'
Also in log say: Unable to provide SNR value.
Updated by Jaroslav Kysela over 7 years ago
Provide a patch, here's relevant tvh code: https://github.com/tvheadend/tvheadend/blob/master/src/input/mpegts/linuxdvb/linuxdvb_frontend.c#L1164-L1198
Updated by Petar Ivanov over 7 years ago
I don't have patch for TVH, i use patch where i show above, for Femon .
I try to make in TVh ,but no luck i am not coder
I wait your help.
Updated by Petar Ivanov over 7 years ago
patch for dB for femon
Updated by V V over 4 years ago
Hi all, we're using this device from Digital Devices
https://www.digital-devices.eu/shop/en/cine-series/cine-series/318/twin-tuner-tv-card-dvb-c/c2/t/t2/isdb-t-dd-cine-c2/t2i-v7-simplitv-compatible-orf?c=156
And we have the same problem where we can't see SNR from it.
Any idea how to get it working?
Thanks!