* drxk driver statistics
@ 2013-03-06 17:36 Jean Delvare
2013-03-06 19:53 ` Oliver Schinagl
0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2013-03-06 17:36 UTC (permalink / raw)
To: Linux Media; +Cc: Mauro Carvalho Chehab, Martin Blumenstingl
Hi all,
I have a TerraTec Cinergy T PCIe Dual card, with DRX-3916K and
DRX-3913K frontends. I am thus using the drxk dvb-frontend driver.
While trying to find the best antenna, position and amplification, I
found that the statistics returned by the drxk driver look quite bad:
$ femon -H 3
FE: DRXK DVB-T (DVBT)
status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
This is with TV looking reasonably good, so these figures are not
plausible.
$ femon 10
FE: DRXK DVB-T (DVBT)
status SCVYL | signal 00de | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00f0 | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 0117 | snr 00f6 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00b6 | snr 00eb | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00d1 | snr 00e7 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 0073 | snr 00ea | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00a3 | snr 00ee | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00b5 | snr 00f4 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00ba | snr 00f3 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
status SCVYL | signal 00be | snr 00f0 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
Signal values are changing too much, snr is stable enough but way too
low, ber is apparently unimplemented, and unc is never reset AFAICS (it
started at 1 when the system started and has been only increasing since
then.) On my previous card, unc was an instant measurement, not a
cumulative value, not sure which is correct.
I would like to see these statistics improved. I am willing to help,
however the drxk driver is rather complex (at least to my eyes) and I
do not have a datasheet so I wouldn't know where to start. Is there
anyone who can work on this and/or provide some guidance?
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drxk driver statistics
2013-03-06 17:36 drxk driver statistics Jean Delvare
@ 2013-03-06 19:53 ` Oliver Schinagl
2013-03-06 21:14 ` Mauro Carvalho Chehab
2013-03-07 21:18 ` Andy Walls
0 siblings, 2 replies; 5+ messages in thread
From: Oliver Schinagl @ 2013-03-06 19:53 UTC (permalink / raw)
To: Jean Delvare; +Cc: Linux Media, Mauro Carvalho Chehab, Martin Blumenstingl
On 03/06/13 18:36, Jean Delvare wrote:
> Hi all,
>
> I have a TerraTec Cinergy T PCIe Dual card, with DRX-3916K and
> DRX-3913K frontends. I am thus using the drxk dvb-frontend driver.
> While trying to find the best antenna, position and amplification, I
> found that the statistics returned by the drxk driver look quite bad:
>
> $ femon -H 3
> FE: DRXK DVB-T (DVBT)
> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
>
> This is with TV looking reasonably good, so these figures are not
> plausible.
>
> $ femon 10
> FE: DRXK DVB-T (DVBT)
> status SCVYL | signal 00de | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00f0 | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 0117 | snr 00f6 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00b6 | snr 00eb | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00d1 | snr 00e7 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 0073 | snr 00ea | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00a3 | snr 00ee | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00b5 | snr 00f4 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00ba | snr 00f3 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> status SCVYL | signal 00be | snr 00f0 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
>
> Signal values are changing too much, snr is stable enough but way too
> low, ber is apparently unimplemented, and unc is never reset AFAICS (it
> started at 1 when the system started and has been only increasing since
> then.) On my previous card, unc was an instant measurement, not a
> cumulative value, not sure which is correct.
Yes I found that out aswell, but since image quality has always been
very fine, I haven't looked what this all should be.
>
> I would like to see these statistics improved. I am willing to help,
> however the drxk driver is rather complex (at least to my eyes) and I
> do not have a datasheet so I wouldn't know where to start. Is there
> anyone who can work on this and/or provide some guidance?
>
> Thanks,
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drxk driver statistics
2013-03-06 19:53 ` Oliver Schinagl
@ 2013-03-06 21:14 ` Mauro Carvalho Chehab
2013-03-07 21:18 ` Andy Walls
1 sibling, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2013-03-06 21:14 UTC (permalink / raw)
To: Jean Delvare; +Cc: oliver+list, oliver, Linux Media, Martin Blumenstingl
Em Wed, 06 Mar 2013 20:53:23 +0100
Oliver Schinagl <oliver@schinagl.nl> escreveu:
> On 03/06/13 18:36, Jean Delvare wrote:
> > Hi all,
> >
> > I have a TerraTec Cinergy T PCIe Dual card, with DRX-3916K and
> > DRX-3913K frontends. I am thus using the drxk dvb-frontend driver.
> > While trying to find the best antenna, position and amplification, I
> > found that the statistics returned by the drxk driver look quite bad:
> >
> > $ femon -H 3
> > FE: DRXK DVB-T (DVBT)
> > status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
> > status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
> > status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 | FE_HAS_LOCK
> >
> > This is with TV looking reasonably good, so these figures are not
> > plausible.
> >
> > $ femon 10
> > FE: DRXK DVB-T (DVBT)
> > status SCVYL | signal 00de | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00f0 | snr 00f5 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 0117 | snr 00f6 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00b6 | snr 00eb | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00d1 | snr 00e7 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 0073 | snr 00ea | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00a3 | snr 00ee | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00b5 | snr 00f4 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00ba | snr 00f3 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> > status SCVYL | signal 00be | snr 00f0 | ber 00000000 | unc 000097a6 | FE_HAS_LOCK
> >
> > Signal values are changing too much, snr is stable enough but way too
> > low, ber is apparently unimplemented, and unc is never reset AFAICS (it
> > started at 1 when the system started and has been only increasing since
> > then.) On my previous card, unc was an instant measurement, not a
> > cumulative value, not sure which is correct.
> Yes I found that out aswell, but since image quality has always been
> very fine, I haven't looked what this all should be.
> >
> > I would like to see these statistics improved. I am willing to help,
> > however the drxk driver is rather complex (at least to my eyes) and I
> > do not have a datasheet so I wouldn't know where to start. Is there
> > anyone who can work on this and/or provide some guidance?
Terratec released some time ago the source code for Azureus 6007 that
uses the drx-k demod. I think it is still there at:
http://linux.terratec.de/files/TERRATEC_H7/20110323_TERRATEC_H7_Linux.tar.gz
The stats logic there is a little more complete than the one backported to
the Kernel. I've plans to add support for DVBv5 statistics, but, even
on the above driver, it was not trivial to discover the scale for the
parameters.
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drxk driver statistics
2013-03-06 19:53 ` Oliver Schinagl
2013-03-06 21:14 ` Mauro Carvalho Chehab
@ 2013-03-07 21:18 ` Andy Walls
2013-03-07 22:26 ` Mauro Carvalho Chehab
1 sibling, 1 reply; 5+ messages in thread
From: Andy Walls @ 2013-03-07 21:18 UTC (permalink / raw)
To: oliver+list, Jean Delvare
Cc: Linux Media, Mauro Carvalho Chehab, Martin Blumenstingl
Oliver Schinagl <oliver@schinagl.nl> wrote:
>On 03/06/13 18:36, Jean Delvare wrote:
>> Hi all,
>>
>> I have a TerraTec Cinergy T PCIe Dual card, with DRX-3916K and
>> DRX-3913K frontends. I am thus using the drxk dvb-frontend driver.
>> While trying to find the best antenna, position and amplification, I
>> found that the statistics returned by the drxk driver look quite bad:
>>
>> $ femon -H 3
>> FE: DRXK DVB-T (DVBT)
>> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
>FE_HAS_LOCK
>> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
>FE_HAS_LOCK
>> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
>FE_HAS_LOCK
>>
>> This is with TV looking reasonably good, so these figures are not
>> plausible.
>>
>> $ femon 10
>> FE: DRXK DVB-T (DVBT)
>> status SCVYL | signal 00de | snr 00f5 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00f0 | snr 00f5 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 0117 | snr 00f6 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00b6 | snr 00eb | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00d1 | snr 00e7 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 0073 | snr 00ea | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00a3 | snr 00ee | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00b5 | snr 00f4 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00ba | snr 00f3 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>> status SCVYL | signal 00be | snr 00f0 | ber 00000000 | unc 000097a6 |
>FE_HAS_LOCK
>>
>> Signal values are changing too much, snr is stable enough but way too
>> low, ber is apparently unimplemented, and unc is never reset AFAICS
>(it
>> started at 1 when the system started and has been only increasing
>since
>> then.) On my previous card, unc was an instant measurement, not a
>> cumulative value, not sure which is correct.
>Yes I found that out aswell, but since image quality has always been
>very fine, I haven't looked what this all should be.
>>
>> I would like to see these statistics improved. I am willing to help,
>> however the drxk driver is rather complex (at least to my eyes) and I
>> do not have a datasheet so I wouldn't know where to start. Is there
>> anyone who can work on this and/or provide some guidance?
>>
>> Thanks,
>>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-media"
>in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
Unc should be a cumulative value and not reset after each read. Then you can support a use case of 2 different apps monitoring the statistics.
I can't recall when exactly unc should be reset, but of frequency change sounds reasonable.
Regards,
Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drxk driver statistics
2013-03-07 21:18 ` Andy Walls
@ 2013-03-07 22:26 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2013-03-07 22:26 UTC (permalink / raw)
To: Andy Walls; +Cc: oliver+list, Jean Delvare, Linux Media, Martin Blumenstingl
Em Thu, 07 Mar 2013 16:18:41 -0500
Andy Walls <awalls@md.metrocast.net> escreveu:
> Oliver Schinagl <oliver@schinagl.nl> wrote:
>
> >On 03/06/13 18:36, Jean Delvare wrote:
> >> Hi all,
> >>
> >> I have a TerraTec Cinergy T PCIe Dual card, with DRX-3916K and
> >> DRX-3913K frontends. I am thus using the drxk dvb-frontend driver.
> >> While trying to find the best antenna, position and amplification, I
> >> found that the statistics returned by the drxk driver look quite bad:
> >>
> >> $ femon -H 3
> >> FE: DRXK DVB-T (DVBT)
> >> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 0% | snr 0% | ber 0 | unc 38822 |
> >FE_HAS_LOCK
> >>
> >> This is with TV looking reasonably good, so these figures are not
> >> plausible.
> >>
> >> $ femon 10
> >> FE: DRXK DVB-T (DVBT)
> >> status SCVYL | signal 00de | snr 00f5 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00f0 | snr 00f5 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 0117 | snr 00f6 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00b6 | snr 00eb | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00d1 | snr 00e7 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 0073 | snr 00ea | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00a3 | snr 00ee | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00b5 | snr 00f4 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00ba | snr 00f3 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >> status SCVYL | signal 00be | snr 00f0 | ber 00000000 | unc 000097a6 |
> >FE_HAS_LOCK
> >>
> >> Signal values are changing too much, snr is stable enough but way too
> >> low, ber is apparently unimplemented, and unc is never reset AFAICS
> >(it
> >> started at 1 when the system started and has been only increasing
> >since
> >> then.) On my previous card, unc was an instant measurement, not a
> >> cumulative value, not sure which is correct.
> >Yes I found that out aswell, but since image quality has always been
> >very fine, I haven't looked what this all should be.
> >>
> >> I would like to see these statistics improved. I am willing to help,
> >> however the drxk driver is rather complex (at least to my eyes) and I
> >> do not have a datasheet so I wouldn't know where to start. Is there
> >> anyone who can work on this and/or provide some guidance?
> >>
> >> Thanks,
> >>
> >
> >--
> >To unsubscribe from this list: send the line "unsubscribe linux-media"
> >in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> Unc should be a cumulative value and not reset after each read. Then you can support a use case of 2 different apps monitoring the statistics.
>
> I can't recall when exactly unc should be reset, but of frequency change sounds reasonable.
According with the DVBv3 API spec, never.
The DVBv5 stats API moves the policy to userspace, as it measures both
the number of uncorrected error blocks and the total amount of blocks.
Both counters are now unsigned 64 bits integers.
So, userspace may apply any policy it wants, by keeping stored the
previous counter for a given amount of time (or even using something more
sophisticated, like a convolution filter or a moving average filter).
The libdvbv5 currently applies a very simple policy for it.
Regards,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-07 22:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 17:36 drxk driver statistics Jean Delvare
2013-03-06 19:53 ` Oliver Schinagl
2013-03-06 21:14 ` Mauro Carvalho Chehab
2013-03-07 21:18 ` Andy Walls
2013-03-07 22:26 ` Mauro Carvalho Chehab
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.