I am unable to type something in the serial monitor and it show up
My code is, I am trying to communicate with a sima6
#include <SoftwareSerial.h>
SoftwareSerial SIMA6 (10,11);
void setup() {
Serial.begin(115200);
SIMA6.begin(115200);
Serial.println("WORKING????");
}
void loop() {
while (SIMA6.available()){
Serial.write(SIMA6.read());
}
while (Serial.available()){
SIMA6.write(Serial.read());
}
}
Please help

gcjr
2
did you enter the test in the bar to the left of the SEND button near the top?
1. Upload the following sketch (yours one with slight modification).
#include <SoftwareSerial.h>
SoftwareSerial SIMA6 (10,11);
void setup() {
Serial.begin(115200);
SIMA6.begin(115200);
Serial.print("WORKING????");
}
void loop() {
while (SIMA6.available())
{
Serial.write(SIMA6.read());
}
while (Serial.available())
{
char x = Serial.read();
SIMA6.write(x);//(Serial.read());
Serial.println(x);
}
}
2. Bring in the Serial Monitor. Put cursor/focus in the InputBox (Fig-1) of the Serial Monitor.
Figure-1:
3. Enter 123 in the InputBox and then click on the Send button. Select 'No line ending' in the 'Line ending tab'.
4. Check that 123 has appeared on the OutputBox of Serial Monitor.
Baudrate in Serial monitor and your code MUST be the same. See Arduino - PC to Serial