- defaultSat["orbpos"] = frontendData.get("orbital_position", 0)
- defaultSat["frequency"] = frontendData.get("frequency", 0) / 1000
- defaultSat["polarization"] = frontendData.get("polarization", eDVBFrontendParametersSatellite.Polarisation_Horizontal)
-
- self.scan_sat = ConfigSubsection()
- self.scan_networkScan = ConfigYesNo(default = False)
-
- # blindscan add
- self.blindscan_hi = ConfigSelection(default = "low", choices = [("low", _("low")), ("high", _("high"))])
-
- #ConfigYesNo(default = True)
- self.blindscan_start_frequency = ConfigInteger(default = 950*1000000)
- self.blindscan_stop_frequency = ConfigInteger(default = 2150*1000000)
- self.blindscan_start_symbol = ConfigInteger(default = 2*1000000)
- self.blindscan_stop_symbol = ConfigInteger(default = 45*1000000)
-
- nim_list = []
- # collect all nims which are *not* set to "nothing"
- for n in nimmanager.nim_slots:
- if n.config_mode == "nothing":
- continue
- if n.config_mode == "advanced" and len(nimmanager.getSatListForNim(n.slot)) < 1:
+ if ttype == "DVB-S":
+ defaultSat["system"] = frontendData.get("system", eDVBFrontendParametersSatellite.System_DVB_S)
+ defaultSat["frequency"] = frontendData.get("frequency", 0) / 1000
+ defaultSat["inversion"] = frontendData.get("inversion", eDVBFrontendParametersSatellite.Inversion_Unknown)
+ defaultSat["symbolrate"] = frontendData.get("symbol_rate", 0) / 1000
+ defaultSat["polarization"] = frontendData.get("polarization", eDVBFrontendParametersSatellite.Polarisation_Horizontal)
+ if defaultSat["system"] == eDVBFrontendParametersSatellite.System_DVB_S2:
+ defaultSat["fec_s2"] = frontendData.get("fec_inner", eDVBFrontendParametersSatellite.FEC_Auto)
+ defaultSat["rolloff"] = frontendData.get("rolloff", eDVBFrontendParametersSatellite.RollOff_alpha_0_35)
+ defaultSat["pilot"] = frontendData.get("pilot", eDVBFrontendParametersSatellite.Pilot_Unknown)
+ else:
+ defaultSat["fec"] = frontendData.get("fec_inner", eDVBFrontendParametersSatellite.FEC_Auto)
+ defaultSat["modulation"] = frontendData.get("modulation", eDVBFrontendParametersSatellite.Modulation_QPSK)
+ defaultSat["orbpos"] = frontendData.get("orbital_position", 0)
+
+ self.scan_sat = ConfigSubsection()
+ self.scan_networkScan = ConfigYesNo(default = False)
+
+ # blindscan add
+ self.blindscan_hi = ConfigSelection(default = "low", choices = [("low", _("low")), ("high", _("high"))])
+
+ #ConfigYesNo(default = True)
+ self.blindscan_start_frequency = ConfigInteger(default = 950*1000000)
+ self.blindscan_stop_frequency = ConfigInteger(default = 2150*1000000)
+ self.blindscan_start_symbol = ConfigInteger(default = 2*1000000)
+ self.blindscan_stop_symbol = ConfigInteger(default = 45*1000000)
+
+ nim_list = []
+ # collect all nims which are *not* set to "nothing"
+ for n in nimmanager.nim_slots:
+ if n.config_mode == "nothing":
+ continue
+ if n.config_mode == "advanced" and len(nimmanager.getSatListForNim(n.slot)) < 1:
+ continue
+ if n.config_mode in ("loopthrough", "satposdepends"):
+ root_id = nimmanager.sec.getRoot(n.slot_id, int(n.config.connectedTo.value))
+ if n.type == nimmanager.nim_slots[root_id].type: # check if connected from a DVB-S to DVB-S2 Nim or vice versa