[dvblast-devel] Simple change for better human reading ...

Doychin Dokov dokov at silistra.tv
Fri Mar 2 13:00:19 CET 2012


How are we sure that these parameters are calculated this way for all
devices?

Remember, some of them even have options for different report modes in
their kernel modules....

На 02 март 2012, 13:54, Kompan Kolia <kompan at yandex.ru> написа:

> Please, change dvb.c for better human reading of some parameters..
>
> 388                if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH,
> &i_value ) >= 0 )
> 389                    msg_Dbg( NULL, "- Signal strength: %d", i_value );
> 390                if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
> 391                    msg_Dbg( NULL, "- SNR: %d", i_value );
>
> and old output
> SNR(Signal/Noise Ratio): 166
> BER (Bit Error Rate):    0
> Signal Strength:         376
>
>
> Like this:
>
> 388                if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH,
> &i_value ) >= 0 )
> 389                    msg_Dbg( NULL, "- Signal Strength:         %ld
> (%4.1f\%%)\n", (long)fe_signal_strength, 100.0*fe_signal_strength/65536)",
> i_value );
> 390                if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
> 391                    msg_Dbg( NULL, "- SNR(Signal/Noise Ratio): %ld
> (%4.1f\%%) \n", (long)fe_snr,100.0*fe_snr/65536)", i_value );
>
> and new output
> SNR(Signal/Noise Ratio): 166 ( 0.3%)
> BER (Bit Error Rate):    0
> Signal Strength:         376 (0.6%)
> _______________________________________________
> dvblast-devel mailing list
> dvblast-devel at videolan.org
> http://mailman.videolan.org/listinfo/dvblast-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/dvblast-devel/attachments/20120302/b390986d/attachment.html>


More information about the dvblast-devel mailing list