我已经实施了
DECREQTPARM
显然,一旦您能够发送查询并获得响应,您就已经知道正确的波特率、奇偶校验和字节长度。这曾经用于任何事情吗?它今天有什么用处吗?
唯一值得查询的信息是
{flags}
值,但仅用于某些扩展板。
DECREQTPARM Request Terminal Parameters
<ESC>[ {Ps} x
The host sends this sequence to request the VT100 to send a DECREPTPARM
sequence back. {Ps} can be either 0 or 1. If 0, the terminal will be
allowed to send unsolicited DECREPTPARMs. These reports will be
generated each time the terminal exits the SET-UP mode. If {Ps} is 1,
then the terminal will only generate DECREPTPARMs in response to a
request.
DECREPTPARM Report Terminal Parameters VT100 to Host
<ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
This sequence is generated by the VT100 to notify the host of the
status of selected terminal parameters. The status sequence may be
sent when requested by the host (via DECREQTPARM) or at the terminal's
discretion. On power up or reset, the VT100 is inhibited from sending
unsolicited reports.
The meanings of the sequence paramters are:
Parameter Value Meaning
------------------------------------------------------------------
{sol} 1 This message is a report.
2 This message is a report, and the terminal is
only reporting on request.
{par} 1 No parity set
4 Parity set and odd
5 Parity set and even
{nbits} 1 8 bits per character
2 7 bits per character
{xspd} 0 Speed set to 50 bps
-and- 8 Speed set to 75 bps
{rspd} 16 Speed set to 110 bps
24 Speed set to 134.5 bps
{xspd}= 32 Speed set to 150 bps
Transmit 40 Speed set to 200 bps
Speed 48 Speed set to 300 bps
56 Speed set to 600 bps
{rspd}= 64 Speed set to 1200 bps
Recieve 72 Speed set to 1800 bps
Speed 80 Speed set to 2000 bps
88 Speed set to 2400 bps
96 Speed set to 3600 bps
104 Speed set to 4800 bps
112 Speed set to 9600 bps
120 Speed set tp 19200 bps
{cmul} 1 The bit rate multiplier is 16
{flags} 0-15 This value communicates the four switch values
in block 5 of SET-UP B, which are only visible
to the user when an STP option is installed.