Class ThirdPartyJ1708FaultRecord
- Namespace
- Geotab.StoreForward
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class ThirdPartyJ1708FaultRecord : ThirdPartyDataRecord
- Inheritance
-
ThirdPartyJ1708FaultRecord
- Inherited Members
Constructors
ThirdPartyJ1708FaultRecord()
Initializes a new instance of the ThirdPartyJ1708FaultRecord class. Creates a J1708 fault record for a third-party device.
public ThirdPartyJ1708FaultRecord()
ThirdPartyJ1708FaultRecord(string, in DateTime, byte, byte, int, bool, int?, int?)
Initializes a new instance of the ThirdPartyJ1708FaultRecord class. Creates a J1708 fault record for a third-party device.
public ThirdPartyJ1708FaultRecord(string serialNo, in DateTime dateTime, byte messageId, byte failureModeIdentifier, int occurrenceCount, bool faultStateActive = true, int? parameterId = null, int? subsystem = null)
Parameters
serialNo
stringThe serial number.
dateTime
DateTimeThe date time.
messageId
byteThe message id.
failureModeIdentifier
byteThe failure mode identifier
occurrenceCount
intThe fault count.
faultStateActive
boolThe fault state.
parameterId
int?The parameter id.
subsystem
int?The subsystem id
Fields
MaxDiagnosticCode
Maximum valid value for the diagnostic code
public const int MaxDiagnosticCode = 511
Field Value
MaxFailureModeIdentifier
Maximum valid value of the failure mode identifier
public const int MaxFailureModeIdentifier = 15
Field Value
Properties
FailureModeIdentifier
Gets or sets the fault mode.
public byte FailureModeIdentifier { get; set; }
Property Value
- byte
The fault mode.
FaultStateActive
Gets or sets a value indicating whether the fault state is active
public bool FaultStateActive { get; set; }
Property Value
- bool
A value indicating whether the fault state is active
MessageId
Gets or sets MID.
public byte MessageId { get; set; }
Property Value
- byte
MID.
OccurrenceCount
Gets or sets count.
public int OccurrenceCount { get; set; }
Property Value
- int
Count.
ParameterId
Gets or sets the PID. Mutually exclusive with SID.
public int? ParameterId { get; set; }
Property Value
- int?
the PID value
SubsystemId
Gets or sets the SID. Mutually exclusive with PID.
public int? SubsystemId { get; set; }
Property Value
- int?
the SID value
Methods
CreateBinaryData()
Converts the record into binary data to be inserted into the database.
public override byte[] CreateBinaryData()
Returns
- byte[]
The binary data array.
GetDataBytes()
Populates Data bytes of for J1708 record
public byte[] GetDataBytes()
Returns
- byte[]
bytes of the Data filed of the J1708 record
ValidateLowDiagnosticCode()
Ensure PID and SID are mutually Exclusive Ensure PID/SID is less than or equal to the max value
public void ValidateLowDiagnosticCode()