Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Softcam issue?

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
5.5.007
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Attachments
Page 13 of 15 FirstFirst ... 31112131415 LastLast
Results 181 to 195 of 222

Thread: Softcam issue?

  1. #181
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,422
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by spanner123 View Post
    But didn't someone say that OpenATV Oscam runs fine on Mips boxes? Can't some code simply be copied over and run it the same way OpenATV does? (I do know that it will not be as easy as that sounds).
    the issue is not the Oscam version (or options compiled with it) - running as a script, they all appear to work
    the other images use scripts except OpenViX that uses a ViX plugin to control the cams
    so just run a simple script as per the posts above...
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  2. #182

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2015
    Posts
    338
    Thanks
    64
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by twol View Post
    the issue is not the Oscam version (or options compiled with it) - running as a script, they all appear to work
    the other images use scripts except OpenViX that uses a ViX plugin to control the cams
    so just run a simple script as per the posts above...
    Not sure I know how to do that but will give it a go, but can't the script just be added to next update so it just runs like other images? This problem has spoilt what was an excellent box (Vu+ Solo2)

  3. #183

    Title
    Senior Member
    Join Date
    Jul 2013
    Posts
    180
    Thanks
    24
    Thanked 59 Times in 48 Posts
    Yes... this softcam issue may well be an issue to do with the way Python 2 works on Mips boxes:-
    On the new test Python 3 version of Vix, Oscam works (with low ecms) but alas it still eventually stops and appears to run out of memory. So half a solution is maybe to use Python 3. It is pretty easy to create a script that starts Oscam automatically and this works (although it too stops after about a day or two). The fact that OpenATV, OpenPLI and other MIPs images work flawlessly with Oscam is puzzling, but Openvix is a more complex image which tends to be more flash and memory hungry on Mips machines.
    Here is a workaround...

    1) Create a startup script as follows:-

    #!/bin/sh
    ulimit -s 1024
    /usr/softcams/oscam-latest --config-dir /etc/tuxbox/config --daemon --pidfile /tmp/oscam-latest.pid --restart 2 --utf8
    exit 0


    Name the script "S56softcam.sh" and ftp to /var/etc/rcS.d

    2) Disable Oscam startup in SoftcamManager and disable Oscam check

    3) Create a Power Timer to reboot the (MIPS) box every day in the middle of the night.

    4) Reboot box

    This is how I got Openvix working with Oscam. Any other ideas welcome...
    Last edited by johnhoe; 30-06-21 at 15:51.

  4. The Following 2 Users Say Thank You to johnhoe For This Useful Post:

    spanner123 (30-06-21),widar (30-06-21)

  5. #184
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,422
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by johnhoe View Post
    Yes... this softcam issue may well be an issue to do with the way Python 2 works on Mips boxes:-
    On the new test Python 3 version of Vix, Oscam works (with low ecms) but alas it still eventually stops and appears to run out of memory. So half a solution is maybe to use Python 3. It is pretty easy to create a script that starts Oscam automatically and this works (although it too stops after about a day or two). The fact that OpenATV, OpenPLI and other MIPs images work flawlessly with Oscam is puzzling, but Openvix is a more complex image which tends to be more flash and memory hungry on Mips machines.
    Here is a workaround...

    1) Create a startup script as follows:-

    #!/bin/sh
    ulimit -s 1024
    /usr/softcams/oscam-latest --config-dir /etc/tuxbox/config --daemon --pidfile /tmp/oscam-latest.pid --restart 2 --utf8
    exit 0


    Name the script "S56softcam.sh" and ftp to /var/etc/rcS.d

    2) Disable Oscam startup in SoftcamManager and disable Oscam check

    3) Create a Power Timer to reboot the (MIPS) box every day in the middle of the night.

    4) Reboot box

    This is how I got Openvix working with Oscam. Any other ideas welcome...
    .. and that is basically the scripts used by other images except they save the pid, so it can be stopped later

    By the way interesting py3 info …..
    Last edited by twol; 30-06-21 at 19:26.
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  6. #185

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2015
    Posts
    338
    Thanks
    64
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by johnhoe View Post
    Yes... this softcam issue may well be an issue to do with the way Python 2 works on Mips boxes:-
    On the new test Python 3 version of Vix, Oscam works (with low ecms) but alas it still eventually stops and appears to run out of memory. So half a solution is maybe to use Python 3. It is pretty easy to create a script that starts Oscam automatically and this works (although it too stops after about a day or two). The fact that OpenATV, OpenPLI and other MIPs images work flawlessly with Oscam is puzzling, but Openvix is a more complex image which tends to be more flash and memory hungry on Mips machines.
    Here is a workaround...

    1) Create a startup script as follows:-

    #!/bin/sh
    ulimit -s 1024
    /usr/softcams/oscam-latest --config-dir /etc/tuxbox/config --daemon --pidfile /tmp/oscam-latest.pid --restart 2 --utf8
    exit 0


    Name the script "S56softcam.sh" and ftp to /var/etc/rcS.d

    2) Disable Oscam startup in SoftcamManager and disable Oscam check

    3) Create a Power Timer to reboot the (MIPS) box every day in the middle of the night.

    4) Reboot box

    This is how I got Openvix working with Oscam. Any other ideas welcome...
    Tried this and all working ok! Can this now be added to next update so it works like all the other images? By the way to anyone else wanting to try this, change 'oscam-latest' to whatever oscam version you are using i.e. oscam-emu etc

  7. #186
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    Would there be any harm in also having the PLI/ATV cam control methods in Vix?

  8. #187
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,422
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by abu baniaz View Post
    Would there be any harm in also having the PLI/ATV cam control methods in Vix?
    Spent a lot of time looking at this, and its not the smartest package, made worse by the fact that nobody builds from https://github.com/oe-alliance/oe-al...igma2-softcams
    … it doesn,t build as not kept upto date!
    So when I get time will look again at adding the scripts into the Oscam compiles
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  9. #188
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    I am sure I already posted in Dev section where ATV softcams are built from.

    Edit: Post in Dev section updated with link. I hadn't done so before.

  10. #189
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,422
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Found a post from you, that gives the OpenPli bb, but not OpenATV.... which I would find interesting!
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  11. #190
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    I have managed to add the ATV/PLI control method. Commit which can be improved on my fork is here: https://github.com/AbuBaniaz/enigma2...d82f6a943ae8d7

    For anybody wanting to try this (please make an image backup first or copy original files first), attached files are required.

    menu.xml
    Goes in /usr/share/enigma2

    SoftcamSetup.py
    Goes in /usr/lib/enigma2/python/Screens

    SystemInfo.py
    config.py
    Go in /usr/lib/enigma2/python/Components

    camcontrol.py
    Goes in /usr/lib/enigma2/python/Tools

    Please delete the .py files after restarting and the new/updated .pyo files are created.
    Disable the checks in Vix Softcam manager to ensure it does not interfere
    The ATV/PLI softcam menu won't show unless an ATV/PLI softcam with the init scripts is installed

    To install the ATV softcam feed, issue following command using Putty or any Terminal client
    Code:
    wget -O - -q http://updates.mynonpublic.com/oea/feed | bash
    Once you restart, you will be able to install softcams created for ATV.
    Attached Images Attached Images
    Attached Files Attached Files

  12. The Following 3 Users Say Thank You to abu baniaz For This Useful Post:

    johnhoe (01-07-21),widar (01-07-21),Willo3092 (01-07-21)

  13. #191

    Title
    Senior Member
    Join Date
    Jul 2013
    Posts
    180
    Thanks
    24
    Thanked 59 Times in 48 Posts
    Thanks... but...
    works just like Softcammanager did with same glitchy results (remember you have to recopy your oscam config into the newly formed directory in my case "oscam-stable" directory off the var/etc/tuxbox/config)
    Sorry to say!!

    Back to the scripts!!!

  14. #192
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    Quote Originally Posted by johnhoe View Post
    Thanks... but...
    works just like Softcammanager did with same glitchy results (remember you have to recopy your oscam config into the newly formed directory in my case "oscam-stable" directory off the var/etc/tuxbox/config)
    Sorry to say!!

    Back to the scripts!!!
    Oscam checks several location for configs, so should still find them. Are you sure that is not happening? ATV default port is 83.

    What is different between "the scripts" and the cam startup scripts?
    Code:
    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          softcam
    # Required-Start:    $local_fs
    # Required-Stop:     
    # Should-Start:      $time $remote_fs cardserver
    # Should-Stop:     
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: oscam
    # Description:       oscam SoftCAM, card reader and server.
    ### END INIT INFO
    
    
    readlink -f $0 >/dev/null 2>&1
    if [ $? -eq 0 ]; then
        CAM=$(basename $(readlink -f $0) | sed s#^softcam\.##)
    else
        CAM=$(basename $0 | sed s#^softcam\.##)
    fi
    
    
    [ -n "$CAM" ] || exit 1
    [ -x /usr/bin/$CAM ] || exit 1
    
    
    PIDFILE=/var/tmp/${CAM}.pid
    DESC="Softcam service $CAM"
    DAEMON=/usr/bin/$CAM
    
    
    case "$1" in
    start)
        if [ -e $PIDFILE ]; then
            PIDDIR=/proc/$(cat $PIDFILE)
            if [ -d ${PIDDIR} ] && [[ $(readlink -f ${PIDDIR}/exe) == $DAEMON ]]; then
                echo "$DESC already started; not starting."
                exit 1
            else
                rm -f $PIDFILE
            fi
        fi
        echo -n "Starting $DESC: "
        ulimit -s 1024
        $DAEMON --config-dir /etc/tuxbox/config/$CAM --daemon --pidfile $PIDFILE --restart 2 --utf8 2| grep -v "UTF-8 mode"
        sleep 0.5
        RETVAL=1
        [ -e $PIDFILE ] && RETVAL=0
        if [ "$RETVAL" -eq "0" ]; then
            echo "OK"
        else
            echo "FAILED"
        fi
        exit $RETVAL
        ;;
    stop)
        echo -n "Stopping $DESC: "
        kill `cat $PIDFILE 2> /dev/null` 2> /dev/null
        RETVAL=$?
        if [ "$RETVAL" -eq "0" ]; then
            echo "OK"
        else
            echo "FAILED"
        fi
        sleep 1
        killall $CAM 2> /dev/null
        exit $RETVAL
        ;;
    restart|reload)
        $0 stop
        sleep 1
        $0 start
        exit $?
        ;;
    status)
        echo -n "$DESC: "
        if [ -e $PIDFILE ]; then
            PIDDIR=/proc/$(cat $PIDFILE)
            if [ -d ${PIDDIR} ] && [[ $(readlink -f ${PIDDIR}/exe) == $DAEMON ]]; then
                echo "Running."
                exit 0
            fi
        fi
        echo "Stopped."
        exit 1
        ;;
    version)
        $CAM -V | grep 'Version\|IPv6' | sed 's/Version:[ ]*//' | sed 's/IPv6.*yes/with IPv6/g' | sed 's/IPv6.*no/IPv4-only/g' | sed ':a;N;$!ba;s/\n/ /g'
        ;;
    info)
        $CAM -V | grep 'Version\|IPv6' | sed 's/Version:[ ]*//' | sed 's/IPv6.*yes/with IPv6/g' | sed 's/IPv6.*no/IPv4-only/g' | sed ':a;N;$!ba;s/\n/ /g'
        ;;
    *)
        echo "Usage: $0 start|stop|restart|status"
        exit 1
        ;;
    esac
    exit 0

  15. #193

    Title
    Senior Member
    Join Date
    Jul 2013
    Posts
    180
    Thanks
    24
    Thanked 59 Times in 48 Posts
    Oscam checks several location for configs, so should still find them. Are you sure that is not happening?
    It seems to check in var/etc/tuxbox/config/CAM$ which is what I found! CAM$ presumably is the name of the cam (in my case oscam-stable).
    Doesn't seem to check in the Vix normal place... (var/etc/tuxbox/config). The new code creates a new directory off config directory with the same name as the relevant Oscam you are downloading...

    Softcam starts and works but is glitchy and shows high ecms as before....
    Can't see any difference or improvement between this method and Vix Softcammanager.

    What is different between "the scripts" and the cam startup scripts?
    The scripts refers to our crude startup scripts that merely start Oscam without any PID management or the possibility of stopping/restarting or checking that the cam is still working.
    The cam startup scripts seem to perform all of these functions
    Last edited by johnhoe; 01-07-21 at 18:21.

  16. The Following User Says Thank You to johnhoe For This Useful Post:

    widar (02-07-21)

  17. #194
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    For me, the oscam binary checks /etc/tuxbox/config/oscam-stable folder or /etc/tuxbox/config/ folder without a problem. This is as per oscam coding to allow version specific config files. The locations of config files is hardcoded in vix softcam manager, not the oscam binary itself unless it is built that way specifically.

    Anyway, main issue we need to fix is the high ecm and stalling on mips receivers on openvix. Lets not get sidetracked by other issues.

  18. #195
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts
    Quote Originally Posted by white_westie View Post
    openvix 5.4.005
    Oscam stopped after approx 300 minutes each time.

    openvix 5.4.004
    Worked perfectly with no stopping - tested over a few days

    So based on the above, it looks like the problem was possibly introduced between 5.4.004 and 005!
    Just for reference purposes:

    openvix 5.4.004: 06 Jan 2021
    openvix 5.4.005: 23 Jan 2021


    EDIT:
    Changelogs attached with a day either side just in case build took in a commit after build started
    Code:
    git log --since="2021-01-05" --until="2021-01-24" > oea4.4_log.txt
    git log --since="2021-01-05" --until="2021-01-24" > vix_e2.txt
    git log --since="2021-01-05" --until="2021-01-24" > vix_core.txt
    Attached Files Attached Files

Page 13 of 15 FirstFirst ... 31112131415 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.