Reserved bit that may be used in an agreed-upon manner in individual networks.
Reserved bit that may be used in an agreed-upon manner in individual networks.
Reserved bit that may be used in an agreed-upon manner in individual networks.
Reserved bit that may be used in an agreed-upon manner in individual networks.
ReadonlysubtypeThe specific type of frame being represented (UI, I, SABM, etc.)
ReadonlytypeWhether the frame is an unnumbered, supervisory, or information frame.
Determines in conjunction with the sourceCommandBit if the frame is a command, response, or legacy type frame.
Determines in conjunction with the sourceCommandBit if the frame is a command, response, or legacy type frame.
Whether the frame is a command frame.
Whether the frame is a legacy frame.
Whether the frame is a response frame.
Determines the number of outstanding information frames allowed per layer 2 connection at one time.
Only change this to 128 on supervisory and information frames when you are sure that you are using modulo 128, as setting it incorrectly will cause frames not to decode.
The data or "body" being carried by the frame.
Non-objects are stringified then encoded using TextEncoder. Objects are first run though JSON.stringify(), then encoded using TextEncoder. Exceptions are Uint8Array and Uint8ClampedArray objects, which are pushed directly to the payload without transformation. Use this format to transmit raw binary data.
The data or "body" being carried by the frame.
Non-objects are stringified then encoded using TextEncoder. Objects are first run though JSON.stringify(), then encoded using TextEncoder. Exceptions are Uint8Array and Uint8ClampedArray objects, which are pushed directly to the payload without transformation. Use this format to transmit raw binary data.
ProtectedreceivedExists on information and supervisory frames. Otherwise undefined. Prior to sending an information or supervisory frame, this variable is updated to equal that of the received state variable, thus implicitly acknowledging the proper reception of all frames up to and including receivedSequence - 1.
Valid values are integers 0 to 7 inclusive when using modulo 8, or integers 0 to 127 inclusive when using modulo 127.
Exists on information and supervisory frames. Otherwise undefined. Prior to sending an information or supervisory frame, this variable is updated to equal that of the received state variable, thus implicitly acknowledging the proper reception of all frames up to and including receivedSequence - 1.
Valid values are integers 0 to 7 inclusive when using modulo 8, or integers 0 to 127 inclusive when using modulo 127.
ProtectedsendFound in the control field of all information frames. Otherwise undefined. It contains the sequence number of the information frame being sent. Just prior to the transmission of the information frame, it is updated to equal the send state variable.
Valid values are integers 0 to 7 inclusive when using modulo 8, or integers 0 to 127 inclusive when using modulo 127.
Found in the control field of all information frames. Otherwise undefined. It contains the sequence number of the information frame being sent. Just prior to the transmission of the information frame, it is updated to equal the send state variable.
Valid values are integers 0 to 7 inclusive when using modulo 8, or integers 0 to 127 inclusive when using modulo 127.
Determines in conjunction with the destinationCommandBit if the frame is a command, response, or legacy type frame.
Determines in conjunction with the destinationCommandBit if the frame is a command, response, or legacy type frame.
Get the frame encoded for use with a KISS connection. This can be written to a Socket, SerialPort, etc.
a Uint8Array suitable for passing to Duplex.write().
Returns a JSON representation of the frame.
Returns a string representation of the frame.
Protected StaticencodeProtected Staticencode
Unnumbered Information Frame