wiser hanging

Discussion in 'C-Bus Wiser 1 Controller' started by ashields, Apr 24, 2011.

  1. ashields

    ashields

    Joined:
    Feb 2, 2011
    Messages:
    20
    Likes Received:
    1
    Location:
    Nottinghamshire,UK
    I've had several occasions where the wiser appears to hang.

    It appears to happen if I have a web page running a wiser client and put my computer to sleep (but not every time). All logic engine functionality appears to stop, and upon awaking my computer the web client gives me a popup stating that it is unable to connect to the wiser. Usually after a few page refreshes it is able to reconnect and logic processing resumes.

    Does the wiser deliver event notifications to attached clients from the same thread/process that the logic engine runs in?
     
    ashields, Apr 24, 2011
    #1
  2. ashields

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Sounds interesting. I tried to reproduce it here and don't see this behavior. Wiser's notification to attached connections is separate from its logic engine. Clients are able to connect/disconnect/disappear and the logic engine will still run. Out of curiosity, do you have any socket related logic running?
     
    kjayakumar, Apr 25, 2011
    #2
  3. ashields

    ashields

    Joined:
    Feb 2, 2011
    Messages:
    20
    Likes Received:
    1
    Location:
    Nottinghamshire,UK
    No I don't.

    It doesn't happen that often, about three times in the last week but prior to that not at all for a couple of months, however that did include a period of a couple of weeks at least when the machine was set up to never sleep (was collecting logs).

    I'll experiment over the next couple of weeks and see if I can nail it down to something more definite.

    I'm running the client under safari on OS-X if that makes any difference.

    Cheers
     
    ashields, Apr 25, 2011
    #3
  4. ashields

    ashields

    Joined:
    Feb 2, 2011
    Messages:
    20
    Likes Received:
    1
    Location:
    Nottinghamshire,UK
    update

    I tried to replicate this without success and gave up (admittedly after only about an hour).

    Just gone to bed after putting my computer to sleep and noticed the hallway light was still on outside the bedroom (my PIR's all signal dummy groups so the wiser can ramp the loads to different levels depending upon the time of day)

    Came back to the study, woke my computer and found I had a web page with the wiser client open (it had been open for several days, since my last post - I'd forgotten about it) about thirty seconds later all the lights went off and my conservatory shutter closed. These are all on a scene triggered by the wiser in response to a dummy group set by a PAC that's connected to my alarm system - I'd set the alarm some 6-8 minutes previously so this scene was somehow delayed for that amount of time.
     
    ashields, Apr 29, 2011
    #4
  5. ashields

    ashields

    Joined:
    Feb 2, 2011
    Messages:
    20
    Likes Received:
    1
    Location:
    Nottinghamshire,UK
    Further update

    So, a couple of years have passed and I've been pretty careful to close any browser windows to the wiser UI and things have been reasonably ok.

    Until last week, when the wiser processing appeared to stop, couldn't connect to it with a browser so I cycled the power. It worked for a few minutes then would only work WHILST I had the wiser UI displayed - close the browser, lights stop working, open it and they work again. After a few cycles of this I finally managed to close the browser and still have working lights.


    It's happened again tonight. Lights had stopped working, opened a window to the wiser (took three attempts , with the flash UI reporting "unable to connect to wiser") and the lights where working.
    Closed the browser and everything stopped, reopened and it's working again, tried this four or five times, each time I re open the browser the c-bus connection state icon at top right is red for a few seconds.

    Whilst I'm typing this on my iPad my computer has gone to sleep, and you've guessed it, the lights are not working. Wake up computer, refresh page lots of times (more than ten) getting "unable to connect to wiser" and eventually I'm in and everything is working again.

    Now it looks like i'm going to have to disable sleep on my computer and leave this web page open forever.

    Anybody any ideas? I can't believe I'm still the only one to experience this after all this time. Does anybody else actually run any logic at all on the wiser? Is there any way of enabling/accessing logs in the wiser that might throw some light on what is happening here?
     
    ashields, Oct 6, 2013
    #5
  6. ashields

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Older firmware was crap at that, unfortunately, and resulted in Wisers behaving erratically when such scenarios. With recent firmware, eg: 1.29.0 and above, Wiser is properly killing ephemeral connections when they're gone (meaning mobile connections and suspended laptops that appear and diasppear). I use the Wiser with browser windows often left open, and lots of mobile devices and I typically get at least 1 month uptimes.

    That sounds very odd. By "wiser processing", I'm guessing you mean logic that controls your lights rather than regular c-bus (which will work even if the wiser is disconnected). Logic runs independently of whether you have any browser or mobile connections so I can't immediately see the relationship. Do you have anything unusual in logic that might be related? Be aware, that lots of repetitive set system IOs might make the system slower than normal.



    I haven't observed what you're seeing. You certainly shouldn't need to leave your computer on with a browser forever. I run lots of logic on the wiser. I'm using PICED 4.12.1 with Wiser firmware 1.30.0. If you like, I can give your project a run and see if I notice anything. Feel free to upload the exported project here or send it to me via email [email protected]
     
    kjayakumar, Oct 16, 2013
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.