| 335 | } |
| 336 | |
| 337 | std::string FrontendData::doAttributeDescribeString(const int streamID) const { |
| 338 | std::string desc; |
| 339 | switch (getDeliverySystem()) { |
| 340 | case input::InputSystem::DVBS: |
| 341 | case input::InputSystem::DVBS2: |
| 342 | // ver=1.0;src=<srcID>;tuner=<feID>,<level>,<lock>,<quality>,<frequency>,<polarisation> |
| 343 | // <system>,<type>,<pilots>,<roll_off>,<symbol_rate>,<fec_inner>;pids=<pid0>,..,<pidn> |
| 344 | StringConverter::addFormattedString(desc, "ver=1.0;src=%d;tuner=%d,%d,%d,%d,%.2lf,%c,%s,%s,%s,%s,%d,%s;pids=%s", |
| 345 | getDiSEqcSource(), |
| 346 | streamID + 1, |
| 347 | getSignalStrength(), |
| 348 | hasLock(), |
| 349 | getSignalToNoiseRatio(), |
| 350 | getFrequency() / 1000.0, |
| 351 | getPolarizationChar(), |
| 352 | StringConverter::delsys_to_string(getDeliverySystem()), |
| 353 | StringConverter::modtype_to_sting(getModulationType()), |
| 354 | StringConverter::pilot_tone_to_string(getPilotTones()), |
| 355 | StringConverter::rolloff_to_sting(getRollOff()), |
| 356 | getSymbolRate() / 1000, |
| 357 | StringConverter::fec_to_string(getFEC()), |
| 358 | _filter.getPidCSV().c_str()); |
| 359 | break; |
| 360 | case input::InputSystem::DVBT: |
| 361 | case input::InputSystem::DVBT2: |
| 362 | // ver=1.1;tuner=<feID>,<level>,<lock>,<quality>,<freq>,<bw>,<msys>,<tmode>,<mtype>,<gi>, |
| 363 | // <fec>,<plp>,<t2id>,<sm>;pids=<pid0>,..,<pidn> |
| 364 | StringConverter::addFormattedString(desc, "ver=1.1;tuner=%d,%d,%d,%d,%.2lf,%.3lf,%s,%s,%s,%s,%s,%d,%d,%d;pids=%s", |
| 365 | streamID + 1, |
| 366 | getSignalStrength(), |
| 367 | hasLock(), |
| 368 | getSignalToNoiseRatio(), |
| 369 | getFrequency() / 1000.0, |
| 370 | getBandwidthHz() / 1000000.0, |
| 371 | StringConverter::delsys_to_string(getDeliverySystem()), |
| 372 | StringConverter::transmode_to_string(getTransmissionMode()), |
| 373 | StringConverter::modtype_to_sting(getModulationType()), |
| 374 | StringConverter::guardinter_to_string(getGuardInverval()), |
| 375 | StringConverter::fec_to_string(getFEC()), |
| 376 | getUniqueIDPlp(), |
| 377 | getUniqueIDT2(), |
| 378 | getSISOMISO(), |
| 379 | _filter.getPidCSV().c_str()); |
| 380 | break; |
| 381 | case input::InputSystem::DVBC: |
| 382 | // ver=1.2;tuner=<feID>,<level>,<lock>,<quality>,<freq>,<bw>,<msys>,<mtype>,<sr>,<c2tft>,<ds>, |
| 383 | // <plp>,<specinv>;pids=<pid0>,..,<pidn> |
| 384 | StringConverter::addFormattedString(desc, "ver=1.2;tuner=%d,%d,%d,%d,%.2lf,%.3lf,%s,%s,%d,%d,%d,%d,%d;pids=%s", |
| 385 | streamID + 1, |
| 386 | getSignalStrength(), |
| 387 | hasLock(), |
| 388 | getSignalToNoiseRatio(), |
| 389 | getFrequency() / 1000.0, |
| 390 | getBandwidthHz() / 1000000.0, |
| 391 | StringConverter::delsys_to_string(getDeliverySystem()), |
| 392 | StringConverter::modtype_to_sting(getModulationType()), |
| 393 | getSymbolRate() / 1000, |
| 394 | getC2TuningFrequencyType(), |