OPC server issues

Discussion in 'C-Bus OPC Server Software' started by p0rt3r, Jul 5, 2012.

  1. p0rt3r

    p0rt3r

    Joined:
    Dec 16, 2010
    Messages:
    51
    Likes Received:
    0
    Location:
    Moscow
    Hello!

    There is c-gate 2.8.0, OPC server 1.3.2, valid license key. OPC server is running in production mode. There are also 4 lighting groups to work with. When the server is restarting (using monitoring application) it says "Not all networks open" (why?). After that when opc client try to write to any of groups, error message appears "Namespace "XYZ" failed to write the value "255" to C-Gate". All of c-gate, monitoring app and client are running with administrator privileges. Log screenshot is below. Any suggestions?

    Code:
    2012 e?e 05 - 19:18:30,Normal,"Configuration file loaded"
    2012 e?e 05 - 19:18:30,Normal,"Attempting to connect to C-Gate ..."
    2012 e?e 05 - 19:18:31,Normal,"C-Gate Connected"
    2012 e?e 05 - 19:18:42,Normal,"Project ""Point"" count = 4"
    2012 e?e 05 - 19:18:42,Normal,"Project ""Network"" count = 1"
    2012 e?e 05 - 19:18:42,Normal,"Determining status of networks"
    2012 e?e 05 - 19:18:42,Normal,"Opening networks that are not yet open"
    2012 e?e 05 - 19:18:42,Normal,"Begin processing messages"
    2012 e?e 05 - 19:22:34,Error,"Namespace ""XYZ1"" failed to write the value ""255"" to C-Gate"
    2012 e?e 05 - 19:22:38,Error,"Namespace ""XYZ2"" failed to write the value ""255"" to C-Gate"
    2012 e?e 05 - 19:22:42,Error,"Namespace ""XYZ3"" failed to write the value ""255"" to C-Gate"
    2012 e?e 05 - 19:23:53,Error,"Namespace ""XYZ4"" failed to write the value ""255"" to C-Gate"
    
     
    p0rt3r, Jul 5, 2012
    #1
    1. Advertisements

  2. p0rt3r

    Goran C Forum Member

    Joined:
    Jun 7, 2012
    Messages:
    26
    Likes Received:
    0
    Location:
    Adelaide
    After restarting OPC Server, it attempts to re-initialise communications with C-Gate. At this stage OPC Server's communication with the C-Bus networks via C-Gate are not initially open. It needs to first reconnect to C-Gate in order to re-establish the connections to the network.

    From your logs it is not clear whether OPC Server has managed to re-establish connection to the C-Bus network via C-Gate, only that communications with C-Gate have been established. This would result in any requests to C-Gate being unacknowledged by C-Gate within the allowed timeout.

    Have you tried stoping and restarting your C-Gate services.

    Also i suggest that you confirm that the C-Gate service is running and that it is communicating with your C-Bus network. Check that your C-Bus network is open via Toolkit
     
    Goran C, Jul 6, 2012
    #2
    1. Advertisements

  3. p0rt3r

    p0rt3r

    Joined:
    Dec 16, 2010
    Messages:
    51
    Likes Received:
    0
    Location:
    Moscow
    Thanks, this led me to the aim. When I manually started c-bus toolkit, manually opened network, manually restarted opc server, the problem gone away. But why the opc server cannot open the network itself? How to make server to do all the work on its own?
     
    p0rt3r, Jul 7, 2012
    #3
  4. p0rt3r

    p0rt3r

    Joined:
    Dec 16, 2010
    Messages:
    51
    Likes Received:
    0
    Location:
    Moscow
    Hello!
    The unanswered issue: how to make opc-server open all the required networks on its own, to get rid of manual opening in the toolkit? The log of the server's operation is like in the first post: opening networks that are not yet open, begin processing messages, error with the first attempt to write value to a tag.
     
    p0rt3r, Aug 9, 2012
    #4
  5. p0rt3r

    Goran C Forum Member

    Joined:
    Jun 7, 2012
    Messages:
    26
    Likes Received:
    0
    Location:
    Adelaide
    OPC Server when the service starts communicates with C-Gate to open networks that are part of the C-Bus Toolkit Project automatically. There should be no need to manually open these networks via Toolkit.

    However in the event that C-Gate has crashed/hung etc OPC Server does not stop the C-Gate service and restart it. If OPC Server is constantly stating that it cannot open network then it is likely that C-Gate has crashed hence the reason i mentioned that you stop C-Gate and restart it via Toolkit, to confirm that C-Gate service has started correctly.
     
    Goran C, Aug 10, 2012
    #5
    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.