Jump to content


Photo

FTA/Encrypted flag in ServiceScan/lamedb


  • Please log in to reply
158 replies to this topic

Re: FTA/Encrypted flag in ServiceScan/lamedb #101 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 7 May 2014 - 17:48

I cannot try on my box at this moment... so can someone try with the attached enigma2 binary?

Attached Files


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #102 Huevos

  • PLi® Contributor
  • 4,662 posts

+163
Excellent

Posted 7 May 2014 - 18:05

Where does that go?



Re: FTA/Encrypted flag in ServiceScan/lamedb #103 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 7 May 2014 - 18:15

First with this enigma2 the display is disabled, no channelname is displayed.

After a satellite scan (23.5 only) the encrypted icon is not visible for the most channels also a lot of channels are missing?

(found 198 channels on 23.5, manual search, network search=yes, delete channels before search=yes, only fta=no)

Edited by Pedro_Newbie, 7 May 2014 - 18:15.


Re: FTA/Encrypted flag in ServiceScan/lamedb #104 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 7 May 2014 - 18:18

Another binary... I made a mistake...Attached File  enigma2.zip   715.78KB   4 downloads

 

It should go to /usr/bin... please make a backup from the enigma2 binary that was there so you're able to revert.


Edited by littlesat, 7 May 2014 - 18:19.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #105 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 7 May 2014 - 18:27

Again the display is disabled, and no encrypted icons, found 318 channels on 23.5

Re: FTA/Encrypted flag in ServiceScan/lamedb #106 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 7 May 2014 - 18:36

btw, I found the aforementioned openspa implementation of this crypted/fta flag feature, FWIW...
https://github.com/O...e2e93d6b818eb27
 
diff --git a/scan.cpp b/scan_spa.cpp
index c8f1f40..3802780 100644
--- a/scan.cpp
+++ b/scan_spa.cpp
@@ -1147,27 +1147,29 @@ RESULT eDVBScan::processSDT(eDVBNamespace dvbnamespace, const ServiceDescription
         unsigned short service_id = (*s)->getServiceId();
         SCAN_eDebugNoNewLine("SID x: ", service_id);
         bool add = true;
+        bool crypted = false;
 
-        if (m_flags & scanOnlyFree)
+        std::map<unsigned short, service>::iterator it =
+            m_pmts_to_read.find(service_id);
+        if (it != m_pmts_to_read.end())
         {
-            std::map<unsigned short, service>::iterator it =
-                m_pmts_to_read.find(service_id);
-            if (it != m_pmts_to_read.end())
+            if (it->second.scrambled)
             {
-                if (it->second.scrambled)
-                {
-                    SCAN_eDebug("is scrambled!");
-                    add = false;
-                }
-                else
-                    SCAN_eDebug("is free");
-            }
-            else {
-                SCAN_eDebug("not found in PAT.. so we assume it is scrambled!!");
-                add = false;
+                SCAN_eDebug("is scrambled!");
+                crypted = true;
             }
+            else
+                SCAN_eDebug("is free");
+        }
+        else {
+            SCAN_eDebug("not found in PAT.. so we assume it is scrambled!!");
+            crypted = true;
         }
 
+        if (m_flags & scanOnlyFree && crypted)
+            add = false;
+        
+
         if (add)
         {
             eServiceReferenceDVB ref;
@@ -1233,6 +1235,8 @@ RESULT eDVBScan::processSDT(eDVBNamespace dvbnamespace, const ServiceDescription
                     break;
                 }
             }
+            if (crypted && !service->m_ca.size())
+                service->m_ca.push_front(0);
 
             std::pair<std::map<eServiceReferenceDVB, ePtr<eDVBService> >::iterator, bool> i =
                 m_new_services.insert(std::pair<eServiceReferenceDVB, ePtr<eDVBService> >(ref, service));

True sarcasm doesn't need green font...

Re: FTA/Encrypted flag in ServiceScan/lamedb #107 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 7 May 2014 - 18:41

Does not work... more work to do ;)

But I was close to the spa patch...


Edited by littlesat, 7 May 2014 - 18:42.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #108 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 7 May 2014 - 18:49

I exactly tried that... but it did not help..

 

RESULT eDVBScan::processSDT(eDVBNamespace dvbnamespace, const ServiceDescriptionSection &sdt)
{
    const ServiceDescriptionList &services = *sdt.getDescriptions();
    SCAN_eDebug("ONID: %04x", sdt.getOriginalNetworkId());
    eDVBChannelID chid(dvbnamespace, sdt.getTransportStreamId(), sdt.getOriginalNetworkId());
    
    /* save correct CHID for this channel */
    m_chid_current = chid;

    for (ServiceDescriptionConstIterator s(services.begin()); s != services.end(); ++s)
    {
        unsigned short service_id = (*s)->getServiceId();
        SCAN_eDebugNoNewLine("SID %04x: ", service_id);

        bool is_scrambled = true;
        std::map<unsigned short, service>::iterator it =
            m_pmts_to_read.find(service_id);
        if (it != m_pmts_to_read.end())
        {
            if (it->second.scrambled)
                SCAN_eDebug("is scrambled!");
            else
                is_scrambled = false;
                SCAN_eDebug("is free");
        }
        else
            SCAN_eDebug("not found in PAT.. so we assume it is scrambled!!");

        eDebug("OH BOY");
        if (!(m_flags & scanOnlyFree) || !is_scrambled)
        {
            eServiceReferenceDVB ref;
            ePtr<eDVBService> service = new eDVBService;

            ref.set(chid);
            ref.setServiceID(service_id);

            for (DescriptorConstIterator desc = (*s)->getDescriptors()->begin();
                    desc != (*s)->getDescriptors()->end(); ++desc)
            {
                switch ((*desc)->getTag())
                {
                case SERVICE_DESCRIPTOR:
                {
                    ServiceDescriptor &d = (ServiceDescriptor&)**desc;
                    int servicetype = d.getServiceType();

                    /* NA scanning hack */
                    switch (servicetype)
                    {
                    /* DISH/BEV servicetypes: */
                    case 128:
                    case 133:
                    case 137:
                    case 144:
                    case 145:
                    case 150:
                    case 154:
                    case 163:
                    case 164:
                    case 166:
                    case 167:
                    case 168:
                        servicetype = 1;
                        break;
                    }
                    /* */

                    ref.setServiceType(servicetype);
                    service->m_service_name = convertDVBUTF8(d.getServiceName());
                    service->genSortName();

                    service->m_provider_name = convertDVBUTF8(d.getServiceProviderName());
                    SCAN_eDebug("name '%s', provider_name '%s'", service->m_service_name.c_str(), service->m_provider_name.c_str());
                    break;
                }
                case CA_IDENTIFIER_DESCRIPTOR:
                {
                    CaIdentifierDescriptor &d = (CaIdentifierDescriptor&)**desc;
                    const CaSystemIdList &caids = *d.getCaSystemIds();
                    SCAN_eDebugNoNewLine("CA");
                    for (CaSystemIdList::const_iterator i(caids.begin()); i != caids.end(); ++i)
                    {
                        SCAN_eDebugNoNewLine(" %04x", *i);
                        service->m_ca.push_front(*i);
                    }
                    SCAN_eDebug(".");
                    break;
                }
                default:
                    SCAN_eDebug("descr<%x>", (*desc)->getTag());
                    break;
                }
            }
            eDebug("THIS IS DONE");
            if (is_scrambled && !service->m_ca.size())
            {
                eDebug("AND NOW IT IS PUSHED");    
                service->m_ca.push_front(0);
            }
            std::pair<std::map<eServiceReferenceDVB, ePtr<eDVBService> >::iterator, bool> i =
                m_new_services.insert(std::pair<eServiceReferenceDVB, ePtr<eDVBService> >(ref, service));

            if (i.second)
            {
                m_last_service = i.first;
                m_event(evtNewService);
            }
        }
        if (m_pmt_running && m_pmt_in_progress->first == service_id)
            m_abort_current_pmt = true;
        else
            m_pmts_to_read.erase(service_id);
    }
 

The above is in the binary... (but with less debug code)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #109 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 7 May 2014 - 22:39

I hope this is fixed right now....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #110 Huevos

  • PLi® Contributor
  • 4,662 posts

+163
Excellent

Posted 7 May 2014 - 23:09

Where is the current file to test?



Re: FTA/Encrypted flag in ServiceScan/lamedb #111 dhwz

  • Senior Member
  • 227 posts

+20
Neutral

Posted 8 May 2014 - 05:50

I thought you have already added the code which adds the fake caid on scan? Thats what I am talking about the whole time. :P
Did anyone read my posting weeks ago? :P

Edited by dhwz, 8 May 2014 - 05:50.


Re: FTA/Encrypted flag in ServiceScan/lamedb #112 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 06:20

A quick test (DUO2 on today's PLi, scan of 23.5E, delete services before scan), shows that quite a number of flags is being found, but by far not all:
Attached File  Scan-235-1.jpg   86.42KB   66 downloads

They still need tuning:
Attached File  Scan-235-2.jpg   127.64KB   67 downloads

Edited by SatKiekerd, 8 May 2014 - 06:23.


Re: FTA/Encrypted flag in ServiceScan/lamedb #113 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 8 May 2014 - 07:01

I'm afraid there is no way to tune this further... M7 for example has a lot of incorrect stuff configured on their transponders. You just discovered one of them....

Edited by littlesat, 8 May 2014 - 07:01.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #114 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 07:09

Next step: make sure setting editors can handle the encryption status.

Re: FTA/Encrypted flag in ServiceScan/lamedb #115 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 8 May 2014 - 08:52

There are already editors that do understand this...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: FTA/Encrypted flag in ServiceScan/lamedb #116 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 10:48

Next step: make sure setting editors can handle the encryption status.

 
 

There are already editors that do understand this...

Zojuist getest door het uitlezen van settings die 'de vlag' hebben:
1- SetEditDream: Geen enkele indicatie van het versleuteld zijn.

2- DreamSet: Geen enkele indicatie van het versleuteld zijn.

3- DreamBoxEditor: In de satelliet lijst is de versleutelde zender keurig van een hangslotje voorzien. In de gegevens van de zender vind je dat echter nergens terug; het is dus ook niet duidelijk of hoe je die status in de editor zou kunnen aanpassen.


Er is voor de auteurs van de editors dus nog wel een klusje te doen.


Volgende stap: gaan de leveranciers van service-lijsten nu ook de encrypted status opnemen?

Re: FTA/Encrypted flag in ServiceScan/lamedb #117 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 10:54

I'm sorry I jumped to Dutch. Translation:

Just tested by reading the settings that contain 'the flag':

1- SetEditDream: No indication whatsoever about services being encrypted.

2- DreamSet: No indication whatsoever about services being encrypted.

3- DreamBoxEditor: In the satellite list the encrypted services are neatly provided with a padlock. However: in the service details there's no indication about this status. So it isn't clear how to amend the statue in the editor.

So the authors of those editors have some work to do .....


Next step: are the providers of the service lists going to take care of including the encryption status?

Edited by SatKiekerd, 8 May 2014 - 10:55.


Re: FTA/Encrypted flag in ServiceScan/lamedb #118 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 12:22

A bit off-topic, but as I encountered it during scanning I still mention it here: when a sleeptimer is active while a scan is being done, this interferes. The question if you want to shit down pops up, and that resets the scan (in my case I was at 98% of a very long scan :( ).

Re: FTA/Encrypted flag in ServiceScan/lamedb #119 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 8 May 2014 - 14:03

I'm afraid there is no way to tune this further... M7 for example has a lot of incorrect stuff configured on their transponders. You just discovered one of them....

It's not only M7; see the attached settings, in which Astra 1,2 & 3 have been scanned. As you can see the encrypted flag is missing for quite a number of services.

Re: FTA/Encrypted flag in ServiceScan/lamedb #120 littlesat

  • PLi® Core member
  • 57,176 posts

+698
Excellent

Posted 8 May 2014 - 15:32

I "told" before that this could not work 100%


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



12 user(s) are reading this topic

0 members, 11 guests, 0 anonymous users


    Bing (1)