NpduTransmitter

class mtf.network_port.npdu_transmitter.NpduTransmitter
__init__()
send_npdu(tunnel_name, frame, trg_mode=0)
send_npdus(tunnel_name, frames)
start_npdu_transmission(ecu_name, npdu_id)

Transmit multiple pdus within a npdu packet

Note

No need for tunnel configuration. Each NpduElement has the following attributes: * pdu_id * pdu_index * payload * direction * tci (VlanTci object, optional)

Parameters:
  • ecu_name – ecu name(From databex)

  • npdu_id – Npdu identifier.

Returns:

True if the transmission is started or already started. False otherwise.

stop_npdu_transmission(ecu_name, npdu_id)

Stop transmission of pdus within a npdu packet.

Note

No need for tunnel configuration. Each NpduElement has the following attributes: * pdu_id * pdu_index * payload * direction * tci (VlanTci object, optional)

Parameters:
  • ecu_name – ecu name (From databex)

  • npdu_id – Npdu identifier.

Returns:

True if the transmission is stopped. False otherwise.