[vdr] Betr: Re: adjust range of snr bar at bottom of vdr screen?

2012-12-30 Thread cedric . dewijs

Please send me a proper patch if you have any success with this.

Klaus

Hi Klaus,

I have not yet tested this, but the below code should work. I assume the
receiver has a snr of 0x to 0x00ff based on the following datapoints:
0x0080 almost never lock, unwatchable
0x0090 almost always lock, lots of disturbances
0x00A0 always lock, almost never disturbances
0x00D0 best signal ever received.

$ lsusb
Bus 001 Device 004: ID 2013:0245 PCTV Systems PCTV 73ESE

uint16_t MaxSnr = 0x; // Let's assume the default is using the entire
range.
// Use the subsystemId to identify individual devices in case they need
// special treatment to map their Snr value into the range 0...0x.
switch (subsystemId) {
case 0x13C21019: MaxSnr = 200; break; // TT-budget S2-3200 
(DVB-S/DVB-S2)
case 0x20130245: MaxSnr = 0x00ff; break; //PCTV Systems PCTV 73ESE
   }
   int a = int(Snr) * 100 / MaxSnr;
   int b = 100 - (Unc * 10 + (Ber / 256) * 5);

Sorry for not sending a proper patch as requested, I have not yet found the
time to test it properly. 

Best regards,
Cedric

   




___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] Betr: Re: adjust range of snr bar at bottom of vdr screen?

2012-12-30 Thread cedric . dewijs

Are you sure about the subsystemId? IIRC somebody claimed that these don't
apply to USB devices (which yours apparently is, since you did an lsusb).
Just wondering...

Klaus
I am not sure. When I have time I'll build vdr with a strategic placed printf
:-)

Regards,
Cedric


   




___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr