1 #include <lib/dvb/dvb.h>
2 #include <lib/dvb/sec.h>
3 #include <lib/dvb/rotor_calc.h>
7 #if HAVE_DVB_API_VERSION < 3
8 #define FREQUENCY Frequency
10 #define FREQUENCY frequency
12 #include <lib/base/eerror.h>
17 #define eSecDebug(arg...) eDebug(arg)
19 #define eSecDebug(arg...)
22 DEFINE_REF(eDVBSatelliteEquipmentControl);
24 eDVBSatelliteEquipmentControl *eDVBSatelliteEquipmentControl::instance;
26 int eDVBSatelliteEquipmentControl::m_params[MAX_PARAMS];
28 defaults are set in python lib/python/Components/NimManager.py
29 in InitSecParams function via setParam call
32 void eDVBSatelliteEquipmentControl::setParam(int param, int value)
34 if (param >= 0 && param < MAX_PARAMS)
35 m_params[param]=value;
38 eDVBSatelliteEquipmentControl::eDVBSatelliteEquipmentControl(eSmartPtrList<eDVBRegisteredFrontend> &avail_frontends)
39 :m_lnbidx(-1), m_curSat(m_lnbs[0].m_satellites.end()), m_avail_frontends(avail_frontends), m_rotorMoving(false)
50 setLNBThreshold(11700000);
52 setDiSEqCMode(eDVBSatelliteDiseqcParameters::V1_0);
53 setToneburst(eDVBSatelliteDiseqcParameters::NO);
55 setCommittedCommand(eDVBSatelliteDiseqcParameters::BB);
56 setCommandOrder(0); // committed, toneburst
60 setVoltageMode(eDVBSatelliteSwitchParameters::HV);
61 setToneMode(eDVBSatelliteSwitchParameters::HILO);
67 setLNBThreshold(11700000);
69 setDiSEqCMode(eDVBSatelliteDiseqcParameters::V1_0);
70 setToneburst(eDVBSatelliteDiseqcParameters::NO);
72 setCommittedCommand(eDVBSatelliteDiseqcParameters::AB);
73 setCommandOrder(0); // committed, toneburst
77 setVoltageMode(eDVBSatelliteSwitchParameters::HV);
78 setToneMode(eDVBSatelliteSwitchParameters::HILO);
84 setLNBThreshold(11700000);
86 setDiSEqCMode(eDVBSatelliteDiseqcParameters::V1_2);
87 setToneburst(eDVBSatelliteDiseqcParameters::NO);
89 setCommittedCommand(eDVBSatelliteDiseqcParameters::AA);
90 setCommandOrder(0); // committed, toneburst
93 setLaDirection(eDVBSatelliteRotorParameters::NORTH);
94 setLoDirection(eDVBSatelliteRotorParameters::EAST);
97 setUseInputpower(true);
98 setInputpowerDelta(50);
101 setVoltageMode(eDVBSatelliteSwitchParameters::HV);
102 setToneMode(eDVBSatelliteSwitchParameters::HILO);
106 setVoltageMode(eDVBSatelliteSwitchParameters::HV);
107 setToneMode(eDVBSatelliteSwitchParameters::HILO);
111 setVoltageMode(eDVBSatelliteSwitchParameters::HV);
112 setToneMode(eDVBSatelliteSwitchParameters::HILO);
113 setRotorPosNum(1); // stored pos 1
116 static void checkLinkedParams(int direction, int &linked_ptr, int &ret, const eDVBFrontendParametersSatellite &sat, int csw, int ucsw, int toneburst, bool diseqc, bool rotor, int RotorPos)
118 eDVBRegisteredFrontend *linked_fe = (eDVBRegisteredFrontend*) linked_ptr;
119 if (linked_fe->m_inuse)
124 linked_fe->m_frontend->getData(eDVBFrontend::CSW, ocsw);
125 linked_fe->m_frontend->getData(eDVBFrontend::UCSW, oucsw);
126 linked_fe->m_frontend->getData(eDVBFrontend::TONEBURST, oToneburst);
128 eDebug("compare csw %02x == lcsw %02x",
131 eDebug("compare ucsw %02x == lucsw %02x\ncompare toneburst %02x == oToneburst %02x",
132 ucsw, oucsw, toneburst, oToneburst);
134 eDebug("compare pos %d == current pos %d",
135 sat.orbital_position, oRotorPos);
137 if ( (csw != ocsw) ||
138 ( diseqc && (ucsw != oucsw || toneburst != oToneburst) ) ||
139 ( rotor && RotorPos != sat.orbital_position ) )
141 // eDebug("can not tune this transponder with linked tuner in use!!");
145 // eDebug("OK .. can tune this transponder with linked tuner in use :)");
147 linked_fe->m_frontend->getData(direction, linked_ptr);
150 int eDVBSatelliteEquipmentControl::canTune(const eDVBFrontendParametersSatellite &sat, iDVBFrontend *fe, int slot_id )
152 int ret=0, satcount=0;
154 for (int idx=0; idx <= m_lnbidx; ++idx )
157 eDVBSatelliteLNBParameters &lnb_param = m_lnbs[idx];
158 if ( lnb_param.slot_mask & slot_id ) // lnb for correct tuner?
160 eDVBSatelliteDiseqcParameters &di_param = lnb_param.m_diseqc_parameters;
162 satcount += lnb_param.m_satellites.size();
164 std::map<int, eDVBSatelliteSwitchParameters>::iterator sit =
165 lnb_param.m_satellites.find(sat.orbital_position);
166 if ( sit != lnb_param.m_satellites.end())
171 satpos_depends_ptr=-1,
172 csw = di_param.m_committed_cmd,
173 ucsw = di_param.m_uncommitted_cmd,
174 toneburst = di_param.m_toneburst_param,
177 fe->getData(eDVBFrontend::ROTOR_POS, curRotorPos);
178 fe->getData(eDVBFrontend::LINKED_PREV_PTR, linked_prev_ptr);
179 fe->getData(eDVBFrontend::LINKED_NEXT_PTR, linked_next_ptr);
180 fe->getData(eDVBFrontend::SATPOS_DEPENDS_PTR, satpos_depends_ptr);
182 if ( sat.frequency > lnb_param.m_lof_threshold )
184 if (!(sat.polarisation & eDVBFrontendParametersSatellite::Polarisation::Vertical))
189 if (di_param.m_diseqc_mode >= eDVBSatelliteDiseqcParameters::V1_0)
192 if ( di_param.m_committed_cmd < eDVBSatelliteDiseqcParameters::SENDNO )
193 csw = 0xF0 | (csw << 2);
195 if (di_param.m_committed_cmd <= eDVBSatelliteDiseqcParameters::SENDNO)
198 if ( di_param.m_diseqc_mode == eDVBSatelliteDiseqcParameters::V1_2 ) // ROTOR
202 if (rotor && curRotorPos != -1)
203 ret -= abs(curRotorPos-sat.orbital_position);
211 while (ret && linked_prev_ptr != -1) // check for linked tuners..
212 checkLinkedParams(eDVBFrontend::LINKED_PREV_PTR, linked_prev_ptr, ret, sat, csw, ucsw, toneburst, diseqc, rotor, curRotorPos);
214 while (ret && linked_next_ptr != -1) // check for linked tuners..
215 checkLinkedParams(eDVBFrontend::LINKED_NEXT_PTR, linked_next_ptr, ret, sat, csw, ucsw, toneburst, diseqc, rotor, curRotorPos);
218 if (satpos_depends_ptr != -1)
220 eDVBRegisteredFrontend *satpos_depends_to_fe = (eDVBRegisteredFrontend*) satpos_depends_ptr;
221 if ( satpos_depends_to_fe->m_inuse )
223 if (!rotor || curRotorPos != sat.orbital_position)
225 // eDebug("can not tune this transponder ... rotor on other tuner is positioned to %d", oRotorPos);
230 // eDebug("OK .. can tune this transponder satpos is correct :)");
235 int lof = sat.frequency > lnb_param.m_lof_threshold ?
236 lnb_param.m_lof_hi : lnb_param.m_lof_lo;
237 int tuner_freq = abs(sat.frequency - lof);
238 // eDebug("tuner freq %d", tuner_freq);
239 if (tuner_freq < 900000 || tuner_freq > 2200000)
242 // eDebug("Transponder not tuneable with this lnb... %d Khz out of tuner range",
251 if (ret && m_not_linked_slot_mask & slot_id)
252 ret += 5; // increase score for tuners with direct sat connection
256 #define VOLTAGE(x) (lnb_param.m_increased_voltage ? iDVBFrontend::voltage##x##_5 : iDVBFrontend::voltage##x)
258 RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPARAMETERS &parm, const eDVBFrontendParametersSatellite &sat, int slot_id)
260 for (int idx=0; idx <= m_lnbidx; ++idx )
262 eDVBSatelliteLNBParameters &lnb_param = m_lnbs[idx];
263 if (!(lnb_param.slot_mask & slot_id)) // lnb for correct tuner?
265 eDVBSatelliteDiseqcParameters &di_param = lnb_param.m_diseqc_parameters;
266 eDVBSatelliteRotorParameters &rotor_param = lnb_param.m_rotor_parameters;
268 std::map<int, eDVBSatelliteSwitchParameters>::iterator sit =
269 lnb_param.m_satellites.find(sat.orbital_position);
270 if ( sit != lnb_param.m_satellites.end())
272 eDVBSatelliteSwitchParameters &sw_param = sit->second;
273 bool doSetFrontend = true;
274 bool doSetVoltageToneFrontend = m_not_linked_slot_mask & slot_id;
275 bool allowDiseqc1_2 = true;
277 voltage = iDVBFrontend::voltageOff,
278 tone = iDVBFrontend::toneOff,
279 csw = di_param.m_committed_cmd,
280 ucsw = di_param.m_uncommitted_cmd,
281 toneburst = di_param.m_toneburst_param,
287 satposDependPtr = -1;
289 frontend.getData(eDVBFrontend::CSW, lastcsw);
290 frontend.getData(eDVBFrontend::UCSW, lastucsw);
291 frontend.getData(eDVBFrontend::TONEBURST, lastToneburst);
292 frontend.getData(eDVBFrontend::ROTOR_CMD, lastRotorCmd);
293 frontend.getData(eDVBFrontend::ROTOR_POS, curRotorPos);
294 frontend.getData(eDVBFrontend::SATPOS_DEPENDS_PTR, satposDependPtr);
296 if (satposDependPtr != -1 && !doSetVoltageToneFrontend)
298 allowDiseqc1_2 = false;
299 doSetVoltageToneFrontend = true;
302 if ( sat.frequency > lnb_param.m_lof_threshold )
306 parm.FREQUENCY = sat.frequency - lnb_param.m_lof_hi;
308 parm.FREQUENCY = sat.frequency - lnb_param.m_lof_lo;
310 parm.FREQUENCY = abs(parm.FREQUENCY);
312 frontend.setData(eDVBFrontend::FREQ_OFFSET, sat.frequency - parm.FREQUENCY);
314 if (!(sat.polarisation & eDVBFrontendParametersSatellite::Polarisation::Vertical))
317 if ( sw_param.m_voltage_mode == eDVBSatelliteSwitchParameters::_14V
318 || ( sat.polarisation & eDVBFrontendParametersSatellite::Polarisation::Vertical
319 && sw_param.m_voltage_mode == eDVBSatelliteSwitchParameters::HV ) )
320 voltage = VOLTAGE(13);
321 else if ( sw_param.m_voltage_mode == eDVBSatelliteSwitchParameters::_18V
322 || ( !(sat.polarisation & eDVBFrontendParametersSatellite::Polarisation::Vertical)
323 && sw_param.m_voltage_mode == eDVBSatelliteSwitchParameters::HV ) )
324 voltage = VOLTAGE(18);
325 if ( (sw_param.m_22khz_signal == eDVBSatelliteSwitchParameters::ON)
326 || ( sw_param.m_22khz_signal == eDVBSatelliteSwitchParameters::HILO && (band&1) ) )
327 tone = iDVBFrontend::toneOn;
328 else if ( (sw_param.m_22khz_signal == eDVBSatelliteSwitchParameters::OFF)
329 || ( sw_param.m_22khz_signal == eDVBSatelliteSwitchParameters::HILO && !(band&1) ) )
330 tone = iDVBFrontend::toneOff;
332 eSecCommandList sec_sequence;
334 if (di_param.m_diseqc_mode >= eDVBSatelliteDiseqcParameters::V1_0)
336 if ( di_param.m_committed_cmd < eDVBSatelliteDiseqcParameters::SENDNO )
337 csw = 0xF0 | (csw << 2);
339 if (di_param.m_committed_cmd <= eDVBSatelliteDiseqcParameters::SENDNO)
343 (di_param.m_committed_cmd != eDVBSatelliteDiseqcParameters::SENDNO);
344 bool changed_csw = send_csw && csw != lastcsw;
347 (di_param.m_uncommitted_cmd && di_param.m_diseqc_mode > eDVBSatelliteDiseqcParameters::V1_0);
348 bool changed_ucsw = send_ucsw && ucsw != lastucsw;
351 (di_param.m_toneburst_param != eDVBSatelliteDiseqcParameters::NO);
352 bool changed_burst = send_burst && toneburst != lastToneburst;
354 int send_mask = 0; /*
357 4 send toneburst first
358 8 send toneburst at end */
359 if (changed_burst) // toneburst first and toneburst changed
361 if (di_param.m_command_order&1)
375 if ((di_param.m_command_order&4) && send_csw)
377 if (di_param.m_command_order==4 && send_burst)
382 if ( di_param.m_use_fast
383 && di_param.m_committed_cmd < eDVBSatelliteDiseqcParameters::SENDNO
385 && ((csw / 4) == (lastcsw / 4)) )
386 eDebug("dont send committed cmd (fast diseqc)");
390 if (!(di_param.m_command_order&4) && send_ucsw)
392 if (!(di_param.m_command_order&1) && send_burst)
398 eDebugNoNewLine("sendmask: ");
399 for (int i=3; i >= 0; --i)
400 if ( send_mask & (1<<i) )
401 eDebugNoNewLine("1");
403 eDebugNoNewLine("0");
407 if (doSetVoltageToneFrontend)
410 bool useGotoXX = false;
411 if ( di_param.m_diseqc_mode == eDVBSatelliteDiseqcParameters::V1_2
412 && !sat.no_rotor_command_on_tune
415 if (sw_param.m_rotorPosNum) // we have stored rotor pos?
416 RotorCmd=sw_param.m_rotorPosNum;
417 else // we must calc gotoxx cmd
419 eDebug("Entry for %d,%d? not in Rotor Table found... i try gotoXX?", sat.orbital_position / 10, sat.orbital_position % 10 );
422 double SatLon = abs(sat.orbital_position)/10.00,
423 SiteLat = rotor_param.m_gotoxx_parameters.m_latitude,
424 SiteLon = rotor_param.m_gotoxx_parameters.m_longitude;
426 if ( rotor_param.m_gotoxx_parameters.m_la_direction == eDVBSatelliteRotorParameters::SOUTH )
429 if ( rotor_param.m_gotoxx_parameters.m_lo_direction == eDVBSatelliteRotorParameters::WEST )
430 SiteLon = 360 - SiteLon;
432 eDebug("siteLatitude = %lf, siteLongitude = %lf, %lf degrees", SiteLat, SiteLon, SatLon );
433 double satHourAngle =
434 calcSatHourangle( SatLon, SiteLat, SiteLon );
435 eDebug("PolarmountHourAngle=%lf", satHourAngle );
437 static int gotoXTable[10] =
438 { 0x00, 0x02, 0x03, 0x05, 0x06, 0x08, 0x0A, 0x0B, 0x0D, 0x0E };
440 if (SiteLat >= 0) // Northern Hemisphere
442 int tmp=(int)round( fabs( 180 - satHourAngle ) * 10.0 );
443 RotorCmd = (tmp/10)*0x10 + gotoXTable[ tmp % 10 ];
445 if (satHourAngle < 180) // the east
450 else // Southern Hemisphere
452 if (satHourAngle < 180) // the east
454 int tmp=(int)round( fabs( satHourAngle ) * 10.0 );
455 RotorCmd = (tmp/10)*0x10 + gotoXTable[ tmp % 10 ];
460 int tmp=(int)round( fabs( 360 - satHourAngle ) * 10.0 );
461 RotorCmd = (tmp/10)*0x10 + gotoXTable[ tmp % 10 ];
465 eDebug("RotorCmd = %04x", RotorCmd);
471 int vlt = iDVBFrontend::voltageOff;
472 eSecCommand::pair compare;
474 compare.tone = iDVBFrontend::toneOff;
475 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TONE_GOTO, compare) );
476 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TONE, iDVBFrontend::toneOff) );
477 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_CONT_TONE]) );
479 if ( RotorCmd != -1 && RotorCmd != lastRotorCmd )
481 if (rotor_param.m_inputpower_parameters.m_use)
482 vlt = VOLTAGE(18); // in input power mode set 18V for measure input power
484 vlt = VOLTAGE(13); // in normal mode start turning with 13V
489 // check if voltage is already correct..
490 compare.voltage = vlt;
492 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) );
494 // check if voltage is disabled
495 compare.voltage = iDVBFrontend::voltageOff;
497 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) );
499 // voltage is changed... use DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_SWITCH_CMDS
500 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, vlt) );
501 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_SWITCH_CMDS]) );
502 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, +3) );
504 // voltage was disabled.. use DELAY_AFTER_ENABLE_VOLTAGE_BEFORE_SWITCH_CMDS
505 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, vlt) );
506 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_ENABLE_VOLTAGE_BEFORE_SWITCH_CMDS]) );
508 for (int seq_repeat = 0; seq_repeat < (di_param.m_seq_repeat?2:1); ++seq_repeat)
512 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_TONEBURST, di_param.m_toneburst_param) );
513 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_TONEBURST]) );
523 loops <<= di_param.m_repeats;
525 for ( int i = 0; i < loops;) // fill commands...
527 eDVBDiseqcCommand diseqc;
529 diseqc.data[0] = i ? 0xE1 : 0xE0;
530 diseqc.data[1] = 0x10;
531 if ( (send_mask & 2) && (di_param.m_command_order & 4) )
533 diseqc.data[2] = 0x39;
534 diseqc.data[3] = ucsw;
536 else if ( send_mask & 1 )
538 diseqc.data[2] = 0x38;
539 diseqc.data[3] = csw;
541 else // no committed command confed.. so send uncommitted..
543 diseqc.data[2] = 0x39;
544 diseqc.data[3] = ucsw;
546 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
552 if (diseqc.data[2] == 0x38 && (send_mask & 2))
554 else if (diseqc.data[2] == 0x39 && (send_mask & 1))
556 int tmp = m_params[DELAY_BETWEEN_DISEQC_REPEATS];
559 int delay = di_param.m_repeats ? (tmp - 54) / 2 : tmp; // standard says 100msek between two repeated commands
560 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, delay) );
562 diseqc.data[3]=(cmd==0x38) ? csw : ucsw;
563 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
566 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, delay ) );
568 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_LAST_DISEQC_CMD]) );
570 else // delay 120msek when no command is in repeat gap
571 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, tmp) );
574 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_LAST_DISEQC_CMD]) );
577 if ( send_mask & 8 ) // toneburst at end of sequence
579 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_TONEBURST, di_param.m_toneburst_param) );
580 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_TONEBURST]) );
585 eDebug("RotorCmd %02x, lastRotorCmd %02x", RotorCmd, lastRotorCmd);
586 if ( RotorCmd != -1 && RotorCmd != lastRotorCmd )
588 eSecCommand::pair compare;
592 compare.tone = iDVBFrontend::toneOff;
593 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TONE_GOTO, compare) );
594 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TONE, iDVBFrontend::toneOff) );
595 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_CONT_TONE]) );
597 compare.voltage = iDVBFrontend::voltageOff;
599 // the next is a check if voltage is switched off.. then we first set a voltage :)
600 // else we set voltage after all diseqc stuff..
601 sec_sequence.push_back( eSecCommand(eSecCommand::IF_NOT_VOLTAGE_GOTO, compare) );
603 if (rotor_param.m_inputpower_parameters.m_use)
604 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, VOLTAGE(18)) ); // set 18V for measure input power
606 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, VOLTAGE(13)) ); // in normal mode start turning with 13V
608 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_ENABLE_VOLTAGE_BEFORE_MOTOR_CMD]) ); // wait 750ms when voltage was disabled
609 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, +9) ); // no need to send stop rotor cmd and recheck voltage
612 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_BETWEEN_SWITCH_AND_MOTOR_CMD]) ); // wait 700ms when diseqc changed
614 eDVBDiseqcCommand diseqc;
616 diseqc.data[0] = 0xE0;
617 diseqc.data[1] = 0x31; // positioner
618 diseqc.data[2] = 0x60; // stop
619 sec_sequence.push_back( eSecCommand(eSecCommand::IF_ROTORPOS_VALID_GOTO, +5) );
620 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
621 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 50) );
622 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
623 // wait 150msec after send rotor stop cmd
624 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_MOTOR_STOP_CMD]) );
626 diseqc.data[0] = 0xE0;
627 diseqc.data[1] = 0x31; // positioner
631 diseqc.data[2] = 0x6E; // drive to angular position
632 diseqc.data[3] = ((RotorCmd & 0xFF00) / 0x100);
633 diseqc.data[4] = RotorCmd & 0xFF;
638 diseqc.data[2] = 0x6B; // goto stored sat position
639 diseqc.data[3] = RotorCmd;
640 diseqc.data[4] = 0x00;
643 if ( rotor_param.m_inputpower_parameters.m_use )
644 { // use measure rotor input power to detect rotor state
645 eSecCommand::rotor cmd;
646 eSecCommand::pair compare;
647 compare.voltage = VOLTAGE(18);
649 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) );
650 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, compare.voltage) );
651 // measure idle power values
652 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_MEASURE_IDLE_INPUTPOWER]) ); // wait 150msec after voltage change
653 sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_IDLE_INPUTPOWER, 1) );
656 sec_sequence.push_back( eSecCommand(eSecCommand::IF_MEASURE_IDLE_WAS_NOT_OK_GOTO, compare) );
657 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, VOLTAGE(13)) );
658 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_MEASURE_IDLE_INPUTPOWER]) ); // wait 150msec before measure
659 sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_IDLE_INPUTPOWER, 0) );
661 sec_sequence.push_back( eSecCommand(eSecCommand::IF_MEASURE_IDLE_WAS_NOT_OK_GOTO, compare) );
662 ////////////////////////////
663 sec_sequence.push_back( eSecCommand(eSecCommand::SET_POWER_LIMITING_MODE, eSecCommand::modeStatic) );
664 sec_sequence.push_back( eSecCommand(eSecCommand::SET_ROTOR_DISEQC_RETRYS, m_params[MOTOR_COMMAND_RETRIES]) ); // 2 retries
665 sec_sequence.push_back( eSecCommand(eSecCommand::INVALIDATE_CURRENT_ROTORPARMS) );
666 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
667 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, 40) ); // 2 seconds rotor start timout
669 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 50) ); // 50msec delay
670 sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_RUNNING_INPUTPOWER) );
671 cmd.direction=1; // check for running rotor
672 cmd.deltaA=rotor_param.m_inputpower_parameters.m_delta;
675 sec_sequence.push_back( eSecCommand(eSecCommand::IF_INPUTPOWER_DELTA_GOTO, cmd ) ); // check if rotor has started
676 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TIMEOUT_GOTO, +2 ) ); // timeout .. we assume now the rotor is already at the correct position
677 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -4) ); // goto loop start
678 sec_sequence.push_back( eSecCommand(eSecCommand::IF_NO_MORE_ROTOR_DISEQC_RETRYS_GOTO, +9 ) ); // timeout .. we assume now the rotor is already at the correct position
679 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -8) ); // goto loop start
681 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, VOLTAGE(18)) );
682 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, m_params[MOTOR_RUNNING_TIMEOUT]*20) ); // 2 minutes running timeout
683 // rotor running loop
684 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 50) ); // wait 50msec
685 sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_RUNNING_INPUTPOWER) );
686 cmd.direction=0; // check for stopped rotor
688 sec_sequence.push_back( eSecCommand(eSecCommand::IF_INPUTPOWER_DELTA_GOTO, cmd ) );
689 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TIMEOUT_GOTO, +3 ) ); // timeout ? this should never happen
690 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -4) ); // running loop start
691 /////////////////////
692 sec_sequence.push_back( eSecCommand(eSecCommand::UPDATE_CURRENT_ROTORPARAMS) );
693 sec_sequence.push_back( eSecCommand(eSecCommand::SET_POWER_LIMITING_MODE, eSecCommand::modeDynamic) );
696 { // use normal turning mode
697 doSetVoltageToneFrontend=false;
699 eSecCommand::rotor cmd;
700 eSecCommand::pair compare;
701 compare.voltage = VOLTAGE(13);
703 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) );
704 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, compare.voltage) );
705 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_MOTOR_CMD]) ); // wait 150msec after voltage change
707 sec_sequence.push_back( eSecCommand(eSecCommand::SET_POWER_LIMITING_MODE, eSecCommand::modeStatic) );
708 sec_sequence.push_back( eSecCommand(eSecCommand::INVALIDATE_CURRENT_ROTORPARMS) );
709 sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );
711 compare.voltage = voltage;
713 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) ); // correct final voltage?
714 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 2000) ); // wait 2 second before set high voltage
715 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, voltage) );
718 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TONE_GOTO, compare) );
719 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TONE, tone) );
720 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_CONT_TONE]) );
721 sec_sequence.push_back( eSecCommand(eSecCommand::SET_FRONTEND) );
723 cmd.direction=1; // check for running rotor
727 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, m_params[MOTOR_RUNNING_TIMEOUT]*4) ); // 2 minutes running timeout
728 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 250) ); // 250msec delay
729 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TUNER_LOCKED_GOTO, cmd ) );
730 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TIMEOUT_GOTO, +3 ) );
731 sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -3) ); // goto loop start
732 sec_sequence.push_back( eSecCommand(eSecCommand::UPDATE_CURRENT_ROTORPARAMS) );
733 sec_sequence.push_back( eSecCommand(eSecCommand::SET_POWER_LIMITING_MODE, eSecCommand::modeDynamic) );
735 frontend.setData(eDVBFrontend::NEW_ROTOR_CMD, RotorCmd);
736 frontend.setData(eDVBFrontend::NEW_ROTOR_POS, sat.orbital_position);
743 frontend.setData(eDVBFrontend::CSW, csw);
744 frontend.setData(eDVBFrontend::UCSW, ucsw);
745 frontend.setData(eDVBFrontend::TONEBURST, di_param.m_toneburst_param);
747 if (doSetVoltageToneFrontend)
749 eSecCommand::pair compare;
750 compare.voltage = voltage;
752 sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) ); // voltage already correct ?
753 sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, voltage) );
754 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_FINAL_VOLTAGE_CHANGE]) );
756 sec_sequence.push_back( eSecCommand(eSecCommand::IF_TONE_GOTO, compare) );
757 sec_sequence.push_back( eSecCommand(eSecCommand::SET_TONE, tone) );
758 sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_CONT_TONE]) );
763 sec_sequence.push_back( eSecCommand(eSecCommand::START_TUNE_TIMEOUT) );
764 sec_sequence.push_back( eSecCommand(eSecCommand::SET_FRONTEND) );
766 frontend.setSecSequence(sec_sequence);
772 eDebug("found no useable satellite configuration for orbital position (%d)", sat.orbital_position );
776 RESULT eDVBSatelliteEquipmentControl::clear()
778 eSecDebug("eDVBSatelliteEquipmentControl::clear()");
779 for (int i=0; i <= m_lnbidx; ++i)
781 m_lnbs[i].m_satellites.clear();
782 m_lnbs[i].slot_mask = 0;
786 m_not_linked_slot_mask=0;
788 //reset some tuner configuration
789 for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it)
791 it->m_frontend->setData(eDVBFrontend::SATPOS_DEPENDS_PTR, -1);
792 it->m_frontend->setData(eDVBFrontend::LINKED_PREV_PTR, -1);
793 it->m_frontend->setData(eDVBFrontend::LINKED_NEXT_PTR, -1);
794 it->m_frontend->setData(eDVBFrontend::ROTOR_POS, -1);
795 it->m_frontend->setData(eDVBFrontend::ROTOR_CMD, -1);
801 /* LNB Specific Parameters */
802 RESULT eDVBSatelliteEquipmentControl::addLNB()
804 if ( (m_lnbidx+1) < (int)(sizeof(m_lnbs) / sizeof(eDVBSatelliteLNBParameters)))
805 m_curSat=m_lnbs[++m_lnbidx].m_satellites.end();
808 eDebug("no more LNB free... cnt is %d", m_lnbidx);
811 eSecDebug("eDVBSatelliteEquipmentControl::addLNB(%d)", m_lnbidx-1);
815 RESULT eDVBSatelliteEquipmentControl::setLNBSlotMask(int slotmask)
817 eSecDebug("eDVBSatelliteEquipmentControl::setLNBSlotMask(%d)", slotmask);
818 if ( currentLNBValid() )
819 m_lnbs[m_lnbidx].slot_mask = slotmask;
825 RESULT eDVBSatelliteEquipmentControl::setLNBLOFL(int lofl)
827 eSecDebug("eDVBSatelliteEquipmentControl::setLNBLOFL(%d)", lofl);
828 if ( currentLNBValid() )
829 m_lnbs[m_lnbidx].m_lof_lo = lofl;
835 RESULT eDVBSatelliteEquipmentControl::setLNBLOFH(int lofh)
837 eSecDebug("eDVBSatelliteEquipmentControl::setLNBLOFH(%d)", lofh);
838 if ( currentLNBValid() )
839 m_lnbs[m_lnbidx].m_lof_hi = lofh;
845 RESULT eDVBSatelliteEquipmentControl::setLNBThreshold(int threshold)
847 eSecDebug("eDVBSatelliteEquipmentControl::setLNBThreshold(%d)", threshold);
848 if ( currentLNBValid() )
849 m_lnbs[m_lnbidx].m_lof_threshold = threshold;
855 RESULT eDVBSatelliteEquipmentControl::setLNBIncreasedVoltage(bool onoff)
857 eSecDebug("eDVBSatelliteEquipmentControl::setLNBIncreasedVoltage(%d)", onoff);
858 if ( currentLNBValid() )
859 m_lnbs[m_lnbidx].m_increased_voltage = onoff;
865 /* DiSEqC Specific Parameters */
866 RESULT eDVBSatelliteEquipmentControl::setDiSEqCMode(int diseqcmode)
868 eSecDebug("eDVBSatelliteEquipmentControl::setDiSEqcMode(%d)", diseqcmode);
869 if ( currentLNBValid() )
870 m_lnbs[m_lnbidx].m_diseqc_parameters.m_diseqc_mode = (eDVBSatelliteDiseqcParameters::t_diseqc_mode)diseqcmode;
876 RESULT eDVBSatelliteEquipmentControl::setToneburst(int toneburst)
878 eSecDebug("eDVBSatelliteEquipmentControl::setToneburst(%d)", toneburst);
879 if ( currentLNBValid() )
880 m_lnbs[m_lnbidx].m_diseqc_parameters.m_toneburst_param = (eDVBSatelliteDiseqcParameters::t_toneburst_param)toneburst;
886 RESULT eDVBSatelliteEquipmentControl::setRepeats(int repeats)
888 eSecDebug("eDVBSatelliteEquipmentControl::setRepeats(%d)", repeats);
889 if ( currentLNBValid() )
890 m_lnbs[m_lnbidx].m_diseqc_parameters.m_repeats=repeats;
896 RESULT eDVBSatelliteEquipmentControl::setCommittedCommand(int command)
898 eSecDebug("eDVBSatelliteEquipmentControl::setCommittedCommand(%d)", command);
899 if ( currentLNBValid() )
900 m_lnbs[m_lnbidx].m_diseqc_parameters.m_committed_cmd=command;
906 RESULT eDVBSatelliteEquipmentControl::setUncommittedCommand(int command)
908 eSecDebug("eDVBSatelliteEquipmentControl::setUncommittedCommand(%d)", command);
909 if ( currentLNBValid() )
910 m_lnbs[m_lnbidx].m_diseqc_parameters.m_uncommitted_cmd = command;
916 RESULT eDVBSatelliteEquipmentControl::setCommandOrder(int order)
918 eSecDebug("eDVBSatelliteEquipmentControl::setCommandOrder(%d)", order);
919 if ( currentLNBValid() )
920 m_lnbs[m_lnbidx].m_diseqc_parameters.m_command_order=order;
926 RESULT eDVBSatelliteEquipmentControl::setFastDiSEqC(bool onoff)
928 eSecDebug("eDVBSatelliteEquipmentControl::setFastDiSEqc(%d)", onoff);
929 if ( currentLNBValid() )
930 m_lnbs[m_lnbidx].m_diseqc_parameters.m_use_fast=onoff;
936 RESULT eDVBSatelliteEquipmentControl::setSeqRepeat(bool onoff)
938 eSecDebug("eDVBSatelliteEquipmentControl::setSeqRepeat(%d)", onoff);
939 if ( currentLNBValid() )
940 m_lnbs[m_lnbidx].m_diseqc_parameters.m_seq_repeat = onoff;
946 /* Rotor Specific Parameters */
947 RESULT eDVBSatelliteEquipmentControl::setLongitude(float longitude)
949 eSecDebug("eDVBSatelliteEquipmentControl::setLongitude(%f)", longitude);
950 if ( currentLNBValid() )
951 m_lnbs[m_lnbidx].m_rotor_parameters.m_gotoxx_parameters.m_longitude=longitude;
957 RESULT eDVBSatelliteEquipmentControl::setLatitude(float latitude)
959 eSecDebug("eDVBSatelliteEquipmentControl::setLatitude(%f)", latitude);
960 if ( currentLNBValid() )
961 m_lnbs[m_lnbidx].m_rotor_parameters.m_gotoxx_parameters.m_latitude=latitude;
967 RESULT eDVBSatelliteEquipmentControl::setLoDirection(int direction)
969 eSecDebug("eDVBSatelliteEquipmentControl::setLoDirection(%d)", direction);
970 if ( currentLNBValid() )
971 m_lnbs[m_lnbidx].m_rotor_parameters.m_gotoxx_parameters.m_lo_direction=direction;
977 RESULT eDVBSatelliteEquipmentControl::setLaDirection(int direction)
979 eSecDebug("eDVBSatelliteEquipmentControl::setLaDirection(%d)", direction);
980 if ( currentLNBValid() )
981 m_lnbs[m_lnbidx].m_rotor_parameters.m_gotoxx_parameters.m_la_direction=direction;
987 RESULT eDVBSatelliteEquipmentControl::setUseInputpower(bool onoff)
989 eSecDebug("eDVBSatelliteEquipmentControl::setUseInputpower(%d)", onoff);
990 if ( currentLNBValid() )
991 m_lnbs[m_lnbidx].m_rotor_parameters.m_inputpower_parameters.m_use=onoff;
997 RESULT eDVBSatelliteEquipmentControl::setInputpowerDelta(int delta)
999 eSecDebug("eDVBSatelliteEquipmentControl::setInputpowerDelta(%d)", delta);
1000 if ( currentLNBValid() )
1001 m_lnbs[m_lnbidx].m_rotor_parameters.m_inputpower_parameters.m_delta=delta;
1007 /* Satellite Specific Parameters */
1008 RESULT eDVBSatelliteEquipmentControl::addSatellite(int orbital_position)
1010 eSecDebug("eDVBSatelliteEquipmentControl::addSatellite(%d)", orbital_position);
1011 if ( currentLNBValid() )
1013 std::map<int, eDVBSatelliteSwitchParameters>::iterator it =
1014 m_lnbs[m_lnbidx].m_satellites.find(orbital_position);
1015 if ( it == m_lnbs[m_lnbidx].m_satellites.end() )
1017 std::pair<std::map<int, eDVBSatelliteSwitchParameters>::iterator, bool > ret =
1018 m_lnbs[m_lnbidx].m_satellites.insert(
1019 std::pair<int, eDVBSatelliteSwitchParameters>(orbital_position, eDVBSatelliteSwitchParameters())
1022 m_curSat = ret.first;
1034 RESULT eDVBSatelliteEquipmentControl::setVoltageMode(int mode)
1036 eSecDebug("eDVBSatelliteEquipmentControl::setVoltageMode(%d)", mode);
1037 if ( currentLNBValid() && m_curSat != m_lnbs[m_lnbidx].m_satellites.end() )
1038 m_curSat->second.m_voltage_mode = (eDVBSatelliteSwitchParameters::t_voltage_mode)mode;
1045 RESULT eDVBSatelliteEquipmentControl::setToneMode(int mode)
1047 eSecDebug("eDVBSatelliteEquipmentControl::setToneMode(%d)", mode);
1048 if ( currentLNBValid() )
1050 if ( m_curSat != m_lnbs[m_lnbidx].m_satellites.end() )
1051 m_curSat->second.m_22khz_signal = (eDVBSatelliteSwitchParameters::t_22khz_signal)mode;
1060 RESULT eDVBSatelliteEquipmentControl::setRotorPosNum(int rotor_pos_num)
1062 eSecDebug("eDVBSatelliteEquipmentControl::setRotorPosNum(%d)", rotor_pos_num);
1063 if ( currentLNBValid() )
1065 if ( m_curSat != m_lnbs[m_lnbidx].m_satellites.end() )
1066 m_curSat->second.m_rotorPosNum=rotor_pos_num;
1077 int orb_pos, lofl, lofh;
1078 sat_compare(int o, int lofl, int lofh)
1079 :orb_pos(o), lofl(lofl), lofh(lofh)
1081 sat_compare(const sat_compare &x)
1082 :orb_pos(x.orb_pos), lofl(x.lofl), lofh(x.lofh)
1084 bool operator < (const sat_compare & cmp) const
1086 if (orb_pos == cmp.orb_pos)
1088 if ( abs(lofl-cmp.lofl) < 200000 )
1090 if (abs(lofh-cmp.lofh) < 200000)
1092 return lofh<cmp.lofh;
1094 return lofl<cmp.lofl;
1096 return orb_pos < cmp.orb_pos;
1100 PyObject *eDVBSatelliteEquipmentControl::get_exclusive_satellites(int tu1, int tu2)
1106 eDVBRegisteredFrontend *p1=NULL, *p2=NULL;
1108 for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it, ++cnt)
1112 else if (cnt == tu2)
1118 // check for linked tuners
1123 p1->m_frontend->getData(eDVBFrontend::LINKED_PREV_PTR, tmp);
1125 p1 = (eDVBRegisteredFrontend*)tmp;
1134 p2->m_frontend->getData(eDVBFrontend::LINKED_PREV_PTR, tmp);
1136 p2 = (eDVBRegisteredFrontend*)tmp;
1146 // check for rotor dependency
1147 p1->m_frontend->getData(eDVBFrontend::SATPOS_DEPENDS_PTR, tmp1);
1149 p1 = (eDVBRegisteredFrontend*)tmp1;
1150 p2->m_frontend->getData(eDVBFrontend::SATPOS_DEPENDS_PTR, tmp2);
1152 p2 = (eDVBRegisteredFrontend*)tmp2;
1155 int tu1_mask = 1 << p1->m_frontend->getSlotID(),
1156 tu2_mask = 1 << p2->m_frontend->getSlotID();
1157 std::set<sat_compare> tu1sats, tu2sats;
1158 std::list<sat_compare> tu1difference, tu2difference;
1159 std::insert_iterator<std::list<sat_compare> > insert1(tu1difference, tu1difference.begin()),
1160 insert2(tu2difference, tu2difference.begin());
1161 for (int idx=0; idx <= m_lnbidx; ++idx )
1163 eDVBSatelliteLNBParameters &lnb_param = m_lnbs[idx];
1164 for (std::map<int, eDVBSatelliteSwitchParameters>::iterator sit(lnb_param.m_satellites.begin());
1165 sit != lnb_param.m_satellites.end(); ++sit)
1167 if ( lnb_param.slot_mask & tu1_mask )
1168 tu1sats.insert(sat_compare(sit->first, lnb_param.m_lof_lo, lnb_param.m_lof_hi));
1169 if ( lnb_param.slot_mask & tu2_mask )
1170 tu2sats.insert(sat_compare(sit->first, lnb_param.m_lof_lo, lnb_param.m_lof_hi));
1173 std::set_difference(tu1sats.begin(), tu1sats.end(),
1174 tu2sats.begin(), tu2sats.end(),
1176 std::set_difference(tu2sats.begin(), tu2sats.end(),
1177 tu1sats.begin(), tu1sats.end(),
1179 if (!tu1sats.empty() || !tu2sats.empty())
1182 ret = PyList_New(2+tu1difference.size()+tu2difference.size());
1184 PyList_SET_ITEM(ret, idx++, PyInt_FromLong(tu1difference.size()));
1185 for(std::list<sat_compare>::iterator it(tu1difference.begin()); it != tu1difference.end(); ++it)
1186 PyList_SET_ITEM(ret, idx++, PyInt_FromLong(it->orb_pos));
1188 PyList_SET_ITEM(ret, idx++, PyInt_FromLong(tu2difference.size()));
1189 for(std::list<sat_compare>::iterator it(tu2difference.begin()); it != tu2difference.end(); ++it)
1190 PyList_SET_ITEM(ret, idx++, PyInt_FromLong(it->orb_pos));
1198 ret = PyList_New(2);
1199 PyList_SET_ITEM(ret, 0, PyInt_FromLong(0));
1200 PyList_SET_ITEM(ret, 1, PyInt_FromLong(0));
1205 RESULT eDVBSatelliteEquipmentControl::setTunerLinked(int tu1, int tu2)
1207 eSecDebug("eDVBSatelliteEquipmentControl::setTunerLinked(%d, %d)", tu1, tu2);
1210 eDVBRegisteredFrontend *p1=NULL, *p2=NULL;
1213 for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it, ++cnt)
1217 else if (cnt == tu2)
1222 p1->m_frontend->setData(eDVBFrontend::LINKED_PREV_PTR, (int)p2);
1223 p2->m_frontend->setData(eDVBFrontend::LINKED_NEXT_PTR, (int)p1);
1230 RESULT eDVBSatelliteEquipmentControl::setTunerDepends(int tu1, int tu2)
1232 eSecDebug("eDVBSatelliteEquipmentControl::setTunerDepends(%d, %d)", tu1, tu2);
1236 eDVBRegisteredFrontend *p1=NULL, *p2=NULL;
1239 for (eSmartPtrList<eDVBRegisteredFrontend>::iterator it(m_avail_frontends.begin()); it != m_avail_frontends.end(); ++it, ++cnt)
1243 else if (cnt == tu2)
1248 p1->m_frontend->setData(eDVBFrontend::SATPOS_DEPENDS_PTR, (int)p2);
1249 p2->m_frontend->setData(eDVBFrontend::SATPOS_DEPENDS_PTR, (int)p1);
1255 void eDVBSatelliteEquipmentControl::setSlotNotLinked(int slot_no)
1257 eSecDebug("eDVBSatelliteEquipmentControl::setSlotNotLinked(%d)", slot_no);
1258 m_not_linked_slot_mask |= (1 << slot_no);
1261 bool eDVBSatelliteEquipmentControl::isRotorMoving()
1263 return m_rotorMoving;
1266 void eDVBSatelliteEquipmentControl::setRotorMoving(bool b)