Skip to main content

J1939ParseSHM

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

Provides data of the SDM message, which are contained in payload of the SHM message according to SAE J1939-76.

Parameters

  • pgSHM: SHM to parse. DLC of SHM shall be 8.
  • sdmPgn: Returns the PGN of the SDM.
  • sdmSourceAddress: Returns the source address of the SDM.
  • sdmDestinationAddress: Returns the destination address of the SDM.
  • sequenceNumber: Returns the sequence number of the Safety Data Group (SDG).
  • crc: Returns the SDM Data CRC.

Return Values

  • 0: SHM is successfully parsed.
  • -1: DLC of a PG is not 8 bytes.

Example

J1939CalculateCrcOfSDMJ1939ParseSHM