Hi,
since I could not solve the problem, I fixed (I guess, it is working properly till now) the problem using another library that I didnt want to use ie. AltSoftSerial ... which uses "fixed I/O" pins in which I didn't like.. But, since I could not solve the problem from SW, I solved the problem from HW..
- I changed the pins of Tx & Rx to D8 and D9
- I changed the library to AltSoftSerial.h
- I did not changed the application except library
Now it is working properly (as I mentioned above... till now and I hope it will continue to work)
Final version of the program is:
#include <AltSoftSerial.h>
AltSoftSerial mySerial;
void setup() {
Serial.begin(9600);
Serial.println("AltSoftSerial Test Begin");
mySerial.begin(9600);
mySerial.print("Hello World");
}
void loop() {
char c;
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
BUT still I'm looking for any suggestion to use original SoftwareSerial library.. I will be so happy to hear ideas.. regards, reha