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

mostAmsSetSizePrefixed

Valid for: CANoe DE

Function Syntax

long mostAmsSetSizePrefixed(long channel, long minlength);

Description

Configures the minimum length of an AMS message above which an initiating message with TelID== 4 is sent.

Parameters

  • channel: Channel of the connected network interface.
  • minlength: Minimum length of an AMS message.
    • minlength == -1: use the size configured in the hardware configuration dialog, AMS page
    • minlength == 0: never send an initiating message with TelID== 4
    • minlength >= 46: send an initiating message with TelID== 4, when the length of the AMS message is >= minlength
    • Note: Maximum value of minlength is 65535 (0xFFFF), since this is the maximum size of an AMS message.

Return Values

Example

Activate special size prefix length for exactly one AMS message.
mostAmsSetSizePrefixed(1, 46);
mostAmsOutput(1, "Telephone.List.Status(0,1,2,3,4,5,6,7)");
mostAmsSetSizePrefixed(1, -1);
Activate special size prefix length for AMS messages with more than 200 bytes payload.
mostAmsSetSizePrefixed(1, 200);