TY Command - Gateway Text
Sends plain text messages with support for special characters. The text can be reflected to the serial port or redirected through the event engine.
📋 Syntax
Send message (STY)
STYmessage| Parameter | Description |
|---|---|
message | String of up to 150 characters |
Enable/Disable capture
STYa| Value | Status |
|---|---|
E | Enabled |
D | Disabled |
To exit capture mode, send the sequence +++ through serial port
🎯 Destinations
| Destination | Description |
|---|---|
GPRS | Data connection (default) |
SMa | SMS (a = 0-4) |
TRM | Serial port |
🔤 Special Characters
Printable
!"#$%&'()*+,-./0123456789:=?@ABCDEFGHIJKLMNOP
QRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~Non-printable (require hex encoding)
| Character | Code |
|---|---|
> | \3E |
< | \3C |
\ | \5C |
; | \3B |
💬 Examples
Send special characters to TRM
To send the message >HELLO< to the terminal port:
>STY\3EHELLO\3C;@TRM<TRM capture to GPRS
If the terminal captures at the port:
>TEST MESSAGE<Will send via GPRS:
>RTY\3ETEST MESSAGE\3C;ID=EXTEST;*3D<TRM command to GPRS
The device receives the command via TRM:
>STY,FROM TRM COMMAND TO GPRS<Will send via GPRS:
>RTYFROM TRM COMMAND TO GPRS;ID=EXTEST;*7A<GPRS command to TRM
The device receives the command via GPRS:
>STY,FROM GPRS TO TRM;ID=EXTEST;*32<Will send to TRM:
FROM GPRS TO TRMRequest from rule to accessory
Every time input IN03 changes, sends request to TRM:
>SRLA0E;TRG=IN03-;ACC={STY\3EACCESSORY FRAME REQUEST\3C;@TRM}<Will be sent via TRM:
>ACCESSORY FRAME REQUEST<⚙️ Configuration
To configure the TY report behavior:
Compatibility
MTLegacy
C3Legacy
ULLegacy
SPLegacy
C5Legacy
ZE-IoT
SP-IoT
SM-IoT
See also
Last updated