Announcement

Collapse
No announcement yet.

Velleman K8055 Plugin V1.0.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    Hi Malarcy


    Any progress on the 4 adres version ?

    Lookingfwd to be "updated" hihihi

    Leave a comment:


  • Malarcy
    replied
    Been out of town for a few days - so give me some time to digest - to answer the 1st one HS provides a function to get the next available housecode, so if something is using "[" you get something else - that said - I have tested that bit of code on my systems and that seems to work.

    If mcsxap is working, delete all the velleman related devices, then run up my plugin again, see if it grabs a new code I can imagine that there could be some interesting results if 2 plugins are trying to fiddle with the same devices.

    I have added some debug around the initio call - message boxes should popup - tell me what you see - there may be 4 or 5

    myplugin uses the savesetting function so it's got it's values under

    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\

    It's very wierd if the one of the devices pops up under an A housecode - so deleting the devices and starting again with the velleman setup may be the way forward

    Malarcy
    Attached Files

    Leave a comment:


  • Bestgear
    replied
    Hi Malarcy

    Well... I have now spent about 30hours on this and am at a loss!

    To summarise... and sorry for the long post...

    Pre-Prod server(!)
    OS Windows Server 2003 SP1
    Symantec Antivirus
    MS Windows defender antispyware
    8055 board works great in Velleman diags/demo
    Plugin works on "spare" test Homeseer 2041 installation
    One funny with it - D1 appears as house code A1 while all others are [x

    Production server
    HS 2041
    Windows Server 2003 SP1
    Symantec Antivirus
    MS Windows defender antispyware
    8055 works fine in velleman diags/demo

    5/14/2006 3:10:07 PM - COM Plugin Info - malk8055 initialising...
    5/14/2006 3:10:07 PM - COM Plugin - Calling InitIO
    5/14/2006 3:10:07 PM - Info - Initializing Plug-in: malk8055

    At HS start, HS server "hangs" waiting for malk8055

    If I terminate hs_compatibility.exe then HS starts as expected, minus 8055 obviously.

    Tried all three versions of the plugin, including unregistering the ocx each time.

    Tried disabling all other plugins in setup/interfaces

    Tried unregistering other plugins and deleting the ocx/dll from the HS directory.

    AGH.... no hair left.....

    Then...

    made a copy of the HS directory tree..

    Went into add/remove and uninstalled HS2

    Reboot...

    Ran a registry cleaner... deleted everything i could find re HS... inc all the OCX and DLLs that were registed and no longer around...

    Reboot...

    Installed 2041 from original download & rebooted.

    Started HS and runs as expected.

    Stopped HS, installed the 8055 plugin, and registered it.

    Restarted HS....

    Hangs at the same point as above... kill hs_compatibility and HS initialised as normal... but no 8055 plugin....as before.


    So... questions... and not in order....

    8055 Plugin

    The config never opens a window when clicked - only records an event in log... checked that no windows were behind others.

    Logging... when a button is pressed on the digital input, nothing gets logged in the log. If i refresh the status screen... the update time is updated correctly. How can I get every event in the log?

    Where does the plugin store its configuration? I want to have a look why it gets input 1 wrong on the server that works....

    Given that de-installing HS leaves bits lying around... inc the registration details... where does HS store all its bits!?!?

    You mentione din an earlier post that you have a debug version - would that log more so we could see why its failing to init?


    I really dont want to toast this server to get this working.... there is so much stuff on it - doing a reconfig fom the ground up is unthinkable!

    My plan B is to go back to running HS in a windows XP VM... at least the host OS is preserved!!

    DJ
    Last edited by Bestgear; May 14, 2006, 10:55 AM.

    Leave a comment:


  • Bestgear
    replied
    Hi there...

    Removed your plugin and mcs is working fine.. how strange...

    I did post a question re debugging and was told that if the house code was duplicate a plug in may fail...

    What and how do house codes get allocated? Could this be it?

    DJ

    Leave a comment:


  • Malarcy
    replied
    What if you remove my plugin altogether - does mcsxap work then?

    Malarcy

    Leave a comment:


  • Bestgear
    replied
    Hi Malarcy..


    Thanks for the advice... gave it a go... and got this....

    5/7/2006 9:14:33 PM ~!~Info~!~Initializing Plug-in: malk8055
    5/7/2006 9:14:33 PM ~!~COM Plugin~!~Calling InitIO
    5/7/2006 9:14:33 PM ~!~COM Plugin Info~!~malk8055 initialising...
    5/7/2006 9:16:44 PM ~!~Error~!~Initializing interface: malk8055->The remote procedure call failed.
    5/7/2006 9:16:44 PM ~!~Info~!~Done initializing plug-in malk8055
    5/7/2006 9:16:44 PM ~!~Info~!~Initializing Plug-in: mcsXap
    5/7/2006 9:16:44 PM ~!~Error~!~Initializing interface: mcsXap->The RPC server is unavailable.
    5/7/2006 9:16:44 PM ~!~Info~!~Done initializing plug-in mcsXap


    Going to restore from backup and try again... just to be sure...

    Will keep going.... gotta get this working.....

    DJ

    Leave a comment:


  • Malarcy
    replied
    OK - VPN back to home was up - and I have cut a recompiled version on the OCX - I am thinking that there is some mix up between older versions and newer versions and I really don't know what is breaking but....

    Try this (backup 1st just in case)

    Unregister the existing hspi_malk8055.ocx file, then rename it to something else - like "notworkingmalk8055.ocxnot"

    Unregister the mcsxap ocx
    Re-register the mcsxap ocx (assuming mcsxap is an ocx)

    Try HS - does mcsxap work/start OK?
    Shutdown homeseer

    Unzip the attached ocx into the homeseer directory - register it

    Try HS again

    NOTE: No functionality changes in this version, just a recompile with the compatability stuff turned off to make it create a new guid.

    Let me know....


    Malarcy
    Attached Files

    Leave a comment:


  • Malarcy
    replied
    I have an idea as to the issue - but it will take me a day or two to look into it - I am not at home at the moment and can't get near the source code - but I suspect I am treading on an identifier that mcsxap is using (or vice versa) - I''ll let you know

    Malarcy

    Leave a comment:


  • Bestgear
    replied
    Hi Malarcy

    Unregistered the ocx, and now HS starts... claims to have initialised the plugin... continues through other stuff, then pops up a box with:

    Sorry, you need a newer version of Homeseer to run this plugin: malk8055

    ???

    Then Homeseer hangs - it goes not responding in TaskMgr. The HS 1.X interface plugin task is still running, unlike it was last error... it wont let me clear the message box.

    I am running 2.0.2041 and 1.1.0.0 of malk8055.
    Sorry to be a pain... any help much appreciated.

    D

    Leave a comment:


  • Malarcy
    replied
    Try unregistering and re-registering the ocx file on the affected box, if that works, does mcsxap still work? - let me know either way


    Malarcy

    Leave a comment:


  • Bestgear
    replied
    Hi there...

    Think that problem is a COM issue...

    I have installed the 8055 on another box with a demo license of HS and it all works fine again...

    AGH!!!

    DJ

    Leave a comment:


  • Malarcy
    replied
    Originally posted by djblack
    Hi Malarcy...


    I have a problem with the old plugin since I added mcsxap.... I "think".... at HS startup, the "HS 1.X Interface plug-in" task hangs, which obviously prevents HS starting. If I kill it in task manager, HS initialises, but obviously... no 8055 plugin.... any ideas?

    To add info to that, when you do kill the task, you get a log error saying ..

    4/16/2006 6:08:48 PM - Error - Initializing interface: malk8055->The remote procedure call failed.

    Then.... when it reaches mcsxap...

    4/16/2006 6:08:48 PM - Error - Initializing interface: mcsXap->The RPC server is unavailable.


    I assume that is because the 8055 failed, and I killed the task.. so mcsxap did not find it resident?

    Any help much appreciated.... agh!!!!


    David
    New one on me - it's possible there is some bad starup logic that could cause the hang up - I don't use mcsxap but I'll try and give it a test in the version I have running at the moment to see if I can reproduce.

    Malarcy

    Leave a comment:


  • Malarcy
    replied
    Biggest challenge currently is upgrading from old to new and preserving the config, I don't see a big issue, but I need to decide on a strategy for adding in extra boards once the plugin is configured.


    Malarcy

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Hi Malarcy and other K8055 lovers

    I was wondering if Malarcy has still some "hair on his head" meaning
    not to much troubles in fighting with his code for the 4 board version ???

    From a verry reliable source the K8061 board will become on the market
    in august

    Looking forward

    Leave a comment:


  • Bestgear
    replied
    Hi Malarcy...

    Great news! - your time is much appreciated!!

    I am not aware that I need to change the debounce per board... I assume it will be one setting for all connected boards?

    I am not bothered about any fancy config utility - a ini or even a few reg keys to set will be ok... assuming its documented!

    I think I would prefer an ini to reg, for obvious reasons...

    I have a wee problem.... which is a shame, as I should be bringing you a beer not a problem!

    I have a problem with the old plugin since I added mcsxap.... I "think".... at HS startup, the "HS 1.X Interface plug-in" task hangs, which obviously prevents HS starting. If I kill it in task manager, HS initialises, but obviously... no 8055 plugin.... any ideas?

    To add info to that, when you do kill the task, you get a log error saying ..

    4/16/2006 6:08:48 PM - Error - Initializing interface: malk8055->The remote procedure call failed.

    Then.... when it reaches mcsxap...

    4/16/2006 6:08:48 PM - Error - Initializing interface: mcsXap->The RPC server is unavailable.


    I assume that is because the 8055 failed, and I killed the task.. so mcsxap did not find it resident?

    Any help much appreciated.... agh!!!!


    David
    Last edited by Bestgear; April 21, 2006, 07:40 AM.

    Leave a comment:

Working...
X