MX Foundation 4
Error Injection

The normal usage of the aperiodic service is to send accurate data on the data bus. However, for testing purposes, a facility is needed to send erroneous data on the bus. This functionality allows an application to test if the receiving LRU can recover properly from transmission errors.

The MXF_CANBUS_DATAREC.errorInj and MXF_CANBUS_DATAREC.control fields can be used for injection of errors on the data-bus.

The following code shows how to inject errors and trig a discrete line using the CAN record errorInj and control fields.

canbus.c

Updated 10/23/2023