J1939Pgn Class¶
Helpers for SAE J1939 Parameter Group Number classification.
Inheritance Object → J1939Pgn
Fields¶
J1939Pgn.AddressClaimed Field¶
Address Claimed PGN, 60928 (0xEE00).
Field Value¶
J1939Pgn.CannotClaim Field¶
Cannot Claim Address uses the Address Claimed PGN with source address 0xFE.
Field Value¶
J1939Pgn.GlobalAddress Field¶
J1939 global destination address.
Field Value¶
J1939Pgn.MaxValue Field¶
Largest valid 18-bit J1939 PGN value.
Field Value¶
J1939Pgn.NullAddress Field¶
J1939 null source address used by Cannot Claim Address.
Field Value¶
J1939Pgn.Pdu2StartFormat Field¶
First PDU2 PDU Format value; PF values below this are PDU1.
Field Value¶
J1939Pgn.Request Field¶
Request PGN, 59904 (0xEA00).
Field Value¶
J1939Pgn.TpCm Field¶
Transport Protocol Connection Management PGN, 60416 (0xEC00).
Field Value¶
J1939Pgn.TpCmControlBam Field¶
TP.CM control byte for Broadcast Announce Message.
Field Value¶
J1939Pgn.TpDt Field¶
Transport Protocol Data Transfer PGN, 60160 (0xEB00).
Field Value¶
Methods¶
J1939Pgn.GetGroupExtension(uint) Method¶
Extracts the PDU2 group extension byte from a PGN, or 0 for PDU1 PGNs.
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.GetPduFormat(uint) Method¶
Extracts the PDU Format byte from a PGN.
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsAddressClaim(uint) Method¶
Returns true when the PGN is Address Claimed (0xEE00).
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsBam(uint, byte) Method¶
Returns true when a frame is TP.CM and its first payload byte is the BAM control byte.
Parameters¶
pgn UInt32
tpCmControlByte Byte
Returns¶
J1939Pgn.IsBamControlByte(byte) Method¶
Returns true when a TP.CM control byte is Broadcast Announce Message.
Parameters¶
controlByte Byte
Returns¶
J1939Pgn.IsCannotClaim(J1939Fields) Method¶
Returns true when decomposed fields represent Cannot Claim Address.
Parameters¶
fields J1939Fields
Returns¶
J1939Pgn.IsPdu1(byte) Method¶
Returns true when a PDU Format value denotes PDU1, where PS is a destination address.
Parameters¶
pduFormat Byte
Returns¶
J1939Pgn.IsPdu1(uint) Method¶
Returns true when a PGN denotes PDU1, where the low byte is not a group extension.
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsPdu2(byte) Method¶
Returns true when a PDU Format value denotes PDU2, where PS is a group extension.
Parameters¶
pduFormat Byte
Returns¶
J1939Pgn.IsPdu2(uint) Method¶
Returns true when a PGN denotes PDU2, where the low byte is a group extension.
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsRequest(uint) Method¶
Returns true when the PGN is Request (0xEA00).
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsTransportCm(uint) Method¶
Returns true when the PGN is TP.CM (0xEC00).
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.IsTransportDt(uint) Method¶
Returns true when the PGN is TP.DT (0xEB00).
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.Normalize(uint) Method¶
Normalizes a PGN by clearing the low byte for PDU1 values.
Parameters¶
pgn UInt32
Returns¶
J1939Pgn.TryGetGroupExtension(uint, byte) Method¶
Tries to extract a PDU2 group extension byte from a PGN.
Parameters¶
pgn UInt32
groupExtension Byte
Returns¶
Boolean
True for PDU2 PGNs; false for PDU1 PGNs.