Comando TY - Texto Pasarela
Envía mensajes de texto plano con soporte para caracteres especiales. El texto puede verse reflejado en el puerto serial o ser redirigido mediante el motor de eventos.
📋 Sintaxis
Enviar mensaje (STY)
STYmensaje| Parámetro | Descripción |
|---|---|
mensaje | Cadena de hasta 150 caracteres |
Habilitar/Deshabilitar captura
STYa| Valor | Estado |
|---|---|
E | Habilitado |
D | Deshabilitado |
Para salir del modo captura, enviar por puerto serie la secuencia +++
🎯 Destinos
| Destino | Descripción |
|---|---|
GPRS | Conexión de datos (default) |
SMa | SMS (a = 0-4) |
TRM | Puerto serial |
🔤 Caracteres Especiales
Imprimibles
!"#$%&'()*+,-./0123456789:=?@ABCDEFGHIJKLMNOP
QRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~No imprimibles (requieren codificación hex)
| Carácter | Código |
|---|---|
> | \3E |
< | \3C |
\ | \5C |
; | \3B |
💬 Ejemplos
Enviar caracteres especiales a TRM
Para enviar el mensaje >HOLA< al puerto terminal:
>STY\3EHOLA\3C;@TRM<Captura TRM a GPRS
Si el terminal captura en el puerto:
>MENSAJE DE PRUEBA<Enviará por GPRS:
>RTY\3EMENSAJE DE PRUEBA\3C;ID=EXTEST;*3D<Comando TRM a GPRS
El equipo recibe el comando vía TRM:
>STY,DESDE COMANDO TRM A GPRS<Enviará por GPRS:
>RTYDESDE COMANDO TRM A GPRS;ID=EXTEST;*7A<Comando GPRS a TRM
El equipo recibe el comando vía GPRS:
>STY,DESDE GPRS A TRM;ID=EXTEST;*32<Enviará al TRM:
DESDE GPRS A TRMSolicitud desde regla a accesorio
Cada vez que cambia la entrada IN03, envía solicitud al TRM:
>SRLA0E;TRG=IN03-;ACC={STY\3ESOLICITUD DE TRAMA ACCESORIO\3C;@TRM}<Se enviará por TRM:
>SOLICITUD DE TRAMA ACCESORIO<⚙️ Configuración
Para configurar el comportamiento del reporte TY:
Compatibilidad
MTLegacy
C3Legacy
ULLegacy
SPLegacy
C5Legacy
ZE-IoT
SP-IoT
SM-IoT
Ver también
Last updated on