Table of Contents

Class ThirdPartyJ1708FaultRecord

Namespace
Geotab.StoreForward
Assembly
Geotab.Checkmate.ObjectModel.dll

false A data record class used to add J1708 fault data for third-party devices.

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 string

The serial number.

dateTime DateTime

The date time.

messageId byte

The message id.

failureModeIdentifier byte

The failure mode identifier

occurrenceCount int

The fault count.

faultStateActive bool

The 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

int

MaxFailureModeIdentifier

Maximum valid value of the failure mode identifier

public const int MaxFailureModeIdentifier = 15

Field Value

int

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()