Transmission mode selection Autosar COM layer (signal transmission properties and I-PDU transmission mode)

 

Properties of the signal transmission

Triggered property : calls Com_SendSignal () sends a service request signal includes Triggered attributes associated I-PDU transmission may be triggered, but if the transmission mode I-PDU is configured Peiodic, only the updated value of the signal, does not trigger the relevant I-PDU is sent immediately, but the trigger is sent when the next cycle comes
Pending properties : send calls have Pending attributes Com_SendSignal () service request, send the relevant I-PDU does not trigger

 

I-PDU transmission mode
Direct / n-times mode : included in the I-PDU of any signal and the signal group includes Triggered attribute update triggers sent immediately I-PDU when the level module calls Com_SendSignal () / Com_SendSignalGroup ( ) updating signal or a signal group, Com layer sends n times according to the configuration of the I-PDU needs

Periodic Mode : user-configured send cycle, will trigger the sending of the I-PDU I-PDU only when the cycle comes, the upper module calls Com_SendSignal () / Com_SendSignalGroup () is only updated content signals and signal groups

Mixed mode : Direct / n-times and Periodic mixed-mode, when the upper module calls Com_SendSignal () / Com_SendSignalGroup () sends a signal / signal groups contained in the I-PDU request, it will trigger directly the I-PDU is n times to send the same time, user configurable period of arrival will trigger the sending of the I-PDU

NONE mode : Whenever COM layer can not trigger sending I-PDU owns the transmission mode, only PduR module calls Com_TriggerTransmit () service to be able to trigger the sending of the I-PDU

 

TMC & TMS
the COM layer user may each configure two transmission modes I-PDU, ComTxModeTrue and ComTxModeFalse, when TMS is True, the corresponding I-PDU transmitted in the transmission mode setting ComTxModeTrue when TMS is False, the corresponding I-PDU transmitted in the transmission mode setting of ComTxModeFalse.

TMC
TMC transmitting side is the same signal (transmission mode condition) signal filtering mechanism calculates the receiving end, however, the signal at the transmitting end filter does not lose any signal, but only the signal value calculation for the TMC.

 

Signal filtering (TMC signals)
Com provides the following eight kinds of signal filtering :

1.ALWAYS
always pass, if a signal filtering algorithms configured to ALWAYS, then the TMC signal is always True;

2.NEVER
not always pass, if a signal filtering algorithm configured to NEVER, TMC then this signal is always False;

3.MASKED_NEW_EQUALS_X
if a signal filter algorithm is configured to MASKED_NEW_EQUALS_X, only when the new value of a bit mask according to the time equal to the set value after, TMC only this signal is equal to True;

4.MASKED_NEW_DIFFERS_X
if a signal filter algorithm is configured to MASKED_NEW_DIFFERS_X, only when the new value of the bit mask when the press is not equal to a certain value and then set, TMC only this signal is True; if

5.MASKED_NEW_DIFFERS_MASKED_OLD
If a signal filtering algorithm configured to MASKED_NEW_DIFFERS_MASKED_OLD, only if the new value and mask by value and subsequent bits are not equal to the old value and the value after the mask by bit, TMC was the signal for the True;

6.NEW_IS_WITHIN
if a signal filter algorithm configured to NEW_IS_WITHIN, only when a new value is set within a certain range, TMC only this signal is True; if

7.NEW_IS_OUTSIDE
if a signal filter algorithm is configured to NEW_IS_OUTSIDE, only when the new value is not within a set range, TMC only this signal is True; if

8.ONE_EVERY_N
if a signal filter algorithm configured to ONE_EVERY_N, the signal value is updated every N times, TMC this signal value is True;

TMS
  transmission side TMS (transmission mode is selected), a value of TMS I-PDU is determined based on TMC results of all of its subordinate signal, if there is a I-PDU subordinate signal in the at least one signal of TMC evaluates to True then when the I-PDU of TMS (selected transmission mode) is True, all TMC signals only the I-PD are calculated under to False, the I-PDU of TMS (selected transmission mode) only to False.

Based on the above:
  1, each user can configure two I-PDU transmission mode, the program is running, a I-PDU transmitted from TMS pattern is determined, if an I-PDU in accordance with the above-described TMS algorithm of the True, the True state in the transmission mode of the I-PDU will be transmitted to the user configuration.
  2, when the filter algorithm is one of a signal I-PDU is arranged under the ALWAYS, then the I-PDU has been configured by the user to transmit TMS True state to transmit mode

Guess you like

Origin www.cnblogs.com/still-smile/p/12165371.html
Recommended