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.

TDA4VM: CAN

Part Number: TDA4VM

I am a software engineer,I want to know that TDA4 can support the socket can mechanism.

If the TDA4 support the socket can mechanism,there is a way to dertermin the can is bus_off.

I find a way like this.

struct can_frame framesend =

{

.can_id = 0xaa,

.can_dlc = 1,

.data[0] = 0x66,

}

err = write(s_can0,&framesend,sizeof(framesend));

if(err <= 0)

{

perror("send data error");

}else{

if(framesend.can_id & CAN_ERR_BUSSOFF)

perror("bus-off");

}

I try that way.but it doesn't works.

So I want to know that if I use the socket_can system,

there is a way to determine that now the can device is bus_off.

Thanks!!!

Best wishes!!!