Hardware switch to switch the software serial pins being "transceived" on.

Hi Robin2,

Well, as long as you are able to interpret, what I am saying.....

Yes, I can use the DPDT switch to successfully switch from the MPPT to the BMV and read its data, I do have to exit the the MPPT window first so that the Victron software can pick up the BMV once that happens I can click on the BMV Icon and then view its data.

Your interpretation is 100% correct!

The code that works.

#include <SoftwareSerial.h>
 
SoftwareSerial Switch(3, 5);

void setup() {
  // initialize both serial ports:
  Serial.begin(19200);
  Switch.begin(19200); // RX 3 TX 5
}

void loop() {
  // read from port 1, send to port 0:
  if (Switch.available()) {
    int inByte = Switch.read();
    Serial.write(inByte);
  }

  // read from port 0, send to port 1:
  if (Serial.available()) {
    int inByte = Serial.read();
   Switch.write(inByte);
  }
}

Hope this helps.

Kind regards.
Charles.