MT — MDT Mode
Configures the serial port for MDT (Mobile Data Terminal) operation. When active, the serial port receives text messages and routes them to the configured destination.
Format
- Query config:
>QMT< - Set config:
>SMT{A}[{BBB}[{CCC}{D}[{\EE}[{\FF}[{\GG}[\{HH}]]]]]][;ROUTE={I}][;POS_FLAG={J}][;BAUD_RATE={KKKKKK}][;EXT_INFO={L}]< - Response:
>RMT{A}{BBB}{CCC}{D}\{EE}\{FF}\{GG}\{HH};ROUTE={I};POS_FLAG={J};BAUD_RATE={KKKKKK};EXT_INFO={L}< - Query escape char:
>QMTE< - Set escape char:
>SMTE{A}< - Response escape char:
>RMTE{A}<
Fields
| Field | Values | Description |
|---|---|---|
A | N,P,H | MDT mode: N=Normal, P=PAD, H=Hexadecimal |
BBB | 3 digits | Packet timeout |
CCC | 3 digits or FFF | Max packet size (FFF = 1024 bytes) |
D | T,F | Include delimiter in packet: T=yes, F=no |
\EE | 2 hex digits | Delimiter 1 |
\FF | 2 hex digits | Delimiter 2 |
\GG | 2 hex digits or ** | End pad character (** to disable) |
\HH | 2 hex digits | Reserved |
ROUTE=I | 0–F (hex), U | Destination route index; U=unset |
POS_FLAG=J | T,F,NN | Position info: T=always, F=never, NN=event code |
BAUD_RATE=KKKKKK | 6 digits | Serial port baud rate (e.g., 009600) |
EXT_INFO=L | A,B,C,F | Extended info type included in message |
Examples
Set MDT to Normal mode, route to destination 0, 9600 baud:
>SMTN;ROUTE=0;BAUD_RATE=009600<
Set MDT to PAD mode with packet config:
>SMTP030FFFT\0D\0A\FF\FF;ROUTE=0;POS_FLAG=T;BAUD_RATE=009600;EXT_INFO=F<
Query current config:
>QMT<
>RMTN030FFFT\0D\0A\FF\FF;ROUTE=0;POS_FLAG=T;BAUD_RATE=009600;EXT_INFO=F<
Query escape character:
>QMTE<
>RMTE0< ← escape character disabled
Enable escape character:
>SMTE1<
Related Signals
- Use XABR to configure the RS-232 baud rate independently
- MDT messages received are forwarded to the destination set in
ROUTE