Network Comms

Discussion in 'C-Bus Toolkit and C-Gate Software' started by Thomas, Jul 4, 2006.

  1. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    I am not clear about the following:
    I set up a bridge on a 2-Network installation to allow communications across 'All Applications'.
    I then set up a GA on each network on the Lighting application to have the same tag (e.g. Bedroom) and the same group address (e.g. 233 (E9)). Note that the output unit for that group only exists in the remote network.
    I start Toolkit and open both networks.
    If I open the groups node on the remote network and toggle the group ON and OFF, it all works fine.

    If I go to the local network and toggle the group ON or OFF, the output on the remote network does not respond.
    HOWEVER, checking the application logs, the groups show as being toggled ON and OFF on both networks .:confused:

    This does not seem to make much sense, so I must be missing something. Can anyone point me in the right direction?

    Thanks
    Thomas
     
    Thomas, Jul 4, 2006
    #1
  2. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    Toolkit sits on top of C-Gate which is the comms server for this app and others like Schedule Plus / Homegate etc. C-Gate builds a comprehensive model of the networks it is connected to, this includes network topology for message routing. When you do the following
    you are actually routing a message for that group address to the remote network and the remote network only.
    In this case the message is being routed to the local network only.

    C-Bus input units are lower order units and do not route messages. If you have set up connect applications properly when you use the key input on one network it will transmit a message to the network it exists on. That message will be routed across the bridge and control / interact with other units on the other network with the same GA. Once a message has been routed across a bridge it will not be routed again otherwise messages will bounce back and forward. Hope I am not confusing you.

    Try it with a key input...
     
    Last edited by a moderator: Jul 4, 2006
    Phil.H, Jul 4, 2006
    #2
  3. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    Hi Phil,

    This is clear enough, but doesn't quite answer the last part of my question yet.
    Based on what you say, I would expect that when I send the command via Toolkit, i.e. C-Gate to the Local Network, then it should not arrive at the Remote Network. However, the Application Log shows that it does :confused:
    Further, if it arrives at that network, then it also should switch on the GA.

    Is there an explanation for that?
     
    Thomas, Jul 4, 2006
    #3
  4. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    Hi Phil, or perhaps Darren,

    Do you have an explanation about why the command actually arrives at the remote network, but does not have an effect?
     
    Thomas, Jul 5, 2006
    #4
  5. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    OK. Is it possible that because you have toggled the GA via the groups node on both networks that the application log shows both those actions ? When you mentioned "the groups show as being toggled ON and OFF on both networks" are you suggesting a single action on either network is showing up in the appplication log for both networks eg identical time ???
     
    Phil.H, Jul 5, 2006
    #5
  6. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    Thanks for your reply Phil,

    This is exactly what happens. Just confirmed now as follows:

    open Toolkit, both networks.
    verify that both App Logs are empty
    Toggle GA ON on Local Network
    Check on App Log Local to confirm - Positive
    Check App Log Remote - there I see the same action, but no effect on the Network

    Phil, in my opinion, this is how it should be, as comms have been opened up in the bridge. But I don't understand that the actual Output does not comply???
     
    Thomas, Jul 5, 2006
    #6
  7. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    My understanding is, if you are selecting a particular network (in Toolkit) and controlling a GA on that network then due to the involvement of C-Gate the message should terminate in the network it is directed to. Previously (recently) I found a problem with Toolkit triggering certain messages on the bus. The situation you have described should (will) be looked at by the boys in the brains trust :)

    PS C-Bus Embedded devices and C-Gate based software can route messages across a bridge if it is set to connect applications or not. - Not directly relevant here but an interseting point none the less...
     
    Phil.H, Jul 5, 2006
    #7
  8. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    Hi Phil,

    Thanks once again. From your reply I assume that you are connected to the brain trust. Can you say that they are aware of the query, or would there be someone who I could contact directly?
     
    Thomas, Jul 6, 2006
    #8
  9. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    I am not part of the brains trust. The brains bit lets me down :p

    I might have a chance tomorrow to set up the arrangement you have mentioned and give it a whirl, if not I will call a friend who has the brains bit covered and see what I can find out.
     
    Phil.H, Jul 6, 2006
    #9
  10. Thomas

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    The only Load Change messages that are allowed to cross over a bridge connection are those that have no Network Routing information.. This stops circular routing of messages. We call these Load Change messages "SAL Messages"

    Key Units, when keys are pressed, generate SAL messages with no Network Routing Information

    When Toolkit (via CGate) is used to control a group on the Local Network the presence or absence of Network Routing Information on the SAL messages that CGate generates is determined by something called the "Local SAL" mode of the PCI/CNI. By default, ALL messages coming into a Network via a PCI contain routing information.. Local SAL mode strips this information out so that those incoming messages can transit bridges if required.

    If the Group on the Remote Network is NOT going ON when you trigger the Group on your Local Network then there is 2 possible explanations.

    1. Your PCI is not in Local SAL Mode. CGate should be putting PCI's into Local SAL mode as a matter of course (it does, I've checked).

    2. You have an old PCI. Only PCI's with a firmware version greater than 3.12 have Local SAL mode. If CGate is sending SAL messages to a Local Network WITH a <3.12 PCI then the messages will never get out of that Network as they will have routing information on them.

    If you have a >v3.12 PCI eg a 4.4 PCI then you should repeat this test.. if that fails, we need to dig a little deeper..

    Hope this helps..
     
    Last edited by a moderator: Jul 6, 2006
    Duncan, Jul 6, 2006
    #10
  11. Thomas

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Darren, Jul 6, 2006
    #11
  12. Thomas

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    I havent drilled into this part of the issue yet..
     
    Duncan, Jul 6, 2006
    #12
  13. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    Thomas,

    I told you I have friends in the brains trust. It would be good if you can confirm the PCI details mentioned in Duncan's post. There might still be an issue with application log saying one thing and equipment doing something else. :confused:

    There is a really good document floating around covering networks / networking / messages etc. It specifically covers SAL / local SAL. I will try to dig it up.
     
    Last edited by a moderator: Jul 6, 2006
    Phil.H, Jul 6, 2006
    #13
  14. Thomas

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    A couple of posts back Darren had posted the link to the doc I referred to. I dug around the CIS website but could not find the doc. I don't have a PhD in Forensic Computing :rolleyes:
     
    Phil.H, Jul 6, 2006
    #14
  15. Thomas

    Thomas

    Joined:
    Nov 25, 2004
    Messages:
    252
    Likes Received:
    0
    Thank You!

    Hi Phil, Duncan, Darren,

    I was surprised to see a heap of responses so soon. Thanks Phil, for waking up your friends, and we know they are clever ones..:)
    Now to Duncan's PCI matter. I have two. One is an old one, installed permanently on the network here, and one which travels with me. Naturally I used the local one, and had no success. I swopped over the the DIN one, and now the messages have the desired effect.
    I will also study the Networks doc which Darren has provided the link for, and hopefully get a little more clever when I am finished with it.
    As I have reached an age at which I am no longer in possession of the full complement of hair on the head, I might not remember at all times to first check out a new PCI when something doesn't work, but I will try to...;)

    In summary then it would appear that the messages will follow the paths opened by the configuration of the bridge, and will be useful (or confusing, depending on what is to be achieved) on the relevant connected networks.

    Thank you all for your assistance!
    Thomas
     
    Thomas, Jul 6, 2006
    #15
  16. Thomas

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    CGate has interrogated the bridge configuration and based on that configuration it has determined that a Group Change on the Local Network must result in a Group Change on the Remote Network thus its automatically generated a Load Change Event so that clients connected to it have the correct view of the network..

    Alas.. it hasnt appreciated that an old PCI is being used and the message hasnt actually got to the Remote Network.. Its a deficiency in C-Gate.. I've logged it for attention when time permits.
     
    Last edited by a moderator: Jul 7, 2006
    Duncan, Jul 6, 2006
    #16
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.