Skip to content

J1939Node Class

Factory entry point for opening IJ1939Node instances. Non-instantiable.

public static class J1939Node

Inheritance Object → J1939Node

Remarks

Two overloads reflect the two ownership patterns, mirroring the J1939-TP / UDS factories: - Open(ICanBus, J1939NodeOptions) — the node owns a private ICanBusService around the supplied ICanBus and disposes it on IDisposable.Dispose. Convenient for single-protocol callers. - Open(ICanBusService, J1939NodeOptions, bool) — the caller supplies an already-existing service (potentially shared with an ISO-TP / UDS / J1939-TP instance on the same bus); with leaveOpen=true (the default) the service outlives the node.

Methods

J1939Node.Open(ICanBus, J1939NodeOptions) Method

Opens a node that owns a private CanBusService around bus. Disposing the returned node disposes that service and detaches from bus; the bus itself is not disposed.

public static CanKit.Pro.J1939.IJ1939Node Open(CanKit.Abstractions.API.Can.ICanBus bus, CanKit.Pro.J1939.J1939NodeOptions options);

Parameters

bus ICanBus

options J1939NodeOptions

Returns

IJ1939Node

J1939Node.Open(ICanBusService, J1939NodeOptions, bool) Method

Opens a node bound to an already-existing service. Multiple nodes with different Name identities may share the same service to multiplex several J1939 nodes over one physical bus, or to co-exist with other protocol layers.

public static CanKit.Pro.J1939.IJ1939Node Open(CanKit.Pro.RawCan.ICanBusService service, CanKit.Pro.J1939.J1939NodeOptions options, bool leaveOpen=true);

Parameters

service ICanBusService

The demux service. Must not be null.

options J1939NodeOptions

Node options; must not be null.

leaveOpen Boolean

When true (default) disposing the node does not dispose service; the caller retains ownership.

Returns

IJ1939Node