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),
|
hasLockM(false),
|
||||||
signalStrengthM(-1),
|
signalStrengthM(-1),
|
||||||
signalQualityM(-1),
|
signalQualityM(-1),
|
||||||
|
frontendIdM(-1),
|
||||||
streamIdM(-1),
|
streamIdM(-1),
|
||||||
pmtPidM(-1),
|
pmtPidM(-1),
|
||||||
addPidsM(),
|
addPidsM(),
|
||||||
@ -234,6 +235,7 @@ bool cSatipTuner::Disconnect(void)
|
|||||||
hasLockM = false;
|
hasLockM = false;
|
||||||
signalStrengthM = -1;
|
signalStrengthM = -1;
|
||||||
signalQualityM = -1;
|
signalQualityM = -1;
|
||||||
|
frontendIdM = -1;
|
||||||
|
|
||||||
if (currentServerM)
|
if (currentServerM)
|
||||||
cSatipDiscover::GetInstance()->UseServer(currentServerM, false);
|
cSatipDiscover::GetInstance()->UseServer(currentServerM, false);
|
||||||
@ -285,6 +287,9 @@ void cSatipTuner::ProcessApplicationData(u_char *bufferP, int lengthP)
|
|||||||
if (c) {
|
if (c) {
|
||||||
int value;
|
int value;
|
||||||
|
|
||||||
|
// feID:
|
||||||
|
frontendIdM = atoi(c + 7);
|
||||||
|
|
||||||
// level:
|
// level:
|
||||||
// Numerical value between 0 and 255
|
// Numerical value between 0 and 255
|
||||||
// An incoming L-band satellite signal of
|
// An incoming L-band satellite signal of
|
||||||
@ -558,6 +563,12 @@ const char *cSatipTuner::TunerStateString(eTunerState stateP)
|
|||||||
return "---";
|
return "---";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cSatipTuner::FrontendId(void)
|
||||||
|
{
|
||||||
|
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||||
|
return frontendIdM;
|
||||||
|
}
|
||||||
|
|
||||||
int cSatipTuner::SignalStrength(void)
|
int cSatipTuner::SignalStrength(void)
|
||||||
{
|
{
|
||||||
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||||
@ -579,7 +590,7 @@ bool cSatipTuner::HasLock(void)
|
|||||||
cString cSatipTuner::GetSignalStatus(void)
|
cString cSatipTuner::GetSignalStatus(void)
|
||||||
{
|
{
|
||||||
debug16("%s [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
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)
|
cString cSatipTuner::GetInformation(void)
|
||||||
|
2
tuner.h
2
tuner.h
@ -115,6 +115,7 @@ private:
|
|||||||
bool hasLockM;
|
bool hasLockM;
|
||||||
int signalStrengthM;
|
int signalStrengthM;
|
||||||
int signalQualityM;
|
int signalQualityM;
|
||||||
|
int frontendIdM;
|
||||||
int streamIdM;
|
int streamIdM;
|
||||||
int pmtPidM;
|
int pmtPidM;
|
||||||
cSatipPid addPidsM;
|
cSatipPid addPidsM;
|
||||||
@ -143,6 +144,7 @@ public:
|
|||||||
bool SetPid(int pidP, int typeP, bool onP);
|
bool SetPid(int pidP, int typeP, bool onP);
|
||||||
bool Open(void);
|
bool Open(void);
|
||||||
bool Close(void);
|
bool Close(void);
|
||||||
|
int FrontendId(void);
|
||||||
int SignalStrength(void);
|
int SignalStrength(void);
|
||||||
int SignalQuality(void);
|
int SignalQuality(void);
|
||||||
bool HasLock(void);
|
bool HasLock(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user