uds.packet.abstract_packet
Abstract definition of packets that is common for all bus/network types.
Attributes
Alias for a sequence filled with packet or packet record objects. |
|
Alias for a packet objects tuple. |
|
Alias for a packet record objects tuple. |
|
Alias for a packet record objects sequence. |
Classes
Abstract definition of a container with packet information. |
|
Abstract definition of a packet (Network Protocol Data Unit - N_PDU). |
|
Abstract definition of a storage for historic information about transmitted or received packet. |
Module Contents
- class uds.packet.abstract_packet.AbstractPacketContainer[source]
Bases:
abc.ABC
Abstract definition of a container with packet information.
- property raw_frame_data: bytes
- Abstractmethod:
- Return type:
Raw data bytes of a frame that carries this packet.
- property packet_type: uds.packet.abstract_packet_type.AbstractPacketType
- Abstractmethod:
- Return type:
Type (N_PCI value) of this packet.
- property data_length: int | None
- Abstractmethod:
- Return type:
Optional[int]
Payload bytes number of a diagnostic message.
- property addressing_type: uds.addressing.AddressingType
- Abstractmethod:
- Return type:
uds.addressing.AddressingType
Addressing for which this packet is relevant.
- class uds.packet.abstract_packet.AbstractPacket[source]
Bases:
AbstractPacketContainer,abc.ABC
Abstract definition of a packet (Network Protocol Data Unit - N_PDU).
- class uds.packet.abstract_packet.AbstractPacketRecord(frame, direction, transmission_time, transmission_timestamp)[source]
Bases:
AbstractPacketContainer,abc.ABC
Abstract definition of a storage for historic information about transmitted or received packet.
Create a record of historic information about a packet.
- Parameters:
frame (Any) – Frame that carried this packet.
direction (uds.addressing.TransmissionDirection) – Information whether this packet was transmitted or received.
transmission_time (datetime.datetime) – Time when this packet was transmitted on a bus/network.
transmission_timestamp (float) – Timestamp when this packet was transmitted on a bus/network.
- property frame: Any
Frame that carried this packet.
- Return type:
Any
- property direction: uds.addressing.TransmissionDirection
Information whether this packet was transmitted or received.
- Return type:
uds.addressing.TransmissionDirection
- property transmission_time: datetime.datetime
Time when this packet was transmitted on a bus/network.
- Return type:
- property transmission_timestamp: float
Timestamp when this packet was transmitted on a bus/network.
- Return type:
- uds.packet.abstract_packet.PacketsContainersSequence
Alias for a sequence filled with packet or packet record objects.
- uds.packet.abstract_packet.PacketsTuple
Alias for a packet objects tuple.
- uds.packet.abstract_packet.PacketsRecordsTuple
Alias for a packet record objects tuple.
- uds.packet.abstract_packet.PacketsRecordsSequence
Alias for a packet record objects sequence.