Changeset 40798 for titan/titan/scan.h


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

[titan] add new dvb-t2 test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.