0

send HEX to Device using Bright Author software



Is it possible to send HEX via serial using Bright Author?

1 comment

  • 0
    Avatar
    RokuLyndon


    Yes. There's a sendbyte command you can use over the serial port. To send Hex, you have to send it byte by byte. And, you send the Decimal equivalent of the Hex Value you want to send. Looking at this table, if you wanted to send 1A in hex, you would send the decimal value 26 using the sendbyte command. To use the sendbyte command, you need to create an interactive playlist. You can open any file or event in an interactive playlist, and add a command under advanced.

    http://dl.dropbox.com/u/3480052/Screenshots/hextable.JPG


    Let's say you wanted to send the numbers 1 and 2 with the ETX (end of text) control character, but in Hex.
    So, that would be:  31h 32h 03h
    The decimal equivalent would be:49 50 3

    This is what that would look like in BrightAuthor:
    http://dl.dropbox.com/u/3480052/Screenshots/hex1.jpg


    For directions on sending Hex commands, watch this video:
    Sending Hex Commands using Send Byte

    I'm including a link below to a custom autorun that you can use with BrightAuthor that supports sending multiple bytes more easily. This only works if you use the autoxml.brs script that's listed below. The video below explains how to use a custom autorun. This is what you would use instead when sending multiple bytes separated by semicolons.

    http://dl.dropbox.com/u/3480052/Screenshots/send_multiple_bytes.JPG

    Directions for Using Custom Autorun when you publish a BrightAuthor Project
Please sign in to leave a comment.