Problem when using three instances of a MCP2515 CAN-Bus object
avionikeren
Posts: 64
I have made a board with three MCP2515 IC`s to kind of bridging three different CAN-Busses.
It`s supposed to forward the messages received on CAN-Bus no.1 to no.2 and vice verca.
My problem is that when a message is received on bus no.1 it is forwarded many times on no.2 instead of only one time.
Another problem is that the message received on number 1 and 2 are sometimes mixed together and sent out as a new message.
To me this appears to be some kind of cross talking between the objects.
I have tried to create three copies of the objects with different names and also different variable names for the variables in the DAT section, but it did not help.
The object is a stripped down version of Stephen Moracos object.
Any ideas here would be very much appreciated.
Complete set of code:
100751.Program V1.0 - Archive [Date 2015.06.15 Time 22.54].zip
It`s supposed to forward the messages received on CAN-Bus no.1 to no.2 and vice verca.
My problem is that when a message is received on bus no.1 it is forwarded many times on no.2 instead of only one time.
Another problem is that the message received on number 1 and 2 are sometimes mixed together and sent out as a new message.
To me this appears to be some kind of cross talking between the objects.
I have tried to create three copies of the objects with different names and also different variable names for the variables in the DAT section, but it did not help.
The object is a stripped down version of Stephen Moracos object.
Any ideas here would be very much appreciated.
Complete set of code:
100751.Program V1.0 - Archive [Date 2015.06.15 Time 22.54].zip