Sending Serial Commands
Posted: Thu Sep 26, 2024 1:47 pm
Hello,
I've been working with the GTT70A, and am curious if there is a "send String" command or something similar in the GTT Designer application?
I am trying to set it up so that when I push a "start" button on my GTT screen, it will send a command "!" over serial. I noticed there is a writeSerial function in the custom scripts, but this appears to only write the string onto my GTT screen, instead of sending the data over serial. I had tried setting up the "echo" function in the custom scripts, but instead of sending a "!" it translates it into the hex value of 21, sends the string "FE FF 21 00" so that approach doesn't work either.
Is there a function that I am overlooking that can send data directly through serial on an event (ec. buttonpress), or is should I be taking a different approach to this?
I've been working with the GTT70A, and am curious if there is a "send String" command or something similar in the GTT Designer application?
I am trying to set it up so that when I push a "start" button on my GTT screen, it will send a command "!" over serial. I noticed there is a writeSerial function in the custom scripts, but this appears to only write the string onto my GTT screen, instead of sending the data over serial. I had tried setting up the "echo" function in the custom scripts, but instead of sending a "!" it translates it into the hex value of 21, sends the string "FE FF 21 00" so that approach doesn't work either.
Is there a function that I am overlooking that can send data directly through serial on an event (ec. buttonpress), or is should I be taking a different approach to this?