Sponsored links


Go Back   Sat Industry Forums > Dreambox > DB Images > 2Gether-Images
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2006
Registered User
 
Join Date: Oct 2003
Posts: 1,038
Thanks: 0
Thanked 1 Time in 1 Post
Tom0000 is on a distinguished road
softcam

The softcam is alternate emu/client/server management for stormbreaker.
The build-in emucamd (controld) has some faults:
- all is hidden
- no way to define some actions during managing emu/client/server
- no way to define timeouts
- ...

The new softcam is prepared for work in other way. It is using ScriptService and will
work good as soon as SS will work too. The true is , SS is not bug free demon.
The known bugs in SS:
- sometimes one remote control button press it interpet as double press
- three use of it's command 'reload' is failing enigma
- after some use of SS you can see xxxx.xml menu can not be loaded ... this is bug of not run at all it's 'runscript' command
Ok. Stop write about ScriptService.

How is softcam working ?
It lets to separate manage emu client, card server, spider server and 2 applications defined by user.
If all 5 apps will be defined , they will be called during box boot in order : card server, spider, client, user apps.
Softcam is using :
- /var/etc/softcam/ directory. There you can find:
curr_client,curr_server,curr_spider,curr_user01,cu rr_user02 - all define current applications selected in softcam
log_client,log_server,log_spider,log_user - all define if application should be logged in /hdd/logs (possible only if HDD is mounted)
- /var/etc/softcam/client[server|spider|user]
There you will find scripts in all these directories. The scripts create list of possible to select apps in softcam.
If the script does not have an estension - its name is the same like file in /var/bin and it is generic script.
The softcam will get its name and will start this name in /var/bin and will kill this name in memory.

If this is name with extension .sh (name.sh) it is script to run (has to be chmod 755 name.sh !!!).
The softcam will start name appication calling:
/var/etc/softcam/client[server|spider|user]/name.sh start
and kill this app calling:
/var/etc/softcam/client[server|spider|user]/name.sh stop
(Each script has second calling param for logging)

The sample script name.sh:

#!/bin/sh
# $1- operation signal, $2- logging configuration
case "$1" in
start)
/var/bin/anyhelperapp& # run if you need it
rm -f /tmp/something
sleep 2
/var/bin/name $2 & # your main app
;;
stop)
killall -9 name
sleep 3
killall -9 anyhelperapp
sleep 1
;;
*)
exit 1
;;
esac
exit 0
The script is ready to define all you want to run, kill, test, change in linux system of your box.
The sample scripts are in /softcam/ subdir in zip.

The softcam can work in 2 modes:
- advanced
Selecting new item on emu/client/server/app list will call submenu , new selected emu/client/server/app will have to be restarted menual by select reset menu option.
Advanced is using reload SS command.
- short
If you will call list of emu/client/server/app and select on item , it will be at one run/restarted and all menus will be closed.
Short is not using reload SS command.

Instalation:

Replace (using files from zip):
- /var/etc/init2 ( next run: killall init2 ; /var/etc/init2& )
- /var/tuxbox/config/m_usermenu.xml
Copy:
- /var/bin/menu_softcam.sh ( next run: chmod 755 /var/bin/menu_softcam.sh )

Use blue panel and set common interface as default emu.
Call user menu and in softcam init it.
(Now you can define own scripts with extension sh , generic softcam will let to add from menu)
Call second time softcam menu and use it.

02.04.2006 Tom0000
Attached Files
File Type: zip softcam_beta5.zip (37.5 KB, 5 views)

Last edited by Tom0000 : 04-02-2006 at 06:45 PM.
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 04-02-2006
sateo's Avatar
S.HELL_MOD
 
Join Date: Oct 2003
Posts: 1,298
Thanks: 0
Thanked 26 Times in 15 Posts
sateo is on a distinguished road
Απάντηση: softcam

Thanks Tom0000
Reply With Quote
  #3 (permalink)  
Old 04-07-2006
tao tao is offline
Registered User
 
Join Date: Feb 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
tao is on a distinguished road
Re: softcam

Thanks.

Can telnet and start newcs and mgcamd but not work with controld. Now alternative.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HEX to softcam. charos New Dreamers 1 11-29-2004 10:44 AM
C*nax new softcam Gritt Dreambox Chat 0 06-10-2004 12:54 AM
what SOFTCAM to use for what? petrocelly New Dreamers 4 03-09-2004 03:37 PM
softcam key loopi CAM Software 0 02-22-2004 04:00 PM
softcam solly Dreambox Development 2 01-31-2004 02:40 AM


All times are GMT +10. The time now is 10:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Page generated in 0.18518 seconds with 11 queries