Tuning OSCAM for intermittent hangs

There are 47 replies in this Thread which was already clicked 11,115 times. The last Post () by teak-won-do.

  • I have OSCAM working on a ZGemma H7 under OpenATV 6.3 but am experiencing intermittent hangs, a couple of seconds every few minutes. Given the number of options in OSCAM, are there any parameters I should look at to prevent the hangs. My configuration is almost default, but I was wondering if adjusting any of the timeout parameters might help..EMMCACHE is not set - no idea what this is for but would setting a value help? Also should the logs indicate any hang?

  • Quote

    Did you use only one server or more servers and with which packages / channels you have a problem.

    i have four readers. Some channels work better than others, but nearly experience some breaks or hangs.


    Is there something in the logs which would show when a hang occurred? Unfortunately I'm not familiar with what to look for in logs.


    Here is an example of some error:-


    2020/10/20 20:40:18 29EB20CA c (ecm) dvbapi (1803@000000/0000/0C22/92:E4E792779EDB1DCAE3E3A7AA94E16DD7): not found (3036 ms) by box-4 (F/4/4/4)


    2020/10/20 20:40:19 29EB20CA c (dvbapi) Demuxer 0 trying to descramble PID 1 CAID 0100 PROVID 000068 ECMPID 0603 ANY CHID PMTPID 003A VPID 0606


    2020/10/20 20:40:19 29EB20CA c (ecm) dvbapi (0100@000068/5C00/0C22/64:531818F715FC4802334DDB3E2D676FF0): found (35 ms) by box-4 (P/4/4/4)

  • I have five readers and works well. When you open the Webif you will see how servers change ( in dvbapi line every 5 - 10 sec ).

    You will often find some errors with free servers as "ERROR", "OFF" or "DISCONNECTED" or in oscam.log as reason close, reason

    disconnected or reason timed out. Oscam in this case is not a problem. Maybe some of servers not have a CAID 1803 as in your case

    but when the server changes ( CAID 0100 ) then you have again the picture. You can also see which entitlements use your servers.

    Click on proxy readers ( your servers ) at the end of the line , red color, example 40 of 40 cards which card use or which providers it opens.

  • Many thanks for your reply, unfortuately I find OSCAM very difficult to understand and and can't make much sense of what you are telling me.. although I am willing to learn.


    I have four readers which repectively have 45 of 45 cards, 45 of 45, 45 of 45 and 44 of 44.


    In the fifth column of the Action section of the Readers tab, it shows Lb statistics for selected Reader. Is this what you are referring to above? When I select this for each of the Readers, I either get 'No statistics found' or a panel which includes various heading including CAID but without any values, Is this something I should address?

    This is part of my current log:-


    13:34:54 33F189D4 c (ecm) dvbapi (1803@000000/0000/3ABD/92:38A465C751F355491D6A4F4053D462B8): found (392 ms) by box-4 (P/4/4/4)

    13:35:04 33F189D4 c (ecm) dvbapi (1803@000000/0000/3ABD/92:9A832CCA51E0E6AA908C992437E34F12): found (373 ms) by box-4 (P/4/4/4)

    13:35:17 33F189D4 c (ecm) dvbapi (1803@000000/0000/3ABD/92:29215856C90EE33985FFA356BFB66213): not found (3037 ms) by box-4 (F/4/4/4)

    13:35:18 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 4 CAID 1861 PROVID 000000 ECMPID 0E35 ANY CHID PMTPID 040D VPID 0216

    13:35:21 33F189D4 c (ecm) dvbapi (1861@000000/0000/3ABD/89:0CFF98A8BA9B2C8DCBCC769DFCE6016D): not found (3037 ms) by box-2 (F/4/4/4)

    13:35:22 33F189D4 c (dvbapi) Demuxer 0 restarting decoding requests after 1 ms with 4 enabled and 5 disabled ecmpids!

    13:35:22 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 0 CAID 0100 PROVID 000068 ECMPID 0C41 ANY CHID PMTPID 040D VPID 0216

    13:35:22 33F189D4 c (ecm) dvbapi (0100@000068/5C00/3ABD/64:401800E4D039F29799140A004054C7D8): found (27 ms) by box-4 (P/4/4/4)

    13:35:25 33F189D4 c (ecm) dvbapi (0100@000068/5C00/3ABD/64:C485BADBE3D604328B885A05D87E7CDA): found (1365 ms) by box-4 (P/4/4/4)

    13:35:37 33F189D4 c (ecm) dvbapi (0100@000068/5C00/3ABD/64:82A9099608F8BE0A71C3015EBB616776): not found (2532 ms) by box-4 (F/4/4/4)

    13:35:37 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 2 CAID 0B01 PROVID 000000 ECMPID 0D09 ANY CHID PMTPID 040D VPID 0216

    13:35:38 33F189D4 c (ecm) dvbapi (0B01@000000/0000/3ABD/75:BE306D4C6F318A115A434FFB7E7CB47D): found (634 ms) by box-2 (P/4/4/4)



    Am I correct in assuming the lines showing 'not found' are indication of a picture break up or hang?...

  • Not sure what fallback reader (F/4/4/4) is...Should I just switch off reader 4?


    This is what I get when I do that:-


    20:06:49 33F189D4 c (ecm) dvbapi (0B01@000000/0000/3E3F/99:20A62F033625779ACB13812CC7D699C9): not found (3319 ms) by box-2 (F/3/3/3)

    20:06:49 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 6 CAID 0100 PROVID 000068 ECMPID 0A01 ANY CHID PMTPID 0041 VPID 0105

    20:06:50 33F189D4 c (ecm) dvbapi (0100@000068/5C00/3E3F/64:A78A291249C7F0900135E47859B45DDE): not found (113 ms) by box-1 (F/3/3/3)

    20:06:50 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 7 CAID 1803 PROVID 000000 ECMPID 0805 ANY CHID PMTPID 0041 VPID 0105

    20:06:54 33F189D4 c (ecm) dvbapi (1803@000000/0000/3E3F/92:5E1037602006CDA8DFE3AA7A5FA341A3): not found (3034 ms) by box-2 (F/3/3/3)

    20:06:54 33F189D4 c (ecm) dvbapi (1803@000000/0000/3E3F/92:F74FE14D473B925E2ABD2F3EB7460433): found (1958 ms) by box-2 (P/3/3/3)

    20:06:54 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 5 CAID 1861 PROVID 000000 ECMPID 0905 ANY CHID PMTPID 0041 VPID 0105

    20:06:58 33F189D4 c (ecm) dvbapi (1861@000000/0000/3E3F/89:9FA3927CC5716FAD09B9983A77FB7897): not found (3559 ms) by box-2 (F/3/3/3)

    20:06:59 33F189D4 c (dvbapi) Demuxer 0 restarting decoding requests after 2 ms with 4 enabled and 5 disabled ecmpids!

    20:06:59 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 4 CAID 0B01 PROVID 000000 ECMPID 0C01 ANY CHID PMTPID 0041 VPID 0105

    20:07:01 33F189D4 c (ecm) dvbapi (0B01@000000/0000/3E3F/99:359671155F45127C5DCAE2DC8A01AE93): not found (2143 ms) by box-2 (F/3/3/3)

    20:07:02 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 6 CAID 0100 PROVID 000068 ECMPID 0A01 ANY CHID PMTPID 0041 VPID 0105

    20:07:02 33F189D4 c (ecm) dvbapi (0100@000068/5C00/3E3F/64:536D886BDDF2C38DC24634E0F18E1EA0): not found (84 ms) by box-3 (F/3/3/3)

    20:07:03 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 7 CAID 1803 PROVID 000000 ECMPID 0805 ANY CHID PMTPID 0041 VPID 0105

    20:07:03 33F189D4 c (ecm) dvbapi (1803@000000/0000/3E3F/92:F74FE14D473B925E2ABD2F3EB7460433): found (27 ms) by box-2 (P/3/3/3)

    20:07:10 33F189D4 c (ecm) dvbapi (1803@000000/0000/3E3F/92:D6145FF2F9B822AC8998CC4E573BA57C): not found (3059 ms) by box-2 (F/3/3/3)

    20:07:11 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 5 CAID 1861 PROVID 000000 ECMPID 0905 ANY CHID PMTPID 0041 VPID 0105

    20:07:15 33F189D4 c (ecm) dvbapi (1861@000000/0000/3E3F/89:366B6D15E69CDEAD466F6DD8919E3755): not found (3573 ms) by box-2 (F/3/3/3)

    20:07:15 33F189D4 c (dvbapi) Demuxer 0 restarting decoding requests after 2 ms with 4 enabled and 5 disabled ecmpids!

    20:07:15 33F189D4 c (dvbapi) Demuxer 0 trying to descramble PID 4 CAID 0B01 PROVID 000000 ECMPID 0C01 ANY CHID PMTPID 0041 VPID 0105



    Sorry if I have misunderstood your instructions.

  • balanga post your configs .conf.server in spoiler here without you login data.


    oscam.conf


    [global]


    [cccam]

    port = 12000

    version = 2.3.2


    [dvbapi]

    enabled = 1

    au = 1

    user = dvbapi


    [webif]

    httpport = 83

    httphelplang = de

    httprefresh = 10

    httppollrefresh = 10

    httpallowed = 127.0.0.1,0.0.0.0-255.255.255.255,fd00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff,2000::-3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff,::1

    httphideidleclients = 0



    oscam.server - not really sure where all this comes from just copied it when installing oscam around a year ago -

    it probably has a lot of redundancy and/or errors


    # oscam.server generated automatically by Streamboard OSCAM 1.20_svn SVN r11570

    # Read more: http://www.streamboard.tv/svn/…/doc/txt/oscam.server.txt


    [reader]

    label = reader0_sky_v13

    enable = 0

    protocol = internal

    device = /dev/sci0

    caid = 09C4

    boxid = 596C3056

    detect = cd

    group = 1

    emmcache = 1,3,2,0

    blockemm-unknown = 1

    blockemm-u = 1

    blockemm-s = 1

    blockemm-g = 1

    saveemm-u = 1

    disablecrccws = 1


    [reader]

    label = reader0_sky_v14

    enable = 0

    protocol = internal

    device = /dev/sci0

    caid = 098C

    boxid = 12345678

    detect = cd

    group = 1

    emmcache = 1,3,2,0

    blockemm-unknown = 1

    blockemm-u = 1

    blockemm-s = 1

    blockemm-g = 1

    saveemm-u = 1

    disablecrccws = 1


    [reader]

    label = reader0_sky_v15

    enable = 0

    protocol = internal

    device = /dev/sci0

    caid = 098D

    boxid = 12345678

    ins7e11 = 14

    detect = cd

    group = 1

    emmcache = 1,3,2,0

    blockemm-unknown = 1

    blockemm-u = 1

    blockemm-s = 1

    blockemm-g = 1

    saveemm-u = 1

    disablecrccws = 1


    [reader]

    label = reader0_hd+_hd01

    enable = 0

    protocol = internal

    device = /dev/sci0

    caid = 1830

    boxkey = A7642F57BC96D37C

    rsakey = BF358B5461863130686FC933FB541FFCED682F3680F09DBC1A23829FB3B2F766B9DD1BF3B3ECC9AD6661B753DCC3A9624156F9EB64E8168EF09E4D9C5CCA4DD5

    detect = cd

    mhz = 368

    cardmhz = 368

    group = 1

    emmcache = 1,3,2,0


    [reader]

    label = reader0_hd+_hd02

    enable = 0

    protocol = internal

    device = /dev/sci0

    caid = 1843

    boxkey = A7642F57BC96D37C

    rsakey = BF358B5461863130686FC933FB541FFCED682F3680F09DBC1A23829FB3B2F766B9DD1BF3B3ECC9AD6661B753DCC3A9624156F9EB64E8168EF09E4D9C5CCA4DD5

    detect = cd

    mhz = 368

    cardmhz = 368

    group = 1

    emmcache = 1,3,2,0


    [reader]

    label = reader0_hd+_hd03

    protocol = internal

    device = /dev/sci0

    caid = 1860

    boxkey = A7642F57BC96D37C

    rsakey = 901E595152E67DFD5B134E1D195C4141B3BB1394A8AF4D6BF1D1085DCC4D9CBA5C73A06ED21FC3556B685498030BB1185766117565E39995EFBF72135C2817B7

    mod1 = 9DF5D60B66A6F839CDA448C9AC59E5AFE9FFA6BFB2AB141003FADD94D47F2EB047764FCE1A62F32B51F1E892171894558B63F55C0096FA36D4210B634358A3C11323A322DC3BC6040E09E579466CF384598C357945FE32C7711D1F59EBA9C44194EC02DF561C1782B14A6F043BA81E63

    data50 = B6711C868C3EE72533A4E08C1364B83AEEFDEBE9FB54156A8776D872CBC41FF2E5EA2CBAF4F26A58C521EC53E310FC494354E49ECE6CD0F9631B724FAB0C8BAEC1F66C346AD2DB1CB3871AF44C1E1592

    mod50 = DB9E1F1BD23C6153444E444D8E6C471E162EC63C599D44F476E0D40C3840E0FDB7B63D174DD73B575543983F2F2DFB94E3644958AE642C91636A6BE55528478EB7A422479598C68E6F1FC9D647BBC4D5

    key60 = 99E9252B4079E3459FD42FCC177FCC9A5B52E1AB1595EF83953FF2866C3A90B7F5868BD32AB27C5AB765A728D24D765CD0B133CF16F32C1E223D1E78DF22E3D6BAB81FF1B8071E44A55773109ADEC08A149E6BC12CE35B23ACF6D043825825EB

    exp60 = 26A6A008EE962D76EC9E52AA843439E3818F9CD06409552ECC2A54F360F68C254669556FE047166789AAE381A2DE851C8155713C79A9CA7293EF7A21B82631145A1588876EC574D40DD057996511B8E9ECFA44087385A46EC49AB7180D1B1421

    nuid = 843E941E

    cwekey = 1BCAE16F9F8CE642FCF4F31DE4DEA9C6

    detect = cd

    nagra_read = 2

    detect_seca_nagra_tunneled_card= 0

    mhz = 500

    group = 1

    emmcache = 1,3,15,0




    There is a lot more which I needed to delete to be able to reply

  • Hi balanga

    This is my configs for oscam. It's not a secret for share because is universal. Replace these configs with yours in etc / tuxbox / config.

    In oscam.server you will find reader for your CCam readers. You must have four identical for your four readers. In CCam reader change

    with your correct parametars , label, device, host and usr / pwd which you use. In oscam global and CCCam readers is also

    disablecrccws for watching S*y DE and TNTSAT on Astra 19E. If you have any question feel free to ask me.

  • Hi balanga

    This is my configs for oscam. It's not a secret for share because is universal. Replace these configs with yours in etc / tuxbox / config.

    In oscam.server you will find reader for your CCam readers. You must have four identical for your four readers. In CCam reader change

    with your correct parametars , label, device, host and usr / pwd which you use. In oscam global and CCCam readers is also

    disablecrccws for watching S*y DE and TNTSAT on Astra 19E. If you have any question feel free to ask me.

    I appreciate the help although I it would be nice to understand what various options mean. All your configs are significantly different to mine and am a little cautious about making wholesale changes.


    My oscam.conf consists of the following

    [global]


    [cccam]

    port = 12000

    version = 2.3.2


    [dvbapi]

    enabled = 1

    au = 1

    user = dvbapi


    [webif]

    httpport = 83

    httphelplang = de

    httprefresh = 10

    httppollrefresh = 10

    httpallowed = 127.0.0.1,0.0.0.0-255.255.255.255,fd00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff,2000::-3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff,::1

    httphideidleclients = 0


    Yours has:-


    [global]

    logfile = /tmp/oscam.log

    nice = -1

    preferlocalcards = 1

    block_same_ip = 0

    block_same_name = 0

    ecmfmt = P: c:p:s:d:i:0 #ECM_L:l #CW=w HOP:j

    disablecrccws_only_for = 0E00:000000,0500:030B00:000000,050F00:000000,09C4:000000,098C:000000


    [streamrelay]

    stream_relay_enabled = 0


    [dvbapi]

    enabled = 1

    au = 1

    pmt_mode = 0

    delayer = 60

    ecminfo_type = 1

    user = dvbapi

    read_sdt = 1

    write_sdt_prov = 1

    extended_cw_api = 2

    boxtype = dreambox


    [webif]

    httpport = 8888

    httplocale = en_EN.utf8

    httphideidleclients = 0

    httprefresh = 10

    httpshowmeminfo = 1

    httpshowuserinfo = 1

    httpshowcacheexinfo = 1

    httpshowecminfo = 1

    httpshowloadinfo = 1

    httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255

    http_status_log = 1


    Can I simply replace yours with mine without making changes to the other config files? Or does config file depend on certain parameters in the other files?

    In other words do I need to change all my files at the same time or can I make changes one at a time?

  • You not answer my question....

    Have you local cards ?

    when not it’s ok but please answer questions then the support are better !


    you can backup you configs on you drive


    All my 4 files can you copy to stb and replace all you configs no problem that’s a magic key


    but in .server edit the reader with you data !!


    have you more readers can you copy the same reader and paste this under first reader


    [reader]

    ....

    ....


    [reader]
    .....

    .....


    the action is simple edit .server with your data

    adress,port

    user

    pass

    Copy all files and replace

    Restart oscam

    Have fun

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!