Is it possible to transmit error frames on to bus with CANalyzer?

811 views Asked by At

I am looking to transmit error frames onto my CAN bus at a periodic rate for testing purposes. I have CANalyzer and cannot see this as an option anywhere.

I am currently just running a wire from GND to the CAN wires to force errors on the bus but this isn't ideal.

Appreciate any help!

Thanks.

1

There are 1 answers

2
MSpiller On

You can simply call

output(errorFrame)

to send an errorframe.

If you do not want to send the errorframe on the first bus, you can add the bus name as well:

output(CAN2.errorFrame)