uds.can.packet.can_packet_record
CAN bus specific implementation of packets records.
Attributes
Alias of supported CAN frames objects. |
Classes
Definition of a CAN packet record. |
Module Contents
- uds.can.packet.can_packet_record.CanFrameAlias
Alias of supported CAN frames objects.
- class uds.can.packet.can_packet_record.CanPacketRecord(*, frame, addressing_format, addressing_type, direction, transmission_time, transmission_timestamp)[source]
Bases:
uds.can.packet.abstract_container.AbstractCanPacketContainer,uds.packet.AbstractPacketRecord
Definition of a CAN packet record.
Objects of this class act as a storage for historic information about transmitted or received CAN packet.
Create a record of historic information about a CAN packet that was either received or transmitted.
- Parameters:
frame (CanFrameAlias) – Either received or transmitted CAN frame that carried this CAN Packet.
addressing_format (uds.can.addressing.CanAddressingFormat) – CAN Addressing Format used.
addressing_type (uds.addressing.AddressingType) – Addressing type for which this CAN packet is relevant.
direction (uds.addressing.TransmissionDirection) – Information whether this packet was transmitted or received.
transmission_time (datetime.datetime) – Time stamp when this packet was fully transmitted on a CAN bus.
transmission_timestamp (float)
- property addressing_format: uds.can.addressing.CanAddressingFormat
CAN Addressing Format used by this CAN packet record.
- Return type:
uds.can.addressing.CanAddressingFormat
- property addressing_type: uds.addressing.AddressingType
Addressing type over which this CAN packet was transmitted.
- Return type:
uds.addressing.AddressingType
- property can_id: int
CAN Identifier (CAN ID) of a CAN Frame that carries this CAN packet.
- Raises:
NotImplementedError – There is missing implementation for the stored CAN Frame object type.
- Return type:
- property raw_frame_data: bytes
Raw data bytes of a CAN frame that carried this CAN packet.
- Raises:
NotImplementedError – There is missing implementation for the stored CAN Frame object type.
- Return type: