oscam working fine but newcamd protocol error: Invalid ecm type for card

There are 10 replies in this Thread which was already clicked 1,672 times. The last Post () by FatRabbit.

  • hi!
    I have a dreambox dm520 HD running OpenPLi. I have a smartcard running fine with it (legally purchased) .
    I have 2 TVs so they wanted me to buy two subscriptions so instead I had no choice but purchase a second box with newcamd enabled and connect it to the dreambox+smartcard with newcamd protocol (the username I use is "001"). The thing is:


    1/ watching tv directly with the dreambox+smartcard is fine , no error in logs and no warning. Lot of lines like this:

    2021/03/28 15:10:15 04A78D1F c (ecm) dvbapiau (0100@0001EB/5C00/151A/64:8B80E40D3D501C737CDA6391F2AA4CA9): found (311 ms) by home-reader


    2/ watching tv with the second box (with newcamd protocol) does not work and logs show a lot of the following lines repeating (001 is the username I have set up):

    2021/03/28 15:10:15 3013FAF2 c (ecm) 001 (0100@0001EB/5C00/1453/64:2CAF6691313F41E724DD6FE3FC9EBEA8): rejected (0 ms) by home-reader

    2021/03/28 15:10:16 3013FAF2 c (ecm) 001 (0100@0001EB/5C00/1453/64:3BBEB1ECA7172D2B908C8DEF9E694390): rejected (93 ms) by home-reader (Invalid ecm type for card)


    my full oscam config is here: oscam.conf

    information about my mainbox:
    - box brand: Dream Multimedia DM520 HD

    - operating system: PLi-OE

    - firmware: OpenPLi 8.0star (2021-02-26-develop)
    - Kernel / Drivers: 3.4 / 20180222

    - oscam version: OSCam r11686

    My conclusion is that the issue must be with newcamd server since the dreambox and the smartcard talk fine.
    Can anyone help me configure my newcamd server to make it work?
    What does "Invalid ecm type for card" mean and why does it only appear with newcamd communication and not direct communication between the DM520 and the smartcard?


    Thank you all ... sorry for long post

  • Hi.


    Yes it's true. The problem can be caused by the processing of softcam-protocols, which is unfortunately non-standard in the case of Oscam - it is not original, so it does not affect the original softcams, according to the authors. In Oscam open code, someone is constantly fixing bugs. Often people who have no idea about coding systems. Also, each DVB provider can use slightly different methods in their own firmware, on their own decoder card. Then nothing works as it should.


    If that doesn't help (using the cccam softcam-protocol), try using the communication softcam protocol, which is less well known but reliable - cs378x or cs357x (https://wiki.streamboard.tv/wi…fig/oscam.server#protocol).


    I have a similar problem in CCCAM protocol communication. I have to use CCcam as a softcam-client, not OSCam as a softcam-client. I am using the CCcam 2.3.0 softcam-client for the mipsel chipset, which only works in an OpenATV image, without any problems. Other versions of CCcam softcam freeze, crash, do not work properly, etc. . This is IRDETO encoding card.


    Oscam is probably only suitable as a server, not as a client.


    The longer I use Oscam, the more I hate it. I've been using Oscam for about 4 years ... testing ... changing versions ... setting up a large number of different configurations on different types of DVB systems. But I still like Oscam softcam less and less.


    So if your set-top box contains a mips(32)el chipset, then try to use Cccam-2.3.0 softcam as a client. Maybe it will help.


    I really don't know why your Oscam will destroy the ECM format (readability).


    Maybe you just misconfigured some items in the Oscam configuration related to ECM. Some settings may require, for example, an "ecmwhitelist" configuration item (but I don't know which one).


    I don't know your DVB encoding, so I can't advise you anymore.

  • FatRabbit


    It would be appropriate to create new binaries there. Backward compatibility with old versions of the system libraries (for example libcrypto, libssl, libusb, ...) usually doesn't work. However, in some specific cases, as I have already written, depending on the chipset in the set-top box (i.e. hardware dependent) and also depending on the Enigma distribution itself, even if the binary works, small problems may arise.


    For example, specifically under mipsel processors, on the Linux kernel version 3.13 - the CCcam 2.3.2 softcam can freeze through new system libraries, while the CCcam 2.3.0 softcam works fine also in the new system libraries.


    Linux systems are really great, but they require a lot of expert users and developers, unfortunately. Linux is not like Windows ... where you see 5 icons that you can click on and then the default task is performed (figuratively speaking). Linux is a universal solution ... but universal solutions also require people's hyper-intelligence :). And that's the stumbling block :).


    So if you bought a new set-top box, it is quite possible that it is a coincidence that you hit the right version of the chipset, the appropriate distribution of Enigma, good softcam, DVB system coding of your provider, where everything is compatible and functional together.


    ///// EDIT :


    Unfortunately, Oscam is similar in its versatility. Although it works always and everywhere, there are minor discrepancies, in various chipsets, libraries, DVB systems, etc..


    Let me come up with a small example for understanding:


    For the CONAX DVB-encoding system, OSCam will use a decoding algorithm via the libcrypto system library. However, the libcrypto system library in version 1.0.2 does some algorithms a little differently than in version 1.0.0. Oscam therefore needs a patch to be able to process the output, in an algorithm from the libcrypto 1.0.2 library, as it did in version 1.0.0.


    (This is just a fictional example. Don't take it seriously. It's just for better understanding !)

    Unfortunately, no developer will do this patch in the near future because no softcam developer uses CONAX decoding. We could still associate the problem only with the case where OSCam is used only as a client, not as a server. This complex problem will not be solved until many years later, when finally some softcam developer encounters this problem at home and fixes it. Unfortunately, this is the fate of the universal OSCam.



OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!