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 ??