X10 and xAP

Xlobby plugin development

Postby Hiller on Tue Oct 26, 2004 6:34 pm

I have been super busy and have had trouble having XLobby show the received messages the way I want so here is what I am going to do...

I'll talk to Steven and see if I can get a little web space. I'll upload the plugin with just the transmit to HomeSeer stuff installed. This should allow you to press a button in XLobby and have it change a device state in HomeSeer. Right now you have the ability to turn a device on or off.

It's not much right now but it's a start. I'm really close to having an image show up in XLobby showing the state of each device but it's not quite there yet.

Give me a few days and I'll get it all out to you guys for testing. Beware it's probably going to be real buggy!!!!

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Hiller on Thu Oct 28, 2004 1:29 am

Okay, grab this and give it a shot. I took out the HomeSeer speak because it had a bug but that will be fixed again soon. Right now you can only turn a device on or off. It's not much but it's a start, hopefully you guys will find it useful.

http://www.xlobby.com/files/hiller/xAPplugin.zip

There is a readme doc that describes how to set it up. Remember to have your xAP HomeSeer plugin installed already. The link for it is in the readme.
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Heiko on Thu Oct 28, 2004 8:05 pm

first of all, thanks for this great step!
I've installed the HS xAP-conduit and the XLobby-Plugin. All seems to be ok, but if I test a "Device On" in the EventManager, i get the followed error message:

Any Comments for me?
Thanks al lot!

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at xlobby2.Setup.SetCommand(Command c)
at xlobby2.Setup.treeView2_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
xlobby2
Assembly Version: 1.0.1760.36717
Win32 Version: 1.0.1760.36717
CodeBase: file:///C:/Programme/xlobby/xlobby2.exe
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
XPluginSDK
Assembly Version: 1.0.1733.21044
Win32 Version: 1.0.1733.21044
CodeBase: file:///C:/Programme/xlobby/XPluginSDK.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.runtime.remoting/1.0.5000.0__b77a5c561934e089/system.runtime.remoting.dll
----------------------------------------
xAPplugin
Assembly Version: 1.0.1761.36438
Win32 Version: 1.0.1761.36438
CodeBase: file:///c:/programme/xlobby/plugins/xapplugin.dll
----------------------------------------
xAPMessage
Assembly Version: 1.2.9.6
Win32 Version: 1.2.9.6
CodeBase: file:///C:/Programme/xlobby/xAPMessage.DLL
----------------------------------------
KCS.Utilities
Assembly Version: 1.1.0.2
Win32 Version: 1.1.0.2
CodeBase: file:///C:/Programme/xlobby/KCS.Utilities.DLL
----------------------------------------
xAPTransport
Assembly Version: 1.2.9.0
Win32 Version: 1.2.9.0
CodeBase: file:///C:/Programme/xlobby/xAPTransport.DLL
----------------------------------------
XWeather
Assembly Version: 1.0.1577.33604
Win32 Version: 1.0.1577.33604
CodeBase: file:///c:/programme/xlobby/plugins/xweather/xweather.dll
----------------------------------------
Interop.Shell32
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Programme/xlobby/Interop.Shell32.DLL
----------------------------------------
CustomMarshalers
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0__b03f5f7f11d50a3a/custommarshalers.dll
----------------------------------------
AxInterop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Programme/xlobby/AxInterop.SHDocVw.DLL
----------------------------------------
Interop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Programme/xlobby/Interop.SHDocVw.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------
RegexAssembly4_0
Assembly Version: 0.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Management
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.management/1.0.5000.0__b03f5f7f11d50a3a/system.management.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
Heiko
 
Posts: 50
Joined: Thu Oct 28, 2004 10:39 am
Location: Germany

Postby Hiller on Thu Oct 28, 2004 8:20 pm

Ut Oh, that's not good!!! When I get home in a couple of hours I will install XLobby and HomeSeer on my girlfriends computer and see if I can create the problem there. I was hoping and thinking that things should go smoothly but I guess I was wrong. I should be on IRC for a bit tonight so hopefully I can get some real time feedback from someone.

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Hiller on Thu Oct 28, 2004 8:25 pm

mi4 wrote: If you want to try the latest test version you can get it here http://www.mi4.biz/downloads/hspi_xap.zip ( you will need mswinsock,msflexgrid and vbrun6 ocx/dlls for it to run).


