Interrogating Groups

Discussion in 'C-Bus Serial Protocols' started by pspeirs, Jan 12, 2016.

  1. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    159
    Likes Received:
    5
    Location:
    Sydney
    Hi,
    I'm after some information on the best way to get the group names from CBus, or are these only stored within Cbus toolkit. I'd like to enumerate them in much the same way as done by Piced for example.

    Cheers,
    Paul
     
    pspeirs, Jan 12, 2016
    #1
    1. Advertisements

  2. pspeirs

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,149
    Likes Received:
    16
    Group names are not downloaded to the units - they reside in toolkit only. If you go to a new existing installation you can download the configuration of the system, but there will be no group names (other than the default Group 001 etc) .

    Mick
     
    znelbok, Jan 13, 2016
    #2
    1. Advertisements

  3. pspeirs

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,267
    Likes Received:
    130
    Location:
    Adelaide, Australia
    What is the actual problem?

    a) Have you inherited a CBus system with no toolkit (tag) files? If so, then unless you have a Colour Touchscreen you will have to recreate the tag names from scratch as they are not stored in the units. If you are lucky enough to have a colour touchscreen on the system you can download the tag file from it and restore it to the cgate/tag directory.

    b) If you just want to access group names from a Pc for some third party application, just process the xml tag file under cgate/tag.

    c) If you want to access group names from logic this can only be done on a colour touchscreen (not sure about Wiser 2 actually).
     
    Ashley, Jan 14, 2016
    #3
  4. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    159
    Likes Received:
    5
    Location:
    Sydney
    Thanks Ashley, I'm working on a third party app and wanted to access the group names for the fluffy factor.

    I assume the correct path can be found through the registry key under HKLM\Software


    Thanks for the pointers,

    Cheers,
    Paul
     
    pspeirs, Jan 16, 2016
    #4
  5. pspeirs

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,267
    Likes Received:
    130
    Location:
    Adelaide, Australia
    If you use the default installation path it is C:\Clipsal\C-Gate2\tag

    Extracting the tag names is just a case of scanning down the Application nodes until you get to the one you want. They are in no particular order.
     
    Ashley, Jan 17, 2016
    #5
  6. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    159
    Likes Received:
    5
    Location:
    Sydney
    Hi Ashley,

    Actually the best way is to grab the path from registry then process from there. All good, works like a charm once the XML is parsed in.

    One other question in regards to the messaging timing. If we are looking at a general input unit or CMU for example, we have an option to transmit periodically which if fine. There is also an option to transmit on change. Do these two operate totally independently or is there some interaction where if one message is already placed on the network the other message won't be sent.

    Or if the time is right, message gets sent AND when the input change is enough to trigger this message will also be sent regardless of what fact that a message has already been sent based on time.

    Hope that makes sense.


    Cheers,
    Paul
     
    pspeirs, Jan 22, 2016
    #6
    1. Advertisements

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.