Problem reading RS232 7E1 from digital scale

I am trying to read data in arduino uno from digital monitor scale GSC SGW 3015 PS. I use MAX232 to connect serial with the monitor scale.
The scale monitor provide rs232 passive 7E1.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600,SERIAL_7E1);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // set the data rate for the SoftwareSerial port
  mySerial.begin(2400);
}

void loop() { // run over and over
  if (mySerial.available()) {
    Serial.write(mySerial.read());
  }

  delay(100);
}

The code above throw unknown charcters

VV⸮V⸮⸮⸮⸮⸮⸮⸮⸮6{i⸮9⸮V⸮⸮ݜҟ⸮⸮⸮⸮⸮⸮i⸮9⸮V⸮⸮ݜҟ⸮⸮⸮⸮⸮⸮i⸮9⸮V⸮⸮ݜҟ⸮⸮⸮⸮⸮⸮i⸮9⸮V⸮ʟVViVV9VVV⸮VV⸮VV⸮VV⸮VV⸮VV⸮VV⸮VV⸮VV⸮VV⸮VV9VV9VVV⸮VV⸮VV⸮VV⸮V

Anyone know, how to read the data correctly ??

You need to set up myserial for 7E1, not Serial.

As I understand the balance is read by myserial. The balance uses 2400 baud and 7E1.

To where, what does the Serial.write go?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.