Files
autosar_standard_spec_v4.4/SystemServices/AUTOSAR_SRS_HWTestManager.md
T

11 KiB
Raw Blame History

AUTOSAR 启动和关闭硬件测试管理器需求规范 (SRS HWTestManager)

文档元信息

项目 内容
文档标题 Requirements on Hardware Test Manager on start up and shutdown(启动和关闭硬件测试管理器需求)
文档所有者 AUTOSAR
文档责任方 AUTOSAR
文档标识号 760
文档状态 Final(最终版)
AUTOSAR 标准分类 Classic Platform(经典平台)
标准发布版本 4.4.0
原文文档号 AUTOSAR_SRS_HWTestManager

文档变更历史

日期 发布版本 变更人 变更说明
2018-10-31 4.4.0 AUTOSAR Release Management 编辑性修改
2017-12-08 4.3.1 AUTOSAR Release Management 编辑性修改
2016-11-30 4.3.0 AUTOSAR Release Management 初始发布

目录

  1. 本文档范围
  2. 使用的约定
  3. 缩略语和缩写
  4. 功能概述
    • 4.1 功能需求
  5. 需求追溯
  6. 参考文献

免责声明

本节保留原文,不进行翻译。


1. 本文档范围

本文档列出了适用于 AUTOSAR HTMSS 模块设计的各种需求。


2. 使用的约定

  • AUTOSAR 文档中需求的表示遵循 [5] 指定的表格。

  • 需求中使用以下特定语义。

  • AUTOSAR 文档中需求的表示遵循 [TPS_STDT_00078] 指定的表格。

    关键字 "MUST"、"MUST NOT"、"REQUIRED"、"SHALL"、"SHALL NOT"、"SHOULD"、"SHOULD NOT"、"RECOMMENDED"、"MAY" 和 "OPTIONAL" 的解释如下:

    • SHALL(应当):该词表示相关定义是规范的绝对要求。
    • SHALL NOT(不得):该短语表示相关定义是规范的绝对禁止。
    • MUST(必须):该词表示相关定义是出于法律问题的绝对要求。
    • MUST NOT(不应):该短语表示相关定义是出于法律约束的绝对禁止。
    • SHOULD(建议):该词或形容词 "RECOMMENDED" 表示在特定环境下可能存在忽略某一项目的有效理由。
    • SHOULD NOT(不建议):该短语或短语 "NOT RECOMMENDED" 表示在特定环境下某种行为可能是可接受的或甚至有用。
    • MAY(可以):该词或形容词 "OPTIONAL" 表示该项目是真正可选的。

3. 缩略语和缩写

缩写 描述
ADC Analog to Digital converter(模数转换器)
BIST Built In Self Test(内建自测试)
BSW Basic Software(基础软件)
ECU Electronic Control Unit(电子控制单元)
ECUM Electronic Control Unit Manager(电子控制单元管理器)
HTMSS Hardware Test Management startup shutdown(启动/关闭硬件测试管理)
MCU Micro Controller Unit(微控制器单元)
MSTP Microcontroller Specific Test Package(微控制器专用测试包)

4. 功能概述

此模块的目的是提供一个基础架构,用于在 AUTOSAR 标准软件平台中集成/转换微控制器制造商特定的启动和关闭测试(例如 BIST)测试结果/状态。

此模块的基本功能包括:从 MSTP 收集测试结果/状态、配置 MSTP 测试、启动测试执行、向 EcuM 模块和应用 SWC 提供 MSTP 测试状态以评估系统行为的测试结果。

HTMSS 模块集成在 AUTOSAR BSW 服务层级别。下图显示了 HTMSS 模块在 AUTOSAR 软件平台中的功能集成。

图 1HTMSS 交互概述

描述:HTMSS 模块与 MCU MSTP、EcuM、应用 SWC 的交互关系图。

HTMSS 模块预集成需求:

  • 应能在开发中的设备上运行微控制器专用测试包(MSTP)启动和关闭测试。
  • 测试结果/状态可由 HTMSS 模块访问。
  • 应能通过 HTMSS 模块配置 MSTP 启动和关闭测试。

4.1 功能需求

4.1.1 HTMSS 和 MSTP 测试的配置需求

4.1.1.1 [SRS_HTMSS_00001] HTMSS 应允许配置启动和关闭测试
Type:                   Valid
Description:            It shall be possible to configure the microcontroller specific
                        start up and shutdown tests
Rationale:              It is necessary to be able to select and configure the tests
                        based on HTMSS integrator requirements
Use Case:               The HTMSS configuration developer maps the microcontroller
                        specific tests in the module configuration set
Dependencies:           [SRS_HTMSS_00002]
Supporting Material:
⌋( FS_HTMSS_00001)
4.1.1.2 [SRS_HTMSS_00002] HTMSS 应允许在单个硬件资源级别上配置测试
Type:                   Valid
Description:            It shall be possible to test the individual hardware resources
                        (e.g. selected via module / channel ID) on the given hardware
Rationale:              The given hardware may contain two hardware unit for the
                        resource considered under test (e.g. 2 separate ADC hardware
                        units). In this example, it may be possible to test/obtain
                        result for each ADC unit individually.
Use Case:               The user may need to test all the hardware resources under
                        test (used and unused), since certain microcontroller
                        manufacturer may state that there is no guarantee that errors
                        in unused hardware resource do not propagate or have
                        influence on the rest of the microcontroller.
