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.

am3359 linux CAN filter

Other Parts Discussed in Thread: AM3359

1. CPU : am3359

2. OS : linux

3. 问题:配置CAN RAW socket,设置CAN filter,如下

struct can_filter filter[2];

setsockopt( sfd, SOL_CAN_RAW, CAN_RAW_FILTER, &filter, sizeof( filter ) );

只能设置 2 个过滤,如果设置 3 个及其以上,CAN接收不正常,无法收到发送端的CAN数据。