I bought a Silicon Chip Web server in a box kit today, and put it together. It has a RS232 output, on a 3 pin header: RX, GND, TX
I connected GND to Arduino GND, TX to Arduino RX, and RX to Arduino TX.
The web GUI for it has the option to send strings, strings with newline, and decimal character code.
I have setup the Arduino to just echo back anything it recieves:
void setup() {
Serial.begin(115200);
}
void loop() {
if (Serial.available() > 0) {
Serial.println(Serial.read());
}
}
Baudrates on both sides seem fine.
Here is the problem:
Whatever I send, seems to get translated into a bunch of numbers. If I send 1 thru to 10 thru the decimal character code option, it gives me:
127
63
126
31
125
62
124
15
123
61
Sending it 1 - 10 thru string with newline:
103
121
61
179
222
15
102
121
61
89
222
15
101
121
61
178
222
15
100
121
61
172
235
0
99
121
61
103
86
235
0
abcd with string and newline:
79
121
61
167
222
15
78
121
61
83
222
15
If I send string without newline, I only get single values.
1 to 13:
103
51
102
25
101
50
100
12
99
103
6
103
103
103
51
103
102
a - z (lowercase) without newline:
79
39
78
19
77
38
76
9
75
37
74
18
73
36
72
4
71
35
70
17
69
34
68
8
67
33
The numbers seem consistent. Like, if I keep sending it the same value, it keeps giving me the same value, I just don't know what the values mean ...
Cheers, Dan :)