Hi Robin2,
Yes, the data was ONLY veiwable in the serial monitor. The Victron Software could NOT sens the devices with this code, the likely hood that I screwed the code up is VERY good.
#include <SoftwareSerial.h>
SoftwareSerial MPPT(3, 5); //Naming Pins And Input
SoftwareSerial BMV(6, 9); //Naming Pins And Input
const int threshold = 800; // Tells when to change state
void setup() {
// initialize both serial ports:
Serial.begin(19200);
MPPT.begin(19200); // RX 3 TX 5
BMV.begin(19200); // RX 6 TX 9
}
void loop() {
int analogValue = analogRead(A0);
// read from port 1, send to port 0:
if (analogValue > threshold)
if (MPPT.available()) {
int inByte = MPPT.read();
Serial.write(inByte);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
MPPT.write(inByte);
}
analogValue = analogRead(A0);
if (analogValue < threshold)
if (BMV.available()) {
int inByte = BMV.read();
Serial.write(inByte);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
BMV.write(inByte);
}}
Hope this is clear enough, let me know if not and I will do my best to re-phrase.
Kind Regards
Charles.