Sending Serial Commands

GTT Designer Software Support

Moderator: Mods

Post Reply
jvank6
LCD?
Posts: 5
Joined: Tue Aug 09, 2022 1:56 pm

Sending Serial Commands

Post 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?

Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Re: Sending Serial Commands

Post 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
Raquel Malinis
Design and Development
Matrix Orbital

Post Reply