Jump to content


Photo

Softcam manager not working


  • Please log in to reply
47 replies to this topic

Re: Softcam manager not working #21 Pr2

  • PLi® Contributor
  • 6,046 posts

+256
Excellent

Posted 31 May 2013 - 11:46

Hi,

 

If you want to use my script simply create a file and copy/paste the content above:

 

/etc/init.d/softcam.oscam

It should have attribute 755

 

chmod 755 /etc/init.d/softcam.oscam

 

The "extension" (in this case oscam) that you set after the name softcam is the name that is displayed in the OpenPli WebIf.

 

If you want to have this script the default one.

 

 

cd /etc/init.d/
rm softcam
ln -s softcam.oscam softcam

 

To start it manually:

 

 

/etc/init.d/softcam start

 

to stop

 

 

/etc/init.d/softcam stop

 

And to restart

 

 

/etc/init.d/softcam restart

 

Remark:

 

with my script OScam executable is in /usr/bin/oscam

and the configuration file are in /etc/tuxbox/config/oscam

 

But you can edit the variable to easily change this.

Pr2


Edited by Pr2, 31 May 2013 - 11:48.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Softcam manager not working #22 DRAGO.NET

  • Senior Member
  • 76 posts

-9
Neutral

Posted 31 May 2013 - 19:39

having different emu, it would be nice to have them all in a single folder with the corresponding configuration file, on the model of sifteam-softcam manager. With your plugin is (for me) easy to do.



Re: Softcam manager not working #23 thanatoscy

  • Member
  • 22 posts

0
Neutral

Posted 1 June 2013 - 10:50

yes i agree. Am using mgcamd



Re: Softcam manager not working #24 mrvanity

  • Member
  • 35 posts

0
Neutral

Posted 1 June 2013 - 18:26

Modifying the script that Pr2 posted, everything works like  a charm!

 

My many thanx!



Re: Softcam manager not working #25 Pr2

  • PLi® Contributor
  • 6,046 posts

+256
Excellent

Posted 1 June 2013 - 19:24

Hi,

 

If you are happy with the new script approach please use the green up arrow (vote this post up) on it.

I guess that this can draw the attention of OpenPli dev to choose it has a standard script for all softcams packages in the repository.

 

Moreover I think that I add some nice options (version and values) that if they become standard can be used in the GUI to display this information.

 

# /etc/init.d/softcam version
oscam-1.20-unstable_svn-r8678
# /etc/init.d/softcam values
Command line started:
/usr/bin/oscam.patched -b  -r 2 -c /etc/tuxbox/config/oscam-patched
#

 

version is using the command of the softcam_exe to display its version.

 

values print the parameter line passed to the softcam_exe

 

Pr2


Edited by Pr2, 1 June 2013 - 19:25.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Softcam manager not working #26 mrvanity

  • Member
  • 35 posts

0
Neutral

Posted 1 June 2013 - 23:29

Where is that green arrow?



Re: Softcam manager not working #27 Pr2

  • PLi® Contributor
  • 6,046 posts

+256
Excellent

Posted 2 June 2013 - 11:30

Hi,

 

It is on the bottom right, when you place the mouse cursor on it it says: Vote this post up.

You have it on all post, except the one that you do yourself. There is even a small counter close to it.

 

Pr2


Edited by Pr2, 2 June 2013 - 11:31.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Softcam manager not working #28 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 29 September 2013 - 15:23

I added a Latvian language  softcam_setup

Attached Files


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Softcam manager not working #29 LilleMama

  • Member
  • 2 posts

0
Neutral

Posted 16 January 2014 - 16:49

Where can the Softcam manager be found as ipk file for manual install ??



Re: Softcam manager not working #30 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 16 January 2014 - 19:25

On the feed.
Real musicians never die - they just decompose

Re: Softcam manager not working #31 pecorazza

  • Senior Member
  • 99 posts

0
Neutral

Posted 13 April 2014 - 18:22

Hello all

 

I started using OpenPLI no long ago and at first I didn't noticed the problem you are talking about

Unfortunatelly, after some time i did! Softcam manager simply does not work in my case.

 

The creation of the symlink to the new softcam to start althought do work - so if you reboot the box, after enigma2 comes up, the selected cam is started.

Softcam management works for some time (maybe an hour?) after box reboot, but then starts to not work again. Does it make any sense to you?

 

Finally I gave a try at the proposed universal script but i did have the same behaviour here. I am using latest mgcamd, cccam and o_ymod with new scipts now and all I can say is that after a reboot everything works fine (so I think there can not be errors on the scripts themselves) but after an undefined period of time is totally useless to try and switch cam with the softcam manager. As maybe you have noticed, the GUI shows the cam selected but in reality it hasn't changed.

 

Thanks for reading through this



Re: Softcam manager not working #32 Dimitrij

  • PLi® Core member
  • 9,970 posts

+335
Excellent

Posted 14 April 2014 - 07:39

pecorazza

Use AutoCamSetup.

Switching from CCcam 2.3.0 to o_ymod* no problem.

#!/bin/sh
case "$1" in
start)
	ulimit -s 1024
	exec start-stop-daemon -S -x /usr/bin/CCcam
	
	;;
