Skip to content

CanKit.Pro.J1939Tp Namespace

Classes
J1939Tp Factory entry point for opening IJ1939TpChannel instances. Non-instantiable.
J1939TpAbortException Raised when a J1939-21 §5.10.5 Connection Abort is issued or received on a TP.CM session, or when a BAM/TP.CM session gives up because one of T1/T2/T3/T4/Tr/Th expired.
J1939TpException Base class for every exception raised by the J1939-TP channel. Derives from CanKitException so L2/L3/L4 failures can be caught uniformly across the library (NFR-006 error architecture, arc42 ADR-12).
J1939TpOptions Configuration for a IJ1939TpChannel: J1939-21 §5.10 timing parameters, transmit priority, and per-channel bounds. All values are captured at channel construction time and treated as immutable for its lifetime.
J1939TpSendRejectedException Raised when the CAN driver rejects an outbound TP.CM / TP.DT frame.
Structs
J1939TpDatagram One fully reassembled J1939 multi-packet PDU as delivered by IJ1939TpChannel. Carries the transport-service context every J1939 application layer needs to route the message: the PGN of the announced data, the source address of the transmitter, the destination address (0xFF for BAM, the local address for TP.CM), and whether it was carried by TP.BAM or TP.CM.
Interfaces
IJ1939TpChannel One J1939-TP channel bound to a single J1939 source address on one physical bus. It carries both TP.BAM (broadcast) and TP.CM (connection-mode) sessions in parallel, each in its own actor-owned state (SRS FR-TP-034/035) so multiple concurrent peers do not interfere.
Enums
J1939TpAbortReason Connection Abort reason codes carried in byte 1 of the TP.CM Abort control frame (SAE J1939-21 §5.10.5 / A-2). The list mirrors the standard's own enumerated values so we can round-trip them on the wire without translation; callers should treat unknown values as Unknown.
J1939TpKind Discriminator for the J1939-21 §5.10 transport-service flavor.