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.
我正在开发一个 CANopen 应用程序、因此必须禁用接收到的消息过滤/屏蔽(以便在网络上接收所有消息)。 这适用于接收所有消息、但我无法确定如何检索接收到的消息的 CAN-ID (地址)。 我想它会在 IF1ARB.ID 字段中、但在接收时该字段始终为0。 我的滤波/屏蔽设置如下:
CAN_IF1MSK/bit.MXtd = 0;
CAN_IF1MSk.bit.mdir = 0;
CAN_IF1MSK.bit.MSK = 0;
CAN_IF1ARB.bit.Dir = 0;//接收方向
CAN_IF1ARB.bit.ID = 0;
CAN_IF1ARB.bit.MsgVal = 1;//邮箱被启用
CAN_IF1ARB.bit.Xtd = 0;//标准11位 ID
CAN_IF1MCTL.bit.EOB = 1;
CAN_IF1MCTL.bit.umask = 1;
CAN_IF1MCTL.bit.DLC = 0;
谢谢、
Jim
永远不介意--我的仲裁寄存器传输函数中有一个错误;无需任何响应。