精心细调OSCAM参数,优化改善共享性能
浏览:5439 发布日期:2014-08-14


以下针对于F302+使用的#2978版本。其他机型及版本可以参考。

首先需要调整的是oscam.conf
[global]
netprio = 9 网络优先级别
nice = 9 系统处理优先级别

waitforcards = 0 如果你有自己插卡,请设定为1,意思为先等待本机卡片初始化完成后才进行网络gx等其他操作。
preferlocalcards = 0 如果你有自己的插卡,请设定为1,意思为先查询本机卡片然后才去查 询GX,如果你没有卡请务必设定为0.
readerautoloadbalance = 1 如果你有多个帐号,请设定为1,意思是优先使用返回key最快的服务器。
[webif]
httpport = 8888
httpuser = dk8000
httppwd = mike
httprefresh = 0
httpallowed = 192.168.1.50-192.168.1.250 注意这里一定调整成与自己路由器相匹配的网段
httphideidleclients = 0
httpreadonly = 0

一般常用的路由器相匹配的网段多为192.168.1.x /192.168.0.x / 10.1.0.x /168.168.1.x 总之只有设定为相同的网段,并且自己的电脑的IP在这个网段中才能从web中查看信息。

oscam.server
这个就是帐号文件

[reader]
label = gx 标签 多帐号请使用不同的标签
enable = 1 有效 如果您临时不使用这个帐号可以设置为0
protocol = cccam 帐号的协议,一般都是cccam,无须更改
device = fbi.com,888 帐号地址,端口号码 请不要买那些3322那些动态域名的垃圾服务器帐号,否则怎么优化设置都是徒劳
account = name ,pass 用户名,密码
services = 如果你只想使用这个帐号看某些特定的频道,那么需要编制这里,指定频道sid.
inactivitytimeout = 1
fallback = 1
group = 1
ecmcache = 1
blockemm-unknown = 1 屏蔽授权信息,提高速度,务必设置为1
blockemm-u = 1 屏蔽授权信息,提高速度,务必设置为1
blockemm-s = 1 屏蔽授权信息,提高速度,务必设置为1
blockemm-g = 1 屏蔽授权信息,提高速度,务必设置为1
lb_weight = 100
cccversion = 2.0.11
cccmaxhops = 10
cccdisableautoblock = 1 禁止使用频道自动屏蔽功能。这个一定要设置为 1 .因为一旦由于一些原因不能从一个正常的服务器取得CW,oscam将屏蔽改频道,即使服务器恢复正常也不在自动恢复,引起部分频道无法使用GX.
audisabled = 1 禁止EMM授权信息发送给服务器,设置为 1


下面给出一个样本

oscam.conf
[global]
logfile = /dev/stdout
disablelog = 0
disableuserfile = 0
usrfileflag = 0
clienttimeout = 5000
fallbacktimeout = 2500
clientmaxidle = 120
bindwait = 120
netprio = 0
clientdyndns = 0
resolvedelay = 30
unlockparental = 0
nice = 9
serialreadertimeout = 1500
maxlogsize = 10
waitforcards = 0
preferlocalcards = 0
saveinithistory = 0
readerrestartseconds = 5
readerautoloadbalance = 1
readerautoloadbalance_save = 0

[dvbapi]
enabled = 1
au = 0
boxtype = none
user = user1
pmt_mode = 0

[webif]
httpport = 8888
httpuser = mike
httppwd = pass
httprefresh = 0
httpallowed = 192.168.1.2-192.168.1.254
httphideidleclients = 0
httpreadonly = 0

三帐号的样本

oscam.server


[reader]
label = gx1
enable = 1
protocol = cccam
device = www.fbi.org,1877
account = nameid,passwd
services =
inactivitytimeout = 1
fallback = 1
caid =
ident =
group = 1
ecmcache = 1
blockemm-unknown = 1
blockemm-u = 1
blockemm-s = 1
blockemm-g = 1
lb_weight = 100
cccversion = 2.0.11
cccmaxhops = 10
cccdisableautoblock = 1
audisabled = 1


[reader]
label = gx2
enable = 1
protocol = cccam
device = www.fbi.org,1899
account = nameid,passwd
services =
inactivitytimeout = 1
fallback = 1
caid =
ident =
group = 1
ecmcache = 1
blockemm-unknown = 1
blockemm-u = 1
blockemm-s = 1
blockemm-g = 1
lb_weight = 100
cccversion = 2.0.11
cccmaxhops = 10
cccdisableautoblock = 1
audisabled = 1


[reader]
label = gx3
enable = 1
protocol = cccam
device = www.ibm.org,1877
account = nameid,passwd
services =
inactivitytimeout = 1
fallback = 1
caid =
ident =
group = 1
ecmcache = 1
blockemm-unknown = 1
blockemm-u = 1
blockemm-s = 1
blockemm-g = 1
lb_weight = 100
cccversion = 2.0.11
cccmaxhops = 10
cccdisableautoblock = 1
audisabled = 1

扫码下方或搜索关注公众号“卫星参数网”,独家内幕新闻!

卫星参数网公众号