跳转至

Specification of CAN State Manager (CANStateManager)

返回本类索引

属性 值
平台 CP
类别 SWS — 软件模块规范(Software Specification)
UID 253
规范版本 R26-11

本地文件

  • 规范 PDF: F:\Work\Standards\01_Sources\CP_SWS_CANStateManager_253\AUTOSAR_CP_SWS_CANStateManager.pdf
  • ARXML 模型: F:\Work\Standards\01_Sources\CP_SWS_CANStateManager_253\AUTOSAR_CP_SWS_CANStateManager.arxml
  • 纯文本全文: F:\Work\Standards\01_Sources\CP_SWS_CANStateManager_253\zzgen\CP_SWS_CANStateManager.complete.txt

文档简介

This specification describes the functionality, API and the configuration for the AUTOSAR Basic Software module CAN State Manager.

The AUTOSAR BSW stack specifies for each communication bus a bus specific state manager. This module shall implement the control flow for the respective bus. Like shown in the figure below, the CAN State Manager (CanSM) is a member of the Communication Service Layer. It interacts with the Communication Hardware Abstraction Layer and the System Service Layer.

模块依赖

The next sections give a brief description of configuration information and services the CanSM module requires from other modules.

章节详细内容

1. 简介与功能概述

原文标题:Introduction and functional overview

This specification describes the functionality, API and the configuration for the AUTOSAR Basic Software module CAN State Manager.

The AUTOSAR BSW stack specifies for each communication bus a bus specific state manager. This module shall implement the control flow for the respective bus. Like shown in the figure below, the CAN State Manager (CanSM) is a member of the Communication Service Layer. It interacts with the Communication Hardware Abstraction Layer and the System Service Layer.

2. 缩略语

原文标题:Acronyms and Abbreviations

The glossary below includes acronyms and abbreviations relevant to the CAN State Manager module that are not included in the .

Abbreviation / Acronym: Description:
CanIf CAN Interface
CanSM CAN State Manager
ComM Communication Manager
EcuM ECU State Manager
RX Receive
TX Transmit
SchM BSW Scheduler
BswM Basic Software Mode Manager

3. 相关文档

原文标题:Related documentation

4. 输入文档与相关标准规范

原文标题:Input documents & related standards and norms

5. 相关规范

原文标题:Related specification

AUTOSAR provides a General Specification on Basic Software modules , which is also valid for CAN State Manager.

Thus, the specification SWS BSW General shall be considered as additional and required specification for CAN State Manager.

6. 约束与假设

原文标题:Constraints and assumptions

7. 限制

原文标题:Limitations

The CanSM module can be used for CAN communication only. Its task is to operate with the CanIf module to control one or multiple underlying CAN Controllers and CAN Transceiver Drivers. Other protocols than CAN (i.e. LIN or FlexRay) are not supported.

The configured DEM event CANSM_E_MODE_REQUEST_TIMEOUT is outdated.

8. 适用的车型领域

原文标题:Applicability to car domains

The CAN State Manager module can be used for all domain applications whenever the CAN protocol is used.

9. 对其他模块的依赖

原文标题:Dependencies to other modules

The next sections give a brief description of configuration information and services the CanSM module requires from other modules.

10. ECU 状态管理器 (EcuM)

原文标题:ECU State Manager (EcuM)

The EcuM module initializes the CanSM module and interacts with the CanSM module for the CAN wakeup validation (refer to for a detailed specification of this module).

11. BSW Scheduler (SchM, part of RTE)

The BSW Scheduler module calls the main function of the CanSM module, which is necessary for the cyclic processes of the CanSM module. Refer to for a detailed specification of this module.

12. Communication 管理器 (ComM)

原文标题:Communication Manager (ComM)

The ComM module uses the API of the CanSM module to request communication modes of CAN networks, which are identified with unique network handles (refer to for a detailed specification of this module).

The CanSM module notifies the current communication mode of its CAN networks to the ComM module.

13. CAN 接口 (CanIf)

原文标题:CAN Interface (CanIf)

The CanSM module uses the API of the CanIf module to control the operating modes of the CAN controllers and CAN transceivers assigned to the CAN networks (refer to for a detailed specification of this module).

The CanIf module notifies the CanSM module about peripheral events.

14. 诊断 Event 管理器 (DEM)

原文标题:Diagnostic Event Manager (DEM)

The CanSM module reports bus specific production errors to the DEM module (refer to for a detailed specification of this module).

15. 基础软件模式管理器 (BswM)

原文标题:Basic Software Mode Manager (BswM)

The CanSM need to notify bus specific mode changes to the BswM module (refer to for a detailed specification of this module).

16. CAN 网络管理 (CanNm)

原文标题:CAN Network Management (CanNm)

The CanSM module needs to notify the partial network availability to the CanNm module and shall handle notified CanNm timeout exceptions in case of partial networking (refer to for a detailed specification of this module).

17. Default 错误 Tracer (DET)

原文标题:Default Error Tracer (DET)

The CanSM module reports development and runtime errors to the DET module. Development Errors are only reported if development error handling is switched on by configuration (refer to for a detailed specification of this module).

18. 文件结构

原文标题:File structure

19. 代码文件结构

原文标题:Code file structure

For details refer to .

20. 头文件结构

原文标题:Header file structure

