raspberry pi with oscam issues

There are 4 replies in this Thread which was already clicked 1,882 times. The last Post () by musogeek.

  • Hi guys


    I'm running oscam on a raspberry pi, it's currently running off a 16 gb class 4 microsd card in an adapter. The card is read by omnikey 3121 connected directly to the usb of the raspberry, every 20 seconds or so I get glitching and freezing with an high reading of 500+ms, it doesn't do this all the time, there are only a few family on it, it seems to be when it's under load, like when the football is on, is the raspberry ok for cardshare or should I stick with debian on pc



    TIA

  • What is your local card?


    Its odd that your under load more when football is on, rather than peak viewing times in the evening, when its more probable that your family and friends would be relaxing in front of the TV.


    Best thing to do is post your configs.


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • Raspberry pi can work fine as a server. You need to understand that it the specs are not high, so use it as a dedicated server, so it is not doing anything else. firstly, you need to set it up correctly either by attaching a keyboard to configure it or by logging in to it with a PC with a SSH client (think you may have had to enable SSH on the Pi first before you can connect - I am not sure if it defaults to enabled)


    type the command 'raspi-config'
    firstly, expand root partition to fill SD card
    then change the memory split, so it is using as little as possible to the graphics. You don't need the GUI so it is a waste of memory.


    Also there are a couple of cron jobs you can set up.


    type 'sudo nano /etc/crontab'


    you will get a basic text editor - and from this - i have added a couple of lines.


    Code
    05 * * * * root echo 3 > /proc/sys/vm/drop_caches
    45 05 * * * root /sbin/reboot


    you save this by ctrl x then y. Then reboot the Pi


    the above clears the raspberry pi's cache regularly and also reboots the machine at 5.45am every morning.


    Also you could do with a class 10 SD card - I had a class 4 and it run hot and melted.


    this helps the pi run smoothly, but could still be the Oscam configs causing the problem, so might me a help if we knew these.

    If I take a while to respond, you can see why.....


    :red:

  • thanks for the replies, these are the configs i'm using


    [reader]
    label = omnikey
    protocol = pcsc
    device = 0
    caid = 0963
    ecmwhitelist = 0963:3E,4E,4F,42,44,45,47,53,54,56,61,6A,6B,6D,6E,6F,62,67,68,69,7A,7C,7D,7E,71,72,73,77,78,79,80,8B
    detect = cd
    mhz = 357
    cardmhz = 357
    group = 1
    blockemm-unknown = 1
    blockemm-u = 1
    blockemm-s = 1
    blockemm-g = 1
    blockemm-bylen = 183,81
    blocknano = all


    [global]
    usrfile = /var/log/oscam/oscamuser.log
    logfile = /var/log/oscam/oscam.log
    cwlogdir = /var/log/oscam/cw
    clienttimeout = 7500
    failbantime = 1440
    nice = -1
    maxlogsize = 4096
    saveinithistory = 1
    dropdups = 1
    lb_mode = 1
    keepalive = 1


    [monitor]
    port = 988
    aulow = 120
    hideclient_to = 15
    monlevel = 1
    appendchaninfo = 0


    [newcamd]
    port = *****
    key = *****


    [cccam]
    port = *****
    reshare = 0
    ignorereshare = 1
    version = 2.1.4
    stealth = 1


    [webif]
    httpport = *****
    httpuser = *****
    httppwd = *****
    httprefresh = 10
    httpallowed = 127.0.0.1,192.168.1.1-192.168.2.4
    httpdyndns =
    httphideidleclients = 1


    [anticasc]
    enabled = 1
    numusers = 1
    samples = 5
    penalty = 1
    aclogfile = /var/log/oscam/aclog.log
    denysamples = 4


    I have expanded to fill the sdcard but not done the memory split will try that also

  • try the following - delete what i have highlighted in blue.


    [reader]
    label = omnikey
    protocol = pcsc
    device = 0
    caid = 0963
    ecmwhitelist = 0963:3E,4E,4F,42,44,45,47,53,54,56,61,6A,6B,6D,6E, 6F,62,67,68,69,7A,7C,7D,7E,71,72,73,77,78,79,80,8B
    detect = cd
    mhz = 357
    cardmhz = 357
    group = 1
    blockemm-unknown = 1
    blockemm-u = 1
    blockemm-s = 1
    blockemm-g = 1
    blockemm-bylen = 183,81
    blocknano = all


    [global]
    usrfile = /var/log/oscam/oscamuser.log
    logfile = /var/log/oscam/oscam.log
    cwlogdir = /var/log/oscam/cw
    clienttimeout = 7500
    failbantime = 1440
    nice = -1
    maxlogsize = 4096
    saveinithistory = 1
    dropdups = 1
    lb_mode = 1
    keepalive = 1


    [monitor]
    port = 988
    aulow = 120
    hideclient_to = 15
    monlevel = 1
    appendchaninfo = 0


    [newcamd]
    port = *****
    key = *****


    [cccam]
    port = *****
    reshare = 0
    ignorereshare = 1
    version = 2.1.4
    stealth = 1


    [webif]
    httpport = *****
    httpuser = *****
    httppwd = *****
    httprefresh = 10
    httpallowed = 127.0.0.1,192.168.1.1-192.168.2.4
    httpdyndns =
    httphideidleclients = 1


    [anticasc]
    enabled = 1
    numusers = 1
    samples = 5
    penalty = 1
    aclogfile = /var/log/oscam/aclog.log
    denysamples = 4




    reasons for above changes -


    the blocknano and block emmbylen are fairly new functions and most don't use these - you can try to keep them as less likely to be causing the issues you are having
    Best not set ignorereshare to 1 especially if you have virtual cards (reader accounts in oscam.server from peers) on your server, or you could be abusing the share based on what reshares you should have. You can set reshare to 1 if you want in the cccam part of oscam.cfg - I didn't highlight this, but best changed to 1 if you are cardsharing as the norm is to offer your card with one reshare.


    get rid of anticascading completely - this is probably the cause of your issue - if you are sharing with friends and family then it isn't something you need - if you do need it, change the penalty to 0 so you just keep a log. Problem with having too many log files in the pi is the limited space, so i would still get rid if it all together. You can check peer's usage by other means, and if there are issues, then you can just drop them an email!

    If I take a while to respond, you can see why.....


    :red:

Participate now!

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