Go Down

Topic: Software serial corrupts data at 115200 (Read 544 times) previous topic - next topic

lfigiel

According to this software serial supports baudrate up to 115200.

This test shows that data gets quickly corrupted at 115200 when software serial is used.
Lower baurdates are fine.

pert

General community knowledge, including your experience, says that 115200 is not reliable. I think it's generally recommended to use 9600. It's unfortunate the documentation says that. It should probably be corrected.

robtillaart

#2
Jan 17, 2018, 09:51 am Last Edit: Jan 17, 2018, 10:27 am by Coding Badly
I investigated software serial some eons ago - http://forum.arduino.cc/index.php?topic=138497.0

My purpose was to be able to use any baudrate with softwareSerial which worked out pretty well.

What I learned was that it works quite well to 70K (see measurements post #12) .

Note that the test did only serial communication, there was no other code running like that could interfere.
In practice I would say software serial should work reliable up to 38400.

Be aware that receiving with software serial is difficult as one should wait actively for the start bit. If you miss that one communication fails. Effectively softwareSerial receiving is quite blocking.
Rob Tillaart

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

Go Up