Oscam + CCcam 2.1.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garry1312
    DK Veteran
    • Oct 2010
    • 2178

    #301
    Originally posted by satsmo
    Try mic's solution and post your logifile as requested by Rodbouy.

    I know Oscam can become unstable from time to time I recommend you to use a script which will check the process and in case it's not there it will restart oscam.

    I use the following script (credit's to KrazyIvan)

    create a file called run.sh in /usr/local/bin and paste following lines in it:

    #!/bin/sh +e
    exec 2>&1

    RESULTS=$(ulimit -u unlimited)
    RESULTS=$(ulimit -n 50720)
    RESULTS=$(ulimit -s 50720)
    RESULTS=$(ulimit -i 50720)
    RESULTS=$(ulimit -l 264)

    while [ 1 ]
    do

    if egrep -i "Master quit" /tmp/oscam.log
    then
    RESULTS=$(killall -9 oscam)
    fi


    if [ $(ps -e | grep oscam| wc -l) -ge 3 ]
    then
    echo "there is oscam"
    else
    RESULTS=$(killall -9 oscam)
    RESULTS=$(/usr/local/bin/oscam &)
    fi

    sleep 2

    done





    Once you've pasted everything in red above you need to give rights to the script by changing the mod to execute:

    chmod 755 /usr/local/bin/run.sh

    You need to add just a line in rc.local so the script will be run on system startup.

    Open the file /etc/rc.local and add following line in it:

    /usr/local/bin/run.sh &

    Save and reboot your PC/STB.

    This will cure your restart problem as it will restart automatically and stop your clients dropping off.
    Hi sats theres no local in usr i take it either put it in usr/bin or usr/script?

    By changing the mod to execute i take it by that you just mean change the attributes to 755?


    Rest In Peace Michael Mcharg, A true friend and although gone never forgotten. 11-10-08.

    Comment

    • faridbou
      Junior Member
      • Nov 2011
      • 24

      #302
      dm oscam1.0 tnt card

      Hej Guys I made post in page 19,I stil waiting for the answer , DAVO I now you are good in fixing thinks
      thks guys

      Comment

      • Rodbouy
        DK Veteran
        • Jul 2010
        • 1320

        #303
        Garry, what are you using to share, cccam ? If so try using oscam on its own see if that helps.

        Faridbou post your config file or log file

        Comment

        • garry1312
          DK Veteran
          • Oct 2010
          • 2178

          #304
          Using oscam on its own mate.


          Rest In Peace Michael Mcharg, A true friend and although gone never forgotten. 11-10-08.

          Comment

          • Rodbouy
            DK Veteran
            • Jul 2010
            • 1320

            #305
            If it happens again, post your config files and log then we will have a better look. Hopefully satsmos tip helped and you won't need too.

            Comment

            • micflair
              Senior Member
              • Jul 2009
              • 275

              #306
              So your IP is changing, do you have an option in your router for it to force the device to keep the same IP? It will change if it does not have this setting. Mine has a box to tick to force it to stay the same, this solved my oscam crashing problem.

              Also have checked your router logs mate to see if it is a IP lease issue? It sounds very similar to my problem a while back.

              Comment

              • garry1312
                DK Veteran
                • Oct 2010
                • 2178

                #307
                There is a option to give devices ip's set it to what dhcp on receiver gave but when i restarted the receiver the ip changed.

                Also noticed in my router settings there is a bit were i can put in my dyndns details done that status says connected. will this make any difference or will it just work the same as dyns updater?

                Its a netgear dgnd 3300v2 i have if thats any help on how to force ip.


                Rest In Peace Michael Mcharg, A true friend and although gone never forgotten. 11-10-08.

                Comment

                • Rodbouy
                  DK Veteran
                  • Jul 2010
                  • 1320

                  #308
                  I dont use a dyndns updater and never have done.


                  I have always set static IPs on every device thats attached to my network at device level.

                  The IP of the device should not change unless its rebooted, just by having OScam, stop would not cause a IP change.

                  See when it does it are you able to ftp to the box?

                  Try that and see then that will eliminate the IP.

                  Do you have a spare 500 c or s kicking about to use as a test or replacement?
                  Last edited by Rodbouy; 13 November, 2011, 11:12.

                  Comment

                  • faridbou
                    Junior Member
                    • Nov 2011
                    • 24

                    #309
                    tnt help

                    Hej this is my conf

                    oscam conf:

                    [global]
                    nice = -1
                    WaitForCards = 1
                    logfile = stdout
                    preferlocalcards = 1
                    saveinithistory = 1
                    [webif]
                    httpport = 8888
                    httpuser = root
                    httppwd = dreambox
                    httpallowed = 10.0.0.*(my ip dm)
                    # protocols
                    [newcamd]
                    key = 0102030405060708091011121314
                    port = 12000@0963:000000;12001@0963:000000

                    oscam server

                    [reader]
                    label = slot1
                    protocol = internal
                    device = /dev/sci0
                    boxid = 300162A0
                    blockemm-u = 0
                    blockemm-s = 0
                    blockemm-g = 1
                    blockemm-unknown = 1
                    emmcache = 1,3,2
                    group = 1
                    caid = 500

                    oscam user:
                    [account]
                    user = test1
                    pwd = test2
                    monlevel = 0
                    uniq = 0
                    group = 1,2
                    au = 1
                    caid = 0500,0603,1803,0100,0963,1830,1702,0919,0918,093B, 098E,09C4,09C7,0604,0622,090F
                    all what i have get, I cant even use my webinf
                    best regard

                    Comment

                    • Rodbouy
                      DK Veteran
                      • Jul 2010
                      • 1320

                      #310
                      Oscam.conf

                      Code:
                      [global]
                      nice = -1
                      WaitForCards = 1
                      ClientTimeout = 5
                      CacheDelay = 120
                      saveinithistory=1
                      PreferLocalCards = 1

                      [newcamd]
                      Key = 0102030405060708091011121314
                      Port = 34001@0500@030B00

                      [cccam]
                      port = 12000 # your choice


                      [webif]
                      httpport = 16000 # your choice
                      httpuser =
                      httppwd =
                      httprefresh = 10
                      httpallowed = 127.0.0.1,192.168.0.100-192.168.0.200 #your ip range here

                      [dvbapi]
                      enabled = 1
                      au = TNT
                      boxtype = dreambox
                      user = Local
                      socket = /tmp/camd.socket

                      oscam.server

                      Code:
                      [reader]
                      Label = TNT
                      Protocol = internal
                      Device = /dev/sci0
                      detect = CD
                      Group = 1
                      caid = 0500
                      ident = 0500:000000
                      group = 1
                      emmcache = 1,3,15
                      blockemm-unknown = 1
                      blockemm-g = 1
                      lb_weight = 101
                      auprovid = 000500

                      oscam.user

                      [account]
                      user = Local
                      group = 1
                      au = TNT


                      This is set for OScam only.

                      Also using part settings from another forum and tweaking with my setup for OScam only.

                      The oscam.conf is setup to allow connections from Newcam and CCcam.

                      I have enabled dvbapi also.

                      If you still cannot get in to the WebIF then I would suggest removing OScam and manually install it and download latest build from OScam forum.

                      Based on E1 with PLiJade3

                      Code:
                       
                      re-name file to OScam.
                       
                      Now FTP the cam to /var/bin
                       
                      now CHmod to 755
                       
                      Now using telnet type the following command
                       
                      touch /var/etc/plimgr/cardservers/OScam
                       
                      This will create a blank file. 
                       
                      The file you create must be exactly the same as the cam file that you just sent to /var/bin
                       
                      Now select OScam from the menu
                      Last edited by Rodbouy; 13 November, 2011, 11:44.

                      Comment

                      • davvo
                        DK Veteran
                        • Apr 2009
                        • 666

                        #311
                        gary next time it happens
                        have a look at cccam info if cccam is running thats your problem

                        if oscam is working on its own when you start cccam info
                        and click on servers it should give you an error

                        the fix is to edit your camscript

                        go to where your oscam camscript is
                        and remove just the cccam text in red below and save
                        then restart oscam

                        Code:
                        #!/bin/sh
                        
                        CAMNAME="Oscam"
                        
                        remove_tmp () {
                            rm -rf /tmp/*.info* /tmp/*.tmp*
                        }
                        
                        case "$1" in
                            start)
                            echo "[SCRIPT] $1: $CAMNAME"
                            remove_tmp
                            /usr/bin/oscam &
                            sleep 10
                            /usr/bin/[COLOR=Red]CCcam[/COLOR] &
                            ;;
                            stop)
                            echo "[SCRIPT] $1: $CAMNAME"
                            killall -9 [COLOR=Red]CCcam[/COLOR] 2>/dev/null
                            sleep 3
                            killall -9 oscam 2>/dev/null
                            sleep 3    
                            remove_tmp
                            ;;
                            *)
                            $0 stop
                            exit 0
                            ;;
                        esac
                        
                        exit 0

                        Comment

                        • garry1312
                          DK Veteran
                          • Oct 2010
                          • 2178

                          #312
                          Thanks davvo.

                          It is just oscam I have running no cccam. well Oscam using cccam protocol but no actual cccam files.


                          Rest In Peace Michael Mcharg, A true friend and although gone never forgotten. 11-10-08.

                          Comment

                          • davvo
                            DK Veteran
                            • Apr 2009
                            • 666

                            #313
                            @faridbou

                            try this for TNT-SAT


                            oscam.conf


                            Code:
                            [global]
                            nice = -1
                            WaitForCards = 1
                            ClientTimeout = 5
                            CacheDelay = 120
                            saveinithistory = 1
                            PreferLocalCards = 1
                            
                            
                            [newcamd]
                            Key = 0102030405060708091011121314
                            Port = 34001@0500@030B00
                            
                            
                            [webif]
                            httpport = 16002
                            httpuser =
                            httppwd =
                            httprefresh = 10
                            httpallowed = 127.0.0.1,192.168.0.100-192.168.0.200
                            oscam.server


                            Code:
                            [reader]
                            Label = tntsat
                            Protocol = internal
                            Device = /dev/sci0
                            detect = CD
                            Group = 1
                            caid = 0500
                            AESKeys = ********************************************
                            oscam.user


                            Code:
                            [account]
                            user = test1
                            pwd = test2
                            group = 1
                            au = tntsat
                            cccam.cfg


                            Code:
                            N: 127.0.0.1 34001 test1 test2 01 02 03 04 05 06 07 08 09 10 11 12 13 14
                            Last edited by satsmo; 14 November, 2011, 21:41. Reason: Blanked out AES keys

                            Comment

                            • faridbou
                              Junior Member
                              • Nov 2011
                              • 24

                              #314
                              Thanks davvo I wil trayit with a hope to work this time

                              Comment

                              • faridbou
                                Junior Member
                                • Nov 2011
                                • 24

                                #315
                                Davvo:
                                Iam shame to ask you? But what I did is juste copy and paste like you said do I have to change something bcause stil nor reading my tnt card with gemini image E1 'thanks for helping

                                Comment

                                Working...