box keep loosing connection with cam

There are 2 replies in this Thread which was already clicked 1,534 times. The last Post () by sunlight786.

  • hi,
    i am using original dm8000 (image bh 1.3.3d ) and i am currently using mgcamd 1.35a .every often i found morning time my box is not displaying any premium channels and that time i press blue button to reconectt the magcamd and then box work fine.
    i must need to tell you that i reboot my box every night at 3am and then 3:20am my crossepg get to update.where i have also found issue some time after updating the epg i only get epg for now&next and this situation i just restart the enigma2 and all epg loaded properly for 7 days.


    so basically as you see i got 2 issue.
    1- i think once the box reboot then mgcamd itself d,nt connect to server.
    2- 20 minutes after reboot crossepg start getting update and after uptade epg failed to load properly into my usb(location)


    can any one please advise me for that?
    or any one can provide me a script to set as cron for every 5 minute to check if mgcamd stop or freeze then it make it to run.


    also some thing to solve this epg issue please.

  • ok i am going to alter the time of reboot which will be 20min after the crossepg downloaded and will report back if it solve the epg issue.


    i have ftp the box and found this
    /usr/camscript/Ncam_mgcamd_1.35.sh


    which is


    #!/bin/sh


    CAMNAME="Mgcamd-1.35"


    remove_tmp () {
    rm -rf /tmp/*.info* /tmp/*.tmp* /tmp/*mgcamd*
    }


    case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    remove_tmp
    /usr/bin/mgcamd_1.35 &
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    killall -9 mgcamd_1.35
    remove_tmp
    ;;
    *)
    $0 stop
    exit 0
    ;;
    esac


    exit 0



    can i edite or add any lines in it and try to run the script as cron job every 5minu so script can watch if the mGcamd frozen or stop it can make sure it auto start after reboot or any crash.


    this is also what i think to try ,please tell me if its wrong


    if i add this script to /var/script/mgcamdheck_userscript then chomd 755


    here is the script


    #!/bin/sh
    if ps x |grep -v grep |grep -c mgcamd_1.35 >/dev/null
    then
    echo "mgcamd is ok."
    else
    echo "mgcamd is restarting."
    /var/script/mgcamd_1.35_cam.sh stop
    /var/script/mgcamd_1.35_cam.sh start
    fi


    then make a crontab as


    # crontab -e
    */5 * * * * /var/script/CCcamCheck.sh



    will it work?

Participate now!

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