vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Not Acknowledge Testing in CANoe

Last updated: 2019-07-09
Question:

Is it possible to conduct a Not Acknowledge (NAck) test in CANoe with VH6501, for example to simulate timout behavior?

Why does the disturbance of the Ack bit via VH6501 does not lead to a NAck error and what other conseqences does this have?

Answer:

It is not possible to simulate an Ack loss (NAck error) by disturbing the Ack bit.

In a setup where you have one ECU on the CAN bus which sends its frame and the VH6501 on CANoe side receives this frame, the best way to test the reaction on NAck responses is to set the VH6501 into passive mode and make sure that only one real ECU is on the bus.

In passive mode the VN6501 does not send an Ack to the ECU, but of course it also cannot send anything else, it just can receive the frames sent by the ECU (this means that in this state no Remainnig Bus Simulation is possible anymore). So by not acknowledging the frames from the ECU, the ECU will detect a NAck error and will try to retransmit the frame. You then can see in CANoe at which point no frames are sent anymore by your ECU and this way you can check the timeout behavior.

Here is an example CAPL code which shows how to set the VH6501 into passive mode (this also works for example with VN1630). In this case the VH6501 operates just as a network interface in CANoe and not as a disturbance interface.

With key <1> you deactivate the Ack and with key <2> you activate it. In this example for CAN channel 2.

Attention: An automatic reset of the CAN controller is carried out with each activation/deactivation.

/*@!Encoding:1252*/
includes
{
}

variables
{
int ret;
int channel = 2;
canSettings settings;
}

on key '1'
{
  ret = canGetConfiguration(channel, settings);
  if (ret)
  {
    Write("Getting CAN configuration parameters");
  }
  else
  {
    Write("Error: Could not get CAN configuration parameters");
  }

  settings.flags = 1;
  ret = canSetConfiguration(channel, settings);
  if(ret)
  {
    Write("Acknowledge OFF for channel %d", channel);
  }
  else
  {
    Write("Error: Could not deactivate Acknowledge");
  }
}

on key '2'
{
  ret = canGetConfiguration(channel, settings);
  if (ret)
  {
    Write("Getting CAN configuration parameters");
  }
  else
  {
    Write("Error: Could not get CAN configuration parameters");
  }

  settings.flags = 0;
  ret = canSetConfiguration(channel, settings);
  if(ret)
  {
    Write("Acknowledge ON for channel %d", channel);
  }
  else
  {
    Write("Error: Could not activate Acknowledge")

  }
}

If you would instead overwrite the Ack bit (VN6501 in active mode), the receiver would detect a bit error, which would lead to an Error Frame which then leads to a bit error at transmitter side (the ECU).  This is different than a NAck error and will lead to Bus Off on both sides.

 
Article Options
2019-07-09
Views: 692