stop)
         rm -rf /tmp/*.info 2>/dev/null
	exec start-stop-daemon -K -R 2 -x /usr/bin/CCcam
        
	;;
restart|reload)
	$0 stop
	sleep 2
	$0 start
	;;
version)
	echo "2.3.0"
	;;
info)
	echo "CCcam 2.3.0"
	;;
*)
	echo "Usage: $0 start|stop|restart"
	exit 1
	;;
esac
exit 0

Edited by Dima73, 14 April 2014 - 07:39.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Softcam manager not working #33 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 14 April 2014 - 08:48

I can confirm that with some cam's and or softcam configs the start and stop from out off pli's softcam manager does not work (ALWAYS) ok mostly well.

 

I used to have a softcam oscam setting on dm8000 with smartreader V1 and one pcsc (omnikey 3021 reader) Those both always worked better then the internal sci off dm8000.

 

(now I do not have card's anymore on my box self butt on a central pc)

 

In those days and only with the both readers, I had regularly failures upon starting stopping changing restarting softcam trough pli's softcam manager.

Using telnet and then  ~# sh /etc/init.d/softcam restart   (or stop and then start) did always worked fine.

But after I just once stopped the cam (and or restarted) trough the pli's software manager it went wrong.

The cam seemed to work but nothing worked at the same time. even with stopping trough telnet id did not stopped.

I then noticed that in despit the fact that I stopped the cam there where still aktif pids.

 

Those I could kill by using the command

~# killall -9 <name off softcam binary self>

 

Then It was ok and I could restart .

Trough telnet OK Trough softcam manager just same sometimes ok others not.

 

Yes that was pretty weird (increasing the stop times into the start script did not helped).

 

I then proceed checking the python plugin and start experimenting.

 

The whole stuff could be stabilized by : changing some lines into the python plugin of pli self.

 

How it is now :

	def restart(self, what):
		self.what = what
		if "s" in what:
			if "c" in what:
				msg = _("Please wait, restarting softcam and cardserver.")
			else:
				msg  = _("Please wait, restarting softcam.")
		elif "c" in what:
			msg = _("Please wait, restarting cardserver.")
		self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.doStop)
		self.activityTimer.start(100, False)

	def doStop(self):
		self.activityTimer.stop()
		if "c" in self.what:
			self.cardserver.command('stop')
		if "s" in self.what:
			self.softcam.command('stop')
		self.oldref = self.session.nav.getCurrentlyPlayingServiceReference()
		self.session.nav.stopService()
		# Delay a second to give 'em a chance to stop
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.doStart)
		self.activityTimer.start(1000, False)

With two small changes into the python file line 112 from 100 ms to 300 ms and line 125 from 1000 to 2000

All problems where solved

 

	def restart(self, what):
		self.what = what
		if "s" in what:
			if "c" in what:
				msg = _("Please wait, restarting softcam and cardserver.")
			else:
				msg  = _("Please wait, restarting softcam.")
		elif "c" in what:
			msg = _("Please wait, restarting cardserver.")
		self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO)
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.doStop)
		self.activityTimer.start(300, False)

	def doStop(self):
		self.activityTimer.stop()
		if "c" in self.what:
			self.cardserver.command('stop')
		if "s" in self.what:
			self.softcam.command('stop')
		self.oldref = self.session.nav.getCurrentlyPlayingServiceReference()
		self.session.nav.stopService()
		# Delay a second to give 'em a chance to stop
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.doStart)
		self.activityTimer.start(2000, False)

This already I passed long time ago to openpli but it was just ignored.

 

Then my softcam oscam those days started ok with a smartreader v1

When I used two readers if one off them was a pcsc I also just needed to add to the cam's startscript file a sleep off 2 seconds.

When those  changes where done al was ok.

 

startscrit how it is (only the start part)

 

#!/bin/sh
case "$1" in
start)
	ulimit -s 1024
	exec start-stop-daemon -S -x /usr/bin/CCcam
	
	;;

And how it always was ok with two readers and using the (modified) python softcam manager off pli

 

#!/bin/sh
case "$1" in
start)
        sleep 2
	ulimit -s 1024
	exec start-stop-daemon -S -x /usr/bin/CCcam
	
	;;


Re: Softcam manager not working #34 Dimitrij

  • PLi® Core member
  • 9,970 posts

+335
Excellent

Posted 14 April 2014 - 09:07

+1

only

 from 100 ms to 500 ms and  1000 to 2000


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Softcam manager not working #35 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 14 April 2014 - 10:12

I just created a Softcamsetup patch for pli.

 

git patch for git://git.code.sf.net/p/openpli/enigma2-plugins openpli-enigma2-plugins

 

Also set line 112 to 500 ms like Dima73 experimented ass well.

 

This should solve problems with pli's softcams manager.

 

 

Attached Files



Re: Softcam manager not working #36 dOOds

  • Senior Member
  • 59 posts

0
Neutral

Posted 14 April 2014 - 11:23

How do you install this patch?? unknown package on telnet install..This is not an ipk

 

Can you explain please??

 

Many Thanks



Re: Softcam manager not working #37 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 14 April 2014 - 11:30

How do you install this patch?? unknown package on telnet install..This is not an ipk

 

Can you explain please??

 

Many Thanks

That's a patch for the maintainers. Not for the box self or so. (it's a git patch)



Re: Softcam manager not working #38 dOOds

  • Senior Member
  • 59 posts

0
Neutral

Posted 14 April 2014 - 11:35

can a patch not be created for us to install ourselves??

 

Thanks for the quick reply



Re: Softcam manager not working #39 Robinson

  • Senior Member
  • 2,614 posts

+30
Good

Posted 14 April 2014 - 12:12

When maintainers apply this patch it will automatically be included in the online update.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Softcam manager not working #40 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 14 April 2014 - 12:25

can a patch not be created for us to install ourselves??

 

Thanks for the quick reply

If You are impatient I just added a tempo patch for tha Softcame setup.

 

copy the ipk file to you're box hd or usb stick or flash

 

And install using

 

opkg install enigma2-plugin-pli-softcamspatch_r1_all.ipk

 

Then restart You're box

 

And it should be fine

 

ipk file added here

Attached Files




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users