Executable OSCam+Supcam on Dream Elite 7.1

There are 12 replies in this Thread which was already clicked 2,737 times. The last Post () by Numerio.

  • Hi, I compiled a script for the OSCam_Supcam executable on Dream Elite 7.1 DM900, I have problems starting Supcam.


    [Unit]

    Description=OSCam Supcam

    Requires=emu-OSCam Supcam.socket dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device

    After=dev-dvb-adapter0-ca0.device

    After=dev-dvb-adapter0-demux0.device

    After=dev-sci0.device



    [Service]

    Type=forking

    ExecStart=/usr/bin/OSCam -b -B -r 2 -w 1 -c /var/tuxbox/config | /usr/local/etc/oscammips -b -B -r 2 -w 1 -c /usr/local/etc &

    Restart=on-failure

    NonBlocking=true

    NotifyAccess=main



    [Install]

    WantedBy=multi-user.target

    Also=emu-OSCam Supcam.socket

  • Hi,


    try to start the script manually in a Telnet terminal via

    systemctl start <scriptname>

    you might get info about the reason of failure (I see a potential problem with the socket file name).


    As an alternative, would it be feasible to create second script NewSupCam.service ?


    [Unit]

    Description=Supcam

    Requires =Supcam.socket


    [Service]

    ExecStart=/usr/local/etc/oscammips -b -B -r 2 -w 1 -c /usr/local/etc &

    [Install]

    WantedBy=multi-user.target

    Also=Supcam.socket


    then add NewSupCam.service inside the [Unit] section of your script

    ..

    Requires ... NewSupCam.service

    ..

    After=dev-sci0.device

    After = NewSupCam.service


    ExecStart must be updated accordingly.


    Cheers

  • Thanks for now, but not working.
    This is my script file of start:


    Description=SupCam

    Requires=emu-SupCam.socket dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device

    After=dev-dvb-adapter0-ca0.device

    After=dev-dvb-adapter0-demux0.device

    After=dev-sci0.device



    [Service]

    Type=forking

    ExecStart= /usr/local/etc/oscammips -b -B -r 2 -w 1 -c /usr/local/etc &

    Restart=on-failure

    NonBlocking=true

    NotifyAccess=main



    [Install]

    WantedBy=multi-user.target

    Also=emu-SupCam.socket



    Even integrating it with emu-oscam.service doesn't work.

    Edited 2 times, last by G++ ().

  • Hi,


    I've created a test enviroment on my Dream-Two: Both executables seem to start one after the other.


    Here is what I have done:




    1. Create new script (NewSupcam.service)

    -------------------------------------------------

    [Unit]

    Description=Supcam

    Requires=dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device

    After=dev-dvb-adapter0-ca0.device

    After=dev-dvb-adapter0-demux0.device

    After=dev-sci0.device


    [Service]

    Type=forking

    ExecStart=/usr/bin/oscam-emu-00 -b -B -r 2 -w 1 -c /etc/tuxbox/Test & << Change this

    Restart=on-failure

    NonBlocking=true

    NotifyAccess=main


    [Install]

    WantedBy=multi-user.target

    Also=NewSupcam.socket

    -------------------------------------------------

    you need to replace the ExecStart with yours -> /usr/local/etc/oscammips -b -B -r 2 -w 1 -c /usr/local/etc &





    2.) create (NewSupcam.socket)

    -------------------------------------------------

    [Unit]


    [Socket]

    ListenStream=/var/run/osccam.pid

    Backlog=8


    [Install]

    WantedBy=sockets.target

    --------------------------------------------




    3) Link NewSupcam.service into your original script


    This is my script (emu-osca.Test.service)

    --------------------------------------------

    [Unit]

    Description=Test

    Requires=emu-oscam.Test.socket dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device NewSupcam.service <<<<<< Link here

    After=dev-dvb-adapter0-ca0.device

    After=dev-dvb-adapter0-demux0.device

    After=dev-sci0.device

    After=NewSupcam.service <<<<<< Link here


    [Service]

    Type=forking

    ExecStart=/usr/bin/oscam-emu-11.689 -b -B -r 2 -w 1 -c /etc/tuxbox/Test &

    Restart=on-failure

    NonBlocking=true

    NotifyAccess=main


    [Install]

    WantedBy=multi-user.target

    Also=emu-oscam.Test.socket


    --------------------------------------------




    4) I went through the Telnet running (systemctl start emu-oscam.Test.service)




    5) check service status (systemctl status emu-oscam.Test.service or journalctl -u emu-oscam.Test.service)


    ● emu-oscam.Test.service - Test

    Loaded: loaded (/lib/systemd/system/emu-oscam.Test.service; disabled; vendor preset: enabled)

    Active: active (running) since Wed 2021-03-24 01:00:50 CET; 9min ago

    Process: 650 ExecStart=/usr/bin/oscam-emu-11.689 -b -B -r 2 -w 1 -c /etc/tuxbox/Test & (code=exited, status=0/SUCCESS)

    Main PID: 651 (oscam-emu-11.68)

    CGroup: /system.slice/emu-oscam.Test.service

    ├─651 /usr/bin/oscam-emu-11.689 -b -B -r 2 -w 1 -c /etc/tuxbox/Test &

    └─652 /usr/bin/oscam-emu-11.689 -b -B -r 2 -w 1 -c /etc/tuxbox/Test &


    Mar 24 01:00:50 dreambox systemd[1]: Starting Test...

    Mar 24 01:00:50 dreambox systemd[1]: Started Test.




    5) check service status (systemctl status NewSupcam.service)


    ● NewSupcam.service - Supcam

    Loaded: loaded (/lib/systemd/system/NewSupcam.service; disabled; vendor preset: enabled)

    Active: active (running) since Wed 2021-03-24 01:00:50 CET; 10min ago

    Process: 635 ExecStart=/usr/bin/oscam-emu-00 -b -B -r 2 -w 1 -c /etc/tuxbox/Test & (code=exited, status=0/SUCCESS)

    Main PID: 636 (oscam-emu-00)

    CGroup: /system.slice/NewSupcam.service

    ├─636 /usr/bin/oscam-emu-00 -b -B -r 2 -w 1 -c /etc/tuxbox/Test &

    └─637 /usr/bin/oscam-emu-00 -b -B -r 2 -w 1 -c /etc/tuxbox/Test &


    Mar 24 01:00:50 dreambox systemd[1]: Starting Supcam...

    Mar 24 01:00:50 dreambox systemd[1]: Started Supcam.



    -----------------


    604 ? 00:00:00 kworker/1:1H

    615 ? 00:00:00 telnetd

    616 pts/0 00:00:00 bash

    621 ? 00:00:00 vsftpd

    623 ? 00:00:00 vsftpd

    636 ? 00:00:00 oscam-emu-00 <<<

    637 ? 00:00:01 oscam-emu-00 <<<

    651 ? 00:00:00 oscam-emu-11.68 <<<

    652 ? 00:00:01 oscam-emu-11.68 <<<

    676 ? 00:00:00 irq/27-ff642000

    677 ? 00:00:00 irq/28-ff642000

    2065 ? 00:00:00 tb_detect

    2066 ? 00:00:00 ppmgr

    2167 pts/0 00:00:00 ps


    Cheers

  • ... niente Supcam non funziona, Oscam funziona


    Script emu-oscam-11682.service

    [Unità]

    Descrizione = OSCam 11682

    Richiede = emu-oscam-11682.socket dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device new-supcam.service

    Dopo = dev-dvb-adapter0-ca0.device

    Dopo = dev-dvb-adapter0-demux0.device

    Dopo = dev-sci0.device

    Dopo = new-supcam.service



    [Servizio]

    Tipo = biforcazione

    ExecStart = / usr / bin / oscam-11682 -b -B -r 2 -w 1 -c / var / tuxbox / config &

    Restart = in caso di guasto

    NonBlocking = true

    NotifyAccess = main



    [Installare]

    WantedBy = multi-user.target

    Anche = emu-oscam-11682.socket


    Script emu-oscam-11682.socket

    [Unità]


    [Socket]

    ListenStream = / var / run / oscam-11682.pid

    Arretrato = 8


    [Installare]

    WantedBy = sockets.target


    Script new-supcam.service

    [Unità]

    Descrizione = Supcam

    Richiede = dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device

    Dopo = dev-dvb-adapter0-ca0.device

    Dopo = dev-dvb-adapter0-demux0.device

    Dopo = dev-sci0.device



    [Servizio]

    Tipo = biforcazione

    ExecStart = / usr / local / etc / oscammips -b -B -r 2 -w 1 -c / usr / local / etc &

    Restart = in caso di guasto

    NonBlocking = true

    NotifyAccess = main



    [Installare]

    WantedBy = multi-user.target

    Anche = new-supcam.socket


    Script new-supcam.socket

    [Unità]


    [Socket]

    ListenStream = / var / run / oscammips.pid

    Arretrato = 8


    [Installare]

    WantedBy = sockets.target


    root @ dm900: ~ # systemctl status emu-oscam-11682.service

    ● emu-oscam-11682.service - OSCam 11682

    Caricato: caricato (/lib/systemd/system/emu-oscam-11682.service; abilitato; fornitore

    Attivo: attivo (in corso) da mercoledì 2021-03-24 18:10:36 CET; 31min fa

    PID principale: 248 (oscam-11682)

    CGroup: /system.slice/emu-oscam-11682.service

    ├─248 / usr / bin / oscam-11682 -b -B -r 2 -w 1 -c / var / tuxbox / config &

    └─249 / usr / bin / oscam-11682 -b -B -r 2 -w 1 -c / var / tuxbox / config &


    24 marzo 18:10:36 dm900 systemd [1]: Avvio OSCam 11682 ...

    24 marzo 18:10:36 dm900 systemd [1]: Avviato OSCam 11682.



    root @ dm900: ~ # systemctl status new-supcam.service

    ● new-supcam.service - Supcam

    Loaded: caricato (/lib/systemd/system/new-supcam.service; disabilitato; vendor pres

    Attivo: attivo (in corso) da mercoledì 2021-03-24 18:10:36 CET; 33min fa

    PID principale: 226 (oscammips)

    CGroup: /system.slice/new-supcam.service

    └─226 / usr / local / etc / oscammips -b -B -r 2 -w 1 -c / usr / local / etc &


    24 marzo 18:10:35 dm900 systemd [1]: Avvio di Supcam ...

    24 marzo 18:10:36 dm900 systemd [1]: Avviato Supcam.



    root @ dm900: ~ # systemctl status new-supcam.socket

    ● new-supcam.socket

    Loaded: caricato (/lib/systemd/system/new-supcam.socket; disabled; vendor prese

    Attivo: inattivo (morto)

    Ascolta: /var/run/oscammips.pid (Stream)



    root @ dm900: ~ # systemctl status emu-oscam-11682.socket

    ● emu-oscam-11682.socket

    Caricato: caricato (/lib/systemd/system/emu-oscam-11682.socket; abilitato; fornitore p

    Attivo: attivo (in corso) da mercoledì 2021-03-24 18:10:35 CET; 36min fa

    Ascolta: /var/run/oscam-11682.pid (Stream)


    24 marzo 18:10:35 dm900 systemd [1]: Ascolto su emu-oscam-11682.socket.


    ERRORE DI CONFIGURAZIONE IN NEW-SUPCAM-SOCKET AND NEW-SUPCAM-SERVICE

    Grazie per tutto No-pla!

    Edited once, last by G++ ().

  • Hi G++,


    I don't know 'oscammips'. I assume it is an oscam variant that we want to run in parallel.

    For what I see, 'oscammips' has been started with PID 226 but the socket hadn't


    >> Root @ DM900: ~ # SystemCTL status new-supcam.socket

    >> ● New-Supcam.Socket

    >> Loaded: Loaded (/Lib/systemd/system/new-supcam.socket; Disabled; Vendor taken

    >>>>>>>>>>>>> Active: Inactive (dead) <<<<<<<<<<<<<<<<<<


    add 'new-supcam.socket' into new-supcam.service as follow:


    Requires=new-supcam.socket dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device dev-sci0.device


    please also consider that with this script configuration, 'oscammips' get started before 'oscam-11682',

    maybe you need the other way around (still I don't know what oscammips does/requires)


    ciao


    P.S.: did you try to manually debug your first script via systemctl/journalctl in telnet ?

    May be you find an easy way to fix the problem. We still don't know what went wrong with your initial script.

  • Thanks very thanks No-pla.

    Supcam (oscammips) work for package Canal + France at 19.2E, is therefore indifferent the starting cam.

    This afternoon i try the change you suggested.

    Stay be tuned.

  • Hi No-pla even if now I receive active Supcam does not start:



    ● new-supcam.socket


    Loaded: loaded (/lib/systemd/system/new-supcam.socket; disabled; vendor preset: enabled)


    Active: active (ongoing) from Thu 2021-03-25 18:45:05 CET; 1h 9min ago


    Listen: /var/run/oscammips.pid (Stream)




    March 25 18:45:05 dm900 systemd [1]: Listening on new-supcam.socket.


    Vice versa if I try to disable the file: emu-oscam-11682.service, Supcam is activated and from vision.

    Are we missing something in emu-oscam-11682.service?

    Thanks.

    Edited once, last by G++ ().

  • I suggest you enable the log production inside /usr/local/etc/oscam.conf (the one releted to oscammips)

    make sure it contains:


    [global]

    disablelog = 0

    logfile = /tmp/oscammips.log <<< path/file of your preference


    hopefully we get some info


    cheers

Your resource for OSCam softcam

Find configs, downloads, tutorials, and support for setting up and optimizing this open-source card server with wide protocol compatibility. Master the versatile OSCam softcam. Access support, configs, tutorials, and downloads for open-source card sharing and multi-protocol server management.

Participate now!

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