This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS470MF06607:DCAN 的消息 ID 和掩码--我想发送和接收所有消息

Guru**** 1821780 points
Other Parts Discussed in Thread: HALCOGEN
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/624968/tms470mf06607-message-id-and-mask-of-dcan----i-want-to-send-and-receive-all-the-messages

器件型号:TMS470MF06607
主题中讨论的其他器件:HALCOGEN

您好!

我正在尝试使用 Hercules 板开发 CAN 监听器。 为此、我要配置一个永久消息框来接收所有消息并传输所有消息。 如何操作? 为此目的使用所有可用消息框的有效方法是什么? 我试图监听扩展 ID (29位)

此致、

Shankar

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    以下是我的建议:

    从一个 HalCoGen 项目开始(HalCoGen 打算 DCAN 为不同的 DLC 和 ID 使用唯一消息框、但是用户代码可以进行更改)。

    创建两个具有扩展 ID 的消息框(一个用于具有 DLC:0的 TX、另一个用于具有 DLC:8和掩码:0的 RX)(因为您需要外部 ID)。

    传输时、将 DLC 和 CAN-ID 修改为调用 canTransmit 之前所需的值。

    对于 RX、在 canNotification 中、调用 canIsRxMessageArgrived 并在调用 canGetData 后测试 DLC 值和 CAN-ID。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的 Parker:

    非常感谢您的领导。 我将对此进行测试并验证答案。 再次感谢。

    此致、
    Shankar