HdlcParameters Class

Parameters used in HDLC communication

Definition

Namespace: OddPrg.Protocols.Hdlc
Assembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
C#
public class HdlcParameters
Inheritance
Object    HdlcParameters

Constructors

HdlcParameters(ByteBuffer) Creates an instance of HdlcParameters using raw data returned by the server (meter)
HdlcParameters(UInt16, UInt16, UInt32, UInt32) Creates an instance of HdlcParameters using explicit parameter values

Properties

InformationSizeRx Maximal size of bytes in one packet that the client can receive (or a meter can send). It is initialized by HDLCInformationSizeRx parameter in openChannel and corrected after meters association.
InformationSizeTx Maximal size of bytes in one packet that the client can send (or a meter can receive). It is initialized by HDLCInformationSizeTx parameter in openChannel and corrected after meters association.
WindowSizeRx Maximal count of packets that can be received by the client (or meter can send) without waiting for clients acknowledgement. It is initialized by HDLCInformationSizeTx parameter in openChannel and corrected after meters association.
WindowSizeTx Maximal count of packets that can be sent by the client (or meter can receive) without waiting for meters acknowledgement. It is initialized by HDLCInformationSizeRx parameter in openChannel and corrected after meters association.

Methods

AcceptableForBroadcast 
CreateNegotiationRequest Create data of SRNM frame that allows HDLC parameter negotiation using current property values. See GB 8.4.5.3.2.
CreateNegotiationRequest(UInt16, UInt16, UInt32, UInt32) Create data of SRNM frame that allows HDLC parameter negotiation. See GB 8.4.5.3.2.
Equals
(Overrides ObjectEquals(Object))
GetHashCode
(Overrides ObjectGetHashCode)
ParseNegotiationResponse Parses meter response on SRNM frame into HDLC parameters. If output parameters were not found in rawData, default values will be set.

See Also