So I've been working on a project over the last few month using homemade boards on a CAN bus. It's working well when using a board as a sender and another one as receiver. I now have 3 boards and on which there are several sensor. My purpose here is to be able for every board to share data and use other from another mcu.
An quick overview of the project for a better understanding : I'm trying to automate a RC plane.
MCU-1 : Potentiometers + GPS
MCU-2 : 1 accelerometer + 1 barometer
MCU-3 : 1 differential pressure transmitter + 1 radio transmitter
I'd like to be able, for MCU-1 to receive and use data from MCU-2 and in the same time to transmit data to MCU-3. (They both have many more components and tasks to achieved, that why I don't have all the sensors on the same board)
I don't think it's important but MCU1 and 3 are ATmega328p (the one from the nano board) and MCU2 is an ATmega2560
My question : Is it possible ? I mean is it possible to have a MCU running as a Sender and a Receiver at the same time ? and how to do it ? :)
Also is it possible to have a MCU running as a receiver, let's say 90% of the time and sender 10% (or after an update) ? If the first situation isn't possible this one could be a solution for my project.