Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET generate errors

Solved!
Go to solution
For some testing I need to do some odd error insertion and simulate bus loads and would like to know if the following is possible:
 
  1.  I would like to be able to only generate a start of frame (SoF) and nothing else of the CAN message. Then measure the time between SoF and the error frame generated by our DUT using an oscilloscope.
  2. Shorten the stuff bit between byte 7 and 8 until our DUT generates a stuff bit error.
  3. Generate a 45% bus load.

 

We are using the USB-8502 and NI-9862.

0 Kudos
Message 1 of 5
(2,539 Views)
Solution
Accepted by topic author LuckyLuke96

The only one of those I suspect you can do is the third one.  There is a decent amount of math you can do to figure out how many frames, and what payload length you need, to get a certain bus load.  You can also put another device on the bus, and ask what kind of load it sees, then increase until you get what you want.  Both Vector, and NI's bus monitor can give an estimated bus load.

 

The rest of those you likely can only achieve with custom hardware, possibly an embedded microcontroller for an FPGA.  Many CAN transceivers abstract away some of the complexity of the CAN communication details, and some of the low level details like that can't even be controlled.

0 Kudos
Message 2 of 5
(2,507 Views)

Yes I sort of figured it would not be possible but thought I would put the question out here anyway. I think I will hookup an arbitrary wave from/signal generator directly to the TX line of a CAN transciever and see if I can get it done!

 

Thanks for the response!

0 Kudos
Message 3 of 5
(2,502 Views)

To my knowledge, most users use the hardware from Vector for fault insertion.

VH6501 – CAN Disturbance Hardware & CANoe Network Interface

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 4 of 5
(2,493 Views)

Ah nice! Then maybe I will just get one those instead.

 

Thank you!

0 Kudos
Message 5 of 5
(2,484 Views)