From: Michael Krufky <mkrufky@linuxtv.org>
To: TANGAo Khaled <ktangao-neli@orange.fr>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] the function " int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr); "
Date: Wed, 30 Jul 2008 09:46:09 -0400 [thread overview]
Message-ID: <489070A1.6060600@linuxtv.org> (raw)
In-Reply-To: <48906DCF.6020300@orange.fr>
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
prev parent reply other threads:[~2008-07-30 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489070A1.6060600@linuxtv.org \
--to=mkrufky@linuxtv.org \
--cc=ktangao-neli@orange.fr \
--cc=linux-dvb@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox