Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Channel Switch every 21Seconds with pre5 ??
Thomas Sailer wrote:
>
> Klaus Schmidinger wrote:
>
> > I'd be more than glad to tell you, but I have no idea...
> > If you have any suggestions what I could test, please let me know.
>
> How much SNR do you have? The ARM seems to crash frequently if
> there are uncorrected bit errors in the transport stream, or if there
> are wrongly formatted tables in the TS.
I've added an ioctl() call to cDvbApi::SetChannel() to quickly dump the SNR
into the log file, but it looks as if the values returned by the FE_READ_SNR
call need a while until they are stable. So I've added a loop that tries
again until the value is stable enough:
int32_t Snr = -1;
for (int i = 0; i < 10; i++) {
int32_t snr = -1;
if (ioctl(fd_frontend, FE_READ_SNR, &snr) < 0) {
LOG_ERROR;
break;
}
dsyslog(LOG_INFO, "%d snr = %.1f", i, double(snr) / 1000000);
if (snr >= 0) {
if (Snr > 0) {
if (abs(Snr - snr) < 500000)
break;
}
Snr = snr;
}
}
With this I get SNR values in the range 11.1 ... 17.1
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
Home |
Main Index |
Thread Index