Heisnam
Heisnam

Reputation: 13

Is there any way to stop a particular CAN message coming from an external device on the bus in CANoe?

I am looking to test a scenario, how my software will respond to disconnection of a particular CAN message coming from an external device. This external device will send many CAN messages in the bus, so I cannot control it to stop just a particular message. Therefore, I am looking for a way in CANoe just to stop one particular CAN message coming into the bus. Please need your suggestions here. I tried to provide as much information here, if more is require kindly put in the comment. Thanks.

Upvotes: 0

Views: 1374

Answers (1)

mspiller
mspiller

Reputation: 3841

You would have to split the bus into two and configure CANoe to act as a gateway:

You need a network interface with two CAN channels. You connect your DUT to one channel (say CAN2) and the remaining bus to the other channel (CAN1).

You then configure both busses in CANoe and add a node to both busses in the simulation setup.

This node should listen to all messages received on CAN1 and output them to CAN2 and vice versa.

If you want certain messages not to reach CAN2, you have to adapt the logic of this node.

Refer to this article in the Vector knowlegde base on how to setup a gateway between two CAN busses and how to control the message flow between those busses.

Upvotes: 1

Related Questions