How to Set a Fixed Port Role for an AVB Simulation Node
The BMCA (Best Master Clock Algorithm) which is part of CANoe AVB_IL is activated per default.
If you want for instance to set the tested ECU’s port role to Slave, then please use the PtpSetProperty CAPL function in each simulated node to set it as SlavePort. This will deactivate the BCMA for this node. No Announce Message will be sent any more.
If you additionally want to deactivate the Propagation_Delay_Req message, then you have to use:
- For CANoe <= 10: In on start of the peer node the CAPL function PtpSetProperty(„RequestLogPdelayReqInterval“, 127). See also this small example.
- From CANoe 11 on: The new PtpSetProperty Property „LogPdelayReqInterval“ is allowing to adapt the time interval directly in the concerned node.
If one of the simulated ECU is supposed to be the Clock Master, then the concerned node’s port role can also be set to MasterPort using the function.
Please complete all required fields. Fields marked with * are required.