5.1.100. SENT input — serial data (pdx_SentSerialInput)

The SENT serial input block (Single Edge Nibble Transmission) decodes a SENT sensor's transmission pulses according to SAE J2716 Jan 2010, making available the sensor's short or enhanced serial data.

5.1.100.1. Supported targets

M110-000 and M670-000

5.1.100.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.100.3. Description

The SENT input block decodes a sensor's transmission pulses according to SAE J2716 Jan 2010, making available the sensor's short or enhanced serial data. See the pdx_SentInput block for a summary of SENT.

The SENT serial input block:

  • decodes the status nibble from 16 or 18 consecutive SENT transmissions into message identification and data values;
  • stores the last received, decoded and verified serial message;
  • verifies the serial message CRC.

When using a pdx_SentSerialInput block, the application model must have a corresponding pdx_SentInput block to initialise the SENT channel.

5.1.100.4. Inports

  • sim_messages

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_crc_failures

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_valid

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_serial_format

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_message_id

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_data

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer
  • sim_timestamp

    Available when Provide simulation input? is ticked. The value of this inport is copied to the corresponding outport during model simulation.

    Value type:Integer

5.1.100.5. Outports

  • messages

    A counter incremented for each serial message that is successfully received, decoded and verified.

    Range: [0, inf] messages, modulo 256

    Value type:Integer
  • crc_failures

    A counter incremented for each serial message that is received but that fails a CRC verification.

    Range: [0, inf] messages, modulo 256

    Value type:Integer
  • valid

    Set to one if at least one serial message has been successfully received, decoded and verified, set to zero otherwise. If set to one, then the serial_formatpdxf_serial_format, message_id and data outports provide information about the last successfully received, decoded and verified message, and the timestamp outport provides the time when the message was received.

    Range: 0 or 1

    Value type:Integer
  • serial_format

    The detected serial format of the last successfully received, decoded and verified serial message. Set to zero when a serial message has not been received.

    Outport valueDescription
    0Identifies a short serial message, with a 4-bit message identifier and 8-bit data
    1Identifies an enhanced format 1 serial message, with a 8-bit message identifier and 12-bit data
    2Identifies an enhanced format 2 serial message, with a 4-bit message identifier and 16-bit data

    Value type:Integer
  • message_id

    The value of the message identifier of the last successfully received, decoded and verified serial message. Set to zero when a serial message has not yet been received.

    Range: [0, 15] for short serial and enhanced serial format 2 Range: [0, 255] for enhanced serial format 1

    Value type:Integer
  • data

    The data nibbles of the last successfully received, decoded and verified serial message. Set to zero when a serial message has not yet been received.

    Range: [0, 255] for short serial Range: [0, 8192] for enhanced format 1 Range: [0, 65535] for enhanced format 2

    Value type:Integer
  • timestamp

    A timestamp is taken when the last SENT message was fully received, decoded and verified. The timestamp increments in counts of 256, wrapping approximately every 4 seconds. The timestamp can be used by the application to determine whether the SENT sensor is transmitting data at the expected period.

    Range: [0, inf] counts, modulo 4294967296

    Value type:Integer

5.1.100.6. Mask parameters

  • Channel

    The channel pin for this SENT input.

    Value type:List
    Calibratable:No
  • Sample time

    The periodicity of the block execution.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No
  • Provide simulation input?

    If selected then the block creates simulation inports for each of the outports.

    Value type:Boolean
    Calibratable:No

5.1.100.7. Notes

None.