Skip to main content
Open topic with navigation CAPL Functions » MOST » mostConfigureBusloadEthPkt

mostConfigureBusloadEthPkt

Valid for: CANoe DE Note
This function is only available with MOST hardware VN2640.

Function Syntax

long mostConfigureBusloadEthPkt(long channel, long rate, long countertype, long counterpos, int64 srcadr, int64 destadr, long datalen, BYTE data[]);

Description

The function configures the busload generator for the Ethernet channel. As an option, the packets can be supplied with a sequence counter. Load generation can be started with the mostGenerateBusloadEthPkt function. Note
Busload can also be generated without CAPL programming using the MOST Stress Window.

Parameters

  • channel: Channel of the connected interface.
  • rate: Number of Ethernet packets per second. The maximum transmission rate depends on the packet length, the synchronous bandwidth control (SBC) and the MOST loop frequency. Due to arbitration delays, the busload actually generated can deviate from the specified rate.
  • countertype: Sequence counter type:
    • 0: No sequence counter
    • 1: 1 byte counter
    • 2: 2 byte counter (higher quality byte first)
    • 3: 3 byte counter (higher quality bytes first)
    • 4: 4 byte counter (higher quality bytes first)
  • counterpos: Position of the lowest counter byte.
  • srcadr: Source MAC address. (6 Byte). Note
    It is possible to set another source MAC address as the own one. The value “-1” is also valid and is used as wildcard to set the own MAC address.
  • destadr: Target MAC address (6 Byte).
  • dataLen: Number of data bytes to be sent (2 <= dataLen <= 1506).
  • data: Data bytes of the Ethernet packet. Note
    At least two bytes have to be sent (Ethernet Type Field). In case more than 1502 Bytes should be sent, the VLAN Tag has to be set in the first two data bytes (0x81, 0x00).

Return Values

See error codes.

Example

See mostGenerateBusloadEthPkt. mostGenerateBusloadEthPktmostSetStressNodeParametermostSetMacAdrmostSetSBC