Upstream requirements: ⌈ The header file CanSM.h shall export CanSM module specific types and the API CanSM_Init. ⌋

21. Version check

For details refer to .

22. 需求追踪

原文标题:Requirements Tracing

The following tables reference the requirements specified in <CITATIONS_OF_CONTRIBUTED_DOCUMENTS> and links to the fulfillment of these. Please note that if column "Satisfied by" is empty for a specific requirement this means that this requirement is not fulfilled by this document.

Requirement Description Satisfied by
The Basic Software Module shall be able to initialize variables and hardware in a separate initialization function
For each callback function it shall be specified if it is called from interrupt context or not
Basic SW module shall be able to shutdown
Classification of development errors
The return type of init() functions implemented by AUTOSAR Basic Software Modules shall be void
Callback Function Return Types for AUTOSAR BSW
All AUTOSAR Basic Software Modules shall not return specific development error codes via the API
Parameter shall be selected from multiple sets of parameters after code has been loaded and started
BSW Modules shall support post-build configuration
BSW Modules shall support multiple configuration sets
API handling in uninitialized state
Init functions shall have a pointer to a config

……本章内容较长已节选,完整内容见「本地文件」中的纯文本全文。

23. 功能规范

原文标题:Functional specification

This chapter specifies the different functions of the CanSM module in the AUTOSAR BSW architecture.

An ECU can have different communication networks. Each network has to be identified with an unique network handle. The ComM module requests communication modes from the networks. It knows by its configuration, which handle is assigned to what kind of network. In case of CAN, it uses the CanSM module.

The CanSM module is responsible for the control flow abstraction of CAN networks:

It changes the communication modes of the configured CAN networks depending on the mode requests from the ComM module.

