Booting CGate2 without Toolkit

Discussion in 'C-Bus Toolkit and C-Gate Software' started by cueman, Mar 12, 2005.

  1. cueman

    cueman

    Joined:
    Aug 3, 2004
    Messages:
    20
    Likes Received:
    0
    Location:
    Oxford, UK
    I run CGate2 on a linux box, separately from Toolkit (1.1.5). I would like CGate to be started when the linux machine boots, and for it to auto-connect to my CBus network (I only have one).

    The problem is, I can't work out what commands I need to send it to make it talk to my PCI and do whatever it needs to do. I work around this by starting toolkit, telling toolkit to disconnect from its cgate, connect to the remote cgate and then get toolkit to open the network and appropriate project and then scan the network.

    From that point on, I can access CGate directly without toolkit.

    I tried listening in on the cgate-toolkit conversation to work out what the commands are, but toolkit uses the secure port :( so that didn't work.

    Can somebody help? Either by showing me the appropriate commands or perhaps how to get toolkit to use the plain-text command port instead.

    A separate, but related, issue - is there any documentation for CGate2 available yet? I guess Clipsal don't want people messing around with CGate2 too much just yet.
     
    cueman, Mar 12, 2005
    #1
  2. cueman

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    Hi Cue,

    I'll post a whole list of commands tomorrow morning that you can use.. sorry about the lateness of the documentation.
     
    Duncan, Mar 13, 2005
    #2
  3. cueman

    cueman

    Joined:
    Aug 3, 2004
    Messages:
    20
    Likes Received:
    0
    Location:
    Oxford, UK
    Thanks Duncan.
     
    cueman, Mar 13, 2005
    #3
  4. cueman

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    The easiest way to do this is to edit the ".\Config\C-GateConfig.txt" file and ensure these entries are complete:


    #### project.default:
    # Name of the default project
    # Default Value:
    # Scope: global
    # Effective on: restart
    ###
    project.default=

    #### project.start:
    # Space-separated list of projects to start on server startup
    # Default Value:
    # Scope: global
    # Effective on: restart
    ###
    project.start=

    If you add the project name that you want to have open and connect to the above 2 parameters and restart C-Gate it will do all the work for you. No need to use Toolkit to get all the networks connected.
     
    Last edited by a moderator: Mar 13, 2005
    Richo, Mar 13, 2005
    #4
  5. cueman

    cueman

    Joined:
    Aug 3, 2004
    Messages:
    20
    Likes Received:
    0
    Location:
    Oxford, UK
    That's done the job! Much cleaner way of doing it than I'd been hoping for as well!

    Thanks!
     
    cueman, Mar 13, 2005
    #5
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.