PDA

View Full Version : [VU+ Solo2] Mgcamd requires manual restart after standby



mubbashir_90
22-04-13, 15:14
Hi,

I am using Vix image 3.0.649 on Solo2 and mgcamd 1.35a. Previously, I had Vu +Solo with ViX image which also had this problem.

Problem is that after 4 hours or around that much time, when I switch from channels that use mgcamd to other channels and switch back to mgcamd channels then I have to restart the mgcamd. For most of the other times it works like a charm. Also, if I leave the box on standby overnight and turn it back on in the morning then most definitely I have to restart the mgcamd so it works. I have been doing some research and this is a common problem with a few other images too and most of the solutions have been from some script. Please someone can help me? I have almost lost hope to find a solution to this problem but I would really be thankful if someone can look into this. From what I have gathered from my research, I am not the only one with this problem and two other members (namely) gravedigger and stales have also reported this problem.

My settings for mg_cfg
M: { 01 }
C: { 01 }
A: { 01 }
U: { 01 } 0x12c0
T: { 00 }
G: { 01 }
N: { 07 } 360 3600
K: { 07 }
Q: { 120 }
P: { 00 }
O: { 00 } root password
S: { 00 } 80
L: { 00 } 127.0.0.1 28007 /tmp/mgcamd.log
E: { 15 }
H: { 07 }
R: { 04 }
D: { 00 }
B: { 06 }
F: { 00 }

chaser
22-04-13, 18:17
Long time since I used mgcamd. Had similar issues so switched to oscam. Always run the latest binary and never had a problem. Takes a bit of configuring, but worth it in the long run.

mubbashir_90
22-04-13, 18:29
Long time since I used mgcamd. Had similar issues so switched to oscam. Always run the latest binary and never had a problem. Takes a bit of configuring, but worth it in the long run.

That sounds like the solution, would you be able to direct me to a link where oscam settings are explained, consider me a newbie but I can pick up things quickly. I'd be very grateful.

Many thanks for you response.

chaser
22-04-13, 19:48
need to out now, but will give you some guidance when I get back later this evening.

abu baniaz
22-04-13, 20:23
see this thread, that config should be fine for you for mgcamd.



http://www.world-of-satellite.com/showthread.php?24555-original-vu-duo&p=182712#post182712

chaser
22-04-13, 22:30
Right. I'll assume you know some of the basics. I'll also assume you're using a local card in your SOLO2, since the rules don't let me talk about card sharing. Firstly, download the latest 1.20_TRUNK / mips-tuxbox-oe2.0 binary from oscam.cc. The file you're looking for will look something like this:

oscam-svnXXXX-mips-tuxbox-oe2.0-webif-Distribution.tar.gz

where svnXXXX is the current revision (currently svn8625).

Use WinRAR (or similar) to extract the file, and rename the file oscam-svnXXXX.
Use FileZilla (or similar) to copy the file over to /usr/softcams on your SOLO2.
Change file permissions to 755.

Create the following files, and using FileZilla copy over to /etc/tuxbox/config:

oscam.conf

[global]
logfile = /media/hdd/oscam/log/oscam.log
disableuserfile = 0
nice = -1
maxlogsize = 50
preferlocalcards = 1
usrfile = /media/hdd/oscam/log/oscamuser.log
emmlogdir = /media/hdd/oscam/log/emm/
lb_mode = 1
lb_nbest_readers = 2
lb_reopen_mode = 1
failbantime = 10

[cs357x]
port = 12345

[newcamd]
port = 12346@0963:000000
allowed = 1.0.0.0-255.255.255.255
key = 0102030405060708091011121314

[dvbapi]
enabled = 1
au = 1
decodeforever = 1
user = mubbashir
boxtype = dm7000

[webif]
httpport = 12347
httpuser = mubbashir
httppwd = abc123
httptpl = /media/hdd/oscam_picons
httprefresh = 10
httphideidleclients = 1
httpshowpicons = 1
httpallowed = 127.0.0.1,192.168.0.1-192.168.0.255


If you don't have a hdd, or want to save logs to usb, then you'll need to modify the above paths to suit. You'll need to create these folders on the drive you want to save the logs to.

oscam.server

[reader]
label = local_reader
description = local_reader
protocol = internal
device = /dev/sci1
caid = 0963
detect = cd
mhz = 500
cardmhz = 500
ident = 0963:000000
group = 1
emmcache = 1,3,2
blockemm-unknown = 1
blockemm-g = 1

oscam.user

[account]
user = mubbashir
pwd = abc123
disabled = 0
group = 1
uniq = 0
sleep = 0
au = local_reader
keepalive = 1

Start OSCAM from your remote (Blue Button / Softcam Manager), and enable startup.
From your web browser, enter the IP address of your SOLO2 and specify port 12347 (eg 192.168.0.50:12347).
You should be prompted for username and password. Enter mubbashir for the user name and abc123 for the password.
From the web interface you can create other Readers. newcamd is equivalent to mgcamd. I can't and won't say any more than that.

judge
22-04-13, 22:47
Just to make it a small bit simpler, all you actually need to get it running is some basics in oscam.conf, nothing more to get it started.
Using yours, this is what I'd start out with (only the log & webif) parts.

oscam.conf

[global]
logfile = /media/hdd/oscam/log/oscam.log
disableuserfile = 0
nice = -1
maxlogsize = 50
preferlocalcards = 1
usrfile = /media/hdd/oscam/log/oscamuser.log
emmlogdir = /media/hdd/oscam/log/emm/
lb_mode = 1
lb_nbest_readers = 2
lb_reopen_mode = 1
failbantime = 10

