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 12 of 15 FirstFirst ... 21011121314 ... LastLast
Results 166 to 180 of 222

Thread: Softcam issue?

  1. #166
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    So having had an issue with Oscam and reboot initialisation times, I added these changes to Scriptrunner to enable scripts to be run at startup time - it may or may not fix these issues experienced here but I would be interested in users trying the changes.
    So in ViX Scriptrunner I have provided the means to enable a script to be run at bootup time or manually started (Softcam.sh) or stopped (SoftcamClose.sh) - the scripts are in the attached Softcam.zip and should be copied to usr/script.

    So scripts are currently setup for oscam-latest and need to be changed if softcam is changed or is installed to differently directory (currently usr/softcam )

    1. using Putty, login & stop the system (init 4)
    1. copy plugin.py, ScriptRunner.py and setup.xml to /usr/lib/enigma2/python/Plugins/SystemPlugins/ViX
    2. copy the unzipped softcam scripts (Softcam.sh & SoftcamClose.sh) to usr/script
    3. in Putty reboot - init 6
    4. Disable SoftcamManager (blue button), menu disable freeze check and everything else.... don't forget to save changes
    5. Blue button, ViX -> ScriptRunner - Menu -> Enable script ----> don't forget to save changes
    6. Reboot

    Let me know if it improves the Oscam access.

    You can also manually Start/Stop by selecting in ScriptRunner and hitting Run.

    If it works for you then I will issue a Pull to ViX.
    Attached Files Attached Files
    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. The Following 2 Users Say Thank You to twol For This Useful Post:

    Andy_Hazza (06-06-21),Clabs (06-06-21)

  3. #167

    Title
    Forum Supporter
    Donated Member
    Join Date
    Apr 2012
    Location
    Eire
    Posts
    158
    Thanks
    43
    Thanked 29 Times in 24 Posts
    @twol I have applied your changes, and will let you know what happens.
    Running openvix 5.4.007 on an ET8000 box, non standard oscam.

    Personally, I dont think it makes any difference if oscam is started by init.d or by a python console.
    I believe that the issue was introduced between openvix 5.4.004 and 5.4.005!
    Will post my results in the next day or two.

    WW
    Last edited by white_westie; 07-06-21 at 15:48. Reason: extra info
    CT ET9000, Xtrend ET4000
    T90 Wavefrontier 5W-1W-5E-13E-19E-28E, Old Lidl dish 28E


  4. #168
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    “ Personally, I dont think it makes any difference if oscam is started by init.d or by a python console.“ - in terms of speed probably not, I was just trying to find out if implementing the change this way fixed the issues people were seeing and also make it easy to control softcam start/stop from Enigma.

    Will be interested in your results
    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

  5. #169
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    A "non standard oscam" adds an extra parameter to the equation.

  6. #170

    Title
    Forum Supporter
    Donated Member
    Join Date
    Apr 2012
    Location
    Eire
    Posts
    158
    Thanks
    43
    Thanked 29 Times in 24 Posts
    @twol - So to follow up, as expected running oscam using the changes you suggested did not fix MY problem

    My situation

    OSCAM
    Running a mipsel only version on an ET8000, and an arm only version on a GigaBlue UE.
    Both report to be oscam-1.20_svn-r11686.
    Both reference libcrypto.so.0.9.8, so need a symbolic link to run.

    PROBLEM
    Noticed a number of weeks ago, that oscam would stop after a while on the mipsel box - could manually restart it straight away.
    Lost a few recordings due to this so decided to look into it more.
    Added the restart option '-r 2' to the command line.
    Added a logfile option in 'oscam.conf' to point to a usb stick, and ran it in max debug mode '-d 65535' to see if it would log why it was stopping.
    Neither option were any help.
    Noticed in SoftCamManager the stack size was being set at 1024Kb (ulimit -s 1024), so decided to start it manually from the command prompt because both the stack size and open files values were not reduced (8192Kb and 16384).
    Again, no change.

    What I did discover was that the oscam process stopped after 300 minutes +/- a few.

    The other discover was that the oscam process only stopped on the mipsel box - no issues on the arm box!


    TESTING
    To test consistently I would start a recording for 8hrs or so and check it after 300+ minutes to see if oscam process was still running.

    IMAGES TESTED (in order)
    Openvix 5.4.009, .010, .012 then back down to .007 as some posts said it still worked
    Oscam stopped in all of the above after approx 300 minutes.

    OpenATV 6.4 20210522
    Worked perfectly with no stopping - tested over long weekend and was able to make a 12hr recording

    Openvix 5.3.039
    Worked perfectly with no stopping - tested over a week and was able to make an 18hr recording

    openvix 5.4.003
    Worked perfectly with no stopping - tested over a week and was able to make an 6hour recordings

    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!

    Unfortunately I have no answers or suggestions, can just document what I found testing.

    For anyone who understands the build process, or understands what changed were made during this period - does anything jump out?
    Maybe a change in the compile or link parameters, or maybe a new method of doing things was introduced into the code!

    WW
    CT ET9000, Xtrend ET4000
    T90 Wavefrontier 5W-1W-5E-13E-19E-28E, Old Lidl dish 28E


  7. The Following 3 Users Say Thank You to white_westie For This Useful Post:

    abu baniaz (30-06-21),widar (09-06-21)

  8. #171
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Thanks for all the testing.
    I have looked at all the diferences between 004 & 005 and I can see nothing that directly impacts on softcams or connected services.
    However, additional functionality was added which could have have reduced memory availability.
    Also the fact that the same softcam runs fine when run from the kernel, but not when initiated by E2 (my change runs at Enigma startup and just starts the softcam like the kernel start), implies that the issues are being caused (in my view) by Enigma swapping. It also explains why non Mips boxes run fine using the same softcam version with their larger memory sizes..
    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. The Following User Says Thank You to twol For This Useful Post:

    widar (09-06-21)

  10. #172

    Title
    Forum Supporter
    Donated Member
    Join Date
    Apr 2012
    Location
    Eire
    Posts
    158
    Thanks
    43
    Thanked 29 Times in 24 Posts
    A few things I forgot to mention:-
    - The softcam frozen check was disabled in all tests
    - I created and activated a 64MB swap file in all tests (as far as I can remember, it was never used)

    Also when looking at htop output (tree display), for the 10 oscam processes they all looked close enough for the VIRT, RSS & SHR memory usage, also nothing unusual with total memory in use!

    @twol - just to be clear, in MY setup, the oscam process will stop after 300 minutes regardless of how it is started on versions 5.4.005 and later.
    The 300 minutes has me puzzled because it's quite consistent - it must be reaching some sort of limit!

    Anyway, I have a workaround, so it's not too annoying.

    Thanks for your input, and keep up the good work.

    WW
    CT ET9000, Xtrend ET4000
    T90 Wavefrontier 5W-1W-5E-13E-19E-28E, Old Lidl dish 28E


  11. The Following User Says Thank You to white_westie For This Useful Post:

    widar (09-06-21)

  12. #173
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Wish there was a clear answer.... it would help if I had an Oscam setup that involved some serious involvement with a card - but unfortunately my 27.5W config is very simple
    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

  13. The Following User Says Thank You to twol For This Useful Post:

    widar (09-06-21)

  14. #174

    Title
    Senior Member
    Join Date
    Jul 2013
    Posts
    180
    Thanks
    24
    Thanked 59 Times in 48 Posts
    Twol - I have tried to incorporate the latest SoftcamManager.pyo (from the GIT, 5 days ago) into my 5.4.12 image and it doesn't seem to give the slow ecm channels the boost that was needed -- sorry. No change with my oscam ecm times.

  15. #175
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by johnhoe View Post
    Twol - I have tried to incorporate the latest SoftcamManager.pyo (from the GIT, 5 days ago) into my 5.4.12 image and it doesn't seem to give the slow ecm channels the boost that was needed -- sorry. No change with my oscam ecm times.
    .. you need the changes in post #166 - I added a mechanism to scriptrunner to run scripts(start & stop) on enigma boot up. - I wamted to see if this fixed the issue. So this test shows whether this is a E2 swap issue or not. Your scripts are run by the. Linux kernel. If you have time I would appreciate you trying the code in the post.
    I have now added modified code to my Git as I was experiencing long delays on Oscam initialisation on a boot/reboot
    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

  16. The Following 2 Users Say Thank You to twol For This Useful Post:

    johnhoe (12-06-21),widar (12-06-21)

  17. #176

    Title
    Senior Member
    Join Date
    Jul 2013
    Posts
    180
    Thanks
    24
    Thanked 59 Times in 48 Posts
    .. you need the changes in post #166 - I added a mechanism to scriptrunner to run scripts(start & stop) on enigma boot up. - I wamted to see if this fixed the issue. So this test shows whether this is a E2 swap issue or not. Your scripts are run by the. Linux kernel. If you have time I would appreciate you trying the code in the post.
    I have now added modified code to my Git as I was experiencing long delays on Oscam initialisation on a boot/reboot
    Okay done... but isn't this using a script similar to mine to just manually start up Oscam from E2 at startup? If I incorporate your softcam startup script into my startup script (which seems to just add pid management) is that the same thing as what you were doing with this new script?
    Is that going to help us find a solution to SoftcamManager.pyo or are you looking to replace SoftcamManager.pyo with less memory hungry coding?

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

    widar (12-06-21)

  19. #177
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Yes, the scripts are similar (the pids allow you to stop/start in scriptrunner which I needed for testing) - I am trying to check that the issue lies with swapping of the E2 paging set.
    If this change bypassed the softcam issues, it means that there is an alternative for less techie users, especially if I supplied the scripts as part of the softcam build.
    Really trying to tie down the issue and see if there are alternatives.
    I have a fix for my boot/reboot delay issue, just looking at the broader issue here.
    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

  20. The Following User Says Thank You to twol For This Useful Post:

    widar (12-06-21)

  21. #178

    Title
    Forum Supporter
    Donated Member
    Join Date
    Aug 2010
    Location
    Auckland, New Zealand
    Posts
    787
    Thanks
    86
    Thanked 151 Times in 124 Posts
    So is this issue being left to die?

  22. The Following User Says Thank You to Tkr001 For This Useful Post:

    widar (30-06-21)

  23. #179
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by Tkr001 View Post
    So is this issue being left to die?
    I have tried everything in the book here - compiled diffferent OScams, gone through the softcam with a fine tooth comb(and provided changes), provided an alternative way of starting - none of it apparently helps for Mips boxes.
    Basically the Oscam module works, the softcam does what it should do and the alternative method starts Oscam under the E2 namespace so is impacted by memory swapping - so providing a swap doesn't help.

    The only apparent solution is to run the Oscam as a script - which works.

    There comes a time when you have to recognise that there will be limitations on older boxes.

    If you can advise something different, please do so
    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

  24. #180

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2015
    Posts
    338
    Thanks
    64
    Thanked 65 Times in 56 Posts
    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).

Page 12 of 15 FirstFirst ... 21011121314 ... 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.