Start or Stop the Transmission of FlexRay Frames

Question:

How to stop or start the transmission of FlexRay Frames?

Answer:

Please use the following CAPL code:

variables

{
  FrFrame StatFr_TraineeECU_2 statfr2;    // Frame object in the static segment with name from DB
}

on key 'c'
{
  statfr2.fr_flags = 0x80;                // stop transmission
  FrUpdateStatFrame(statfr2);             // update buffer of the frame
}

on key 'd'
{
  statfr2.fr_flags = 0x00;                // start transmission time-triggered
  FrUpdateStatFrame(statfr2);             // update buffer of the frame
}



Article ID: 402
Last updated: 2020-04-20
Revision: 3
CANalyzer/CANoe -> CAPL -> Start or Stop the Transmission of FlexRay Frames
https://kb.vector.com/entry/402/