请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS570LS3137 主题中讨论的其他器件:HALCOGEN
您好!
我正在使用 TMS570LS31HDK。 我正在 DCAN1和 DCAN2之间实施 CAN 网关。 当我使用一个 CAN 来接收消息、另一个 CAN 来发送时、所有操作都是完美的。 问题是、当我使用两个 CAN 通道来发送和接收消息时、10%会丢失。
提前感谢
此致、
Dani Gomez
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.
您好!
我正在使用 TMS570LS31HDK。 我正在 DCAN1和 DCAN2之间实施 CAN 网关。 当我使用一个 CAN 来接收消息、另一个 CAN 来发送时、所有操作都是完美的。 问题是、当我使用两个 CAN 通道来发送和接收消息时、10%会丢失。
提前感谢
此致、
Dani Gomez
您好!
我使用此代码创建队列:
while (1){ 对于(i = 0;i < 50;i++){ if (txFrames[0])[i]==1) { while (canTransmit (canREG1、txFrames[1][i]、&txFrames[2][i])=0); txFrames[0][i]= 0; } 否则、if (txFrames[0][i]=2) { while (canTransmit (canREG2、txFrames[1][i]、&txFrames[2][i])=0); txFrames[0][i]= 0; } }
我在 canMessageNotification 函数中填充 txFrames 数据。 此代码问题仍然存在。 有什么建议吗?
提前感谢