【问题标题】:linUpdateResponse vs Output - how are they different for LIN simulated nodes?linUpdateResponse 与输出 - LIN 模拟节点有何不同?
【发布时间】:2020-04-30 18:22:20
【问题描述】:

在 LIN 模拟从节点中,output 和 linUpdateResponse 有什么区别?

来自output docs:

To reconfigure response data of LIN frame. In that case RTR selector has to be set to 0. The LIN hardware responds to the next request of the specified frame with the newly configured data.

所以,我可以重新配置输出,下次(真的?)硬件应该会说我已经成功覆盖了它,对吧?

来自linUpdateResponse docs:

Updates the response data of a specific LIN frame.

让我设置特定帧 ID 的数据长度 (dlc) 和数据内容。

它们有何不同?是否有可用示例?我不太明白如何在提供的示例中使用后者。

【问题讨论】:

    标签: capl


    【解决方案1】:

    对于 LIN 从节点,output 和 linUpdateResponse 之间没有真正的区别。

    两者都修改(模拟的)从机的内部状态,并更改将在主机下次请求帧时发送的帧。

    正如您所发布的,使用output 时,您可以设置RTR 选择器。

    但除此之外,没有任何区别。

    我个人认为linUpdateResponse使用起来更方便。

    【讨论】:

      猜你喜欢
      • 2020-08-06
      • 1970-01-01
      • 2021-09-08
      • 1970-01-01
      • 1970-01-01
      • 2019-04-08
      • 1970-01-01
      • 2013-07-15
      • 2019-10-15
      相关资源
      最近更新 更多