Graphics

 View Only
  • 1.  Sending ASCII data syntax

    Posted 09-16-2019 08:33

    Hi,

    We would like to update match time from external source.

    For this we would like to send updates via a TCP socket connection using "ASCII Datalink Source".

     

    1. Could you please confirm that the socket connection is socket, not websocket type?

    2. If I add fields (default config) in the ASCII Datalink Source manager, would the following be the correct syntax to update them via socket connection?

    Clock=2:45
    ShotClock=12


  • 2.  RE: Sending ASCII data syntax

    Posted 09-16-2019 14:53

    It is a standard TCP socket (not a websocket).

    You cannot send key value pairs like you show.

    Instead you would send on the data like

    024512

    And then configure the ascii datalinq source to look for minutes in bytes 1&2, seconds in bytes 3&4, and shot clock in bytes 5&6.

    You can use any start and end header you like (for example, Carriage Return and Line Feed at the end of the packet).


    #XPression


  • 3.  RE: Sending ASCII data syntax

    Posted 09-16-2019 18:17

    Thanks for clarifying.

    This also means if we update 3 fields (time, score_a, score_b), and only one field has changed (time), we would always have to update all three fields ?

    Or perhaps there is a better way to do this (maybe using another protocol) ?


    #XPression


  • 4.  RE: Sending ASCII data syntax

    Posted 09-21-2019 15:24

    There is one more problem, that we would have.

    Match time can be 1:23 or 12.3, so its important to also send the delimiter.

    Can I send "01:23" via ASCII or should I use a different method to send data ?

     

    Arturs


    #XPression


  • 5.  RE: Sending ASCII data syntax

    Posted 09-22-2019 01:04

    Yes, you could allocate 5 bytes for the clock and send "01:23", or " 1:23", then when below 1 minute you can send it as " 12.3".

    As long as the number of bytes you send for the clock is always 5, just pad it with spaces if needed (and you can strip them in visual logic if needed).

     

     


    #XPression


  • 6.  RE: Sending ASCII data syntax

    Posted 01-26-2020 20:51

    Brian, thanks for your reply.

    Is there an and of line symbol expected such as "\CR\LF" ? 


    #XPression


  • 7.  RE: Sending ASCII data syntax

    Posted 02-04-2020 09:50

    Hi Brian,

    Can you please advise on the end of line symbol ?


    #XPression


  • 8.  RE: Sending ASCII data syntax

    Posted 02-04-2020 14:40


  • 9.  RE: Sending ASCII data syntax

    Posted 02-05-2020 19:01

    Thanks for clarifying!


    #XPression