[webif]
httpport = 12347
httpuser = mubbashir
httppwd = abc123
httptpl = /media/hdd/oscam_picons
httprefresh = 10
httphideidleclients = 1
httpshowpicons = 1
httpallowed = 127.0.0.1,192.168.0.1-192.168.0.255


I put an ipk of build 8625 on the download server (http://www.world-of-satellite.com/enigma2/openvix/index.php?dir=ViX-Softcams/) today.

So, by installing the ipk and using the above in /etc/tuxbox/config/oscam.conf you can start oscam in the ViX cam manager.
Then go to webif using the details set above & set up your local card & many other options.

WebIf does look a bit confusing at first but once you find your way around, it's all quite obvious.
Every option is documented & most can be ignored...

mubbashir_90
22-04-13, 22:57
That is great guys, thanks a million to you guys. I actually got it working before reading this but I did exactly what you guys are instructing.

Judge, I spent at least an hour try to look for an ipk of built 8625 but in the end had to give up and use the zip file and created the conf and other files myself.

I have my fingers crossed that oscam wouldn't stop and need a manual restart (there hasn't been any need yet). I am feeling quite content with myself today as I had been looking to fix this problem for about a year now.

Cheers guys

chaser
22-04-13, 23:09
Glad you got it running. If you've followed my config exactly, then you should also find that your card entitlements will update automatically. As Judge mentioned, there are many options available. With time and experience you should become more familiar with the capabilities of this great softcam. I've had this softcam running on several different boxes, including a Duo, Ultimo, Solo2 and more recently on a Raspberry PI. It's never missed a beat on any of them.

judge
22-04-13, 23:15
I've been using 8625 since it was released & never needed a restart...
Just see 8626 is out tonight, will check the change log & leave it running over night.
If it works fine, I'll put an IPK up tomorrow.

chaser
22-04-13, 23:19
I've been using 8625 since it was released & never needed a restart...
Just see 8626 is out tonight, will check the change log & leave it running over night.
If it works fine, I'll put an IPK up tomorrow.

LOL. Now, that could be a never ending job!

judge
22-04-13, 23:23
LOL. Now, that could be a never ending job!

yeah, it would be...
I'll only upload the ones I test or are requested...

DaMacFunkin
31-10-13, 20:07
Sorry to rehash this but i'm following this to try and set oscam up, i have installed 8626, and created oscam.conf in tuxbox/config containing this text:

[global]
logfile = /media/hdd/oscam/log/oscam.log
disableuserfile = 0
nice = -1
maxlogsize = 50
preferlocalcards = 1
usrfile = /media/hdd/oscam/log/oscamuser.log
emmlogdir = /media/hdd/oscam/log/emm/
lb_mode = 1
lb_nbest_readers = 2
lb_reopen_mode = 1
failbantime = 10

[webif]
httpport = 12347
httpuser = damacfunkin
httppwd = *****
httptpl = /media/hdd/oscam_picons
httprefresh = 10
httphideidleclients = 1
httpshowpicons = 1
httpallowed = 127.0.0.1,192.168.0.1-192.168.255.255

Now when i try to log into oscam webif with solo2 router address 192.168.1.***:12347 i get HTTP 403 forbidden, •This website requires you to log in... but it doesnt give me the option to log in? My normal webif port is 0080 and i can access that fine. Also via blue button/oscam info i have also tried changing the setting to
Read User data from oscam.conf = yes
?
p.s. ive been into the log and it is reporting attempted unaurthorised access from solo2 ip address and laptop.
pps im in, i had to type 192.168.1.xxx:12347/damacfunkin:***** then it asked me for password.
?

porche944
10-01-14, 09:53
That's because in "httpallowed" you have not included your private IP range which is 192.168.1.xxx. You have only allowed 192.168.0.xxx Hope that helps.

duoduo
27-01-14, 22:42
Is there any chance of a recent ipk being posted up please Judge?

Mr. Mister
27-01-14, 23:13
What exactly do you want an ipk for.. ?

duoduo
27-01-14, 23:15
Oscam ipk would be great

judge
27-01-14, 23:27
Oscam ipk would be great

Just download the -oe2.0-webif-Distribution.tar.gz version you want from here, extract it, copy it to /usr/softcams/ & set permissions as 755.


http://download.oscam.cc/index.php?&direction=0&order=mod&directory=1.20_TRUNK/mips-tuxbox-oe2.0

duoduo
28-01-14, 08:17
Thank you, I just input my details like in this thread then judge?

judge
29-01-14, 00:16
Thank you, I just input my details like in this thread then judge?

Yes, all you should need is oscam.conf to start oscam.
All other details can then be saved via the oscam webif once the cam is started.

DaMacFunkin
29-01-14, 19:59
set permissions as 755.

How do you set permissions, i use flashfxp...

BubbleBalls
29-01-14, 21:34
I don't use that program but imagine the basics should be the same. In FileZilla I navigate to the file - /usr/softcams/right click on cam file. Select File permissions and enter 755 as numerical value. I think a GUI restart is the required when permission are changed. .


Tapatālker

judge
30-01-14, 00:55
How do you set permissions, i use flashfxp...

Not sure with flashfxp, I use fileilla like BubbleBalls & a rightclick of the fiie on the box gives the option to set perissions.
You could also use telnet:

chmod 755 /usr/softcams/oscam

Larry-G
30-01-14, 01:00
In flashfxp, right click on the file in question then go to "attributes (CHMOD)", then set the permissions level there.