[vdr] VDR with S2API (update)

Alex Betis alex.betis at gmail.com
Sun Dec 14 21:29:25 CET 2008


On Sun, Dec 14, 2008 at 2:01 PM, Klaus Schmidinger <
Klaus.Schmidinger at cadsoft.de> wrote:

>
> >>>     Some more info: apparently the problem only happens if a DVB-S2
> card
> >>>     (a TT-budget S2 3200 in my case) is (attempted to be) tuned to a
> DVB-S2
> >>>     channel after the driver has been freshly loaded. Once the card has
> >>>     been tuned to a DVB-S channel, subsequent tuning to DVB-S2 channels
> >>>     works fine.
>
I have Twinhan 1041 that use the same driver so I could check the problem...


> When I run scan-s2 with an initial tuning file that contains only a DVB-S2
> transponder (Astra 19.2E)
>
> S 11362000 H 22000000 2/3
>
> and change scan.c so that it first tunes to DVB-S2, as in
>
>                        /* set up list of delivery systems*/
>                        //fe_delivery_system_t
> delset[]={SYS_DVBS,SYS_DVBS2};
>                        fe_delivery_system_t delset[]={SYS_DVBS2,SYS_DVBS};

You can also start the entry in INI file with "S2" to scan only in DVB-S2 or
"S1" to scan in DVB-S only mode.

>
>
> I get this with a freshly loaded driver:
>
>
>
> ===============================================================================
> API major 5, minor 0
> ERROR: Cannot open rotor configuration file 'rotor.conf'.
> scanning /home/kls/vdr/scan-s2-c728a0055904/dvb-s/Astra-19.2E
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> initial transponder DVB-S2 11362000 H 22000000 2/3 AUTO AUTO
> initial transponder DVB-S  11362000 H 22000000 2/3 AUTO AUTO
> ----------------------------------> Using DVB-S2
> >>> tune to: 11362:hS1C23:S0.0W:22000:
> DVB-S IF freq is 1612000
> FE_SET_PROPERTY TUNE failed: Invalid argument
> >>> tune to: 11362:hS1C23:S0.0W:22000:
> DVB-S IF freq is 1612000
> FE_SET_PROPERTY TUNE failed: Invalid argument
> ----------------------------------> Using DVB-S
> >>> tune to: 11362:hS0C23:S0.0W:22000:
> DVB-S IF freq is 1612000
> WARNING: >>> tuning failed!!!
> >>> tune to: 11362:hS0C23:S0.0W:22000: (tuning failed)
> DVB-S IF freq is 1612000
> WARNING: >>> tuning failed!!!
> ERROR: initial tuning failed
> dumping lists (0 services)
> Done.
>
> ===============================================================================
>
There seems to be a problem in the driver with AUTO modulation setting. Some
drivers do not allow it at all.
2 options:

Explicitly specify the modulation, such as:
S2 11362000 H 22000000 2/3 AUTO 8PSK

Or add the following case into switch in dtv_property_adv_params_sync
function in dvb_frontend.c file of the drivers:
case QAM_AUTO:

Just in case, the function will start with:

void dtv_property_adv_params_sync(struct dvb_frontend *fe)
{
    struct dtv_frontend_properties *c = &fe->dtv_property_cache;
    struct dvb_frontend_private *fepriv = fe->frontend_priv;
    struct dvb_frontend_parameters *p = &fepriv->parameters;

    p->frequency = c->frequency;
    p->inversion = c->inversion;

    switch(c->modulation) {
    case PSK_8:
    case APSK_16:
    case APSK_32:
    case QPSK:
*    case QAM_AUTO:
*        p->u.qpsk.symbol_rate = c->symbol_rate;
        p->u.qpsk.fec_inner = c->fec_inner;
        break;
    default:
        break;
    }

This will solve the problem. I'll send an email to Igor about that.


>
> If I run scan-s2 again, I get
>
>
>
> ===============================================================================
> API major 5, minor 0
> ERROR: Cannot open rotor configuration file 'rotor.conf'.
> scanning /home/kls/vdr/scan-s2-c728a0055904/dvb-s/Astra-19.2E
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> initial transponder DVB-S2 11362000 H 22000000 2/3 AUTO AUTO
> initial transponder DVB-S  11362000 H 22000000 2/3 AUTO AUTO
> ----------------------------------> Using DVB-S2
> >>> tune to: 11362:hS1C23:S0.0W:22000:
> DVB-S IF freq is 1612000
> >>> parse_section, section number 0 out of 0...!
> 0x03F3 0x2B70: pmt_pid 0x0000 ZDFvision -- arte HD (running)
> 0x03F3 0x2B7A: pmt_pid 0x0000 IRT -- Simul SD (running)
> 0x03F3 0x2B84: pmt_pid 0x0000 IRT -- Simul HD (running)
> >>> parse_section, section number 0 out of 0...!
> service_id = 0x0
> service_id = 0x2B70
> pmt_pid = 0x1838
> service_id = 0x2B7A
> pmt_pid = 0x189C
> service_id = 0x2B84
> pmt_pid = 0x1900
> >>> parse_section, section number 0 out of 0...!
>  VIDEO     : PID 0x1842
>  AUDIO     : PID 0x184D
>  AUDIO     : PID 0x184E
>  TELETEXT  : PID 0x1856
> >>> parse_section, section number 0 out of 0...!
>  VIDEO     : PID 0x18A6
>  AUDIO     : PID 0x18B0
> >>> parse_section, section number 0 out of 0...!
>  VIDEO     : PID 0x190A
>  AUDIO     : PID 0x1914
> >>> parse_section, section number 0 out of 1...!
> Network Name 'ASTRA'
> >>> parse_section, section number 1 out of 1...!
> dumping lists (3 services)
> arte
> HD;ZDFvision:11361:hS1C23M5O35:S19.2E:22000:6210:6221=ger,6222=fra:6230:0:11120:1:1011:0
> Simul
> SD;IRT:11361:hS1C23M5O35:S19.2E:22000:6310:6320=ger:0:0:11130:1:1011:0
> Simul
> HD;IRT:11361:hS1C23M5O35:S19.2E:22000:6410:6420=ger:0:0:11140:1:1011:0
> Done.
>
> ===============================================================================
>
>
> So apparently not even scan-s2 is able to tune directly to a DVB-S2
> transponder without first tuning to a DVB-S transponder.
>
> Can anybody else confirm this, or am I doing something wrong?
>
> Klaus
>
>
>
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/vdr/attachments/20081214/01c554f6/attachment.htm 


More information about the vdr mailing list