我做的CAN接收程序,用扩展标识符。上位机发送来的ExtId=0x7F,我的接收程序配置成
CAN_FilterInitStructure.CAN_FilterIdHigh= 0x0000;
CAN_FilterInitStructure.CAN_FilterIdLow =0x7F;
CAN_FilterInitStructure.CAN_FilterMaskIdHigh= 0x0000;
CAN_FilterInitStructure.CAN_FilterMaskIdLow = 0x7F;
就接收不到,而配置成CAN_FilterInitStructure.CAN_FilterMaskIdLow = 0x78; 就可以接收到,不知道为什么,发送和接收标识符不是应该一样吗? |