cancel
Showing results for 
Search instead for 
Did you mean: 

Can Bus between 9 card

aykutulusan
Associate II
Posted on May 13, 2010 at 13:36

Can Bus between 9 card

4 REPLIES 4
smart2
Associate II
Posted on May 17, 2011 at 13:50

I am hoping that every slave is using the same CAN code to send or receive CAN packet if this is the case just make sure that all slave devices dont send at the same time,use Tx FIFO and also some hw/sw buffer at the Master Rx side.

Use filtering so that other slave devices dont receive unwanted data.

 

aykutulusan
Associate II
Posted on May 17, 2011 at 13:50

Hi, avr-smart

First, thx for your reply.

Yes, All of node are common. I know, the filters chose slaves but How and where can I define filters for all slaves in program. At first of program(Following?)  or while sending?

Can_Setup();

Can_Filter(CPU_ID,filter_no0);

Can_Filter(Slave_ID1,filter_no1);

Can_Filter(Slave_ID2,filter_no2);

Can_Filter(Slave_ID3,filter_no3);

Can_Filter(Slave_ID4,filter_no4);

Can_Filter(Slave_ID5,filter_no5);

Can_Filter(Slave_ID6,filter_no6);

Can_Filter(Slave_ID7,filter_no7);

thx again

aykutulusan
Associate II
Posted on May 17, 2011 at 13:50

Thx for your reply

I solved my problem and the comunication.

smart2
Associate II
Posted on May 17, 2011 at 13:50

Ii am not sure about your application, are slave devices talking with each other or all sending data to master.

If they are not talking to each other just sending data to master then filtering is most useful based on CAN packet id or some range for receiving CAN packets.