0

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.

Matt
  • 1
  • Maybe it would be sufficient to hook up a 2nd instance of the software and have it send frames with the wrong baudrate at even periods? Like if you go for 10bps, each such frame will dead certain give stuffing errors in case you are running on the more common baudrates >125kbps. – Lundin Jan 27 '21 at 12:20

1 Answers1

0

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)
MSpiller
  • 3,500
  • 2
  • 12
  • 24