autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
793 stars 279 forks source link

Multiple Nodes, 1 Receiver, 2 Transmitter #49

Closed AlfioLocatelli closed 3 years ago

AlfioLocatelli commented 4 years ago

Hello, i need to communicate with 3 arduinos, 2 transmitter data and one receiver.. But how can i coordinate them? im wondering what can happen when both trasnmitter put on the can line different data with different ID. Maybe they coordinate by theyself and keep the data message in the buffer? Or i need to write a function for this? Thanks a lot

autowp commented 4 years ago

CAN protocol solved that. There is id-based priorities and retries on hardware level

AlfioLocatelli commented 4 years ago

Need i to setup something more in the firmware ? How does it decides the priorities?

autowp commented 4 years ago

https://en.wikipedia.org/wiki/CAN_bus Ctrl+F "Priority"