mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Added support for showing the frontend id.
This commit is contained in:
parent
46bfc805e6
commit
c9898bfbfd
13
tuner.c
13
tuner.c
@ -40,6 +40,7 @@ cSatipTuner::cSatipTuner(cSatipDeviceIf &deviceP, unsigned int packetLenP)
|
||||
hasLockM(false),
|
||||
signalStrengthM(-1),
|
||||
signalQualityM(-1),
|
||||
frontendIdM(-1),
|
||||
streamIdM(-1),
|
||||
pmtPidM(-1),
|
||||
addPidsM(),
|
||||
@ -234,6 +235,7 @@ bool cSatipTuner::Disconnect(void)
|
||||
hasLockM = false;
|
||||
signalStrengthM = -1;
|
||||
signalQualityM = -1;
|
||||
frontendIdM = -1;
|
||||
|
||||
if (currentServerM)
|
||||
cSatipDiscover::GetInstance()->UseServer(currentServerM, false);
|
||||
@ -285,6 +287,9 @@ void cSatipTuner::ProcessApplicationData(u_char *bufferP, int lengthP)
|
||||
if (c) {
|
||||
int value;
|
||||
|
||||
// feID:
|
||||
frontendIdM = atoi(c + 7);
|
||||
|
||||
// level:
|
||||
// Numerical value between 0 and 255
|
||||
// An incoming L-band satellite signal of
|
||||
@ -558,6 +563,12 @@ const char *cSatipTuner::TunerStateString(eTunerState stateP)
|
||||
return "---";
|
||||
}
|
||||
|
||||
int cSatipTuner::FrontendId(void)
|
||||
{
|
||||
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||
return frontendIdM;
|
||||
}
|
||||
|
||||
int cSatipTuner::SignalStrength(void)
|
||||
{
|
||||
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||
@ -579,7 +590,7 @@ bool cSatipTuner::HasLock(void)
|
||||
cString cSatipTuner::GetSignalStatus(void)
|
||||
{
|
||||
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||
return cString::sprintf("lock=%d strength=%d quality=%d", HasLock(), SignalStrength(), SignalQuality());
|
||||
return cString::sprintf("lock=%d strength=%d quality=%d frontend=%d", HasLock(), SignalStrength(), SignalQuality(), FrontendId());
|
||||
}
|
||||
|
||||
cString cSatipTuner::GetInformation(void)
|
||||
|
2
tuner.h
2
tuner.h
@ -115,6 +115,7 @@ private:
|
||||
bool hasLockM;
|
||||
int signalStrengthM;
|
||||
int signalQualityM;
|
||||
int frontendIdM;
|
||||
int streamIdM;
|
||||
int pmtPidM;
|
||||
cSatipPid addPidsM;
|
||||
@ -143,6 +144,7 @@ public:
|
||||
bool SetPid(int pidP, int typeP, bool onP);
|
||||
bool Open(void);
|
||||
bool Close(void);
|
||||
int FrontendId(void);
|
||||
int SignalStrength(void);
|
||||
int SignalQuality(void);
|
||||
bool HasLock(void);
|
||||
|
Loading…
Reference in New Issue
Block a user