I forgot to package these into the zip. I'll do that when I get home. If someone wants to take the time to get them before I post a new zip that would be great. At least I would know right off the bat if that is the problem.

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Heiko on Thu Oct 28, 2004 8:55 pm

no problem. Thanks for your 'realtime' response!
It's easy for me to be patient - in Germany it' time to sleep :wink:
Heiko
Heiko
 
Posts: 50
Joined: Thu Oct 28, 2004 10:39 am
Location: Germany

Postby Hiller on Thu Oct 28, 2004 8:59 pm

Found something else out when I was playing. I tried the "test" in the eventmanager and it bombed on me too! I guess that's a big bug. It's strange though because I have created events and they work from buttons.

Much investigating to be done...

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Heiko on Thu Oct 28, 2004 9:06 pm

Don't worry, I believe in you :P
Heiko
 
Posts: 50
Joined: Thu Oct 28, 2004 10:39 am
Location: Germany

Postby Hiller on Fri Oct 29, 2004 12:37 pm

I didn't get a chance to look at things last night. I was too tired from being up all week watching the Red Sox win the World Series!!! I have other things to do tonight but should get to it this weekend. I'll make up a test platform to test this thing out. I should have done this anyway but I thought everything was going to be okay. I would be interested to know if everyone has the same problem though...


Edit: I played around to cause that error that was reported. Heiko, did you select either "Device On" or "Device Off" from the command dropdown? If nothing is selected there or if the name is changed to something other than what is in the dropdown XL will crash. I tested this with XoapWeather and the same thing happens. I'll try to put a check in for it but I wanted to make sure that was the problem you had.

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Heiko on Sat Oct 30, 2004 5:22 am

yes I did. I'd selected the right Plugin (xAP) and picked a Command from the list: http://www.kerninger.net/xAP-er.GIF
My xAP configuration seems to be o.k. I get heartbeats from Homeseer and your Plugin (Hiller.XLobby) in my xAP-Hub.
regards, heiko
Heiko
 
Posts: 50
Joined: Thu Oct 28, 2004 10:39 am
Location: Germany

Postby Mr_T on Sat Oct 30, 2004 10:45 pm

Hi!
I just wanted to say, I like this plugin!
Now i looking forward for Status and Dim support.
Maybe support for running events in HS?

Keep up the good work! :D

//Otto
Mr_T
 
Posts: 37
Joined: Sun Jan 18, 2004 7:44 pm
Location: Sweden

Postby Heiko on Sun Oct 31, 2004 11:51 am

Hiller,
my mistake :oops:
I'm sorry, but I haven't much experience with XLobby-Plugins.
You wrote in the readme: Extract xAPplugin.dll to your plugins directory.
And I did it; but into the Plugin-root-folder. As I tried to copy the dll in a new folder named "plugin\xap", all things worked fine !
It was a little bit strange to me that the (wrong installed) xap plugin sends heartbeat messages to my xap hub.
Now I'm happy. The plugin works fine, the response-time of the X-10 device ist realy good!
Sorrry again for any unconvenience.
I'm looking forward to further functions of that great plugin!
Heiko
 
Posts: 50
Joined: Thu Oct 28, 2004 10:39 am
Location: Germany

Postby Hiller on Sun Oct 31, 2004 6:12 pm

You shouldn't have to put it in a separate directory, the root plugin dir should be fine. I think I fixed the bug that caused the error when you use the test button in the event manager. Just download the zip again and use the newer dll.

Is the response time worse than it is if you just use HomeSeer to control the devices? This is my first time using X10 and I know there is a delay anyway but I am interested to know if it is a lot worse that you have experienced before.

Anyway check out http://www.xlobby.com/files/hiller/xAPplugin.zip and let me know if that fixes the bug from before.

Steve
Hiller
 
Posts: 149
Joined: Thu Sep 25, 2003 2:39 am
Location: Fredericksburg, VA

Postby Aaron on Sun Oct 31, 2004 9:17 pm

Steve,
Can I suggest to include an example skin to test the functions? I have never skin'd XL and did not plan to until I had more time (and until your plug-in was done ;) ). BUT, I'd love to help test it so that I might be able help out.
Aaron
 
Posts: 299
Joined: Fri May 07, 2004 3:50 am

Postby Mr_T on Sun Oct 31, 2004 11:32 pm

Hi Hiller!
The responsetime is no longer than from homeseer itself.
And the plugin works great so far.

//Otto
Mr_T
 
Posts: 37
Joined: Sun Jan 18, 2004 7:44 pm
Location: Sweden

PreviousNext