Visual Productions forum

Author Topic: COREs TCP Connections  (Read 1148 times)

July 21, 2022, 09:29:08 AM
Read 1148 times

greg-pulse

  • Member
  • *
  • Posts: 18
Hi,
I am trying to create a driver to communicate with a third part control server and I want to receive all the data from the device on connection. How can I retrieve the status of all playbacks, intensity and rate upon connection to the TCP.

Another issue I have is the data being sent from a core doesn't have a Carriage Return "\r" which means my TCP server doesn't recognize the message as there is no end and the messages keep coming until the server crashes or times out. - Is there anyway to add a carriage return to the API?

Thanks a lot,

Greg

August 22, 2022, 01:08:21 PM
Reply #1

Julien Levaufre

  • Global Moderator
  • Member
  • *****
  • Posts: 2536
    • www.visualproductions.nl
Sorry for the late answer, because of vacations we kind of missed you post.
Since then I don't know if you find a solution for your problem.

About the feedback of your core via TCP, there is currently no possibility to request the status of playbacks. For now there is only an automatic feedback information via TCP, when a value is changed. This will happen if you sent a TCP request previously to the core, then the core will store the IP address and port number. Then when any value will change, it will send the updated value to the stored IP address via TCP message.

About the carriage return issue, for now, messages sent from  core do not include any. If you are sending many messages and want to be able to parse each message, you can detect the beginning of the next message that will always be the API name of the core that you can set in the settings page.
But I will also transmit this problem to our dev team and see if they can do something for it.

I hope those informations will help you.

Julien Levaufre
Visual Productions BV

August 25, 2022, 05:43:01 PM
Reply #2

greg-pulse

  • Member
  • *
  • Posts: 18
Thanks Julien,

We found a workaround for the carriage return by receiving bytes instead of string.

For the feedback, we find this kind of critical, when our control device first connects to the VP device we would like to get the full status to show the user the current state of PBs as a feedback, hope this can be looked at :) We are using the feedback if the state changes to update our controller but we really need that 'Initial State'

August 26, 2022, 09:52:42 AM
Reply #3

Julien Levaufre

  • Global Moderator
  • Member
  • *****
  • Posts: 2536
    • www.visualproductions.nl
Hi Greg,
I am glad you found a work around for the carriage return issue.
About the feedback via TCP, I will transfert the request to the dev team and include it to their todo list, but I cannot guarantee  it will be solve any soon.
Maybe you could use UDP messages? In this case it's easy to create actions that will send back all playback values to your controller.
You did not say which controller you are using, with our Cuecore 3 you can actually send custom TCP messages and then create the feedback messages  like I said previously via UDP with Cuecore 2, Bstation2 and Quadcore.
I hope this will help you,
Julien Levaufre
Visual Productions BV

 

SMF spam blocked by CleanTalk