* [linux-dvb] the function " int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr); "
@ 2008-07-30 13:34 TANGAo Khaled
2008-07-30 13:46 ` Michael Krufky
0 siblings, 1 reply; 2+ messages in thread
From: TANGAo Khaled @ 2008-07-30 13:34 UTC (permalink / raw)
To: linux-dvb
Hello.
I am working to design a software and i am using Frontend APIs. But I
still have a big problem witch, i do not understand. I want to know the
unit (linear or dB) of the value returned by this function:
int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr);
I would like to display an information to the user of my program,about
the quality of the signal his antenna picked up. To do this, i think the
best way is to display a graphic representing a percentage. But the
current value I read, (-258) is unusable like this. So can you please,
give me the unit of the value or give me a link to find what i am seeking?
Thank you
--
Khaled TANGAO
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-dvb] the function " int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr); "
2008-07-30 13:34 [linux-dvb] the function " int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr); " TANGAo Khaled
@ 2008-07-30 13:46 ` Michael Krufky
0 siblings, 0 replies; 2+ messages in thread
From: Michael Krufky @ 2008-07-30 13:46 UTC (permalink / raw)
To: TANGAo Khaled; +Cc: linux-dvb
TANGAo Khaled wrote:
> Hello.
>
> I am working to design a software and i am using Frontend APIs. But I
> still have a big problem witch, i do not understand. I want to know the
> unit (linear or dB) of the value returned by this function:
>
> int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr);
>
> I would like to display an information to the user of my program,about
> the quality of the signal his antenna picked up. To do this, i think the
> best way is to display a graphic representing a percentage. But the
> current value I read, (-258) is unusable like this. So can you please,
> give me the unit of the value or give me a link to find what i am seeking?
>
> Thank you
>
Unfortunately, there is no *standard* unit of measure being used across all drivers.
It would be nice to clean this up and standardize the SNR reporting across every demod driver, but this will require some time & effort. It will also require datasheets for all the demodulators so that we can find out what unit of measure is reported by the silicon, itself, so that it may be standardized across all drivers.
In the demodulator drivers that Steve Toth and I have been working on lately, we report the SNR in dB. Again, not all drivers use the same units, so you cannot rely on this.
Sorry for the bad news.
HTH,
Mike
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-30 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 13:34 [linux-dvb] the function " int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr); " TANGAo Khaled
2008-07-30 13:46 ` Michael Krufky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox