Chinese RFC Document Remote COM Options (3)

zhaozj2021-02-08  212

Iac SB COM-Port-Option Set-Baud IAC SE

It is a command to send to the server request to set the COM port whose server request is sent by the client.

is 4 eight-bit binary (4 bytes) .Value is represented by the network standard format.

Value is the baud rate requested, a special case value is 0.

If Value is zero, the customer requests the current baud rate of the server COM port.

discuss:

After discussion, the baud rate used in the actual use is adopted instead of the baud rate table.

There are 2 main reasons.

1) It limits the use of the latest baud rate until the Value option is updated,

2) It is the greatest in the choice of baud ratio.

Iac SB COM-Port-Option Set-DataSize IAC SE

THIS Command is Sent by The Client To The Access Server To Set The Access Server To Set To

Data bit size.

This is a command from the customer to the server to set the data bit number.

It can also be used to query the current data bit size.

The value is 1 eight-bit binary (byte).

The following is a table of the Value value:

Value Data Bit Size

0 Request the current data bit size

1 can be used for future use

2 can be used for future use

3 can be used for future use

4 can be used for future use

4 can be used for future use

5 5

6 6

77

8 8

9-127 can be used for future use

Discussion: The data bit size has only 8 possible values, and four have been used, only 2 are now common.

The format recommended in the command parameters is consistent. It also reduces the number of times defined in the protocol, allowing future

Expand

IAC SB COM-port-option set-parity IAC SE

Customer to the server, set parity, and can also be used for querying. It is a 1-bit eight-bit binary (byte).

The following is a table of the Value value:

Value parity [1]

0 request the current data size

1 no

2 odd number

3 even

4 mark

5 space verification

6-127 can be used for future use

discuss:

There are only 5 values ​​commonly used now.

The format of the command parameters is recommended.

Iac SB COM-Port-Option Set-Stopsize IAC SE

Customer to the server, set STOP BITS, can also be used for query, 1 byte

Customer to the server, set STOP BITS, can also be used for query, 1 byte

The following is a table of the Value value:

Value stop bit size

0 request the current data size

1 1

twenty two

3 1.5

4-127 can be used for future use

discuss:

Stop bit 1.5 is supported by Most Com Port Hardware ONLY IF DATA SIZE IS

SET TO 5 BITS.

Stop bit 1.5 is supported by most COM ports only when the data size is set to 5 bits. It is not commonly used.

.

3. Special COM port control command

3. Special COM port control command

Customer-> server, unreasonable, limited number limit,

The server will reply to each command a confirmation information, and this information contains commands and actual values.

Customers want to get a response within a reasonable time (such as twice the delay).

Otherwise, the customer may want to resend the command that is not confirmed or terminates.

IAC SB COM-Port-Option Set-Control IAC SE Customer-> Server, special COM port option, you can also query, 1 byte

Value control command

0 COM Port Flow Control Settings Request (Outbound / Both)

1 Do not use flow control (Outbound / Both)

2 use XON / XOFF stream control (Outbound / Both)

3 use hardware flow control (Outbound / Both)

4 request interrupt status

5 Set the interrupt status ON

6 Set the interrupt status OFF

7 request DTR signal status

8 Set the DTR signal status ON

9 Set the DTR signal status OFF

10 request RTS signal status

11 Set the RTS signal status ON

12 Set the RTS signal status OFF

13 COM Port Flow Control Settings Request (Inbound)

14 Do not use flow control (Inbound)

15 Using XON / XOFF Flow Control (Inbound)

16 Use hardware flow control (Inbound)

13 COM Port Flow Control Settings Request (Inbound)

14 Do not use flow control (Inbound)

15 Using XON / XOFF Flow Control (Inbound)

16 Use hardware flow control (Inbound)

17 Use DCD Flow Control (Outbound / Both)

18 use DTR stream control (Inbound)

19 use DSR stream control (Outbound / Both)

20-127 can be used for future use

-

The time limit, I hope is ━━━ 10,000 years

━━━━━━━━━━━━━━━━━? ?━???????

转载请注明原文地址:https://www.9cbs.com/read-2885.html

New Post(0)