Home
Blogs
Forums
Files


Welcome to The Green Button          Sign in | Join | Help

DirecTV Serial PlugIn for MCE supporting newer D11 USB models

Last post 08-29-2008, 7:01 AM by rza49311. 115 replies.
Page 7 of 8 (116 items)   « First ... < Previous 4 5 6 7 8 Next >
Sort Posts: Previous Next
  •  09-30-2007, 6:27 PM 211617 in reply to 211613

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    MovieBuff:

    bxs122: Was any work done to fix the problem of unexpected channel changes while viewing DVDs? I'd really like to get rid of that pesky IR bud!



    No time on my part - the little I looked at indicated the messages from MCE are lumped so I didn't see anything to discern between a channel change and a chapter change.
    For now what I do is just not watch DVD while recording something from the D11.
    I suppose one thing to try would be to determine if a DVD is playing before deciding to change the channel. If the MCE Object model I am using exposes a Play State flag then this should be a relatively easy check.
  •  10-01-2007, 10:12 AM 211769 in reply to 211531

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    basically you just need to comment out these lines (unless of course you are in the mood to figure you why it causes sat box to crash, personally i dont mind the info box so it wasnt a big issue for me):

    // disable display

    // turn off display before changing the channel

    byte[] arrOSDOff = new byte[] { COMMAND_PREFIX, COMMAND_OSD_OFF };

    pSerial.Write(arrOSDOff, 0, 2);

  •  10-01-2007, 11:40 AM 211798 in reply to 211769

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    overon:

    basically you just need to comment out these lines (unless of course you are in the mood to figure you why it causes sat box to crash, personally i dont mind the info box so it wasnt a big issue for me):

    // disable display

    // turn off display before changing the channel

    byte[] arrOSDOff = new byte[] { COMMAND_PREFIX, COMMAND_OSD_OFF };

    pSerial.Write(arrOSDOff, 0, 2);



    Easy enough explanation - I have the D11 specification that is where I learned the values for COMMAND_OSD_OFF and thus how the above was developed. I didn't like the On Screen Display if I was changing channels using my Media Center remote.
    My guess is that the value defined for COMMAND_OSD_OFF means something completley different on the box you are driving. Do you have the specs for the box you are driving??

  •  10-01-2007, 5:35 PM 211880 in reply to 211769

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    Overon, any chance you could make the re-compiled DLL available?

    Thanks

    Ben

  •  11-19-2007, 4:11 PM 222207 in reply to 211880

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    I just looked at the source code. I havent had a chance to try this plugin out yet since the dvd issue is a dealbreaker for me. Can someone try doing a check for MSPROPTAG_DVD in MediaStatusChange procedure as the first line of the procedure If we receive a MSPROPTAG_DVD, we could set bExecuting=true. This way we know we are in a dvd watching state and don't want to change the channel. I suspect we should be doing this for music as well...

    Please post results in this thread, thanks.
  •  11-27-2007, 8:25 AM 223729 in reply to 222207

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    csgeek:
    I just looked at the source code. I havent had a chance to try this plugin out yet since the dvd issue is a dealbreaker for me. Can someone try doing a check for MSPROPTAG_DVD in MediaStatusChange procedure as the first line of the procedure If we receive a MSPROPTAG_DVD, we could set bExecuting=true. This way we know we are in a dvd watching state and don't want to change the channel. I suspect we should be doing this for music as well...

    Please post results in this thread, thanks.


    Some time ago I was working on this bug on another plug-in (I don't have the code right now to look at whose plugin it was). The solution I was trying was to monitor the current mode check that mode when the channel change event was raised. In other words, only change the channel when the user is watching TV or we are starting a recording event.  I may get some time to get back to this. I have gone back to using the IR blaster because I did not have time to finish the fix, but the IR blaster really does suck.
  •  11-30-2007, 3:33 AM 224555 in reply to 223729

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    Gonna take a look at this this weekend if I can source the hardware locally. My understanding is that a seperate instance of this DirectvMediaStatusSession is created for each session type, ie. one for dvd, one for cd, etc. If this is true, then we should be able to watch for non-tv sessions and have the plugin basically do nothing in response to any events generated by that session. Will report my results.
  •  11-30-2007, 8:14 AM 224627 in reply to 224555

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    You can do it without the sat box and cables.... when I work on this I do it on a development pc and I just write out events to the log. This should allow you to go through the motions on the dev PC (with mce installed) and echo out when you would change the channel.
  •  12-23-2007, 10:36 PM 229924 in reply to 224627

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    It appears I have a working solution. Simply ignoring CD and DVD sessions did not work, and at first glance it wasn't apparent why. The problem (for my setup anyway) lies within the CreateSession function. It returns a singleton MediaStatusSession object meaning every session gets a reference to the same object in memory. Returning a new MediaStatusSession for every session type allows you to use a boolean member variable that indicates whether the MediaStatusSession should attempt channel changes. I set this boolean by checking for MSPROPTAG_DVD, MSPROPTAG_CD, and MSPROPTAG_FS_EXTENSIBILITY in MediaStatusChange. The boolean value is independent for each session, since each session now has its own object. At the beginning of MediaStatusChange, I check for this boolean and return immediately if it was set because the session is one of the aforementioned types. Can anyone who was experiencing problems give this a try? I have been using a version with these changes for a few weeks with sucess...

    On a side note, I have the D11-500, and the OSD still appears on channel change. I checked the documentation for USB communications with this model reciever, and there is no mention of an "osd off" function. Did I get a receiver update that broke this, or is this functionality not available on this device? Can anyone confirm "osd off" on their D11-500?
  •  12-24-2007, 4:35 AM 229952 in reply to 229924

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    cjblazek:
    Can anyone who was experiencing problems give this a try? I have been using a version with these changes for a few weeks with sucess...
    Sure! I'd be happy to give your new driver a try.

    Where can I download a copy of your work?

  •  12-24-2007, 1:31 PM 230078 in reply to 229952

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    I dont have anywhere to host the file. If someone wants to host it or have me email it, pm me your email.
  •  12-24-2007, 2:16 PM 230088 in reply to 230078

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    cjblazek:
    I dont have anywhere to host the file. If someone wants to host it or have me email it, pm me your email.


    Nice work and thanx for picking up on this, I just haven't had the time.
    If you want to send the source changes I'll merge it with my tree, do a one-off and repost source and binaries off the original site.
  •  12-25-2007, 6:07 PM 230186 in reply to 230088

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    Ok. Here it is.

    In DirecTvMediaStatusSink.cs.....

    public class DirectTvMediaStatusSink : MediaStatusSink
        {
            //MediaStatusSession session = null;
            public MediaStatusSession CreateSession()
            {
                Logging.LogLine("DirectTvMediaStatusSink.CreateSession()");
                //return session;
                return new DirectTvMediaStatusSession();
            }
            public void Initialize()
            {
                Logging.LogLine("DirectTvMediaStatusSink.Initialize()");

                //session = new DirectTvMediaStatusSession();
            }

    in DirecTvMediaStatusSession.cs......
            private bool bExecuting = false;
            private bool DVDorCD = false;

            public void MediaStatusChange(Array Tags, Array Properties)
            {
                // stop MCE from breaking it when it has multiple handles to the app.
                if (bExecuting || DVDorCD)
                {
                    Logging.LogLine("ignoring status change from this session");
                    return;
                }

                bExecuting = true;

                try
                {
                    // array is alway one long...
                    int loop = Tags.Length;

                    for ( int i = 0; i < loop; i++ )
                    {
                        object tag = Tags.GetValue(i);
                        string name = tag.ToString().Trim();

                        //disable this watcher for dvd and cd sessions
                        if ((name.ToLower() == "MSPROPTAG_DVD".ToLower()) || (name.ToLower() == "MSPROPTAG_CD".ToLower()) || (name.ToLower() == "MSPROPTAG_FS_EXTENSIBILITY".ToLower()))
                        {
                            DVDorCD = true;
                        }

  •  12-26-2007, 11:23 AM 230267 in reply to 230186

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    Is anyone working to make this compatible with two tuners?  I went back to MCE 2005 so that I could use firestb to control my two boxes with serial, because Tim's software wouldn't load for me in vista.  I'd love to go back to VMC if I could have both my tuners controlled by serial.  Thanks
  •  12-27-2007, 6:17 AM 230415 in reply to 230267

    Re: DirecTV Serial PlugIn for MCE supporting newer D11 USB models

    I will try to incorporate, test and post the changes tis weekend.
Page 7 of 8 (116 items)   « First ... < Previous 4 5 6 7 8 Next >
View as RSS news feed in XML
About TGB | Advertise | Link To Us | Donate | Terms Of Use | Privacy Policy
© 2003-2007 The Green Button, Inc. - All Rights Reserved