Automatically Tune to Strongest Duplicate Channel (1 Viewer)

vapourEyes

Portal Pro
July 31, 2013
142
43
United Kingdom United Kingdom
Country flag
If MP devs think it's secure enough, it could be interesting for some users to have this functionality.
Even in its crude approximation it could be useful agreed - even though not technically correct.

Be careful since some cards give a negative signal value. ;)
Negative Signal :eek:
 

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    12,120
    6,888
    Kyiv
    Ukraine Ukraine
    Country flag
    with the proviso that help may be in short supply as MP2 has focus.
    There are no priorities, there is a development group that works on MP1 and there is a group that works on MP2. :):whistle::coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    12,120
    6,888
    Kyiv
    Ukraine Ukraine
    Country flag
    If this works, it will have a switch on and off, and in the off state it will not affect the operation of the TV part (as it was before these changes), it seems to me that this is the case. I see nothing wrong with these changes. :)
     

    vapourEyes

    Portal Pro
    July 31, 2013
    142
    43
    United Kingdom United Kingdom
    Country flag
    If this works, it will have a switch on and off, and in the off state it will not affect the operation of the TV part (as it was before these changes), it seems to me that this is the case. I see nothing wrong with these changes. :)
    Thats awesome !

    I've yet to surface an option to the UI for this feature. Maybe that should be next.

    It's also half-past time I got GIT Pull-Requests worked out :rolleyes:
     

    vapourEyes

    Portal Pro
    July 31, 2013
    142
    43
    United Kingdom United Kingdom
    Country flag
    Just for reference...

    I run MP 1.2.5, with the new Channel Switch feature + this newer experimental strong channel change feature.

    Its tuned all the channels I think I can get in the area. There are duplicates, but all play - varying as expected due to signal strengths in the area also varying.

    I run MariaDB which gives great performance and is simple to install and use in place of its MySQL cousin.
    I run 4 DVB-T HD cards, from 2 different manufacturers.

    Hosted on an Intel I7 16GB (which needs to be 32 ideally).

    So thats my test environment and daily usage environment. I run a crappy old TV as a monitor for MediaPortal with freeview as backup - but I've never ever tuned it. Not in 9 years ever !!!

    That's the strength of MediaPortal for you.
     
    Last edited:

    vapourEyes

    Portal Pro
    July 31, 2013
    142
    43
    United Kingdom United Kingdom
    Country flag
    This thread could give you some informations.
    I'm curious to see your code. :)
    C#:
                if (currentDetail == null)
                {
                  //add new channel
                  exists = false;
                  dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);
                  dbChannel.SortOrder = 10000;
                  if (channel.LogicalChannelNumber >= 1)
                  {
                    dbChannel.SortOrder = channel.LogicalChannelNumber;
                  }
                  dbChannel.IsTv = channel.IsTv;
                  dbChannel.IsRadio = channel.IsRadio;
                  dbChannel.Persist();
                }
                else
                {
                  exists = true;
                  dbChannel = null;
    
                  if (RemoteControl.Instance.SignalLevel(_cardNumber) >= 30)
                  {
                    // add new strong channel
                    dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);
                  } else
                  {
                    dbChannel = currentDetail.ReferencedChannel();
                  }
                }
    That's it.
    WIth the comparitor:
    C#:
    if (RemoteControl.Instance.SignalLevel(_cardNumber) >= 30)
    Setting a crude, but seemingly real-world here, 30 (units unknown) threshold.

    I'm thinking a real-world Quality threshold should be introduced that matches the Signal Quality measure as they do seem to correlate in the real-world.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    142
    43
    United Kingdom United Kingdom
    Country flag
    Then please, read all pages of the thread above.
    In this case, for a specific card, a -11 value wich is IRL (In The Real Life) 89 will not be considered where, it could be the strongest signal. ;)
    I'd have to include another code path for -ve reporting.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    142
    43
    United Kingdom United Kingdom
    Country flag
    I'd have to include another code path for -ve reporting.
    Done. Pending testing....

    C#:
                  if (RemoteControl.Instance.SignalLevel(_cardNumber) > 0)
                    if (RemoteControl.Instance.SignalLevel(_cardNumber) >= 30)
                    {
                      // add new strong channel
                      dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);
                    }
                    else
                    {
                      dbChannel = currentDetail.ReferencedChannel();
                    }
                  else
                  {
                    if (RemoteControl.Instance.SignalLevel(_cardNumber) <= -30)
                    {
                      // add new strong channel
                      dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);
                    }
                    else
                    {
                      dbChannel = currentDetail.ReferencedChannel();
                    }
                  }
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    vapourEyes Automatically Re-Tune Periodically Improvement Suggestions 1
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    G Switch to new channel at begining of program automatically Feature Requests 0
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    H MP1.21F video database scan, can it be scheduled to automatically run in background General Support 5
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    M TV Server can't tune to some DVB-S multiplexes while other software can General 0
    bribbon [Pending] DVB-C Tuning Parameters: Switzerland.UPC Cablecom [NID 43020] v.7.xml Submit: EPG-Grabbers and tuningdetails 0
    J DVB-S2 card fails to tune? Subchannel count increasing Television (MyTV frontend and TV-Server) 3
    M Tuning channels with quad tuner question General 6
    E [solved] Vodafone Kabel dvb-c Braunschweig Tuning Liste (Stand 31.01.2019) TV / Streaming 0
    A VB-IP SPAIN Movistar plus tunning details (Update 26 dec 2018) Submit: EPG-Grabbers and tuningdetails 1
    M Wrong DVB-T tuning parameters for Sweden, Vannas - Granlundsberget 1.20 Pre Release 1
    U Client cannot tune channels General 1
    Charlie TV [solved] Channels disappeared after transmitter changes (Midhurst) General Support 4
    Top Bottom