Skip to content

J1939Pgn Class

Helpers for SAE J1939 Parameter Group Number classification.

public static class J1939Pgn

Inheritance Object → J1939Pgn

Fields

J1939Pgn.AddressClaimed Field

Address Claimed PGN, 60928 (0xEE00).

public const uint AddressClaimed = 60928;

Field Value

UInt32

J1939Pgn.CannotClaim Field

Cannot Claim Address uses the Address Claimed PGN with source address 0xFE.

public const uint CannotClaim = 60928;

Field Value

UInt32

J1939Pgn.GlobalAddress Field

J1939 global destination address.

public const byte GlobalAddress = 255;

Field Value

Byte

J1939Pgn.MaxValue Field

Largest valid 18-bit J1939 PGN value.

public const uint MaxValue = 262143;

Field Value

UInt32

J1939Pgn.NullAddress Field

J1939 null source address used by Cannot Claim Address.

public const byte NullAddress = 254;

Field Value

Byte

J1939Pgn.Pdu2StartFormat Field

First PDU2 PDU Format value; PF values below this are PDU1.

public const byte Pdu2StartFormat = 240;

Field Value

Byte

J1939Pgn.Request Field

Request PGN, 59904 (0xEA00).

public const uint Request = 59904;

Field Value

UInt32

J1939Pgn.TpCm Field

Transport Protocol Connection Management PGN, 60416 (0xEC00).

public const uint TpCm = 60416;

Field Value

UInt32

J1939Pgn.TpCmControlBam Field

TP.CM control byte for Broadcast Announce Message.

public const byte TpCmControlBam = 32;

Field Value

Byte

J1939Pgn.TpDt Field

Transport Protocol Data Transfer PGN, 60160 (0xEB00).

public const uint TpDt = 60160;

Field Value

UInt32

Methods

J1939Pgn.GetGroupExtension(uint) Method

Extracts the PDU2 group extension byte from a PGN, or 0 for PDU1 PGNs.

public static byte GetGroupExtension(uint pgn);

Parameters

pgn UInt32

Returns

Byte

J1939Pgn.GetPduFormat(uint) Method

Extracts the PDU Format byte from a PGN.

public static byte GetPduFormat(uint pgn);

Parameters

pgn UInt32

Returns

Byte

J1939Pgn.IsAddressClaim(uint) Method

Returns true when the PGN is Address Claimed (0xEE00).

public static bool IsAddressClaim(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.IsBam(uint, byte) Method

Returns true when a frame is TP.CM and its first payload byte is the BAM control byte.

public static bool IsBam(uint pgn, byte tpCmControlByte);

Parameters

pgn UInt32

tpCmControlByte Byte

Returns

Boolean

J1939Pgn.IsBamControlByte(byte) Method

Returns true when a TP.CM control byte is Broadcast Announce Message.

public static bool IsBamControlByte(byte controlByte);

Parameters

controlByte Byte

Returns

Boolean

J1939Pgn.IsCannotClaim(J1939Fields) Method

Returns true when decomposed fields represent Cannot Claim Address.

public static bool IsCannotClaim(CanKit.Pro.Addressing.J1939Fields fields);

Parameters

fields J1939Fields

Returns

Boolean

J1939Pgn.IsPdu1(byte) Method

Returns true when a PDU Format value denotes PDU1, where PS is a destination address.

public static bool IsPdu1(byte pduFormat);

Parameters

pduFormat Byte

Returns

Boolean

J1939Pgn.IsPdu1(uint) Method

Returns true when a PGN denotes PDU1, where the low byte is not a group extension.

public static bool IsPdu1(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.IsPdu2(byte) Method

Returns true when a PDU Format value denotes PDU2, where PS is a group extension.

public static bool IsPdu2(byte pduFormat);

Parameters

pduFormat Byte

Returns

Boolean

J1939Pgn.IsPdu2(uint) Method

Returns true when a PGN denotes PDU2, where the low byte is a group extension.

public static bool IsPdu2(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.IsRequest(uint) Method

Returns true when the PGN is Request (0xEA00).

public static bool IsRequest(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.IsTransportCm(uint) Method

Returns true when the PGN is TP.CM (0xEC00).

public static bool IsTransportCm(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.IsTransportDt(uint) Method

Returns true when the PGN is TP.DT (0xEB00).

public static bool IsTransportDt(uint pgn);

Parameters

pgn UInt32

Returns

Boolean

J1939Pgn.Normalize(uint) Method

Normalizes a PGN by clearing the low byte for PDU1 values.

public static uint Normalize(uint pgn);

Parameters

pgn UInt32

Returns

UInt32

J1939Pgn.TryGetGroupExtension(uint, byte) Method

Tries to extract a PDU2 group extension byte from a PGN.

public static bool TryGetGroupExtension(uint pgn, out byte groupExtension);

Parameters

pgn UInt32

groupExtension Byte

Returns

Boolean
True for PDU2 PGNs; false for PDU1 PGNs.