I have cash counter with RS232 in the back of it. I want to read the data that supposed displayed on the projector with RS232 to TTL convertor and arduino.
Here is all my setup
Now I
- Connect the MAX3232 TX pin to the RX Arduino pin
- and Connect the MAX3232 RX pin to the TX Arduino pin
- and the Vcc to 5V
- and MAX3232 GND to arduino GND
- and plug the MAX3232 to the cash counter and the arduino to the pc
- and flash
void setup() {
Serial.begin(9600);
}
void loop() {
int data = Serial.read();
if (data != -1) {
Serial.println(data);
}
}
And the output comes like this
50
56
48
67
49
52
48
8
10
106
13
51
56
56
76
147
48
51
12
13
83
106
51
1
13
64
10
1
49
254
254
254
254
252
254
255
How can I read the data from this device?