Therefore the CanSM module uses the API of the CanIf module. The CanIf module is responsible for the control flow abstraction of the configured CAN Controllers and CAN Transceivers (the data flow abstraction of the CanIf module is not relevant for the CanSM module). Any change of the CAN Controller modes and CAN Transceiver modes will be notified by the CanIf module to the CanSM module. Depending on this notifications and state of the CAN network state machine, which the CanSM module shall implement for each configured CAN network, the CanSM module notifies the ComM and the BswM (ref.

……本章内容较长已节选,完整内容见「本地文件」中的纯文本全文。

24. 通用需求

原文标题:General requirements

Upstream requirements: ⌈ The CanSM module shall store the current network mode for each configured CAN network internally (ref. to ). ⌋

Upstream requirements: ⌈ The internally stored network modes of the CanSM module can have the values COMM_NO_COMMUNICATION, COMM_SILENT_COMMUNICATION, COMM_FULL_COMMUNICATION. ⌋

Upstream requirements: , ⌈ All effects of the CanSM state machine CANSM_BSM shall be operated in the context of the CanSM main function (ref. to ). ⌋

Upstream requirements: ⌈ If the CanSM state machine CANSM_BSM is in the state CANSM_BSM_S_NOT_INITIALIZED, it shall deny network mode requests from the ComM module (ref. to ). ⌋

Upstream requirements: ⌈ If CanSM has repeated one of the CanIf API calls CanIf_SetControllerMode (ref. to ), CanIf_SetTrcvMode (ref. to ), CanIf_ClearTrcvWufFlag (ref. ) or CanIf_CheckTrcvWakeFlag (ref. ) more often than CanSMModeRequestRepetitionMax (ref.

……本章内容较长已节选,完整内容见「本地文件」中的纯文本全文。

25. 状态 machine for each CAN 网络

原文标题:State machine for each CAN network

The diagram (ref. to Figure ) specifies the behavioral state machine of the CanSM module, which shall be implemented for each configured CAN network (ref. to )

26. Trigger:PowerOn

原文标题:Trigger: PowerOn

⌈ After PowerOn the CanSM state machines shall be in the state CANSM_BSM_NOT_INITIALIZED. ⌋

27. Trigger:CanSM_Init

原文标题:Trigger: CanSM_Init

Upstream requirements: , ⌈ If the CanSM module is requested with the function CanSM_Init, this shall trigger the CanSM state machines for all configured CAN Networks (ref. to ) with the trigger CanSM_Init. ⌋

28. Trigger:CanSM_DeInit

原文标题:Trigger: CanSM_DeInit

Upstream requirements: ⌈ If the CanSM module is requested with the function CanSM_DeInit, this shall trigger the CanSM state machines for all configured CAN Networks (ref. to ) with the trigger CanSM_DeInit. ⌋

Note: Caller of the CanSM_DeInit function has to ensure all CAN networks are in the state CANSM_NO_COMMUNICATION

29. Trigger:T_START_WAKEUP_SOURCE

原文标题:Trigger: T_START_WAKEUP_SOURCE

Upstream requirements: , ⌈ If the API request CanSM_StartWakeupSource (ref. to ) returns E_OK (ref. to ), it shall trigger the state machine with T_START_WAKEUP_SOURCE. ⌋

30. Trigger:T_STOP_WAKEUP_SOURCE

原文标题:Trigger: T_STOP_WAKEUP_SOURCE

Upstream requirements: , ⌈ If the API request CanSM_StopWakeupSource (ref. to ) returns E_OK (ref. to ), it shall trigger the state machine with T_STOP_WAKEUP_SOURCE. ⌋

31. Trigger:T_FULL_COM_MODE_REQUEST

原文标题:Trigger: T_FULL_COM_MODE_REQUEST

Upstream requirements: , ⌈ The API request CanSM_RequestComMode (ref. to ) with the parameter mode equal to COMM_FULL_COMMUNICATION shall trigger the state machine with T_FULL_COM_MODE_REQUEST, if the function parameter network matches the configuration parameter CanSMComMNetworkHandleRef (ref. to ). ⌋

32. Trigger:T_SILENT_COM_MODE_REQUEST

原文标题:Trigger: T_SILENT_COM_MODE_REQUEST

Upstream requirements: , ⌈ The API request CanSM_RequestComMode (ref. to ) with the parameter mode equal to COMM_SILENT_COMMUNICATION shall trigger the sub state machine CANSM_BSM_S_FULLCOM with T_SILENT_COM_MODE_REQUEST, which corresponds to the function parameter network and the configuration parameter CanSMComMNetworkHandleRef (ref. to ). ⌋

Rationale: Regular use case for the transition of the CanNm Network mode to the CanNm Prepare Bus-Sleep mode.

33. Trigger:T_NO_COM_MODE_REQUEST

原文标题:Trigger: T_NO_COM_MODE_REQUEST

Upstream requirements: , ⌈ The API request CanSM_RequestComMode (ref. to ) with the parameter mode equal to COMM_NO_COMMUNICATION shall trigger the state machine with T_NO_COM_MODE_REQUEST, if the function parameter network matches the configuration parameter CanSMComMNetworkHandleRef) (ref. to ). ⌋

Remark: Depending on the ComM configuration, the ComM module will request COMM_SILENT_COMMUNICATION first and then COMM_NO_COMMUNICATION or COMM_NO_COMMUNICATION directly (ComMNmVariant=LIGHT)".

34. Trigger:T_BUS_OFF

原文标题:Trigger: T_BUS_OFF

Upstream requirements: , ⌈ The callback function CanSM_ControllerBusOff (ref. to ) shall trigger the state machine CANSM_BSM for the CAN network with T_BUS_OFF, if one of its configured CAN controllers matches to the function parameter ControllerId of the callback function CanSM_ControllerBusOff. ⌋

35. Guarding condition:G_FULL_COM_MODE_REQUESTED

原文标题:Guarding condition: G_FULL_COM_MODE_REQUESTED

Upstream requirements: , ⌈ The guarding condition G_FULL_COM_MODE_REQUESTED of the CanSM_BSM state machine shall evaluate, if the latest accepted communication mode request with CanSM_RequestComMode (ref. to ) for the respective network of the state machine has been called with the parameter mode equal to COMM_FULL_COMMUNICATION. ⌋

36. Guarding condition:G_SILENT_COM_MODE_REQUESTED

原文标题:Guarding condition: G_SILENT_COM_MODE_REQUESTED

Upstream requirements: , ⌈ The guarding condition G_SILENT_COM_MODE_REQUESTED of the CanSM_BSM state machine shall evaluate, if the latest accepted communication mode request with CanSM_RequestComMode (ref. to ) for the respective network of the state machine has been called with the parameter mode equal to COMM_SILENT_COMMUNICATION. ⌋

37. Effect:E_PRE_NOCOM

原文标题:Effect: E_PRE_NOCOM

Upstream requirements: , ⌈ The effect E_PRE_NOCOM of the CanSM_BSM state machine shall call for the corresponding CAN network the API BswM_CanSM_CurrentState (ref. to ) with the parameters Network := CanSMComMNetworkHandleRef and CurrentState := CANSM_BSWM_NO_COMMUNICATION. ⌋

38. Effect:E_NOCOM

原文标题:Effect: E_NOCOM

Upstream requirements: , ⌈ The effect E_NOCOM of the CanSM_BSM state machine shall change the internally stored network mode (ref. to ) of the addressed CAN network to COMM_NO_COMMUNICATION. ⌋

Upstream requirements: , ⌈ If a communication mode request for the network is present already (ref. to ) and the stored communication mode request is COMM_NO_COMMUNICATION, then the effect E_NOCOM of the CanSM_BSM state machine shall call the API ComM_BusSM_ModeIndication (ref. to ) with the parameters Channel := CanSMComMNetworkHandleRef (ref. to ) and ComMode := COMM_NO_COMMUNICATION. ⌋

39. Effect:E_FULL_COM

原文标题:Effect: E_FULL_COM

Upstream requirements: ⌈ If ECU passive is FALSE (ref. to ), then the effect E_FULL_COM of the CanSM_BSM state machine shall call at 1^(st) place for each configured CAN controller of the CAN network the API CanIf_SetPduMode (ref. to ) with the parameters ControllerId := CanSMControllerId (ref. to ) and PduModeRequest := CANIF_ONLINE. ⌋

Upstream requirements: ⌈ If ECU passive is TRUE (ref. to ), then the effect E_FULL_COM of the CanSM_BSM state machine shall call at 1^(st) place for each configured CAN controller of the CAN network the API CanIf_SetPduMode (ref. to ) with the parameters ControllerId := CanSMControllerId (ref. to ) and PduModeRequest := CANIF_TX_OFFLINE_ACTIVE. ⌋

Upstream requirements: ⌈ After considering and in context of the effect E_FULL_COM of the CanSM_BSM state machine, the CanSM module shall call the API ComM_BusSM_ModeIndication (ref. to ) for the corresponding CAN network with the parameters Channel := CanSMComMNetworkHandleRef (ref. to ) and ComMode := COMM_FULL_COMMUNICATION. ⌋

……本章内容较长已节选,完整内容见「本地文件」中的纯文本全文。

40. Effect:E_FULL_TO_SILENT_COM

原文标题:Effect: E_FULL_TO_SILENT_COM

Upstream requirements: , ⌈ The effect E_FULL_TO_SILENT_COM of the CanSM_BSM state machine shall call at 1^(st) place for the corresponding CAN network the API BswM_CanSM_CurrentState (ref. to ) with the parameters Network := CanSMComMNetworkHandleRef and CurrentState := CANSM_BSWM_SILENT_COMMUNICATION. ⌋

Upstream requirements: , ⌈ The effect E_FULL_TO_SILENT_COM of the CanSM_BSM state machine shall call at 2^(nd) place for each configured CAN controller of the CAN network the API CanIf_SetPduMode (ref. to ) with the parameters ControllerId := CanSMControllerId (ref. to ) and PduModeRequest := CANIF_TX_OFFLINE. ⌋

Upstream requirements: , ⌈ The effect E_FULL_TO_SILENT_COM of the CanSM_BSM state machine shall call at 3^(th) place for the corresponding CAN network the API ComM_BusSM_ModeIndication (ref. to ) with the parameters Channel := CanSMComMNetworkHandleRef (ref. to ) and ComMode := COMM_SILENT_COMMUNICATION. ⌋

41. Effect:E_BR_END_FULL_COM

原文标题:Effect: E_BR_END_FULL_COM

Upstream requirements: , ⌈ The effect E_BR_END_FULL_COM of the CanSM_BSM state machine shall be the same as E_FULL_COM. ⌋

42. Effect:E_BR_END_SILENT_COM

原文标题:Effect: E_BR_END_SILENT_COM

Upstream requirements: , ⌈ The effect E_BR_END_SILENT_COM of the CanSM_BSM state machine shall be the same as E_FULL_TO_SILENT_COM. ⌋

43. Effect:E_SILENT_TO_FULL_COM

原文标题:Effect: E_SILENT_TO_FULL_COM

Upstream requirements: , ⌈ The effect E_SILENT_TO_FULL_COM of the CanSM_BSM state machine shall be the same as E_FULL_COM. ⌋

44. Sub 状态 machine CANSM_BSM_WUVALIDATION

原文标题:Sub state machine CANSM_BSM_WUVALIDATION

45. 状态 operation to do in:S_TRCV_NORMAL

原文标题:State operation to do in: S_TRCV_NORMAL

Upstream requirements: , ⌈ If for the CAN network a CAN Transceiver is configured (ref. to ), then as long the sub state machine CANSM_BSM_WUVALIDATION is in the state S_TRCV_NORMAL, the CanSM module shall operate the do action DO_SET_TRCV_MODE_NORMAL and therefore repeat for the configured CAN Transceiver of the CAN network (ref. to ) the API request CanIf_SetTrcvMode (ref. to ) with TransceiverMode equal to CANTRCV_TRCVMODE_NORMAL. ⌋

46. Guarding condition G_TRCV_NORMAL_E_OK

Upstream requirements: , ⌈ The guarding condition G_TRCV_NORMAL_E_OK of the sub state machine CANSM_BSM_WUVALIDATION shall be passed, if the API call of has returned E_OK. ⌋

47. Trigger:T_TRCV_NORMAL_INDICATED

原文标题:Trigger: T_TRCV_NORMAL_INDICATED

Upstream requirements: , ⌈ If CanSM module has got the CANTRCV_TRCVMODE_NORMAL mode indication (ref. to ) for the configured CAN Transceiver of the CAN network (ref. to ) after the respective request (ref. to ), this shall trigger the sub state machine machine CANSM_BSM_WUVALIDATION of the CAN network with T_TRCV_NORMAL_INDICATED. ⌋

48. Trigger:T_TRCV_NORMAL_TIMEOUT

原文标题:Trigger: T_TRCV_NORMAL_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for the supposed transceiver normal indication (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_WUVALIDATION of the respective network with T_TRCV_NORMAL_TIMEOUT. ⌋

49. 状态 operation to do in:S_CC_STOPPED

原文标题:State operation to do in: S_CC_STOPPED

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_WUVALIDATION is in the state S_CC_STOPPED, the CanSM module shall operate the do action DO_SET_CC_MODE_STOPPED and therefore repeat for all configured CAN controllers of the CAN network (ref. to ) the API request CanIf_SetControllerMode (ref. to ) with ControllerMode equal to CAN_CS_STOPPED, if the current CAN controller mode (ref. to ) is different. ⌋

50. Guarding condition:G_CC_STOPPED_OK

原文标题:Guarding condition: G_CC_STOPPED_OK

Upstream requirements: , ⌈ The guarding condition G_CC_STOPPED_OK of the sub state machine CANSM_BSM_WUVALIDATION shall be passed, if all API calls of have returned E_OK. ⌋

51. Trigger:T_CC_STOPPED_INDICATED

原文标题:Trigger: T_CC_STOPPED_INDICATED

Upstream requirements: , ⌈ If the CanSM module has got all mode indications (ref. to ) for the configured CAN controllers of the CAN network (ref. to ) after the respective requests to stop the CAN controllers of the CAN network (ref. to ), this shall trigger the sub state machine CANSM_BSM_WUVALIDATION of the CAN network with T_CC_STOPPED_INDICATED. ⌋

52. Trigger:T_CC_STOPPED_TIMEOUT

原文标题:Trigger: T_CC_STOPPED_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for all supposed controller stopped mode indications (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_WUVALIDATION of the respective network with T_CC_STOPPED_TIMEOUT. ⌋

53. 状态 operation to do in:S_CC_STARTED

原文标题:State operation to do in: S_CC_STARTED

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_WUVALIDATION is in the state S_CC_STARTED, the CanSM module shall operate the do action DO_SET_CC_MODE_STARTED and therefore repeat for all configured CAN controllers of the CAN network (ref. to ) the API request CanIf_SetControllerMode with ControllerMode equal to CAN_CS_STARTED, if the current CAN controller mode (ref. to ) is different. ⌋

54. Guarding condition:G_CC_STARTED_E_OK

原文标题:Guarding condition: G_CC_STARTED_E_OK

Upstream requirements: , ⌈ The guarding condition G_CC_STARTED_OK of the sub state machine CANSM_BSM_WUVALIDATION shall be passed, if all API calls of have returned E_OK. ⌋

55. Trigger:T_CC_STARTED_INDICATED

原文标题:Trigger: T_CC_STARTED_INDICATED

Upstream requirements: , ⌈ If CanSM module has got all mode indications (ref. to ) for the configured CAN controllers of the CAN network (ref. to ) after the respective requests to start the CAN controllers of the CAN network (ref. to ), this shall trigger the sub state machine CANSM_BSM_WUVALIDATION of the CAN network with T_CC_STARTED_INDICATED. ⌋

56. Trigger:T_CC_STARTED_TIMEOUT

原文标题:Trigger: T_CC_STARTED_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for all supposed controller started mode indications (ref. to), this condition shall trigger the sub state machine CANSM_BSM_WUVALIDATION of the respective network with T_CC_STARTED_TIMEOUT. ⌋

57. Sub 状态 machine:CANSM_BSM_S_PRE_NOCOM

原文标题:Sub state machine: CANSM_BSM_S_PRE_NOCOM

58. Guarding condition:CANSM_BSM_G_PN_NOT_SUPPORTED

原文标题:Guarding condition: CANSM_BSM_G_PN_NOT_SUPPORTED

Upstream requirements: , ⌈ The guarding condition CANSM_BSM_G_PN_NOT_SUPPORTED of the sub state machine CANSM_BSM_S_PRE_NO_COM shall evaluate, if the configuration parameter CanTrcvPnEnabled (ref. to ) is FALSE, which is available via the reference CanSMTransceiverId (ref. to ) or if no CanSMTransceiverId is configured at all. ⌋

59. Guarding condition:CANSM_BSM_G_PN_SUPPORTED

原文标题:Guarding condition: CANSM_BSM_G_PN_SUPPORTED

Upstream requirements: , ⌈ The guarding condition CANSM_BSM_G_PN_SUPPORTED of the sub state machine CANSM_BSM_S_PRE_NO_COM shall evaluate, if a CanSMTransceiverId (ref. to ) is configured and if the configuration parameter CanTrcvPnEnabled (ref. to ) is TRUE, which is available via the reference CanSMTransceiverId (ref. to ). ⌋

60. Sub 状态 machine:CANSM_BSM_DeinitPnSupported

原文标题:Sub state machine: CANSM_BSM_DeinitPnSupported

61. 状态 operation to do in:S_PN_CLEAR_WUF

原文标题:State operation to do in: S_PN_CLEAR_WUF

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_PN_CLEAR_WUF, the CanSM module operate the do action DO_CLEAR_TRCV_WUF and therefore repeat the API request CanIf_ClearTrcvWufFlag and use the configured Transceiver (ref. to ) as API function parameter. ⌋

62. Guarding condition:G_PN_CLEAR_WUF_E_OK

原文标题:Guarding condition: G_PN_CLEAR_WUF_E_OK

Upstream requirements: , ⌈ The guarding condition G_PN_CLEAR_WUF_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if the API call of has returned E_OK. ⌋

63. Trigger:T_CLEAR_WUF_INDICATED

原文标题:Trigger: T_CLEAR_WUF_INDICATED

Upstream requirements: , ⌈ The callback function CanSM_ClearTrcvWufFlagIndication (ref. to ) shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_CLEAR_WUF_INDICATED, if the function parameter Transceiver of CanSM_ClearTrcvWufFlagIndication matches to the configured CAN Transceiver (ref. to ) of the CAN network. ⌋

64. Trigger:T_CLEAR_WUF_TIMEOUT

原文标题:Trigger: T_CLEAR_WUF_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for the callback function CanSM_ClearTrcvWufFlagIndication (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the respective network with T_CLEAR_WUF_TIMEOUT. ⌋

65. 状态 operation to do in:S_CC_STOPPED

原文标题:State operation to do in: S_CC_STOPPED

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_CC_STOPPED, the CanSM module shall operate the do action DO_SET_CC_MODE_STOPPED and therefore repeat for all configured CAN controllers of the CAN network (ref. to ) the API request CanIf_SetControllerMode with ControllerMode equal to CAN_CS_STOPPED, if the current CAN controller mode (ref. to ) is different. ⌋

66. Guarding condition:G_CC_STOPPED_E_OK

原文标题:Guarding condition: G_CC_STOPPED_E_OK

Upstream requirements: , ⌈ The guarding condition G_CC_STOPPED_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if all API calls of have returned E_OK. ⌋

67. Trigger:T_CC_STOPPED_INDICATED

原文标题:Trigger: T_CC_STOPPED_INDICATED

Upstream requirements: , ⌈ If CanSM module has got all mode indications (ref. to ) for the configured CAN controllers of the CAN network (ref. to ) after the respective requests to stop the CAN controllers of the CAN network (ref. to ), this shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_CC_STOPPED_INDICATED. ⌋

68. Trigger:T_CC_STOPPED_TIMEOUT

原文标题:Trigger: T_CC_STOPPED_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for all supposed controller stopped mode indications (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the respective network with T_CC_STOPPED_TIMEOUT. ⌋

69. 状态 operation to do in:S_TRCV_NORMAL

原文标题:State operation to do in: S_TRCV_NORMAL

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_TRCV_NORMAL, the CanSM module shall operate the do action DO_SET_TRCV_MODE_NORMAL and therefore repeat for the configured CAN Transceiver of the CAN network (ref. to ) the API request CanIf_SetTrcvMode (ref. to ) with TransceiverMode equal to CANTRCV_TRCVMODE_NORMAL. ⌋

70. Guarding condition:G_TRCV_NORMAL_E_OK

原文标题:Guarding condition: G_TRCV_NORMAL_E_OK

Upstream requirements: , ⌈ The guarding condition G_TRCV_NORMAL_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if the API call of has returned E_OK. ⌋

71. Trigger:T_TRCV_NORMAL_INDICATED

原文标题:Trigger: T_TRCV_NORMAL_INDICATED

Upstream requirements: , ⌈ If CanSM module has got the CANTRCV_TRCVMODE_NORMAL mode indication (ref. to ) for the configured CAN Transceiver of the CAN network (ref. to ) after the respective request (ref. to ), this shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_TRCV_NORMAL_INDICATED. ⌋

72. Trigger:T_TRCV_NORMAL_TIMEOUT

原文标题:Trigger: T_TRCV_NORMAL_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for the supposed transceiver normal indication (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the respective network with T_TRCV_NORMAL_TIMEOUT. ⌋

73. 状态 operation to do in:S_TRCV_STANDBY

原文标题:State operation to do in: S_TRCV_STANDBY

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_TRCV_STANDBY, the CanSM module shall operate the do action DO_SET_TRCV_STANDBY and therefore repeat for the configured CAN Transceiver of the CAN network (ref. to ) the API request CanIf_SetTrcvMode (ref. to ) with TransceiverMode equal to CANTRCV_TRCVMODE_STANDBY. ⌋

74. Guarding condition:G_TRCV_STANDBY_E_OK

原文标题:Guarding condition: G_TRCV_STANDBY_E_OK

Upstream requirements: , ⌈ The guarding condition G_TRCV_STANDBY_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if the API call of has returned E_OK. ⌋

75. Trigger:T_TRCV_STANDBY_INDICATED

原文标题:Trigger: T_TRCV_STANDBY_INDICATED

Upstream requirements: , ⌈ If the CanSM module has got the CANTRCV_TRCVMODE_STANDBY mode indication (ref. to ) for the configured CAN Transceiver of the CAN network (ref. to ) after the respective request (ref. to ), this shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_TRCV_STANDBY_INDICATED. ⌋

76. Trigger:T_TRCV_STANDBY_TIMEOUT

原文标题:Trigger: T_TRCV_STANDBY_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for the supposed transceiver standby indication (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the respective network with T_TRCV_STANDBY_TIMEOUT. ⌋

77. 状态 operation to do in:S_CC_SLEEP

原文标题:State operation to do in: S_CC_SLEEP

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_CC_SLEEP, the CanSM module shall operate the do action DO_SET_CC_MODE_SLEEP and therefore repeat for all configured CAN controllers of the CAN network (ref. to ) the API request CanIf_SetControllerMode (ref. to ) with ControllerMode equal to CAN_CS_SLEEP, if the current CAN controller mode (ref. to ) is different. ⌋

78. Guarding condition:G_CC_SLEEP_E_OK

原文标题:Guarding condition: G_CC_SLEEP_E_OK

Upstream requirements: , ⌈ The guarding condition G_CC_SLEEP_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if all API calls of have returned E_OK. ⌋

79. Trigger:T_CC_SLEEP_INDICATED

原文标题:Trigger: T_CC_SLEEP_INDICATED

Upstream requirements: , ⌈ If CanSM module has got all mode indications (ref. to ) for the configured CAN controllers of the CAN network (ref. to ) after the respective requests to set the CAN controllers of the CAN network to sleep mode (ref. to ), this shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_CC_SLEEP_INDICATED. ⌋

80. Trigger:CANSM_BSM_T_CC_SLEEP_TIMEOUT

原文标题:Trigger: CANSM_BSM_T_CC_SLEEP_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for all supposed controller sleep mode indications (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported (ref. to Figure 7-4Figure 7-4) of the respective network with CANSM_BSM_T_CC_SLEEP_TIMEOUT. ⌋

81. 状态 operation to do in:S_CHECK_WFLAG_IN_CC_SLEEP

原文标题:State operation to do in: S_CHECK_WFLAG_IN_CC_SLEEP

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_CHECK_WFLAG_IN_CC_SLEEP, the CanSM module operate the do action DO_CHECK_WFLAG and therefore repeat the API request CanIf_CheckTrcvWakeFlag (ref. ) and use the configured CAN Transceiver of the related Network (ref. to ) as Transceiver parameter. ⌋

82. Guarding condition:G_CHECK_WFLAG_E_OK

原文标题:Guarding condition: G_CHECK_WFLAG_E_OK

Upstream requirements: , ⌈ The guarding condition G_CHECK_WFLAG_E_OK of the sub state machine CANSM_BSM_DeinitPnSupported shall be passed, if the API call of or has returned E_OK. ⌋

83. Trigger:T_CHECK_WFLAG_INDICATED

原文标题:Trigger: T_CHECK_WFLAG_INDICATED

Upstream requirements: , ⌈ The callback function CanSM_CheckTransceiverWakeFlagIndication (ref. to ) shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the CAN network with T_CHECK_WFLAG_INDICATED, if the function parameter Transceiver of CanSM_CheckTransceiverWakeFlagIndication matches to the configured CAN Transceiver (ref. to ) of the CAN network. ⌋

84. Trigger:T_CHECK_WFLAG_TIMEOUT

原文标题:Trigger: T_CHECK_WFLAG_TIMEOUT

Upstream requirements: , ⌈ After a timeout of CANSM_MODEREQ_REPEAT_TIME (ref. to ) for the callback function CanSM_CheckTransceiverWakeFlagIndication (ref. to ), this condition shall trigger the sub state machine CANSM_BSM_DeinitPnSupported of the respective network with T_CHECK_WFLAG_TIMEOUT. ⌋

85. 状态 operation to do in:S_CHECK_WFLAG_IN_NOT_CC_SLEEP

原文标题:State operation to do in: S_CHECK_WFLAG_IN_NOT_CC_SLEEP

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnSupported is in the state S_CHECK_WFLAG_IN_NOT_CC_SLEEP, the CanSM module operate the do action DO_CHECK_WFLAG and therefore repeat the API request CanIf_CheckTrcvWakeFlag (ref. ) and use the configured CAN Transceiver of the related Network (ref. to ) as Transceiver parameter. ⌋

86. Sub 状态 machine:CANSM_BSM_DeinitPnNotSupported

原文标题:Sub state machine: CANSM_BSM_DeinitPnNotSupported

87. 状态 operation to do in:S_CC_STOPPED

原文标题:State operation to do in: S_CC_STOPPED

Upstream requirements: , ⌈ As long the sub state machine CANSM_BSM_DeinitPnNotSupported is in the state S_CC_STOPPED, the CanSM module shall operate the do action DO_SET_CC_MODE_STOPPED and therefore repeat for all configured CAN controllers of the CAN network (ref. to ) the API request CanIf_SetControllerMode (ref. to ) with ControllerMode equal to CAN_CS_STOPPED, if the current CAN controller mode (ref. to ) is different. ⌋

其余 139 章(内容从略,见纯文本全文)

  1. Guarding condition:CANSM_BSM_G_CC_STOPPED_OK
  2. Trigger:T_CC_STOPPED_INDICATED
  3. Trigger:T_CC_STOPPED_TIMEOUT
  4. 状态 operation to do in:S_CC_SLEEP
  5. Guarding condition:G_CC_SLEEP_E_OK
  6. Trigger:T_CC_SLEEP_INDICATED
  7. Trigger:T_CC_SLEEP_TIMEOUT
  8. 状态 operation to do in:S_TRCV_NORMAL
  9. Guarding condition:G_TRCV_NORMAL_E_OK
  10. Trigger:T_TRCV_NORMAL_INDICATED
  11. Trigger:T_TRCV_NORMAL_TIMEOUT
  12. 状态 operation to do in:S_TRCV_STANDBY
  13. Guarding condition:G_TRCV_STANDBY_E_OK
  14. Trigger:T_TRCV_STANDBY_INDICATED
  15. Trigger:CANSM_BSM_T_TRCV_STANDBY_TIMEOUT
  16. Sub 状态 machine:CANSM_BSM_S_SILENTCOM_BOR
  17. Effect:E_BUS_OFF
  18. 状态 operation:S_RESTART_CC
  19. G_RESTART_CC_E_OK
  20. Trigger:T_RESTART_CC_INDICATED
  21. T_RESTART_CC_TIMEOUT
  22. Effect:E_TX_OFF
  23. Sub 状态 machine:CANSM_BSM_S_PRE_FULLCOM
  24. 状态 operation to do in:S_TRCV_NORMAL
  25. Guarding condition:G_TRCV_NORMAL_E_OK
  26. Trigger:T_TRCV_NORMAL_INDICATED
  27. Trigger:T_TRCV_NORMAL_TIMEOUT
  28. 状态 operation to do in:S_CC_STOPPED
  29. Guarding condition:G_CC_STOPPED_OK
  30. Trigger:T_CC_STOPPED_INDICATED
  31. Trigger:T_CC_STOPPED_TIMEOUT
  32. 状态 operation to do in:S_CC_STARTED
  33. Guarding condition:G_CC_STARTED_OK
  34. Trigger:T_CC_STARTED_INDICATED
  35. Trigger:T_CC_STARTED_TIMEOUT
  36. Sub 状态 machine CANSM_BSM_S_FULLCOM
  37. Guarding condition:G_BUS_OFF_PASSIVE
  38. Effect:E_BUS_OFF_PASSIVE
  39. Trigger:T_CHANGE_BR_REQUEST
  40. Effect:E_CHANGE_BR_BSWM_MODE
  41. Trigger:T_BUS_OFF
  42. Effect:E_BUS_OFF
  43. 状态 operation to do in:S_RESTART_CC
  44. Guarding condition:G_RESTART_CC_OK
  45. Trigger:T_RESTART_CC_INDICATED
  46. Trigger:T_RESTART_CC_TIMEOUT
  47. Effect:E_TX_OFF
  48. Guarding condition:G_TX_ON
  49. Effect:E_TX_ON
  50. Trigger:T_TX_TIMEOUT_EXCEPTION
  51. Notes
  52. Sub 状态 machine:CANSM_BSM_S_TX_TIMEOUT_EXCEPTION
  53. Trigger:T_CC_STOPPED_TIMEOUT
  54. Guarding condition:G_CC_STOPPED_E_OK
  55. 状态 operation:DO_SET_CC_MODE_STOPPED ()
  56. Trigger:T_CC_STOPPED_INDICATED
  57. Trigger:T_CC_STARTED_INDICATED
  58. Guarding condition:G_CC_STARTED_E_OK
  59. 状态 operation:DO_SET_CC_MODE_STARTED
  60. ExitPoint:TxTimeout
  61. Sub 状态 machine:CANSM_BSM_S_CHANGE_BAUDRATE
  62. 状态 operation to do on entry:DO_SET_BAUDRATE_DIRECT
  63. Guarding condition:G_SET_BAUDRATE_DIRECT_OK
  64. Guarding conditions:G_SET_BAUDRATE_DIRECT_NOT_OK
  65. 状态 operation to do in:S_CC_STOPPED
  66. Guarding condition:G_CC_STOPPED_OK
  67. Trigger:T_CC_STOPPED_INDICATED
  68. Trigger:T_CC_STOPPED_TIMEOUT
  69. Effect:E_CHANGE_BAUDRATE
  70. 状态 operation to do in:S_CC_STARTED
  71. Guarding condition:G_CC_STARTED_OK
  72. Trigger:T_CC_STARTED_INDICATED
  73. Trigger:T_CC_STARTED_TIMEOUT
  74. Guarding condition:G_NO_COM_MODE_REQUESTED
  75. Guarding condition:G_NO_COM_MODE_NOT_REQUESTED
  76. 错误分类
  77. Development 错误
  78. Runtime 错误
  79. Production 错误
  80. Extended Production 错误
  81. CANSM_E_BUS_OFF
  82. ECU online active / passive 模式
  83. Non-functional 设计 rules
  84. API 规范
  85. Imported 类型
  86. 类型定义
  87. CanSM_ConfigType
  88. CanSM_BswMCurrentStateType
  89. 定义 of symbol CANSM_BUSOFF_CONFIGURED
  90. 功能定义
  91. CanSM_Init
  92. CanSM_DeInit
  93. CanSM_RequestComMode
  94. CanSM_GetCurrentComMode
  95. CanSM_StartWakeupSource
  96. CanSM_StopWakeupSource
  97. Optional
  98. CanSM_SetBaudrate
  99. CanSM_SetEcuPassive
  100. Call-back 通知
  101. CanSM_ControllerBusOff
  102. CanSM_ControllerModeIndication
  103. CanSM_TransceiverModeIndication
  104. CanSM_TxTimeoutException
  105. CanSM_ClearTrcvWufFlagIndication
  106. CanSM_CheckTransceiverWakeFlagIndication
  107. CanSM_ConfirmPnAvailability
  108. CanSM_ConfirmCtrlPnAvailability
  109. Scheduled functions
  110. CanSM_MainFunction
  111. Expected 接口
  112. Mandatory 接口
  113. Remark:Usage of CanIf_SetPduMode
  114. Optional 接口
  115. Configurable 接口
  116. 时序图
  117. Sequence diagram CanSm_StartCanController
  118. Sequence diagram CanSm_StopCanController
  119. 配置规范
  120. How to read this chapter
  121. Containers and 配置 parameters
  122. CanSM
  123. CanSMConfiguration
  124. CanSMGeneral
  125. CanSMManagerNetwork
  126. CanSMDemEventParameterRefs
  127. 发布信息
  128. 附录
  129. 不适用需求
  130. Change history of AUTOSAR traceable items
  131. Traceable item history of this document according to AUTOSAR Release R25-11
  132. Added 规范 Items in R25-11
  133. Changed 规范 Items in R25-11
  134. Deleted 规范 Items in R25-11
  135. Traceable item history of this document according to AUTOSAR Release R24-11
  136. Added 规范 Items in R24-11
  137. Changed 规范 Items in R24-11
  138. Deleted 规范 Items in R24-11