Dependencies:
Supporting Material:
⌋( FS_HTMSS_00001)

4.1.2 HTMSS 的主要功能

4.1.2.1 [SRS_HTMSS_00003] HTMSS 应提供服务以收集 MSTP 测试结果
Type:                   Valid
Description:            The HTMSS shall collect and provide the test results of all
                        executed tests
Rationale:              The MSTP test results shall be accessible
Use Case:               Having the tests results details, shall convey the fault status
                        of the microcontroller.
Dependencies:           [SRS_HTMSS_00001], [SRS_HTMSS_00002]
Supporting Material:
⌋( FS_HTMSS_00001)
4.1.2.2 [SRS_HTMSS_00004] HTMSS 应提供机制以与应用层软件共享测试结果
Type:                   Valid
Description:            The current MSTP test results shall be provided to the
                        application layer software during RUN time
Rationale:              The applicative software evaluates and react on critical
                        errors to ensure the safe state (e.g. change from normal
                        run time to a degradation mode)
Use Case:               The application software shall maintain the safe state
                        based on the test results. E.g. a critical error judged
                        according to the safety goals of the system may result in
                        going to a safe state
Dependencies:           [SRS_HTMSS_00001], [SRS_HTMSS_00002], [SRS_HTMSS_00004]
Supporting Material:
⌋( FS_HTMSS_00001)

4.1.3 HTMSS 的 ECUM 集成功能

以下 HTMSS 模块函数应集成在 ECUM 模块中。

4.1.3.1 [SRS_HTMSS_00005] HTMSS 应提供服务以在 ECUM 启动阶段配置/初始化 MSTP 测试
Type:                   Valid
Description:            It shall be possible to configure the start up and shutdown
                        tests during the ECUM start up phase via HTMSS interface
Rationale:              Initialization is required to pre-initialize the variables of
                        HTMSS and the MSTP tests
Use Case:               During MCU start up the hardware is initialised to execute
                        MSTP tests
Dependencies:           [SRS_HTMSS_00001], [SRS_HTMSS_00002]
Supporting Material:
⌋( FS_HTMSS_00001)
4.1.3.2 [SRS_HTMSS_00006] HTMSS 应提供服务以触发测试执行
Type:                   Valid
Description:            It shall be possible to trigger the start up tests during the
                        ECUM start up phase and shutdown tests during ECUM shut
                        down phase via HTMSS provided service function
Rationale:              The start up tests shall be performed during ECUM start up
                        phase and the shut down tests shall be performed during
                        the ECUM shutdown phase
Use Case:               During ECU start up and shutdown phase the configured
                        MSTP tests are triggered for its execution
Dependencies:
Supporting Material:
⌋( FS_HTMSS_00001)

4.1.4 故障操作

4.1.4.1 [SRS_HTMSS_00007] HTMSS 应提供 callout 选项以处理测试失败条件
Type:                   Valid
Description:            On test failure (critical error conditions) it shall be
                        possible to initiate error hooks as callout functions.
Rationale:              e.g. React to test failure to initiate ECU reset, safe state
                        etc...
Use Case:               The ECU software need to react to the test failures by
                        preparing the system state (e.g. reset, halt, safe state)
Dependencies:
Supporting Material:
⌋( FS_HTMSS_00001)

5. 需求追溯

需求 描述 满足于
FS_HTMSS_00001 - SRS_HTMSS_00001, SRS_HTMSS_00002, SRS_HTMSS_00003, SRS_HTMSS_00004, SRS_HTMSS_00005, SRS_HTMSS_00006, SRS_HTMSS_00007

注意:目前 HTMSS 概念结果是自包含的,因此它不引用 AUTOSAR 中的其他文档(即 FS_HTMSS_00001 在 TR_HWTestManagementIntegrationGuide 中指定)。


6. 参考文献

6.1 AUTOSAR 交付物

  • [1] Layered Software Architecture, AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
  • [2] Technical report HTMSS, TR_HWTestManagementIntegrationGuide.pdf
  • [3] Specification of HTMSS, AUTOSAR_SWS_HTMSS.pdf

6.2 相关标准和规范

  • ISO 26262 第 5 部分第 8 章 硬件架构度量要求。

翻译说明

  • 文档类型AUTOSAR SRSSoftware Requirements Specification,软件需求规范)
  • 翻译策略:本 SRS 文档(12 页)规模较小,已进行完整翻译,包括所有配置、主要功能、ECUM 集成和故障操作各阶段的需求。
  • 摘要标记位置
    • 第 5 章需求追溯:表格已完整翻译(1 行)
    • 文档较小,未使用"完整表见原文 PDF"摘要标记
  • 保留内容
    • 需求 ID(如 SRS_HTMSS_00001SRS_HTMSS_00007 等)
    • AUTOSAR 方框符 ⌈⌋
    • 所有 API 标识符、模块缩写(HTMSS、MSTP、ECUM、ADC、MCU
    • 文档间交叉引用
  • 术语对照表
    • HTMSS → 启动/关闭硬件测试管理
    • MSTP → 微控制器专用测试包
    • Test Callout → 测试回调
    • Safe State → 安全状态
    • Degradation Mode → 降级模式
    • Built In Self Test (BIST) → 内建自测试
    • Application SWC → 应用软件组件
    • ECUM → ECU 管理器