[dvblast-devel] Simple change for better human reading ...
Georgi Chorbadzhiyski
gf at unixsol.org
Sat Mar 3 01:52:07 CET 2012
On 3/2/12 1:54 PM, Kompan Kolia wrote:
> 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%)
Unfortunately this is not right. There is no single way to interpret
what the returned values are. Each driver returns its own values. It
is a known problem but still no solution within Linux DVB API.
--
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
More information about the dvblast-devel
mailing list