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.

TMS570LS1227 CAN帧长度提取与设定?

Other Parts Discussed in Thread: HALCOGEN

你好,

使用HALCOGEN设定CAN帧时长度是固定的。生成的代码也不提供帧长度设定函数(发送)以及帧长度读取(接收)。怎样才能实现呢?

谢谢

  • Zhihui,

      CAN的协议里面是支持不同的报文帧数据长度的,报文里面有一个三位的数据位来指示数据的长度,最大是八个字节的数据。

    如果你需要发送不同的数据长度,需要在发送端和接收端设定一样的CAN格式。这样才能方便接收端正常的解析报文,提取正确的数据。

    你可以再看下Halcogen里面关于messagebox的设置。

    谢谢