C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2019-6-14
发表于 2023-11-8 14:23:51 |显示全部楼层
7.10PretendedNetworking
需求:

  • If some or all of the     functionality of an ECU is temporarily not required, e.g., based on the     vehicle state, the ECU can enter a “Pretended Networking” mode. In this     mode, the MCU and/or peripherals are switched into a low-power mode.

前提:

  • Only the ICOM and     the connected transceivers stay active. The ICOM generates a wakeup event,     caused by, e.g. a received bus message, when the ECU needs to resume     operation.
  • Depending on the ICOM     implementation, message ID and payload of received messages may either be     evaluated and filtered completely in hardware, require a callback     mechanism in software.

效果:

  • Depending on the     hardware implementation, the ICOM is also able to send messages. By using the ICOM to     continue to send, e.g., status messages, other nodes that rely on that message are     not affected by an ECU in Pretended Networking mode.
  • Furthermore,     Pretended Networking aims at reducing wakeup response time, i.e., the time     between a wakeup event and valid behavior of an ECU.
  • By using the ICOM to     save relevant messages during activated Pretended Networking     mode,     the application has access to the last valid signal values directly after     resuming operation. Therefore, the ECU can immediately respond to a user     request after wakeup and does not have to wait until the according message     is received again.

ICOM逻辑实现规范:

  • Support     Pretended Networking mode handling

  • [SWS_CAN_00497],对CAN控制器初始化以后,停用Pretended     Networking。

  • Activation     of Pretended Networking

  • [SWS_CAN_00462],通过调用Can_SetIcomConfiguration()接口并携带配置IDID不能为0),激活Pretended     Networking。
  • [SWS_CAN_00464],CanDrv负责根据所选配置的CanIcomConfig参数(CanIcomConfigId)实行CAN控制器(包括ICOM)的重新配置。
  • [SWS_CAN_00467],如果激活成功,则应调用CanIf_CurrentComConfiguration(),并将参数Error设置为ICOM_SWITCH_E_OK。如果激活不成功,则应调用CanIf_CurrentComConfiguration(),并将参数Error设置为ICOM_SWITCH     _E_FAILED。
  • [SWS_CAN_00468],如果激活了Pretended     Networking,如果且仅当接收到的消息与CanIcomConfig的唤醒条件匹配时(请参见CanIcomWakeuPauses),CanDrv应调用CanIf_RxIndication()。
  • [SWS_CAN_00470],如果激活了Pretended     Networking,CanDrv将拒绝Can_Write()调用请求,并返回CAN_BUSY。
  • [SWS_CAN_00498],在通过Can_SetControllerMode(CAN_T_START)启动CAN控制器之前,CAN驱动器应停用Pretended     Networking。

  • Deactivation     of Pretended Networking

  • [SWS_CAN_00471]CanDrv通过调用Can_SetIcomConfiguration()接口并携带配置IDID=0)停用Pretended     Networking。
  • [SWS_CAN_00472],如果Pretended     Networking被停用,CanDrv应按照正常配置中的配置正常处理消息。

  • [SWS_CAN_00474],CAN驱动器应通过调用CanIf_CurrentComConfiguration()来通知CanIfPretended     Networking切换结果。如果停用成功,则Error参数设置为ICOM_SWITCH _E_OK,否则设置为ICOS_SWITCH _E_FAILED。
  • [SWS_CAN_00499],在通过Can_SetControllerMode(CAN_T_STOP)停止CAN控制器之前,CanDrv应停用Pretended     Networking。

  • Support     autonomous sending and receiving of messages

  • [SWS_CAN_00477],只有在单独的ICOM硬件可用的情况下,才支撑Pretended     Networking模式下自动发送消息。配置参数定义是否有硬件支撑(请参阅CanIcomVariant

  • [SWS_CAN_00478],如果ICOM是在App中实现的,则Can控制器不应在Pretended     Networking模式下发送消息。
  • [SWS_CAN_00479],CanDrv应将在Pretended     Networking模式期间收到的所有接收消息转发给CanIf。





举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-11-24 11:45 , Processed in 0.244752 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图