Facility Control

 View Only
  • 1.  Custom panel that controls GV K2 summit video server

    Posted 12-18-2018 12:32

    Hello everyone

    My first topic here..

    I'm trying to create an custom panel that controlling GV K2 summit video server. K2 AMP remote protocol using TCP socket connection on port 3811. So, I created listener, connected as server with delimiter "new line", and trigger the listener with buttons that uses myListener.start/stop() func. OK, its working fine, after the connection i fire command using the listener socket in that way:

    this.writeString( "cmd", false ).

    Until that point, all work fine. All commands TO video server is working.

    Now i want to get clip list, or another data from the server and show it on the panel (for example). This is the code i using inside listener task:

    if (event.isMessageEvent()) {

    ogscript.debug('GOT AN MESSAGE!');
    }

    As you see, for the beginning i want just to see that some message is received by the dashboard. But no reaction. I sending many different cmd's which requesting data, but dashboard doesn't receive a thing in an debug window.

    Where is my mistake? Maybe its delimiter type? Maybe dashboard can't work with TCP sockets?

    Please help..

    Thank you, Alex.



  • 2.  RE: Custom panel that controls GV K2 summit video server

    Posted 12-18-2018 14:12
    Hi Alex.
    Have you tried adding \r\n to your writeString call? If the server you're talking to is waiting for a newline, you'll need to explicitly send it when writing to a listener (rosstalk.sendMessage will automatically at the newline but [LISTener].writeString does not).

    If that doesn't move you forward, it might make sense to post a bit more of your code (the entire listener tag and any buttons you have created to interact with it).

    James
    #DashBoard


  • 3.  RE: Custom panel that controls GV K2 summit video server

    Posted 12-18-2018 15:23

    Hello James.

    Yes, all my commands is with \n in the end.

    Again, i do not have any trouble to send an command - i can play, stop, any transport control, change channel parameters.

    I have an trouble to get data back - for example, "a00f" which is means "getWorkingFolderRequest". I should receive an working bin and capture it with listener, right? The listener for some reason, doesn't get any data back from GV K2..

    I attaching you my test panel, pay attention that each button uses same mechanism - it's get listener object using ogscript.getObject that called "k2", which assigned to listener in task ( using ogscript.putObject).

    P.S - firewall are turned off on both client and server side..

    Thank you.

    GV-k2 CONTROL .grid


    #DashBoard


  • 4.  RE: Custom panel that controls GV K2 summit video server

    Posted 12-20-2018 09:32


  • 5.  RE: Custom panel that controls GV K2 summit video server

    Posted 01-02-2019 14:53
    Hi Alex.
    Sorry for the delayed response.
    Looking at your listener, you appear to be waiting for 0x4 (EOT) as your end of message indicator for incoming messages. It would be a little unusual to send your messages with a newline terminator and receive messages with an EOT terminator. Are you sure you shouldn't be using newline as your delimiter?

    James
    #DashBoard