Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Once configured, the CAN I/O interface offers different data points to be connected with the model.

The driver's connectable points depend on its configuration (number of channels, number of messages in each channel, if a message is to be transmitted or received, etc.).

The following lists the driver connectable points for channels, transmission messages, and reception messages.

Channel Connectable Points

Connection PointDirectionDescription
Empty Transmit BufferFrom model to driver

If set to 1, software transmission buffer of the channel is emptied.

Empty Receive BufferFrom model to driver

If set to 1, software reception buffer of the channel is emptied.

Status

Connection PointDirectionDescription
API FailFrom driver to model

1 is displayed if there is a hardware API error related to the channel.

Tx Buffer OverflowFrom driver to model

1 is displayed if there is an overflow of the hardware transmission buffer of the channel.

Flags

Connection PointDirectionDescription
STAT_ERROR_PASSIVEFrom driver to model

1 is displayed if the bus is in a passive state (at least one bus error counter has passed a threshold).

The channel will now transmit Passive Error Flags on the bus.

STAT_BUS_OFFFrom driver to model

1 is displayed if the bus is off (the Tx errors counter value has passed a threshold).

The channel will not be able to send messages anymore.

STAT_ERROR_WARNINGFrom driver to model1 is displayed if at least one bus error counter has passed a certain threshold.
STAT_ERROR_ACTIVEFrom driver to model

1 is displayed if the bus is in an active error state.

The channel will now transmit Active Error Flags on the bus.

STAT_TX_PENDINGFrom driver to model1 is displayed if there are messages pending transmission.
STAT_RX_PENDINGFrom driver to model1 is displayed if there are messages in the receive buffer.
STAT_TXERRFrom driver to model

1 is displayed if there is at least one Tx error.

STAT_RXERRFrom driver to model

1 is displayed if there is at least one Rx error.

STAT_HW_OVERRUNFrom driver to model1 is displayed if there is at least one hardware buffer overflow.
STAT_SW_OVERRUNFrom driver to model1 is displayed if there is at least one software buffer overflow.

The thresholds are determined by the platform used.

  • Software buffers refer to temporary buffers that hold data going to or from the hardware.
  • Hardware buffers are the buffers present in the hardware.

Error Counters

Connection PointDirectionDescription
Tx ErrorsFrom driver to model

Value of the transmission errors counter.

Rx ErrorsFrom driver to modelValue of the reception errors counter.
Overflow ErrorsFrom driver to modelValue of the overflow errors counter.

Transmission Message Connectable Points

Connection PointDirectionDescription
Enable MessageFrom model to driverIf set to 1, the transmission of the message is enabled. Only available for non-cyclical messages.
Total SentFrom driver to modelNumber of frames sent.
IDFrom model to driverCAN identifier of the message to transmit. Only available if the message is configured with a dynamic ID.
Queue CountFrom driver to modelUtilization of the transmission buffer, shown as a percentage.

Status

Connection PointDirectionDescription
FIFO FullFrom driver to model1 is displayed if software transmission buffer of the message is full.
API FailFrom driver to model1 is displayed if a hardware API error related to the message is detected.
Tx Buffer OverflowFrom driver to model1 is displayed if overflow of the hardware transmission buffer of the message is detected.

Flags

Connection PointDirectionDescription
MSG_RTRFrom model to driverIf set to 1, the transmitted message is a Remote Transmission Request.
MSG_STDFrom model to driverIf set to 1, the message ID can be forced to be standard ID.

Data

The number and names of signal connectable points of a message to be transmitted depend on the message configuration.

Reception Message Connectable Points

Connection PointDirectionDescription
Enable MessageFrom model to driverIf set to 1, the reception of the message is enabled.
Valid Frame CountFrom driver to modelNumber of valid frames of this message received in one time step.
Total ReceivedFrom driver to modelNumber of frames received.
Queue CountFrom driver to modelUtilization of the reception buffer, shown as a percentage.

Status

Connection PointDirectionDescription
FIFO FullFrom driver to model1 is displayed if the software reception buffer of the message is full.
API FailFrom driver to model1 is displayed if a hardware API error related to the message is detected.
No MessageFrom driver to model1 is displayed if no message has been received.

The following connectable points are available for each buffered frame:

Connection PointDirectionDescription
IDFrom driver to modelCAN identifier of the received message.
Number of Bytes ReceivedFrom driver to modelNumber of bytes of the received message.
TimestampFrom driver to modelTimestamp of the received message, in microseconds. It can be used to know the time difference between two consecutive messages.

Flags

Connection PointDirectionDescription
If set to 1 ...
MSG_RTRFrom driver to modelThe received message is a Remote Transmission Request.
MSG_STDFrom driver to modelThe received message has a standard ID.
MSG_EXTFrom driver to modelThe received message has an extended ID.
MSG_WAKEUPFrom driver to modelThis message is received in Wakeup mode.
MSG_NERRFrom driver to modelA wire fault on the bus occurred (CANL / CANH interrupted wire, CANL / CANL short-circuited).
MSG_ERROR_FRAMEFrom driver to modelThis message is an error frame.
MSG_TXACKFrom driver to modelThis message is a Tx Acknowledge.
MSG_TXRQFrom driver to modelThis message is a Tx Request.
MSG_DELAY_MSGFrom driver to modelMessage is NOT sent on the bus. The transmission of messages is delayed.
MSGERR_HW_OVERRUNFrom driver to modelHardware buffer overflow detected.
MSGERR_SW_OVERRUNFrom driver to modelSoftware buffer overflow detected.
MSGERR_STUFFFrom driver to modelBit stuffing error detected.
MSGERR_FORMFrom driver to modelFrame format error detected.
MSGERR_CRCFrom driver to modelCRC calculation error detected.
MSGERR_BIT0From driver to modelDominant bit is not properly sent.
MSGERR_BIT1From driver to modelRecessive bit is not properly sent.

Data

The number and names of signal connectable points of a message to be received depends on the message configuration.

Example

Here is an example of how sensors can be configured to exchange CAN information between the driver and the model.

ADD PIC


Please note that unused columns have been collapsed.


  • No labels