Automatically Tune to Strongest Duplicate Channel (2 Viewers)

vapourEyes

Portal Pro
July 31, 2013
144
43
Home Country
United Kingdom United Kingdom
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
    15,492
    10,369
    Kyiv
    Home Country
    Ukraine Ukraine
    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
    15,492
    10,369
    Kyiv
    Home Country
    Ukraine Ukraine
    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
    144
    43
    Home Country
    United Kingdom United Kingdom
    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
    144
    43
    Home Country
    United Kingdom United Kingdom
    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
    144
    43
    Home Country
    United Kingdom United Kingdom
    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
    144
    43
    Home Country
    United Kingdom United Kingdom
    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
    144
    43
    Home Country
    United Kingdom United Kingdom
    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

    Top Bottom