def doServiceSearch(self): tlist = [] for transponder in self.transponders_unique: tlist.append( setParams(self.transponders_unique[transponder]["frequency"], self.transponders_unique[transponder]["system"], self.transponders_unique[transponder]["bandwidth"])) self.startServiceSearch(tlist, self.feid)
def getFrontend(self): resmanager = eDVBResourceManager.getInstance() if not resmanager: print( "[MakeBouquet][getFrontend] Cannot retrieve Resource Manager instance" ) self.showError(_('Cannot retrieve Resource Manager instance')) return if self.rawchannel: del (self.rawchannel) self.frontend = None self.rawchannel = None self.rawchannel = resmanager.allocateRawChannel(self.selectedNIM) if not self.rawchannel: print("[MakeBouquet][getFrontend] Cannot get the NIM") self.showError(_('Cannot get the NIM')) return print( "[MakeBouquet][getFrontend] Will wait up to %i seconds for tuner lock." % (self.lockTimeout // 10)) self["tuner_text"].setText(chr(ord('A') + self.selectedNIM)) self.frontend = self.rawchannel.getFrontend() if not self.frontend: print("[MakeBouquet][getFrontend] Cannot get frontend") self.showError(_('Cannot get frontend')) return self.demuxer_id = self.rawchannel.reserveDemux() if self.demuxer_id < 0: print("[MakeBouquet][getFrontend] Cannot allocate the demuxer") self.showError(_('Cannot allocate the demuxer')) return self.frontend.tune( setParamsFe( setParams(self.transponder["frequency"], self.transponder["system"], self.transponder["bandwidth"]))) self.lockcounter = 0 self.locktimer = eTimer() self.locktimer.callback.append(self.checkTunerLock) self.locktimer.start(100, 1)
def getFrontend(self): resmanager = eDVBResourceManager.getInstance() if not resmanager: print "[MakeBouquet][getFrontend] Cannot retrieve Resource Manager instance" self.showError(_('Cannot retrieve Resource Manager instance')) return if self.rawchannel: del(self.rawchannel) self.frontend = None self.rawchannel = None self.rawchannel = resmanager.allocateRawChannel(self.selectedNIM) if not self.rawchannel: print "[MakeBouquet][getFrontend] Cannot get the NIM" self.showError(_('Cannot get the NIM')) return print "[MakeBouquet][getFrontend] Will wait up to %i seconds for tuner lock." % (self.lockTimeout/10) self.frontend = self.rawchannel.getFrontend() if not self.frontend: print "[MakeBouquet][getFrontend] Cannot get frontend" self.showError(_('Cannot get frontend')) return self.demuxer_id = self.rawchannel.reserveDemux() if self.demuxer_id < 0: print>>log, "[MakeBouquet][getFrontend] Cannot allocate the demuxer" self.showError(_('Cannot allocate the demuxer')) return self.frontend.tune(setParamsFe(setParams(self.transponder["frequency"], self.transponder["system"], self.transponder["bandwidth"]))) self.lockcounter = 0 self.locktimer = eTimer() self.locktimer.callback.append(self.checkTunerLock) self.locktimer.start(100, 1)
def doServiceSearch(self): tlist = [] for transponder in self.transponders_unique: tlist.append(setParams(self.transponders_unique[transponder]["frequency"], self.transponders_unique[transponder]["system"], self.transponders_unique[transponder]["bandwidth"])) self.startServiceSearch(tlist, self.feid)