Hello

Arduino Mega have 4 serial ports so I think it could be useful to take advantage of this to be able to connect other serial device or Arduino running MRLComm.

With version 1559 of MRL, you can connect multiple Arduino to an host Arduino that is already connected to MRL. Each Arduino connected that way can also become an host for other Arduino. Only Arduino Mega can be use as host (Uno have only 1 serial port).

To activate this, you need at least 2 wires

  • connect Rx0 to Rx1, Rx2 or Rx3 of the host
  • connect Tx0 to the Tx conterpart of the host (Tx1, Tx2 or Tx3)
  • Both Arduino must share a common ground
    • by been connected to the same power source
    • by connecting a wire between ground pin on both Arduino
  • The Arduino that you are connecting can be powered by the host Arduino  or it`s own power source

To connect the Arduino to MRL, you use the command

arduino.connect(arduinoHost, "SerialPort")

SerialPort can be "Serial1", "Serial2" or "Serial3"

all the rest remain the same as you usually use

I have attached a sample script 

https://github.com/MyRobotLab/pyrobotlab/blob/develop/home/Calamity/mul…