Basic Home Automation via xAP BSC enabled devices (updated 9-01-2008) (1 Viewer)

ronsonol

MP Donator
  • Premium Supporter
  • April 2, 2007
    178
    23
    Kingston
    Home Country
    Canada Canada
    Patrick was kind enough to include the source files in the first post, included within the zip for the latest version 0.2j.
    In additional to the display errors thrown when loading the skin I get further errors when trying to load the configuration for the plugin.

    ************** Exception Text **************
    System.TypeInitializationException: The type initializer for 'BHAxAPController.xAPMessageFactories.xAPMessageFactory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at KCS.xAP.Framework.Transport.xAPTransportInfo.GetLocalComputerAddress()
    at KCS.xAP.Framework.Message.xAPHeaderPID.GetPID(PidFormat format)
    at KCS.xAP.Framework.Message.xAPHeartbeat..ctor()
    at BHAxAPController.xAPMessageFactories.xAPMessageFactory..cctor()
    --- End of inner exception stack trace ---
    at BHAxAPController.xAPMessageFactories.BSCxAPMessageFactory.SendQuery(String xAPTargetUID, String xAPTargetFullAddress)
    at BHAxAPController.xAP.xAPManager.Start()
    at BHAxAPController.xAPController.Start()
    at BHACore.BHADeviceManager.StartPluginConnectors()
    at BHAProcessPlugin.BHAPlugin.Start_NonGUI()
    at BHAProcessPlugin.BHAPlugin.ShowPlugin()
    at MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    That problem can be solved by reinstalling the plugin.
    Seems the MP1.0.1.0 update replaces some files used by the plugin.
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    it works for the setup error, at least for me it did.
    Not for the interface problems.
     

    patrick

    Portal Pro
    April 20, 2005
    608
    45
    Southeast
    Home Country
    United States of America United States of America
    I have problems with the plugin after 1.0.1.0 also. I guess it needs to be recompiled against the latest version of MP.
    I hope Patrick still is supporting this. If he hasn't ill see what I can do about getting a new xAP devices plugin going.
    But that may take some time, I was working on a new cm11 to xAP application first since the one at the xAP sites is frozen in time and it starts to work less and less for me.
    Maybe it is time to speed up things.

    I seem to have less and less time now for anything fun.
    It would probably be a few weeks before I could check it out, still have not loaded any dev tools on my "new" box that is 3 months old....
    Not really sure on my free time for the next few months either, work has had me very busy for a long time....
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    I have problems with the plugin after 1.0.1.0 also. I guess it needs to be recompiled against the latest version of MP.
    I hope Patrick still is supporting this. If he hasn't ill see what I can do about getting a new xAP devices plugin going.
    But that may take some time, I was working on a new cm11 to xAP application first since the one at the xAP sites is frozen in time and it starts to work less and less for me.
    Maybe it is time to speed up things.

    I seem to have less and less time now for anything fun.
    It would probably be a few weeks before I could check it out, still have not loaded any dev tools on my "new" box that is 3 months old....
    Not really sure on my free time for the next few months either, work has had me very busy for a long time....

    Ok, i'll see if I can recompile your source against 1.0.1.0 this weekend. I noticed they changed a couple of methods and generic types. So it shouldnt be to hard.
    I'll keep everyone posted about this.
    But my weekend is filled with the job also, so dont get your hopes up ;)
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    I did a quick attempt to recompile the source with the 1.0.1.0 dll's referenced instead of the 1.0
    But it fails on the line
    _currentFrame = (int)(_timeElapsed / TimeSlice);

    I assume you use the _currentFrame and TimeSlice vars from the base class (GUIListControl) and those are not there any more in this version. Do you still remember what the use was for this?
    Its used to support some scrolling features.
    I will remove it and see what the plugin does without it ;)

    I have a (i think) working version of the g version. The i never worked for me, so I can not do that one.
    Just the binaries at this moment.
    It is a full package of version g but then based on 1.0.1.0
    I did remove some code that seems to handle some scrolling behaviour. I do not see anything different, but I do not have many xAP devices so I may not use the code.
    At least it shows devices again ;)

    Someone please test and inform me if it works then ill post the new source files also.
    And ill give a try at the i version but then blind (no testing).
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    Now with attachment.
     

    Attachments

    • BasicHomeAutomation-BIN-v0.2g - 1.0.1.0.zip
      30.7 KB

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    And here is the i version with the same modifications so it builds again.
    Remember this one is totally untested.
    But I guess if g works for me and nobady has scrolling issues then the i will work also.
     

    Attachments

    • BasicHomeAutomation-BIN-v0.2i - 1.0.1.0.zip
      30.7 KB

    Users who are viewing this thread

    Top Bottom