O
ooOO_SORGOS_OOoo
Code:
OSEmu
======
Here is a working sample for a simple (micro) emu.
It includes the basic needed cs357x (camd35 UDP) functionality, and is very simple and compact.
Build:
======
- Put a SoftCam.Key file into the source code directory (for example from skystar.org).
Note: This does not apply for Mac OSX and Android, SoftCam.Key cannot be integrated on these systems at the moment.
- Run `make` to compile OSEmu.
Info: If you want to cross-compile OSEmu search for the "simpleemu" script by gorgone.
Run:
====
- (optional) OSEmu does not require, but will make use of "SoftCam.Key" if available.
"SoftCam.Key" is searched in:
- /var/keys
- The folder specified with the "-c <folder>" option.
- You may use the program with the following options:
-a <user>:<password> (set the cs357x user and password) [REQUIRED]
-p <portnumber> (set the cs357x port) [REQUIRED]
-c <folder> (set the folder where SoftCam.Key is searched)
-b (start OSEmu in background/daemon mode)
-v (log debug information)
-l <logfile> (write logs to this file)
-e (enable emm au)
- Currently only for Viaccess3.
- Needs M0 key.
- Oscam clients must be version r9843 or newer, and the OSEmu reader must have set "via_emm_global = 1".
Examples:
/usr/bin/OSEmu -a user:password -p 11000 -b
/usr/bin/OSEmu -a user:password -p 11000 -b -c /usr/keys -l /var/log/osemu.log -e
OSCam reader config for OSEmu
=============================
[reader]
label = OSEmu
protocol = cs357x
device = 127.0.0.1,11000
user = user
password = password
caid = 0D00,0D02,0D03,0D05,090F,0500,1801,0604,2600,FFFF
ident = 0D00:000000,000004,000010,000014,000020,0000C0,0000C4,0000CC;0D02:000000,00008C,0000A0,0000A4,0000A8;0D03:000000,000004,000008,000024,000028;0D05:000000,000004,000010;090F:000000;0500:000000,030B00,023800,021110,007400,007800;1801:000000;0604:000000;2600:000000;FFFF:000000
group = 1
via_emm_global = 1
i did update latest file here
enigma2
/usr/bin
Code:
CAMNAME="oscam1.20-r9744-OSEmu"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/usr/bin/oscam1.20r9744 -b -r 2 -c /etc/tuxbox/config
sleep 1
/usr/bin/OSEmu -a oscam:osemu -p 12345 -b
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 oscam1.20r9744 >/dev/null
sleep 1
killall -9 OSEmu
sleep 1
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0