Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

configure

I use PCI-CNA SERIES2 and C Language.
How to configure to only receive standard frame?
How to configure to only receive entended frame?
 
0 Kudos
Message 1 of 2
(4,973 Views)

Hi,

The following Attribute configuration for Comperator and mask  disables Standard Frame reception. Only extended Frames get received.

AttrIdList[4] =         NC_ATTR_CAN_COMP_STD;
AttrValueList[4] =      0xCFFFFFFF;
AttrIdList[5] =         NC_ATTR_CAN_MASK_STD;
AttrValueList[5] =      NC_CAN_MASK_STD_MUSTMATCH; 
AttrIdList[6] =         NC_ATTR_CAN_COMP_XTD;
AttrValueList[6] =      0;
AttrIdList[7] =         NC_ATTR_CAN_MASK_XTD;
AttrValueList[7] =      NC_CAN_MASK_XTD_DONTCARE;

The following Attribute configuration for Comperator and mask  disables Extended Frame reception. Only standard Frames get received.

AttrIdList[4] =         NC_ATTR_CAN_COMP_STD;
AttrValueList[4] =      0;
AttrIdList[5] =         NC_ATTR_CAN_MASK_STD;
AttrValueList[5] =      NC_CAN_MASK_STD_DONTCARE; 
AttrIdList[6] =         NC_ATTR_CAN_COMP_XTD;
AttrValueList[6] =      0xCFFFFFFF;
AttrIdList[7] =         NC_ATTR_CAN_MASK_XTD;
AttrValueList[7] =      NC_CAN_MASK_XTD_MUSTMATCH;

This is described within the NI-CAN manual on page 11-11 and 11-12.

DirkW

0 Kudos
Message 2 of 2
(4,966 Views)