Actually my ddbridge driver from Digital Devices Cine S2 is also reporting with different values. Actually it reports the strenght and quality in percentage where 100% are 2 bytes.
So what I did to get the nice view I change the values in src/input/mpegts/linuxdvb/linuxdvb_frontend.c as follows:
--- /root/tvhe/linuxdvb_frontend.c 2014-05-22 10:33:52.000000000 +0200
+++ linuxdvb_frontend.c 2014-05-22 11:16:35.245762999 +0200
@@ -594,11 +594,11 @@
#endif
{
if (!ioctl(lfe->lfe_fe_fd, FE_READ_SIGNAL_STRENGTH, &u16))
- mmi->mmi_stats.signal = u16;
+ mmi->mmi_stats.signal = u16*100/0xffff;
if (!ioctl(lfe->lfe_fe_fd, FE_READ_BER, &u32))
mmi->mmi_stats.ber = u32;
if (!ioctl(lfe->lfe_fe_fd, FE_READ_SNR, &u16))
- mmi->mmi_stats.snr = u16;
+ mmi->mmi_stats.snr = u16*100/0xffff;
if (!ioctl(lfe->lfe_fe_fd, FE_READ_UNCORRECTED_BLOCKS, &u32))
mmi->mmi_stats.unc = u32;
}
SNR is not in db anymore but in percentage, thus I change the object in the src/webui/static/app/status.js, to avoid this, it would be nice to understand what 100% are in db? is it 16,5? 18? or 20?
--- /root/tvhe/status.js 2014-05-22 10:33:52.000000000 +0200
+++ status.js 2014-05-22 11:11:24.213762280 +0200
@@ -221,6 +221,14 @@
colored : true
});
+ var snr = new Ext.ux.grid.ProgressColumn({
+ header : "Signal to Noise Ratio",
+ dataIndex : 'snr',
+ width : 85,
+ textPst : '%',
+ colored : true
+ });
+
function renderBw(value, item, store) {
var txt = parseInt(value / 1024);
var href = "javascript:tvheadend.stream_bw_monitor('" + store.id + "');";
@@ -264,18 +272,8 @@
width : 50,
header : "Continuity Error",
dataIndex : 'cc'
- },{
- width : 50,
- header : "SNR",
- dataIndex : 'snr',
- renderer: function(value) {
- if(value > 0) {
- return value.toFixed(1) + " dB";
- } else {
- return '<span class="tvh-grid-unset">Unknown</span>';
- }
- }
- }, signal]);
+ }, snr
+ , signal]);
var panel = new Ext.grid.GridPanel({
border: false,
I know this is quirk, but at least is it working for me...
I'm using SMP Debian 3.2.51-1 x86_64