C-Touch network monitoring

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by filpee, May 1, 2008.

  1. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    A handy feature to have would be to allow PAC, C-Touch, Homegate etc to monitor remote networks on the other side of a bridge.

    That way if a network falls over we can turn on a relay output or show an error on the touchpanel.

    Obviously it wouldn't be able to monitor its own network (though the C-Touch does show a cbus error if it cannot find its own local network) but we can use a hardware network monitor for that.

    What does everyone else think?
     
    filpee, May 1, 2008
    #1
  2. filpee

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    You can't monitor a remote network unless you POLL it.

    And polling is bad.

    C-Gate does it when used with SchedulePlus, and so on, but it is very careful to throttle the amount, and to only do it during bus idle times.

    The smaller embedded devices don't have the computer power to do all that clever dickery.
     
    ashleigh, May 1, 2008
    #2
  3. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia

    Surely its not that bad.
    I would only expect it to poll say once every 30 seconds at most to see if the network is available. I wouldn't want to know the status of every single device, group address and power status.
    Maybe it could be setup so that if it received a bunch of 'Cbus Send Errors' in a period of 5 minutes to that network it would flag an error.

    I thought about doing something like this with light level sensors. Have a sensor installed on each network set to update the light level in that network once every minute.
    In the logic I could setup a timer that resets every time it gets an update. If no update in 5 minutes then assume the network is faulty).
     
    filpee, May 1, 2008
    #3
  4. filpee

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    What does "available" mean?

    This is where it gets hard.

    On cbus, if there is power and a clock generator on the bus, it's available. The device you are interested in might not be (it might be unplugged, or [unlikely] malfunctioning). The only way to find out is to poll that device and retrieve some status information from it.

    So, which device to poll?

    One, all, some subset? Under what circumstances do you deem a failure? A lack of lighting group traffic (but that might be legit)? A unit missing? But how many? Maybe the unit is meant to be missing for maintenance?

    The circumstances and scenario can vary wildly, a one-does-all approach won't work because it makes one user happy and pisses off everybody else.

    As an aside:
    One of the constant bollockings CIS gets is that C-Gate reports networks in error when they are not. C-Gate uses a fairly anal approach: if a unit won't talk to it, there is an error. Sometimes, poor wiring practices mean that things seem to work (by virtue of lots of retries), but cgate is able to detect and report that fault condition. Then WE GET TOLD to make cgate less sensitive because "the site works". It might be dodgy, but nobody wants to go fiddling wiring.

    The approach used by cgate is thorough - it walks the networks.

    Anything less thorough is going to be extremely error prone.

    Summary: without an extremely precise specification of what is meant by "available", this is an impossible task. And with a precise specification, it's most likely either an impossible task, or an unrealistic task.

    Unless you just mean "tell me if the network on the other side of the bridge has no power". That might be possible (one day) but the better way to do that would be with specific firmware support in the bridge.
     
    ashleigh, May 1, 2008
    #4
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.