Page 1 of 1

Sending Serial Commands

Posted: Thu Sep 26, 2024 1:47 pm
by jvank6
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?

Re: Sending Serial Commands

Posted: Fri Sep 27, 2024 3:41 pm
by Raquel
Hello jvank6,

Thank you for posting on the forum.
Yes, the echo function is the one to use for your requirement.

Unfortunately all reports/ response messages that the GTT returns will follow a specific packet format.
You will have to unpack the packet to get the message. (0x21 is '!')
Please refer to 'Return Messages' on the manual for more details.

Thank you,
Raquel