Go Down

Topic: What is max baudrate for SoftwareSerial lib? (Read 403 times) previous topic - next topic

realmeteo

What is max sure tested baudrate for SoftwareSerial library on UNO/MEGA ?
Many thank
"Follia è fare sempre la stessa cosa aspettandosi risultati diversi." Albert Einstein. (Se hai gradito il mio aiuto, grazie per un punto Karma).

Robin2

I suggest starting at 9600 baud and then trying higher speeds. i believe it will work at 38,400 baud.


...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Juraj

I flashed firmware to esp8266 with sketch copying bytes from Serial to SoftwareSerial at 38400 baud, but when the same sketch copied bytes of prints from the esp8266 to Serial, garbage occurred. TX works better then RX
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

robtillaart

70K is achievable especially for sending. See tests here  - http://forum.arduino.cc/index.php?topic=138497

TX is more robust than RX but both are sensitive for the amount of interrupts.

Software Serial RX should be rewritten with pinchange interrupts to be more reliable...
nice student project :)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Nick_Pyner

What is max sure tested baudrate for SoftwareSerial library on UNO/MEGA ?
Do you really need to ask this question for a Mega?

-dev

Quote
Software Serial RX should be rewritten with pinchange interrupts to be more reliable...
nice student project :)
Umm... I think you are talking about NeoSWSerial.   ;)  I fixed a few other problems, like allowing simultaneous RX and TX.

AltSoftSerial is even better.

And, like Nick_Pyner is suggesting, you should never use these software serial libraries on a Mega.  Just use the hardware serial ports Serial1 (pins 18 & 19), Serial2 (pins 16 & 17) or Serial3 (pins 14 & 15).
Really, I used to be /dev.  :(

realmeteo

Do you really need to ask this question for a Mega?
cut and paste error....
obviously no !
tnk
"Follia è fare sempre la stessa cosa aspettandosi risultati diversi." Albert Einstein. (Se hai gradito il mio aiuto, grazie per un punto Karma).

Go Up