Announcement

Collapse
No announcement yet.

HS page to page slow down

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

  • Michael McSharry
    replied
    You can use mcsTemperature as you use it now except for the interface of the 1-wire. Take a look at http://board.homeseer.com/showthread.php?t=113939 which describes both the setup with and without mcsTemperature. If you do not want mcsTemperature for your data collection and charting then let me know and I will give you licence codes for the xAP equivalents.

    Leave a comment:


  • zap
    replied
    Michael,

    If I move to the xapmcs1Wire, Do I need to uninstall MCSTemp from HomeSeer ?

    I have allready downloaded the mcsxap plugin, xapmcs 1 wire, xapmcs chart, xapmcs Database and the setup documentation.
    Is this what I need to get started ?

    I have read the setup doc. But still a little confused about what to do with the files do I import them into HS, or are they stand alone ?

    -Zap

    Leave a comment:


  • Michael McSharry
    replied
    The interface being described for the "freezing" problem cannot be replicated with a Temp05. It requires the DS9097U or DS9490 using the ActiveX drivers provided by Dallas Semiconductor.

    If we focus on temperature sensors then the A/D conversion process takes about 1 second per sensor. During this conversion time the Dallas Semi drivers wait for the conversion to complete. During this wait time the mcsTempeature process is non-responsive.

    After each sensor reading is made available from the driver to mcsTempeature then mcsTemperature will call back to HS (hs.DeviceString) to see if the new value is a change and if so then call back to HS again to make the update (hs.SetDeviceString etc.).

    When then number of sensors is increased then the block of time when the A/D conversion is happening increases. When the sample interval is increased the percentage of time doing A/D conversion also increases. It is possible to reduce the interval or increase the number of sensors such that nearly 100% of the time is spent waiting for A/D conversion.

    The polling interval is based on a VB timer. It is an exe plugin. mcsTemperature does use the HSEvent callback from HS, but for this scenario its processing does not involve the Dallas Semi drivers so the return should be fast. The same is true for other HS-sourced calls into the plugin.

    My solution to this interface dependency is to move to an IP/TCP rather than a memory interface. xapmcs1Wire contains the same input processing for the DS9097U/DS9490 as mcsTemperature, but it communicates via IP/TCP so there are no execution dependencies.

    Leave a comment:


  • rjh
    replied
    I'm not sure I totally understand what is going on as I don't know much about this plugin, but here is my understanding, please correct me if I am wrong.

    * The MCS Temp plugin is an EXE plugin, so its assumed that its running in its own process

    * The plugin polls temp sensors to get information, and while the polling is going on, HS appears to freeze.

    * Reducing the amount of polled devices, reduces the freezing in HS

    If these assumptions are correct, then I need to ask the following:

    * When does the polling take place? Is it happening off a VB timer? Or is happening off a call from HS? It sounds like HS is either calling into the plugin and its not returning for some length of time. Note that even though its an EXE plugin, any call into the plugin needs to return immediately. The calls are all done off of one thread, from the hs_compatibility exe.

    I do have a temp05 serial board, with 2 sensors, can I use that to see this problem?

    Leave a comment:


  • zap
    replied
    Thanks Michael for your Help.

    I will attempt to convey this to HST, Although occasionally my communication skills are lacking.

    -Zap

    Leave a comment:


  • Michael McSharry
    replied
    This seems to indicate that the hs_compatibility process is connecting with the mcsTemperature process often and it appears to be tightly coupled with the HS process that updates the web pages. It does not seem like it should be the case since one of the selling points of .NET is the process independence. There is nothing that can be done about the Dallas Semiconductor 1-wire drivers that take control of the thread, but there may be something that can be done in the relationship between the various HS threads once HST understands the situation.

    Leave a comment:


  • zap
    replied
    By cutting back to 11 sensors and polling every 3 min there is no more problems with freeze ups untill it polls the sensors again.

    The more sensors I take off line the shorter the freeze up time.
    even with bringing up the MCSTemp GUI.

    -Zap

    Leave a comment:


  • zap
    replied
    No errors of any kind in the HS log.

    the [C:\Programs Files\HomeSeer 2\config\sample.mdb Page] is just the HS event log GUI

    [The windows form could appear behind the HS pages and make it look as if something is frozen.]

    No is not behind, It will actually will freeze up the HS event log. it does not do it all the time.

    [Mcstemperature\ Setup form]
    Is in the MCSTemp GUI

    When I first reported this in the beta forums I did not know what was causing this but at that time I got two errors about a comSvcs dll, But have not seen it again.

    I have taking my sensor count down from 32 to 11 and poll times to 60 seconds untill I find out whats going on.

    This is totally baffling.

    -Zap

    Leave a comment:


  • Michael McSharry
    replied
    If any errors occurs during the time the setup page is open then all changes to the setup page are discarded. This is true of the browser setup or the form setup. Is there anything in the log to indicate an error?

    The Dallas Semiconductor drivers for the DS9097U/DS9490 take control of the thread when sampling is happening. That means anything in that thread will be non-responsive. mcsTemperature runs in its own process so I do not understand why it would hold up HS, unless HS is making a "are you alive" poll and the response cannot be retured until the 1-wire drivers release the thread.

    I'm not familiar with the "On the C:\Programs Files\HomeSeer 2\config\sample.mdb Page Mcstemperature\ Setup form". The windows form could appear behind the HS pages and make it look as if something is frozen. If you keep the center of your desktop clear then you will see the mcsTemperature forms.

    mcsTemperature can be used with the input from virtual devices. The support of 1-wire and csv files is just a side benefit and not the mainstream aspect of the plugin.

    Leave a comment:


  • zap
    replied
    Thats interesting,

    Now what kind of test would that be, no sensor input, nothing in the database. I would not think that would be a useable test for any program or a least not a one wire network.

    I suppose you wouldn't see the same problem

    -Zap

    Leave a comment:


  • bdickhaus
    replied
    The answer to Rich's question is "yes" and that is how I am currently running mcsTemperature. I'm running v5 and have not encountered the problem you are describing.

    Bill

    Leave a comment:


  • zap
    replied
    Michael,

    I was trying some different polling setting today and found that I cannot save the setting on the, hxxt://localhost:81/temperture.asp?Page=interface
    any setting I try a save go back to what they were before.

    On the C:\Programs Files\HomeSeer 2\config\sample.mdb Page
    Mcstemperature\ Setup form. will not show and will freeze the HS events log, Ctrl Alt Delete end task on mcstemp and the temperature Setup form page will pops up and the HS events log unfreezes, I can then set the polling rate and save it.

    By changing the polling rate to 60 seconds, I don't have any problem with the HS pages ( they are very fast) untill it start polling the sensors then the HS pages more or less freeze untill it has finished polling.

    If I go look at the temperature.asp page the changes that I made on the setup form page are now on the asp page.

    This is weird !
    Any suggestions ?

    Rich, e-mail me to day and asked a question as to would mcstemp run without any hardware, I did not really know the answer to his question.

    -Zap

    Leave a comment:


  • Michael McSharry
    replied
    This debug log shows where the procedure to build a HTML page is being called multiple times before it has a chance to complete a prior page. This is normally called from temperature.asp. There is not suppose to be reentrancy on asp calls unless the rules have changed.

    Leave a comment:


  • zap
    replied
    Michael,

    I have a ticket #10234 put in oct 16, were this also causes HS to crash sometimes.
    But they have been very slow to, or no responce at all to the beta HS builds.

    I did turn on the special Debug Log and get this in the HS log.
    10/22/2006 8:11:57 PM - mcsTemperature - Maximum simultaneous ASP requests now = 2
    10/22/2006 8:11:58 PM - mcsTemperature - Maximum simultaneous ASP requests now = 3
    10/22/2006 8:12:01 PM - mcsTemperature - Maximum simultaneous ASP requests now = 4
    10/22/2006 8:12:03 PM - mcsTemperature - Maximum simultaneous ASP requests now = 5
    10/22/2006 8:12:05 PM - mcsTemperature - Maximum simultaneous ASP requests now = 6
    10/22/2006 8:12:10 PM - mcsTemperature - Maximum simultaneous ASP requests now = 7
    10/22/2006 8:12:11 PM - mcsTemperature - Maximum simultaneous ASP requests now = 8
    10/22/2006 8:12:21 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 8
    10/22/2006 8:12:30 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 7
    10/22/2006 8:12:36 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 6
    10/22/2006 8:12:44 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 5
    10/22/2006 8:12:52 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 4
    10/22/2006 8:13:00 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 3
    10/22/2006 8:13:10 PM - mcsTemperature - TemperatureASP 10 second Timeout On Pending ASP Request with pending level 2
    10/22/2006 8:13:10 PM - mcsTemperature - xStartHeaderASP on line 190 Object variable or With block variable not set
    10/22/2006 8:13:10 PM - mcsTemperature - TemperaturePage: on line 310 Object variable or With block variable not set

    -Zap

    Leave a comment:


  • Michael McSharry
    replied
    It seems that the change to HS 2.1.43 is what induced the problem. I would suggest doing a help desk ticket so they know something in .43 has affected other things. If HST has made a change that I need to do something with then they will be able to tell me what needs to be changed.

    Leave a comment:

Working...
X