ServerX and CGate query

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by martymonster, Dec 7, 2006.

  1. martymonster

    martymonster

    Joined:
    Aug 5, 2004
    Messages:
    162
    Likes Received:
    1
    Hi,

    I have been trying to get ServerX to work with CGate.
    (Toolkit, Piced both work OK)

    I can start up CGate and then the command interface.
    I can load the project and use the project 'project use prjname'
    I can then list the 2 networks using NET LIST
    I can turn ON/OFF lights using
    ON/OFF 254/56/112

    In ServerX, using the CGate command line interface, I can also do PROJECT USE PRJNAME with an OK result
    When trying to do the above commands ON OFF 'NET LIST', they all fail as it cannot find the network(s). As such, the C-Gate Network Browser list is empty.
    (Although a 'NET LIST_ALL' does work, a 'NET LIST' fails with --> 132 no networks found
    )
    I can do the following in ServerX
    ON //PRJNAME/254/56/112 just not ON 254/56/112

    Any ideas on why ServerX can access CGate, the Projects but NOT find the Networks?

    Marty
     
    martymonster, Dec 7, 2006
    #1
  2. martymonster

    markcraw

    Joined:
    Feb 19, 2006
    Messages:
    3
    Likes Received:
    0
    Hi Marty

    I have had the same problem so would be interested to here from you if you find out whats wrong.

    I was going to try to delete all of the demo projects in the toolkit and seeing if that made any difference so there would only be one project in the NET LIST_ALL.

    But I got carried away with modifying the demo JSP code to send the project name through to cgate so I could at least have the demo pages working, which is due to the same problem. Also the demo code does not send through the application number so I wired that in.

    Cheers,
    Mark
     
    markcraw, Jan 14, 2007
    #2
  3. martymonster

    martymonster

    Joined:
    Aug 5, 2004
    Messages:
    162
    Likes Received:
    1
    Never heard anything back.

    Problem still unsolved :(
     
    martymonster, Jan 15, 2007
    #3
  4. martymonster

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Server X is a product from our Malaysian engineering team. They don't tend to hang out on the forums much. Try contacting tech support who can relay any specific issues through to the relevant people.
     
    Richo, Jan 15, 2007
    #4
  5. martymonster

    paulw11

    Joined:
    Dec 4, 2006
    Messages:
    97
    Likes Received:
    0
    Location:
    Blue Mountains, NSW, Australia
    "Project Use" doesn't stick

    Hi,

    From what I can see in the C-Gate logs the ServerX classes make a new connection to C-Gate every time they send a command. The "Project use" command in C-Gate is only effective for the connection in which it is sent - with the effect that when you issue "project use" via the command line web page it doesn't seem to "stick" - the connection to C-Gate is closed immediately after sending the command.

    As Mark pointed out if you modify the sample.jsp to include your project name and specify the application then it is all good.

    I guess these pages are only meant to be an example of using the supplied java classes. If I were to build a system based on ServerX I would add a configuration parameter to the web.xml file that specified the project - it is not something that should be exposed to an end-user.

    Paul
     
    paulw11, Jan 25, 2007
    #5
  6. martymonster

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    The problem is probably easily solved by setting the default project in the cgate configuration file ("C-GateConfig.txt")

    project.default=MYPROJ
     
    Richo, Jan 25, 2007
    #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.