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

cedric.dewijs at telfort.nl cedric.dewijs at telfort.nl
Sun Dec 30 10:15:02 CET 2012


>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 0x0000 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 = 0xFFFF; // 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...0xFFFF.
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

       






More information about the vdr mailing list