Changeset 40798


Ignore:
Timestamp:
08/23/17 21:12:43 (6 years ago)
Author:
gost
Message:

[titan] add new dvb-t2 test

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r40788 r40798  
    488488        //struct dvb_frontend_event ev;
    489489        fe_status_t status;
     490        fe_status_t status_m = 0;
    490491
    491492        int count = 0;
     
    505506#ifdef MIPSEL
    506507        timer = 2000;
    507 #endif
    508 #ifdef DREAMBOX
    509         timer = 4000;
    510508#endif
    511509
     
    521519                ioctl(node->fd, FE_READ_STATUS, &status);
    522520                if(status != 0)
    523                         debug(200, "status=%d, fe_lock=%d", status, FE_HAS_LOCK);
     521                {
     522                        if(status_m != status)
     523                        {
     524                                debug(200, "status=%d, fe_lock=%d", status, FE_HAS_LOCK);
     525                                status_m = status;
     526                        }
     527                }
    524528
    525529                if(errno == ERANGE)
     
    17001704       
    17011705        int hierarchy = tpnode->system; //system = hierarchy on DVBT
     1706       
     1707        if(tpnode->system == 1) //system = DVB-T2 then hierarchy = HIERARCHY_AUTO
     1708                hierarchy = 4;
     1709       
    17021710        //switch(guardinterval)
    17031711        switch(hierarchy)
     
    19841992                        //to do set voltage --> wenn der Tuner es kann
    19851993                        //fesetvoltage(tuner, SEC_VOLTAGE_13, 10);
    1986                         p[1].u.data = SYS_DVBT2;
     1994                        if(realname != NULL && ostrstr(realname, "DVB-T2") != NULL)
     1995                                p[1].u.data = SYS_DVBT2;
     1996                        else
     1997                                p[1].u.data = SYS_DVBT;
    19871998                        break;
    19881999                }
  • titan/titan/scan.h

    r40793 r40798  
    327327        struct transponder *tpnode = NULL;
    328328        int addtrans = 0;
     329        int system = 0;
    329330       
    330331        if(buf == NULL) return -1;
     
    376377        hierarchy = HIERARCHY_AUTO;
    377378        modulation = QAM_AUTO;
    378         //inversion = INVERSION_UNKNOWN;
    379         inversion = INVERSION_AUTO;
    380         //system = SYSTEM_DVB_T2;
     379        inversion = 2; //INVERSION_UNKNOWN
     380        //inversion = INVERSION_AUTO;
     381        system = 1; //DVB-T2
    381382       
    382383        unsigned char* loop1 = buf + 8;     //call_id
     
    407408                        frequency = cfre * 10;
    408409                        debug(500, "nitscan DVB-T2 - Flag=%d -> id=%llu freq=%d bandwidth=%d hp=%d lp=%d modulation=%d guard=%d trans=%d hierarchy=%d tpnode=%p", flag, id, frequency, bandwidth, hp, lp, modulation, guardinterval, transmission, hierarchy, tpnode);
    409                         tpnode = createtransponder(id, FE_OFDM, orbitalpos, frequency, inversion, bandwidth, lp, hp, modulation, guardinterval, transmission, hierarchy);
     410                        tpnode = createtransponder(id, FE_OFDM, orbitalpos, frequency, inversion, bandwidth, lp, hp, modulation, guardinterval, transmission, system);
    410411                        if(tpnode != NULL)
    411412                                addtrans++;
     
    431432                                frequency = cfre * 10;
    432433                                debug(500, "nitscan DVB-T2 - Flag=%d -> id=%llu freq=%d bandwidth=%d hp=%d lp=%d modulation=%d guard=%d trans=%d hierarchy=%d tpnode=%p", flag, id, frequency, bandwidth, hp, lp, modulation, guardinterval, transmission, hierarchy, tpnode);
    433                                 tpnode = createtransponder(id, FE_OFDM, orbitalpos, frequency, inversion, bandwidth, lp, hp, modulation, guardinterval, transmission, hierarchy);
     434                                tpnode = createtransponder(id, FE_OFDM, orbitalpos, frequency, inversion, bandwidth, lp, hp, modulation, guardinterval, transmission, system);
    434435                                if(tpnode != NULL)
    435436                                        addtrans++;
     
    12451246        struct sat* satnode = sat;
    12461247        int nitscan = 1;
     1248        int tout = 0;
    12471249
    12481250        if(scaninfo.fenode == NULL || scaninfo.tpnode == NULL || timernode == NULL)
     
    13341336                        else if(fenode->feinfo->type == FE_OFDM)
    13351337                        {
     1338                                tout = 0;
    13361339                                if(fetunedvbt(fenode, tpnode) != 0)
    13371340                                {
     1341                                        tout = 1;
     1342                                        debug(500, "scan done system:%d", tpnode->system);
     1343                                        if(tpnode->system == 0 || tpnode->system == 3 )
     1344                                        {
     1345                                                tpnode->system = 1;
     1346                                                debug(500, "tune DVB-T2 after DVB-T id=%llu freq=%d orbitalpos=%d tpnode=%p", tpnode->id, tpnode->frequency, tpnode->orbitalpos, tpnode);
     1347                                                if(fetunedvbt(fenode, tpnode) == 0)
     1348                                                        tout = 0;
     1349                                        }
     1350                                }
     1351                                if(tout == 1)                   
     1352                                {       
    13381353                                        scaninfo.tpcount++;
    13391354                                        if(scaninfo.cleartransponder == 1)
Note: See TracChangeset for help on using the changeset viewer.