STB0899 Signal Strength Patch

  • I have DVB-s2 witth stb0899 chipset ( http://www.satelco.de/htm/shop/easywatch_pci/index.htm ) SATELCO EasyWatch HDTV PCI (DVB-S2) .


    There were patches ( i think STB0899 Signal Strength Patch was one ) that solve a lot of problem.


    Particularly, problem in femon where 'STR' and 'SNR' was always 0, and wirbelscan, where scan cannot find any channel.


    The patches were in s2-liplianin, but it seems that there are not in new linux-media-dkms.


    How can i apply and where can i find this patches for yavdr 0.4 to make my DVB card to work in femon and wirbelscan ?


    Will be add them to the linux-media-dkms drivers ?


    Thanks


    P.S: Sorry for my bad english.

  • The linux-media version of kernel 3.3 have patches for this:


    http://www.mail-archive.com/li….kernel.org/msg43650.html
    http://www.mail-archive.com/li….kernel.org/msg43651.html



    Code
    Linux 3.3 (2012-03-18 16:15:34 -0700)
    
    
    are available in the git repository at:
      git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media v4l_for_linus
    
    
    Andreas Regel (2):
          [media] stb0899: set FE_HAS_SIGNAL flag in read_status
          [media] stb0899: fixed reading of IF_AGC_GAIN register


    Is it possible to backport them?

    2 Mal editiert, zuletzt von Murry ()


  • I have tried kernel 3.3.2, but for example femon give me always 0% signal ( aff course signal is ok ), so i don't know il patch are appliet.


    May be i do something wrong, i'm not linux expert.


    Someone can help ?

  • habe gleiches Problem mit Technisat Skystar HD 2 (STB0899)


    lspci:
    01:06.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
    habe heute mit
    01:06.0 Multimedia controller [0480]: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] [1822:4e35] (rev 01)
    Subsystem: Device [1ae4:0003]
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort+ <MAbort- >SERR- <PERR- INTx-
    Latency: 64 (2000ns min, 63750ns max)
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at dffff000 (32-bit, prefetchable)
    Kernel driver in use: Mantis
    Kernel modules: mantis


    die neuesten Treiber mt yavdr05 , femon getestet:


    cd~/
    git clone git://linuxtv.org/media_build.git //* 04-stb0899-ber_no_msleep.diff enthalten
    cd media_build
    ./build
    make install


    mit u. ohne
    02a-stb0899_signal_flag.diff


    bestes Ergebnis ist in yaVDR
    hier bekomme ich Lock ,STR, SNR aber keine Balken und %-Werte unabhängig von HD/SD sendern.
    femon liefert 0 .


    werde mal mit anderen Patches weitertesten.


    Ergebnis bis 3.1.2013:
    wird der alte lib2 Patch etwas modifiziert liefert er für STR und SNR bessere Ergebnisse:

    $ femon -H
    FE: STB0899 Multistandard (DVBS)
    Problem retrieving frontend information: Inappropriate ioctl for device
    status SC YL | signal 84% | snr 68% | ber 0 | unc 888009952 | FE_HAS_LOCK


    Der Rest bleibt wenig erfreulich:
    Werte für Ber Unc ??

    Inappropriate ioctl for device ??


    Viele Grüße

    yavdr 0.7 (Ubuntu 22.04 LTS), ASUS P5Q Deluxe, Nvidia GTX 760 , Cine S2 V6

    SW: 3 mal yaVDR 0.5 (SAT), 1 mal yaVDR 0.6 (Kabel) , 1 mal Kodi 15.2 Client
    HW: 2 mal SST LC10B mit ASUS M4N78 Pro , SST-GD01B-MXR u. Antec Micro Fusion 350 mit M3N78 EM
    Cine S2 V6 + Duoflex S2, Cine CT (V6) , Skystar HD2
    Logitech diNovo Edge, Logitech Harmony 900 , Logitech Harmony One , Imon Pad
    Panasonic TH-D42PN73E , Pionieer VSX-D511, Samsung LE32R52B

    3 Mal editiert, zuletzt von muchachos ()

  • hatte noch vergesser die von Murry verlinkten Patches waren bei dem Test enthalten.
    der YAVDR 0.5
    Zeigt Werte:
    STR 00e7 (0%)
    SNR 00dd (0%)
    was für 1% und rote Balken vermutlich nicht reicht.
    Grüße

    yavdr 0.7 (Ubuntu 22.04 LTS), ASUS P5Q Deluxe, Nvidia GTX 760 , Cine S2 V6

    SW: 3 mal yaVDR 0.5 (SAT), 1 mal yaVDR 0.6 (Kabel) , 1 mal Kodi 15.2 Client
    HW: 2 mal SST LC10B mit ASUS M4N78 Pro , SST-GD01B-MXR u. Antec Micro Fusion 350 mit M3N78 EM
    Cine S2 V6 + Duoflex S2, Cine CT (V6) , Skystar HD2
    Logitech diNovo Edge, Logitech Harmony 900 , Logitech Harmony One , Imon Pad
    Panasonic TH-D42PN73E , Pionieer VSX-D511, Samsung LE32R52B

  • Dieser alte s2-lib
    [patch] STB0899 signal strength fix (vdr 1.7.28)


    bringt einige Warnungen:
    /home//media_build/v4l/stb0899_drv.c: In function 'stb0899_read_signal_strength':
    /home//media_build/v4l/stb0899_drv.c:974:14:warning: ISO C90 forbids mixed declarations and code[-Wdeclaration-after-statement]
    974:14 const int MIN_STRENGTH_DVBS = 0;
    and code [-Wdeclaration-after-statement] /home//media_build/v4l/stb0899_drv.c: In function 'stb0899_read_snr':
    /home//media_build/v4l/stb0899_drv.c 1029:14: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    1029:14c onst int MIN_SNR_DVBS = 0;
    /home//media_build/v4l/stb0899_drv.c:1062:10:warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    1062:10 const int MIN_SNR_DVBS2 = 10;


    Der Treiber wird trotz Warnungen installiert und hat die Wirkung das die Balken u. Prozente zum Teil da sind.
    Die Werte scheinen mir aber noch nicht realistisch.


    Im Patch wird für STR (S) zBsp. durch
    +
    + const int MIN_STRENGTH_DVBS = 0;
    + const int MAX_STRENGTH_DVBS = 680;
    + if (*strength < MIN_STRENGTH_DVBS)
    + *strength = 0;
    + else if(*strength > MAX_STRENGTH_DVBS)
    + *strength = 0xFFFF;
    + else
    + *strength = (*strength - MIN_STRENGTH_DVBS) * 0xFFFF / (MAX_STRENGTH_DVBS - MIN_STRENGTH_DVBS);
    +
    eine Veränderung der Signale.erreicht. Die Treiberwerte werden in den HEX-Bereich von 0000 bis FFFF projiziert.
    Dabei gilt:
    Hex 0 bis FFFF
    STR (S) 0 bis 680 Anzeige um 30 %
    STR (S2) keine Umrechnung keine Anzeige
    SNR (S) 0 bis 200 Anzeige um 60 % aber keine Balken
    SNR (S2) 10 bis 70 Anzeige um 60 % aber keine Balken


    Der Ansatz aus dem lib2 funktioniert auch bei media dkms. HD Anzeige muß aber ergänzt werden und die werte sind noch anzupassen.
    ich teste zur Zeit mit:
    MIN_STRENGTH_DVBS = 0; MAX_STRENGTH_DVBS = 300; Karte 1 -- 380 Karte 2
    MIN_STRENGTH_DVBS2 = 0; MAX_STRENGTH_DVBS2 = 540; Karte 1 -- 580 Karte 2
    MIN_SNR_DVBS = 0; MAX_SNR_DVBS = 200
    MIN_SNR_DVBS2 = 0; MAX_SNR_DVBS2 = 70;


    Beim installieren merkt man das Änderungen an den Sourcen des STB0899 Demudulators auch viele andere Module außer dem Mantis verändern.



    Gruß

    yavdr 0.7 (Ubuntu 22.04 LTS), ASUS P5Q Deluxe, Nvidia GTX 760 , Cine S2 V6

    SW: 3 mal yaVDR 0.5 (SAT), 1 mal yaVDR 0.6 (Kabel) , 1 mal Kodi 15.2 Client
    HW: 2 mal SST LC10B mit ASUS M4N78 Pro , SST-GD01B-MXR u. Antec Micro Fusion 350 mit M3N78 EM
    Cine S2 V6 + Duoflex S2, Cine CT (V6) , Skystar HD2
    Logitech diNovo Edge, Logitech Harmony 900 , Logitech Harmony One , Imon Pad
    Panasonic TH-D42PN73E , Pionieer VSX-D511, Samsung LE32R52B

    17 Mal editiert, zuletzt von muchachos ()

  • Hier nun die Tabellenbereiche aus dem Treiber für die Umrechnung Hardware in dB s.Zitat


    Hex 0 bis FFFF
    STR (S) 80 bis 748
    STR (S2) 80 bis 766
    SNR (S) 15 bis 200
    SNR (S2) wird aus zwei Tabs berechnet 10 bis 70 scheinen geeignet


    Beispiel :
    STR für DVB-S
    -8 dBm <= 74
    -74,8 dBm <= -94


    -8 dBm *10 Hex 0050
    -74,8 dBm * 10 Hex 0310


    Umrechnung für femon *FFFF


    Hier noch der Rest:
    SNR für DVB-S
    20 dB <= 2600
    1,5 dB <= 9600


    STR für DVB-S2
    -8 dBm <= 3217
    -76,6 dBm <=14153


    SNR für DVB-S2
    quant
    6 dB <= 20000
    48 dB <= 2541000
    est
    3 dB<= 2
    57 dB <= 526017


    Gruß


    Derzeit gibt es aber leider keine Möglichkeit so einen Korrekturfaktor einzutragen. Dazu müsstest Du entweder femon oder den DVB-Treiber patchen. Habe mir gerade den Treiber angeschaut. Er enthält Referenztabellen anhand derer der Wert den die Hardware liefert in Dezibelwerte zurückgerechnet wird. Für die Signalstärke sind demnach Werte von ca. 0 bis 830 zu erwarten, entsprechend -75dB bis -8dB. Der Signal-Rausch-Abstand liefert Werte zwischen 15 und 200 (1,5dB bis 20dB). Da femon 100% mit 65535 gleichsetzt, wird das so nix mit den Balken :(. Da könnte man im Treiber ruhig einen Faktor 100 einbauen.



    Da habe ich mich wohl zu knapp ausgedrückt: Nicht in jeder Karte lassen sich BER oder UNC abfragen. Beim STB0899 ist UNC nicht verfügbar, daher die "Operation not supported"-Meldung.

    yavdr 0.7 (Ubuntu 22.04 LTS), ASUS P5Q Deluxe, Nvidia GTX 760 , Cine S2 V6

    SW: 3 mal yaVDR 0.5 (SAT), 1 mal yaVDR 0.6 (Kabel) , 1 mal Kodi 15.2 Client
    HW: 2 mal SST LC10B mit ASUS M4N78 Pro , SST-GD01B-MXR u. Antec Micro Fusion 350 mit M3N78 EM
    Cine S2 V6 + Duoflex S2, Cine CT (V6) , Skystar HD2
    Logitech diNovo Edge, Logitech Harmony 900 , Logitech Harmony One , Imon Pad
    Panasonic TH-D42PN73E , Pionieer VSX-D511, Samsung LE32R52B

    5 Mal editiert, zuletzt von muchachos ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!