C-Gate and Security Application

Discussion in 'C-Gate Developers' started by broadk, Sep 8, 2013.

  1. broadk

    broadk

    Joined:
    May 3, 2010
    Messages:
    8
    Likes Received:
    0
    Location:
    London
    Hi,

    Hoping someone can help. I have a comfort alarm panel connected to my C-Bus network. As a result I am able to see a range of security application messages via C-Gate. I would like to decode these messages for use in my automation controller.

    Having reviewed the application note for 208 (see http://training.clipsal.com/downloads/OpenCBus/Security Application.pdf) it is not immediately clear to me how best to map low level serial commands to C-Gate output. As it is an alarm its going to be a bit of an effort to test all of the combinations of actions which would generate said messages.

    Does anyone have a fairly complete mapping or is there an official document from Clipsal which would help here?

    Thanks in advance for your help.
    kieran
     
    broadk, Sep 8, 2013
    #1
  2. broadk

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Hi Kieran,

    The C-Gate manual has some pretty detailed info:

    Reference | C-Bus Applications | Security Application | Objects supported

    Expand the "Security Application Object" and "Security Zone Object" nodes and you will see 27 events produced by C-Gate. The individual pages show the exact syntax of each event.

    From the application note:
    * 5.5.1.1 to 5.5.1.24 map exactly to 24 of the events shown.
    * 5.5.1.25 maps to 2 more of these events (C-Gate handles the two separately)
    * 5.2.1.26 maps exactly to the final C-Gate event shown in the manual, but as the application note describes, that has now been obsoleted in favour of 10 new events. These 10 events are in fact also emitted by C-Gate, but are not documented in the Help. They are not terribly complex - the following sample dump might be of some use.

    #e# 20061114-160347 702 //SB_TEST/254/208 - [security] line_cut_alarm line_cut_alarm_raised sourceUnit=255
    #e# 20061114-160349 702 //SB_TEST/254/208 - [security] line_cut_alarm line_cut_alarm_cleared sourceUnit=255
    #e# 20061114-160306 702 //SB_TEST/254/208 - [security] fire_alarm fire_alarm_raised sourceUnit=255
    #e# 20061114-155549 702 //SB_TEST/254/208 - [security] fire_alarm fire_alarm_cleared sourceUnit=255
    #e# 20061114-155604 702 //SB_TEST/254/208 - [security] arm_failed arm_failed_raised sourceUnit=255
    #e# 20061114-155609 702 //SB_TEST/254/208 - [security] arm_failed arm_failed_cleared sourceUnit=255
    #e# 20061114-155619 702 //SB_TEST/254/208 - [security] gas_alarm gas_alarm_raised sourceUnit=255
    #e# 20061114-155623 702 //SB_TEST/254/208 - [security] gas_alarm gas_alarm_cleared sourceUnit=255
    #e# 20061114-155629 702 //SB_TEST/254/208 - [security] other_alarm other_alarm_raised sourceUnit=255
    #e# 20061114-155632 702 //SB_TEST/254/208 - [security] other_alarm other_alarm_cleared sourceUnit=255

    I have logged a ticket to add these events to the help file. (CG-1566)
     
    Last edited by a moderator: Sep 9, 2013
    daniel, Sep 9, 2013
    #2
  3. broadk

    broadk

    Joined:
    May 3, 2010
    Messages:
    8
    Likes Received:
    0
    Location:
    London
    Thank you Daniel. I'm not sure how I missed this detail in the document. I'm going to test this but out of curiosity do you know if request_zone_name is actually querying the alarm panel or is it merely a look up against your current C-Bus project configuration?

    FWIW It would be useful if there was dbgetxml or similar functionality for the security application. Dynamically resolving the configuration/state of the alarm panel currently follows a very different approach than for lighting.

    Thanks again
    kieran
     
    broadk, Sep 11, 2013
    #3
  4. broadk

    broadk

    Joined:
    May 3, 2010
    Messages:
    8
    Likes Received:
    0
    Location:
    London
    As a small FYI I never did manage to get request_zone_name to work but dbgetxml etc worked as expected once I updated my toolkit project to specify each alarm zone.

    Thanks for all of your help.
     
    broadk, Sep 16, 2013
    #4
  5. broadk

    Ingo

    Joined:
    Dec 2, 2006
    Messages:
    290
    Likes Received:
    1
    Location:
    South Africa
    I seem to remember that the 'Zone Name' function was not implemented - I could be wrong though... Best you head on over to the Comfortforums and ask the question there.
     
    Ingo, Sep 16, 2013
    #5
  6. broadk

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    All of C-Gate's security commands are mapped through to the C-Bus protocol; there is no lookup from the tag database.

    Application messages are "broadcast" not directed to a single device, so I'm only guessing here but it seems likely that the alarm panel is not responding to the request_zone_name command.
     
    daniel, Sep 17, 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.