0

Sending UDP codes



Hi, i do not find an answer here, so i have to ask ... Using various BrightSigns as and with external show controllers, i often have to send commands or responses from the BrightSign to external units. If i use the BrightSign's RS-232 to receive and send, i can select if i want my commands terminated with a "CR" or not, in BrightAuthor. Unfortunately it does not offer that choice for UDP. So: How can i append a "CR" to a UDP command? (e.g. to stick to a given standard protocol ...) Is there any prefix character (e.g. the backslash) to introduce hex codes, or is that beyond BA's possibilities?

3 comments

  • 0
    Avatar
    RokuLyndon


    You can't append a cr directly in brightauthor. But, it could be added to the autorun script that's generated by brightauthor. That ways, any time someone sent a udp command the cr would be attaached. Once you have this modified autorun file, you can attach it to any brighauthor project, using the custom autorun option under file, presentation properlties, autorun.

    Open the autorun.brs file with any text editor, and search for this line:

    m.udpSender.Send(parameter$)

    Then change it to this:

    m.udpSender.Send(parameter$ + chr(13))

    chr(13) is the carriage return. That should do the trick.
  • 0
    Avatar
    GeeKay


    Yay, cool.
    I didn't think about modification of the transmission ...
    Hey, and I could even add a prefix!

    That'll solve my request for the time being, but:

    If i make up my own instruction set and i want to communicate with various equipment in the same network (e.g. a show controller and also other BrightSigns) that won't do, because the other BrightSign won't recognize the CR - unless i also change the "recognition" in it's script, right?

    Well, but that's "tomorrow's business".
    Many thanks for now!
  • 0
    Avatar
    RokuLyndon


    You can modify the autorun file and publish it so that all of the brightsigns use that autorun with brightauthor.
Please sign in to leave a comment.