mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
update scan infos
This commit is contained in:
@@ -422,14 +422,25 @@ neutrino_msg_t CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
|||||||
case NeutrinoMessages::EVT_SCAN_REPORT_FREQUENCYP:
|
case NeutrinoMessages::EVT_SCAN_REPORT_FREQUENCYP:
|
||||||
{
|
{
|
||||||
FrontendParameters *feparams = (FrontendParameters*) data;
|
FrontendParameters *feparams = (FrontendParameters*) data;
|
||||||
const char *f, *s, *m;
|
const char *f, *f2, *s, *m;
|
||||||
|
|
||||||
CFrontend::getDelSys(feparams->delsys, feparams->fec_inner, feparams->modulation, f, s, m);
|
|
||||||
uint32_t freq = feparams->frequency/1000;
|
uint32_t freq = feparams->frequency/1000;
|
||||||
if (CFrontend::isSat(feparams->delsys))
|
if (CFrontend::isSat(feparams->delsys))
|
||||||
|
{
|
||||||
|
CFrontend::getDelSys(feparams->delsys, feparams->fec_inner, feparams->modulation, f, s, m);
|
||||||
snprintf(buffer,sizeof(buffer), "%u %c %d %s %s %s (%d/%d/%s) ", freq, transponder::pol(feparams->polarization), feparams->symbol_rate/1000, f, s, m, feparams->plp_id, feparams->pls_code, transponder::getPLSMode(feparams->pls_mode).c_str());
|
snprintf(buffer,sizeof(buffer), "%u %c %d %s %s %s (%d/%d/%s) ", freq, transponder::pol(feparams->polarization), feparams->symbol_rate/1000, f, s, m, feparams->plp_id, feparams->pls_code, transponder::getPLSMode(feparams->pls_mode).c_str());
|
||||||
|
}
|
||||||
|
else if (CFrontend::isCable(feparams->delsys))
|
||||||
|
{
|
||||||
|
CFrontend::getDelSys(feparams->delsys, feparams->fec_inner, feparams->modulation, f, s, m);
|
||||||
|
snprintf(buffer,sizeof(buffer), "%u %d %s %s %s ", freq, feparams->symbol_rate/1000, f, s, m);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
snprintf(buffer,sizeof(buffer), "%u %d %s %s %d", freq, feparams->symbol_rate/1000, s, m, feparams->plp_id);
|
{
|
||||||
|
CFrontend::getDelSys(feparams->delsys, feparams->code_rate_HP, feparams->modulation, f, s, m);
|
||||||
|
CFrontend::getDelSys(feparams->delsys, feparams->code_rate_LP, feparams->modulation, f2, s, m);
|
||||||
|
snprintf(buffer,sizeof(buffer), "%u %d %s %s %s %d ", freq, CFrontend::getFEBandwidth(feparams->bandwidth)/1000, f, f2, m, feparams->plp_id);
|
||||||
|
}
|
||||||
paintLine(xpos2, ypos_frequency, w - (7*fw), buffer);
|
paintLine(xpos2, ypos_frequency, w - (7*fw), buffer);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@@ -222,7 +222,7 @@ std::string transponder::description()
|
|||||||
} else if (CFrontend::isTerr(feparams.delsys)) {
|
} else if (CFrontend::isTerr(feparams.delsys)) {
|
||||||
CFrontend::getDelSys(feparams.delsys, getFEParams()->code_rate_HP, getFEParams()->modulation, f, s, m);
|
CFrontend::getDelSys(feparams.delsys, getFEParams()->code_rate_HP, getFEParams()->modulation, f, s, m);
|
||||||
CFrontend::getDelSys(feparams.delsys, getFEParams()->code_rate_LP, getFEParams()->modulation, f2, s, m);
|
CFrontend::getDelSys(feparams.delsys, getFEParams()->code_rate_LP, getFEParams()->modulation, f2, s, m);
|
||||||
snprintf(buf, sizeof(buf), "%d %d %s %s %s %d ", getFEParams()->frequency, CFrontend::getFEBandwidth(getFEParams()->bandwidth)/1000, f, f2, m, getFEParams()->plp_id);
|
snprintf(buf, sizeof(buf), "%d %d %s %s %s %d ", getFEParams()->frequency/1000, CFrontend::getFEBandwidth(getFEParams()->bandwidth)/1000, f, f2, m, getFEParams()->plp_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::string(buf);
|
return std::string(buf);
|
||||||
|
Reference in New Issue
Block a user