Hi,
angeregt durch einen ML beitrag hab ich mal weiter C gelernt,
herausgekommen ist ein patch für ein kleines tool,
der DVB treiber, mit dem ohne vdr zu patchen einfach der
Signal und S/NR wert in Prozent ausgegebn wird,
per commands.conf aufgerufen oder per script (freie fb taste,
o. ä.) ist das wenigstens etwas. mehrere karten werden unterstützt,
auch ein erweiterter output ist möglich.
zur weiteren erklärung einfach der ML beitrag:
Aus vdr mailingliste:
ZitatAlles anzeigen
Hi Rene,
Rene Bartsch schrieb:
> Hi,
>
> szap of current drivers includes femon-tool (femon.c -> femon).
>
> This is a read-only tool accessing adapterX/frontendX. So it can run
> parallel to the application (VDR) and display values on stdout.
>
> My approach is to use "femon -aX -f0 | svdrpsend.pl" in commands.conf to
> get SNR/BER, etc. on screen.
whilst not being a c programmer i start to learn by
doing, so i fiddled a little bit or two around,
and for people not wanting to patch vdr (techpatch)
i patched femon to generate only signal % and snr % output
suitable for vdr osd output (via commands.conf).
example
~~~~~from commands.conf~~~~~~~~
1 Get DVB signal and s/nr info:/vdr/DVB/apps/szap/femon
2 Get info for 2nd DVB card:/vdr/DVB/apps/szap/femon -a1
3 Get info from both:/vdr/DVB/apps/szap/femon -a0;/vdr/DVB/apps/szap/femon -a1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
or you can use a shell script to display these values
to the osd, or put to logfile, in a loop or single run,
but always keep 1 second in between the calls, since
the FE may get stuck if called too often, and else it
will return garbage if called too often.
femon is found in the apps/szap folder of the recent driver,
if you want detailed output, see line 48 in femon.c and
uncomment the "define ADVANCED_OUTPUT = 1", and more output
will be generated.(the percentage output and the original
femon output)
Have fun
> Maybe someone with C++-capabilities can use femon-code in a plugin
> recalculating the HEX-values to human readable values.
P.S.
was really easy, mostly an u for x and some math + ifdef
>
> Rene
>
>
>
mini guide:
einfach die .gz datei nach DVB/apps/szap kopieren
und dann
zcat femon.c-vdr-osd.diff.gz |patch -p0
aufrufen, danach "make femon"
werte um 70% sind gut, bei signal geht auch weniger,
allerdings ist bei ~35% ende und es wird kritisch.
fertig ....
Viel Spass, bei problemen bitte ne PM schicken
Gruß MeMeD