Service Wrapper for oscam

Ok this is one of those “if you need it, you’ll know what I’m talking about posts”!

I recently started using oscam and being that I don’t like sever applications that need to run in the foreground I wrote a small windows service wrapper to handle oscam for me.

Just drop it in your oscam folder and install it by running oscamSVC -install

Using oscam as a system service also overcomes the issue that some people have found with  some USB card readers such as the Omnikey disconnecting or ejcecting when a remote desktop connection is made to the PC running oscam.

 


 

Version History & Changes

0.3.5.0 – Current version

  • Added settings form (Loaded by starting oscamSVC.exe without any parameter)
  • Added start-up delay option
    Use this option if you see card detection errors in your oscam log. I did – even though I made oscamSVC dependent on the smartcard service.
    Adding the delay just lets Windows start a bit more which for what ever reason seems to help. It will be dependent on your reader.
    During the delay the service is kept in the ‘starting’ state so you can still add service dependencies using regedit.
    e.g. MediaPortal TVServer depends on oscamSVC.
  • Changed command line options from slash to dash
    (i.e oscamSVC.exe -install instead of oscamSVC.exe /install)

0.3.0.0

  • Initial public release

 

 

 

Requires .NET 2.0

Enjoy.

oscamSVC
Version: 0.3.5.0
Updated: 2011-06-25
Download: oscamSVC.exe - 23.5 kB

, , , ,

9 Responses to Service Wrapper for oscam

  1. marcos September 20, 2015 at 2:14 pm #

    please oscam need the program will be that you can help me

    please

  2. Http://Buffalogalsellshomes.Com/ January 3, 2013 at 6:51 pm #

    Your blog post, “Service Wrapper for oscam” was
    indeed worth writing a comment down here in the comment section!
    Basically wanted to admit you really did a terrific
    work. Thanks for your effort -Margo

  3. tbergman July 11, 2011 at 5:52 pm #

    Thank you anyway. It’s all appreciated.

    Cheers,

    T.

  4. tbergman July 11, 2011 at 5:34 pm #

    Excellent.

    Now, a question that may be slightly off-topic.

    In Australia, the TV providers did something to the encryption that caused all of us that were using Oscam Cygwin, Acamd, TVsource via W7 Media centre to not receive the transmission and ending up with black screens only.

    I’ve done some research and believe that this might have something to do with AES keys (?).

    Would you have any insight into this, or be able to point me in the right direction?

    Thanks again

    • RhysGoodwin July 11, 2011 at 5:44 pm #

      Ah yes I’ve been following the thread on asutech. I wish a could help but unfortunately writing a Windows service wrapper in .NET is a far cry from writing c++ code like what is found in oscam! No I can’t help there sorry 🙁 All I can do is hope the same thing doesn’t happen down here.

  5. tbergman July 11, 2011 at 4:55 pm #

    Hi,

    does this mean that cygwin is no longer required?

    Forgive me if this a stupid question, but my knowledge is limited.

    • RhysGoodwin July 11, 2011 at 5:13 pm #

      Hey Tony, you will still need cygwin but all that means is that you need to have:

      cygwin1.dll
      cyggcc_s-1.dll
      cygcrypto-0.9.8.dll

      in the same folder as oscam. That’s all the cygwin you need :). This service wrapper just controls starting and stopping of oscam and it means that oscam will start after a reboot without having to log on the PC.

      Cheers,
      Rhys

  6. RhysGoodwin July 2, 2011 at 12:44 pm #

    Cheers Mike, let me know if you have any issues. I’ve only done basic testing.

  7. mike July 1, 2011 at 12:00 pm #

    thanks save the pain of having to do this manual. thanks

Leave a Reply