7.7.34. J1939 DM8 transmit (pj1939_Dm8Transmit)

Transmit a J1939/73 DM8 message containing the test results for one of the non-continuously monitored tests invoked using DM7. Refer to J1939-73 FEB2010 section 5.7.8 for details.

7.7.34.1. Supported targets

All targets

7.7.34.2. Required license

EXT_DIAG (Extended diagnostics library). (See Section 2.3, “Licensed Features”.)

7.7.34.3. Description

A J1939/73 DM8 message is a variable length message. The DM8 message contains the test results corresponding to commanded tests received in DM7 messages (refer to the pj1939_Dm7Decode block). Test results data is supplied internally by the platform via the PPR feature (see the ppr_DiagnosticTestEntity block). As the message is variable in length and contains data maintained internally by the platform, direct support for the DM8 message is provided (rather than using the pj1939_PgTransmit block).

7.7.34.4. Inports

  • sim_error_flag

    The simulation inport for the error_flag outport.

    Value type:Boolean
    Calibratable:No
  • sim_transport_errors

    Simulation value of the outport transport_errors.

    Value type:Integer
    Calibratable:No
  • transmit

    Set to 1 to transmit a DM8 message, set to zero otherwise.

    Range: 0 or 1.

    Value type:Boolean
    Calibratable:No
  • priority

    J1939 priority of the DM8 message to be transmitted.

    Range: [0, 7]

    Value type:Integer
    Calibratable:No
  • test_id

    The J1939 test identifier to use for obtaining test results to be transmitted in the DM8 message.

    Range: [0, 255]

    Value type:Integer
    Calibratable:No
  • dest_addr

    J1939 destination address for the DM8 message (This could be the source address of the corresponding PGN request, or the global address (255) if the request was sent to the global address). If use_dest_addr is false or a PDU2 message is shorter than 9 bytes, this value is ignored and the message is sent to the global address.

    Range: [0, 255]

    Value type:Integer
    Calibratable:No
  • use_dest_addr

    Whether to send the DM8 to a specified destination address. If false (0), the message will always be sent to the global address. Set to true (1) to allow the message to be sent to a specific destination address, such as the source address of a PGN request.

    Range: 0 or 1.

    Value type:Boolean
    Calibratable:No

7.7.34.5. Outports

  • error_flag

    Set to 1 when the DM8 message could not be buffered for transmission, or if a previous request to send a DM8 message has not completed.

    Value type:Boolean
    Calibratable:No
  • transport_errors

    Saturated count of transport errors (timeout or aborts) for this message.

    Range: [0, 255]

    Value type:Integer
    Calibratable:No

7.7.34.6. Mask parameters

  • J1939 Channel

    The logical J1939 channel on which to transmit. Must be a channel declared with a pj1939_ChannelConfiguration block.

    Value type:Integer
    Calibratable:No

7.7.34.7. Notes

None.